/* menu */
$(function() {
		// set opacity to nill on page load
		$("div#menu span").css("opacity","0");
		$("div#menu .active span").css("opacity","3");
		// on mouse over
		$("div#menu span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 3
			}, 'slow');
		},
		// on mouse out
		function () {			
			if ($(this).parent().hasClass("active")){
				//pass;
			}
			else{
				$(this).stop().animate({
					opacity: 0
				}, 'slow');	
			}
		});		
});
/* /menu */

/* text fader */

jQuery.fn.textFader = function(){
	$(this)
		.addClass("active")
		.animate({opacity:1})
		.animate({opacity:1}, 6000, function() {
			$(this).animate({opacity:0}).removeClass("active");
			if($(this).next().length == 0){ 
				$("#main-banner li:first").textFader();
			} else {
				$(this).next().textFader();
			}
		});
}
/* /text fader */

/* zebra table */
$(document).ready(function(){
	$(".t-01 tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
	//$(".t-zebra tr:even").addClass("alt");

	//if ( $.browser.msie ){}
	$("#main-banner li").css("opacity","0");
	$("#main-banner li:first").textFader();
	

});
/* /zebra table */
