<!--

  window.onload = initialize;
  
  function initialize()  {
	  initializeSearch();
  }
  

  try {
	document.execCommand("BackgroundImageCache", false, true);
  } catch(err) {

  }

  function teaserContainerOvrSmall( obj ) {
	  obj.style.cursor='pointer';
	  obj.style.margin='0px 1px 1px 0px';
  }

  function teaserContainerOutSmall( obj ) {
	  obj.style.cursor='pointer';
	  obj.style.margin='1px 0px 0px 1px';
  }
  
  
  function teaserContainerOvrLarge( obj ) {
	  obj.style.cursor='pointer';
	  obj.style.margin='0px 1px 1px 0px';
  }

  function teaserContainerOutLarge( obj ) {
	  obj.style.cursor='pointer';
	  obj.style.margin='1px 0px 0px 1px';
  }
  
  function teaserContainerUp( linkID ) {
	  location.href = '/' + linkID;
  }


  function attention( type ) {
    if ( type=='nl' ) {
      alert('Deze site is uitsluitend bestemd voor artsen,\ndiëtisten en andere paramedici.');
    } else if (type=='fr') {
      alert('Cette partie du site est destiné exclusivement aux médecins,\ndiététicien(ne)s et autres paramédicaux');
    }
  }
  
  
  
  function initializeSearch() {
	  
	  if ( document.getElementById("indexedSearchText") && window.searchString ) {
		  
		  document.getElementById("indexedSearchText").onfocus = function() {
			  var textField = document.forms["indexedsearch"].elements["indexedSearchText"].value;
			  if ( textField == searchString ) {
				  document.forms["indexedsearch"].elements["indexedSearchText"].value = "";
				  document.forms["indexedsearch"].elements["indexedSearchText"].className = "searchText";
			  }
		  }
		  
		  document.getElementById("indexedSearchText").onblur = function() {
			  var textField = document.forms["indexedsearch"].elements["indexedSearchText"].value;
			  if ( textField == "" || textField == searchString ) {
				  document.forms["indexedsearch"].elements["indexedSearchText"].value = searchString;
				  document.forms["indexedsearch"].elements["indexedSearchText"].className = "searchTextEpty";
			  }
		  }
		  
		  document.getElementById("indexedSearchText").onkeydown = function () {
			  var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
			  if (keyCode == 13) {
				  document.forms["indexedsearch"].submit();
				  return false;		
			  }
		  }
		  
		  var textField = document.forms["indexedsearch"].elements["indexedSearchText"].value;
		  if ( textField == "" || textField == searchString ) {
			  document.forms["indexedsearch"].elements["indexedSearchText"].value = searchString;
			  document.forms["indexedsearch"].elements["indexedSearchText"].className = "searchTextEpty";
		  }
	  }	  
  }
  
// -->