$(document).ready(function() {
    $('#cartshow').live('click', function(event) { 
      $('#details').show( 400, function(){
          $('#details').css("min-height","96px");
          $('#cartshow').hide(0, function(event) {
            $('#carthide').show( 0 );  
          });     
       });
    });
    $('#carthide').live('click', function(event) { 
       $('#details').css("min-height","0px").hide( 400, function(){         
          $('#carthide').hide( 0, function(event) {
            $('#cartshow').show( 0 );  
          });     
       });
    });
});





$(document).ready(function() {
/* HOVER ANIMATION */
  $('a').hover(function() {
      $(this).stop().animate({ color: "#9F1C50" }, 600, "swing");
      }, function() {
      $(this).stop().animate({ color: "#848484" }, 1200, "swing");
  });

  $('#slide-nav a').hover(function() {
      $(this).stop().animate({ color: "#9F1C50" }, 400, "swing");
      }, function() {
      $(this).stop().animate({ color: "#666" }, 800, "swing");
  });

  $(".product_slot a").live({
      mouseenter:function(){
      $(this).stop().animate({ color: "#9F1C50" }, 600);          
      },mouseleave:function(){
      $(this).stop().animate({ color: "#848484" }, 1200);
      }
      }
    );

/* BUTTON ANIMATION */
  $("a.standard_button,button.standard_button,input.standard_button,span.standard_button").live({
      mouseover:function(){
       $(this).stop().animate({ backgroundColor:"#df2770", borderBottomColor:"#9f1c50", borderLeftColor:"#9f1c50", borderRightColor:"#9f1c50", borderTopColor:"#9f1c50" }, 600, "easeOutQuad");
     },mouseleave:function(){
       $(this).stop().animate({ backgroundColor:"#9f1c50", borderBottomColor:"#6b1336", borderLeftColor:"#6b1336", borderRightColor:"#6b1336", borderTopColor:"#6b1336" }, 1200, "easeInQuad");
     },mousedown:function(){
       $(this).stop().animate({ backgroundColor:"#9f1c50" }, 300, "easeInQuad");
     }
  });
/* CATTREE HOVER EFFECTS */
    $('#content_categories a.cl_folded').hover(function() {
        $(this).stop().animate({ color: "#9F1C50", backgroundColor:"#eee" }, 600);
        }, function() {
        $(this).stop().animate({ color: "#676767", backgroundColor:"transparent" }, 1200);
        
    });

    $('a.cl_unfolded, #top-cat a.cl_unfolded').hover(function() {
            $(this).stop().animate({ color: "#676767"}, 600);
        }, function() {
            $(this).stop().animate({ color: "#9F1C50"}, 1200);
        
    });

/* FOOTER HOVER */

    $('#footer #footer-info-menu a').hover(function() {
            $(this).stop().animate({ color: "#9F1C50"}, 600);
        }, function() {
            $(this).stop().animate({ color: "#444444"}, 1200);
        
    });

/* CART HOVER EFFECTS */
  $("#shoppingcart a.checkout-btn").live({
     mouseenter:function(){
        $(this).stop().animate({ color:"#9F1C50"}, 600);
     },mouseleave:function(){
        $(this).stop().animate({ color:"#848484" }, 1200);
     }
   });

/* IMAGE OPACITY ANIMATION */
  $(".product_slot img, .category_slot img").live({
     mouseenter:function(){
      $(this).stop().animate({ opacity:1 }, 600, "easeInQuad");
     },mouseleave:function(){
      $(this).stop().animate({ opacity:0.80 }, 1200, "easeOutQuad");
     }
  });

  $("#logotypes span").live({
     mouseenter:function(){
      $(this).stop().animate({ opacity:1 }, 600, "easeInQuad");
     },mouseleave:function(){
      $(this).stop().animate({ opacity:0.60 }, 1200, "easeOutQuad");
     }
 });
  $('#content_categories ul li.pl_2:nth-child(odd) > a').addClass('odd');
  $('#content_categories ul li.pl_2:nth-child(odd) li:nth-child(even) a').addClass('odd');
  $('#content_categories ul li.pl_2:nth-child(even) li:nth-child(odd) a').addClass('odd');
  $('#content_categories a').each(function(){
    var subcategory = $(this).attr('data-subcategory-id');
    var active_category = $(this).attr('data-selected');
    if ( subcategory == active_category ){
      $(this).addClass('active');
    }
  });
});
$(document).ready(function(){
  if ( $.browser.msie && $.browser.version < 9 ){
  } else {
    $('#top-cat li.pl_0').bind('mouseenter', function(){
      $(this).find('li.pl_1').each(function(){
        var new_height = $(this).parents('ul.cl_1').height();
        $(this).height(new_height);
      });
    });
  }
});






