//Specify the marquee's width (in pixels)
var marqueewidth = "530px"

//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed = 4 //This will affect the speed before the pause, i.e before the mouse 

//Pause marquee onMousever (0=no. 1=yes)?
var pauseit = 0

var initialPosition = ""

if (language == 'Arabic')
	initialPosition = "520px"
else
	initialPosition = parseInt(marqueewidth) + 8 + "px"

var copyspeed = marqueespeed

var pausespeed = (pauseit == 0)? copyspeed : 0

var iedom = document.all || document.getElementById

document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>')

var actualwidth=''
var cross_marquee, ns_marquee

function populate()
{
	cross_marquee = document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
	cross_marquee.style.left = initialPosition
	cross_marquee.innerHTML = marqueecontent
	if (language == 'Arabic')
		actualwidth = "520" 
	else
		actualwidth = document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
	
	//lefttime = setInterval("scrollmarquee()",50) // To determine the speed after the pause
}
window.onload = populate

function scrollmarquee()
{
	if (language == 'Arabic')
	{
		if (
			parseInt(cross_marquee.style.left)<(actualwidth))
			cross_marquee.style.left = parseInt(cross_marquee.style.left)+ copyspeed + "px"
		else
			cross_marquee.style.left = "-100px"
	}
	else
	{
		if (parseInt(cross_marquee.style.left)>(actualwidth * (-1) + 8))
			cross_marquee.style.left = parseInt(cross_marquee.style.left)- copyspeed + "px"
		else
			cross_marquee.style.left = parseInt(marqueewidth) + 8 + "px"
	}
}
