/* IE PNG fix multiple filters */
(function ($) {
    if (!$) return;
    $.fn.extend({
        fixPNG: function(sizingMethod, forceBG) {
                if (!($.browser.msie)) return this;
                var emptyimg = "empty.gif"; //Path to empty 1x1px GIF goes here
                sizingMethod = sizingMethod || "scale"; //sizingMethod, defaults to scale (matches image dimensions)
                this.each(function() {
                        var isImg = (forceBG) ? false : jQuery.nodeName(this, "img"),
                                imgname = (isImg) ? this.src : this.currentStyle.backgroundImage,
                                src = (isImg) ? imgname : imgname.substring(5,imgname.length-2);
                        this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
                        if (isImg) this.src = emptyimg;
                        else this.style.backgroundImage = "url(" + emptyimg + ")";
                });
                return this;
        }
    });
})(jQuery);

jQuery.noConflict();

jQuery(function(){
	$ = jQuery;
	
	/* Pour garder l'état du menu */
	var location = window.location.pathname;
	
	$('.sub-menu').find('a[href=' + location + ']').addClass("current");
	$('#top-menu').find('a[href=' + location + ']').addClass("current");
	$('#main-menu').find('a[href=' + location + ']').addClass("current").parent().parent().parent().find("a:first").addClass("current");
	/*
	$(".lightbox").colorbox({
		slideshow: true,
		rel:"concours",
		slideshowAuto:false,
		slideshowStop:"",
		slideshowStart:"",
		current:""
	});
	*/
	
	
});


