//JavaScript - All rights reserved - Copyright by mediaLINK - v5.3/28.05.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);


//-----frame-functions
framesetroot = rubric+".htm";
if (self == top){
	top.location.href = framesetroot;
}


//-----rollover section
if (document.images){
	var imageov = new Array();
	var imageof = new Array();
	
	//fnc
	for (var z=8; z<=10; z++){
		zz = "0"+z;
		zz = zz.substring(zz.length-2,zz.length);
		y = z-7;
		yy = "0"+y;
		yy = yy.substring(yy.length-2,yy.length);
		imageov['fnc'+yy] = new Image();
		imageov['fnc'+yy].src = "../../any/graphnav/nav" + zz + "ov.gif";
		imageof['fnc'+yy] = new Image();
		imageof['fnc'+yy].src = "../../any/graphnav/nav" + zz + "of.gif";
	}
	
	//nav main
	for (var z=12; z<=17; z++){
		zz = "0"+z;
		zz = zz.substring(zz.length-2,zz.length);
		y = z-11;
		yy = "0"+y;
		yy = yy.substring(yy.length-2,yy.length);
		imageov['R'+yy] = new Image();
		imageov['R'+yy].src = "../graphnav/nav" + zz + "ov.gif";
		imageof['R'+yy] = new Image();
		imageof['R'+yy].src = "../graphnav/nav" + zz + "of.gif";
	}
}


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;
	}
}



//------various function

function defocus(t){
	if (t.blur){t.blur()}
}


//-----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(msgPrintingFailed);
	}
}


