/*
Cross browser Marquee script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

//Specify the marquee's width (in pixels)
var marqueewidth="1000px";

//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=3;

//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1;


////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>');
var actualwidth='';
var cross_marquee;

function populate(){
	cross_marquee=document.getElementById("iemarquee");
	cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
	cross_marquee.innerHTML=marqueecontent;
	actualwidth=document.getElementById("temp").offsetWidth;
	lefttime=setInterval("scrollmarquee()",20);
}

window.onload=populate;

function scrollmarquee(){
	if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) {
		cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px";
		//cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
	} 
	else {
		cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
	}
}


