$(function() {
	$("#cake_slides").fadeIn("slow");
	$('#cake_slides').innerfade({
				speed: 'slow',
				timeout: 3000,
				type: 'sequence',
				loop: 'Y'
			});
			
	$('#cake_gallery a').lightBox({fixedNavigation:true});
	$('.lightbox').lightBox({fixedNavigation:false});

	$("li.submenu_link").hover(function() { //Hover over event on list item
		$(this).find("span").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).find("span").hide(); //Hide the subnav
	});
	
	
	$("ul#topnav li").hover(function() { //Hover over event on list item
		$(this).css({ 'background' : '#660099'}); //Add background color + image on hovered list item
		$(this).find("span").show(); //Show the subnav
	} , function() { //on hover out...
		$(this).css({ 'background' : 'none'}); //Ditch the background
		$(this).find("span").hide(); //Hide the subnav
	});
	
	$(".frame_cake_table td").hover(
		function() {
			$("p",this).css({ 'background' : '#ff99ff','color' : '#ffffff'});
		},
		function() {
			$("p",this).css({ "background" : "#ffffff","color" : "#990000"});
	});
	
	$(".cakes_table td").hover(
		function() {
			$("p",this).css({ 'background' : '#ffdddd','color' : '#ff33ff'});
		},
		function() {
			$("p",this).css({ "background" : "#ff99ff","color" : "#990000"});
	});
});