//	Balmenü

function jumptolink(what){
	var selectedopt = what.options[what.selectedIndex]
	window.location = selectedopt.value
}

if (document.getElementById){
	document.write('<style type="text/css">\n')
	document.write('.alkmenuelem{display: none;}\n') //.submenu helyett .alkmenuelem
	document.write('</style>\n')
	}

function SwitchMenu(obj){
	if(document.getElementById){
		var el = document.getElementById(obj);
		var ar = document.getElementById("alkatreszmenu").getElementsByTagName("div"); //"box-content" helyett "alkatreszmenu"
				
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="alkmenuelem") // submenu helyett alkmenuelem
				ar[i].style.display = "none";
			}
			el.style.display = "block";
			//document.getElementById("elem").style.background ='url(/kepek/oldalmenu/alkmenupont_nyit.png) top left no-repeat';
			//alert("Itt van");
		}else{
			el.style.display = "none";
			//document.getElementById("elem").style.background ='url(/kepek/oldalmenu/oldalmenuelem.png) top left no-repeat';
			//alert("Itt van");
		}
	}
}

var win = null;

function NewWindow(theURL, winName, w, h, scroll, res){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+', width='+w+', top='+TopPosition+', left='+LeftPosition+', scrollbars='+scroll+', resizable='+ res +''
	win = window.open(theURL,winName,settings)
}