function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=0
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}



marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.left="0px"
cross_marquee.innerHTML=marqueecontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.left=0
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualwidth=ns_marquee.document.width
}
lefttime=setInterval("scrollmarquee()",20)
}
window.onload=populate

var outOfBoundsR = false;
var outOfBoundsL = false;

function scrollmarquee(){
if(stopScroll)return;
if (iedom){

if(outOfBoundsR &&  copyspeed<0)return;
if(outOfBoundsL &&  copyspeed>0)return;

	cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"

if (parseInt(cross_marquee.style.left)<(actualwidth*(-1)+marqueewidth*1.01))
{
	outOfBoundsL = true;
	copyspeed*=-1;
	}
else
outOfBoundsL = false;

if (parseInt(cross_marquee.style.left)>0)
{
	outOfBoundsR = true;
	copyspeed*=-1;
	}
		else
		outOfBoundsR = false;
}

else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed
else
copyspeed=0;
}
}


