// This function fires if your browser if less than IE7
// Due to the limited support of the hover pseudo class

myNavHover = function() {
	var oVar = document.getElementById("myNav");
	if (null!=oVar) {
		var oVars = oVar.getElementsByTagName("li");
		for (var i=0; i<oVars.length; i++){
			oVars[i].onmouseover=function(){
				this.className+=" myNavHover";
			}
			oVars[i].onmouseout=function(){
				this.className=this.className.replace(new RegExp(" myNavHover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", myNavHover);


myNavHover2 = function() {
	var oVars = document.getElementById("wrapSeoContent");
	if (oVars) {
		var oVars1 = oVars.getElementsByTagName("div");
		for (var i=0; i<oVars1.length; i++){
			var oVars2 = oVars1[i].getElementsByTagName("div");
			for (var j=0; j<oVars2.length; j++){
				oVars2[j].onmouseover=function(){
				this.className+=" myNavHover2";
				}
				oVars2[j].onmouseout=function(){
				this.className=this.className.replace(new RegExp(" myNavHover2\\b"), "");
				}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", myNavHover2);

watchGuideNavHover = function() {
	var strExpTargetIds = "|choosing_watch|watch_brands|watch_style|watch_functions|watch_movement|watch_price|watch_care|watch_summary|";
	var oUnorderedList = document.getElementById("watch_guide_left_nav")
	if (oUnorderedList) {
		var oListItems = oUnorderedList.getElementsByTagName("li");
		for (var i=0; i<oListItems.length; i++){
			//alert("Substring test for |" + oListItems[i].id + "| returns: " + strExpTargetIds.indexOf("|" + oListItems[i].id + "|"));
			if ("" != oListItems[i].id && 0 <= strExpTargetIds.indexOf(oListItems[i].id)) {
				//alert("Setting events for \"" + oListItems[i].id + "\"");
				oListItems[i].onmouseover=function(){
					this.className+=" watchNavHover";
				}
				oListItems[i].onmouseout=function(){
					this.className=this.className.replace(new RegExp(" watchNavHover\\b"), "");
				}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", watchGuideNavHover);
