function ieNav() {
	var theUA = navigator.userAgent.toLowerCase();
	var msie = (theUA.indexOf('msie') != -1);
		if (msie != true) { return; }
	theVersion = parseFloat(theUA.substring(theUA.lastIndexOf('msie') + 7 ));

	navMain = document.getElementById('nav');
	navMain = navMain.getElementsByTagName('ul');
	navMain = navMain[0].childNodes;

	for (i = 0 ; i < navMain.length ; i++) {
		if (navMain[i].nodeType == 1) {
			navSub = navMain[i].getElementsByTagName('ul');
			if (navSub.length > 0) {
				navSub[0].style.marginLeft = "-98px";
				if (theVersion < 7) { navAction(navMain[i], navSub[0]); }
			}
		}
	}

}

function navAction(one, two) {
	one.onmouseover = function() { two.style.display = "block"; };
	one.onmouseout = function() { two.style.display = "none"; };
}

function heightCheck(id) {
if(id.offsetHeight){ return id.offsetHeight; }
else if(id.style.pixelHeight){ return id.style.pixelHeight; }
else { return false; }
}

function googleImg() {
	var url = 'http://'+window.location.host+'/assets/images/';
	var googleInput = document.getElementById('q');
	googleInput.style.background = "url("+url+"/google_custom_search.gif) no-repeat center center";
	googleInput.onfocus = function() { googleInput.style.backgroundImage = "none"; }
	
}