<!--

var StartUp=Array();
StartUp.push("loadMenu");

function addSubMenu(obj){
	obj.onmouseover=mainOnOver;
	obj.onmouseout=mainOnOut;
	
	var url="/html/submenu/"+obj.id+".html";
	
	if (window.XMLHttpRequest) {
		explorer=false;
        req = new XMLHttpRequest();
        req.open("GET", url, false);
        req.send("");
    // branch for IE/Windows ActiveX version
    }else if (window.ActiveXObject) {
    	explorer=true;
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.open("GET", url, false);
            req.send();
        }
    }
	
	var result=req.responseText;
//	alert(result);
	
	obj.innerHTML+=result;
	
	subObj=eval("sub_"+obj.id);
	if(explorer)subObj.style.left=subObj.offsetLeft-70;
	subObj.style.top=obj.offsetTop+obj.clientHeight+30;

	str='';
	c=1;
	for(i in subObj.style){
		br=(c==1)? "\n" : "";
		c=(c==1)? 1 : c+1;
		str+=i+"="+obj.style[i]+br;
	}
//	alert(str);
}


function mainOnOver(){
	eval("sub_"+this.id).style.visibility="visible";
}

function mainOnOut(){
	eval("sub_"+this.id).style.visibility="hidden";
}


loadMenu=function(){
	addSubMenu(mAbout);
	addSubMenu(mNews);
	addSubMenu(mCatalog);
	addSubMenu(mService);
	addSubMenu(mPGallery);
	addSubMenu(mQuestions);
//	addSubMenu(mContacts);
}

execStartUp=function(){
	for(var i in StartUp){
		eval(StartUp[i])();
	}
}

window.onload=function(ok){
	execStartUp();
}




-->