//Script f�r PullDown Men�s
function surfto(form) {
var myindex=form.select1.selectedIndex
if (form.select1.options[myindex].value != "0") {
location=form.select1.options[myindex].value;}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function pop (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=no,scrollbars=1,height=503,width=650,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=no,scrollbars=1,height=485,width=661,top=0,left=0');
		mini.focus();	
	}
}
function popZoom (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=1,menubar=yes, scrollbars=0,resizable=0,copyhistory=0,height=431,width=490,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=0,location=0,directories=0,status=0,menubar=1,menubar=yes, scrollbars=0,resizable=0,copyhistory=0,height=431,width=490,top=0,left=0');
		mini.focus();	
	}
}
function popExtern (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=1,location=1,status=0,menubar=0,resizable=yes,scrollbars=1');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=1,location=1,status=0,menubar=0,resizable=yes,scrollbars=1');
		mini.focus();	
	}
}

function popup (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'popup','toolbar=1,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=580,width=1000,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'popup','toolbar=1,location=0,status=0,menubar=0,resizable=yes,scrollbars=1,height=580,width=1000,top=0,left=0');
		mini.focus();
	}
}
function popup3 (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'popup3','toolbar=0,location=0,status=1,menubar=0,resizable=yes,scrollbars=0,height=280,width=320,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'popup3','toolbar=0,location=0,status=1,menubar=0,resizable=yes,scrollbars=0,height=280,width=320,top=0,left=0');
		mini.focus();
	}
}
function popup2 (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'popup2','toolbar=1,location=1,status=1,menubar=1,resizable=yes,scrollbars=1,height=580,width=1000,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'popup2','toolbar=1,location=1,status=1,menubar=1,resizable=yes,scrollbars=1,height=580,width=1000,top=0,left=0');
		mini.focus();
	}
}

function glossar(a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'glossar','toolbar=0,location=0,status=0,menubar=1,resizable=1,scrollbars=0,height=580,width=520,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'glossar','toolbar=0,location=0,status=0,menubar=1,resizable=yes,scrollbars=no,height=558,width=520,top=0,left=0');
		mini.focus();
	}
}

function zoom (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=yes, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=315,width=565,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,menubar=yes, scrollbars=YES,scrollbars=1,resizable=no,copyhistory=0,height=320,width=568,top=0,left=0');
		mini.focus();
	}
}

function makeRemote(dateiname) {
remote = window.open("","remotewin",'toolbar=1,location=0,status=0,menubar=1,resizable=no,scrollbars=1,height=520,width=475,top=0,left=0');
remote.location.href = dateiname
if (remote.opener == null) remote.opener = window;
remote.opener.name = "opener";
}
function go(url) {
opener.location.href = url;
}

var i=0, sw=screen.width*80/100, sh=screen.height*100/100;
function resize() {
if (navigator.appName == 'Netscape') i=0;
nw = 70 + ((document.closeButton.width > document.articleImage.width) ? document.closeButton.width : document.articleImage.width);
nh = document.articleImage.height + 220 - i;
if(nw>sw) nw = sw;
if(nh>sh) nh = sh;
window.resizeTo(nw, nh);
nx = screen.width/2 - nw/2;
ny = screen.height/2 - nh/2;
window.moveTo(nx, ny);
}
function show (id) 
{ 
  if (document.getElementById(id).style.visibility=="hidden"){ 
     document.getElementById(id).style.visibility="visible"; 
	 document.getElementById(id).style.position="relative"; 
  } else 
  { 
   document.getElementById(id).style.visibility="hidden"; 
   document.getElementById(id).style.position="absolute"; 
  } 
} 

/* - - - - - - - - Klappnavigation - - - - - - - - - */
//if(window.navigator.systemLanguage && !window.navigator.language) {
	
	/* - - - - - - - - Navigation - - - - - - - - - */
	function hoverIE() {
		if(document.getElementById("Navigation")!=null){
			var LI = document.getElementById("Navigation").firstChild;
			do {
				if (sucheUL(LI.firstChild)) {
					LI.onmouseover=einblenden;
					LI.onmouseout=ausblenden;
				}
			LI = LI.nextSibling;
			}
			while(LI);
		}
	}

	function sucheUL(UL) {
		do {
			if(UL) UL = UL.nextSibling;
			if(UL && UL.nodeName == "UL") return UL;
		}
		while(UL);
		return false;
	}

	function einblenden() {
		var UL = sucheUL(this.firstChild);
		UL.style.display = "block";
	}
	
	function ausblenden() {
		sucheUL(this.firstChild).style.display = "none";
	}


/* - - Textfeld leeren - - */
	function foo(o) {
      o.value = "";
      o.onclick = null;
    }


/* - - - - - - - - Init - - - - - - - - - */
function init() {
	//if(window.navigator.systemLanguage && !window.navigator.language) {
		hoverIE();
		if (typeof initTeaserswitcher == "function"){	
		   initTeaserswitcher();
	        }
	//)
}
//window.onload=init;
//window.onload=initLightbox;
//addLoadEvent(initLightbox);	// run initLightbox onLoad

function popJT (a){
	if(navigator.appName.substring(0,8)=="Netscape"){
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=713,width=650,top=0,left=0');
		mini.focus();
	}
	else{
		mini=window.open(a,'Pop','toolbar=1,location=0,status=0,menubar=1,resizable=yes,scrollbars=1,height=695,width=661,top=0,left=0');
		mini.focus();	
	}
}
