function showLayer1() {
document.getElementById("code1_a").style.display = "none";
document.getElementById("code1_b").style.display = "block";
//alert('LOL');
}


function hideLayer1() {
document.getElementById("code1_a").style.display = "block";
document.getElementById("code1_b").style.display = "none";
//alert('LOL');
}


function showLayer2() {
document.getElementById("code2_a").style.display = "none";
document.getElementById("code2_b").style.display = "block";
//alert('LOL');
}


function hideLayer2() {
document.getElementById("code2_a").style.display = "block";
document.getElementById("code2_b").style.display = "none";
//alert('LOL');
}


function showLayer3() {
document.getElementById("code3_a").style.display = "none";
document.getElementById("code3_b").style.display = "block";
//alert('LOL');
}


function hideLayer3() {
document.getElementById("code3_a").style.display = "block";
document.getElementById("code3_b").style.display = "none";
//alert('LOL');
}


function airoff() {
document.getElementById("airoff").style.display = "block";
document.getElementById("airon").style.display = "none";
document.getElementById("special").style.display = "none";
document.getElementById("normal").style.display = "block";
//alert('LOL');
}


function airon() {
document.getElementById("airon").style.display = "block";
document.getElementById("airoff").style.display = "none";
document.getElementById("special").style.display = "block";
document.getElementById("normal").style.display = "none";
//alert('LOL');
}

function BgAirOn() {
document.getElementById('airoff').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_air_on.gif)";
}

function BgAirOff() {
document.getElementById('airoff').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_air_off.gif)";
}

function BgAirOn1() {
document.getElementById('airon').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_air_on.gif)";
}

function BgAirOff1() {
document.getElementById('airon').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_air_off.gif)";
}

function BgAutoOn() {
document.getElementById('airoff').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_auto_on.gif)";
}

function BgAutoOff() {
document.getElementById('airoff').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_auto_off.gif)";
}


function BgAutoOn1() {
document.getElementById('airon').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_auto_on.gif)";
}

function BgAutoOff1() {
document.getElementById('airon').style.backgroundImage = "url(/fileadmin/templates/img/common/sidebar_auto_off.gif)";
}





function BgNavOn1 () {
document.getElementById('navi1').style.backgroundImage = "url(img/navi/rollover.gif)";
}

function BgNavOff1 () {
document.getElementById('navi1').style.backgroundImage = "url(img/navi/rollout.gif)";
}



function BgNavOn2 () {
document.getElementById('navi2').style.backgroundImage = "url(img/navi/rollover.gif)";
}

function BgNavOff2 () {
document.getElementById('navi2').style.backgroundImage = "url(img/navi/rollout.gif)";
}



function BgNavOn3 () {
document.getElementById('navi3').style.backgroundImage = "url(img/navi/rollover.gif)";
}

function BgNavOff3 () {
document.getElementById('navi3').style.backgroundImage = "url(img/navi/rollout.gif)";
}

function BgNavOn4 () {
document.getElementById('navi4').style.backgroundImage = "url(img/navi/rollover.gif)";
}

function BgNavOff4 () {
document.getElementById('navi4').style.backgroundImage = "url(img/navi/rollout.gif)";
}

function BgNavOn5 () {
document.getElementById('navi5').style.backgroundImage = "url(img/navi/rollover.gif)";
}

function BgNavOff5 () {
document.getElementById('navi5').style.backgroundImage = "url(img/navi/rollout.gif)";
}

//Browserabfrage
var isMac, isNav6;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
  isNav6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 5) ? true : false
/*   isMac  = (navigator.platform.indexOf("Mac") != -1) ? true : false */
}

var letzterLink='';

function layerPopClient(bild,text,hinweis,numID,layID,pxLeft) {
	
	if(letzterLink!='') {
		//if(!isNav6) {
    		document.getElementById(letzterLink).style.color='#000000';
  		//} else {
    	//	document.all[letzterLink].style.color='#000000';
  		//}
  	}

	letzterLink=numID;

 	if(hinweis) {
    	hinweisTxt = '<span class="popTxt"><br>'+hinweis+'<br></span><br>\n'
  	} else { 
  		hinweisTxt = '';
  	}
  	
  	layerHTML ='<div class="teaserbild_popup">\n' 
  	  	  + '<div class="teaserbild_minus"><a href="javascript:layerCloseClient(\''+numID+'\',\''+layID+'\');"><img src="/fileadmin/templates/img/common/icon_minus_grau.gif" width="11" height="11"></a></div>\n'
          + '<div class="teaserbild_left">\n'
          + '     <a href="javascript:layerCloseClient(\''+numID+'\',\''+layID+'\');"><img src="'+bild+'" alt="" width="482" height="276" class="mainImg" /></a>\n'
          + '<div>\n'
          + '   <div class="tsPopTxt" style="background-color:#fff;height:30px;padding:3px">'+text+'</div>\n'
          + '   </div>\n';       
        
	/*if(!isNav6) {*/
	    document.getElementById(layID).innerHTML = layerHTML;
	    document.getElementById(layID).style.left=pxLeft+'px';
	    document.getElementById(layID).style.visibility='visible';
	    document.getElementById(numID).style.color='#666666';
	/*} else {
	    document.all[layID].innerHTML = layerHTML;
	    document.all[layID].style.left=pxLeft+'px';
	    document.all[layID].style.visibility='visible';
	    document.all[numID].style.color='#666666';
	}*/
	void(0);
}


function layerCloseClient(numID,layID) {
  //if(!isNav6) {
    document.getElementById(numID).style.color='#000000';
    document.getElementById(layID).style.visibility='hidden';
  /*} else {
    document.all[numID].style.color='#000000';
    document.all[layID].style.visibility='hidden';
  }*/
  void(0);
}

function changeLang(siteId) { 
	var lang = document.tx_langselect_navi.L.value; 
	window.location.href= '/index.php?id='+siteId+'&L='+lang; 
}

