$(document).ready(function() {

	$('#fancy_wrap').hide();
	$(".pngfix").pngfix();

	if ($('hero')) {
		$("#hero ul").cycle({
			fx : "fade",
			speed : "slow",
			duration : 1000,
			timeout : 10000,
			pause : 1,
			random : 0,
			cleartype : 1,
			pager : "#pager",
			pauseOnPagerHover : true
		});
	}
	$("#quicksearch").defaultvalue("Enter your search here ..");
	$("#categories").accordion({
			header: ".parent",
			autoHeight: false,
			collapsible: true,
			clearStyle: true,
			active: false
		});
		$("#categories ul li:odd").addClass("odd");
		$("#categories ul li, #categories ul li.odd").hover(function(){
			$(this).addClass("hover");
		}, function(){
			$(this).removeClass("hover");
		});
		
	/*	$("a.inline").fancybox({
			padding:10,
			frameWidth:892,
			frameHeight:470,
			centerOnScroll:true,
			hideOnContentClick:false
		});
*/

	// Main Menu
	$.each($("#menu li ul"), function() {
		if ($("li", this).size() > 1) {
			$(this).addClass("submenu").closest("li").hover(function() {
				$("a:first", this).addClass("hover");
				$("ul", this).stop().fadeTo("fast", 0.95, function() {
					$(this).show();
				});
			}, function() {
				$("a:first", this).removeClass("hover");
				$("ul", this).stop().fadeTo("fast", 0, function() {
					$(this).hide();
				});
			});
		}
	});
 
});

$(document).ready(function(){
/*
	var today = new Date().getDay()+1;
	$(".tradinghours tbody").each(function(){
		$("tr:eq("+today+")", this).addClass("today");
	});
*/
});

