<!-- utils
//=========================== 'BW' ===========================
function getObjectBW(name) {
  if(document.getElementById) return document.getElementById(name);
  //else if(document.layers) return document.ids[name];
  else if(document.all) return document.all[name];
  else return null;
}
// end 'getObjectBW' ---------------

//=========================== 'PIC' ========================
function roll(namePic, path){document.images[namePic].src=path;}
//--------------
function roll_all_back(prefix, path){

	for(i=0; i<=500; i++){
		pica= prefix+i;
		roll_id(pica, path);
	}

}
function roll_id(id, path){
	var pic_id = getObjectBW(id);
	if(pic_id != null) {
//	alert ("I see "+pic_id+" and "+path)
	pic_id.src = path};
}
//--------------
function onVisibili(id){
	var elem_id = getObjectBW(id);
	if(elem_id != null) elem_id.style.visibility = elem_id.style.visibility =="hidden" ? "visible" : "hidden";
}
function onDisplay(id){
	var elem_id = getObjectBW(id);
	if(elem_id != null) elem_id.style.display = elem_id.style.display =="" ? "none" : "";

}
// end 'PIC' --------------

//=========================== 'cookie' ========================
function get_cookie(name) {
	var search = name+"=";
	var result = "";
	if (document.cookie.length > 0){
		offset = document.cookie.indexOf(search);
		// if cookie exists
		if (offset != -1){ 
			offset += search.length;
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset);
			// set index of end of cookie value
			if (end == -1) end = document.cookie.length;
			result=unescape(document.cookie.substring(offset, end));
		}
	}
	return result;
}
//--------------
function pop_cookie(name, value){
	var result = "";
	var openones = get_cookie(name).split(" ");
	for(i=0;i<=openones.length;i++){if(openones[i]!=value) result += openones[i]+" ";}
	document.cookie=name+"="+escape(result);
}
//--------------
function push_cookie(name, value){
	document.cookie=name+"="+escape(get_cookie(name)+" "+value);
}
// end 'cookie' -------------


//=========================== 'redirect' ==========================
function redirect(path){document.location.href=path;}
//--------------
function new_window(path, w_nam,  height, width){
	faktur="height="+height+", width="+width+", scrollbars=no, menubar=no, statusbar=no, resizable=yes";
	window.open(path, w_nam, faktur);
}
// end 'redirect' -----------

function rand_keks(num){
//		 var r=y-x+1;
	//	 var i=(""+r).length;
	//	 var num= Math.floor((Math.random()*Math.pow(10,i))%r+parseInt(x));
		//alert("/pic/menue/keks"+num+".jpg");
		document.images.keks.src="/pic/menue/keks"+num+".jpg";
}
//-->


<!--
function doit(header){
var head=header.style
if (head.display=="none")
head.display=""
else
head.display="none"
}

function show2(header, other){
var elem= document.all.length
	for (i=0;i<elem;i++){
 	if(document.all.item(i).id == other){
		document.all.item(i).style.display="none"
	}
	}
doit(header)
}

function show(level, row, murl){
		  var header= "l"+level+"r"+row;
	for (i=level;i<=6;i++){	
		for (y=0;y<=500;y++){
		    var obj= "l"+i+"r"+y;		
	        var elem_id = getObjectBW(obj);
		if (elem_id != null){		
			if (elem_id && obj != header ){
	         elem_id.style.display = "none" ;
		  	 }
			} 
		}
	}
//	onDisplay(header)
	
	var elem_id = getObjectBW(header);
   	if(elem_id != null) {
		if (elem_id.style.display =="none"){
		elem_id.style.display = "" ;
		}else {
//	alert("I go to "+murl);
//document.location.href="?"+murl;
elem_id.style.display = "none" ;
}
}
	  
}


//-->
