function swapover(n) {if (document.images){document.images['box'+n].src = eval("c" + n + ".src");}}
		function swapout(n) {if (document.images){document.images['box'+n].src = eval("b" + n + ".src");}} if (document.images)  {

		b1 = new Image(); b1.src = "/img/nav_live_off.gif";
		c1 = new Image(); c1.src = "/img/nav_live_on.gif";

		b2 = new Image(); b2.src = "/img/nav_musik_off.gif";
		c2 = new Image(); c2.src = "/img/nav_musik_on.gif";
					
		b3 = new Image(); b3.src = "/img/nav_fotos_off.gif";
		c3 = new Image(); c3.src = "/img/nav_fotos_on.gif";
					
		b4 = new Image(); b4.src = "/img/nav_info_off.gif";
		c4 = new Image(); c4.src = "/img/nav_info_on.gif";

		b5 = new Image(); b5.src = "/img/nav_gaeste_off.gif";
		c5 = new Image(); c5.src = "/img/nav_gaeste_on.gif";
		
		b6 = new Image(); b6.src = "/img/nav_kontakt_off.gif";
		c6 = new Image(); c6.src = "/img/nav_kontakt_on.gif";
		}


function openGalleryPopup(popupName,popupWidth,popupHeight,imageFile,imageWidth,imageHeight,sessionId)
{
	var url = "/cgi-bin/adframe/popup.html?id="+sessionId+"&imageFile="+imageFile+"&imageWidth="+imageWidth+"&imageHeight="+imageHeight;
	var genmesg = open(url,popupName,"toolbar=0,status=1,menubar=0,resizable=no,scrollbars=no,width="+popupWidth+",height="+popupHeight); 
}


function genericOpen(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=1,menubar=0,resizable=yes,scrollbars=yes,width="+width+",height="+height); 
}

function forumcommentOpen(id,targeturl,title)
{
	var forumUrl = "/cgi-bin/adframe/community/themenforum/templates/neuerbeitrag.html?id="+id+"&URL="+targeturl+"&TITLE="+title+"";
	var genmesg = open(forumUrl,'neuerbeitrag',"toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=500,height=500"); 
}



function genericOpenNoScroll(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=1,menubar=0,resizable=no,scrollbars=no,width="+width+",height="+height); 
}


function WinOpen(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=blond_mail.html&success=blond_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=458,height=482"); 
}

function WinOpenbd(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=bd_mail.html&success=bd_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=yes,width=450,height=470"); 
}

function WinOpenping(tomail,toname,tofunktion,subject)
 {
var myurl = "http://www.bdverlag.de";
	myurl+= "/cgi-bin/mail/mail.cgi?template=ping_mail.html&success=ping_success.html&to_email="+tomail+"&to_name="+toname+"&to_funktion="+tofunktion+"&subject="+subject;
msg=open(myurl,"popup","toolbar=0,status=1,menubar=0,resizable=no,scrollbars=no,width=500,height=570"); 
}

	
	var layerNumShowing=0;
	init();
	
	function init(){
        if (navigator.appName == "Netscape") {
				layerStyleRef="layer.";
				layerRef="document.layers";
				styleSwitch="";
        }else{
				layerStyleRef="layer.style.";
				layerRef="document.all";
				styleSwitch=".style";
		}
	}

	function showLayerNumber(number){
		var layerNumToShow=number;
		hideLayer(eval('"layer' + layerNumShowing+'"'));
		showLayer(eval('"layer' + layerNumToShow+'"'));
		layerNumShowing=layerNumToShow;	
	}

	
	function showLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	}
	
	function hideLayer(layerName){
		eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	}
	
	function deselectLayerNumber(number){
		var layerNumToShow=number;
		hideLayer(eval('"layer' + layerNumShowing+'"'));
	}
