// JavaScript Document
ieHover = function() {
	var ieEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<ieEls.length; i++) {
		ieEls[i].onmouseover=function() {
			this.className+=" iehover";
		}
		ieEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", ieHover);

//check website lavel
var homeURL = "";
function checkURL(){
	var currentURL = window.location.href;
	var homeURL1 = "http://localhost/v2/";
	var homeURL2 = "http://svr1/ibt2006/";
	var homeURL3 = "http://www.ibt.ca/v2/";
	var homeURL3B = "http://www2.ibt.ca/";
	var homeURL4 = "http://ibt.ca/v2/";
	var homeURL5 = "www.ibt.ca/v2/index.html";
	
	if(currentURL.substring(0, homeURL1.length) == homeURL1)
		homeURL = "http://localhost/v2/";
	else if(currentURL.substring(0, homeURL2.length) == homeURL2)
		homeURL = "http://localhost/v2/";
	else if(currentURL.substring(0, homeURL3.length) == homeURL3)
		homeURL = "http://www.ibt.ca/v2/";
	else if(currentURL.substring(0, homeURL4.length) == homeURL4)
		homeURL = "http://www.ibt.ca/v2/";
	else if(currentURL.substring(0, homeURL3B.length) == homeURL3B)
		homeURL = "http://www.ibt.ca/v2/";
	else if(currentURL.substring(0, homeURL5.length) == homeURL5)
		homeURL = "http://www.ibt.ca/v2/";
}
checkURL();

