if (document.observe) document.observe("dom:loaded", function() {

});

function greeting()
{
   var today = new Date();
   var hrs = today.getHours();
   document.write("Goede");
   if (hrs < 12)
      document.write("morgen ");
   else if (hrs <= 17)
      document.write("middag ");
   else
      document.write("navond ");
}


function startOnlineboeken(OB,lng) {
  var w=1050,h=740,scroll='yes';
  var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  window.open('http://boeken.tibos.nl/elsendorp/start.lp?lng='+lng+'&value='+OB+'&type=GCB', 'winTIBOSthout', settings);
}

function getBanner() {
  var element;
  if(!(element = $('flashBanner350x160') )) {
    return;
  }
  new Ajax.Request('/handlers/ajax/flashbanner350x160.lp', {  
  	method          : 'post',
    parameters      :{doNotCacheIE: new Date().getTime()},
  	onSuccess       : function(request) {     
  		try{
        element.update(request.responseText);  
  		}catch(e){
        console.log(e);
      }
  	}
  }); 
}