/* Matias Määttä © */
browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
		
if (browser_type == "Microsoft Internet Explorer") {
	document.write("<link REL='stylesheet' HREF='tyylit_ieEtu.css' TYPE='text/css'>");
}
else {
	document.write("<link REL='stylesheet' HREF='tyylitEtu.css' TYPE='text/css'>");
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	var sfElss = document.getElementById("nav1").getElementsByTagName("LI");
	var sfElsss = document.getElementById("nav2").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"), "");
		}
	}
	for (var i=0; i<sfElss.length; i++) {
		sfElss[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfElss[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	for (var i=0; i<sfElsss.length; i++) {
		sfElsss[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfElsss[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

