// JavaScript Document

function moveOn(id){
	node = document.getElementById(id);
	node.className="MenuLevel0_over";
	
	//az openShim egy iframe-et fog helyezni az adott
	//menu ala, igy az alatta levo select kivalaszto menuk fele fog kerulni
	openShim(node,node.childNodes[2]);

}

function moveOut(id){
	node = document.getElementById(id);
	node.className="MenuLevel0";
	closeShim(node);

}

//a sajtos oldalso menunel nem kell allitani a class-t
function moveOnNoClass(id){
	node = document.getElementById(id);
	openShim(node,node.childNodes[2]);
}

function moveOutNoClass(id){
	node = document.getElementById(id);
	closeShim(node);
	
}

function init(id) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById(id);
    //ha nincs jobb oldali menu resz, akkor a navRoot null lesz:
     if( navRoot!=null){
     		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", "");
     				}
     	   		}
       		} //for
      } //if
	}
}

function calendarLoadEvent(){
	init("navtop");
	init("navleft");
	init("navright");
}

addLoadEvent(calendarLoadEvent);

