// rotating gallery home
$(document).ready(function(){
		
	// tweet plugin
	$(".tweet").tweet({
		username: "ExpertCivil",
		count: 3,
		loading_text: "loading news..."
	});
	
	$("#features").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 6000);
	
	$("#accordion").accordion({
		header: 'h3',
		event: 'mouseover',
		autoHeight: true
	});	
	
  	$('a[rel*=facebox]').facebox();

    $('#mainNav ul').superfish(); 
	
	// $("#mainNav li").hover(
	//         function(){ $("ul", this).fadeIn("fast"); }, 
	//         function() { } 
	//     );
	//     if (document.all) {
	//         $("#mainNav li").hoverClass ("sfHover");
	//     }
	// 
	// $.fn.hoverClass = function(c) {
	//     return this.each(function(){
	//         $(this).hover( 
	//             function() { $(this).addClass(c);  },
	//             function() { $(this).removeClass(c); }
	//         );
	//     });
	// };
	 	
});


