jQuery(document).ready(function(){

    $("#description_container").hide();
    $("#category_carousel").hide();
    $("#white-ribbon-slider").hide();
    
    $("#buttonbar1").mouseover(function(){
        $("#sliding-buttonbar1").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar1").mouseout(function(){
        $("#sliding-buttonbar1").animate({
            height: 43,
            width: 0
        }, "slow");
    });
    
    $("#buttonbar2").mouseover(function(){
        $("#sliding-buttonbar2").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar2").mouseout(function(){
        $("#sliding-buttonbar2").animate({
            height: 43,
            width: 0
        }, "slow");
    });
    
    $("#buttonbar3").mouseover(function(){
        $("#sliding-buttonbar3").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar3").mouseout(function(){
        $("#sliding-buttonbar3").animate({
            height: 43,
            width: 0
        }, "slow");
    });
    
    $("#buttonbar4").mouseover(function(){
        $("#sliding-buttonbar4").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar4").mouseout(function(){
        $("#sliding-buttonbar4").animate({
            height: 43,
            width: 0
        }, "slow");
    });
	
	$("#buttonbar5").mouseover(function(){
        $("#sliding-buttonbar5").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar5").mouseout(function(){
        $("#sliding-buttonbar5").animate({
            height: 43,
            width: 0
        }, "slow");
    });
	
	$("#buttonbar6").mouseover(function(){
        $("#sliding-buttonbar6").animate({
            height: 43,
            width: 925
        }, "slow");
    });
    $("#buttonbar6").mouseout(function(){
        $("#sliding-buttonbar6").animate({
            height: 43,
            width: 0
        }, "slow");
    });
    
    $(".buttonbar").click(function(){
        $("#white-ribbon-slider").animate({
            height: 300,
            width: 0
        }, "fast");
        $("#white-ribbon-slider-content").animate({
            height: 300,
            width: 0
        }, "fast");
        $("#white-ribbon-slider").animate({
            height: 300,
            width: 580
        }, "slow");
        $("#white-ribbon-slider-content").animate({
            height: 300,
            width: 580
        }, "slow");
        
        $("#description_container").hide();
        $("#category_carousel").fadeIn("slow");
    });
	
	$("#contact_button").mouseover(function(){
		
		document.getElementById("left_old_paper").style.paddingTop="130px";
		
        $("#contact_pane").animate({
            height: 515,
            width: 350
        }, "fast");
        $("#left_old_paper").animate({
            height: 270,
            width: 350
        }, "fast");
        $("#bottom_old_paper").animate({
            height: 115,
            width: 350
        }, "fast");	
		$("#contact_text").animate({
            height: 400,
            width: 350
        }, "fast");					
    });
    $("#contact_button").mouseout(function(){
	
        $("#contact_pane").animate({
            height: 0,
            width: 350
        }, "fast");
        $("#left_old_paper").animate({
            height: 0,
            width: 350
        }, "fast");
		$("#bottom_old_paper").animate({
            height: 0,
            width: 350
        }, "fast");
		
		document.getElementById("left_old_paper").style.paddingTop="0px";
		
    });	
	
	$("#specials_button").mouseover(function(){	
        $("#specials_pane").animate({
            height: 190,
            width: 530
        }, "fast");				
    });
	
    $("#specials_button").mouseout(function(){
	
        $("#specials_pane").animate({
            height: 0,
            width: 530
        }, "fast");
    });	
    
    jQuery('#parallax').jparallax({}); 
	
	//$("#overlay").hide(); 
});

