function star_slide_show(){
window.open('/star_slide_show.html','slide_show','width=563, height=414, status=yes, toolbar=no, menubar=no');
return false;
}
function rodina_slide_show(){
window.open('/rodina_slide_show.html','slide_show','width=563, height=414, status=yes, toolbar=no, menubar=no');
return false;
}
function moskow_slide_show(){
window.open('/moscow_slide_show.html','slide_show','width=563, height=414, status=yes, toolbar=no, menubar=no');
return false;
}
function map_(){
window.open('/map.html','map','width=640, height=400, status=yes, toolbar=no, menubar=no');
return false;
}
function rodina_plan(){
window.open('/rodina_blue_plan.html','plan','width=618, height=590, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function rodina_red_plan(){
window.open('/rodina_red_plan.html','plan','width=618, height=590, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function star_plan(){
window.open('/star_plan.html','plan','width=618, height=590, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function moskow_plan(){
window.open('/moscow_plan.html','plan','width=618, height=590, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}

function rodina_blueplan_swf(){
window.open('/rodina_blue_plan_swf.html','plan','width=400, height=650, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function rodina_redplan_swf(){
window.open('/rodina_red_plan_swf.html','plan','width=400, height=650, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function star_plan_swf(){
window.open('/star_plan_swf.html','plan','width=400, height=650, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}
function moskow_plan_swf(){
window.open('/moscow_plan_swf.html','plan','width=400, height=650, status=yes, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes');
return false;
}


function map_(){
window.open('/map.html','map','width=640, height=400, status=yes, toolbar=no, menubar=no');
return false;
}
//----------------------------------------------------------------------------

NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
off=0;
var xlayer_=600;
window.setTimeout("f_off()",1000);

function f_off(){
window.setTimeout("f_off()",1000);
//alert("off");
if(off<1){
	//hide("mnu1");
	show_me1("mnu");
	off=0;
	}
}

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; }
else { roll = 'false'; }

if ((!IE4)&&navigator.appVersion.charAt(0) > "4") NN6 = true; else NN6=0;

function show(name,xlayer_,ylayer_) {
//alert("show "+name);
    if (NN6){
        var styleObject = document.getElementById( name );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
//            styleObject.visibility = "inherit";
            styleObject.visibility = "visible";
        }

    	}
        else
    if (NS4)
    {
        if(!(document.layers[name])) return true;
	document.layers[name].visibility= "show";
    }
    else {

	wwidth=document.body.clientWidth-760
	zhk=Math.floor(wwidth/2)+xlayer_-1;

	document.all[name].style.posLeft=zhk;
//alert(ylayer);
	document.all[name].style.posTop=ylayer_;

        if(!(document.all[name])) return true;
	document.all[name].style.visibility= "visible";



	}
}

function hide (name) {
//alert("hide "+name);
    if (NN6){
        var styleObject = document.getElementById( name );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject.visibility = "hidden";
        }

    	}
        else

    if (NS4)
    {
        if(!(document.layers[name])) return true;
     	document.layers[name].visibility="hide";
    }
    else{
        if(!(document.all[name])) return true;
	document.all[name].style.visibility="hidden";
	}
//alert("hide ok "+name);

}


function h_s (name,xlayer_,ylayer_) 
{
	//alert("h_s "+leftPos);
    if (NN6){
        var styleObject = document.getElementById( name );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            if(styleObject.visibility== "hidden") show(name);
//            	else hide(name);
        }

    	}
        else
    if (NS4)
    {
        if(!(document.layers[name])) return true;
        if (document.layers[name].visibility=="show"){
//	    hide(name);
	}else
	    show(name);
    }
    else
    {
        if(!(document.all[name])) return true;
        if (document.all[name].style.visibility=="visible"){
//	    hide(name);
	}else
	    show(name,xlayer_,ylayer_);
    }

if(ver4)return false; else return true;
}



function check_old(){
if(ver4)return false;
return true;
}

function set_style(obj,prop,id){
	//alert(obj+"=="+prop);

	if(obj.className)obj.className=prop;
        else if(document.all){
        	var o;
		if(!(o=document[obj])&&document.all) o=document.all[obj];
        	o.className=prop;
                }
}



function show_me1 (name,xlayer_,ylayer_) 
{
if(no_ie_()) {return false};
    if (name!='l63')hide ('l63');

show_me2 (name,xlayer_,ylayer_);
if(h_s(name,xlayer_,ylayer_))return true;
return false;
}


function show_me2 (name,xlayer_,ylayer_) 
{
if(no_ie_()) {return false};
	//alert("show_me2 "+leftPos);
    if (name!='mnu1')hide ('mnu1');
    if (name!='mnu2')hide ('mnu2');
    if (name!='mnu3')hide ('mnu3');
    if (name!='mnu4')hide ('mnu4');
    if (name!='mnu5')hide ('mnu5');
    if (name!='mnu6')hide ('mnu6');
show_me3 (name,xlayer_,ylayer_);
if(name=='mnu4')return true; 
if(h_s(name,xlayer_,ylayer_))return true;
return false;
}


function show_me3 (name,xlayer_,ylayer_) 
{
if(no_ie_()) {return false};
	//alert("show_me3 "+leftPos);
    if (name!='mnu130')hide ('mnu130');
    if (name!='mnu310')hide ('mnu310');
    if (name!='mnu320')hide ('mnu320');
    if (name!='mnu330')hide ('mnu330');
show_me4 (name,xlayer_,ylayer_);
if(name=='mnu110')return true;
if(name=='mnu120')return true;
if(name=='mnu340')return true;
if(h_s(name,xlayer_,ylayer_))return true;
return false;
}

function show_me4 (name,xlayer_,ylayer_) 
{
if(no_ie_()) {return false};
	//alert("show_me3 "+leftPos);
    if (name!='mnu313')hide ('mnu313');
if(name=='mnu311')return true;
if(name=='mnu312')return true;
if(name=='mnu314')return true;
if(name=='mnu315')return true;
if(h_s(name,xlayer_,ylayer_))return true;
return false;
}

function no_ie_(){
if (navigator.appName.indexOf('Microsoft')>=0) {return false;}
 else {return true;}
}
