// Main Condensation Shop JS Document - Generic - 20071219

/**
 * For this funtion you need the style to change to
 * the tag to look for and its ID
*/
function classChange(id, theClass, theTag) { 
	var tData=document.getElementsByTagName(theTag)
	for (var i = 0; i < tData.length; i++) {
		var t = tData[i];
		if (t.id == id) {
			t.className=theClass;
		} 
	}
}

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

