//JavaScript - Copyright by mediaLINK - V2.4/29.03.2004


//-----default-settings
//following if-query to prevent ev. location-attaches on netscape (to adjust, if location-attaches can contain slashes)
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);
}
rubric = filename.substring(0,2);
if (self==top){
	top.location.href = rubric+".htm";
}


//rollover-section
if (document.images){
	var imageov = new Array();
	var imageof = new Array();

	for (var z=2; z<=6; z++){
        imageov['h0'+z] = new Image();
		imageov['h0'+z].src = "../graphnav/h0"+z+"ov.gif";
		imageof['h0'+z] = new Image();
		imageof['h0'+z].src = "../graphnav/h0"+z+"of.gif";
	}
		

	for (var z=1; z<=10; z++){
		zz = "0"+z;
		zz = zz.substring(zz.length-2,zz.length);	
		imageov['t'+zz] = new Image();
		imageov['t'+zz].src = "../graphnav/iconon.gif";
		imageof['t'+zz] = new Image();
		imageof['t'+zz].src = "../graphnav/iconof.gif";
	}
}


var iBuf = "t01";


function imgov(i){
	if (document.images){
		document.images[i].src=imageov[i].src;
	}
}

function imgof(i){
	if (document.images){
		document.images[i].src = imageof[i].src;
	}
}

function imgon(i){
		if (document.images){
			if ((iBuf != "") && (iBuf != i)){
				document.images[iBuf].src = imageof[iBuf].src;		
			}
			document.images[i].src = imageov[i].src;
			iBuf = i;
		}
}

//other functions
function setnav(f){
	navfile = f;
	wait = setTimeout("JavaScript:top.nav.location.href=navfile",100);
}


//-----print functions
function printdsp(){
	if ((self.print) || (ieX && WIN)){
		if (self.print){			//NS4W/NS4.5M/Mozilla1.1M/NS6.2W/IE5W/IE5.5W
			if (self.focus){
				top.dsp.focus();	//for E5W
			}
			top.dsp.print();	
		}else{
			top.dsp.printo();				//IEXWin (script in rootdsp.js)
		}
	}else{
		alert("This Browser doesn't support this print-option. Please use the specific print function of your browser.");
	}
}