var xmlHttpContent;
var xmlHttpContact;

function createXMLHttpRequest(x) {
	if(window.ActiveXObject) {
		x = new ActiveXObject("Microsoft.XMLHTTP");
		}
	else if (window.XMLHttpRequest) {
		x = new XMLHttpRequest();
		}
	else x = null;
	return x;
}
function displayContact(){
	if(xmlHttpContact.readyState == 4) {
		if(xmlHttpContact.status == 200) {
			document.getElementById("divContact").innerHTML = xmlHttpContact.responseText;
			}
		}
}
function displayContent(){
	if(xmlHttpContent.readyState == 4) {
		if(xmlHttpContent.status == 200) {
			document.getElementById("divContent").innerHTML = xmlHttpContent.responseText;
			}
		}
}
function getContent(src) {
	xmlHttpContent = createXMLHttpRequest(xmlHttpContent);
	xmlHttpContent.onreadystatechange = displayContent;
	xmlHttpContent.open("GET", src, true);
	xmlHttpContent.send(null);
}
function getContact() {
	xmlHttpContact = createXMLHttpRequest(xmlHttpContact);
	xmlHttpContact.onreadystatechange = displayContact;
	xmlHttpContact.open("GET", "pages/ndxContact.htm", true);
	xmlHttpContact.send(null);
}
function getHome() { 
	var src = new String("pages/ndxHome.htm");
	getContent(src);
}
function getServices() {
	var src = new String("pages/ndxServices.htm");
	getContent(src);
}
function getProducts() { 
    var src = new String("pages/ndxProducts.htm");
	getContent(src);
}
function getAbout() { 
	var src = new String("pages/ndxAbout.htm");
	getContent(src);
}
function showClkTimer() { 
	document.getElementById("divClkTimer").style.display = 'block';
	document.getElementById("divBruise").style.display = 'none';
	document.getElementById("divClkShort").style.display = 'none';
	document.getElementById("divBruiseShort").style.display = 'block';
}	
function showBruise() { 
	document.getElementById("divClkTimer").style.display = 'none';
	document.getElementById("divBruise").style.display = 'block';
	document.getElementById("divBruiseShort").style.display = 'none';
	document.getElementById("divClkShort").style.display = 'block';
}	

