// Definer størrelsen på scrolleren
	var sw		=	'122px'
	var sh		=	'132px'


// Definer den tid teksten skal vises
	var pi		=	3000
	var to		=	10


// Script variabler - ret ikke her!!!
	var dm		=	document.getElementById
	var ms		=	document.all


// Tekststrengen opbygges her
	var TextString=new Array()


//Tilføj bare lige så mange som du skal bruge. Husk at tallet der står i [0] skal være fortløbende.
//Scriptet understøtter almindelig HTML tegn.


TextString[0] ='<a href="http://www.inch.dk/" target="_blank"><img alt="" src="images_sponsorer/inch.png" width="122" height="122"></a>'
TextString[1] ='<a href="http://www.ukbikestore.co.uk/" target="_blank"><img alt="" src="images_sponsorer/ukbikestore.png" width="122" height="62"></a>'
TextString[2] ='<a href="http://www.sparkron.dk/Find_os/Andre%20byer/Skanderborg/" target="_blank"><img alt="" src="images_sponsorer/sparekassenkronjylland.png" width="122" height="62"></a>'
TextString[3] ='<a href="http://www.mtbvintercup.dk/" target="_blank"><img alt="" src="images_sponsorer/vintercup.png" width="122" height="122"></a>'
TextString[4] ='<a href="http://www.dgi.dk/" target="_blank"><img alt="" src="images_sponsorer/dgi.png" width="122" height="62"></a>'
TextString[5] ='<a href="http://www.chainreactioncycles.com/" target="_blank"><img alt="" src="images_sponsorer/chainreactioncycles.png" width="122" height="62"></a>'
TextString[6] ='<a href="http://www.bike-discount.de/" target="_blank"><img alt="" src="images_sponsorer/hsbikediscount.png" width="122" height="62"></a>'
TextString[7] ='<a href="http://www.wiggle.co.uk/" target="_blank"><img alt="" src="images_sponsorer/wiggle.png" width="122" height="62"></a>'
TextString[8] ='<a href="http://www.mtbvintercup.dk/" target="_blank"><img alt="" src="images_sponsorer/vintercup.png" width="122" height="122"></a>'


// Så går vi i krig med selve scriptet.

if (TextString.length>=3) 
i=2
else 
i=0

function Action1(MyDIV){
	layertext=eval(MyDIV)
	if (layertext.top>0&&layertext.top<=5){
	layertext.top=0
	setTimeout("Action1(layertext)",pi)
	setTimeout("Action2(document.main.document.second)",pi)
	return
	}
	if (layertext.top>=layertext.document.height*-1){
	layertext.top-=5
	setTimeout("Action1(layertext)",to)
	}
	else{
	layertext.top=parseInt(sh)
	layertext.document.write(TextString[i])
	layertext.document.close()
	if (i==TextString.length-1)
	i=0
	else
	i++
	}
	}

function Action2(MyDIV){
	layertext2=eval(MyDIV)
	if (layertext2.top>0&&layertext2.top<=2){
	layertext2.top=0
	setTimeout("Action2(layertext2)",pi)
	setTimeout("Action1(document.main.document.first)",pi)
	return
	}
	if (layertext2.top>=layertext2.document.height*-1){
	layertext2.top-=2
	setTimeout("Action2(layertext2)",to)
	}
	else{
	layertext2.top=parseInt(sh)
	layertext2.document.write(TextString[i])
	layertext2.document.close()
	if (i==TextString.length-1)
	i=0
	else
	i++
	}
}

function Action3(MyDIV){
	divtext=eval(MyDIV)
	if (parseInt(divtext.style.top)>0&&parseInt(divtext.style.top)<=5){
	divtext.style.top=0+"px"
	setTimeout("Action3(divtext)",pi)
	setTimeout("Action4(second2_obj)",pi)
	return
	}
	if (parseInt(divtext.style.top)>=divtext.offsetHeight*-1){
	divtext.style.top=parseInt(divtext.style.top)-5+"px"
	setTimeout("Action3(divtext)",to)
	}
	else{
	divtext.style.top=sh
	divtext.innerHTML=TextString[i]
	if (i==TextString.length-1)
	i=0
	else
	i++
	}
}

function Action4(MyDIV){
	divtext2=eval(MyDIV)
	if (parseInt(divtext2.style.top)>0&&parseInt(divtext2.style.top)<=5){
	divtext2.style.top=0+"px"
	setTimeout("Action4(divtext2)",pi)
	setTimeout("Action3(first2_obj)",pi)
	return
	}
	if (parseInt(divtext2.style.top)>=divtext2.offsetHeight*-1){
	divtext2.style.top=parseInt(divtext2.style.top)-5+"px"
	setTimeout("Action4(second2_obj)",to)
	}
	else{
	divtext2.style.top=sh
	divtext2.innerHTML=TextString[i]
	if (i==TextString.length-1)
	i=0
	else	
	i++
	}
}

function BannerRoller(){
	if (ms||dm){
	first2_obj=ms? first2 : document.getElementById("first2")
	second2_obj=ms? second2 : document.getElementById("second2")
	Action3(first2_obj)
	second2_obj.style.top=sh
	second2_obj.style.visibility='visible'
}
	else if (document.layers){
	document.main.visibility='show'
	Action1(document.main.document.first)
	document.main.document.second.top=parseInt(sh)+2
	document.main.document.second.visibility='show'
}
}
	
