/*
copyright porta.com
*/
var inhoud=new Array()
inhoud[0]='Bent u op zoek naar een goed universeel 3D programma? Bezoek <a href="http://www.3dontwerpen.nl/sketchup">www.3dontwerpen.nl</a>!'
inhoud[1]='Of bekijk de vele voorbeelden die er mee zijn gemaakt: <a href="http://www.3dontwerpen.nl/sketchup/gal1.html">Gallerie voorbeelden</a>'
inhoud[2]='Voor al uw 3D handleidingen en bibliotheken : <a href="http://www.ontmoeting.nl">Uitgeverij Ontmoeting.nl</a>'

var vertraging=4000
var snelh=10


var huidigbericht=0
var breedte=0

function changetickercontent(){
crosstick.style.clip="rect(0px 0px auto 0px)"
crosstick.innerHTML=inhoud[huidigbericht]
highlightmsg()
}

function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (breedte<msgwidth){
breedte+=snelh
crosstick.style.clip="rect(0px "+breedte+"px auto 0px)"
beginclip=setTimeout("highlightmsg()",20)
}
else{
breedte=0
clearTimeout(beginclip)
if (huidigbericht==inhoud.length-1) huidigbericht=0
else huidigbericht++
setTimeout("changetickercontent()",vertraging)
}
}
function start_ticking(){
crosstick=document.getElementById? document.getElementById("geel") : document.all.geel
crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
if (parseInt(crosstick.offsetHeight)>0)
crosstickParent.style.height=crosstick.offsetHeight+'px'
else
setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake
changetickercontent()
}
if (document.all || document.getElementById)
window.onload=start_ticking