
/* Om lege images te verbergen */
function HideEmptyImages()
{
var regex = new RegExp("(shownoimg)\.gif$");
for (var i=0; i < document.images.length; i++)
if (regex.test(document.images[i].src))
document.images[i].style.display = "none";
}


ContentInfo = "";

var mouse_X;
var mouse_Y;

var tip_active = 0;

function update_tip_pos(){
		document.getElementById('ToolTip').style.left = mouse_X + 10;
		document.getElementById('ToolTip').style.top  = mouse_Y + 20;
}


var ie = document.all?true:false;
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

function getMouseXY(e) {
if (ie) { // grab the x-y pos.s if browser is IE
mouse_X = event.clientX + document.body.scrollLeft;
mouse_Y = event.clientY + document.body.scrollTop;
}
else { // grab the x-y pos.s if browser is NS
mouse_X = e.pageX;
mouse_Y = e.pageY;
}
if (mouse_X < 0){mouse_X = 0;}
if (mouse_Y < 0){mouse_Y = 0;}
if(tip_active){update_tip_pos();}
}


function EnterContent(TContent){
ContentInfo = '<table border="0" cellspacing="0" cellpadding="0" class="tbl_tooltip">'+
'<tr><td class="td_tooltip">'+
'<font class="tooltipcontent"><nobr>'+TContent+'</nobr></font>'+
'</td></tr>'+
'</table>';
}

function tooltip(which, TContent){
	if(which){
		update_tip_pos();
		tip_active = 1;
		document.getElementById('ToolTip').style.visibility = "visible";
		EnterContent(TContent);
		document.getElementById('ToolTip').innerHTML = ContentInfo;
	}else{
		tip_active = 0;
		document.getElementById('ToolTip').style.visibility = "hidden";
	}
}



/* slideshow */
// Stel overgangShowSpeed in (milliseconden)
var overgangShowSpeed = 6000

// Overgandstijd (in seconden)
var overgangsTijd = 5

// Bepaal de afbeeldingen
var Afbeelding = new Array()

Afbeelding[0]	 = '/images-layout2007/roulerende-fotoos/e.jpg'
Afbeelding[1]	 = '/images-layout2007/roulerende-fotoos/k.jpg'
Afbeelding[2]	 = '/images-layout2007/roulerende-fotoos/h.jpg'
Afbeelding[3]	 = '/images-layout2007/roulerende-fotoos/j.jpg'

var t
var j = 0
var p = Afbeelding.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Afbeelding[i]
}

function speelSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=overgangsTijd)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('speelSlideShow()', overgangShowSpeed)
}

/* om button te veranderen */
function  change(obj,nid)
{
	obj.id=nid;
}

  /*
  ' function    : frmMultisearch_submitIsOk
  ' description : checks if it is ok to submit the form
  ' arguments   :
  ' returns     :
  */
  function frmMultisearchCustom_submitIsOk()
  {
    var sErr = '';

      if (document.forms['frmMultisearchCustom'].elements['fld_metzoektermen'].value == '')
      {
        sErr += 'U dient nog de zoektermen op te geven waarop u wilt zoeken in het veld \'met alle woorden:\'. \n';
      }
if (sErr == '')
{
  return true;
}
else
{
  alert(sErr);
  return false;
}
}

/*
' function    :
' description :
' arguments   :
' returns     :
*/
function frmMultisearchCustom_showResultpage(iResultpageToShow)
{
  document.forms['frmMultisearchCustom'].elements['current_result_page'].value = iResultpageToShow;
  document.forms['frmMultisearchCustom'].submit();
}
/*
' function    : frmMultisearch_gotoNextResultPage()
' description : directs the visitor to the next page with results
' arguments   :
' returns     :
*/
function frmMultisearchCustom_gotoNextResultPage()
{
  document.forms['frmMultisearchCustom'].submit();
}


/* NL footer */
function  toon_footer_nl()
{
document.writeln("<link href=\"/css/layout2007/style-footer-biopark-new.css\" type=\"text/css\" rel=\"stylesheet\">");
document.writeln("<div id=footer>");
document.writeln("<form name=\"frmMultisearchCustom\" id=\"frmMultisearchCustom\" method=\"POST\" onSubmit=\"return frmMultisearchCustom_submitIsOk()\" action=\"/cms/publish/content/showpage.asp?pageid=29\">");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl_footer\">");
document.writeln("<tr>");
document.writeln("	<td class=\"td_footer\">");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=70\"><img src=\"/images-layout2007/english-flag.gif\" alt=\"English\" /></a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"#\" onClick=\"window.open('/data/templates/printtemplates/print_document.htm','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,target=_blank,width=626,height=600'); return false;\">Print</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?pageid=27\">Disclaimer</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=11\">Sitemap</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=10\">Contact</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("    <input name=\"fld_metzoektermen\" type=\"text\" class=\"zoekbox\" id=\"fld_metzoektermen\" maxLength=100 size=14>");
document.writeln("    <img src=\"/images-layout2007/dot.gif\" alt=\"\" height=\"1\" width=\"1\"/>");
document.writeln("   <input type='submit' name='Submit' class='klikbaar' value='Zoek' onMouseOver='change(this,\"zoekon\")' onMouseOut='change(this,\"zoek\")' id='zoek' onClick=\"return frmMultisearchCustom_submitIsOk()\"  />");
document.writeln("    </td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<input type=\"hidden\" name=\"action\" id=\"action\" value=\"search\">");
document.writeln("<!-- zoekcriteria overnemen -->");
document.writeln("<input type=\"hidden\" name=\"fld_zonderzoektermen\" id=\"fld_zonderzoektermen\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_paginas\" id=\"fld_zoekin_paginas\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_nieuws\" id=\"fld_zoekin_nieuws\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_nieuwsarchief\" id=\"fld_zoekin_nieuwsarchief\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_tonen\" id=\"fld_tonen\" value=\"kort\">");
document.writeln("<input type=\"hidden\" name=\"fld_resulaten_per_pagina\" id=\"fld_resulaten_per_pagina\" value=\"10\">");
document.writeln("<input type=\"hidden\" name=\"fld_periode_of_datum\" id=\"fld_periode_of_datum\" value=\"periode\">");
document.writeln("<input type=\"hidden\" name=\"fld_gewijzigd_in_laatste_periode_datum\" id=\"fld_gewijzigd_in_laatste_periode_datum\" value=\"11/13/1999\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_jaar\" id=\"fld_datum_jaar\" value=\"1999\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_maand\" id=\"fld_datum_maand\" value=\"1\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_dag\" id=\"fld_datum_dag\" value=\"1\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_van_of_tot\" id=\"fld_datum_van_of_tot\" value=\"van\">");
document.writeln("</form>");
document.writeln("</div> <!-- footer -->");
document.writeln("");
document.writeln("<div id=copyright>");
document.writeln("	<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl_copyright\">");
document.writeln("		<tr>");
document.writeln("			<td class=\"td_copyright\">&copy; 2007 Copyright Zeeland Seaports. Alle rechten voorbehouden.</td>");
document.writeln("		</tr>");
document.writeln("	</table>");
document.writeln("</div> <!-- copyright BL -->");
}

/* EN footer */
function  toon_footer_en()
{
document.writeln("<link href=\"/css/layout2007/style-footer-biopark-new.css\" type=\"text/css\" rel=\"stylesheet\">");
document.writeln("<div id=footer>");
document.writeln("<form name=\"frmMultisearchCustom\" id=\"frmMultisearchCustom\" method=\"POST\" onSubmit=\"return frmMultisearchCustom_submitIsOk()\" action=\"/cms/publish/content/showpage.asp?pageid=139\">");
document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl_footer\">");
document.writeln("<tr>");
document.writeln("	<td class=\"td_footer\">");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=73\"><img src=\"/images-layout2007/dutch-flag.gif\" alt=\"Dutch\" /></a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"#\" onClick=\"window.open('/data/templates/printtemplates/print_document.htm','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,target=_blank,width=606,height=600'); return false;\">Print</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?pageid=138\">Disclaimer</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=26\">Sitemap</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("	<a href=\"/cms/publish/content/showpage.asp?themeid=23\">Contact</a>");
document.writeln("	<img src=\"/images-layout2007/streepje.gif\" alt=\"\" height=\"9\" width=\"39\"/>");
document.writeln("    <input name=\"fld_metzoektermen\" type=\"text\" class=\"zoekbox\" id=\"fld_metzoektermen\" maxLength=100 size=14>");
document.writeln("    <img src=\"/images-layout2007/dot.gif\" alt=\"\" height=\"1\" width=\"1\"/>");
document.writeln("   <input type='submit' name='Submit' class='klikbaar' value='Search' onMouseOver='change(this,\"zoekon\")' onMouseOut='change(this,\"zoek\")' id='zoek' onClick=\"return frmMultisearchCustom_submitIsOk()\"  />");
document.writeln("    </td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<input type=\"hidden\" name=\"action\" id=\"action\" value=\"search\">");
document.writeln("<!-- zoekcriteria overnemen -->");
document.writeln("<input type=\"hidden\" name=\"fld_zonderzoektermen\" id=\"fld_zonderzoektermen\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_paginas\" id=\"fld_zoekin_paginas\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_nieuws\" id=\"fld_zoekin_nieuws\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_zoekin_nieuwsarchief\" id=\"fld_zoekin_nieuwsarchief\" value=\"true\">");
document.writeln("<input type=\"hidden\" name=\"fld_tonen\" id=\"fld_tonen\" value=\"kort\">");
document.writeln("<input type=\"hidden\" name=\"fld_resulaten_per_pagina\" id=\"fld_resulaten_per_pagina\" value=\"10\">");
document.writeln("<input type=\"hidden\" name=\"fld_periode_of_datum\" id=\"fld_periode_of_datum\" value=\"periode\">");
document.writeln("<input type=\"hidden\" name=\"fld_gewijzigd_in_laatste_periode_datum\" id=\"fld_gewijzigd_in_laatste_periode_datum\" value=\"11/13/1999\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_jaar\" id=\"fld_datum_jaar\" value=\"1999\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_maand\" id=\"fld_datum_maand\" value=\"1\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_dag\" id=\"fld_datum_dag\" value=\"1\">");
document.writeln("<input type=\"hidden\" name=\"fld_datum_van_of_tot\" id=\"fld_datum_van_of_tot\" value=\"van\">");
document.writeln("</form>");
document.writeln("</div> <!-- footer -->");
document.writeln("");
document.writeln("<div id=copyright>");
document.writeln("	<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl_copyright\">");
document.writeln("		<tr>");
document.writeln("			<td class=\"td_copyright\">&copy; 2007 Copyright Zeeland Seaports. All rights reserved.</td>");
document.writeln("		</tr>");
document.writeln("	</table>");
document.writeln("</div> <!-- copyright EN -->");
}

