if (top == self) {
	var topurl = "http://www.webscan.de/index.php"
	if ((document.layers) || (document.all) || (document.getElementById)) {
		self.location.replace(topurl);
	}
	else {
		self.location.href = topurl;
	}
}


function headWindow(url){
window.open(url,'head','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=10,left=10,width=560,height=600,dependent=yes');
}

function dataWindow(datei)
{
	switch(datei)
	{
		case'R':{window.open("rechtshinweise.htm","rechtshinweis",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,top=50,left=450,width=340,height=600');break;}
		case'I':{window.open("impressum.htm","impressum",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=auto,resizable=no,top=50,left=300,width=240,height=430');break;}
		case'W':{window.open("win.htm","Gewinnspiel",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
		case'Win':{window.open("../win.htm","Gewinnspiel",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
		case'D':{window.open("../dom.htm","Domainreservierung",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
		case'Deasy':{window.open("../easyweb.htm","EasyWeb",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
		case'Dpro':{window.open("../proweb.htm","ProWeb",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
		case'Dd':{window.open("../zusatzdomain.htm","Zusatzdomain",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=150,width=550,height=450');break;}
	}
}

function OpenBild(Bild,width,height)   
{    
window.open(Bild, "Bild", "width="+width+",height="+height+",topmargin=0,leftmargin=0,top=50,left=50");
}

function bildwechsel(popon) 
{
  if (navigator.appVersion.indexOf(" 2.0 ") == -1)
  {
     parent.main.document.images["impressum"].src="bilder/"+popon;
  }
}

function lapos(ziel) // liefert die browserspezifische referenzierung für einen layer
{
	switch(browser)
	{
		case'ie':{return document.all[ziel];break;}
		case'ns4':{return eval('document.'+ziel);break;}
		case'ns6':{return document.getElementById(ziel);break;}
	}
	//alert(browser);
	return null;
}

function lastyl(ziel) // liefert die browserspezifische referenzierung des layer-styles
{
	if(browser!='ns4')return lapos(ziel).style;
	else return lapos(ziel);
}

function getx(ziel) // gibt den x-wert eines layers zurück 
{
	if(browser=='ie')return lastyl(ziel).pixelLeft;
	else return parseInt(lastyl(ziel).left)
}

function gety(ziel) // gibt den y-wert eines layers zurück 
{
	if(browser=='ie')return lastyl(ziel).pixelTop;
	else return parseInt(lastyl(ziel).top)
}

function getv(ziel) // liefert true, wenn ein layer sichtbar ist
{
	if(lastyl(ziel).visibility=='visible'||lastyl(ziel).visibility=='show')return true;
	else return false;
}

function setx(ziel,value){browser=='ie'?lastyl(ziel).pixelLeft=value:lastyl(ziel).left=value;} // setzt den x-wert eines layers
function sety(ziel,value){browser=='ie'?lastyl(ziel).pixelTop=value:lastyl(ziel).top=value;} // setzt den y-wert eines layers
function setv(ziel,mode){mode==1?lastyl(ziel).visibility='visible':lastyl(ziel).visibility='hidden';} // macht abhängig vom browsertyp einen layer sichtbar/unsichtbar; mode 1=visible 0=hidden

function setc(ziel,mode,value) // setzt den clip-wert für einen layer; mode=t(top),b(bottom),l(left),r(right)
{
	var ref=lastyl(ziel);
	switch(mode)
	{
		case't':{browser=='ns4'?ref.clip.top=value:ref.clip='rect('+value+'px auto auto auto)';break;}
		case'r':{browser=='ns4'?ref.clip.right=value:ref.clip='rect(auto '+value+'px auto auto)';break;}
		case'b':{browser=='ns4'?ref.clip.bottom=value:ref.clip='rect(auto auto '+value+'px auto)';break;}
		case'l':{browser=='ns4'?ref.clip.left=value:ref.clip='rect(auto auto auto '+value+'px)';break;}
	}
}

//
// ende layerspezifische funktionen

