﻿function changePage(Page) {		if(Page == 'arp') {		Content = 'arp';		CurrentPage = Page;	};	if(Page == 'laseur') {		Content = 'laseur';		CurrentPage = Page;	};	if(Page == 'overhorst') {		Content = 'overhorst';		CurrentPage = Page;	};	if(Page == 'horstbeek') {		Content = 'horstbeek';		CurrentPage = Page;	};	if(Page == 'contact') {		CurrentPage = Page;	};	if(Page == 'vallei') {		Content = 'vallei';		CurrentPage = Page;	};		var xmlHttp;	try {  		// Firefox, Opera 8.0+, Safari  		xmlHttp=new XMLHttpRequest();  	}	catch (e) {  		// Internet Explorer  		try {    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    	}  		catch (e) {    		try {      			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      		}    		catch (e) {      			alert("Your browser does not support AJAX!");      			return false;      		}    	}  	}  	  	xmlHttp.onreadystatechange=function() {    	if(xmlHttp.readyState==4) {      		document.getElementById("Logo").src='images/' + Content + '/logo.png';      		document.getElementById("PageStyle").href='style/' + Content + '.css';			document.getElementById("Text").innerHTML=xmlHttp.responseText;			document.getElementById("Middle").style.zIndex=0;      	}    }    url="php/page.php?page=" + Page +"&c=page";  	xmlHttp.open("GET",url,true);  	xmlHttp.send(null);  	changeTab('gerealiseerd');  	checkContact();}function changeTab(Page) {				if(CurrentPage == 'arp' || CurrentPage == 'contact') {						var Content = '<p class="Header">Contact informatie</p><p>Arp Groep BV</p><p>Postbus 75</p><p>3870 CB Hoevelaken</p><p>Tel: 033 - 254 05 39</p><p>Fax: 033 - 254 02 97</p>';							document.getElementById("Bottom").innerHTML=Content;					} else {						document.getElementById('gerealiseerd').className="";		document.getElementById('ontwikkeling').className="";		document.getElementById('verwacht').className="";						var xmlHttp;	try {  		// Firefox, Opera 8.0+, Safari  		xmlHttp=new XMLHttpRequest();  	}	catch (e) {  		// Internet Explorer  		try {    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    	}  		catch (e) {    		try {      			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      		}    		catch (e) {      			alert("Your browser does not support AJAX!");      			return false;      		}    	}  	}  	  	xmlHttp.onreadystatechange=function() {    	if(xmlHttp.readyState==4) {      		document.getElementById("Bottom").innerHTML=xmlHttp.responseText;      		document.getElementById(Page).className="Current";      		document.getElementById("Middle").style.zIndex=1;      	}    }    url="php/page.php?page=" + Page + "&current=" + CurrentPage + "&c=tab";  	xmlHttp.open("GET",url,true);  	xmlHttp.send(null);				};};function loadVlak() {							var xmlHttp0;	var xmlHttp1;		try {  		// Firefox, Opera 8.0+, Safari  		xmlHttp0=new XMLHttpRequest();  		xmlHttp1=new XMLHttpRequest();  	}	catch (e) {  		// Internet Explorer  		try {    		xmlHttp0=new ActiveXObject("Msxml2.XMLHTTP");    		xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");    	}  		catch (e) {    		try {      			xmlHttp0=new ActiveXObject("Microsoft.XMLHTTP");      			xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");      		}    		catch (e) {      			alert("Your browser does not support AJAX!");      			return false;      		}    	}  	}      	  	xmlHttp0.onreadystatechange=function() {    	if(xmlHttp0.readyState==4) {      			document.getElementById("VlakContent0").innerHTML=xmlHttp0.responseText;      	}    }    xmlHttp1.onreadystatechange=function() {    	if(xmlHttp1.readyState==4) {      			document.getElementById("VlakContent1").innerHTML=xmlHttp1.responseText;      	}    }    url0="php/page.php?item=0&c=vlak";    url1="php/page.php?item=1&c=vlak";  	xmlHttp0.open("GET",url0,true);  	xmlHttp1.open("GET",url1,true);  	xmlHttp0.send(null);  	xmlHttp1.send(null);};
