Cufon.replace('h1');	
Cufon.replace('h2');	
Cufon.replace('h3');	
Cufon.replace('p');	
Cufon.replace('td');	

function fader () {
	 $('.container').fadeIn(1);
}

$(document).ready(function() {

	$.backstretch("img/bg_main.jpg","",fader);
	
	$("#squeezersindex a img").hover(function() {
            // hover in   
            $(this).animate({
               width: "300px",
               height: "208px",
               top: "-10px"    
            }, { "duration": "fast" });

        }, function() {
            // hover out
            $(this).animate({
                width: "270px",
                height: "187px",
                top: "0"
            }, "fast");
     });
        
     $("#fruitbarsindex a img").hover(function() {
            // hover in   
            $(this).animate({
               width: "250px",
               height: "auto",
               top: "-10px"    
            }, { "duration": "fast" });

        }, function() {
            // hover out
            $(this).animate({
                width: "220px",
                height: "auto",
                top: "0"
            }, "fast");

        });
        
      $("#breadbitesindex a img").hover(function() {
            // hover in   
            $(this).animate({
               width: "310px",
               height: "auto",
               top: "-10px"    
             }, { "duration": "fast" });
        }, function() {
            // hover out
            $(this).animate({
                width: "280px",
                height: "auto",
                top: "0"
            }, "fast");
        });    
        
       $(".productdetail .nutrition").toggle(
       		function() {
       		var id = $(this).closest('div').attr('id');
       		$("#"+id+" .nutritioninfo").fadeIn(500);
       		$(".under").fadeOut(200);
       		$("#footernav").fadeOut(200);
       		if (id != "breadbitespizza") {
				$("#breadbitespizza").fadeOut(200);
			}
       		
       		$("#"+id+" .nutrition").attr("src","img/products/nutrition_hide.png");
       		$.scrollTo( '#'+id+' .nutritioninfo', 500, {easing:'easeOutQuad'} );
       		},
       		function() {
       		var id = $(this).closest('div').attr('id');
       		$(".nutritioninfo").fadeOut(500);
       		$(".under").fadeIn(500);
       		$("#footernav").fadeIn(500);
       		$("#breadbitespizza").fadeIn(500);
       		$(".nutrition").attr("src","img/products/nutrition_show.png");
       		if (id != "breadbitespizza") {
				$.scrollTo( '#containerNav', 800, {easing:'easeOutElastic'} );
			} else {
       			$.scrollTo( '#breadbitespizza', 800, {easing:'easeOutElastic'} );
       		}
       		}
       	);
});

		
