var agt			=	navigator.userAgent.toLowerCase();
var is_mac    	= 	(agt.indexOf("mac")!=-1);
var is_pc    	= 	(agt.indexOf("win")!=-1);
var is_ie     	= 	(agt.indexOf("msie")!= -1) 
var is_opera	=	(agt.indexOf("opera")!= -1);
var is_safari	=	(agt.indexOf("safari")!=-1);


//  Menu
function sfHover () {
	if(document.getElementById("menu") ) {
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				if (document.all&&document.getElementById) {
					this.className+="sfhover";
				}
				this.childNodes[0].style.color = '#97c4c9';
				if (this.id) {
					this.childNodes[0].style.backgroundImage = "url(" + imgPath + top[this.id] + "2.gif)";
				}
			}
			sfEls[i].onmouseout=function() {
				if (document.all&&document.getElementById) {
					this.className=this.className.replace("sfhover", "");
				}
				this.childNodes[0].style.color = '#fff';
				if (this.id) {
					this.childNodes[0].style.backgroundImage = "url(" + imgPath + top[this.id] + "1.gif)";
				}
			}
		}
	}
}

window.onload=function () {
	sfHover();
};