<!--//--><![CDATA[//><!--
browser_name = navigator.appName; 
browser_version = parseFloat(navigator.appVersion); 
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; dd="document.layers"; var NN=true;} 
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) { roll = 'true'; dd="document.all"; var NN=false;} 
else { roll = 'false'; } 
function ic(img,ref,lang){
	if(lang=="en"){
		document.images[img].src = il_en[ref].src;
	}else{
		document.images[img].src = il_ru[ref].src;
	}
} 
function newImageSrc(src) {
	var img=new Image;
	img.src=src;
	return img;
}
if (roll == 'true') 
{
	il_ru=new Array();
	il_ru['b1n']=newImageSrc("/ru/menu/im10.gif");
	il_ru['b1o']=newImageSrc("/ru/menu/im11.gif");
	il_ru['b2n']=newImageSrc("/ru/menu/im20.gif");
	il_ru['b2o']=newImageSrc("/ru/menu/im21.gif");
	il_ru['b3n']=newImageSrc("/ru/menu/im30.gif");
	il_ru['b3o']=newImageSrc("/ru/menu/im31.gif");
	il_ru['b4n']=newImageSrc("/ru/menu/im40.gif");
	il_ru['b4o']=newImageSrc("/ru/menu/im41.gif");
	il_ru['b5n']=newImageSrc("/ru/menu/im50.gif");
	il_ru['b5o']=newImageSrc("/ru/menu/im51.gif");
	il_ru['b6n']=newImageSrc("/ru/menu/im60.gif");
	il_ru['b6o']=newImageSrc("/ru/menu/im61.gif");
	
	il_en=new Array();
	il_en['b1n']=newImageSrc("/en/menu/im10.gif");
	il_en['b1o']=newImageSrc("/en/menu/im11.gif");
	il_en['b2n']=newImageSrc("/en/menu/im20.gif");
	il_en['b2o']=newImageSrc("/en/menu/im21.gif");
	il_en['b3n']=newImageSrc("/en/menu/im30.gif");
	il_en['b3o']=newImageSrc("/en/menu/im31.gif");
	il_en['b4n']=newImageSrc("/en/menu/im40.gif");
	il_en['b4o']=newImageSrc("/en/menu/im41.gif");
	il_en['b5n']=newImageSrc("/en/menu/im50.gif");
	il_en['b5o']=newImageSrc("/en/menu/im51.gif");
	il_en['b6n']=newImageSrc("/en/menu/im60.gif");
	il_en['b6o']=newImageSrc("/en/menu/im61.gif");	
}
function str(id,p){
	t=returnObjById(id);
	if(p==1){
		t.style.display="block";
	}else{
		t.style.display="none";
	}
}; 
function returnObjById( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}
startList = function() { 
	if (document.all&&document.getElementById) {
		for (k=0; k<6; k++) {
		if(navRoot = returnObjById("nav"+k)){
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i]; 
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
		}
		}
	}
}
window.onload=startList;


function docopen(filename,w,h,lang){
	if(lang == 'ru'){
		t="Фотогалерея www.hermitagemusic.ru";
	}else{
		t="Gallery www.hermitagemusic.ru";
	}
	myWin = window.open("","_blank","width="+w+",height="+h+",resizable=0,scrollbars=0,status=0");	
	myWin.document.open("text/html");
	//myWin.resizeTo(w, h);
	myWin.document.writeln("<html style='width:100%;height:100%;margin: 0px auto 0px auto;padding:0px;background:#ebebeb;'><head><title>"+t+"</title></head>");
	myWin.document.writeln("<body style='width:100%;height:100%;margin:0;padding:0;'>");
	myWin.document.writeln("<table cellpadding='0' cellspacing='0' style='width:100%;height:100%;margin:0px auto 0px auto;'><tbody><tr><td style='width:100%;height:100%;padding:0px;margin:0px;background:#ebebeb;text-align:center;vertical-align:middle;'><img src='"+filename+"' border=0 onclick=\"parent.close()\"></td></tr></tbody></table>");
	myWin.document.write("</body></html>");
	myWin.document.close();
	
}
function openScreen(u) {
	wnd = window.open( u, "v", "status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,width=650,height=680,top=0,left=0");
	wnd.focus();
}
function g(url){
	 self.close();
	 return false;
}
//--><!]]>