
var $j = jQuery.noConflict();

$j(document).ready(function(){






    (function($j){
        $j(function() {

            $j(".slideshow-tooltip").each(function(){
                var label = $j(this).attr("data-label");
                var text  = $j(this).attr("title");
                var s = "<table cellspacing='0' cellpadding='0' border='0'>" +
                "  <tr>" +
                "	 <td class='label'>"+ label +"</td>" +
                "	 <td class='text'>"+ text +"</td>" +
                "  </tr>" +
                "</table>";
                $j(this).html(s).show();
            });


            // fancybox sur les elements a.zoom
            $j("a.zoom").fancybox({
                'overlayOpacity'  : 0.6,
                'overlayColor'	  : '#000',
                'zoomSpeedIn'	  : 400,
                'zoomSpeedOut'	  : 400
            });


            // fancybox sur le slideshow du home
            $j(".slideshow a.slidezoom").fancybox({
                'overlayOpacity'  : 0.6,
                'overlayColor'	  : '#000',
                'zoomSpeedIn'	  : 400,
                'zoomSpeedOut'	  : 400,
                'callbackOnShow'  : function() {
                    $j(".slideshow").slideshow("pause");
                },
                'callbackOnClose' : function() {
                    $j(".slideshow").slideshow("resume");
                }
            });
            // slideshow du home
            $j(".slideshow").slideshow({
                'transition': 'fade',
                'timeout': 5000,
                'speed': 800
            });
            $j(".hnav > li").hover(
                function(){
                    $j(this).find("ul").show();
                },
                function(){
                    $j(".hnav ul").hide();
                }
            );
        });
    })(jQuery);

});
