var pscrollerdelay='4000' //delay between msg scrolls. 3000=3 seconds.
var pscrollerwidth='160px'
var pscrollerheight='60px'
var pscrollerbgcolor=''
//set below to '' if you don't wish to use a background image
var pscrollerbackground=''

//configure the below variable to change the contents of the scroller
var pmessages=new Array()
pmessages[0]="<a href='http://www.bles-dairies.nl/' target='_blank'>Bles Dairies Livestock BV</a>"
pmessages[1]="<a href='http://www.bromach.nl/' target='_blank'>Bromach BV</a>"
pmessages[2]="<a href='http://www.deltainstruments.com/' target='_blank'>Delta Instruments BV</a>"
pmessages[3]="<a href='http://www.deltainstruments.com/' target='_blank'>The Friesian BV</a>"
pmessages[4]="<a href='http://www.imtech.nl/' target='_blank'>Imtech Projects Noord-Oost BV</a>"
pmessages[5]="<a href='http://www.deboerstal.com/' target='_blank'>Royal De Boer Stalinrichtingen BV</a>"
pmessages[6]="<a href='http://www.uniform-agri.com/' target='_blank'>Uniform Agri BV </a>"
pmessages[7]="<a href='http://www.heuvelzuivelmachines.nl/' target='_blank'>Van den Heuvel Dairy and Food Equipment BV</a>"
pmessages[8]="<a href='http://www.wileetechniek.nl/' target='_blank'>Wilee Techniek BV</a>"
///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (pmessages.length>2)
pi=2
else
pi=0

function pmove(pwhichdiv){
ptdiv=eval(pwhichdiv)
if (parseInt(ptdiv.style.top)>0&&parseInt(ptdiv.style.top)<=5){
ptdiv.style.top=0+"px"
setTimeout("pmove(ptdiv)",pscrollerdelay)
setTimeout("pmove2(psecond2_obj)",pscrollerdelay)
return
}
if (parseInt(ptdiv.style.top)>=ptdiv.offsetHeight*-1){
ptdiv.style.top=parseInt(ptdiv.style.top)-5+"px"
setTimeout("pmove(ptdiv)",50)
}
else{
ptdiv.style.top=parseInt(pscrollerheight)+"px"
ptdiv.innerHTML=pmessages[pi]
if (pi==pmessages.length-1)
pi=0
else
pi++
}
}

function pmove2(pwhichdiv){
pptdiv2=eval(pwhichdiv)
if (parseInt(pptdiv2.style.top)>0&&parseInt(pptdiv2.style.top)<=5){
pptdiv2.style.top=0+"px"
setTimeout("pmove2(pptdiv2)",pscrollerdelay)
setTimeout("pmove(pfirst2_obj)",pscrollerdelay)
return
}
if (parseInt(pptdiv2.style.top)>=pptdiv2.offsetHeight*-1){
pptdiv2.style.top=parseInt(pptdiv2.style.top)-5+"px"
setTimeout("pmove2(psecond2_obj)",50)
}
else{
pptdiv2.style.top=parseInt(pscrollerheight)+"px"
pptdiv2.innerHTML=pmessages[pi]
if (pi==pmessages.length-1)
pi=0
else
pi++
}
}

function pstartscroll(){
pfirst2_obj=ie? pfirst2 : document.getElementById("pfirst2")
psecond2_obj=ie? psecond2 : document.getElementById("psecond2")
pmove(pfirst2_obj)
psecond2_obj.style.top=pscrollerheight
psecond2_obj.style.visibility='visible'
}

if (ie||dom){
document.writeln('<div id="pmain2" style="position:relative;width:'+pscrollerwidth+';height:'+pscrollerheight+';overflow:hidden;background-color:'+pscrollerbgcolor+' ;background-image:url('+pscrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+pscrollerwidth+';height:'+pscrollerheight+';clip:rect(0 '+pscrollerwidth+' '+pscrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="pfirst2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(pmessages[0])
document.writeln('</div>')
document.writeln('<div id="psecond2" style="position:absolute;width:'+pscrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(pmessages[dyndetermine=(pmessages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", pstartscroll, false)
else if (window.attachEvent)
window.attachEvent("onload", pstartscroll)
else if (ie||dom)
window.onload=pstartscroll
