/* sfHover turns on and off tab hover states */
sfHover = function() {
	var sfEls = document.getElementById("ms_navigation").getElementsByTagName("LI");
	var txtSearch = document.getElementById("search_keyword");

	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace("sfhover", " ");
			//this.className=this.className.replace(new RegExp("sfhover\\b"), " ");
		}
	}
	if ($('share_container')) {
		var sfEls = document.getElementById("share_container");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_')) {
		var sfEls = document.getElementById("body_shape_icons_");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	} 
	if ($('body_shape_icons_0')) {
		var sfEls = document.getElementById("body_shape_icons_0");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	} 
	if ($('body_shape_icons_1')) {
		var sfEls = document.getElementById("body_shape_icons_1");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_2')) {
		var sfEls = document.getElementById("body_shape_icons_2");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_3')) {
		var sfEls = document.getElementById("body_shape_icons_3");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_4')) {
		var sfEls = document.getElementById("body_shape_icons_4");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_5')) {
		var sfEls = document.getElementById("body_shape_icons_5");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_6')) {
		var sfEls = document.getElementById("body_shape_icons_6");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_7')) {
		var sfEls = document.getElementById("body_shape_icons_7");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_8')) {
		var sfEls = document.getElementById("body_shape_icons_8");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_9')) {
		var sfEls = document.getElementById("body_shape_icons_9");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_10')) {
		var sfEls = document.getElementById("body_shape_icons_10");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_11')) {
		var sfEls = document.getElementById("body_shape_icons_11");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_12')) {
		var sfEls = document.getElementById("body_shape_icons_12");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_13')) {
		var sfEls = document.getElementById("body_shape_icons_13");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	if ($('body_shape_icons_14')) {
		var sfEls = document.getElementById("body_shape_icons_14");
		sfEls.onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls.onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}

}

if (window.attachEvent) window.attachEvent("onload", sfHover);
addLoadEvent(sfHover);

//add in global js if possible
/* This hijacks the onload event so that we can use it for our ads.  Other functions that need to be run at onLoad
should be added here. */
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
