//JavaScript - All rights reserved - Copyright by mediaLINK - Version 3.1 - 27.02.2001

//messages for external js-file
//noISO-setting for Mac and not for NS6 (as a Version 5) on Macs
noISO = 0;
if (navigator.appVersion.indexOf("Mac") > -1){ 
	if ((navigator.appName == "Netscape") && (parseInt(navigator.userAgent.substring(8,9)) >=5)){
	}else{
		noISO = 1;
	}
}

	nsMessage = "A Netscape bug requires you to pay attention!\n \nClick on [OK] only if a printing command that has already been entered is to be carried out. In all other cases, click on [Cancel].";

if (self.location.href.indexOf("deutsch") > -1){
	nsMessage = "Ein Netscape-Bug erfordert Ihre Aufmerksamkeit!\n \nKlicken Sie nur dann auf [OK], wenn ein bereits erteilter Druckbefehl ausgeführt werden soll. In allen anderen Fällen klicken Sie auf [Abbrechen].";
	if (noISO){
	nsMessage = "Ein Netscape-Bug erfordert Ihre Aufmerksamkeit!\n \nKlicken Sie nur dann auf [OK], wenn ein bereits erteilter Druckbefehl ausgefŸhrt werden soll. In allen anderen FŠllen klicken Sie auf [Abbrechen].";
	}
}

if (self.location.href.indexOf("francais") > -1){
	nsMessage = "Un bug du netscape mérite votre attention!\n \nCliquez seulement sur [OK] si une commande d'impression déjà transmise doit être exécutée. Dans tous les autres cas, cliquez sur [interrompre].";
	if (noISO){
	nsMessage = "Un bug du netscape mŽrite votre attention!\n \nCliquez seulement sur [OK] si une commande d'impression dŽjˆ transmise doit tre exŽcutŽe. Dans tous les autres cas, cliquez sur [interrompre].";
	}
}

if (self.location.href.indexOf("italiano") > -1){
	nsMessage = "Bug di Netscape: attenzione!\n \nSe si deve eseguire un ordine di stampa già dato, è sufficiente fare clic su [OK]. Altrimenti, fare clic su [Interrompi].";
	if (noISO){
	nsMessage = "Bug di Netscape: attenzione!\n \nSe si deve eseguire un ordine di stampa giˆ dato,  sufficiente fare clic su [OK]. Altrimenti, fare clic su [Interrompi].";
	}
}

if (self.location.href.indexOf("espanol") > -1){
	nsMessage = "Un bug de Netscape le hace una llamada de atención!\n \nHaga etonces clic sobre [OK] cuando deba ejecutarse una orden de impresión que ya haya sido impartida. En todos los otros casos haga clic sobre [Cancelar].";
	if (noISO){
	nsMessage = "Un bug de Netscape le hace una llamada de atenci—n!\n \nHaga etonces clic sobre [OK] cuando deba ejecutarse una orden de impresi—n que ya haya sido impartida. En todos los otros casos haga clic sobre [Cancelar].";
	}
}


//file-setting
if (self.location.href.indexOf("?") > -1){
	filename=self.location.href.substring(self.location.href.lastIndexOf("/")+1,self.location.href.lastIndexOf("?"));
}else{
	filename=self.location.href.substring(self.location.href.lastIndexOf("/")+1,self.location.href.length);
}
division=filename.substring(0,1);
rubric=filename.substring(0,3);
subrubric=filename.substring(1,3);

if (document.referrer){
	filename_ref=document.referrer.substring(document.referrer.lastIndexOf("/")+1,document.referrer.length);
	rubric_ref=filename_ref.substring(0,3);
}else{
	rubric_ref=rubric;
}


//general frameset-setting
framesetroot="../pagesnav/"+rubric+".htm";
nskip="";
docref="";
if (document.referrer){
	docref=docref+document.referrer;
}


//frameset-reconstruction
if (((navigator.appName=="Microsoft Internet Explorer") || (navigator.appName=="Netscape")) &&  (parseInt(navigator.userAgent.substring(8,9)) >= 4)){
	if ((navigator.appName=="Netscape") && (parseInt(navigator.userAgent.substring(8,9)) == 4)){
		//netscape singleframe-skip-detect
		sls=self.location.search.substring(1,self.location.search.length);
		if (sls!=""){
			nskip=sls;
		}	
		framesetroot="../pagesnav/framesN4.htm?"+filename;
	}else{
		framesetroot="../pagesnav/framesE4.htm?"+filename;
	}
}


//Netscape delay
function ndelay(){
	top.location.href=framesetroot;
}


//single-frame-function
if (self==top){
		if ((navigator.appName=="Netscape") && (parseInt(navigator.userAgent.substring(8,9)) == 4) && (nskip!="nskip") && (docref!="")){
			if (confirm(nsMessage)){
			}else{
			top.location.href=framesetroot;
			}
		}else{
			wait=setTimeout("ndelay()",100);
		}
}else{
		if ((self.name=="dsp") && (top.name=="main")){
			//nav-adjust
			if ((rubric!=rubric_ref) && (filename_ref.substring(3,4)=="_")){
				top.nav.location.href="../pagesnav/"+rubric+"nav.htm";
				top.sub.location.href="../pagesnav/"+rubric+"sub.htm";
			}
		}
}