var path = '/img/menu/';

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
    if (isDOM) return document.getElementById(id);
    if (isIE4) return document.all[id];
    if (isNS4) return document.layers[id];
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

MM_preloadImages(
		'/uploaded/img/news1_on.gif',
		'/uploaded/img/news_on.gif',
		'/uploaded/img/news1.gif',
		'/uploaded/img/news.gif',
		'/uploaded/img/posol1_on.gif',
		'/uploaded/img/posol_on.gif',
		'/uploaded/img/posol1.gif',
		'/uploaded/img/posol.gif',
		'/uploaded/img/sluzh1_on.gif',
		'/uploaded/img/sluzh_on.gif',
		'/uploaded/img/sluzh.gif',
		'/uploaded/img/sluzh1.gif',
		'/uploaded/img/about1_on.gif',
		'/uploaded/img/about_on.gif',
		'/uploaded/img/about1.gif',
		'/uploaded/img/about.gif',
		'/uploaded/img/gimn1_on.gif',
		'/uploaded/img/gimn_on.gif',
		'/uploaded/img/gimn1.gif',
		'/uploaded/img/gimn.gif',
		'/uploaded/img/prav1_on.gif',
		'/uploaded/img/prav_on.gif',
		'/uploaded/img/prav1.gif',
		'/uploaded/img/prav.gif',
		'/uploaded/img/kult1_on.gif',
		'/uploaded/img/kult_on.gif',
		'/uploaded/img/kult1.gif',
		'/uploaded/img/kult.gif',
		'/uploaded/img/nauk1_on.gif',
		'/uploaded/img/nauk_on.gif',
		'/uploaded/img/nauk1.gif',
		'/uploaded/img/nauk.gif',
		'/uploaded/img/torg1_on.gif',
		'/uploaded/img/torg_on.gif',
		'/uploaded/img/torg1.gif',																														
		'/uploaded/img/torg.gif',
		'/uploaded/img/tur1_on.gif',
		'/uploaded/img/tur_on.gif',
		'/uploaded/img/tur1.gif',
		'/uploaded/img/tur.gif',
		'/uploaded/img/what1_on.gif',
		'/uploaded/img/what_on.gif',
		'/uploaded/img/what1.gif',
		'/uploaded/img/what.gif',
		'/uploaded/img/braz1_on.gif',
		'/uploaded/img/braz_on.gif',
		'/uploaded/img/braz1.gif',
		'/uploaded/img/braz.gif',
		'/img/menu/lk2.gif',
		'/img/menu/lk1.gif'
		);


function U_over(name) {
	MM_swapImage(name,'',path + name + '_on.gif',1);
	return false;
}
function U_over_m(idm, name2) {
	MM_swapImage(idm,'',name2,1);	
	return false;
}
function U_out() { 
	MM_swapImgRestore();
	return false;
}

function jumpMenu22(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}