 function showPanorama(flash_name){ 
	var str='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="panorama" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="./img/'+flash_name+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="./img/'+flash_name+'.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="panorama" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'; 
	//alert(str);
	document.writeln(str); 
}

	function fillTables(contentBlockId,headerNeed,reCellBordered) {
		if(document.getElementsByTagName){
			var items = document.getElementById(contentBlockId).getElementsByTagName("TABLE");
			for(var i=0;i<items.length; i++){
				if (!reCellBordered || (items[i].getAttribute(classFix) && (items[i].getAttribute(classFix)).indexOf("reCellBordered")>0)){
					var nodes = items[i].getElementsByTagName("TR");
					var start = 0;
					if (headerNeed && (nodes[0].getAttribute(classFix)==""  || nodes[0].getAttribute(classFix)==null)){
						nodes[0].setAttribute(classFix,"color_2");
						start = 1;
					}
					for(var j=start;j<nodes.length; j++){
						if (nodes[j].getAttribute(classFix)=="" || nodes[j].getAttribute(classFix)==null){
							nodes[j].setAttribute(classFix,"color_"+(j%2));
						}
					}
				}
			}
		}
	}	



 function ScaleBlank(){
	var content_div = document.getElementById("content_div");
	var bodyHeight = document.body.clientHeight - 422;
	var menu_div = document.getElementById("left_column_div");
	var newHeight = Math.max((menu_div.offsetHeight),bodyHeight);
	content_div.style.height = newHeight+"px";
}

// -------------------------------------------------------------------------------
	// ---  открыть окно с изображением
	var wrImageWindow;
	function rOpenImageWindow(src,width,height){ 
		wWidth = (width)?width+4:470;
		wHeight = (height)?height+4:470;
		wrImageWindow=window.open("","blankImageWindow", 'status=no,scrollbars=no,resizable=yes,width='+(wWidth)+',height='+(wHeight)+'');
			wrImageWindow.document.write("<html><head><title>Изображение</title>");			
			wrImageWindow.document.write("<style>.visible{display:block;} .hide{display:none;} div,a{font:10px verdana,tahoma,sans-serif;text-decoration:none;}</style>");


			wrImageWindow.document.write("<script>function printshow(over){document.getElementById('menu').setAttribute(classFix,(over)?'visible':'hide');}</script>");


			wrImageWindow.document.write("<body class=popupWnd topmargin=0 marginheight=0 leftmargin=0 marginwidth=0 bgcolor=white text=black link=black alink=black vlink=black>");

			wrImageWindow.document.write("<script>var classFix = (document.body && document.body.getAttribute('className'))?'className':'class';</script>");

			wrImageWindow.document.write("<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%><tr><td align=center onmouseover='printshow(true);' onmouseout='printshow(false);'>");
			wrImageWindow.document.write("<table border=0 cellspacing=1 cellpadding=1 bgcolor=#333333><tr><td bgcolor=white>");
			wrImageWindow.document.write("<div id='menu' class='hide' style='position:absolute;z-index:1;background:white;top:2px;left:2px;padding:5px;border:#333333 1px solid;'>");
				wrImageWindow.document.write("[<a href='javascript:;' onclick='printshow(false);self.print();' title='распечатать'>распечатать</a>] &nbsp;");
				wrImageWindow.document.write("[<a href='javascript:;' onclick='self.close();' title='закрыть окно'>закрыть</a>]");
			wrImageWindow.document.write("</div>");
			//wrImageWindow.document.write("<img src='"+base+src+"' width='"+width+"' height='"+height+"' border=0>");
			wrImageWindow.document.write("<img src='"+src+"' width='"+width+"' height='"+height+"' border=0>");
			wrImageWindow.document.write("</td></tr></table>");
			wrImageWindow.document.write("</td></tr></table>");
			wrImageWindow.document.write("</body></html>");
			wrImageWindow.document.close();
		wrImageWindow.resizeTo(wWidth+30,wHeight+40);
		wrImageWindow.focus();
	}
// -------------------------------------------------------------------------------
