function print_page(p_title, p_style) { 
   l_window_properties = "toolbar=yes, resizable=yes, location=no, directories=yes, menubar=yes, scrollbars=yes, width=800, height=600"; 
 
   l_content = document.getElementById('content_div').innerHTML; 
   
   l_datum_object = new Date();
   l_datum =  l_datum_object.getFullYear();
   l_print_window= window.open("", "", l_window_properties); 
   l_doc_html = '<html><head><title>'+ p_title + '</title><link href="'+ p_style + '" rel="stylesheet" type="text/css"><script type="text/javascript">function auto_print () {   if (window.print) {     l_agree = confirm("Klik op OK om deze pagina automatisch te printen.");     if (l_agree) {        window.print();     }   }}</script></head><body onLoad="auto_print();">' + l_content + '</body></html>';
   l_print_window.document.open(); 
   l_print_window.document.write(l_doc_html);
   l_print_window.document.close(); 
   l_print_window.focus(); 
}


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];}}
}


/* Jquery spul hieronder */

jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

$(document).ready(function() {
  $('#banner-search-div').hide();
  $('#search-a').click(function() {
	  //$('#banner-search-div').slideToggle("slow");
	  $('#banner-search-div').fadeToggle('slow');	  
  });
});

