var ZoekBoxHasFocus = false;
function SetZoekBoxFocus(Bool) {
    ZoekBoxHasFocus = Bool;
}
function VulZoekBox(ZoekTekst) {
    if (ZoekBoxHasFocus != true) document.ZoekBoxForm.ZoekString.value = ZoekTekst;
}
function LeegZoekBox() {
    //document.Knop.src="";
}
image1 = new Image();
image1.src = "images/UK1.gif";

// Google analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17146154-1']);
  _gaq.push(['_setDomainName', '.frankrijkinfo.com']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
// end Google analytics

// start code voor de teller
// de functie gethttpobject is een algemene functie die AJAX communicatie mogelijk maakt; je kunt hem dus combineren met allerlei andere functies
// N.B. het uitgesterde stuk hoort op deze manier in deze functie
function gethttpobject() {
	var xmlhttp = false;
	/*@cc_on
	@if (@_jscript_version >= 5)
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) { xmlhttp = false; }
		}
	@end @*/
	if (!xmlhttp) {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			try {
				xmlhttp = window.createRequest();
			} catch (e) { xmlhttp = false; }
		}
	}
	return xmlhttp;
}
function telclick(url,pagina) {
	var ajax = gethttpobject();
	if (ajax) {
		var optie = 'ajax=1&url=' + url + '&pagina=' + pagina;
		ajax.open("POST", "telclick.php", true);
		ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		ajax.setRequestHeader("Content-length", optie.length);
		ajax.setRequestHeader("Connection", "close");
		ajax.send(optie);
		return false;
	}
}
// einde code voor de teller

//centreren van IE
function centreer() {
	if (document.getElementById('topdiv') || document.getElementById('frame') || document.getElementById('footer')) {
		var ua = window.navigator.userAgent;
		var msie = ua.indexOf("MSIE");
		var width = '';
		if (msie) {
			if (document.documentElement.offsetWidth) width = document.documentElement.offsetWidth;
			else if (document.body.offsetWidth) width = document.body.offsetWidth;
			else width = document.body.innerWidth;
		}
		if (width > '') {
			if (document.getElementById('topdiv')) document.getElementById('topdiv').style.marginLeft = (width - 990)/2;
			if (document.getElementById('frame')) document.getElementById('frame').style.marginLeft = (width - 990)/2;
			if (document.getElementById('footer')) document.getElementById('footer').style.marginLeft = (width - 990)/2;
		}
	}
}
if (window.addEventListener) window.addEventListener('load',centreer,false);
else if (document.addEventListener) document.addEventListener('load',centreer,false);
else if (window.attachEvent) window.attachEvent('onload',centreer);
else {
	if (typeof window.onload=='function') {
		var oldload=window.onload;
		window.onload=function(){
			oldload();
			centreer();
		}
	}
	else window.onload=centreer;
}

