<!--
//Specify the marquee's width (in pixels)
var marqueewidth="180px"; //"300px";
//Specify the marquee's height
var marqueeheight="20px";
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=2;
//configure background color:
var marqueebgcolor="FFFF00"; //"#DEFDD9";
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1; /// 1

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

/// var marqueecontent='<nobr><font face="Arial" color="#FF0000" weight=bold>Thank you for visiting <a href="http://www.dynamicdrive.com">Dynamic Drive.</a> If you find this script useful, please consider linking to us by <a href="../link.htm">click here.</a> <span class="lichtkrant"> Enjoy your stay!</span> <a type="text/css" style="color:#FF0000" href="agenda.html">Zie Agenda</a><br></font></nobr>';

var marqueecontent='<nobr><font face="Arial" color="#FF0000"><span class="lichtkrant">KTV Schaakclub Enkhuizen .... <a href="info/info_03_club.html" target="rechts">Info</a> ... Senioren vrijdags 8 uur ... Jeugdclub 6.45 uur ... <a href="startjeugd.html" target="rechts">Naar de jeugdclub</a> .... In de Nieuwe Doelen .... <a href="info/info_02_route.html" target="rechts">Routekaart</a>.... Meer weten..? Zie bij info .... Of bel 0228-313168, voor jeugd en senioren ... Emai zenden? ....Zie menu!</span> <br></font></nobr>';

////NO NEED TO EDIT BELOW THIS LINE////////////
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1); //slow speed down by 1 for NS
var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var iedom=document.all||document.getElementById;
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent+'</span>');
var actualwidth='';
var cross_marquee, ns_marquee;

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee;
cross_marquee.style.left=parseInt(marqueewidth)+8+"px";
cross_marquee.innerHTML=marqueecontent;
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth;
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2;
ns_marquee.left=parseInt(marqueewidth)+8;
ns_marquee.document.write(marqueecontent);
ns_marquee.document.close();
actualwidth=ns_marquee.document.width;
}
lefttime=setInterval("scrollmarquee()",20);
}
window.onload=populate;

function scrollmarquee(){
if (iedom){
if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px";
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px";

}
else if (document.layers){
if (ns_marquee.left>(actualwidth*(-1)+8))
ns_marquee.left-=copyspeed;
else
ns_marquee.left=parseInt(marqueewidth)+8;
}
}

if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>');
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">');
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">');
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>');
write('</div></div>');
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>');
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>');
write('</ilayer>');
}
document.write('</td></table>');
}
}

// new voor klok 25/07/09; later 19/9/08 voor klok 100x100
/////////////////////////////////////////////////////////////// begin te wijzigen
xoffset=51;    /// klok 100; ////46klok 90x90;  // 95HP; //100; //200; // 250;
yoffset=45;   /// klok 100 /// klok 90x90; 40; 45 ///130HP; //120; //80; //200; // 250;
handsegments=6;  //5;90x90;  //8HP;  //10;  //15;
clocksize=33;  //30 met markergif;   //25;90x90; //50HP;  //60; //130;

hoursize=7;
minutesize=6;  //5
secondsize=5;

markersize=8; //  7 90x90; //8; //10HP;
markernumber=12;
//////////////////////////////////////////////////////////////// einde te wijzigen

function hand(type,radius,image) {
  time=new Date();
  if (type=="hour") {
    radians=(time.getHours()/12+time.getMinutes()/720)*2*Math.PI-.5*Math.PI; 
    size=hoursize; }
  else if (type=="minute") {
    radians=(time.getMinutes()/60+time.getSeconds()/3600)*2*Math.PI-.5*Math.PI; 
    size=minutesize; }
  else if (type=="second") {
    radians=(time.getSeconds()/60)*2*Math.PI-.5*Math.PI; 
    size=secondsize; }

  image.style.pixelLeft=radius*Math.cos(radians)+xoffset-size/2;
  image.style.pixelTop =radius*Math.sin(radians)+yoffset-size/2;
}

function clock() {
  for (i=0;i<=handsegments;i++) {
    hand("minute",i*clocksize/handsegments,eval("minutehand"+i));
    hand("second",i*clocksize/handsegments,eval("secondhand"+i));
    hand("hour",i*clocksize*(3/4)/handsegments,eval("hourhand"+i));
  }
  setTimeout("clock()",800);
}

function WriteClock(){
for (i=0;i<=handsegments;i++) {
  document.writeln("<img src=images/klok_hourhand.gif ID=hourhand"+i+" style='position:absolute; top:-1000; left:-1000; z-index:-5' width="+hoursize+" height="+hoursize+">");
  document.writeln("<img src=images/klok_minutehand.gif ID=minutehand"+i+" style='position:absolute; top:-1000; left:-1000' width="+minutesize+" height="+minutesize+">");
  document.writeln("<img src=images/klok_secondhand.gif ID=secondhand"+i+" style='position:absolute; top:-1000; left:-1000' width="+secondsize+" height="+secondsize+">");
 }
/************
for (i=0;i<markernumber;i++) {
  radians=(i/markernumber)*2*Math.PI-.5*Math.PI;
  radius=clocksize*1.2;
  document.writeln("<img src=images/klok_marker.gif style='position:absolute; top:"+(radius*Math.sin(radians)+yoffset-markersize/2)+"; left:"+(radius*Math.cos(radians)+xoffset-markersize/2)+"; z-index:-5' width="+markersize+" height="+markersize+">");
 }
************/
}
//-->