
//Specify the slider's width (in pixels)
var sliderwidth="150px"
//Specify the slider's height
var sliderheight="550px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1
//configure background color:
//slidebgcolor="#F8EFE3"
slidebgcolor="";
var maxWidth = 150;

function unscaleImage() {

  this.width = this.width == maxWidth? this.orgwidth:maxWidth;

}

function scaleImage(im) {

  if (im.width > maxWidth) {

    im.orgwidth = im.width;
    im.width = maxWidth;
    im.onclick = unscaleImage;

  }

}



//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
/*
leftrightslide[0]='<a href="/5678"><img src="/gfx/huis1.jpg" alt="" onload="scaleImage(this)" border=1></a><br>Duitsland Eifel<br>10-01-2005 t/m<br>20-01-2005 <b>&euro;250,-</b><br><a href="/5678">Bekijken</a><br>&nbsp;'
leftrightslide[1]='<a href="/5678"><img src="/gfx/huis2.jpg" alt="" onload="scaleImage(this)" border=1></a><br>Duitsland Eifel<br>10-01-2005 t/m<br>20-01-2005 <b>&euro;250,-</b><br><a href="/5678">Bekijken</a><br>&nbsp;'
leftrightslide[2]='<a href="/5678"><img src="/gfx/huis1.jpg"alt="" onload="scaleImage(this)"  border=1></a><br>Duitsland Eifel<br>10-01-2005 t/m<br>20-01-2005 <b>&euro;250,-</b><br><a href="/5678">Bekijken</a><br>&nbsp;'
leftrightslide[3]='<a href="/5678"><img src="/gfx/huis2.jpg" alt="" onload="scaleImage(this)" border=1></a><br>Duitsland Eifel<br>10-01-2005 t/m<br>20-01-2005 <b>&euro;250,-</b><br><a href="/5678">Bekijken</a><br>&nbsp;'
*/

//Specify gap between each image (use HTML):
var imagegap=""

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=3


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
var iedom=document.all||document.getElementById
var actualwidth=''
var actualheight=''
var cross_slide, ns_slide			

function initslider(){
//leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
leftrightslide=leftrightslide.join(imagegap)

if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-1550px">'+leftrightslide+'</span>')
}
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
		actualheight=document.all? cross_slide.offsetHeight : document.getElementById("temp").offsetHeight
		if(actualheight>0)
			 actualheight=1550
		cross_slide2.style.top=(actualheight)+slideshowgap+"px"
	}
	else if (document.layers){
		ns_slide=document.ns_slidemenu.document.ns_slidemenu2
		ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
		ns_slide.document.write(leftrightslide)
		ns_slide.document.close()
		actualheight=ns_slide.document.height
		ns_slide2.top=actualheight+slideshowgap
		ns_slide2.document.write(leftrightslide)
		ns_slide2.document.close()
	}
	lefttime=setInterval("slidetop()",30)
}

function slidetop(){
	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)+slideshowgap+"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)+slideshowgap+"px"
		
	}
	else if (document.layers){
		if (ns_slide.top>(actualheight*(-1)+8))
		ns_slide.top-=copyspeed
		else
		ns_slide.top=ns_slide2.top+actualheight+slideshowgap
		
		if (ns_slide2.top>(actualheight*(-1)+8))
		ns_slide2.top-=copyspeed
		else
		ns_slide2.top=ns_slide.top+actualheight+slideshowgap
	}
}


