jQuery(function() {
    
        jQuery('#single-browser-wrap').masonry();


        jQuery(".nav-items li a").bind("mouseenter",function(){ 
          jQuery(this).stop().animate({backgroundColor: "#5e3e1c" }, 400, "swing"); 
          jQuery(this).animate({color: "#cb863c" }, 200, "swing");
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({color: "#764e24" }, 100, "swing");       
            jQuery(this).animate({backgroundColor: "#3b2712" }, 800, "swing");
        });

        jQuery(".entry-tags a").bind("mouseenter",function(){ 
          jQuery(this).stop().animate({backgroundColor: "#23170B" }, 200, "swing"); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({backgroundColor: "#3b2712" }, 800, "swing");
        });

        jQuery(".entry-title a").bind("mouseenter",function(){ 
          jQuery(this).stop().animate({color: "#E39644" }, 300, "swing"); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({color: "#ffffff" }, 800, "swing");
        });

        jQuery(".post-index").children('.entry-tags').children('div').hide();
        jQuery(".post-index").bind("mouseenter",function(){ 
          jQuery(this).children('.entry-tags').children('div').slideDown("fast"); 
        }).bind("mouseleave",function(){
            jQuery(this).children('.entry-tags').children('div').slideUp();  
        });
             
        jQuery(".btn").bind("mouseenter",function(){ 
               jQuery(this).stop().animate({backgroundColor: "#E39644" }, 200, "swing"); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({backgroundColor: "#2F1F0E" }, 1000, "swing");
        });

        jQuery("#comments #commentform input, #comments #commentform textarea").bind("mouseenter",function(){ 
               jQuery(this).stop().animate({backgroundColor: "#3B2712" }, 100, "swing"); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({backgroundColor: "#2F1F0E" }, 500, "swing");
        });        
        
        jQuery(".cform input,.cform textarea").bind("mouseenter",function(){ 
               jQuery(this).stop().animate({backgroundColor: "#3B2712" }, 100, "swing"); 
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({backgroundColor: "#2F1F0E" }, 500, "swing");
        });


        var winWidth = jQuery(window).width();
        var wooWidth = winWidth - 480;
        //jQuery(".woo-right").css('width',wooWidth+'px');


        var carouselWidth = (3040 - wooWidth)*-1;

        jQuery(".woo-right-nav").click(function(){ 
            var margin = parseFloat(jQuery(".woo-right .crop").css('margin-left')) - 0;
          jQuery(".woo-right .crop").animate({marginLeft: (margin - 100) + "px" }, 500, "swing"); 
        });
        
        jQuery(".woo-right-nav-2").click(function(){
             var margin = parseFloat(jQuery(".woo-right .crop").css('margin-left')) - 0;  
          jQuery(".woo-right .crop").animate({marginLeft: (margin + 100) + "px" }, 1500, "swing");
        });         

        jQuery(".insert.projects  .heading").bind("mouseover",function(){ 
          jQuery(this).stop().animate({marginLeft: "20px" }, 200, "swing");
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({marginLeft: "0px" }, 800, "swing");
        });

        jQuery(".index .post-index .entry-content").bind("mouseover",function(){ 
          jQuery(this).stop().animate({color: "#FFA84C" }, 200, "swing");
        }).bind("mouseleave",function(){
            jQuery(this).stop().animate({color: "#dddddd" }, 800, "swing");
        });



        //jQuery('#delicious .delPost:odd').css('margin','0 0 20px 0').css('border-bottom-width','0px');

        
            jQuery('#delicious  .delPost').hover(
                function(){
                    
                    jQuery(this).stop().animate({paddingLeft:35});
                    jQuery(this).children('.delTag').fadeIn();
                    
                }
                ,
                function(){
                    jQuery(this).animate({paddingLeft:20});
                    jQuery(this).children('.delTag').fadeOut();
                }
            );
 
});