/*

Conveyor belt slideshow script- 

© Dynamic Drive (www.dynamicdrive.com)

For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com

*/



//Specify the slider's width (in pixels)

var sliderwidth="135px"

//Specify the slider's height

var sliderheight="200px"

//Specify the slider's slide speed (larger is faster 1-10)

var slidespeed=1

//configure background color:

slidebgcolor="#FAF6EE"

//space between images

separation=6



//Specify the slider's images

var vertslide=new Array()

var finalslide=''



//NOTE: the CSS 'margin-left' property helps center the image, moving it to the right

vertslide[0]='<a href="/adriatika.html"><img src="/img/sponsors/int-110x94-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[1]='<a href="/spec.html"><img src="/img/sponsors/int-110x64-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[2]='<a href="/spec.html"><img src="/img/sponsors/int-110x76-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[3]='<a href="/spec.html"><img src="/img/sponsors/int-110x74-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[4]='<a href="/adriatika.html"><img src="/img/sponsors/int-110x94-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[5]='<a href="/spec.html"><img src="/img/sponsors/int-110x64-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[6]='<a href="/spec.html"><img src="/img/sponsors/int-110x76-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'
vertslide[7]='<a href="/spec.html"><img src="/img/sponsors/int-110x74-01.gif" style="border:'+separation+'px '+slidebgcolor+' solid;margin-left:4px;"></a>'




////NO NEED TO EDIT BELOW THIS LINE////////////



var copyspeed=slidespeed

var iedom=document.all||document.getElementById

if (iedom)

document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+vertslide.join("<br>")+'</span>')

var actualheight=''

var cross_slide, ns_slide

vertslide=vertslide.join("")



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=vertslide

actualheight=document.all? cross_slide.offsetHeight : document.getElementById("temp").offsetHeight

cross_slide2.style.top=actualheight+20+"px"

}

lefttime=setInterval("slideup()",30)

}

window.onload=fillup



function slideup(){

if (iedom){

if (parseInt(cross_slide.style.top)>(actualheight*(-1)+8))

cross_slide.style.top=parseInt(cross_slide.style.top)-copyspeed+"px"

else

cross_slide.style.top=parseInt(cross_slide2.style.top)+actualheight+30+"px"

if (parseInt(cross_slide2.style.top)>(actualheight*(-1)+8))

cross_slide2.style.top=parseInt(cross_slide2.style.top)-copyspeed+"px"

else

cross_slide2.style.top=parseInt(cross_slide.style.top)+actualheight+30+"px"

}

}



if (iedom){

var d=document;

d.write('<table border="0" cellspacing="0" cellpadding="0"><td>')

d.write('<div align=center style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden;">')

d.write('<div align=center style="width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')

d.write('<div id="test2" style="position:absolute;left:0px;top:0px;"></div>')

d.write('<div id="test3" style="position:absolute;left:0px;top:-1000px"></div>')

d.write('</div></div>')

document.write('</td></table>')

}

