﻿/*############################ Modal ############################**//* * jqModal - Minimalist Modaling with jQuery *   (http://dev.iceburg.net/jquery/jqmodal/) * * Copyright (c) 2007,2008 Brice Burgess <bhb@iceburg.net> * Dual licensed under the MIT and GPL licenses: *   http://www.opensource.org/licenses/mit-license.php *   http://www.gnu.org/licenses/gpl.html *  * $Version: 06/22/2008 +r12 *  */(function($) {$.fn.jqm=function(o){var _o = {overlay: 50,overlayClass: 'jqmOverlay',closeClass: 'jqmClose',trigger: '.jqModal',ajax: false,ajaxText: '',target: false,modal: false,toTop: false,onShow: false,onHide: false,onLoad: false};return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o); s++; this._jqm=s;H[s]={c:$.extend(_o, o),a:false,w:$(this).addClass('jqmID'+s),s:s};if(_o.trigger)$(this).jqmAddTrigger(_o.trigger);});};$.fn.jqmAddClose=function(e){hs(this,e,'jqmHide'); return this;};$.fn.jqmAddTrigger=function(e){hs(this,e,'jqmShow'); return this;};$.fn.jqmShow=function(t){return this.each(function(){if(!H[this._jqm].a)$.jqm.open(this._jqm,t)});};$.fn.jqmHide=function(t){return this.each(function(){if(H[this._jqm].a)$.jqm.close(this._jqm,t)});};$.jqm = {hash:{},open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});h.t=t;h.a=true;h.w.css('z-index',z); if(c.modal) {if(!A[0])F('bind');A.push(s);o.css('cursor','wait');} else if(c.overlay > 0)h.w.jqmAddClose(o); else o=false; h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):false; if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in {Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'");}} if(c.ajax) {var r=c.target||h.w,u=c.ajax,r=(typeof r == 'string')?$(r,h.w):$(r),u=(u.substr(0,1) == '@')?$(t).attr(u.substring(1)):u;  r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h);});} else if(cc)h.w.jqmAddClose($(cc,h.w)); if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);	 (c.onShow)?c.onShow(h):h.w.show();e(h);return false;},close:function(s){var h=H[s];h.a=false; if(A[0]){A.pop();if(!A[0])F('unbind');} if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove(); if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove();} return false;}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version == "6.0"),i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i); f(h);},f=function(h){try{$(':input:visible',h.w)[0].focus();}catch(e){}},F=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m);},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return !r;},hs=function(w,e,y){var s=[];w.each(function(){s.push(this._jqm)}); $(e).each(function(){if(this[y])$.extend(this[y],s);else{this[y]=s;$(this).click(function(){for(var i in {jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return false;});}});};})(jQuery);/*############################ jquery.flash.min.js ############################**//*############################ PNG Fix ############################**//* * jQuery ifixpng plugin * (previously known as pngfix) * Version 2.0  (04/11/2007) * @requires jQuery v1.1.3 or above * * Examples at: http://jquery.khurshid.com * Copyright (c) 2007 Kush M. * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */  /**  *  * @example  *  * optional if location of pixel.gif if different to default which is images/pixel.gif  * $.ifixpng('media/pixel.gif');  *  * $('img[@src$=.png], #panel').ifixpng();  *  * @apply hack to all png images and #panel which icluded png img in its css  * @name ifixpng  * @type jQuery  * @cat Plugins/Image  * @return jQuery  * @author jQuery Community  */ (function($) {	/**	 * helper variables and function	 */	$.ifixpng = function(customPixel) {		$.ifixpng.pixel = customPixel;	};		$.ifixpng.getPixel = function() {		return $.ifixpng.pixel || 'ressources/blank.gif';	};		var hack = {		ltie7  : $.browser.msie && $.browser.version < 7,		filter : function(src) {			return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";		}	};		/**	 * Applies ie png hack to selected dom elements	 *	 * $('img[@src$=.png]').ifixpng();	 * @desc apply hack to all images with png extensions	 *	 * $('#panel, img[@src$=.png]').ifixpng();	 * @desc apply hack to element #panel and all images with png extensions	 *	 * @name ifixpng	 */	 	$.fn.ifixpng = hack.ltie7 ? function() {    	return this.each(function() {			var $$ = $(this);			var base = $('base').attr('href'); // need to use this in case you are using rewriting urls			if ($$.is('img') || $$.is('input')) { // hack image tags present in dom				if ($$.attr('src')) {					if ($$.attr('src').match(/.*\.png([?].*)?$/i)) { // make sure it is png image						// use source tag value if set 						var source = (base && $$.attr('src').substring(0,1)!='/') ? base + $$.attr('src') : $$.attr('src');						// apply filter						$$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()})						  .attr({src:$.ifixpng.getPixel()})						  .positionFix();					}				}			} else { // hack png css properties present inside css				var image = $$.css('backgroundImage');				if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {					image = RegExp.$1;					$$.css({backgroundImage:'none', filter:hack.filter(image)})					  .children().children().positionFix();				}			}		});	} : function() { return this; };		/**	 * Removes any png hack that may have been applied previously	 *	 * $('img[@src$=.png]').iunfixpng();	 * @desc revert hack on all images with png extensions	 *	 * $('#panel, img[@src$=.png]').iunfixpng();	 * @desc revert hack on element #panel and all images with png extensions	 *	 * @name iunfixpng	 */	 	$.fn.iunfixpng = hack.ltie7 ? function() {    	return this.each(function() {			var $$ = $(this);			var src = $$.css('filter');			if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) { // get img source from filter				src = RegExp.$1;				if ($$.is('img') || $$.is('input')) {					$$.attr({src:src}).css({filter:''});				} else {					$$.css({filter:'', background:'url('+src+')'});				}			}		});	} : function() { return this; };		/**	 * positions selected item relatively	 */	 	$.fn.positionFix = function() {		return this.each(function() {			var $$ = $(this);			var position = $$.css('position');			if (position != 'absolute' && position != 'relative') {				$$.css({position:'relative'});			}		});	};})(jQuery);/*############################ jquery.toggleElements.pack.js ############################**//** * -------------------------------------------------------------------- * jQuery-Plugin "toggleElements" * Version: 1.3, 11.09.2007 * by Andreas Eberhard, andreas.eberhard@gmail.com *                      http://jquery.andreaseberhard.de/ * * Copyright (c) 2007 Andreas Eberhard * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php) */eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('N g=7;(4($){2.U.10=4(a){a=2.Y({9:"m",f:"T",6:"Z",L:n,J:7,H:E,k:E,h:E},a);N b=a.H,k=a.k,h=a.h;5((a.9!=\'m\')&&(a.9!=\'q\')&&(a.9!=\'z\'))a.9=\'m\';3.r(4(){5(2(3).o(\'t\').M("e")==-1){2(3).K()}});3.r(4(){w=\'\';v=2(3).o(\'u\');5(a.J==n)w=v;5(a.L==n)2(3).o(\'u\',\'\');5(2(3).o(\'t\').M("e")!=-1){2(3).I(\'<a t="\'+a.6+\' \'+a.6+\'-e" G="#" u="\'+w+\'">\'+v+\'</a>\');2(3).j(a.6+\'-c-e\')}F{2(3).I(\'<a t="\'+a.6+\' \'+a.6+\'-i" G="#" u="\'+w+\'">\'+v+\'</a>\');2(3).j(a.6+\'-c-i\')}2(3).D(\'a.\'+a.6).X(4(){5(g)s 7;8=3;2(8)[0].C();5(8.l||g)s 7;g=n;8.l=n;5(B b==\'4\'&&b(8)===7){g=7;8.l=7;s 7}5(2(3).A().W(\'V\')==\'S\'){2(3).A().r(4(){5(a.9==\'m\')2(3).R(a.f,4(){2.p(3,a.6,k,8)});5(a.9==\'q\')2(3).K(a.f,4(){2.p(3,a.6,k,8)});5(a.9==\'z\')2(3).Q(a.f,4(){2.p(3,a.6,k,8)})})}F{2(3).A().r(4(){5(a.9==\'m\')2(3).P(a.f,4(){2.x(3,a.6,h,8)});5(a.9==\'q\')2(3).q(a.f,4(){2.x(3,a.6,h,8)});5(a.9==\'z\')2(3).O(a.f,4(){2.x(3,a.6,h,8)})})}s 7})})};2.p=4(a,b,c,d){2(a).D(\'a.\'+b).y(b+\'-e\').j(b+\'-i\').C();5(B c==\'4\')c(3);2(a).y(b+\'-c-e\').j(b+\'-c-i\');g=7;d.l=7};2.x=4(a,b,c,d){2(a).D(\'a.\'+b).y(b+\'-i\').j(b+\'-e\').C();5(B c==\'4\')c(3);2(a).y(b+\'-c-i\').j(b+\'-c-e\');g=7;d.l=7}})(2);',62,63,'||jQuery|this|function|if|className|false|thelink|fxAnimation|||||opened|fxSpeed|toggleElements_animating|onShow|closed|addClass|onHide|animating|slide|true|attr|toggleElementsHidden|show|each|return|class|title|wlinktext|wtitle|toggleElementsShown|removeClass|fade|next|typeof|blur|prev|null|else|href|onClick|before|showTitle|hide|removeTitle|indexOf|var|fadeIn|slideDown|fadeOut|slideUp|block|normal|fn|display|css|click|extend|toggler|toggleElements'.split('|'),0,{}))/*############################ RÉGLAGES DES DIFFÉRENTS PLUG-INS JQUERY ############################**///Menu deroulant header		jQuery(function(){			jQuery('ul.sf-menu').superfish();		});    $(document).ready(function(){         $("ul.sf-menu").supersubs({             minWidth:    12,   // minimum width of sub-menus in em units             maxWidth:    27,   // maximum width of sub-menus in em units             extraWidth:  1     // extra width can ensure lines don't sometimes turn over                                // due to slight rounding differences and font-family         }).superfish();  // call supersubs first, then superfish, so that subs are                          // not display:none when measuring. Call before initialising                          // containing tabs for same reason.     }); 			//Images zoom				$(function(){					$('.zoom').fancyzoom({Speed:400,showoverlay:false});				});							//Menu deroulant colonne droite									$(document).ready(function(){ 				$('div.toggler-c').toggleElements( 				{ fxAnimation:'slide', fxSpeed:'slow', className:'toggler' } ); 				$('ul.toggler-c').toggleElements(); 				}); 				                       //Agrandissement fontes	                         $(document).ready(function(){  // Reset Font Size  var originalFontSize = $('html').css('font-size');  $(".resetFont").click(function(){  $('html').css('font-size', originalFontSize);  });  // Increase Font Size  $(".increaseFont").click(function(){  	var currentFontSize = $('html').css('font-size'); 	var currentFontSizeNum = parseFloat(currentFontSize, 10);    var newFontSize = currentFontSizeNum*1.2;	$('html').css('font-size', newFontSize);	return false;  });  // Decrease Font Size  $(".decreaseFont").click(function(){  	var currentFontSize = $('html').css('font-size'); 	var currentFontSizeNum = parseFloat(currentFontSize, 10);    var newFontSize = currentFontSizeNum*0.8;	$('html').css('font-size', newFontSize);	return false;  });});/*############################ Target ############################**/    		    function externalLinks() {  if (!document.getElementsByTagName) return;  var anchors = document.getElementsByTagName("a");  for (var i=0; i<anchors.length; i++) {    var anchor = anchors[i];    if (anchor.getAttribute("href") &&        anchor.getAttribute("rel") == "external")      anchor.target = "_blank";  } } window.onload = externalLinks;/*############################ Jqmodal suite ############################**/  $(document).ready(function(){                 //thickbox replacement    var closeModal = function(hash)    {        var $modalWindow = $(hash.w);        //$('#jqmContent').attr('src', 'blank.html');        $modalWindow.fadeOut('2000', function()        {            hash.o.remove();            //refresh parent            if (hash.refreshAfterClose == true)            {                window.location.href = document.location.href;            }        });    };    var openInFrame = function(hash)    {        var $trigger = $(hash.t);        var $modalWindow = $(hash.w);        var $modalContainer = $('iframe', $modalWindow);        var myUrl = $trigger.attr('href');        var myTitle = $trigger.attr('title');        var newWidth = 0, newHeight = 0, newLeft = 0, newTop = 0;        $modalContainer.html('').attr('src', myUrl);        $('#jqmTitleText').text(myTitle);        myUrl = (myUrl.lastIndexOf("#") > -1) ? myUrl.slice(0, myUrl.lastIndexOf("#")) : myUrl;        var queryString = (myUrl.indexOf("?") > -1) ? myUrl.substr(myUrl.indexOf("?") + 1) : null;        if (queryString != null && typeof queryString != 'undefined')        {            var queryVarsArray = queryString.split("&");            for (var i = 0; i < queryVarsArray.length; i++)            {                if (unescape(queryVarsArray[i].split("=")[0]) == 'width')                {                    var newWidth = queryVarsArray[i].split("=")[1];                }                if (escape(unescape(queryVarsArray[i].split("=")[0])) == 'height')                {                    var newHeight = queryVarsArray[i].split("=")[1];                }                if (escape(unescape(queryVarsArray[i].split("=")[0])) == 'jqmRefresh')                {                    // if true, launches a "refresh parent window" order after the modal is closed.                    hash.refreshAfterClose = queryVarsArray[i].split("=")[1]                } else                {                    hash.refreshAfterClose = false;                }            }            // let's run through all possible values: 90%, nothing or a value in pixel            if (newHeight != 0)            {                if (newHeight.indexOf('%') > -1)                {                    newHeight = Math.floor(parseInt($(window).height()) * (parseInt(newHeight) / 100));                }                var newTop = Math.floor(parseInt($(window).height() - newHeight) / 2);            }            else            {                newHeight = $modalWindow.height();            }            if (newWidth != 0)            {                if (newWidth.indexOf('%') > -1)                {                    newWidth = Math.floor(parseInt($(window).width() / 100) * parseInt(newWidth));                }                var newLeft = Math.floor(parseInt($(window).width() / 2) - parseInt(newWidth) / 2);            }            else            {                newWidth = $modalWindow.width();            }            // do the animation so that the windows stays on center of screen despite resizing            $modalWindow.css({                width: newWidth,                height: newHeight,                opacity: 0            }).jqmShow().animate({                width: newWidth,                height: newHeight,                top: newTop,                left: newLeft,                marginLeft: 0,                opacity: 1            }, 'slow');        }        else        {            // don't do animations            $modalWindow.jqmShow();        }    }    $('#modalWindow').jqm({        overlay: 70,        modal: true,        trigger: 'a.thickbox',        target: '#jqmContent',        onHide: closeModal,        onShow: openInFrame    });            })                        