function ajaxFunction(what, which) {
	var xmlHttp;
	if(window.XMLHttpRequest) {
		xmlHttp = new XMLHttpRequest();
	}
	else if(window.ActiveXObject) {
		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	} else if(window.ActiveXObject) {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	else {
		alert("Your browser is not IE 5 or higher, or Firefox or Safari or Opera.");
	}
	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			if ((xmlHttp.responseText.indexOf("HTTP Error") > 0) || (xmlHttp.responseText == "")) {
				///alert("Error: " + xmlHttp.responseText);
				return false;
			}
			else {
					if (xmlHttp.responseText.indexOf("Done!!!") > 0) {
						document.getElementById(which).innerHTML =  xmlHttp.responseText;
						if (which == "myMenu") {
							if(vIE() == 6) { document.getElementById("preNav").innerHTML = '<a href="hhc-resources.html" class="links linksie6" id="navmenu_resources"></a>'; }
							if(vIE() != 6) { document.getElementById("postNav").innerHTML = '<a href="hhc-resources.html" class="links links" id="navmenu_resources"></a>'; }
							navMenuHighlight();
						}
					}
			}
		}
		else {
			return false;
		}
	}
	xmlHttp.open("GET", what, true);
	xmlHttp.send(null);
}

function navMenuHighlight() {
	var qURL = document.location.href.toLowerCase();
	var tmp = "";
	var tmp2 = "";
	tmp = "/index.html"; tmp2 = "home"; if (qURL.indexOf(tmp, 1) > 0) { 
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/products.html"; tmp2 = "products"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/igea-hhc.html"; tmp2 = "products"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/igea-poc.html"; tmp2 = "products"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/igea-care-services.html"; tmp2 = "services"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/success-stories.html"; tmp2 = "stories"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/about-indura-systems.html"; tmp2 = "company"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/careers.html"; tmp2 = "company"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/contact-indura.html"; tmp2 = "company"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/igea-technology.html"; tmp2 = "technology"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/security.html"; tmp2 = "technology"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/hhc-press-releases.html"; tmp2 = "news"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/hhc-industry-news.html"; tmp2 = "news"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/hhc-news-and-events.html"; tmp2 = "news"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
	tmp = "/hhc-resources.html"; tmp2 = "resources"; if (qURL.indexOf(tmp, 1) > 0) {
		document.getElementById("navmenu_" + tmp2).style.backgroundPosition = "bottom"; document.getElementById("navmenu_" + tmp2).onmouseover = function() { }; document.getElementById("navmenu_" + tmp2).onmouseout = function() { };
	}
}











/// ======================================================




var DDSPEED = 2.5;
var DDTIMER = 15;


function vIE() {
// returns version for IE or -1 for other browsers
return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;
}


if(vIE() == 6) {
	DDSPEED = 1;
}

// main function to handle the mouse events //
function ddMenu(id,d){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearInterval(c.timer);
  if(d == 1){
    clearTimeout(h.timer);
    if(c.maxh && c.maxh <= c.offsetHeight){return}
    else if(!c.maxh){
      c.style.display = 'block';
      c.style.height = 'auto';
      c.maxh = c.offsetHeight;
      c.style.height = '0px';
    }
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }else{
    h.timer = setTimeout(function(){ddCollapse(c)},50);
  }
}

// collapse the menu //
function ddCollapse(c){
  c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
}

// cancel the collapse if a user rolls over the dropdown //
function cancelHide(id){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearTimeout(h.timer);
  clearInterval(c.timer);
  if(c.offsetHeight < c.maxh){
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }
}

// incrementally expand/contract the dropdown and change the opacity //
function ddSlide(c,d){
  var currh = c.offsetHeight;
  var dist;
  if(d == 1){
    dist = (Math.round((c.maxh - currh) / DDSPEED));
  }else{
    dist = (Math.round(currh / DDSPEED));
  }
  if(dist <= 1 && d == 1){
    dist = 1;
  }
  c.style.height = currh + (dist * d) + 'px';
  c.style.opacity = currh / c.maxh;
  c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
  if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){
    clearInterval(c.timer);
  }
}
