

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=500,height=370,left = 120,top = 234');");
}

function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=860,height=500,left = 120,top = 234');");
}
function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=440,left = 120,top = 234');");
}
function popUpkaart(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=368,left = 120,top = 234');");
}
function map(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=500,left = 120,top = 234');");
}
function map2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=330,left = 120,top = 234');");
}

function ClickInfo(name, url, height, width) {
	var left= Math.floor( (screen.width - width))/2;
	var top= Math.floor( (screen.height - height))/2;
	var winParms= "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
	winParms+= ",resizable=1,status=0,scrollbars=1";
	var win= window.open(url, name, winParms);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); };
	}
function closeWindow() {
  this.focus();
  self.opener = this;
  self.close();
}

browserName = navigator.appName; 
browserVer = parseInt(navigator.appVersion); 

ns3up = (browserName == "Netscape" && browserVer >= 3); 
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName){
	if (ns3up || ie4up){
	imgOn = ("" + imgName);
	document.mainpic.src = imgOn;
	}
}

// --

function RunFoo()
{
   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="406" height="219">\n');
   document.write('<param name="movie" value="streekkaart_nw2.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="bgcolor" value="#f8f3ef" />\n');
   document.write('<embed src="streekkaart_nw2.swf" width="406" height="219"></embed>\n');
   document.write('</object>\n');
}

// --

(function(){ // Import GET Vars   
	document.$_GET = [];   
	var urlHalves = String(document.location).split('?');   
		 if(urlHalves[1]){      
		 	 var urlVars = urlHalves[1].split('&');      
			 for(var i=0; i<=(urlVars.length); i++){         
				if(urlVars[i]){            
				var urlVarPair = urlVars[i].split('=');            
				document.$_GET[urlVarPair[0]] = urlVarPair[1];        
		 		}      
		 	 }   
	 	 }
})();

// ---

function Set_Cookie( name, value, expires, path, domain, secure )
{
		var today = new Date();
		var expires = 1;
		today.setTime( today.getTime() );
		
		if ( expires )
		{
		expires = expires * 1000 * 60 * 60;
		}
		var expires_date = new Date( today.getTime() + (expires) );
		
		document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
		( ( path ) ? ";path=" + path : "" ) +
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
}

//--
		
function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}

//--

function Kies() {

	var domain = document.domain;
	domain = domain.replace('www', '');
	
	if(document.$_GET["aankomst"] && document.$_GET["vertrek"]){	
		
		var aankomst = document.$_GET["aankomst"];
		var vertrek = document.$_GET["vertrek"];
	}
	else
	{
		var aankomst = '';
		var vertrek = '';
	}	
	
	
	if(getCookie('aankomst') &&  getCookie('vertrek')){	
			
		var cookie_aankomst = getCookie('aankomst');
		var cookie_vertrek = getCookie('vertrek');
	}
	else
	{
		var cookie_aankomst = '';
		var cookie_vertrek = '';
	}
			
		  			if(cookie_aankomst != aankomst || cookie_vertrek != vertrek){
						Set_Cookie( 'aankomst', aankomst, 1, '/', domain, '');
						Set_Cookie( 'vertrek', vertrek, 1, '/', domain, '');
		  			}

}

// --

