﻿/*
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="100px"
//Specify the slider's height
var sliderheight="500px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
slidebgcolor="#FFFFFF"
//space between images
separation=1

//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[1]='<a href="http://ec.europa.eu/employment_social/index_en.html" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/9.gif" border=0 alt="European Commission"></a><br><br><br><br>'
vertslide[2]='<a href="http://www.travail-solidarite.gouv.fr/espaces/travail/771.html" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/11.gif" border=0 alt="French Ministry"></a><br><br><br><br>'
vertslide[3]='<a href="http://www.paris.fr" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/1.gif" border=0 alt="City of Paris"></a><br><br><br><br>'
vertslide[4]='<a href="http://www.cor.eu.int/en" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/5.gif" border=0 alt="Committee of the Regions"></a><br><br><br><br>'
vertslide[5]='<a href="http://www.ccre.org" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/6.gif" border=0 alt="CCRE"></a><br><br><br><br>'
vertslide[6]='<a href="http://www.eurofound.eu.int" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/7.gif" border=0 alt="European Foundation"></a><br><br><br><br>'
vertslide[7]='<a href="http://www.nopus.org" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/8.gif" border=0 alt="Norden"></a><br><br><br><br>'
vertslide[8]='<a href="http://www.reseau-ideal.asso.fr" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/ic-logo.gif" border=0 alt="Ideal Connaissances"></a><br><br><br><br>'
vertslide[9]='<a href="http://www.dexia.com/" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/4.gif" border=0 alt="Dexia"></a><br><br><br><br>'
vertslide[10]='<a href="http://www.sodexo.com/group_en/default2.asp" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/sodexo.gif" border=0 alt="Sodexo"></a><br><br><br><br>'
vertslide[11]='<a href="http://www.accorservices.com/EN/Pages/Default.aspx" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/accor.gif" border=0 alt="Accor"></a><br><br><br><br>'
vertslide[12]='<a href="http://www.adecco.com/Channels/adeccoNewVI/home/home1.asp" target="blank"><img src="http://www.bluefruits.co.uk/czech-slideshow/adeccologo.gif" border=0 alt="Adecco"></a><br><br><br><br>'



 

////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+00+"px"
}
lefttime=setInterval("slideup()",38)
}
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 style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden;">')
d.write('<div 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>')
}

