
/*
(function($){
  $.fn.onclickimage = function(h) {
    h = jQuery.extend({
            width: 150,
            height: 150,
            link_duration: "6000",
            animate_duration: "slow"
        }, h);
    
    $(this).click(function () {
      var container = $("#"+$(this).attr("cid"));
      
      $("#"+$(this).attr("cid")+ " .imgloading").css('display', 'block');

      var img = new Image();

      $(img).load(function () {
        $(this).hide();

        $("#id").append(this);

        $("#"+$(this).attr("cid")+ " .imgloading").css('display', 'block');
        
        $('#loader').removeClass('imgloading').append(this);

        $(this).fadeIn();
        
      })
      .error(function () {
      })
      .attr({
        src : 'images/00001s.jpg'
      });

      $("#"+$(this).attr("cid")+ " .imgloading").css('display', 'block');


    });

    return this;
  };
})(jQuery);
*/


$(document).ready(function(){

  $("img.categorie").fadeTo("slow", 0.3);
  $("img.categorie").hover(function(){
    $(this).fadeTo("slow", 1.0);
  },function(){
    $(this).fadeTo("slow", 0.3);
  });

  $("img#msg_default").fadeIn("slow");

  $("ul.cat_nav img").hover(function(){
    var element_id = $(this).attr("id");
    $("img#msg_default").fadeOut(100);
    $("img#msg_"+element_id).fadeIn(500);
  },function(){
    var element_id = $(this).attr("id");
    $("img#msg_default").fadeIn(100);
    $("img#msg_"+element_id).fadeOut(100);
  });

  $("ul.cat_nav li#cat_element").hover(function(){
    $(this).fadeIn(500);
  },function(){
    $(this).fadeOut(100);
  });
  
});
