// deze code bepaalt welke afbeelding rechts getoond wordt 
function getImage(){
  today = new Date()
  if((today.getHours() >= 0) && (today.getHours() < 3))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_eye.gif WIDTH=145 HEIGHT=68>"}
  if((today.getHours() >= 3) && (today.getHours() < 6))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_morning.gif WIDTH=158 HEIGHT=68>"}
  if((today.getHours() >= 6) && (today.getHours() < 10))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_good_old_03.jpg WIDTH=158 HEIGHT=68>"}
  if((today.getHours() < 13) && (today.getHours() >= 10))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_before_1.gif WIDTH=158 HEIGHT=68>"}
  if((today.getHours() >= 13) && (today.getHours() < 18))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_afternoon.gif WIDTH=158 HEIGHT=68>"}
  if((today.getHours() >= 18) && (today.getHours() <= 23))
  {  timedImage="<IMG SRC=http://www.novaclassicrock.nl/images/sb_we_play_them03.gif WIDTH=158 HEIGHT=68>"}
}

// deze code stelt de begroeting samen 
function getGreeting(){
  today = new Date()
  mymonth = today.getMonth()
  if(mymonth == 0)
            month = "JAN"
     else if(mymonth ==1)
            month = "FEB"
     else if(mymonth ==2)
            month = "MAR"
     else if(mymonth ==3)
            month = "APR"
     else if(mymonth ==4)
            month = "MAY"
     else if(mymonth ==5)
            month = "JUN"
     else if(mymonth ==6)
            month = "JUL"
     else if(mymonth ==7)
            month = "AUG"
     else if(mymonth ==8)
            month = "SEP"
     else if(mymonth ==9)
            month = "OCT"
     else if(mymonth ==10)
            month = "NOV"
     else if(mymonth ==11)
            month = "DEC"
  if((today.getHours() < 12) && (today.getHours() >= 6))
  {  sayhi="&nbsp;-&nbsp;Good Morning! Thanks For Dropping In."}

  if((today.getHours() >= 12) && (today.getHours() < 18))
  {  sayhi="&nbsp;-&nbsp;Thanks For Visiting Us This Afternoon!"}

  if((today.getHours() >= 18) && (today.getHours() <= 23))
  {  sayhi="&nbsp;-&nbsp;It's Great You Can Help Us Rock The Evening!"}

  if((today.getHours() >= 0) && (today.getHours() < 4))
  {  sayhi="&nbsp;-&nbsp;Hi!! Glad You Could Visit This Late!"}

  if((today.getHours() >= 4) && (today.getHours() < 6))
  {  sayhi="&nbsp;-&nbsp;Wow! You're up early!! Welcome!"}

greeting=month + " " + today.getDate() + sayhi;
}

// bezoekersteller
function getDataReferStat(){
	referstat += "<img src=\"http://nl.nedstatbasic.net";
	referstat += "/cgi-bin/referstat.gif?";
	referstat += "name=Freaks&refer=";
	referstat += escape(top.document.referrer);
	referstat += "\" style=\"width:1px; height:1px;\">";
}

//dreamweavercode
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function open_clock(url) {
window.open(url,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=530,height=500");
}
function open_window(url) {
window.open(url,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,width=300,height=335");
}
