var globalScope = new Array();
/* for ticker stuff */
var domain = document.location.hostname;
var curimg=0;
var ticker = new Array();
var splashArray = new Array();
var timerint = 0;
var timerint2 = 0;
var b = 0;
var idx = 0;

function Heading(heading,base,rate) {
this.baseopacity=base
this.faderate=rate
/* for ie compatibility */
this.uniqueId = heading
globalScope[this.uniqueId] = this;

if (document.getElementById)
this.textcontainerobj=document.getElementById(heading)
document.browserdetect=this.textcontainerobj.filters? "ie" : typeof this.textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""

if (document.browserdetect=="mozilla") {
	this.baseopacity=base/100
	this.faderate=rate/100
	if(!base)
	  this.textcontainerobj.style.MozOpacity=this.baseopacity
	else
	  this.textcontainerobj.style.MozOpacity=1
}
else if (document.browserdetect=="ie") {
	if(!base)
	  this.textcontainerobj.filters.alpha.opacity=this.baseopacity
	else
	  this.textcontainerobj.filters.alpha.opacity=100
}
else {
	this.baseopacity=base/100
	this.faderate=rate/100
	if(!base)
	  this.textcontainerobj.style.opacity=this.baseopacity
	else
	  this.textcontainerobj.style.opacity=1
}

this.showHeading = function(){
browserdetect=this.textcontainerobj.filters? "ie" : typeof this.textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
this.cleartimer();
//this.highlighting = setInterval(function(that){that.gradualfade(that.textcontainerobj,1);}, 50, this );
this.highlighting = setInterval('ieIntervalHandler("' + this.uniqueId + '","gradualfade","1")', 50 );
}

this.hideheading = function(){
if(this.textcontainerobj.className == "on") {}
else {
browserdetect=this.textcontainerobj.filters? "ie" : typeof this.textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
this.cleartimer();
//this.highlighting = setInterval(function(that){that.gradualfade(that.textcontainerobj,0);}, 50, this );
this.highlighting = setInterval('ieIntervalHandler("' + this.uniqueId + '","gradualfade","0")', 50 );
}
}

this.cleartimer = function(){
	clearInterval(this.highlighting)
}

this.gradualfade = function(cur2,typ){
if(typ) {
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+this.faderate, 1)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=this.faderate
else if (cur2.style.opacity<1)
cur2.style.opacity=Math.min(parseFloat(cur2.style.opacity)+this.faderate, 1)
else clearInterval(this.highlighting);
} else {
if (browserdetect=="mozilla" && cur2.style.MozOpacity>this.baseopacity)
cur2.style.MozOpacity=Math.max(parseFloat(cur2.style.MozOpacity)-0.10, 0)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity>this.baseopacity)
cur2.filters.alpha.opacity-=10
else if (cur2.style.opacity>this.baseopacity)
cur2.style.opacity=Math.max(parseFloat(cur2.style.opacity)-0.10, 0)
else clearInterval(this.highlighting);
}
}
}

function ieIntervalHandler( id, strFunc, typ ) {
	var scope = globalScope[id];
	var scope2 = globalScope[id].textcontainerobj;
	eval( "scope." + strFunc + "(scope2," + typ + ")" );
}

