sfHover = function() {
	var sfEls = document.getElementById("cssmw").getElementsByTagName("ul");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].parentNode.onmouseover=function() {
			if(this.className=="tff" || this.className=="store" || this.className=="end") {
				this.lastChild.className+="sfhover";
				this.className += "sfhover";		
			}
			else {
				this.lastChild.className+=" sfhover";
				this.className+=" sfhover";		
			}
		}
		sfEls[i].parentNode.onmouseout=function() {
			if(this.className=="tffsfhover" || this.className=="storesfhover" || this.className=="endsfhover") {
				this.lastChild.className=this.lastChild.className.replace(new RegExp("sfhover\\b"), "");
				this.className=this.className.replace(new RegExp("sfhover\\b"), "");
			}
			else {
				this.lastChild.className=this.lastChild.className.replace(new RegExp(" sfhover\\b"), "");
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}



menuFloat = function() {
	var mfHeader = document.getElementById("sublinks").getElementsByTagName("div");
	for (var i=0;i<mfHeader.length;i++) {
		mfHeader.width = 890;
	}
	
}
// CHECKS BROWSER VERSION - USED FOR SOME CONDITIONAL IE STYLING
browserCheck = function() {
	var agt=navigator.userAgent.toLowerCase();
	var ver=parseInt(navigator.appVersion);
	var sfEls = document.getElementById("cssmw").getElementsByTagName("a");
	
	if((agt.indexOf("msie") != -1) && (ver==7)){
	alert("HERE");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].style.background = "url('http://media.tribecafilm.com/images/Tfilm_nav1x35.jpg') repeat-x;";
	}}
	else {
	}

}

if (window.attachEvent) window.attachEvent("onload", sfHover);
