verstuurd=false;
var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
/* ======================================================================
FUNCTION:         displayStatusMsg
functie:          Tonen van statusregel onderaan browserwindow
Parameter:        msgStr (statusmelding))
Aangeroepen door: alle htmls
====================================================================== */
function displayStatusMsg(msgStr) {
   window.status=msgStr;
   return true;
}

/* ======================================================================
FUNCTION:         getArgs
functie:          Splitsen van meegegeven argumenten
                  Parameter:
Aangeroepen door: n-infodank.htm;n-reserdank.htm;vergroting.htm;
====================================================================== */

function getArgs()
{
   var args=new Object();
   var query=location.search.substring(1);
   var pairs= query.split(",");
   for (var i=0; i<pairs.length; i++)
      {
      var pos=pairs[i].indexOf('=');
      if (pos==-1) continue;
      var argname=pairs[i].substring(0,pos);
      var value=pairs[i].substring(pos+1);
      args[argname]=unescape(value);
   }
return args;
}
var args=getArgs();

/* ======================================================================
FUNCTION:   GetRadioValue
====================================================================== */
function GetRadioValue( radioObject )
{
   var value = null;
   // Validate parameter value
   if (radioObject+"" == "undefined" || radioObject == null)
      return null;

   for (var i=0; i < radioObject.length; i++) {
      if (radioObject[i].checked) {
         value = radioObject[i].value;
         break;
      }
   } // end for loop

   return value;
}
/* ======================================================================
FUNCTION:   isBlank
====================================================================== */
function isBlank(s)
{
   for (var i=0; i<s.length;i++)
      {
      var c=s.charAt(i);
      if ((c!=" ") && (c !="\n") && (c !="\t")) return false;
      }
   return true;
}

var pre='';

/***************************************************************
*****************************2004*******************************
***************************************************************/
if (niv==0) var basis=''
else        var basis='../'

function mailAdres(voor,na,naam,oms,subj,klasse) {
//
// Voorbeeld:
// <a href="mailto:Rederij Quo Vadis<info(apestaartje)de-liefde.nl>&SUBJECT=Aanvraag prijsinformatie catering (Engels)">Rederij Quo Vadis</a>
//
// <script language="JavaScript"><!--
//   mailAdres('info','de-liefde.nl','naam','oms','subj','class')
// //--></script>
//
   var link="<a href=\'mailto:";
   if (naam) link+=naam+"<";
   link+=voor+"@"+na
   if (naam) link+=">";
   if (subj) link+="&subject="+subj;
   link+="\'";
   if (klasse) link+=" class=\'"+klasse+"\'";
   link+=">";
   if (oms) link+=oms
   else     link+=voor+"@"+na;
   link+="</a>";
//   alert(link);
   document.write(link);
}

/*   **********  Persistant Layers *************    */

function flevDivPositionValue(sDiv, sProperty) { // v2.1, Marja Ribbers-de Vroed, FlevOOware
	this.opera = (window.opera); // Opera 5+
	this.ns4 = (document.layers); // Netscape 4.x
	this.ns6 = (document.getElementById && !document.all && !this.opera); // Netscape 6+
	this.ie = (document.all);  // Internet Explorer 4+
    var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')"); if (docObj == null) {return 0;}
	if ((sProperty == "left") || (sProperty == "top")) {
		if (!this.ns4) {docObj = docObj.style;}
		sValue = eval("docObj." + sProperty);
		if ((this.ie) && (sValue == "")) { // IE (on PC) bug with nested layers
			if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); }
			else { sValue = eval(sDiv + ".offsetLeft"); }
		};
	}
	else {
		if (this.opera) {
			docObj = docObj.style;
			if (sProperty == "height") { sValue = docObj.pixelHeight; }
			else if (sProperty == "width") { sValue = docObj.pixelWidth; }
		}
		else if (this.ns4) {sValue = eval("docObj.clip." + sProperty);}
		else if (this.ns6) {sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); }
	    else if (this.ie) {
			if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); }
			else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); }
		}
   	}
	sValue = (sValue == "") ? 0 : sValue;
	if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } }
	return parseInt(sValue);
}

function flevPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	var sD = arguments[0], oD = eval("MM_findObj('" + sD + "')"), iWW, iWH, iSX, iSY, iT = 10, sS = "";
	if (!document.layers) {oD = oD.style;}
	if (oD.tmpTimeout != null) {clearTimeout(oD.tmpTimeout);}
	var sXL = arguments[1], sXC = arguments[2], sXR = arguments[3], sYT = arguments[4], sYC = arguments[5], sYB = arguments[6];
	var iS = (arguments.length > 7) ? parseInt(arguments[7]) : 0, iPx = (arguments.length > 8) ? parseInt(arguments[8]) : 0;
	if (window.innerWidth) { // NS4, NS6 and Opera
		var oW = window; iWW = oW.innerWidth; iWH = oW.innerHeight; iSX = oW.pageXOffset; iSY = oW.pageYOffset; }
	else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
		var oDE = document.documentElement; iWW = oDE.clientWidth; iWH = oDE.clientHeight; iSX = oDE.scrollLeft; iSY = oDE.scrollTop; }
	else if (document.body) { // IE4+
		var oDB = document.body; iWW = oDB.clientWidth; iWH = oDB.clientHeight; iSX = oDB.scrollLeft; iSY = oDB.scrollTop; }
	else {return;}
	var iCX = iNX = flevDivPositionValue(sD, 'left'), iCY = iNY = flevDivPositionValue(sD, 'top');
	if (sXL != "") {iNX = iSX + parseInt(sXL);}
	else if (sXC != "") {iNX = Math.round(iSX + (iWW/2) - (flevDivPositionValue(sD, 'width')/2));}
	else if (sXR != "") {iNX = iSX + iWW - (flevDivPositionValue(sD, 'width') + parseInt(sXR));}
	if (sYT != "") {iNY = iSY + parseInt(sYT);}
	else if (sYC != "") {iNY = Math.round(iSY + (iWH/2) - (flevDivPositionValue(sD, 'height')/2));}
	else if (sYB != "") {iNY = iSY + (iWH - flevDivPositionValue(sD, 'height') - parseInt(sYB));}
	if ((iCX != iNX) || (iCY != iNY)) {
		if (iS > 0) {
			if (iPx > 0) { iT = iS;
				var iPxX = iPx, iPxY = iPx, iMX = Math.abs(iCX - iNX), iMY = Math.abs(iCY - iNY);
				// take care of diagonal movement
				if (iMX < iMY) {iPxY = (iMX != 0) ? ((iMY/iMX)*iPx) : iPx;}
				else {iPxX = (iMY != 0) ? ((iMX/iMY)*iPx) : iPx;}
				if (iPxX >= iMX) {iPxX = Math.min(Math.ceil(iPxX), iPx);}
				if (iPxY >= iMY) {iPxY = Math.min(Math.ceil(iPxY), iPx);}
				// temporary X/Y coordinates
				if ((iCX < iNX) && (iCX + iPxX < iNX)) {iNX = iCX + iPxX;}
				if ((iCX > iNX) && (iCX - iPxX > iNX)) {iNX = iCX - iPxX;}
				if ((iCY < iNY) && (iCY + iPxY < iNY)) {iNY = iCY + iPxY;}
				if ((iCY > iNY) && (iCY - iPxY > iNY)) {iNY = iCY - iPxY;} }
			else {
				var iMX = ((iNX - iCX) / iS), iMY = ((iNY - iCY) / iS);
				iMX = (iMX > 0) ? Math.ceil(iMX) : Math.floor(iMX); iNX = iCX + iMX;
				iMY = (iMY > 0) ? Math.ceil(iMY) : Math.floor(iMY); iNY = iCY + iMY; } }
		if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sS="px";}
		if (iMX != 0) {eval("oD.left = '" + iNX + sS + "'");}
		if (iMY != 0) {eval("oD.top = '" + iNY + sS + "'");} }
	var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	oD.tmpTimeout = setTimeout(sF,10);
}

function flevInitPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	if (arguments.length < 8) {return;}
	var sD = arguments[0]; if (sD == "") {return;}
	var	oD = eval("MM_findObj('" + sD + "')"); if (!oD) {return;}
	var iCSS = parseInt(arguments[1]);
	var sXL = arguments[2], sXC = arguments[3], sXR = arguments[4], sYT = arguments[5], sYC = arguments[6], sYB = arguments[7];
	var iS = (arguments.length > 8) ? parseInt(arguments[8]) : 0, iPx = (arguments.length > 9) ? parseInt(arguments[9]) : 0;
	if (iCSS != 0) { if (!document.layers) {oD = oD.style;} sXL = parseInt(oD.left), sYT = parseInt(oD.top);}
	var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	eval(sF);
}
function flevGetDivProperty() { // v1.0
	// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl)
	this.opera = (window.opera); this.ns4 = (document.layers); this.ie = (document.all);
	this.ns6 = (document.getElementById && !document.all && !this.opera);
    var sV = "", sD = arguments[0], oD = MM_findObj(sD), sP = arguments[1]; if (oD == null) {return 0;}
	var sF = (sD.indexOf("?") > 0) ? sD.substring(sD.indexOf("?")+1) : "";
	if ((sF != "") && (this.ie)) {sD = "parent.frames['" + sF + "']." + sD.substring(0,sD.indexOf("?"));}
	if ((sP == "left") || (sP == "top")) {
		if (!this.ns4) {oD = oD.style;} sV = eval("oD." + sP);
		if ((this.ie) && (sV == "")) { // IE (on PC) bug with nested layers
			if (sP == "top") { sV = eval(sD + ".offsetTop");}
			else { sV = eval(sD + ".offsetLeft");}}}
	else {if (this.opera) {oD = oD.style;
			if (sP == "height") { sV = oD.pixelHeight;}
			else if (sP == "width") { sV = oD.pixelWidth;}}
		else if (this.ns4) {sV = eval("oD.clip." + sP);}
		else if (this.ns6) {sV = document.defaultView.getComputedStyle(oD, "").getPropertyValue(sP);}
	    else if (this.ie) {
			if (sP == "width") {sV = eval(sD + ".offsetWidth");}
			else if (sP == "height") {sV = eval(sD + ".offsetHeight");}}}
	sV = (sV == "") ? 0 : sV; if (isNaN(sV)) {if (sV.indexOf('px') > 0) { sV = sV.substring(0,sV.indexOf('px'));}}
	return parseInt(sV);
}

function flevStartPersistentLayer() { // v3.4
	// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
	if (arguments.length < 8) {return;}	var sD = arguments[0]; if (sD == "") {return;}
	var	oD = eval("MM_findObj('" + sD + "')"); if (!oD) {return;} var iCSS = parseInt(arguments[1]);
	var sXL = arguments[2], sXC = arguments[3], sXR = arguments[4], sYT = arguments[5], sYC = arguments[6], sYB = arguments[7];
	var iS = (arguments.length > 8) ? parseInt(arguments[8]) : 0, iPx = (arguments.length > 9) ? parseInt(arguments[9]) : 0;
	if (iCSS != 0) { if (!document.layers) {oD = oD.style;} sXL = parseInt(oD.left), sYT = parseInt(oD.top);}
	var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	eval(sF);
}

function flevStopPersistentLayer() { // v3.4
	// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
	var sD = arguments[0], oD = MM_findObj(sD); if (!oD) {return;}
	if (!document.layers) {oD = oD.style;} if (oD.tmpTimeout != null) {clearTimeout(oD.tmpTimeout);}
}
/*   ********** Einde Persistant Layers *************    */

/* ======================================================================
FUNCTION:         openVergroting
functie:          Toon vergroting van image
Aangeroepen door: alle pagina's (top)
Parameters:       imageName: pad naar vergroting
                  imageWidth: breedte vergroting
                  imageHeight: hoogte vergroting
                  taal: nl/en/du
                  noscale:  0/1
====================================================================== */

function openVergroting(imageName,imageWidth,imageHeight,taal,noscale) {
// origineel: function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin)
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 2.1.8
// Aangepast door DJ 2001

   if (taal)
      {
      if (taal=="E"||taal=="en")
         {
         alt="* * Click to close window * *"
         }
      else
         {
         if (taal=="D"||taal=="du")
            {
            alt="* * Klick um Fenster zu schliessen * *"
            }
         else
            {
            alt="* * Klik om venster te sluiten * *"
            }
         }
      };
//   alt=imageName;
   var bgcolor = "ffffff";
   var hugMargin = "0";
   var hugger = "hug image";
// DJ
	var adj=10;
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

  if (noscale)
    {
    lift=1;
    bars=",scrollbars";
    }
  else {
    bars="";
  	if(w<740){
  	  var lift=0.90;
  	}
  	if(w>=740 & w<835){
  	  var lift=0.91;
  	}
  	if(w>=835){
  	  var lift=0.93;
  	}
  }

	if (imageWidth>w&&!noscale){
	  byFactor = w / imageWidth;
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj&&!noscale){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h;
	}
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin + 24;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  }
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }

	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}

	var agt=navigator.userAgent.toLowerCase();
	var is_opera = (agt.indexOf("opera") != -1);

	if (is_opera == true){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {

	if (niv==1) newWindow = window.open("../vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop+bars)
	else        newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop+bars);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+'height='+imageHeight+' alt="'+alt+'" >');  // DJ
	newWindow.document.write('</td></tr><tr><td align="center"><FONT font-size="10pt" face="Arial, Helvetica, sans-serif" color="213984">Golden Tulip<IMG src="'+basis+'img/tulpje(20).gif" width="20" height="20" hspace="10" align="absmiddle">Hotel Central</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}

/* ======================================================================
FUNCTION:         JumpTaal
functie:          Wisselen van taal (bewaren in cookie)
Aangeroepen door: links (nl/du/en)
argumenten:       taal (nl/du/en)
====================================================================== */

function JumpTaal(taal)
{
//   if (taal=="no") {alert('Soon!!');return true;};
//   if (taal=="nl") {alert('Binnenkort!!');return true;};
   loc=parent.location.href;
   pos=loc.lastIndexOf('\/');
   file=loc.substr(pos+1,loc.length);
   l=file;
   file=loc.substr(pos+1,loc.length);
	
   isIndex=loc.lastIndexOf('index.htm');
   if (isBlank(file)) isIndex=true;
   vertaald='';
   if (isIndex!=-1 && taal!='en') { vertaald=taal+'-index.htm'};
   if (isIndex!=-1 && taal=='en') { vertaald='index.htm'};
//   alert(vertaald);
//if (file=="index.htm") {
//   alert('index');
//}
if (file!="sitemap.htm") {
	if (isIndex!=-1) nieuw=vertaald;
	else nieuw="..\/"+taal+"\/"+file;
//	alert('nieuw: '+nieuw);
   document.location.href=nieuw;
   }
}
function changeDivImage()
{
   if (niv==0) {
       document.getElementById("kop").style.backgroundImage = "url(img/achter/vboven.jpg)";
       document.getElementById("links").style.backgroundImage = "url(img/achter/vlinks.jpg)";
       document.getElementById("achtergrond").style.backgroundImage = "url(img/achter/vcontent.jpg)";
       document.getElementById("rechts").style.backgroundImage = "url(img/achter/vrechts.jpg)";
       document.getElementById("voet").style.backgroundImage = "url(img/achter/vonder.jpg)";
   }
   else {
       document.getElementById("kop").style.backgroundImage = "url(../img/achter/boven.jpg)";
       document.getElementById("links").style.backgroundImage = "url(../img/achter/links.jpg)";
       document.getElementById("achtergrond").style.backgroundImage = "url(../img/achter/content.jpg)";
       document.getElementById("rechts").style.backgroundImage = "url(../img/achter/rechts.jpg)";
       document.getElementById("voet").style.backgroundImage = "url(../img/achter/onder.jpg)";
      }
   flevStartPersistentLayer('LayVergroting',0,'','1','','1000','','',10);
}
/* ======================================================================
FUNCTION:         topOver
functie:          Plaatje over tonen
Aangeroepen door: alle files van nl.dwt
argumenten:       top
====================================================================== */

var kleur="rood";
function topOver(top,welke)
{
//  image=basis+'img/top/'+top+welke+'_over.jpg';
  image=basis+'img/top/'+kleur+'/'+top+welke+'.jpg';
  MM_swapImage(welke,'',image,1);
}

/* ======================================================================
FUNCTION:         topVergroting
functie:          Welke vergroting
Aangeroepen door: alle files van nl.dwt
argumenten:       top, welke (g/m/k), taal (nl/en/du)
====================================================================== */

function topVergroting(top,welke,taal)
{
  image=basis+'img/top/gr/'+top+welke+'.jpg';
  openVergroting(image,'600','400',taal);
}

///////// ************* //////////////
/* ======================================================================
FUNCTION:         ToonTop
functie:          Toon topimages
Aangeroepen door: Init()
====================================================================== */

function ToonTop()
{
   p=basis+'img/top/kleur/'+top+'g.jpg';
   document.images["g"].src=p;
   p=basis+'img/top/kleur/'+top+'m.jpg';
   document.images["m"].src=p;
   p=basis+'img/top/kleur/'+top+'k.jpg';
   document.images["k"].src=p;
}
/* ======================================================================
FUNCTION:         PreloadTop
functie:          Preload topimages
Aangeroepen door: Init()
====================================================================== */

function PreloadTop()
{
   p=basis+'img/top/sepia/'+top+'g.jpg';
   comm="MM_preloadImages(p)";
   eval(comm);  // In verband met invullen "Template..." door Dreamweaver
   p=basis+'img/top/sepia/'+top+'m.jpg';
   eval(comm);
   p=basis+'img/top/sepia/'+top+'k.jpg';
   eval(comm);
}
/* ======================================================================
FUNCTION:         Init
functie:          Initialisatie
Aangeroepen door: alle files van nl.dwt
====================================================================== */


function ToonSel() {
  for (var i=0; i < document.forms.length; i++) {
    for (var j=0; j < document.forms[i].elements.length; j++) {
     if (document.forms[i].elements[j].type=="select-one") {
       MM_changeProp(document.forms[i].elements[j].name,'','style.visibility','visible','SELECT');
       }
     }
  }
}

function VerbergSel() {
  for (var i=0; i < document.forms.length; i++) {
    for (var j=0; j < document.forms[i].elements.length; j++) {
     if (document.forms[i].elements[j].type=="select-one") {
       MM_changeProp(document.forms[i].elements[j].name,'','style.visibility','hidden','SELECT');
       }
     }
  }
}
//
// Initialisatie extra variabelen, dummy in central.js indien niet in source eronder (bv. 0_reser en 0_info)
//
function InitVar() {}
//
/* ======================================================================
FUNCTION:         printit()
functie:          Afdrukken van browservenster
Parameter:        -
Aangeroepen door: n-route...htm
====================================================================== */
/*
This script is written by Eric (Webcrawl@usa.net)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
In combinatie met browsertest.js
*/

function printit()
{
   if (NN4plus||IE5plus)
      window.print();
   else
   {
      var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
      document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
      WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";
   }
}

