function toonkeywords(){
var r,i,s=document.selection.createRange().text;
var kleuren=new Array("#ffff00","#99ff00","#99ccff","#ffcc00","#ff00ff","00cccc","#ffff00","#ffff00","#ffff00","#ffff00");
s=location.search.substring((location.search.indexOf("keywords")+9), location.search.length);
s=s.split(" ");
var j=0;
var aantal=s.length
while (j<aantal)
{
r=document.body.createTextRange();
if(s[j] != ""){
   for(i=0;r.findText(s[j]);i++)
      {
       r.execCommand('BackColor','',kleuren[j]);
       r.collapse(false);
      }
}
j+=1;
}
}


function ejs_img_fx(img){	
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}
function makevisible(cur,which){
strength=(which==0)? 0.2 : 1

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*150
}

function popupopen(image,width,height) {
if ((screen.height-100)<=height){
width=(width*(screen.height-100))/height
width=Math.round(width)
height=screen.height-100
}
MyWindow=window.open(base_url+'/foto.asp?id='+image+'&w='+width+'&h='+height,'Fotos','toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=no,resizable=yes,width='+width+',height='+height);
}  

function hidestatus(){
window.status='.:: '+hoofdtitel+' ::.'
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus

function ct(nr){
  document.getElementById("description").innerHTML="&nbsp;&nbsp;&nbsp;" + m[nr]
}

function RunFoo(towrite)
{
document.write(towrite);
}

var file='/stats/count.asp';

var d=new Date(); 
var s=d.getSeconds(); 
var mn=d.getMinutes();
var x=s*mn;
f='' + escape(document.referrer);
if (navigator.appName=='Netscape'){b='NS';} 
if (navigator.appName=='Microsoft Internet Explorer'){b='MSIE';} 
if (navigator.appVersion.indexOf('MSIE 3')>0) {b='MSIE';}
u='' + escape(document.URL); w=screen.width; h=screen.height; 
v=navigator.appName; 
fs = window.screen.fontSmoothingEnabled;
if (v != 'Netscape') {c=screen.colorDepth;}
else {c=screen.pixelDepth;}
j=navigator.javaEnabled();
info='w=' + w + '&h=' + h + '&c=' + c + '&r=' + f + '&u='+ u + '&fs=' + fs + '&b=' + b + '&x=' + x;

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

