window.onresize=pgINIT;
document.onclick=mnHIDE;
var nn=0;
var oo=0;
if(navigator.appName=="Netscape"){nn=1}
nav=navigator.userAgent;k=nav.indexOf("Opera");
if(k>1){oo=1}
var mn_width=130;
var w=document.body.clientWidth;
var mn=document.getElementById("mn_1");

function pgINIT(){
	mnHIDE();
	w=document.body.clientWidth;
	if(w>950){
		document.getElementById("bg_fly").style.backgroundPosition="right bottom";
		if(nn==1||oo==1){
			document.getElementById("bg_fly").style.backgroundImage="url('/images/ru_04.jpg')";
			document.getElementById("bg_fly").style.backgroundPosition="right bottom";
		}
	}else{
		document.getElementById("bg_fly").style.backgroundPosition="770px bottom";
		if(nn==1||oo==1){
			document.getElementById("bg_fly").style.backgroundImage="none";
		}
	}
	if(w>906){
		document.getElementById("td_main").style.width=793;
		document.getElementById("tbl_content").style.width=787;
		document.getElementById("navigator").style.left=646;
		document.getElementById("index_content").style.width=473;
	}else{
		document.getElementById("td_main").style.width=w-111;
		document.getElementById("tbl_content").style.width=w-117;
		document.getElementById("navigator").style.left=w-258;
		document.getElementById("index_content").style.width="100%";
	}document.getElementById("navigator").style.display="block";
	document.getElementById("tbl_content").style.display="block";
}
function mnSHOW(n){
	if(n!=2){
		mn.style.display="none";
		mn=document.getElementById("mn_"+n);
		if(navigator.appName=="Netscape"){
			obj=document.getElementById("nn_"+n);
			x=obj.offsetLeft;
		}else{
			x=event.x-event.offsetX;
		}
		if(x+mn_width>w){s=x+mn_width-w}else{s=20}
		mn.style.left=x-s+document.body.scrollLeft+20;
		mn.style.top=133;
		mn.style.display="block";
}	}
function mnHIDE(){
	mn.style.display="none";
}
function mnHIDE_2(e){
	if(e.srcElement.tagName=="DIV"){
		t1=setTimeout("mnHIDE();clearTimeout(t1)",1000);
}	}
function bgON(obj){
	obj.style.backgroundColor="#eeeeee";
}
function bgOFF(obj){
	obj.style.backgroundColor="";
}
function chIM_(obj){
	s=obj.src;
	n=s.lastIndexOf(".");
	obj.src=s.substring(0,n)+"_"+s.substring(n,s.length);
}
function chIM(obj){
	s=obj.src;
	n=s.lastIndexOf(".");
	obj.src=s.substring(0,n-1)+s.substring(n,s.length);
}