var hash=escape(self.location.pathname);
/*if (hash)
{
	var testeradframe = hash.indexOf('adframe');
	if (testeradframe==-1)
	{	
		var testerhtm = hash.indexOf('.htm');
		if (testerhtm == -1)
		{
			hash+='index.html';
		}
		var temp='/cgi-bin/adframe'+hash;
		top.location=temp 
	}
} */

function encodeAdframeUrl(url,adframesessionid)
{
	if ((adframesessionid != '') && (adframesessionid.indexOf("<") == -1) )
	{
		if (url.indexOf('?') > -1)
		{
			url += "&";
		}
		else
		{	
			url += "?" ;
		} 
		url = '/cgi-bin/adframe/'+url+'id='+adframesessionid;
	}
	return url;
}

function setActiveNavImage(imgname)
{
	activeNavImage = imgname;
	if ((activeNavImage != null) && (activeNavImage != ''))
	{	
		swapover(activeNavImage);
	}
}

function swapover(n) 
{
	if ((document.images) && (document.images['navimg_'+n] != null))
	{
		document.images['navimg_'+n].src = eval("c_" + n + ".src");
	}
}

function swapout(n) 
{
	if (document.images){document.images['navimg_'+n].src = eval("b_" + n + ".src");}
	if ((activeNavImage != null) && (activeNavImage != ''))
	{
		swapover(activeNavImage);
	}	 
}

// NAVIMG:
if (document.images)  
{
// duplication
b_duplication = new Image(); b_duplication.src = "/img/nav_duplication_off.gif";
c_duplication = new Image(); c_duplication.src = "/img/nav_duplication_on.gif";

// duplication dvd
b_duplication_dvd = new Image(); b_duplication_dvd.src = "/img/nav_dvd_off.gif";
c_duplication_dvd = new Image(); c_duplication_dvd.src = "/img/nav_dvd_more_on.gif";

	b_duplication_dvd_kopierung = new Image(); b_duplication_dvd_kopierung.src = "/img/nav_kopierung_off.gif";
	c_duplication_dvd_kopierung = new Image(); c_duplication_dvd_kopierung.src = "/img/nav_kopierung_on.gif";

	b_duplication_dvd_pressung = new Image(); b_duplication_dvd_pressung.src = "/img/nav_pressung_off.gif";
	c_duplication_dvd_pressung = new Image(); c_duplication_dvd_pressung.src = "/img/nav_pressung_on.gif";

// duplication cd
b_duplication_cd = new Image(); b_duplication_cd.src = "/img/nav_cd_off.gif";
c_duplication_cd = new Image(); c_duplication_cd.src = "/img/nav_cd_more_on.gif";

	b_duplication_cd_kopierung = new Image(); b_duplication_cd_kopierung.src = "/img/nav_kopierung_off.gif";
	c_duplication_cd_kopierung = new Image(); c_duplication_cd_kopierung.src = "/img/nav_kopierung_on.gif";

	b_duplication_cd_pressung = new Image(); b_duplication_cd_pressung.src = "/img/nav_pressung_off.gif";
	c_duplication_cd_pressung = new Image(); c_duplication_cd_pressung.src = "/img/nav_pressung_on.gif";

// duplication vhs
b_duplication_vhs = new Image(); b_duplication_vhs.src = "/img/nav_vhs_off.gif";
c_duplication_vhs = new Image(); c_duplication_vhs.src = "/img/nav_vhs_on.gif";

// duplication mc
b_duplication_mc = new Image(); b_duplication_mc.src = "/img/nav_mc_off.gif";
c_duplication_mc = new Image(); c_duplication_mc.src = "/img/nav_mc_on.gif";

// duplication master
b_duplication_master = new Image(); b_duplication_master.src = "/img/nav_master_off.gif";
c_duplication_master = new Image(); c_duplication_master.src = "/img/nav_master_on.gif";

// duplication vinyl
b_duplication_vinyl = new Image(); b_duplication_vinyl.src = "/img/nav_vinyl_off.gif";
c_duplication_vinyl = new Image(); c_duplication_vinyl.src = "/img/nav_vinyl_on.gif";


// Storage
b_storage = new Image(); b_storage.src = "/img/nav_storage_off.gif";
c_storage = new Image(); c_storage.src = "/img/nav_storage_on.gif";

// storage dvd
b_storage_dvd = new Image(); b_storage_dvd.src = "/img/nav_dvd_off.gif";
c_storage_dvd = new Image(); c_storage_dvd.src = "/img/nav_dvd_more_on.gif";

	b_storage_dvd_dvdrohlinge = new Image(); b_storage_dvd_dvdrohlinge.src = "/img/nav_dvdrohlinge_off.gif";
	c_storage_dvd_dvdrohlinge = new Image(); c_storage_dvd_dvdrohlinge.src = "/img/nav_dvdrohlinge_on.gif";

	b_storage_dvd_verpackung = new Image(); b_storage_dvd_verpackung.src = "/img/nav_verpackung_off.gif";
	c_storage_dvd_verpackung = new Image(); c_storage_dvd_verpackung.src = "/img/nav_verpackung_on.gif";

	b_storage_dvd_sonderverpackung = new Image(); b_storage_dvd_sonderverpackung.src = "/img/nav_sonderverpackung_off.gif";
	c_storage_dvd_sonderverpackung = new Image(); c_storage_dvd_sonderverpackung.src = "/img/nav_sonderverpackung_on.gif";
	
	b_storage_dvd_versandverpackung = new Image(); b_storage_dvd_versandverpackung.src = "/img/nav_versandverpackung_off.gif";
	c_storage_dvd_versandverpackung = new Image(); c_storage_dvd_versandverpackung.src = "/img/nav_versandverpackung_on.gif";

// storage cd
b_storage_cd = new Image(); b_storage_cd.src = "/img/nav_cd_off.gif";
c_storage_cd = new Image(); c_storage_cd.src = "/img/nav_cd_more_on.gif";

	b_storage_cd_cdrohlinge = new Image(); b_storage_cd_cdrohlinge.src = "/img/nav_cdrohlinge_off.gif";
	c_storage_cd_cdrohlinge = new Image(); c_storage_cd_cdrohlinge.src = "/img/nav_cdrohlinge_on.gif";

	b_storage_cd_verpackung = new Image(); b_storage_cd_verpackung.src = "/img/nav_verpackung_off.gif";
	c_storage_cd_verpackung = new Image(); c_storage_cd_verpackung.src = "/img/nav_verpackung_on.gif";

	b_storage_cd_sonderverpackung = new Image(); b_storage_cd_sonderverpackung.src = "/img/nav_sonderverpackung_off.gif";
	c_storage_cd_sonderverpackung = new Image(); c_storage_cd_sonderverpackung.src = "/img/nav_sonderverpackung_on.gif";
	
	b_storage_cd_versandverpackung = new Image(); b_storage_cd_versandverpackung.src = "/img/nav_versandverpackung_off.gif";
	c_storage_cd_versandverpackung = new Image(); c_storage_cd_versandverpackung.src = "/img/nav_versandverpackung_on.gif";

// storage vhs
b_storage_vhs = new Image(); b_storage_vhs.src = "/img/nav_vhs_off.gif";
c_storage_vhs = new Image(); c_storage_vhs.src = "/img/nav_vhs_more_on.gif";

	b_storage_vhs_leercassetten = new Image(); b_storage_vhs_leercassetten.src = "/img/nav_leercassetten_off.gif";
	c_storage_vhs_leercassetten = new Image(); c_storage_vhs_leercassetten.src = "/img/nav_leercassetten_on.gif";

	b_storage_vhs_verpackung = new Image(); b_storage_vhs_verpackung.src = "/img/nav_verpackung_off.gif";
	c_storage_vhs_verpackung = new Image(); c_storage_vhs_verpackung.src = "/img/nav_verpackung_on.gif";
	
	b_storage_vhs_sonderverpackung = new Image(); b_storage_vhs_sonderverpackung.src = "/img/nav_sonderverpackung_off.gif";
	c_storage_vhs_sonderverpackung = new Image(); c_storage_vhs_sonderverpackung.src = "/img/nav_sonderverpackung_on.gif";

// storage mc
b_storage_mc = new Image(); b_storage_mc.src = "/img/nav_mc_off.gif";
c_storage_mc = new Image(); c_storage_mc.src = "/img/nav_mc_more_on.gif";

	b_storage_mc_leercassetten = new Image(); b_storage_mc_leercassetten.src = "/img/nav_leercassetten_off.gif";
	c_storage_mc_leercassetten = new Image(); c_storage_mc_leercassetten.src = "/img/nav_leercassetten_on.gif";

	b_storage_mc_verpackungundlabel = new Image(); b_storage_mc_verpackungundlabel.src = "/img/nav_verpackungundlabel_off.gif";
	c_storage_mc_verpackungundlabel = new Image(); c_storage_mc_verpackungundlabel.src = "/img/nav_verpackungundlabel_on.gif";

// storage masterbaender
b_storage_master = new Image(); b_storage_master.src = "/img/nav_masterbaender_off.gif";
c_storage_master = new Image(); c_storage_master.src = "/img/nav_masterbaender_more_on.gif";

	// storage videomaster
	b_storage_master_videomaster = new Image(); b_storage_master_videomaster.src = "/img/nav_videomaster_off.gif";
	c_storage_master_videomaster = new Image(); c_storage_master_videomaster.src = "/img/nav_videomaster_more_on.gif";

		// storage videomaster betacam
		b_storage_master_videomaster_betacam = new Image(); b_storage_master_videomaster_betacam.src = "/img/nav_videomaster_betacam_off.gif";
		c_storage_master_videomaster_betacam = new Image(); c_storage_master_videomaster_betacam.src = "/img/nav_videomaster_betacam_on.gif";
		
		// storage videomaster mpeg
		b_storage_master_videomaster_mpeg = new Image(); b_storage_master_videomaster_mpeg.src = "/img/nav_videomaster_mpeg_off.gif";
		c_storage_master_videomaster_mpeg = new Image(); c_storage_master_videomaster_mpeg.src = "/img/nav_videomaster_mpeg_on.gif";
		
		// storage videomaster digitals
		b_storage_master_videomaster_digitals = new Image(); b_storage_master_videomaster_digitals.src = "/img/nav_videomaster_digitals_off.gif";
		c_storage_master_videomaster_digitals = new Image(); c_storage_master_videomaster_digitals.src = "/img/nav_videomaster_digitals_on.gif";
		
		// storage videomaster DVC Pro 
		b_storage_master_videomaster_dvcpro = new Image(); b_storage_master_videomaster_dvcpro.src = "/img/nav_videomaster_dvcpro_off.gif";
		c_storage_master_videomaster_dvcpro = new Image(); c_storage_master_videomaster_dvcpro.src = "/img/nav_videomaster_dvcpro_on.gif";
		
		// storage videomaster HDCAM 
		b_storage_master_videomaster_hdcam = new Image(); b_storage_master_videomaster_hdcam.src = "/img/nav_videomaster_hdcam_off.gif";
		c_storage_master_videomaster_hdcam = new Image(); c_storage_master_videomaster_hdcam.src = "/img/nav_videomaster_hdcam_on.gif";
		
		// storage videomaster DV/Mini DV 
		b_storage_master_videomaster_dvminidv = new Image(); b_storage_master_videomaster_dvminidv.src = "/img/nav_videomaster_dvminidv_off.gif";
		c_storage_master_videomaster_dvminidv = new Image(); c_storage_master_videomaster_dvminidv.src = "/img/nav_videomaster_dvminidv_on.gif";
		
		// storage videomaster DV Cam 
		b_storage_master_videomaster_dvcam = new Image(); b_storage_master_videomaster_dvcam.src = "/img/nav_videomaster_dvcam_off.gif";
		c_storage_master_videomaster_dvcam = new Image(); c_storage_master_videomaster_dvcam.src = "/img/nav_videomaster_dvcam_on.gif";
		
		// storage videomaster U-Matic
		b_storage_master_videomaster_umatic = new Image(); b_storage_master_videomaster_umatic.src = "/img/nav_videomaster_umatic_off.gif";
		c_storage_master_videomaster_umatic = new Image(); c_storage_master_videomaster_umatic.src = "/img/nav_videomaster_umatic_on.gif";
		
		// storage videomaster M II
		b_storage_master_videomaster_m2 = new Image(); b_storage_master_videomaster_m2.src = "/img/nav_videomaster_m2_off.gif";
		c_storage_master_videomaster_m2 = new Image(); c_storage_master_videomaster_m2.src = "/img/nav_videomaster_m2_on.gif";
		
		// storage videomaster SVHS
		b_storage_master_videomaster_svhs = new Image(); b_storage_master_videomaster_svhs.src = "/img/nav_videomaster_svhs_off.gif";
		c_storage_master_videomaster_svhs = new Image(); c_storage_master_videomaster_svhs.src = "/img/nav_videomaster_svhs_on.gif";

// storage audiomaster
b_storage_master_audiomaster = new Image(); b_storage_master_audiomaster.src = "/img/nav_audiomaster_off.gif";
c_storage_master_audiomaster = new Image(); c_storage_master_audiomaster.src = "/img/nav_audiomaster_on.gif";

// storage privatelabel
b_storage_privatelabel = new Image(); b_storage_privatelabel.src = "/img/nav_privatelabel_off.gif";
c_storage_privatelabel = new Image(); c_storage_privatelabel.src = "/img/nav_privatelabel_on.gif";

	b_storage_privatelabel_cddvd = new Image(); b_storage_privatelabel_cddvd.src = "/img/nav_privatelabel_cddvd_off.gif";
	c_storage_privatelabel_cddvd = new Image(); c_storage_privatelabel_cddvd.src = "/img/nav_privatelabel_cddvd_on.gif";

	b_storage_privatelabel_vhs = new Image(); b_storage_privatelabel_vhs.src = "/img/nav_privatelabel_vhs_off.gif";
	c_storage_privatelabel_vhs = new Image(); c_storage_privatelabel_vhs.src = "/img/nav_privatelabel_vhs_on.gif";
	
	b_storage_privatelabel_mc = new Image(); b_storage_privatelabel_mc.src = "/img/nav_privatelabel_mc_off.gif";
	c_storage_privatelabel_mc = new Image(); c_storage_privatelabel_mc.src = "/img/nav_privatelabel_mc_on.gif";


// Specials
b_specials = new Image(); b_specials.src = "/img/nav_specials_off.gif";
c_specials = new Image(); c_specials.src = "/img/nav_specials_on.gif";

// Download			
b_download = new Image(); b_download.src = "/img/nav_download_off.gif";
c_download = new Image(); c_download.src = "/img/nav_download_on.gif";

	// Download Spezifikationen
	b_download_spezifikationen = new Image(); b_download_spezifikationen.src = "/img/nav_download_spezifikationen_off.gif";
	c_download_spezifikationen = new Image(); c_download_spezifikationen.src = "/img/nav_download_spezifikationen_on.gif";

	// Download Preislisten
	b_download_preislisten = new Image(); b_download_preislisten.src = "/img/nav_download_preislisten_off.gif";
	c_download_preislisten = new Image(); c_download_preislisten.src = "/img/nav_download_preislisten_on.gif";
	
	// Download AGBs
	b_download_agb = new Image(); b_download_agb.src = "/img/nav_download_agb_off.gif";
	c_download_agb = new Image(); c_download_agb.src = "/img/nav_download_agb_on.gif";
	

// Kontakt
b_kontakt = new Image(); b_kontakt.src = "/img/nav_kontakt_off.gif";
c_kontakt = new Image(); c_kontakt.src = "/img/nav_kontakt_on.gif";
	
// Impressum	
b_impressum = new Image(); b_impressum.src = "/img/nav_impressum_off.gif";
c_impressum = new Image(); c_impressum.src = "/img/nav_impressum_on.gif";


// SUBNAV	
b_auflage = new Image(); b_auflage.src = "/img/button_auflage_off.gif";
c_auflage = new Image(); c_auflage.src = "/img/button_auflage_on.gif";

b_authoring = new Image(); b_authoring.src = "/img/button_authoring_off.gif";
c_authoring = new Image(); c_authoring.src = "/img/button_authoring_on.gif";

b_premastering = new Image(); b_premastering.src = "/img/button_premastering_off.gif";
c_premastering = new Image(); c_premastering.src = "/img/button_premastering_on.gif";

b_verpackungdruck = new Image(); b_verpackungdruck.src = "/img/button_verpackungdruck_off.gif";
c_verpackungdruck = new Image(); c_verpackungdruck.src = "/img/button_verpackungdruck_on.gif";

b_verpackungdruck2 = new Image(); b_verpackungdruck2.src = "/img/button_verpackungdruck2_off.gif";
c_verpackungdruck2 = new Image(); c_verpackungdruck2.src = "/img/button_verpackungdruck2_on.gif";

b_ihrangebot = new Image(); b_ihrangebot.src = "/img/button_ihrangebot_off.gif";
c_ihrangebot = new Image(); c_ihrangebot.src = "/img/button_ihrangebot_on.gif";

}


	
function genericOpen(name,url,width,height,scrollbars)
{
	var genmesg = open(url,name,"toolbar=0,status=0,menubar=0,resizable=0,scrollbars="+scrollbars+",width="+width+",height="+height); 
}
function genericOpenNoscroll(name,url,width,height,scrollbars)
{
	var genmesg = open(url,name,"toolbar=1,status=0,menubar=1,resizable=0,scrollbars=1"+scrollbars+",width="+width+",height="+height); 
}
function genericOpenHint(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=0,menubar=0,resizable=0,scrollbars=0,width="+width+",height="+height); 
}
function openHomePopup()
{
	// genericOpen('welcome','/cgi-bin/adframe/home_popup.html',300,500,'yes')
	return true;
}

//Switch den internen ILAYER fuer IE und LAYER fuer NN 

function encodeAdframeUrl(url,adframesessionid)
	{
		if ((adframesessionid != '') && (adframesessionid.indexOf("<") == -1) )
		{
  			if (url.indexOf('?') > -1)
  			{
  				url += "&";
  			}
  			else
  			{	
  				url += "?" ;
  			} 
  			url = '/cgi-bin/adframe/'+url+'id='+adframesessionid;
		}
		return url;
  	}

	function changeLayerSrc(url)
	{
		url = encodeAdframeUrl(url,"<!-- #id# -->");
		var theLayer;
		if (document.layers) 
		{
      		theLayer = document.layers['lexikonframe'].document.layers['lexikonnets'];
   	 	}	 
		else if (document.all) 
		{
			theLayer = document.all.lexikonie;
			
		}
		theLayer.src = url;
	}


	var layerNumShowing=0;

	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"');
	}
	
	onLoad=init();
	
	
	function remote(){

	abstandoben = 0;
	 	
	remotewidth = 300

	myheight = ( screen.availHeight - 50);
	
	remotepara = 'left=100,top=0,height=' + myheight + ',width=' + remotewidth + 'directories=no,locationbar=no,menubar=no,status=no,scrollbars=no, toolbars=no';
	remoteurl = '/php/lex_menu.php?language=de';
	
	abstandlinks = (screen.availWidth - 10) - remotewidth;
	
	mywidth = abstandlinks - 19;
	
	// macie
	surfpara = 'top=0,left=150,toolbar=no,locationbar=no,menubar=no,status=yes,scrollbars=yes';
	// surfpara = 'height=' + myheight + ',width=' + abstandlinks
	fenster1 = new Object();
   	
	if (navigator.platform.indexOf('Mac')!=-1){
	
	if (navigator.appName=="Netscape") 
		{
		myheight = myheight - 20
		mywidth = mywidth - 11
		surfpara = surfpara + ',height='+ myheight + ',width=' + mywidth;
		remotepara = 'left=100,top=0,height=' + (myheight+40) + ',width=' + remotewidth + 'directories=no,locationbar=no,menubar=no,status=no,scrollbars=no, toolbars=no';
		fenster1=window.open(remoteurl,'remote',remotepara);fenster1.moveTo(abstandlinks,abstandoben);
		} 
		
	else 
	
		{
		surfpara = surfpara + ',height=' + (myheight) + ',width=' + (abstandlinks-19);
		abstandoben = 15;
		fenster1=window.open(remoteurl,'remote',remotepara);fenster1.moveTo((abstandlinks + 10),50);
		}
	
		
	} else {
	
		if (navigator.appName=="Netscape")
		{
		mywidth = mywidth
		remotepara = 'left=100,top=5,height=' + (myheight+20) + ',width=' + remotewidth + 'directories=no,locationbar=no,menubar=no,status=no,scrollbars=no, toolbars=no';
		surfpara = surfpara + ',height=' + (myheight+2) + ',width=' + (abstandlinks-14);
		fenster1=window.open(remoteurl,'remote',remotepara);fenster1.moveTo(abstandlinks,abstandoben);
		}
		
	
		else 
		{
		mywidth = mywidth
		remotepara = 'left=100,top=5,height=' + (myheight+21) + ',width=' + remotewidth + 'directories=no,locationbar=no,menubar=no,status=no,scrollbars=no, toolbars=no';
		surfpara = surfpara + ',height=' + (myheight+2) + ',width=' + (abstandlinks-10);
		fenster1=window.open(remoteurl,'remote',remotepara);fenster1.moveTo(abstandlinks,abstandoben);
		} 
		
		}
	}		