$j=jQuery.noConflict();

$j(document).ready(function() {
	$j('.tabs').tabs({ fx: { height: 'toggle', opacity: 'toggle', speed: 'fast' } });

	$j("ul.sf-menu").superfish({
		autoArrows:  false,
		delay:       400,                             // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 			
	});
	
	var nthChildSupported = function() {
		var tbl = $("<table id='nth_child'><tbody><tr><td></td></tr><tr><td></td></tr></tbody></table>")
				  .css({position : "absolute", left : "-9999em"})
				  .appendTo("body"),
				  
		tblStyle = $("<style>#nth_child tr:nth-child(odd) { background-color:#edecec; }</style>")
				  .appendTo("head"),
				  
		backgroundColor = $("#nth_child tbody tr:first")
				  .css("background-color"),
				  
		supported = (backgroundColor === "rgb(237, 236, 236)") || (backgroundColor === "#edecec");					
		
		$(tbl).remove();
		$(tblStyle).remove();

		return supported;
	};
	
	if(!nthChildSupported()) {
		$("#stats_tbl tbody tr:even td").addClass("odd");
	}

});
