/*DomPatch v2.13 (c) 2001 Elmer Bulthuis, Fabrique*/if( window. Layer && window. Document && !window. Document. prototype. getElementById ){var eventWatch = function(){var e = Event[ arguments[ 0 ]. substring( 2 ). toUpperCase() ];if( arguments[ 2 ] ){this. captureEvents( e );}else{this. releaseEvents( e );}return arguments[ 2 ];};window. Document. prototype. getElementById = function(){if( this. layers[ arguments[ 0 ] ] ){return this. layers[ arguments[ 0 ] ];}for( var c = 0; c < this. layers. length; c++ ){var f = this. layers[ c ]. document. getElementById( arguments[ 0 ] );if( f ){return f;}}if( this. anchors[ arguments[ 0 ] ] ){this. anchors[ arguments[ 0 ] ]. offsetParent = this. layer;this. anchors[ arguments[ 0 ] ]. parentElement = this. layer;this. anchors[ arguments[ 0 ] ]. offsetLeft = this. anchors[ arguments[ 0 ] ]. x;this. anchors[ arguments[ 0 ] ]. offsetTop = this. anchors[ arguments[ 0 ] ]. y;return this. anchors[ arguments[ 0 ] ];}if( this. images[ arguments[ 0 ] ] ){this. images[ arguments[ 0 ] ]. offsetParent = this. layer;this. images[ arguments[ 0 ] ]. parentElement = this. layer;this. images[ arguments[ 0 ] ]. offsetLeft = this. images[ arguments[ 0 ] ]. x;this. images[ arguments[ 0 ] ]. offsetTop = this. images[ arguments[ 0 ] ]. y;return this. images[ arguments[ 0 ] ];}if( this. forms[ arguments[ 0 ] ] ){return this. forms[ arguments[ 0 ] ];}for( var c = 0; c < this. forms. length; c++ ){var f = this. forms[ c ]. elements[ arguments[ 0 ] ];if( f ){return f;}}if( this. applets[ arguments[ 0 ] ] ){return this. applets[ arguments[ 0 ] ];}if( this. embeds[ arguments[ 0 ] ] ){return this. embeds[ arguments[ 0 ] ];}return null;};window. Layer. prototype. onload = function(){this. document. layer = this;if( this. parentLayer != window ){this. offsetParent = this. parentLayer;this. parentElement = this. parentLayer;}this. offsetWidth = this. clip. width;this. offsetHeight = this. clip. height;this. watch( "innerHTML", function(){this. document. open();this. document. write( arguments[ 2 ] );this. document. close();return arguments[ 2 ];});if( this. onmousedown ){this. captureEvents( Event. MOUSEDOWN );}if( this. onmouseup ){this. captureEvents( Event. MOUSEUP );}if( this. onclick ){this. captureEvents( Event. CLICK );}if( this. ondblclick ){this. captureEvents( Event. DBLCLICK );}this. watch( "onmousedown", eventWatch );this. watch( "onmouseup", eventWatch );this. watch( "onclick", eventWatch );this. watch( "ondblclick", eventWatch );this. style = new Object();this. style. layer = this;if( this. visibility == "show" ){this. style. visibility = "visible";}else if( this. visibility == "hide" ){this. style. visibility = "hidden";}else{this. style. visibility = this. visibility;}this. style. watch( "visibility", function(){if( arguments[ 2 ] == "visible" ){this. layer. visibility = "show";}else if( arguments[ 2 ] == "hidden" ){this. layer. visibility = "hide";}else{this. layer. visibility = arguments[ 2 ];}return arguments[ 2 ];});this. style. left = this. left;if( this. offsetLayer ){this. offsetLeft = this. pageX - this. offsetLayer. pageX;}else{this. offsetLeft = this. pageX;}this. style. watch( "left", function(){this. layer. left = arguments[ 2 ];if( this. layer. offsetLayer ){this. layer. offsetLeft = this. layer. pageX - this. layer. offsetLayer. pageX;}else{this. layer. offsetLeft = this. layer. pageX;}return arguments[ 2 ];});this. style. top = this. top;if( this. offsetLayer ){this. offsetTop = this. pageY - this. offsetLayer. pageY;}else{this. offsetTop = this. pageY;}this. style. watch( "top", function(){this. layer. top = arguments[ 2 ];if( this. layer. offsetLayer ){this. layer. offsetTop = this. layer. pageY - this. layer. offsetLayer. pageY;}else{this. layer. offsetTop = this. layer. pageY;}return arguments[ 2 ];});this. style. zIndex = this. zIndex;this. style. watch( "zIndex", function(){this. layer. zIndex = arguments[ 2 ];return arguments[ 2 ];});this. style. backgroundColor = this. bgColor;this. style. watch( "backgroundColor", function(){if( arguments[ 2 ] ){this. layer. bgColor = arguments[ 2 ];}else{this. layer. bgColor = null;}return arguments[ 2 ];});this. style. watch( "clip", function(){var clipArray = arguments[ 2 ]. substring( arguments[ 2 ]. indexOf( "(" ) + 1, arguments[ 2 ]. indexOf( ")" ) ). split( " " );this. layer. clip. left = parseFloat( clipArray[ 3 ] );this. layer. clip. top = parseFloat( clipArray[ 0 ] );this. layer. clip. right = parseFloat( clipArray[ 1 ] );this. layer. clip. bottom = parseFloat( clipArray[ 2 ] );return arguments[ 2 ];});};window. document. watch( "onkeydown", eventWatch );window. document. watch( "onkeyup", eventWatch );window. document. watch( "onkeypress", eventWatch );window. document. watch( "onmouseover", eventWatch );window. document. watch( "onmouseout", eventWatch );window. document. watch( "onmousedown", eventWatch );window. document. watch( "onmouseup", eventWatch );window. document. watch( "onclick", eventWatch );window. document. watch( "ondblclick", eventWatch );window. document. watch( "onmousemove", eventWatch );}else if( !window. document. getElementById && window. document. all ){window. document. getElementById = function(){return this. all[ arguments[ 0 ] ];};}
/*JsHTML v1.06 (c) 2001 Elmer Bulthuis*/endHTMLs = new Array();function endHTML(){var e = endHTMLs[ endHTMLs. length - 1 ];endHTMLs. length --;return e;}if( window. document. layers ){layerStartHTML = function(){var styleArray = new Array();if( arguments[ 1 ] ){styleArray = arguments[ 1 ]. split( ";" );}for( var c = 0; c < styleArray. length; c ++ ){var a = styleArray[ c ]. split( ":" );styleArray[ a[ 0 ] ] = a[ 1 ];}var s = '';var e = '';if( styleArray[ "position" ] == "absolute" ){s += '<layer';}else if( styleArray[ "position" ] == "relative" ){s += '<ilayer';if( styleArray[ "z-index" ] ){s += ' z-index="' + styleArray[ "z-index" ] + '"';}else{s += ' z-index="0"';}s += '>';s += '<layer';}else{s += '<ilayer';}if( arguments[ 0 ] ){s += ' name="' + arguments[ 0 ] + '"';}if( styleArray[ "visibility" ] ){if( styleArray[ "visiblity" ] == "hidden" ){s += ' visibility="hide"';}else if( styleArray[ "visiblity" ] == "visible" ){s += ' visibility="show"';}else{s += ' visibility="' + styleArray[ "visibility" ] + '"';}}if( styleArray[ "left" ] ){s += ' left="' + styleArray[ "left" ] + '"';}if( styleArray[ "top" ] ){s += ' top="' + styleArray[ "top" ] + '"';}if( styleArray[ "width" ] ){s += ' width="' + styleArray[ "width" ] + '"';}if( styleArray[ "height" ] ){s += ' height="' + styleArray[ "height" ] + '"';}if( styleArray[ "z-index" ] ){s += ' z-index="' + styleArray[ "z-index" ] + '"';}else{s += ' z-index="0"';}if( styleArray[ "background-color" ] ){s += ' bgcolor="' + styleArray[ "background-color" ] + '"';}if( styleArray[ "background-image" ] ){s += ' background="' + ( styleArray[ "background-image" ]. substring( styleArray[ "background-image" ]. indexOf( "(" ) + 1, styleArray[ "background-image" ]. indexOf( ")" ) ) ) + '"';}s += '>';if( styleArray[ "position" ] == "absolute" ){e += '</layer>';}else if( styleArray[ "position" ] == "relative" ){e += '</layer>';e += '</ilayer>';}else{e += '</ilayer>';}endHTMLs[ endHTMLs. length ] = e;return s;};}else{layerStartHTML = function(){var s = '';var e = '';s += '<div';if( arguments[ 0 ] ){s += ' id="' + arguments[ 0 ] + '"';}s += ' style="';if( window. document. all && ( !arguments[ 1 ] || arguments[ 1 ]. indexOf( "width" ) < 0 ) ){s += "width:1;";}if( arguments[ 1 ] ){s += arguments[ 1 ];}s += '"';s += '>';e += '</div>';endHTMLs[ endHTMLs. length ] = e;return s;};}function imageHTML(){var s = '';s += '<img';if( arguments[ 0 ] ){if( document. layers ){s += ' name="' + arguments[ 0 ] + '"';}else{s += ' id="' + arguments[ 0 ] + '"';}}if( arguments[ 1 ] ){s += ' src="' + arguments[ 1 ] + '"';}if( arguments[ 2 ] ){s += ' alt="' + arguments[ 2 ] + '"';}s += ' hspace="0"';s += ' vspace="0"';s += ' border="0"';s += '>';return s;}
/*Funk v1.06 (c) 2000 Elmer Bulthuis*/browser = new Object();browser. mac = navigator. appVersion. toLowerCase(). indexOf( 'mac' ) >= 0;browser. win = navigator. appVersion. toLowerCase(). indexOf( 'win' ) >= 0;browser. unix = navigator. appVersion. toLowerCase(). indexOf( 'unix' ) >= 0;browser. ie = navigator. appName. toLowerCase(). indexOf( 'microsoft internet explorer' ) >= 0;browser. ns = navigator. appName. toLowerCase(). indexOf( 'netscape' ) >= 0;if( browser. ns ){browser. version = parseFloat( navigator. appVersion );}if( browser. ie ){browser. version = parseFloat( navigator. appVersion. substring( navigator. appVersion. toLowerCase(). indexOf( "msie" ) + 4 ) );}if( document. all ){getWindowWidth = new Function( 'return window. document. body. clientWidth;' );getWindowHeight = new Function( 'return window. document. body. clientHeight;' );getPageWidth = new Function( 'return window. document. body. scrollWidth;' );getPageHeight = new Function( 'return window. document. body. scrollHeight;' );getScrollX = new Function( 'return window. document. body. scrollLeft;' );getScrollY = new Function( 'return window. document. body. scrollTop;' );}else{getWindowWidth = new Function( 'return window. innerWidth;' );getWindowHeight = new Function( 'return window. innerHeight;' );getPageWidth = new Function( 'return window. document. width;' );getPageHeight = new Function( 'return window. document. height;' );getScrollX = new Function( 'return window. pageXOffset;' );getScrollY = new Function( 'return window. pageYOffset;' );}function getPageX(){var t = 0;for( var l = arguments[ 0 ]; l; l = l. offsetParent ){t += l. offsetLeft;}return t;};function getPageY(){var t = 0;for( var l = arguments[ 0 ]; l; l = l. offsetParent ){t += l. offsetTop;}return t;};UICount = 0;function UI(){return "UI" + ( new Date() ). valueOf() + "UI" + ( UICount ++ );}
/*ENode v1.01 (c) 2001 Elmer Bulthuis, Fabrique*/window. eNodeCollection = new Array();function ENode(){this. toString = new Function( "return 'window. eNodeCollection[ " + window. eNodeCollection. length + " ]';" );window. eNodeCollection[ window. eNodeCollection. length ] = this;this. childNodes = new Array();this. attributes = new Object();if( arguments[ 0 ] ){for( i in arguments[ 0 ] ){this. attributes[ i ] = arguments[ 0 ][ i ];}}this. firstChild = null;this. lastChild = null;this. previousSibling = null;this. nextSibling = null;this. parentNode = null;};ENode. prototype. appendChild = function(){if( this. lastChild ){this. lastChild. nextSibling = arguments[ 0 ];arguments[ 0 ]. previousSibling = this. lastChild;}this. lastChild = arguments[ 0 ];this. lastChild. parentNode = this;if( !this. hasChildNodes() ){this. firstChild = this. lastChild;}this. childNodes[ this. childNodes. length ] = this. lastChild;return this. lastChild;};ENode. prototype. hasChildNodes = function(){return this. childNodes. length != 0;};

/*------------------------------------------------------------------------------------------------*/



pathToRoot = "/";
imageDir = pathToRoot + "images/";
amImageDir = imageDir;
plImageDir = imageDir;
generiekImageDir = imageDir;
generiekImagesDir =generiekImageDir;
styleDir = pathToRoot + "styles/";

//fileInfo = "Aantal files : 6<br>Totale lengte : 12 km";
fileInfo = "";


window. mouseoverAan = false;


window. mouseX = 0;
window. mouseY = 0;
window. document. onmousemove = function()	{
	if( arguments[ 0 ] )	{
		window. mouseX = arguments[ 0 ]. pageX;
		window. mouseY = arguments[ 0 ]. pageY;
		}
	else	{
		window. mouseX = event. clientX + document. body. scrollLeft;
		window. mouseY = event. clientY + document. body. scrollTop;
		}
	}


function getFormValue()	{
	return arguments[ 0 ]. elements[ arguments[ 1 ] ];
	}


function getFormElementValue( _element )	{
	var d = new Array();
	if( _element. value )	{
		return _element. value;
		}
	else if( _element. options )	{
		for( var c = 0; c < _element. options. length; c++ )
			if( _element. options[ c ]. selected )
				d[ d. length ] = _element. options[ c ]. value;
		}
	else	{
		for( var c = 0; c < _element. length; c++ )
			if( _element[ c ]. checked )
				d[ d. length ] = _element[ c ]. value;
		}
	return d. join( ", " );
	}



if( top.frames.length > 0 )	{
	top. location. href = window. document. location. href;
	}
if( browser. version < 4 )	{
	document. location. href = pathToRoot + "browser.html";
	}



eImageCollection = new Array();
function EImage()	{
	this. toString = new Function( "return 'eImageCollection[ ' + eImageCollection. length + ' ]';" )
	eImageCollection[ eImageCollection. length ] = this;
	this. src = null;
	}
EImage. prototype. load = function()	{
	with( this. image = new Image() )	{
		src = this. src;
		this. src = src;
		}
	}
function loadEImages()	{
	for( var c = 0; c < eImageCollection. length; c++ )	{
		eImageCollection[ c ]. load();
		}
	}
function eImageArray()	{
	var a = new Array();
	for( var c = 0; c < arguments. length; c++ )	{
		with( a[ c ] = new EImage() )	{
			src = arguments[ c ];
			}
		}
	return a;
	}

multiImageCollection = new Array();
function MultiImage()	{
	this. toString = new Function( 'return "multiImageCollection[ ' + multiImageCollection. length + ' ]";' )
	multiImageCollection[ multiImageCollection. length ] = this;
	this. images = arguments[ 0 ];
	this. alt = arguments[ 1 ];
	this. imageIndex = 0
	}
MultiImage. prototype. HTML = function()	{
	this. currentImageIndex = this. imageIndex;
	var s = '';
	s += imageHTML( this. imageId = UI(), this. images[ this. currentImageIndex ]. src, this. alt );
	return s;
	}
MultiImage. prototype. init = function()	{
	this. image = window. document. getElementById( this. imageId );
	}
MultiImage. prototype. step = function()	{
	if( this. imageIndex != this. currentImageIndex && this. image )	{
		this. currentImageIndex = this. imageIndex;
		if( window. mouseoverAan )	{
			this. image. src = this. images[ this. currentImageIndex ]. src;
			}
		else	{
			this. image. src = this. images[ this. currentImageIndex & !1 ]. src;
			}
		}
	}
MultiImage. prototype. set = function()	{
	this. imageIndex = arguments[ 0 ];
	this. step();
	}
function moImageHTML()	{
	var m = new MultiImage( arguments[ 0 ] );
	m. alt = arguments[ 2 ]
	addInitFunction( new Function( m + ". init();" ) );
	var s = '';
	s += '<a';
	s += ' href="' + arguments[ 1 ] + '"';
	s += ' onmouseover="' + m + '. set( 1 );"'
	s += ' onmouseout="' + m + '. set( 0 );"'
	s += '>';
	s += m. HTML();
	s += '</a>';
	return s;
	}

layerTransitionCollection = new Array();
function LayerTransition()	{
	this. toString = new Function( 'return "layerTransitionCollection[ ' + layerTransitionCollection. length + ' ]";' )
	layerTransitionCollection[ layerTransitionCollection. length ] = this;

	this. layerId = UI();

	this. speed = 0.5;
	}
LayerTransition. prototype. init = function()	{
	this. layer = window. document. getElementById( this. layerId );
	this. visible = this. layer. style. visibility != "hidden";
	this. visibleWidth = this. visible ? this. layer. offsetWidth : 0;
	this. visibleHeight = this. visible ? this. layer. offsetHeight : 0;
	}
LayerTransition. prototype. step = function()	{
	if( !this. transition )	{
		return false;
		}
	if( this. transition == "snapIn" )	{
		this. visible = true;
		this. visibleWidth = this. layer. offsetWidth;
		this. visibleHeight = this. layer. offsetHeight;
		if( document. all )	{
			this. layer. style. visibility = "hidden";
			}
		this. layer. style. clip = "rect(0px " + this. layer. offsetWidth + "px " + this. layer. offsetHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		this. transition = "";
		}
	else if( this. transition == "snapOut" )	{
		this. visible = false;
		this. visibleWidth = 0;
		this. visibleHeight = 0;
		this. layer. style. visibility = "hidden";
		this. transition = "";
		}
	else if( this. transition == "wipeInFromTop" )	{
		this. visible = true;
		this. visibleHeight += ( this. layer. offsetHeight - this. visibleHeight ) * this. speed;
//		if( document. all )	{
//			this. layer. style. visibility = "hidden";
//			}
		this. layer. style. clip = "rect(0px " + this. layer. offsetWidth + "px " + this. visibleHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		if( this. layer. offsetHeight - this. visibleHeight <= 1 )	{
			this. transition = "snapIn";
			}
		}
	else if( this. transition == "wipeInFromLeft" )	{
		this. visible = true;
		this. visibleWidth += ( this. layer. offsetWidth - this. visibleWidth ) * this. speed;
//		if( document. all )	{
//			this. layer. style. visibility = "hidden";
//			}
		this. layer. style. clip = "rect(0px " + this. visibleWidth + "px " + this. layer. offsetHeight + "px 0px)";
		this. layer. style. visibility = "inherit";
		if( this. layer. offsetWidth - this. visibleWidth <= 1 )	{
			this. transition = "snapIn";
			}
		}
	return true;
	}


//---ANWB custom script



function generiekHTML()	{
	var s = '';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_zoeken_out.gif", generiekImageDir + "but_zoeken_over.gif" ), "/zoeken/index.html", "Zoeken" );
	s += '<IMG src="/images/spacer.gif" width="3" height="10" hspace="0" vspace="0" border="0" alt="">';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_contact_out.gif", generiekImageDir + "but_contact_over.gif" ), "/contact/index.html", "Contact" );
	s += '<IMG src="/images/spacer.gif" width="3" height="10" hspace="0" vspace="0" border="0" alt="">';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_help_out.gif", generiekImageDir + "but_help_over.gif" ), "/help/index.html", "Help" );
	if( arguments[ 0 ] )	{
		s += '<IMG src="/images/spacer.gif" width="3" height="10" hspace="0" vspace="0" border="0" alt="">';
		s += moImageHTML( new eImageArray( generiekImageDir + "but_print_out.gif", generiekImageDir + "but_print_over.gif" ), "/print/index.html", "Print" );
		}
	else	{
		s += '<IMG src="/images/gen_spacer1.gif" width="39" height="17" hspace="0" vspace="0" border="0" alt="">';
		}
	s += '<IMG src="/images/gen_spacer2.gif" width="13" height="17" hspace="0" vspace="0" border="0" alt="">';
	s += '<br>';
	s += '<IMG src="/images/spacer.gif" width="10" height="3" hspace="0" vspace="0" border="0" alt="">';
	s += '<br>';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_forum_out.gif", generiekImageDir + "but_forum_over.gif" ), "javascript: popForum();", "Forum" );
	s += '<IMG src="/images/spacer.gif" width="3" height="10" hspace="0" vspace="0" border="0" alt="">';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_nieuws_out.gif", generiekImageDir + "but_nieuws_over.gif" ), "/nieuws/index200.html", "Nieuws" );
	s += '<IMG src="/images/spacer.gif" width="3" height="10" hspace="0" vspace="0" border="0" alt="">';
	s += moImageHTML( new eImageArray( generiekImageDir + "but_mijnanwb_out.gif", generiekImageDir + "but_mijnanwb_over.gif" ), "/mijnanwb/index.html", "Mijn ANWB" );
	s += '<IMG src="/images/gen_spacer2.gif" width="13" height="17" hspace="0" vspace="0" border="0" alt="">';
	return s;
	}


initFunctions = new Array();
function init()	{
	loadEImages();
	for( var c = 0; c < initFunctions. length; c++ )	{
		initFunctions[ c ]();
		}
	setInterval( "step();", 50 );
	}
function addInitFunction()	{
	initFunctions[ initFunctions. length ] = arguments[ 0 ];
	}
stepFunctions = new Array();
function step()	{
	for( var c = 0; c < stepFunctions. length; c++ )	{
		stepFunctions[ c ]();
		}
	}
function addStepFunction()	{
	stepFunctions[ stepFunctions. length ] = arguments[ 0 ];
	}







function middenSpacerHTML()	{
	var s = '';
	s += '<img';
	s += ' src="' + imageDir + 'spacer.gif"';
	s += ' width="' + Math. floor( ( getWindowWidth() - 800 ) / 2 ) + '"';
	s += ' height="10"';
	s += ' hspace="0"';
	s += ' vspace="0"';
	s += ' border="0"';
	s += ' alt="">';
	return s;
	}
function naarTopHTML()	{
	addInitFunction( new Function( 'window. document. getElementById( naarTopLayerId ). style. visibility = getPageHeight() > getWindowHeight() ? "inherit" : "hidden";' ) );
	var s = '';
	s += layerStartHTML( naarTopLayerId = UI(), null );
	s += '<a';
	s += ' href="#top"';
	s += ' class="copyright"';
	s += '>';
	s += 'top';
	s += ' </a>';
	s += endHTML();
	return s;
	}

function kleurenBalkInit()	{
	window. kleurenBalkImage = window. document. getElementById( "kleurenbalk" );
	}
addInitFunction( kleurenBalkInit );

function welkomHTML()	{
	addInitFunction( welkomInit );
	var s = '';
	s += layerStartHTML( window. welkomLayerId = UI(), "position:absolute;visibility:hidden;z-index:500;" );
	s += '<table width="200" height="37" border="0" cellspacing="0" cellpadding="4" bgcolor="#02a3da">';
	s += '<tr>';
	s += '<td class="welkom">';
	s += 'Welkom ' + arguments[ 0 ];
	s += '</td>';
	s += '</tr>';
	s += '</table>';
	s += endHTML();
	return s;
	}
function welkomInit()	{
	window. welkomLayer = window. document. getElementById( window. welkomLayerId );
	if( document. layers )	{
		window. welkomLayer. onmousedown = welkomHide;
		}
	else	{
		window. welkomLayer. onclick = welkomHide;
		}
	window. welkomLayer. style. visibility = "inherit";
	window. welkomLayer. style. top = getPageY( window. kleurenBalkImage ) + 26;
	window. welkomLayer. style. left = getPageX( window. kleurenBalkImage ) + 360;
	window. welkomTimeout = setTimeout( 'welkomHide();', 5000 );
	}
function welkomHide()	{
	if( window. welkomTimeout )	{
		clearTimeout( window. welkomTimeout );
		}
	window. welkomLayer. style. visibility = "hidden";
	if( window. logoLayer )	{
		window. logoLayer. style. visibility = "inherit";
		}
	}

function logoHTML()	{
	if( document. referrer. indexOf( document. location. hostname ) >= 0 )	{
		return "";
		}

	addInitFunction( logoInit );
	var s = '';
	s += layerStartHTML( window. logoLayerId = UI(), "position:absolute;visibility:hidden;z-index:500;" );
	s += imageHTML( null, imageDir + "anwb_logo_100.gif" );
	s += endHTML();
	return s;
	}
function logoInit()	{
	window. logoLayer = window. document. getElementById( window. logoLayerId );
	if( !window. welkomLayerId )	{
		window. logoLayer. style. visibility = "inherit";
		}
	window. logoLayer. style. top = getPageY( window. kleurenBalkImage ) + 26;
	window. logoLayer. style. left = getPageX( window. kleurenBalkImage ) + 470;
	}

//--- Scripts t.b.v. routeplanner. Toegevoegd 30-7-02 Antoine Kollee- aangepast 15-08-2002 door Denis Kramers

sURLBase = 'http://anwb.tms.tensingsks.com/tms/scripts/tgigw.dll';
sConfig = 'anwb';

function MapOfPc(country, pc)
{
  sURL = sURLBase;
  sURL += '?app=resolve';
  sURL += '&cmd=resolve1';
  sURL += '&config=' + sConfig;
  sURL += '&seltype1=1';
  sURL += '&countryid1=' + country;
  sURL += '&pc1=' + pc;
  sURL += '&redirurl=' + escape(sURLBase + '?app=tms&cmd=loc&output=html&select=zoom&level=3&');

  var _width= 750;
  var _height= 460;
  var anwbPopup = window. open( sURL, UI(), "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=" + _width + ",height=" + _height + "" );
  anwbPopup. focus();
}

function mapOfCoordinate(lat, lon, descr, level)
{	var sRedirUrl = sURLBase;
	sRedirUrl += "?app=tms";
	sRedirUrl += "&cmd=loc";
	sRedirUrl += "&output=html";
	sRedirUrl += "&select=zoom";
	sRedirUrl += "&level=" + level;
	sRedirUrl += "&";
	var sURL = sURLBase;
	sURL += '?app=resolve';
	sURL += '&cmd=resolve1';
	sURL += '&action=1';
	sURL += '&config=' + sConfig;
	sURL += '&redirurl=' + escape(sRedirUrl);
	sURL += '&seltype1=4';
	sURL += '&lat1=' + escape(lat);
	sURL += '&lon1=' + escape(lon);
	sURL += '&descr1=' + escape(descr);
        var _width=750;
        var _height=460;
        var anwbPopup = window. open( sURL, UI(), "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width" + _width + ",height=" + _height + "" );
        anwbPopup. focus();
}

function MapOfAddress(country, street, city)
{
  sURL = sURLBase;
  sURL += '?app=resolve';
  sURL += '&cmd=resolve1';
  sURL += '&config=' + sConfig;
  sURL += '&seltype1=1';
  sURL += '&countryid1=' + country;
  sURL += '&plaats1=' + city;
  sURL += '&straat1=' + street;
  sURL += '&redirurl=' + escape(sURLBase + '?app=tms&cmd=loc&output=html&select=zoom&level=2&');

  var _width= 750;
  var _height= 460;
  var anwbPopup = window. open( sURL, UI(), "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=" + _width + ",height=" + _height + "" );
  anwbPopup. focus();
}




//--- ANWB custom ouwe scripts

function openNewWindow(sURL) {
	var sOptions = "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=400";
	window.open (sURL,'',sOptions);
	}
function popupFile( _url, _width, _height )	{
	if( !_width )	{
		_width = 650;
		}
	if( !_height )	{
		_height = 460;
		}
	var anwbPopup = window. open( _url, UI(), "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=" + _width + ",height=" + _height + "" );
	anwbPopup. focus();
	}
function popupFilePrint( _url, _width, _height )	{
	if( !_width )	{
		_width = 650;
		}
	if( !_height )	{
		_height = 460;
		}
	var anwbPopup = window. open( _url, UI(), "toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,top=0,left=0,resizable=1,width=" + _width + ",height=" + _height + "" );
	anwbPopup. focus();
	}
function popupLogin()	{
	popupFile( pathToRoot + "autorisatie/login.html", 420, 460 );
	}
function popupRoute()	{
	popupFile( "http:\/\/route.anwb.nl", 750, 460 );
	}
function popupForum()	{
	popupFile( pathToRoot + "forum/", 750, 460 );
	}
function popupPrint( _url )	{
	popupFile( _url, 720, 460 );
	}
function popupKassabon()	{
	popupFile( pathToRoot + "webwinkel/kasabon.html", 420, 400 );
	}
var popupPlaatjeLadend = null;
var popupPlaatjeLadend_width = null;
var popupPlaatjeLadend_height = null;
var popupPlaatjeLadend_title = null;
var popupPlaatjeLadend_onderschrift = null;
function popupPlaatje( _titel, _plaatje, _w, _h, _onderschrift )	{
	popupPlaatjeLadend = new Image();
	popupPlaatjeLadend. src = _plaatje;
	popupPlaatjeLadend_width = _w ? _w : null;
	popupPlaatjeLadend_height = _h ? _h : null;
	popupPlaatjeLadend_title = _titel;
	popupPlaatjeLadend_onderschrift = _onderschrift;
	popupPlaatjeLadedLuisteren();
	}
function popupPlaatjeLadedLuisteren()	{
	if( popupPlaatjeLadend_width && popupPlaatjeLadend_height )	{
		window. open( pathToRoot + "popupplaatje.html?titel=" + escape( popupPlaatjeLadend_title ) + "&plaatje=" + escape( popupPlaatjeLadend. src ) + ( popupPlaatjeLadend_onderschrift ? ( "&onderschrift=" + escape( popupPlaatjeLadend_onderschrift ) ) : "" ) , UI(), "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + ( popupPlaatjeLadend_width + 150 ) + ",height=" + ( popupPlaatjeLadend_height + 180 ) );
		}
	else	{
		popupPlaatjeLadend_width = popupPlaatjeLadend. width;
		popupPlaatjeLadend_height = popupPlaatjeLadend. height;
		setTimeout( "popupPlaatjeLadedLuisteren();", 30 );
		}
	}

function gotoOption( _select )	{
	if( _select. options[ _select. selectedIndex ]. value )
		document. location. href = _select. options[ _select. selectedIndex ]. value;
	}


function replaceSpace( inTxt ) {
	var spaceIndex = 0;
	var outTxt = "";
	for( var c = 0; c < inTxt. length; c++ )
		outTxt += inTxt. charAt( c ) == " " ? "+" : inTxt. charAt( c );
	return outTxt;
	}//replaceSpace()

function getSearchArgs() {
	var args = new Array()
	var a = new Array();
	var aa = new Array();
	var s = unescape( document. location. search. substring( 1, document. location. search. length ) );
	a = s. split( "&" );
	for( c = 0; c < a. length; c++ ) {
		aa = a[ c ]. split( "=" );
		args[ aa[ 0 ] ] = aa[ 1 ];
		}
return args;
}
searchArgs = getSearchArgs();






jsLoaded = true;

