awp="";
sg_js="1.0";
sg_r=""+Math.random()+"&r="+escape(document.referrer)+"&pg="+escape(window.location.href);
document.cookie="sg=1; path=/";
sg_r+="&c="+(document.cookie?"1":"0");
if (self!=top) {fr=1;} else {fr=0;}
sg_r+="&fr="+fr;
mt=(new Date()).getTimezoneOffset();
sg_r+="&mt="+mt;



nn4 = (document.layers)? true : false;
ie4 = (document.all)? true : false;
nn6 = (document.getElementById && !ie4)? true : false;

function NewWind(cardName, winW, winH, winTitle) {
if (nn4 || ie4 || nn6) {
posX = Math.round((screen.width - winW) / 2);
posY = Math.round((screen.height - winH) / 2);
posCode = (nn4 || nn6)? 'screenX='+posX+',screenY='+posY : 'left='+posX+',top='+posY;
} else { posCode = ''; }
cardWindow = window.open('','_blank','menubar=no,toolbar=no,scrollbars=no,status=yes,width='+winW+',height='+winH+','+posCode);
cardWindow.document.open();
cardWindow.document.write('<html><head><title>'+winTitle+'</title></head>');
cardWindow.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>');
  cardWindow.document.write('<a href="#" onclick="javascript: window.print(); return false;"><img src="/pics/printer.gif" width="30" height="30" style="position:absolute;top:10px;right:10px;border:none;"/></a> <img src="'+cardName+'" width="'+winW+'" height="'+winH+'" /></body></html>');
cardWindow.document.close();
cardWindow.focus();
}
function $(name)
{
     return document.getElementById(name);
}

function OpenSubMenu(id,name){
  id = 'id'+id;
  
 loc = document.location.href.split("/");
  
  
  if ((name=="rus")||(name=="eng")||(name=="2")||(name=="3")){
       $('star_about').className="star_active";
       $('aabout').style.color="#fcf9cb";
       $('aabout').style.textDecoration = "underline";    
  }else{
    name=loc[4];
   $('star_'+name).className="star_active";
    $('a'+name).style.color="#fcf9cb";
    $('a'+name).style.textDecoration = "underline";
  }
 
  
  
}
    
 function StarLite(star){
   if($(star).className!="star_active"){
      $(star).className="star_active2";
      }
    }

 function StarLiteNone(star){
   if($(star).className!="star_active"){
      $(star).className="star";
   }
  }

  function LightPhoto(photo){
	  
	   $(photo).className="bg_photo2";

  }
  
  function DarkPhoto(photo){
	  
	   $(photo).className="bg_photo";

  }
  function CloseMainPage(){

	  $('mainblock').style.display="none";
      document.getElementById('znak').style.display="block";
      document.getElementById('znak2').style.display="block";
      document.getElementById('znak3').style.display="block";
      document.getElementById('znak10').style.display="block";  	  
  }
  function hideFlash(){
      document.getElementById('znak').style.display="none";
      document.getElementById('znak2').style.display="none";
      document.getElementById('znak3').style.display="none";
      document.getElementById('znak10').style.display="none";  	  
  }  
