// JavaScript Document



	$(function()
	{
		
		menuNav = function(myNav) {
			$("#nav ul li a").each(function() {
				if(this.href == myNav) $(this).addClass("active"); 
			});
		}; 
		menuNav(window.location);

	
		menuSubNav = function(mySubNav) {
			$(".sidebar ul li a").each(function() {
				if(this.href == mySubNav) $(this).addClass("active"); 
			});
		}; 


		$("a#butt-whatsnew").hover(
			function(){
				$("#butt-whatsnew-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-whatsnew-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});

		$("a#butt-about").hover(
			function(){
				$("#butt-about-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-about-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});

		$("a#butt-recipes").hover(
			function(){
				$("#butt-recipes-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-recipes-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});

		$("a#butt-products").hover(
			function(){
				$("#butt-products-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-products-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});

		$("a#butt-products-shelf").hover(
			function(){
				$("#butt-products-shelf-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-products-shelf-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});
		$("a#butt-tvad").hover(
			function(){
				$("#butt-tvad-over").fadeIn('slow');
				$(this).addClass("ishover");
			},
			function() {
				$("#butt-tvad-over").fadeOut('slow');
				$(this).removeClass("ishover");
			});
		


		$("a[rel^='prettyPhoto']").prettyPhoto();
		//$(document).pngFix();
		
		//$("#main").supersleight();
		
		
	});
	
	

	Cufon.replace('h2',{
		color: '#C15024'
	});
	Cufon.replace('h2 span',{
		color: '#F7AD40'
	});
	Cufon.replace('.sidebar h3',{
		color: '#fff'
	});
	Cufon.replace('.box-recipe-extras ul li a');
	Cufon.replace('form legend',{
		color: '#EED749'
	});
