var sliderwidth="1200px"
var sliderheight="100px"
var slidespeed=1;
slidebgcolor="transparent";

//Specify the slider's images
var leftrightslide=new Array();
var finalslide='';


var copyspeed=slidespeed
//leftrightslide='<nobr>'+leftrightslide.join(" ")+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)

document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px;width:auto;">'+leftrightslide+'</span>')
var actualwidth='';
var cross_slide;
var ns_slide;
		

function fillup(){

cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
tmpslidestr='';
for(i in leftrightslide)
{
	tmpslidestr +=leftrightslide[i];
}

cross_slide.innerHTML=cross_slide2.innerHTML=tmpslidestr
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
sliderwidth = actualwidth+"30px";
cross_slide2.style.left=actualwidth+20+"px"


lefttime=setInterval("slideleft()",30)
}


function slideleft(){

if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
{
	cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
}
else
{

	cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+30+"px"
}

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
{
	cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
}
else
{
	cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+30+"px"
}

}


function writeBanner()
{
	str='';
	
	
		
			str+='<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">';
			str+='<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">';
			str+='<div id="test2" style="position:absolute;left:0px;top:0px"></div>';
			str+='<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>';
			str+='</div></div>';
		
		
	
		document.getElementById('bannercontent').innerHTML=str;
		
	

	fillup();
}
	

