/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="100%"
//Specify the slider's height
var sliderheight="250px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
var x = 0 ;
//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<img src="images/strip-1.gif" border=0  width=1000 height=250>'
leftrightslide[1]='<img src="images/strip-2.gif" border=0  width=1000 height=250>'
/*
leftrightslide[2]='<a href="http://"><img src="images/strip1.gif" border=1></a>'
leftrightslide[3]='<a href="http://"><img src="images/strip1.gif" border=1></a>'
leftrightslide[4]='<a href="http://"><img src="images/strip1.gif" border=1></a>'*/

//Specify gap between each image (use HTML):
var imagegap=" "

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
		if (x == 0){
				
		lefttime=setInterval("slideleft()",30)
		x = 1 ;
		}
}
/*window.onload=fillup*/

function slideleft(){
if (iedom){
		
				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+slideshowgap+"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+slideshowgap+"px"
			
		
}

}

function start2(){
if (iedom||document.layers){

var id1 = document.getElementById("belt");
id1.innerHTML = '<table border="0" cellspacing="0" cellpadding="0"><td>' ;
if (iedom){
id1.innerHTML +='<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden"><div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"><div id="test2" style="position:absolute;left:0px;top:0px"></div><div id="test3" style="position:absolute;left:-1000px;top:0px"></div></div></div></td></table>';
}

}
}







