 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";
}

//-----------------для меню

			startList = function() {
//				if (document.all&&document.getElementById) {
					var tmp=document.getElementById("rMenu");
					if (tmp)
						var navRoot = tmp.getElementsByTagName("TD");
					var z=0;
					if (navRoot){
						for (i=0; i<navRoot.length; i++) {
							node = navRoot[i];
								if (node.nodeName=="TD") {
									if (node.className.indexOf("cms_tree_current")==-1 && node.className.indexOf("cms_tree_open")==-1){
										z++;
									}
									node.onmouseover=function() {
										this.className+=" over";
									}
									node.onmouseout=function() {
										this.className=this.className.replace(" over", "");
										this.className=this.className.replace("over", "");
									}
//alert(z+" - "+(z%2));
									if (z!=0 && (z%2)!=1){
										node.className+=" moved";
									}
								}
						}
					}else{
						//alert("что то тут нетак с меню...");
					}
//				}
			}
			window.onload=startList;
