<!--
// This only works with IE compatible browsers (is that support DIV)
// if you get the error 'this.cross_slide=null or not an object'
// make sure your image fspecs have / instead of \

var iedom=document.all||document.getElementById

function e(suffix)
{
	return  document.getElementById(this.name+"_"+suffix) 
}

function conveyor_fillup()
{
	if (!iedom) return;
	// create 1st copy of image array
	this.cross_slide			 = this.e("test2")
	this.cross_slide.innerHTML   = this.leftrightslide
	// create 2nd copy of image array
	this.cross_slide2			 = this.e("test3")
	this.cross_slide2.innerHTML  = this.leftrightslide
}


function conveyor_slideleft()
{
if (!iedom) return;
if (!this.e("temp"))return;
if (!this.cross_slide)return;
if (!this.cross_slide2)return;

// GET most recent (accurate) overall width 
// not always available at first, due to incorrect Width info provided in HTML
// 'temp' element is hidden span containing array of images - use it to get width of array
this.actualwidth  = this.e("temp").offsetWidth

// slide by changing CSS of DIV (style.left property) 
var L1 = parseInt(this.cross_slide.style.left)
var L2 = parseInt(this.cross_slide2.style.left)
if (L1<L2)
{
   this.cross_slide.style.left = L1 - this.copyspeed + "px" 
   var newL1 = parseInt(this.cross_slide.style.left)
   this.cross_slide2.style.left = newL1 + this.actualwidth + "px" 
}
else
{
   this.cross_slide2.style.left = L2 - this.copyspeed + "px" 
   var newL2 = parseInt(this.cross_slide2.style.left)
   this.cross_slide.style.left = newL2 + this.actualwidth + "px" 
}

// move block which is completely out of sight, to tail of next block
with (this.cross_slide)
	{
	if (parseInt(style.left)<=(this.actualwidth*(-1))) // completely out of sight
	 	    style.left=parseInt(this.cross_slide2.style.left)+ this.actualwidth +this.slideshowgap +"px" // put at tail
	}
with (this.cross_slide2)
	{
	if (parseInt(style.left)<=(this.actualwidth*(-1))) // completely out of sight
	 	    style.left=parseInt(this.cross_slide.style.left)+ this.actualwidth +this.slideshowgap + "px" // put at tail
	}
}


// call this to write image conveyor into code
function conveyor_write()
{
this.leftrightslide='<nobr>'+this.leftrightslide.join(this.imagegap)+'</nobr>'
if (!iedom) return;
with (document)
	{
	write('<span id="'+this.name+'_temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+this.leftrightslide+'</span>')
	//window.onload=this.fillup
	write('<table border="0" cellspacing="0" cellpadding="0"><td>')
	write('<div style="position:relative;width:'+this.sliderwidth+';height:'+this.sliderheight+';overflow:hidden">')
	write('<div style="position:absolute;width:'+this.sliderwidth+';height:'+this.sliderheight+';background-color:'+this.slidebgcolor+'"				onMouseover="'+this.name+'.copyspeed=0" onMouseout="'+this.name+'.copyspeed='+this.name+'.slidespeed">')
	write('<div id="'+this.name+'_test2" style="position:absolute;left:0px;top:0px"></div>')
	write('<div id="'+this.name+'_test3" style="position:absolute;left:-1000px;top:0px"></div>')
	write('</div></div>')
	write('</td></table>')
	}
this.fillup()
}



function conveyor( myname, height )
{

//Specify the slider's width (in pixels)
this.sliderwidth="100%"

//Specify the slider's height
this.sliderheight=(parseInt(height))+"px" // "75px" for logos, 200px for photos

//Specify the slider's slide speed (larger is faster 1-10)
this.slidespeed=1 // least artifacts

//configure background color:
//slidebgcolor="#EAEAEA"
this.slidebgcolor="#FFFFFF"

//Specify pixels gap between each slideshow rotation (use integer):
this.slideshowgap=0

//Specify gap between each image (use HTML): ex "&nbsp;&nbsp;&nbsp;"
this.imagegap=""

//////////////////////////////////////////////////////////
// internal init
//////////////////////////////////////////////////////////
this.name      = myname // instance specific
this.ID        = myname // instance specific
this.copyspeed = this.slidespeed

//methods
this.write = conveyor_write
this.slideleft = conveyor_slideleft
this.fillup = conveyor_fillup
this.e = e

//prerties to be set by conveyor_fillup()
this.leftrightslide=new Array() // array for slider's images
this.actualwidth=''
}




-->