function PrintTitle() {
  document.write('<DIV id=Header><b>DJ Tony Hermans</b></DIV>');
  document.write('<DIV id=Logo><IMG  src="http://www.djtony.be/images/logo.gif"></DIV>');

}

function PrintMenu()
{

  document.write('<DIV id=Menu>');
  document.write('<A href="http://www.djtony.be/index.htm" ><u>Home</u></A> ');
  document.write('<A href="http://www.djtony.be/prijzen.htm" ><u>Prijzen</u></A> ');
  document.write('<A href="http://www.djtony.be/tony.htm" ><u>Contact</u></A> ');
  document.write('<A href="http://www.gastenboek.be/gb.php?id=951" target="_gast"><u>Reacties</u></A> ');
  document.write('<A href="http://www.djtony.be/cgi-bin/FotoFolder.pl" ><u>Foto\'s</u></A> ');
  document.write('<A href="http://www.djtony.be/bruiloften.htm" ><u>Muziek</u></A> ');
 document.write('<A href="http://www.djtony.be/links.htm" ><u>Links</u></A> ');
  document.write('</DIV>');
  
}

function PrintEnd()
{
  document.write('<!-- Start of StatCounter Code -->');
  document.write('<script type="text/javascript" language="javascript">');
  document.write('var sc_project=486850; ');
  document.write('var sc_partition=3; ');
  document.write('var sc_invisible=1; ');
  document.write('</script>');
  
  document.write('<script type="text/javascript" language="javascript">var sc_project=1302822; var sc_invisible=1; var sc_partition=11; var sc_security="984a65d1"; </script>');

  document.write('<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c12.statcounter.com/counter.php?sc_project=1302822&amp;java=0&amp;security=984a65d1&amp;invisible=0" alt="cool hit counter" border="0"></a> </noscript>');

}



function DisplayWork(image, txt) {
  document.myImage.src=image;
  document.myImage.border=2;
  document.myImage.style.visibility='visible';
  if (document.getElementById('myText')) {
     document.getElementById('myText').innerHTML=txt;
  }
 
}

function Navigate(image) {
  document.navImage.src=image;
  document.navImage.style.visibility='visible';
}


function LastMod()
{
   var x = new Date (document.lastModified);
   Modif = new Date(x.toGMTString());
   Year = takeYear(Modif);
   Month = Modif.getMonth();
   Day = Modif.getDate();
   Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
   x = new Date();
   today = new Date(x.toGMTString());
   Year2 = takeYear(today);
   Month2 = today.getMonth();
   Day2 = today.getDate();
   now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
   daysago = now - Mod;
   if (daysago < 0) return '';
   unit = 'dagen';
   if (daysago > 730)
   {
      daysago = Math.floor(daysago/365);
      unit = 'jaren';
   }
   else if (daysago > 60)
   {
      daysago = Math.floor(daysago/30);
      unit = 'maanden';
   }
   else if (daysago > 14)
   {
      daysago = Math.floor(daysago/7);
      unit = 'weken'
   }
   var towrite = 'Pagina laatst aangepast ';
   if (daysago == 0) towrite += 'vandaag';
   else if (daysago == 1) towrite += 'gisteren';
   else towrite += daysago + ' ' + unit + ' geleden';
   document.write(towrite);
}


function takeYear(theDate)
{
   x = theDate.getYear();
   var y = x % 100;
   y += (y < 38) ? 2000 : 1900;
   return y;
}

function popup(imgurl) {

  var img=new Image;
  
  img.src= "http://www.markkromski.be/"+imgurl;
  
  img.onload=function () {
    var win=window.open(img.src, "popup", "width="+(img.width+20)+",height="+(img.height+120))
  };
  win.focus() 
  // prevent the hyperlink from doing its default behaviour
  return false; 
  
}

