//browsererkennung
var ie4 = ((document.all) && (navigator.appVersion.indexOf('MSIE 4')!=-1)) ? true:false;
var ie5 = ((document.getElementById) && (navigator.appVersion.indexOf('MSIE 5')!=-1)) ? true:false;
var ie6 = ((document.getElementById) && (navigator.appVersion.indexOf('MSIE 6')!=-1)) ? true:false;
var ie7 = ((document.getElementById) && (navigator.appVersion.indexOf('MSIE 7')!=-1)) ? true:false;
var ns4 = ((document.layers) && (navigator.appVersion.indexOf('4')!=-1))? true:false;
var ns6 = ((document.getElementById) && (navigator.appName == 'Netscape')) ? true:false;
var opera = (navigator.appName == 'Opera') ? true:false;
var LayerAktiv = false;

/// *************************** BILDER VORAUSLADEN!!!!!
var bilder = new Array();

//   ******* BILDERWECHSEL
function changer(imgid, imgurl)
{	
	eval('document.images.' + imgid + '.src = "' + imgurl + '"');
}

function NSreload(init)
{  
  	if (init==true) with (navigator) 
  	{
	   if ((appName=="Netscape")&&(parseInt(appVersion)==4))
	   {
    	document.PW=innerWidth; 
		document.PH=innerHeight; 
		onresize=NSreload;
		}
	}
  	else if (innerWidth!=document.PW || innerHeight!=document.PH) 
  	{
  	this.location.reload();
	}
}

NSreload(true);	

function ShowLayer(LayerName)
 {  if ((ns6)||(ie5)||(ie6)||(ie7)||(opera))
       { document.getElementById(LayerName).style.visibility="visible"; 
       }
    if (ns4)
       { document.layers[LayerName].visibility="visible";
       }
    if (ie4)
       { document.all[LayerName].style.visibility="visible";
       }

 }

function HideLayer(LayerName)
 {if ((ns6)||(ie5)||(ie6)||(ie7)||(opera))
       { document.getElementById(LayerName).style.visibility="hidden";
       }
    if (ns4)
       { document.layers[LayerName].visibility="hidden";
       }
    if (ie4)
       { document.all[LayerName].style.visibility="hidden";
       }
 }


// ******POPUP
function surfer(URL)
{window.open(URL, "", "toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,top=0,left=0");}

function surferBlank(URL, w, h)
{
//alert(w);
window.open(URL, '', 'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1, width='+w+', height='+h+', top=0,left=0');

}//width=640, height=430");}

