
var ie = (document.all) ? true : false;
var ns = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
var Bild_Nr=0;
var ns;

function showCellBG(cellId, bgcolor) { 
	eval(cellId + '.bgColor="' + bgcolor + '"');
}

function hideCellBG(cellId, bgcolor) {   
	eval(cellId + '.bgColor="' + bgcolor + '"');
}

    // wie Bildwechsel, aber ohne Ber&uuml;cksichtigung von Bild_Nr (i wie immer)
	function Bildwechsel(Posi,Dateiname){
		if(ns)
			{document.images[Posi].src=Dateiname;}
		else
			{window.document.images[Posi].src=Dateiname;}
	}
	//******************************************************************************************
	
	// wechselt Bild, wenn nicht gesperrt und nicht mit Bild_nr &uuml;bereinstimmt, setzt BildNr
	function BildwechselClick(Posi,Dateiname){
		Bild_Nr=1;
			if (Bild_Nr==1){
			if (ns)
				{document.images[Posi].src=Dateiname;}
			else
				{window.document.images[Posi].src=Dateiname;}
		}

	}
function hide(name) {
			if (ns)
				{document.layers[name].visibility = "hide";}
			else if (ns6)
				{document.getElementById(name).style.visibility = "hidden";}
			else if(ie)
				{document.all[name].style.visibility = "hidden";}
}

function show(name) {
			if (ns)
				{document.layers[name].visibility = "show";}
			else if (ns6)
				{document.getElementById(name).style.visibility = "visible";}
			else if(ie)
				{document.all[name].style.visibility = "visible";}
}
     
function hideall(name) 
	{
				hide('sub1');
				hide('sub2');
				hide('sub3');
				hide('sub4');
				hide('sub5');
				hide('sub6');
	}
		

function demo(datei){
	var width_intern;
	var height_intern;
	width_intern=(window.screen.width/2)-(150+10);
	height_intern=(window.screen.height/2)-(150+50);
	var win4=window.open(datei,"dem","height=340,width=300,top="+height_intern+",left="+width_intern+",screenX="+width_intern+",screenY="+height_intern+",toolbar=no,statusbar=no,scrollbars=no");win4.focus();} 

    // wie Bildwechsel, aber ohne Ber&uuml;cksichtigung von Bild_Nr (i wie immer)
	function Changex(Posi,Dateiname){
		if(ns)
			{document.images[Posi].src=Dateiname;}
		else
			{window.document.images[Posi].src=Dateiname;}
	}

function menhide(){
	setTimeout('hideall()',600);}
