

	///////////////////////////////////////////////
	// SETTINGS
	///////////////////////////////////////////////
	var allCategoriesVisible	= false;
	var allCategoriesUp			= false;
	var openSpeed				= 30;
	var closeSpeed				= 20;
	var closeTimeout			= 0;
	var closeAfterTimeout		= false;
	var searchFormValue			= "Zoeken in...";
	var bottombarVisible		= false;
	var bottombarDisabled		= false;
	var bottomInactiveText		= "sluiten";
	var bottomInactiveTitle		= "Zoekbalk onderaan de pagina";
	var bottomActiveText		= "activeer";
	var bottomActiveTitle		= "Zoekbalk altijd in beeld";
   	var dynamicCalls			= new Array();
   	var googleQuery				= "";
   	var Geometry				= {};
	var dayLong					= new Array('Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag');
	var dayShort				= new Array('Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za');
	var monthLong				= new Array('Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'December');
	var monthShort				= new Array('Jan', 'Feb', 'Maa', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec');

	var agt						= navigator.userAgent.toLowerCase();
	var is_opera				= navigator.appName == "Opera";
	var is_ie					= navigator.appName == "Microsoft Internet Explorer";
	var is_netscape				= navigator.appName == "Netscape";
	var is_ie6					= agt.indexOf("msie 6.") != -1;
	var is_firefox				= agt.indexOf("firefox") != -1;

	var xAO,yAO,wAO,hAO;
	var wAO = 346;
	var hAO = 271;

	var ySO = 140;
	var hBB = 72;

	var d = document;

	if(typeof(wlrcmd) == "undefined")
	{
		var wlrcmd = "";
	}


	///////////////////////////////////////////////
	// ADDLOADEVENT
	///////////////////////////////////////////////
	function addLoadEvent(func)
	{
		var oldonload = window.onload;

		if(typeof window.onload != 'function')
		{
			window.onload = func;
		}
		else
		{
			window.onload = function()
			{
				if(oldonload)
				{
					oldonload();
				}

				func();
			}
		}
	}


	///////////////////////////////////////////////
	// ADDDOMLOADEVENT
	///////////////////////////////////////////////
	function addDOMLoadEvent(func)
	{
		if(!window.__load_events)
		{
			var init = function()
			{
				// quit if this function has already been called
				if(arguments.callee.done)
				{
					return;
				}

				// flag this function so we don't do the same thing twice
				arguments.callee.done = true;

				// kill the timer
				if(window.__load_timer)
				{
					clearInterval(window.__load_timer);
					window.__load_timer = null;
				}

				// execute each function in the stack in the order they were added
				for(var i=0; i < window.__load_events.length; i++)
				{
					window.__load_events[i]();
				}

				window.__load_events = null;
			};

			// for Mozilla/Opera9
			if(document.addEventListener)
			{
				document.addEventListener("DOMContentLoaded", init, false);
			}

			// for Safari
			if(/WebKit/i.test(navigator.userAgent))
			{
				// sniff
				window.__load_timer = setInterval(function()
				{
					if(/loaded|complete/.test(document.readyState))
					{
						// call the onload handler
						init();
					}
				}, 10);
			}

			// for other browsers
			window.onload = init;

			// create event function stack
			window.__load_events = [];
		}

		// add function to event stack
		window.__load_events.push(func);
	}


	///////////////////////////////////////////////
	// ONLOADATTACHSCRIPT
	///////////////////////////////////////////////
	function onLoadAttachScript(include)
	{
		var attachScript = function()
		{
			var script	= document.createElement("script");
			script.src	= include;
			script.type	= "text/javascript";

			var body	= document.getElementsByTagName("body");
			body[0].appendChild(script);
		};

		addDOMLoadEvent(attachScript);
	}

	function attachScript(src)
	{
		var script	= document.createElement("script");
		script.src	= src;
		script.type	= "text/javascript";

		var body	= document.getElementsByTagName("body");
		body[0].appendChild(script);
	}

	//////////////////////////////////////////////////////////////////////////////////////////////
	// COOKIES
	//////////////////////////////////////////////////////////////////////////////////////////////
	function setCookie(name, value)
	{
		if((value != null) && (value != ""))
		{
			var today	= new Date();
			var expiry	= new Date(today.getTime()+31536000000);

			d.cookie	= name + "=" + escape(value) + ";expires=" + expiry.toGMTString() + ";path=/";
		}
	}

	function GetCookie(name)
	{
		arg	= name + "=";
		i	= 0;

		while(i < d.cookie.length)
		{
			j = i + arg.length;

			if(d.cookie.substring(i, j) == arg)
			{
				endstr = d.cookie.indexOf(";", j);

				if(endstr == -1)
				{
					endstr = d.cookie.length;
				}

				return unescape(d.cookie.substring(j, endstr));
			}

			i = d.cookie.indexOf(" ", i) + 1;

			if(i == 0)
			{
				break;
			}
		}

		return null;
	}


	///////////////////////////////////////////////
	// SEARCH
	///////////////////////////////////////////////
	function initSearch(input, enter)
	{
		if(enter && (input.value == searchFormValue))
		{
			input.value = "";
		}
		else if((enter == false) && (input.value == ""))
		{
			if(googleQuery != "")
			{
				input.value = googleQuery;
			}
			else
			{
				input.value = searchFormValue;
			}
		}
	}

	function onLoadInitSearch()
	{
		if(document.getElementById('searchForm'))
		{
			initSearch(document.getElementById('searchForm').q, false);

			document.getElementById('searchForm').q.focus();
		}

		if(document.getElementById('searchForm_fixed'))
		{
			initSearch(document.getElementById('searchForm_fixed').q_fixed, false);
		}
	}

	function doSearch(form)
	{
		var searchEngines = new Array();
		searchEngines["Zoeken_Overzicht"]	= new Array("http://zoeken.overzicht.nl/?Keywords=", "13667", "c276cb34119470cb6e9e0791b2223ace");
		searchEngines["Zoeken_Google"]		= new Array("http://startgoogle.startpagina.nl/?q=", "13669", "f7f4113f2b8fbda42b1b78daaacaab77");
		searchEngines["Zoeken_Kieskeurig"]	= new Array("http://www.kieskeurig.nl/zoeken/index.html?q=", "13670", "1452fd438de4824f6bdeaab007bafa51");
		searchEngines["Zoeken_Zoeken"]		= new Array("http://www.zoeken.nl/?refer=startpagina&asid=3364694941&q=", "13960", "c69cd8bfe9a4d4f0eea213b18ed71ec4");
		searchEngines["Zoeken_Vinden"]		= new Array("http://www.vinden.nl/?refer=startpagina&template=ggn&asid=6876969612&q=", "13959", "498f49625038e01292bf41cf3da41aa8");

		return doQuery(searchEngines, form);
	}

	function doSearchFixed(form)
	{
		var searchEngines = new Array();
		searchEngines["Zoeken_Overzicht"]	= new Array("http://zoeken.overzicht.nl/?Keywords=", "29288", "402ebbe08bc8d748c2b04fb56c191994");
		searchEngines["Zoeken_Google"]		= new Array("http://startgoogle.startpagina.nl/?q=", "29291", "1aca22ff52997db618f9b318255903e8");
		searchEngines["Zoeken_Kieskeurig"]	= new Array("http://www.kieskeurig.nl/zoeken/index.html?q=", "29292", "203460dc15446952cbf1f1b35a41007f");
		searchEngines["Zoeken_Zoeken"]		= new Array("http://www.zoeken.nl/?refer=startpagina&asid=3364694941&q=", "13960", "e5ac8bdd726c2cb8e2295a6b1a20f386");
		searchEngines["Zoeken_Vinden"]		= new Array("http://www.vinden.nl/?refer=startpagina&template=ggn&asid=6876969612&q=", "13959", "662ef9f8263dd056a1e2be0582d41aa0");

		return doQuery(searchEngines, form);
	}

	function doQuery(searchEngines, form)
	{
		qValue	= form.q.value;
		sValue	= form.s.options[form.s.selectedIndex].value;

		if((qValue != "") && (qValue != searchFormValue))
		{
			form.action		= searchEngines[sValue][0] + qValue;
			searchResult	= n(searchEngines[sValue][2], searchEngines[sValue][0], sValue, searchEngines[sValue][1]);

			searchResult.location.href = searchEngines[sValue][0] + qValue;
		}
		else
		{
			alert("Om te zoeken dien je minimaal een zoekterm in te voeren!");
			form.q.focus();
		}

		return false;
	}

	///////////////////////////////////////////////
	// ADSENSE
	///////////////////////////////////////////////
	function adsenseShowLinks(ads, first_ad, last_ad, title, zlostatid, target)
	{
		var s 		= '';
		var afctel	= 0;
		var i;

		if(ads.length < (last_ad + 1))
		{
			last_ad = ads.length - 1;
		}

		if((ads[0].type != "flash") && (ads[0].type != "image"))
		{
			for(i=first_ad; i <= last_ad; ++i)
			{
				afctel++;
				s += '<div><a href="' + ads[i].url + '" onmouseout="window.status=\'\';return true;" onmouseover="window.status=\'go to ' + ads[i].visible_url + '\';return true;" target="' + afctel + '" onclick="n(' + afctel + ',\'http://pagead2.googlesyndication.com/pagead/\',\'' + title + '\',\'' + zlostatid + '\');"><span>' + ads[i].line1 + '</span><br/>' + ads[i].line2 + ' ' + ads[i].line3 + '<br/><small><span>' + ads[i].visible_url + '</span></small></a></div>';
			}
		}

		document.getElementById(target).innerHTML = s;
		return;
	}
	function adsenseShowLinksSmall(ads, first_ad, last_ad, title, zlostatid, target)
	{
		var s 		= '';
		var afctel	= 0;
		var i;

		if(ads.length < (last_ad + 1))
		{
			last_ad = ads.length - 1;
		}

		if((ads[0].type != "flash") && (ads[0].type != "image"))
		{
			for(i=first_ad; i <= last_ad; ++i)
			{
				afctel++;
				s += '<div style="padding:15px 0 9px 0;width:160px;overflow: hidden;"><a href="' + ads[i].url + '" onmouseout="window.status=\'\';return true;" onmouseover="window.status=\'go to ' + ads[i].visible_url + '\';return true;" target="' + afctel + '" onclick="n(' + afctel + ',\'http://pagead2.googlesyndication.com/pagead/\',\'' + title + '\',\'' + zlostatid + '\');"><span style="font-size:12px;font-weight:bold;color:#F06A0F;">' + ads[i].line1 + '</span><br/>' + ads[i].line2 + ' ' + ads[i].line3 + '<br/><small><span style="text-decoration:underline;color:#D0A34E;">' + ads[i].visible_url + '</span></small></a></div>';
			}
		}

		document.getElementById(target).innerHTML = s;
		return;
	}
	function googleAFCLinks(ads, prio, title, zlostatid, target)
	{
		var s 			= '';
		var first_ad	= 0;
		var last_ad		= 0;
		var i;

		for(i=1; i<prio; i++)
		{
			if(googleAFCPositions[i])
			{
				first_ad += googleAFCPositions[i];
			}
		}

		if(ads.length < (last_ad + 1))
		{
			last_ad = ads.length - 1;
		}
		else
		{
			last_ad = first_ad + googleAFCPositions[prio]-1;
		}

		for(i = first_ad; i <= last_ad; ++i)
		{
			if(ads[i])
			{
				s += '<div>'+
						'<a  href="'+ ads[i].url +'" '+
							'onmouseout="window.status=\'\';return true;" '+
							'onmouseover="window.status=\'ga naar '+ ads[i].visible_url +'\';return true;" '+
							'target="'+ target +'" '+
							'onclick="n(\''+ target +'\',\'http://pagead2.googlesyndication.com/pagead/\',\''+ title +'\',\''+ zlostatid +'\');" '+
							'title="'+ ads[i].line1 +'">'+
								'<span>'+ ads[i].line1 +'</span><br/>'+
								ads[i].line2 +' '+ ads[i].line3 +'<br/>'+
								'<small><span>'+ ads[i].visible_url +'</span></small>'+
						'</a>'+
					 '</div>';
			}
		}

		/* tijdelijke check op oude id's zolang wonen.ovz nog niet gepubliceerd is. na publiceren deze check verwijderen. */
		if(target.substr(0, 8) == 'adsense_')
			document.getElementById(target).innerHTML = s;
		else
			document.getElementById('adsense_'+ target).innerHTML = s;

		return;
	}
	function googleAFCLinksChannel(ads, title, zlostatid, target)
	{
		var s = '';

		for(var i=0; i<=ads.length; ++i)
		{
			if(ads[i])
			{
				s += '<div>'+
						'<a  href="'+ ads[i].url +'" '+
							'onmouseout="window.status=\'\';return true;" '+
							'onmouseover="window.status=\'ga naar '+ ads[i].visible_url +'\';return true;" '+
							'target="'+ target +'" '+
							'onclick="n(\''+ target +'\',\'http://pagead2.googlesyndication.com/pagead/\',\''+ title +'\',\''+ zlostatid +'\');" '+
							'title="'+ ads[i].line1 +'">'+
								'<span>'+ ads[i].line1 +'</span><br/>'+
								ads[i].line2 +' '+ ads[i].line3 +'<br/>'+
								'<small><span>'+ ads[i].visible_url +'</span></small>'+
						'</a>'+
					 '</div>';
			}
		}

		document.getElementById('adsense_'+ target).innerHTML = s;

		return;
	}


	///////////////////////////////////////////////
	// ZANOX
	///////////////////////////////////////////////
	function zanoxDoQuery(version, connectId, adspace, region, programs, hasImages, searchType, minPrice, maxPrice, category, page, items, q, callback)
	{
		var url = 'http://api.zanox.com/json/' + version + '/products?connectid=' + connectId;

		if(adspace && adspace != '') url += '&adspace=' + adspace;
		if(region && region != '') url += '&region=' + region;
		if(hasImages) url += '&hasImages=' + hasImages;
		if(programs && programs != '') url += '&programs=' + programs;
		if(searchType && searchType != '') url += '&searchType=' + searchType;
		if(category && category != '') url += '&category=' + category;
		if(page && page != '') url += '&page=' + page;
		if(items && items != '') url += '&items=' + items;
		if(minPrice && minPrice != '') url += '&minPrice=' + minPrice;
		if(maxPrice && maxPrice != '') url += '&maxPrice=' + maxPrice;
		if(callback) url += '&callback=' + callback;
		if(q) url += '&q=' + q;

		attachScript(url);
	}
	function zanoxQueryHandler(data, container_id, target, url, title, zlostatid)
	{
		if(data.productItems)
		{
			var query = data.query;
			var result = '';
			var productItems = data.productItems.productItem;

			if(productItems.length > 2)
			{
				for(i=0; i<productItems.length; i++)
				{
					var productItem = productItems[i];
					var productName = productItem.name;

					if(productName.length > 28)
					{
						productName = productName.substr(0, 27) +'..';
					}

					if(productName.search(new RegExp(query, "i")) != -1)
					{
						productName = productName.replace(new RegExp(query, "gi"), '<span class="bold">'+ query +'</span>');
					}

					result += '<div style="width:190px;height:16px;overflow:hidden;"><a href="'+ productItem.trackingLinks.trackingLink.ppc +'&zpar0=[[querybased_vakantie]]" target="'+ target +'" onclick="n(\''+ target +'\', \''+ url +'\', \''+ title +'\', \''+ zlostatid +'\');" title="'+ productItem.name +'">'+ productName +'</a></div>';
				}

				document.getElementById(container_id).innerHTML = result;
				document.getElementById(container_id).parentNode.parentNode.parentNode.style.display = 'block';

				as.action('Zanox-Querybased');
			}
		}
	}


	///////////////////////////////////////////////
	// DOUBLECLICK
	///////////////////////////////////////////////
	function doubleClickShowBanner(id)
	{
		ord = (typeof(ord) != 'undefined') ? ord : Math.random()*10000000000000000;

		document.write('<scr' + 'ipt language="javascript" type="text/javascript" src="http://ad.nl.doubleclick.net/adj/P4442.Overzicht/' + id + ';sz=468x60;tile=1;kw=' + wlrcmd + ';ord=' + ord + '?"></scr' + 'ipt>');
	}

	function doubleClickShowSkyscraper(id)
	{
		ord = (typeof(ord) != 'undefined') ? ord : Math.random()*10000000000000000;

		document.write('<scr' + 'ipt language="JavaScript" type="text/javascript" src="http://ad.nl.doubleclick.net/adj/P4442.Overzicht/' + id + ';sz=120x600;tile=2;kw=' + wlrcmd + ';ord=' + ord + '?"></scr' + 'ipt>');
	}


	///////////////////////////////////////////////
	// GET GOOGLE QUERY
	///////////////////////////////////////////////
	function getGoogleQuery()
	{
		var keyword	= "";
		var ref		= document.referrer;

		if((ref != null) && (ref != ''))
		{
			if((ref.indexOf('google.') != -1) && (ref.indexOf('q=') != -1))
			{
				var urlPattern	= /(\?|&)q=([^&]*)/;
				var aMatches	= urlPattern.exec(ref);

				if(aMatches != null)
				{
					keyword = aMatches[2];
					keyword = keyword.replace(/\+/g, ' ');

					googleQuery = keyword;
				}
			}
		}
	}


	///////////////////////////////////////////////
	// SELECT GOOGLE QUERY
	///////////////////////////////////////////////
	function selectGoogleQuery(selectId)
	{
		var selected = false;


		if(googleQuery != "")
		{
			var keywords		= googleQuery.split(' ');
			var selectElm		= document.getElementById(selectId);
			var selectOptions	= selectElm.options;

			// make keywords lowercase
			for(i=0; i<keywords.length; i++)
				keywords[i] = keywords[i].toLowerCase();

			// compare keywords with values of options
			for(i=0; i<selectOptions.length; i++)
			{
				var text = selectOptions[i].text;

				if((text != null) && (text != ''))
				{
					text = text.toLowerCase();

					for(j=0; j<keywords.length; j++)
					{
						// if match found, select the first one (and only the first one)
						if((text.indexOf(keywords[j]) != -1) && (selected == false))
						{
							selectOptions[i].selected = true;
							selected = true;
						}
					}
				}
			}
		}

		return selected;
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// GEOMETRY - This module defines functions for querying window and document geometry
	//////////////////////////////////////////////////////////////////////////////////////////////
	function setGeometry()
	{
		// getWindowX/Y( ): return the position of the window on the screen
		if(window.screenLeft)
		{
			// IE and others
			Geometry.getWindowX = function( ) { return window.screenLeft; };
			Geometry.getWindowY = function( ) { return window.screenTop; };
		}
		else if(window.screenX)
		{
			// Firefox and others
			Geometry.getWindowX = function( ) { return window.screenX; };
			Geometry.getWindowY = function( ) { return window.screenY; };
		}

		// getViewportWidth/Height( ): return the size of the browser viewport area
		// getHorizontalScroll( ): return the position of the horizontal scrollbar
		// getVerticalScroll( ): return the position of the vertical scrollbar
		if(window.innerWidth)
		{
			// All browsers but IE
			Geometry.getViewportWidth = function( ) { return window.innerWidth; };
			Geometry.getViewportHeight = function( ) { return window.innerHeight; };
			Geometry.getHorizontalScroll = function( ) { return window.pageXOffset; };
			Geometry.getVerticalScroll = function( ) { return window.pageYOffset; };
		}
		else if(document.documentElement && document.documentElement.clientWidth)
		{
			// These functions are for IE 6 when there is a DOCTYPE
			Geometry.getViewportWidth = function( ) { return document.documentElement.clientWidth; };
			Geometry.getViewportHeight = function( ) { return document.documentElement.clientHeight; };
			Geometry.getHorizontalScroll = function( ) { return document.documentElement.scrollLeft; };
			Geometry.getVerticalScroll = function( ) { return document.documentElement.scrollTop; };
		}
		else if(document.body.clientWidth)
		{
			// These are for IE4, IE5, and IE6 without a DOCTYPE
			Geometry.getViewportWidth = function( ) { return document.body.clientWidth; };
			Geometry.getViewportHeight = function( ) { return document.body.clientHeight; };
			Geometry.getHorizontalScroll = function( ) { return document.body.scrollLeft; };
			Geometry.getVerticalScroll = function( ) { return document.body.scrollTop; };
		}

		// getDocumentWidth/Height( ): return the size of the document
		// These functions return the size of the document. They are not window
		// related, but they are useful to have here anyway.
		if(document.documentElement && document.documentElement.scrollWidth)
		{
			Geometry.getDocumentWidth = function( ) { return document.documentElement.scrollWidth; };
			Geometry.getDocumentHeight = function( ) { return document.documentElement.scrollHeight; };
		}
		else if(document.body.scrollWidth)
		{
			Geometry.getDocumentWidth = function( ) { return document.body.scrollWidth; };
			Geometry.getDocumentHeight = function( ) { return document.body.scrollHeight; };
		}
	}


	///////////////////////////////////////////////
	// ALLE OVERZICHTEN
	///////////////////////////////////////////////
	function showAll(obj, open)
	{
		if(obj.id == "alloverviews")
		{
			allCategoriesUp = false;

			document.getElementById("alloverviews_container").style.top = yAO + 'px';
		}
		else if(obj.id == "alloverviews_fixed")
		{
			allCategoriesUp = true;

			var yAO2 = (Geometry.getViewportHeight() + Geometry.getVerticalScroll()) - hAO - document.getElementById("fixed_bar").offsetHeight;

			document.getElementById("alloverviews_container").style.top = yAO2 + 'px';
		}

		if(open && !allCategoriesVisible)
		{
			var hAA = 0;

			if(allCategoriesUp)
			{
				hAA = hAO - 10;
			}

			document.getElementById("alloverviews_animated").style.top = hAA + 'px';

			setTimeout(showAnimated, 10);

			if(is_ie6)
			{
				hideSelect(xAO,yAO,wAO,hAO,true);
			}
		}
		else if(!open && allCategoriesVisible)
		{
			setTimeout(hideAnimated, 10);

			if(is_ie6)
			{
				hideSelect(xAO,yAO,wAO,hAO,false);
			}
		}

		return false;
	}

	function autoClose()
	{
		--closeTimeout;

		if(closeTimeout <= 0)
		{
			if(closeAfterTimeout)
			{
				showAll(false);
			}
		}
		else
		{
			setTimeout(autoClose, 1000);
		}
	}

	function resetTimeout()
	{
		closeAfterTimeout = false;
		closeTimeout = 2;
	}

	function showAnimated()
	{
		allCategoriesVisible	= true;
		var animated			= document.getElementById("alloverviews_animated").style;
		var area				= document.getElementById("alloverviews_area").style;
		var multiple			= 0;
		var offset				= 0;
		animated.display		= 'block';

		if(animated.top == '0px' || animated.top == (hAO - 10) + 'px')
		{
			multiple = 1;
		}
		else if(animated.top == '5px' || animated.top == (hAO - 40) + 'px')
		{
			multiple = 2;
		}
		else if(animated.top == '10px' || animated.top == (hAO - 80) + 'px')
		{
			multiple = 3;
		}
		else if(animated.top == '15px' || animated.top == (hAO - 120) + 'px')
		{
			multiple = 4;
		}
		else
		{
			animated.display = 'none';
			area.display = 'block';

			return true;
		}

		offset = multiple*5;

		if(allCategoriesUp)
		{
			offset = hAO - multiple*40;
		}

		animated.top		= offset + 'px';
		animated.width		= (multiple*40 + 110) + 'px';
		animated.height		= (multiple*40) + 'px';

		setTimeout(showAnimated, openSpeed);
	}

	function hideAnimated()
	{
		allCategoriesVisible 	= false;
		var animated			= document.getElementById("alloverviews_animated").style;
		var area				= document.getElementById("alloverviews_area").style;
		var multiple			= 0;
		var offset				= 0;
		area.display			= 'none';
		animated.display		= 'block';

		if(animated.top == '20px' || animated.top == (hAO - 160) + 'px')
		{
			multiple = 3;
		}
		else if(animated.top == '15px' || animated.top == (hAO - 120) + 'px')
		{
			multiple = 2;
		}
		else if (animated.top == '10px' || animated.top == (hAO - 80) + 'px')
		{
			multiple = 1;
		}
		else if(animated.top == '5px' || animated.top == (hAO - 40) + 'px')
		{
			multiple = 0;
		}
		else
		{
			var hAA = 0;

			if(allCategoriesUp)
			{
				hAA = hAO - 10;
			}

			animated.top 		= 0 + 'px';
			animated.width		= 110 + 'px';
			animated.height		= 10 + 'px';
			animated.display 	= 'none';

			return true;
		}

		offset = multiple*5;

		if(allCategoriesUp)
		{
			offset = hAO - multiple*40;
		}

		animated.top		= offset + 'px';
		animated.width		= (multiple*40 + 110) + 'px';
		animated.height		= (multiple*40) + 'px';

		setTimeout(hideAnimated, closeSpeed);
	}

	function hideSelect(x,y,w,h,hide)
	{
		var selx, sely, selw, selh, i;
		var sel = document.getElementsByTagName("SELECT");

		for(i=0; i<sel.length; i++)
		{
			selx=0;
			sely=0;
			var selp;

			if(sel[i].offsetParent)
			{
				selp=sel[i];

				while(selp.offsetParent)
				{
					selp=selp.offsetParent;
					selx+=selp.offsetLeft;
					sely+=selp.offsetTop;
				}
			}

			selx+=sel[i].offsetLeft;
			sely+=sel[i].offsetTop;
			selw=sel[i].offsetWidth;
			selh=sel[i].offsetHeight;

			if((selx+selw>x) && (selx<x+w) && (sely+selh>y) && (sely<y+h))
			{
				if(hide)
				{
					sel[i].style.visibility="hidden";
				}
				else
				{
					sel[i].style.visibility="visible";
				}
			}
		}
	}

	function getAllOverviewsPosition()
	{
		xAO = GetTagPixels(document.getElementById("alloverviews"), "LEFT")-235;
		yAO = GetTagPixels(document.getElementById("alloverviews"), "TOP");
	}

	function GetTagPixels(StartTag, Direction)
	{
	   var PixelAmt = (Direction == "LEFT") ? StartTag.offsetLeft : StartTag.offsetTop;

	   while((StartTag.tagName != "BODY") && (StartTag.tagName != "HTML"))
	   {
	      StartTag = StartTag.offsetParent;
	      PixelAmt += (Direction == "LEFT") ? StartTag.offsetLeft : StartTag.offsetTop;
	   }

	   return PixelAmt;
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// FIXED BOTTOM BAR
	//////////////////////////////////////////////////////////////////////////////////////////////
	function initBottomBar()
	{
		if(document.getElementById("fixed_bar_holder"))
		{
			if(GetCookie('bbd') != null && GetCookie('bbd') != 'false')
			{
				bottombarDisabled = true;
			}

			if((jQuery.browser.msie) && (jQuery.browser.version <= 6))
			{
				bottombarDisabled = true;
			}

			$(window).scroll(function()
			{
				if(bottombarDisabled)
				{
					return true;
				}

				scrollBottomBar();
			});

			setBottomBar();
		}
	}

	function setBottomBar()
	{
		if(document.getElementById("q"))
		{
			ySO = findPosY(document.getElementById("q")) + 5;
		}

		(Geometry.getVerticalScroll() < ySO && !bottombarDisabled) ? $("#fixed_bar").hide():$("#fixed_bar").show();

		if(bottombarDisabled)
		{
			$("#fixed_bar").css('position', 'static');

			if((jQuery.browser.msie) && (jQuery.browser.version <= 6))
			{
				return true;
			}

			$('#fixed_bar_right a:first').html('<b>+</b> '+ bottomActiveText);
			$('#fixed_bar_right a:first').attr('title', bottomActiveTitle);
			$('#fixed_bar_holder').css('height', '');
		}
		else
		{
			$("#fixed_bar").css('position', 'fixed');
			$('#fixed_bar_right a:first').html('<b>x</b> '+ bottomInactiveText);
			$('#fixed_bar_right a:first').attr('title', bottomInactiveTitle);
			$('#fixed_bar_holder').css('height', hBB +'px');
		}
	}

	function closeBottomBar()
	{
		if(bottombarDisabled == false)
		{
			setCookie("bbd", "true");
			bottombarDisabled = true;
			setBottomBar();
		}
		else
		{
			setCookie("bbd", "false");
			bottombarDisabled = false;
			setBottomBar();
		}

		return false;
	}

	function scrollBottomBar()
	{
		if(allCategoriesVisible)
		{
			hideAnimated();
		}

		if(Geometry.getVerticalScroll() >= ySO)
		{
			if(!bottombarVisible)
			{
				$("#fixed_bar").slideDown("slow");
				bottombarVisible = true;
			}
		}
		else
		{
			if(bottombarVisible)
			{
				$("#fixed_bar").slideUp("slow");
				bottombarVisible = false;
			}
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// ADDTOFAVOURITES - Cross-browser add page to browser favourites
	//////////////////////////////////////////////////////////////////////////////////////////////
	function addToFavourites()
	{
		var title	= document.title;
		var url		= location.href;
		var referer	= "ref=Bookmark"

		/* lc_click(lc_page, lc_pagevariant, lc_campaign, lc_campaign_label, "Toevoegen aan favorieten"); */

		if(url.indexOf(referer) == -1)
		{
			if(url.indexOf("?") != -1)
			{
				url = url + "&" + referer;
			}
			else
			{
				url = url + "?" + referer;
			}
		}

		if(is_firefox)
		{
			// Firefox
			window.sidebar.addPanel(title, url, "");
		}
		else if(is_ie)
		{
			// IE
			window.external.AddFavorite(url, title);
		}
		else
		{
			var label = "";
			var addToFavouriteLabel = new getObj("addToFavouriteText");
			addToFavouriteLabel = addToFavouriteLabel.obj;

			if(is_netscape)
			{
				// Safari
				label = '<ul><li>1. Sleep dit logo<a href="' + url + '" title="' + title + '"><img src="http://www.overzicht.nl/common/img/overzicht_logo_icon.gif" width="20" height="12" alt="' + title + '" style="cursor:move;"/></a> naar de bookmarks balk onder de adresbalk.</li><li>2. Klik vervolgens <b>OK</b> in het getoonde popup venster en het overzicht is toegevoegd aan je favorieten.</li></ul>';
			}
			else if(is_opera)
			{
				// Opera
				label = '<ul><li>1. Ga naar het browsermenu en selecteer <b>Bladwijzers</b> en vervolgens <b>Bladwijzer toevoegen...</b>.</li><li>2. Klik in het venster op de <b>OK</b> knop en het overzicht is toegevoegd aan je favorieten.</li></ul>';
			}

			addToFavouriteLabel.innerHTML = label;
			showDiv("addToFavouriteLabel");
			return false;
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// SHOWDIV - Show/hide a div
	//////////////////////////////////////////////////////////////////////////////////////////////
	function showDiv(id)
	{
		divObj = new getObj(id);

		if(divObj.style.display == "none")
		{
			divObj.style.display = "block";
		}
		else
		{
			divObj.style.display = "none";
		}

		return false;
	}


	///////////////////////////////////////////////
	// TRIM
	///////////////////////////////////////////////
	function trim(value)
	{
		value = value.replace(/^\s+|\s+$/,'');
		return value;
	}


	///////////////////////////////////////////////
	// INITDYNAMICCONTENT
	///////////////////////////////////////////////
	function initDynamicContent()
	{
		// create dynamic function-calls based on dynamic content blocks (dcb) array
		if(window.LMSdcb)
		{
			for(var i=0; i<LMSdcb.length; ++i)
			{
				// if timeout not 0
				if(LMSdcb[i][0] != 0)
				{
					dynamicCalls[dynamicCalls.length] = callLater(dynamicCalls.length, LMSdcb[i][0], LMSdcb[i][1]);
				}
			}
		}

		// trigger dynamic function-calls for the first time
		if(window.dynamicCalls)
		{
			for(var i=0; i<dynamicCalls.length; ++i)
			{
				setTimeout(dynamicCalls[i], 5000);		// execute first call
			}
		}
	}


	///////////////////////////////////////////////
	// CALLLATER
	///////////////////////////////////////////////
	function callLater(number, timeout, id)
	{
	    return (function()
	    {
	    	// get the content
	        getContent(id);

	        // set dynamic function-call again
			setTimeout(dynamicCalls[number], timeout*1000);
	    });
	}


	///////////////////////////////////////////////
	// GETCONTENT
	///////////////////////////////////////////////
	function getContent(id)
	{
		requestHtml(getRequestObject(), id);
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// GETOBJ - Cross-browser function that will return any object
	//
	// @param name	The name of the object to find.
	//////////////////////////////////////////////////////////////////////////////////////////////
	function getObj(name)
	{
		if(document.getElementById)
		{
			this.obj	= document.getElementById(name);
			this.style	= document.getElementById(name).style;
		}
		else if(document.all)
		{
			this.obj	= document.all[name];
			this.style	= document.all[name].style;
		}
		else if(document.layers)
		{
			this.obj	= document.layers[name];
			this.style	= document.layers[name];
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// GETREQUESTOBJECT - Cross-browser function that will return an XMLHttpRequest object
	//////////////////////////////////////////////////////////////////////////////////////////////
	function getRequestObject()
	{
		// variable for the xmlhttprequest
		var http_request = false;

		// create the httpxmlrequest object that will handle the communication with the server
		if(window.XMLHttpRequest)
		{
	    	http_request = new XMLHttpRequest();

			// override the mimetype to text/xml
			if(http_request.overrideMimeType)
			{
				http_request.overrideMimeType("text/xml");
			}
	    }
		else if(window.ActiveXObject)
		{
	    	http_request = new ActiveXObject("Microsoft.XMLHTTP");
	    }

	   	return http_request;
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// STRINGTODOM - Cross-browser function that will create a dom object from a string
	//////////////////////////////////////////////////////////////////////////////////////////////
	function stringToDom(str)
	{
		if(window.ActiveXObject)
		{
			var d = new ActiveXObject("MSXML.DomDocument");
			d.loadXML(str);

			return d;
		}
		else if(window.XMLHttpRequest)
		{
			var req = new XMLHttpRequest;
			req.open("GET", "data:" + (contentType || "application/xml") + ";charset=utf-8," + encodeURIComponent(str), false);
			if(req.overrideMimeType)
			{
				req.overrideMimeType(contentType);
			}
			req.send(null);

			return req.responseXML;
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// RQUESTXML - Make the request and define the follow-up function.
	//
	// @param http_request	The XMLHttpRequest object that will make the call to the external resource
	// @param url			The url of the external resource
	// @param name			The name for the value in the global xml array
	// @param template		The xsl template existing in the global xsl array to use for transformation
	// @param target		The target to send the contents to
	//////////////////////////////////////////////////////////////////////////////////////////////
	function requestHtml(http_request, name)
	{
		url = "inc/" + name;

		// set function to call on ready state
		http_request.onreadystatechange = function()
		{
			processHtml(http_request, name);
		};

		// send the request to the server
		http_request.open("GET", url, true);													// send asynchronous GET request to url
		http_request.send(null);																// call send (optionally with parameters; "name=value&anothername=othervalue&so=on")
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// PROCESSXML -	Process the recieved content.
	//				Transform the recieved content if template is set.
	//				Write the received, and optionally transformed, content to a target
	//
	// @param http_request	The XMLHttpRequest object that made the call to the external resource
	// @param name			The name for the value in the global xml array
	// @param template		The xsl template existing in the global xsl array to use for transformation
	// @param target		The target to send the contents to
	//////////////////////////////////////////////////////////////////////////////////////////////
	function processHtml(http_request, target)
	{
		// check readystate
		if(http_request.readyState == 4)
		{
			// check if server response requires a content update
			if(http_request.status == 200)
			{
				html = http_request.responseText;												// create xml object and add it to global xml array

				setContent("dcb_"+target, html);												// write the transformed content to target
			}
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// SETCONTENT - Set the content of any object using innerHTML property
	//
	// @param target 	The object to set the content for
	// @param content	The content to place in the object
	//////////////////////////////////////////////////////////////////////////////////////////////
	function setContent(target, content)
	{
		element = new getObj(target);

		element.obj.innerHTML = content;
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// FINDPOS - Get the horizontal/vertical position of an element
	//////////////////////////////////////////////////////////////////////////////////////////////
	function findPosX(obj)
	{
		var curleft = 0;

		if(obj.offsetParent)
		{
			while(obj.offsetParent)
			{
				curleft += obj.offsetLeft;
				obj = obj.offsetParent;
			}
		}
		else if(obj.x)
		{
			curleft += obj.x;
		}

		return curleft;
	}

	function findPosY(obj)
	{
        var curtop = 0;

        if(obj.offsetParent)
        {
        	while(obj.offsetParent)
        	{
        		curtop += obj.offsetTop;
        		obj = obj.offsetParent;
        	}
        }
        else if(obj.y)
        {
        	curtop += obj.y;
        }

        return curtop;
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// SETDATEPICKERPOS - Set the position of a jQuery datepicker next to the button
	//////////////////////////////////////////////////////////////////////////////////////////////
	function setDatePickerPos(button)
	{
		var left = findPosX(document.getElementById(button)) + 26;
		var top = findPosY(document.getElementById(button));

		$("#ui-datepicker-div").css({'left' : left +'px'});
		$("#ui-datepicker-div").css({'top' : top +'px'});
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// FLASHCLOCKCHANGETIME - Update the time of the flash clock gadget
	//////////////////////////////////////////////////////////////////////////////////////////////
	function flashClockChangeTime(city, clock)
	{
		// get the selected time difference
		clock.diffTime = city.options[city.selectedIndex].value;

		// get the current time from users' system clock
		var currentTime	= new Date();
		var hours		= currentTime.getHours();
		var minutes		= currentTime.getMinutes();

		hours = 1*hours + 1*clock.diffTime;
		if (hours > 23) { hours = 0; }
		if (hours < 0) { hours = 24 + hours; }
		if (hours < 10) { hours = "0" + hours; }
		if (minutes < 10) {  minutes = "0" + minutes; }

		// update the time by calling a function in the flash object
		document.getElementById(clock.movie).callChangeTime(hours + clock.delimiter + minutes);

		as.action('Wereldtijden klok: '+ city.options[city.selectedIndex].text);
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// HTMLCLOCKCHANGETIME - Update the time of the html clock gadget
	//////////////////////////////////////////////////////////////////////////////////////////////
	function htmlClockChangeTime(clock)
	{
		if(document.getElementById(clock.digital))
		{
			// get the current time from users' system clock
			var currentTime	= new Date();
			var hours		= currentTime.getHours();
			var minutes		= currentTime.getMinutes();
			var seconds		= currentTime.getSeconds();

			hours = 1*hours + 1*clock.diffTime;
			if (hours > 23) { hours = 0; }
			if (hours < 0) { hours = 24 + hours; }
			if (hours < 10) { hours = "0" + hours; }
			if (minutes < 10) {  minutes = "0" + minutes };
			if (seconds < 10) {  seconds = "0" + seconds };

			// make the digital clock visible after 3 seconds
			clock.counter++;
			if(clock.counter == 3)
			{
				document.getElementById(clock.movie_inner).style.display = 'block';
			}

			// update the time
			document.getElementById(clock.digital).innerHTML = hours+':'+minutes; //+':'+seconds;
		}
		else
		{
			// if html clock non-existing remove the timer
			clearInterval(clock.timer);
		}
	}


	//////////////////////////////////////////////////////////////////////////////////////////////
	// SWFObject v2.2 <http://code.google.com/p/swfobject/>
	//	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
	//////////////////////////////////////////////////////////////////////////////////////////////
	var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();


	// get the query from the referer if request comes trough google
	getGoogleQuery();

	// initialize Geometry functions
	addDOMLoadEvent(setGeometry);

	// get the x/y position of the index pulldown
	addDOMLoadEvent(getAllOverviewsPosition);

	// initialize the bottom search bar
	addDOMLoadEvent(initBottomBar);

	// initialize the dynamic content function calls
	addDOMLoadEvent(initDynamicContent);
