var tickercontents=new Array()
tickercontents[0]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=8" target="_self" >Cabrio\'s</a><span class="ticker"> - de wind door je haren</span></b>'
tickercontents[1]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=2" target="_self" >Touran</a><span class="ticker"> - moderne stijl en een grotere persoonlijkheid</span></b>'
tickercontents[2]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=9" >Low Budgets</a><span class="ticker"> - auto\'s voor de laagste prijs</span></b>'
tickercontents[3]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=35" target="_self" >Op zoek naar een SUV?</a><span class="ticker"> - Kijk snel!</span></b>'
tickercontents[4]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php" target="_self" >Lenferink</a><span class="ticker"> - De grootste in uw rijplezier</span></b>'
tickercontents[5]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=10" target="_self" >Automaten</a><span class="ticker"> - geniet van het gemak !</span></b>'
tickercontents[6]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=36" target="_self" >VW Passat</a><span class="ticker"> - 15x uit voorraad leverbaar</span></b>'
tickercontents[7]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=37" target="_self" >VW Golf IV en V</a><span class="ticker"> - Altijd 50 stuks op voorraad</span></b>'
tickercontents[8]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=38" target="_self" >Bedrijfswagens</a><span class="ticker"> - Altijd 500 bedrijfswagens op voorraad!</span></b>'
tickercontents[9]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=39" target="_self" >Audi A4</a><span class="ticker"> - Wat een geweldig aanbod!</span></b>'
tickercontents[10]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=40" target="_self" >Isuzu</a><span class="ticker"> - Lenferink Auto\'s nu officieel dealer van Isuzu</span></b>'
tickercontents[11]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=41" target="_self" >VW Transporter</a><span class="ticker"> - Door grote inkoop zeer voordelig!</span></b>'
tickercontents[12]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=13" target="_self" >Campers</a><span class="ticker"> - vakantie kriebels?</span></b>'
tickercontents[13]='<img border="0" src="102.gif"> <b><a class="ticker" href="index.php?option=com_wrapper&Itemid=12" target="_self" >Trucks</a><span class="ticker"> - het zware werk</span></b>'



var persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".

//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var tickdelay=4000

////Do not edit pass this line////////////////

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
var currentmessage=0

function changetickercontent(){
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Apply()
crosstick.innerHTML=tickercontents[currentmessage]
if (crosstick.filters && crosstick.filters.length>0)
crosstick.filters[0].Play()
currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1
var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
setTimeout("changetickercontent()",tickdelay+filterduration)
}

function beginticker(){
if (persistlastviewedmsg && get_cookie("lastmsgnum")!="")
revivelastmsg()
crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker
changetickercontent()
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savelastmsg(){
document.cookie="lastmsgnum="+currentmessage
}

function revivelastmsg(){
currentmessage=parseInt(get_cookie("lastmsgnum"))
currentmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg

if (document.all||document.getElementById)
document.write('<div id="memoryticker" '+divonclick+'></div>')
if (window.addEventListener)
window.addEventListener("load", beginticker, false)
else if (window.attachEvent)
window.attachEvent("onload", beginticker)
else if (document.all || document.getElementById)
window.onload=beginticker