//JQuery hover menu setup - code 

$(document).ready( function() {
	setupNavigationLinks();	
});

function setupNavigationLinks() {
	$('.nav-menu').each(function() {
		var menu = $(this);
		
		menu.hover(function() {
			menu.addClass('hover');
		}, function() {
			menu.removeClass('hover');
		});
	});
}



$(document).ready(function(){
	
	$(".menu_body").hide();

	$(".menu_head").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	
	$(".menu_head2").toggle(function(){
		$(this).addClass("active2"); 				 
		}, function () {
		$(this).removeClass("active2"); 
	});	
	
	$(".menu_head").click(function(){
		$(this).next(".menu_body").slideToggle("slow,");	
	});
	
	$(".menu_head2").click(function(){
		$(this).next(".menu2_body").slideToggle("slow,");	
	});	
	

});


function info_page(page_id)
{{	window.open("http://www.sundayafternoons.com/store/info_page.php?pageid="+page_id,"","menubar=1,resizable=1,width=650,height=700");
}}



//preload top tab images
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("skin1/tab_sprite.gif")
