var opacity=100;var tickWidth= 10;var isMSIE = false;var isFF = false;// Hide menu & text to avoid screen flash document.write('<link rel="stylesheet" href="../../style/index_script.css" type="text/css" media="screen" />');		function browserCheck(){	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);		var ffVer=new Number(RegExp.$1) // capture x.x portion and store as a number	}	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;		var ieVer=new Number(RegExp.$1) // capture x.x portion and store as a number	}	if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Opera/x.x or Opera x.x (ignoring remaining decimal places);		var opVer=new Number(RegExp.$1) // capture x.x portion and store as a number	}	 	return(  true );} function pageLoaded(){	//var elText = window.document.getElementById('indexText');	//if (elText) elText.style.visibility='hidden';	var elImg= window.document.getElementById('indexOverlay');	elImg.style.display='block';	startFade();	setTimeout('showTicker()',40);	setTimeout('showPage()',3000);}function showTicker(){	var el = window.document.getElementById('indexTicker');	tickWidth += 1;	if (tickWidth <=100){		el.style.width = tickWidth + '%';		setTimeout('showTicker()',40);	}}function startFade(){	var img = new Fader('indexOverlay', 100, 0, 3000, 50); 	img.fade();}function showPage(){	var el = window.document.getElementById('header');	if (el) el.style.visibility='visible';	el = window.document.getElementById('indexText');	if (el) el.style.visibility='visible';	el = window.document.getElementById('menu');	if (el)  el.style.visibility='visible';}if (browserCheck()) {	 if (isFF) onload=pageLoaded();	 else onload=pageLoaded;} function Fader(strID, start, end, startDelay, fadeDelay){	this.enabled = false;	this.id = strID;	this.opacityStart=start;	this.opacityEnd=end;	this.startDelayMS = startDelay;	// Methods	this.checkEnabled = checkEnabled;	this.fade = fade;	this.checkEnabled();		this.fadeDelayMS = (fadeDelay) ? fadeDelay: 10;  	this.fadeStep = 2;  	if (document.getElementById) this.el = window.document.getElementById(strID);	else if (document.all) this.el = window.document.all[strID];	if(this.opacityStart==0) this.el.style.visibility='hidden'; 	if (this.isIE)	this.el.style.filter= "alpha(opacity=" + this.opacity + ")"; 	else if (this.isFF || this.isSafari || this.isOpera) this.el.style.opacity =this.opacity/100;		function fade(){	if (!this.enabled) return;		if (this.startDelayMS > 0){		var pThis = this;		var f = function(){pThis.fade();}		this.delayID =  setTimeout(f,  this.startDelayMS);		this.startDelayMS=0		return;	}		if (this.el  ){		var timer = 0;		if ( this.opacityStart< this.opacityEnd){			for(i = this.opacityStart; i <= this.opacityEnd; i++) { 				setTimeout("changeOpac(" + i + ",'" + this.id + "')",(timer * this.fadeDelayMS)); 				timer++; 				if (timer>(this.opacityEnd-10)) timer++; // increase delay towards end			}		}		else{			for(i = this.opacityStart; i >= this.opacityEnd; i=i-2) { 				//if (timer > 75) window.status += ' ' + (timer * this.fadeDelayMS);				setTimeout("changeOpac(" + i + ",'" + this.id + "')",(timer * this.fadeDelayMS)); 				timer++; 				if (i < (this.opacityEnd+10)) timer++; // increase delay towards end			}				}   	}} 		function checkEnabled(){	this.isIE = false;	this.isFF = false;	this.isSafari = false;	this.isOpera = false;	// convert all characters to lowercase to simplify testing	var agt=navigator.userAgent.toLowerCase();	var app=navigator.appName.toLowerCase();		 //alert( agt + '\n\n' + app);	if (app.indexOf("microsoft")!=-1 && parseInt(navigator.appVersion)>=4) {		this.enabled = true;		this.isIE = true	}	if (agt.indexOf("firefox")!=-1  ) {		this.enabled = true;		this.isFF = true	}	if (agt.indexOf("safari")!=-1  ) {		this.enabled = true;		this.isSafari = true	} 	if (agt.indexOf("opera")!=-1  ) {		this.enabled = true;		this.isOpera = true	} }}//change the opacity for different browsers function changeOpac(opacity, id) {     var object = document.getElementById(id).style; 	object.visibility='visible';;    object.opacity = (opacity / 100);     object.MozOpacity = (opacity / 100);     object.KhtmlOpacity = (opacity / 100);     object.filter = "alpha(opacity=" + opacity + ")"; 		if (opacity==100 && object.filter)   object.filter = null;	if (opacity==0 )   object.display = 'none';	 } function checkEnabled(){	this.isIE = false;	this.isFF = false;	this.isSafari = false;	this.isOpera = false;	// convert all characters to lowercase to simplify testing	var agt=navigator.userAgent.toLowerCase();	var app=navigator.appName.toLowerCase();		 //alert( agt + '\n\n' + app);	if (app.indexOf("microsoft")!=-1 && parseInt(navigator.appVersion)>=4) {		this.enabled = true;		this.isIE = true	}	if (agt.indexOf("firefox")!=-1  ) {		this.enabled = true;		this.isFF = true	}	if (agt.indexOf("safari")!=-1  ) {		this.enabled = true;		this.isSafari = true	} 	if (agt.indexOf("opera")!=-1  ) {		this.enabled = true;		this.isOpera = true	} }
