
$(document).ready(function(){
	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	$("#featured").hover(
		function() {
		$("#featured").tabs("rotate",0,true);
		},
		function() {
		$("#featured").tabs("rotate",5000,true);
		}
	);
	$('#news').innerfade({ animationtype: 'slide', speed: 1500, timeout: 3500, type: 'sequence', containerheight: '60px' });

});


//Fix for Internet Explorer's hover
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
