sfHover = function() {
	var sfEls = document.getElementById("nav-product").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		if(sfEls[i].getElementsByTagName("UL").length > 0){
			addListener(sfEls[i], "mouseover", classNameAdd);
			addListener(sfEls[i], "mouseout", classNameRemove);
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

try{
		document.execCommand('BackgroundImageCache', false, true); 
	}
	catch(e) {}
	
function classNameAdd () {
	this.className+=" sfhover";
}

function classNameRemove () {
	this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}


var addListener = function() {
if ( window.addEventListener ) {
return function(el, type, fn) {
el.addEventListener(type, fn, false);
};
} else if ( window.attachEvent ) {
return function(el, type, fn) {
var f = function() {
fn.call(el, window.event);
};
el.attachEvent('on'+type, f);
};
} else {
return function(el, type, fn) {
el['on'+type] = fn;
};
}
}();
