	function switchImage(imgName, imgSrc) { 
		if (document.images) { 
			if (imgSrc != "none") { 
				document.images[imgName].src = "/images/meni/" + imgSrc + ".jpg"; 
			}
		}
	}

	function init() {
		if (document.layers) {
			layerRef="document.layers";
			styleSwitch="";
			visibleVar="show";
			screenSize = window.innerWidth;
			what ="ns4";
		} else if(document.all) {
			layerRef="document.all";
			styleSwitch=".style";
			visibleVar="visible";
			screenSize = document.body.clientWidth + 18;
			what ="ie";
		  } else if(document.getElementById) {
			layerRef="document.getElementByID";
			styleSwitch=".style";
			visibleVar="visible";
			what="moz";
		  } else {
			what="none";
			newbrowser = false;
		}
		check = true;
		hideAll();
	}

	function showLayer(layerName) {
		if(check) {
        			if (what == "none") {
				return;
        			}
			else if (what == "moz") {
				/*document.getElementById(layerName).style.visibility=String ('visible');
				document.getElementById(layerName).style.position=String ('relative');*/
				document.getElementById(layerName).style.display=String ('block');
			}
			else {
				/*eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
				eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.position="relative"');*/
				eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
			}
		}
		else {
			return;
		}
	}

	function hideLayer(layerName) {
		if(check) {
			if (what == "none") {
				return;
			}
			else if (what == "moz") {
				/*document.getElementById(layerName).style.visibility=String ('hidden');
				document.getElementById(layerName).style.position=String ('absolute');*/
				document.getElementById(layerName).style.display=String ('none');
			}
			else {
				/*eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
				eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.position="absolute"');*/
				eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');
			}
		}
		else {
			return;
		}
	}

	function onLoad() {
		init();
	}
	
	
	var WinNum=0;
function WindowOpen(Url,x,y)
{
 	var String;
  	String =  "toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=0,";
	String += ",width=";
	String += x;
	String += ",height=";
	String += y;
	WinPic=window.open(Url,++WinNum,String);
}