	var menuleftcount=0;
	var menutopcount=0;	


    // Menü Left **********************************************************
	function set_menuleft_count(count) {   
		menuleftcount = count;
	}
	
	function clear_menuleft(menuleftcount) {   
		if (document.getElementById)	{ // DOM1
             for (i = 1; i <= menuleftcount; i++) {
				document.getElementById("menu_" + i).className = "menu";			
			 }	
		}	
		else if (document.all)  {         // ie
             for (i = 1; i <= menuleftcount; i++) {
				document.all("menu_" + i).className = "menu";				
			 }	
		}	
	}		

	function select_menuleft(idname) { 
		if (document.getElementById)	{ // DOM1
			clear_menuleft(menuleftcount);
			document.getElementById(idname).className = "menuselect";			
		}	
		else if (document.all)  {         // ie
			clear_menuleft(menuleftcount);
			document.all(idname).className = "menuselect";				
		}	
    }	
	
	function show_menuleft(idname, show) {   // show = visible || hidden
		if (document.getElementById)	 // DOM1
			document.getElementById(idname).style.visibility=show
		else if (document.all)		    // ie
			document.all[idname].style.visibility=show
		else if (document.layers)	    // ns
			document.layers[idname].visibility=show;
	}

    // Menü Top **********************************************************

	function set_menutop_count(count) {   
		menutopcount = count;
	}
	
	function clear_menutop(menutopcount) {   
		if (document.getElementById)	{ // DOM1
             for (i = 1; i <= menutopcount; i++) {
				document.getElementById("menutop_" + i).className = "menutop";			
			 }	
		}	
		else if (document.all)  {         // ie
             for (i = 1; i <= menutopcount; i++) {
				document.all("menutop_" + i).className = "menutop";				
			 }	
		}	
	}		

	function select_menutop(idname) { 
		if (document.getElementById)	{ // DOM1
			clear_menutop(menutopcount);
			document.getElementById(idname).className = "menuselecttop";			
		}	
		else if (document.all)  {         // ie
			clear_menutop(menutopcount);
			document.all(idname).className = "menuselecttop";				
		}	
    }	
	
	function show_menutop(idname, show) {   // show = visible || hidden
		if (document.getElementById)	 // DOM1
			document.getElementById(idname).style.visibility=show
		else if (document.all)		    // ie
			document.all[idname].style.visibility=show
		else if (document.layers)	    // ns
			document.layers[idname].visibility=show;
	}