<!--//
/** sub nav **/
function displayPageContent(sText) {
            var divpageContent = document.getElementById("subNav");
            divpageContent.innerHTML = sText;				
}

function displayPageTrans(sText, pID, topID, lang) {
            var divpageContent = document.getElementById("pageText");
            divpageContent.innerHTML = sText;
			getMainNav(pID, topID, lang);
			requestPageContents(topID);
}



function displayMainNav(sText) {
            var divpageContent = document.getElementById("navtext");
            divpageContent.innerHTML = sText;	
}




function requestPageContents(hID){
	/** Sub-Nav Details **/
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", "fetch_nav.php?tID=" + hID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPageContent(oXmlHttp.responseText);					
			} else {
				displayPageContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}


function getDutch(pID, topID){	
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", "fetch_text.php?lang=dutch&pID=" + pID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPageTrans(oXmlHttp.responseText, pID, topID, 'nl');					
			} else {
				displayPageTrans("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}

function getEnglish(pID, topID){	
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", "fetch_text.php?lang=eng&pID=" + pID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPageTrans(oXmlHttp.responseText, pID, topID, 'eng');					
			} else {
				displayPageTrans("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}

function getMainNav(pID, topID, lang){	
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", "fetch_mainnav.php?lang=" + lang + "&pID=" + pID + "&topID=" + topID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayMainNav(oXmlHttp.responseText);					
			} else {
				displayMainNav("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}



//-->