// global.js
// wird in head.tpl eingebunden


/**************************************/
// regelt die Sichtbarkeit des menue-extra
var vis = 0;
var sichtbar = ''; 	// 1 = extra
					// 2 = lnag

function show_hide(arg){	

	if( vis == 0){
		vis_hid(arg, 'visible');
		document.getElementById('menue_extra').style.left = -34+'px';
		vis = 1;		
		sichtbar = arg;
	}else if(vis == 1 && sichtbar == arg){
		document.getElementById('menue_extra').style.left = -11+'px';
		vis_hid(arg, 'hidden');
		vis = 0;
	}else if(vis == 1){
		vis_hid(arg, 'visible');
		vis_hid(sichtbar, 'hidden');
		sichtbar = arg;
	}
}

function vis_hid(ebene, zustand){
	eval("document.getElementById('" + ebene + "').style.visibility = '" + zustand + "'");
}

/**************************************/
// PopUp Etikett
function popUp(img_src,alt,w,h){
	//alert("w="+w+" h="+h+" src="+img_src);
	fenster = window.open("inc/popup.php?img_src="+img_src+"&title="+alt+"&w="+w+"&h="+h,"etikett","width="+w+", height="+h+", resizable=no");
	fenster.focus();
}
function agb(lang){
	fenster = window.open("inc/agb_"+lang+".html","AGB","width=450, height=300, scrollbars=yes");
	fenster.focus();
}