
var bericht= new Array()
bericht[0]="<b>Laatste up-date</b>|Deze website is op 23-03-2011 vernieuwd, nieuwe foto's bij Steden <img src='stfoto_14.jpg' width=120> |steden.htm"
bericht[1]="<b>Last up-date</b>|This website is last up-dated on March 23 2011, new photo's City's <img src='stfoto_14.jpg' width=120>|steden.htm"
bericht[2]="<b>Nog meer nieuws/More news</b>|Nieuwe tab onder trouwreportages en Algemeen ( Bloemenjongen en meisje en Zwart/wit foto's) Under weddings there is a new tab. Flowerboy and girl and general has a new tab Black and White <img src='zwfoto_9.jpg' width=120>|zwartwit.htm"


// Hier kun je het uitzicht wijzigen
var scrollboxhoogte=250
var scrollboxbreedte=180
var vanaf_boven=50
var vanaf_links=1200
var tekstmarge=10
var randdikte=1
var agrondkleur="#696969"

var titel_lettertype="Verdana"
var titel_letterkleur="FFFFFF"
var titel_lettergrootte=2

var tekst_lettertype="Verdana"
var tekst_letterkleur="#FFFFFF"
var tekst_lettergrootte=1

var pauzeren=1000

// Hieronder niets wijzigen
var cliptop=0
var clipbottom=scrollboxhoogte-2*tekstmarge
var clipleft=0
var clipright=scrollboxbreedte

var i_bericht=0
var mes_joined
var mes_split
var contenttext
var contentbg

var totalheight=scrollboxhoogte*(bericht.length)
var i_height=0
var step=1
var pause=20

var tussentijd=0

function nieuws_starten(){
contenttext="<table cellpadding=0 cellspacing=0 border=0 width="+(scrollboxbreedte-2*tekstmarge)+">"
contenttext+="<tr valign='top'><td height='"+scrollboxhoogte+"'><br></td></tr>"
	for (i=0;i<=bericht.length-1;i++) {
		mes_joined=bericht[i]
		mes_split=mes_joined.split("|")
		contenttext+="<tr valign='top'><td height='"+scrollboxhoogte+"'><a href='"+mes_split[2]+"'><font face='"+titel_lettertype+"' color='"+titel_letterkleur+"' size='"+titel_lettergrootte+"'>"+mes_split[0]+"</font></a><br><font face='"+tekst_lettertype+"' color='"+tekst_letterkleur+"' size='"+tekst_lettergrootte+"'>"+mes_split[1]+"</font></td></tr>"
	}
contenttext+="</table>"
	
contentbg="<table cellpadding=0 cellspacing=0 border="+randdikte+" width='"+scrollboxbreedte+"'><tr><td height='"+scrollboxhoogte+"' bgcolor="+agrondkleur+"> </td></tr></table>"
	
	if (document.all) {
		scrolltekst.innerHTML=contenttext
		scrollbox.innerHTML=contentbg
		document.all.scrolltekst.style.posTop=vanaf_boven
		document.all.scrolltekst.style.posLeft=vanaf_links
		document.all.scrollbox.style.posTop=vanaf_boven-tekstmarge
		document.all.scrollbox.style.posLeft=vanaf_links-tekstmarge
		document.all.scrolltekst.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
	}
	if (document.layers) {
		document.scrolltekst.document.write(contenttext)
		document.scrolltekst.document.close()
		document.scrollbox.document.write(contentbg)
		document.scrollbox.document.close()
		document.scrolltekst.top=vanaf_boven
		document.scrolltekst.left=vanaf_links
		document.scrollbox.top=vanaf_boven-tekstmarge
		document.scrollbox.left=vanaf_links-tekstmarge	
		document.scrolltekst.clip.left=clipleft
        document.scrolltekst.clip.right=clipright
        document.scrolltekst.clip.top=cliptop
        document.scrolltekst.clip.bottom=clipbottom
	}
	scroll()
}

function scroll(){
	tussentijd=pauzeren
	if (document.all){
		if (i_height<scrollboxhoogte) {
			i_height+=step
			cliptop+=step
			clipbottom+=step
			document.all.scrolltekst.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
			document.all.scrolltekst.style.posTop-=step
			var timer=setTimeout("scroll()",pause)
		}

		else {
			if (document.all.scrolltekst.style.posTop<=-(totalheight)) {
				document.all.scrolltekst.style.posTop=vanaf_boven
				cliptop=0
				clipbottom=scrollboxhoogte-2*tekstmarge
				document.all.scrolltekst.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
				tussentijd=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",tussentijd)
		}
	}
	
		if (document.layers){
			if (i_height<scrollboxhoogte) {
				i_height+=step
				cliptop+=step
				clipbottom+=step
				document.scrolltekst.clip.left=clipleft
        		document.scrolltekst.clip.right=clipright
        		document.scrolltekst.clip.top=cliptop
        		document.scrolltekst.clip.bottom=clipbottom
				document.scrolltekst.top-=step
				var timer=setTimeout("scroll()",pause)
			}

		else {
			if (document.scrolltekst.top<=-(totalheight)) {
				document.scrolltekst.top=vanaf_boven
				cliptop=0
				clipbottom=scrollboxhoogte-2*tekstmarge
				document.scrolltekst.clip.left=clipleft
        		document.scrolltekst.clip.right=clipright
        		document.scrolltekst.clip.top=cliptop
        		document.scrolltekst.clip.bottom=clipbottom
				tussentijd=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",tussentijd)
		}
	}
}





