
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - ++resource++collective.flowplayer/flowplayer.min.js - */
/* 
 * flowplayer.js 3.1.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2009-02-25 21:24:29 +0000 (Wed, 25 Feb 2009)
 * Revision: 166 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.substring(0,q)||"*";var o=s.substring(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).substring(2,10)}var h=function(t,r,s){var q=this;var p={};var u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.substring(0,v.length-1);var w="onBefore"+v.substring(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var s={};var o=this;var u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var y=q._api().fp_getPlugin(p);if(!y){return}i(o,y);delete o.methods;if(!u){m(y.methods,function(){var A=""+this;o[A]=function(){var B=[].slice.call(arguments);var C=q._api().fp_invoke(p,A,B);return C==="undefined"||C===undefined?o:C}});u=true}}var z=s[w];if(z){z.apply(o,v);if(w.substring(0,1)=="_"){delete s[w]}}}})};function b(o,t,z){var E=this,y=null,x,u,p=[],s={},B={},r,v,w,D,A,q;i(E,{id:function(){return r},isLoaded:function(){return(y!==null)},getParent:function(){return o},hide:function(F){if(F){o.style.height="0px"}if(y){y.style.height="0px"}return E},show:function(){o.style.height=q+"px";if(y){y.style.height=A+"px"}return E},isHidden:function(){return y&&parseInt(y.style.height,10)===0},load:function(F){if(!y&&E._fireEvent("onBeforeLoad")!==false){m(a,function(){this.unload()});x=o.innerHTML;if(x&&!flashembed.isSupported(t.version)){o.innerHTML=""}flashembed(o,t,{config:z});if(F){F.cached=true;j(B,"onLoad",F)}}return E},unload:function(){if(x.replace(/\s/g,"")!==""){if(E._fireEvent("onBeforeUnload")===false){return E}try{if(y){y.fp_close();E._fireEvent("onUnload")}}catch(F){}y=null;o.innerHTML=x}return E},getClip:function(F){if(F===undefined){F=D}return p[F]},getCommonClip:function(){return u},getPlaylist:function(){return p},getPlugin:function(F){var H=s[F];if(!H&&E.isLoaded()){var G=E._api().fp_getPlugin(F);if(G){H=new l(F,G,E);s[F]=H}}return H},getScreen:function(){return E.getPlugin("screen")},getControls:function(){return E.getPlugin("controls")},getConfig:function(F){return F?k(z):z},getFlashParams:function(){return t},loadPlugin:function(I,H,K,J){if(typeof K=="function"){J=K;K={}}var G=J?e():"_";E._api().fp_loadPlugin(I,H,K,G);var F={};F[G]=J;var L=new l(I,null,E,F);s[I]=L;return L},getState:function(){return y?y.fp_getState():-1},play:function(G,F){function H(){if(G!==undefined){E._api().fp_play(G,F)}else{E._api().fp_play()}}if(y){H()}else{E.load(function(){H()})}return E},getVersion:function(){var G="flowplayer.js 3.1.4";if(y){var F=y.fp_getVersion();F.push(G);return F}return G},_api:function(){if(!y){throw"Flowplayer "+E.id()+" not loaded when calling an API method"}return y},setClip:function(F){E.setPlaylist([F]);return E},getIndex:function(){return w}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var F="on"+this;if(F.indexOf("*")!=-1){F=F.substring(0,F.length-1);var G="onBefore"+F.substring(2);E[G]=function(H){j(B,G,H);return E}}E[F]=function(H){j(B,F,H);return E}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed").split(","),function(){var F=this;E[F]=function(H,G){if(!y){return E}var I=null;if(H!==undefined&&G!==undefined){I=y["fp_"+F](H,G)}else{I=(H===undefined)?y["fp_"+F]():y["fp_"+F](H)}return I==="undefined"||I===undefined?E:I}});E._fireEvent=function(O){if(typeof O=="string"){O=[O]}var P=O[0],M=O[1],K=O[2],J=O[3],I=0;if(z.debug){g(O)}if(!y&&P=="onLoad"&&M=="player"){y=y||c(v);A=y.clientHeight;m(p,function(){this._fireEvent("onLoad")});m(s,function(Q,R){R._fireEvent("onUpdate")});u._fireEvent("onLoad")}if(P=="onLoad"&&M!="player"){return}if(P=="onError"){if(typeof M=="string"||(typeof M=="number"&&typeof K=="number")){M=K;K=J}}if(P=="onContextMenu"){m(z.contextMenu[M],function(Q,R){R.call(E)});return}if(P=="onPluginEvent"){var F=M.name||M;var G=s[F];if(G){G._fireEvent("onUpdate",M);G._fireEvent(K,O.slice(3))}return}if(P=="onPlaylistReplace"){p=[];var L=0;m(M,function(){p.push(new h(this,L++,E))})}if(P=="onClipAdd"){if(M.isInStream){return}M=new h(M,K,E);p.splice(K,0,M);for(I=K+1;I<p.length;I++){p[I].index++}}var N=true;if(typeof M=="number"&&M<p.length){D=M;var H=p[M];if(H){N=H._fireEvent(P,K,J)}if(!H||N!==false){N=u._fireEvent(P,K,J,H)}}m(B[P],function(){N=this.call(E,M,K);if(this.cached){B[P].splice(I,1)}if(N===false){return false}I++});return N};function C(){if($f(o)){$f(o).getParent().innerHTML="";w=$f(o).getIndex();a[w]=E}else{a.push(E);w=a.length-1}q=parseInt(o.style.height,10)||o.clientHeight;if(typeof t=="string"){t={src:t}}r=o.id||"fp"+e();v=t.id||r+"_api";t.id=v;z.playerId=r;if(typeof z=="string"){z={clip:{url:z}}}if(typeof z.clip=="string"){z.clip={url:z.clip}}z.clip=z.clip||{};if(o.getAttribute("href",2)&&!z.clip.url){z.clip.url=o.getAttribute("href",2)}u=new h(z.clip,-1,E);z.playlist=z.playlist||[z.clip];var F=0;m(z.playlist,function(){var H=this;if(typeof H=="object"&&H.length){H={url:""+H}}m(z.clip,function(I,J){if(J!==undefined&&H[I]===undefined&&typeof J!="function"){H[I]=J}});z.playlist[F]=H;H=new h(H,F,E);p.push(H);F++});m(z,function(H,I){if(typeof I=="function"){if(u[H]){u[H](I)}else{j(B,H,I)}delete z[H]}});m(z.plugins,function(H,I){if(I){s[H]=new l(H,I,E)}});if(!z.plugins||z.plugins.controls===undefined){s.controls=new l("controls",null,E)}s.canvas=new l("canvas",null,E);t.bgcolor=t.bgcolor||"#000000";t.version=t.version||[9,0];t.expressInstall="http://www.flowplayer.org/swf/expressinstall.swf";function G(H){if(!E.isLoaded()&&E._fireEvent("onBeforeClick")!==false){E.load()}return f(H)}x=o.innerHTML;if(x.replace(/\s/g,"")!==""){if(o.addEventListener){o.addEventListener("click",G,false)}else{if(o.attachEvent){o.attachEvent("onclick",G)}}}else{if(o.addEventListener){o.addEventListener("click",f,false)}E.load()}}if(typeof o=="string"){flashembed.domReady(function(){var F=c(o);if(!F){throw"Flowplayer cannot access element: "+o}else{o=F;C()}})}else{C()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var r=arguments[1];var q=(arguments.length==3)?arguments[2]:{};if(typeof o=="string"){if(o.indexOf(".")!=-1){var t=[];m(n(o),function(){t.push(new b(this,k(r),k(q)))});return new d(t)}else{var s=c(o);return new b(s!==null?s:o,r,q)}}else{if(o){return new b(o,r,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.prototype.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();

/* - ++resource++collective.flowplayer/flowplayer.playlist.min.js - */
/*
 * flowplayer.playlist 3.0.7. Flowplayer JavaScript plugin.
 * 
 * This file is part of Flowplayer, http://flowplayer.org
 *
 * Author: Tero Piirainen, <info@flowplayer.org>
 * Copyright (c) 2008 Flowplayer Ltd
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * SEE: http://www.opensource.org/licenses
 * 
 * Date: 2009-09-03 09:44:40 +0000 (Thu, 03 Sep 2009)
 * Revision: 2090 
 */
(function(a){$f.addPlugin("playlist",function(d,o){var n=this;var b={playingClass:"playing",pausedClass:"paused",progressClass:"progress",template:'<a href="${url}">${title}</a>',loop:false,playOnClick:true,manual:false};a.extend(b,o);d=a(d);var j=n.getPlaylist().length<=1||b.manual;var k=null;function e(q){var p=m;a.each(q,function(r,s){if(!a.isFunction(s)){p=p.replace("${"+r+"}",s).replace("$%7B"+r+"%7D",s)}});return p}function i(){k=d.children().unbind("click.playlist").bind("click.playlist",function(){return h(a(this),k.index(this))})}function c(){d.empty();a.each(n.getPlaylist(),function(){d.append(e(this))});i()}function h(p,q){if(p.hasClass(b.playingClass)||p.hasClass(b.pausedClass)){n.toggle()}else{p.addClass(b.progressClass);n.play(q)}return false}function l(){if(j){k=d.children()}k.removeClass(b.playingClass);k.removeClass(b.pausedClass);k.removeClass(b.progressClass)}function f(p){return(j)?k.filter("[href="+p.originalUrl+"]"):k.eq(p.index)}if(!j){var m=d.is(":empty")?b.template:d.html();c()}else{k=d.children();if(a.isFunction(k.live)){a(d.selector+"> *").live("click",function(){var p=a(this);return h(p,p.attr("href"))})}else{k.click(function(){var p=a(this);return h(p,p.attr("href"))})}var g=n.getClip(0);if(!g.url&&b.playOnClick){g.update({url:k.eq(0).attr("href")})}}n.onBegin(function(p){l();f(p).addClass(b.playingClass)});n.onPause(function(p){f(p).removeClass(b.playingClass).addClass(b.pausedClass)});n.onResume(function(p){f(p).removeClass(b.pausedClass).addClass(b.playingClass)});if(!b.loop&&!j){n.onBeforeFinish(function(p){if(!p.isInStream&&p.index<k.length-1){return false}})}if(j&&b.loop){n.onBeforeFinish(function(q){var p=f(q);if(p.next().length){p.next().click()}else{k.eq(0).click()}return false})}n.onUnload(function(){l()});if(!j){n.onPlaylistReplace(function(){c()})}n.onClipAdd(function(q,p){k.eq(p).before(e(q));i()});return n})})(jQuery);

/* - collective.flowplayer.js - */
(function($) {
        $(function() { 
            $('.autoFlowPlayer').each(function() {
                var config = {
    "clip": {
        "scaling": "fit", 
        "autoBuffering": false, 
        "autoPlay": false
    }, 
    "plugins": {
        "audio": {
            "url": "http%3A//www.marketcadres-evenements.com//%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.audio.swf"
        }, 
        "controls": {
            "url": "http%3A//www.marketcadres-evenements.com//%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.controls.swf", 
            "volume": true
        }
    }
};
                var $self = $(this);
                if ($self.is('.minimal')) { 
                    config.plugins.controls = null; 
                };
                var audio = $self.is('.audio');
                if (audio && !$self.is('.minimal')) {
                    if ($self.is('.image-left') || $self.is('.image-right'))
                        $self.width(230)
                    else
                        $self.width(500);
                    config.plugins.controls.all = false;
                    config.plugins.controls.play = true;
                    config.plugins.controls.scrubber = true;
                    config.plugins.controls.mute = true;
                    config.plugins.controls.volume = true;
                    config.plugins.controls.time = true;
                }
                if ($self.is('div')) {
                    // comming from Kupu, there are relative urls
                    config.clip.baseUrl = $('base').attr('href');
                    config.clip.url = $self.find('a').attr('href');
                    if (audio) {
                      // force .mp3 extension
                      config.clip.url = config.clip.url + '?e=.mp3';
                    };
                    // Ignore global autoplay settings
                    if ($self.find('img').length == 0) {
                        // no image. Don't autoplay, remove all elements inside the div to show player directly.
                        config.clip.autoPlay = false;
                        $self.empty();
                    } else {
                        // Clip is probably linked as image, so autoplay the clip after image is clicked
                        config.clip.autoPlay = true;
                    }
                }
                flowplayer(this, {"src": "http://www.marketcadres-evenements.com//++resource++collective.flowplayer/flowplayer.swf"}, config).onLoad( function() { this.setVolume(50); });
                $('.flowPlayerMessage').remove();
            });
            $('.playListFlowPlayer').each(function() {
                var config = {
    "clip": {
        "scaling": "fit", 
        "autoBuffering": false, 
        "autoPlay": false
    }, 
    "plugins": {
        "audio": {
            "url": "http%3A//www.marketcadres-evenements.com//%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.audio.swf"
        }, 
        "controls": {
            "url": "http%3A//www.marketcadres-evenements.com//%2B%2Bresource%2B%2Bcollective.flowplayer/flowplayer.controls.swf", 
            "volume": true
        }
    }
};
                var $self = $(this);
                var audio = $self.is('.audio');
                if (audio) { config.plugins.controls.fullscreen = false; }
                if ($self.is('.minimal')) { config.plugins.controls = null; }
                if ($self.find('img').length > 0) { 
                    // has splash
                    config.clip.autoPlay = true;
                }
                portlet_parents = $self.parents('.portlet');
                var playlist_selector = 'div#flowPlaylist';
                if (portlet_parents.length > 0) {
                    var portlet = true;
                    // playlist has to be bound to unique item
                    playlist_selector_id = portlet_parents.parent().attr('id')+'-playlist';
                    $self.parent().find('.flowPlaylist-portlet-marker').attr('id', playlist_selector_id);
                    playlist_selector = '#'+playlist_selector_id;
                    if (audio && !$self.is('.minimal')) {
                        config.plugins.controls.all = false;
                        config.plugins.controls.play = true;
                        config.plugins.controls.scrubber = true;
                        config.plugins.controls.mute = true;
                        config.plugins.controls.volume = false;
                    }
                } else {
                    var portlet = false;
                }
                if (!portlet) {
                    $("#pl").scrollable({items:playlist_selector, size:4, clickable:false});
                }
                // manual = playlist is setup using HTML tags, not using playlist array in config
                flowplayer(this, {"src": "http://www.marketcadres-evenements.com//++resource++collective.flowplayer/flowplayer.swf"}, config).playlist(playlist_selector, {loop: true, manual: true}).onLoad( function() { this.setVolume(50); });
                $self.show();
                $('.flowPlayerMessage').remove();

            });
        });
})(jQuery);


/* - slimbox2.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/slimbox2.js?original=1
(function(w){var E=w(window),u,g,F=-1,o,x,D,v,y,L,s,n=!window.XMLHttpRequest,e=window.opera&&(document.compatMode=="CSS1Compat")&&(w.browser.version>=9.3),m=document.documentElement,l={},t=new Image(),J=new Image(),H,a,h,q,I,d,G,c,A,K;w(function(){w("body").append(w([H=w('<div id="lbOverlay" />')[0],a=w('<div id="lbCenter" />')[0],G=w('<div id="lbBottomContainer" />')[0]]).css("display","none"));h=w('<div id="lbImage" />').appendTo(a).append(q=w('<div style="position: relative;" />').append([I=w('<a id="lbPrevLink" href="#" />').click(B)[0],d=w('<a id="lbNextLink" href="#" />').click(f)[0]])[0])[0];c=w('<div id="lbBottom" />').appendTo(G).append([w('<a id="lbCloseLink" href="#" />').add(H).click(C)[0],A=w('<div id="lbCaption" />')[0],K=w('<div id="lbNumber" />')[0],w('<div style="clear: both;" />')[0]])[0]});w.slimbox=function(O,N,M){u=w.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M);if(typeof O=="string"){O=[[O,N]];N=0}y=E.scrollTop()+((e?m.clientHeight:E.height())/2);L=u.initialWidth;s=u.initialHeight;w(a).css({top:Math.max(0,y-(s/2)),width:L,height:s,marginLeft:-L/2}).show();v=n||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(v){H.style.position="absolute"}w(H).css("opacity",u.overlayOpacity).fadeIn(u.overlayFadeDuration);z();k(1);g=O;u.loop=u.loop&&(g.length>1);return b(N)};w.fn.slimbox=function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;return N.unbind("click").click(function(){var S=this,U=0,T,Q=0,R;T=w.grep(N,function(W,V){return O.call(S,W,V)});for(R=T.length;Q<R;++Q){if(T[Q]==S){U=Q}T[Q]=P(T[Q],Q)}return w.slimbox(T,U,M)})};function z(){var N=E.scrollLeft(),M=e?m.clientWidth:E.width();w([a,G]).css("left",N+(M/2));if(v){w(H).css({left:N,top:E.scrollTop(),width:M,height:E.height()})}}function k(M){w("object").add(n?"select":"embed").each(function(O,P){if(M){w.data(P,"slimbox",P.style.visibility)}P.style.visibility=M?"hidden":w.data(P,"slimbox")});var N=M?"bind":"unbind";E[N]("scroll resize",z);w(document)[N]("keydown",p)}function p(O){var N=O.keyCode,M=w.inArray;return(M(N,u.closeKeys)>=0)?C():(M(N,u.nextKeys)>=0)?f():(M(N,u.previousKeys)>=0)?B():false}function B(){return b(x)}function f(){return b(D)}function b(M){if(M>=0){F=M;o=g[F][0];x=(F||(u.loop?g.length:0))-1;D=((F+1)%g.length)||(u.loop?0:-1);r();a.className="lbLoading";l=new Image();l.onload=j;l.src=o}return false}function j(){a.className="";w(h).css({backgroundImage:"url("+o+")",visibility:"hidden",display:""});w(q).width(l.width);w([q,I,d]).height(l.height);w(A).html(g[F][1]||"");w(K).html((((g.length>1)&&u.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,g.length));if(x>=0){t.src=g[x][0]}if(D>=0){J.src=g[D][0]}L=h.offsetWidth;s=h.offsetHeight;var M=Math.max(0,y-(s/2));if(a.offsetHeight!=s){w(a).animate({height:s,top:M},u.resizeDuration,u.resizeEasing)}if(a.offsetWidth!=L){w(a).animate({width:L,marginLeft:-L/2},u.resizeDuration,u.resizeEasing)}w(a).queue(function(){w(G).css({width:L,top:M+s,marginLeft:-L/2,visibility:"hidden",display:""});w(h).css({display:"none",visibility:"",opacity:""}).fadeIn(u.imageFadeDuration,i)})}function i(){if(x>=0){w(I).show()}if(D>=0){w(d).show()}w(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},u.captionAnimationDuration);G.style.visibility=""}function r(){l.onload=null;l.src=t.src=J.src=o;w([a,h,c]).stop(true);w([I,d,h,G]).hide()}function C(){if(F>=0){r();F=x=D=-1;w(a).hide();w(H).stop().fadeOut(u.overlayFadeDuration,k)}return false}})(jQuery);if(!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)){jQuery(function($){$("a[rel^='lightbox']").slimbox({},null, function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel))})})}

/* - gb_plone.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/gb_plone.js?original=1
var GB_ROOT_DIR='http://www.marketcadres-evenements.com/++resource++greybox/';

/* - ++resource++greybox/AJS.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/++resource++greybox/AJS.js?original=1
AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,getScrollTop:function(){var t;if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop}else{if(document.body){t=document.body.scrollTop}}
return t},addClass:function(){var _2=AJS.forceArray(arguments);var _3=_2.pop();var _4=function(o){if(!new RegExp("(^|\\s)"+_3+"(\\s|$)").test(o.className)){o.className+=(o.className?" ":"")+_3}};AJS.map(_2,function(_6){_4(_6)})},setStyle:function(){var _7=AJS.forceArray(arguments);var _8=_7.pop();var _9=_7.pop();AJS.map(_7,function(_a){_a.style[_9]=AJS.getCssDim(_8)})},extend:function(_b){var _c=new this("no_init");for(k in _b){var _d=_c[k];var _e=_b[k];if(_d&&_d!=_e&&typeof _e=="function"){_e=this._parentize(_e,_d)}
_c[k]=_e}
return new AJS.Class(_c)},log:function(o){if(window.console){console.log(o)}else{var div=AJS.$("ajs_logger");if(!div){div=AJS.DIV({id:"ajs_logger","style":"color: green; position: absolute; left: 0"});div.style.top=AJS.getScrollTop()+"px";AJS.ACN(AJS.getBody(),div)}
AJS.setHTML(div,""+o)}},setHeight:function(){var _11=AJS.forceArray(arguments);_11.splice(_11.length-1,0,"height");AJS.setStyle.apply(null,_11)},_getRealScope:function(fn,_13){_13=AJS.$A(_13);var _14=fn._cscope||window;return function(){var _15=AJS.$FA(arguments).concat(_13);return fn.apply(_14,_15)}},documentInsert:function(elm){if(typeof(elm)=="string"){elm=AJS.HTML2DOM(elm)}
document.write("<span id=\"dummy_holder\"></span>");AJS.swapDOM(AJS.$("dummy_holder"),elm)},getWindowSize:function(doc){doc=doc||document;var _18,_19;if(self.innerHeight){_18=self.innerWidth;_19=self.innerHeight}else{if(doc.documentElement&&doc.documentElement.clientHeight){_18=doc.documentElement.clientWidth;_19=doc.documentElement.clientHeight}else{if(doc.body){_18=doc.body.clientWidth;_19=doc.body.clientHeight}}}
return{"w":_18,"h":_19}},flattenList:function(_1a){var r=[];var _1c=function(r,l){AJS.map(l,function(o){if(o==null){}else{if(AJS.isArray(o)){_1c(r,o)}else{r.push(o)}}})};_1c(r,_1a);return r},isFunction:function(obj){return(typeof obj=="function")},setEventKey:function(e){e.key=e.keyCode?e.keyCode:e.charCode;if(window.event){e.ctrl=window.event.ctrlKey;e.shift=window.event.shiftKey}else{e.ctrl=e.ctrlKey;e.shift=e.shiftKey}
switch(e.key){case 63232:e.key=38;break;case 63233:e.key=40;break;case 63235:e.key=39;break;case 63234:e.key=37;break}},removeElement:function(){var _22=AJS.forceArray(arguments);AJS.map(_22,function(elm){AJS.swapDOM(elm,null)})},_unloadListeners:function(){if(AJS.listeners){AJS.map(AJS.listeners,function(elm,_25,fn){AJS.REV(elm,_25,fn)})}
AJS.listeners=[]},join:function(_27,_28){try{return _28.join(_27)}
catch(e){var r=_28[0]||"";AJS.map(_28,function(elm){r+=_27+elm},1);return r+""}},getIndex:function(elm,_2c,_2d){for(var i=0;i<_2c.length;i++){if(_2d&&_2d(_2c[i])||elm==_2c[i]){return i}}
return-1},isIn:function(elm,_30){var i=AJS.getIndex(elm,_30);if(i!=-1){return true}else{return false}},isArray:function(obj){return obj instanceof Array},setLeft:function(){var _33=AJS.forceArray(arguments);_33.splice(_33.length-1,0,"left");AJS.setStyle.apply(null,_33)},appendChildNodes:function(elm){if(arguments.length>=2){AJS.map(arguments,function(n){if(AJS.isString(n)){n=AJS.TN(n)}
if(AJS.isDefined(n)){elm.appendChild(n)}},1)}
return elm},getElementsByTagAndClassName:function(_36,_37,_38,_39){var _3a=[];if(!AJS.isDefined(_38)){_38=document}
if(!AJS.isDefined(_36)){_36="*"}
var els=_38.getElementsByTagName(_36);var _3c=els.length;var _3d=new RegExp("(^|\\s)"+_37+"(\\s|$)");for(i=0,j=0;i<_3c;i++){if(_3d.test(els[i].className)||_37==null){_3a[j]=els[i];j++}}
if(_39){return _3a[0]}else{return _3a}},isOpera:function(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)},isString:function(obj){return(typeof obj=="string")},hideElement:function(elm){var _40=AJS.forceArray(arguments);AJS.map(_40,function(elm){elm.style.display="none"})},setOpacity:function(elm,p){elm.style.opacity=p;elm.style.filter="alpha(opacity="+p*100+")"},insertBefore:function(elm,_45){_45.parentNode.insertBefore(elm,_45);return elm},setWidth:function(){var _46=AJS.forceArray(arguments);_46.splice(_46.length-1,0,"width");AJS.setStyle.apply(null,_46)},createArray:function(v){if(AJS.isArray(v)&&!AJS.isString(v)){return v}else{if(!v){return []}else{return [v]}}},isDict:function(o){var _49=String(o);return _49.indexOf(" Object")!=-1},isMozilla:function(){return(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210)},removeEventListener:function(elm,_4b,fn,_4d){var _4e="ajsl_"+_4b+fn;if(!_4d){_4d=false}
fn=elm[_4e]||fn;if(elm["on"+_4b]==fn){elm["on"+_4b]=elm[_4e+"old"]}
if(elm.removeEventListener){elm.removeEventListener(_4b,fn,_4d);if(AJS.isOpera()){elm.removeEventListener(_4b,fn,!_4d)}}else{if(elm.detachEvent){elm.detachEvent("on"+_4b,fn)}}},callLater:function(fn,_50){var _51=function(){fn()};window.setTimeout(_51,_50)},setTop:function(){var _52=AJS.forceArray(arguments);_52.splice(_52.length-1,0,"top");AJS.setStyle.apply(null,_52)},_createDomShortcuts:function(){var _53=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","h4","h5","h6","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre","i"];var _54=function(elm){AJS[elm.toUpperCase()]=function(){return AJS.createDOM.apply(null,[elm,arguments])}};AJS.map(_53,_54);AJS.TN=function(_56){return document.createTextNode(_56)}},addCallback:function(fn){this.callbacks.unshift(fn)},bindMethods:function(_58){for(var k in _58){var _5a=_58[k];if(typeof(_5a)=="function"){_58[k]=AJS.$b(_5a,_58)}}},partial:function(fn){var _5c=AJS.$FA(arguments);_5c.shift();return function(){_5c=_5c.concat(AJS.$FA(arguments));return fn.apply(window,_5c)}},isNumber:function(obj){return(typeof obj=="number")},getCssDim:function(dim){if(AJS.isString(dim)){return dim}else{return dim+"px"}},isIe:function(){return(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)},removeClass:function(){var _5f=AJS.forceArray(arguments);var cls=_5f.pop();var _61=function(o){o.className=o.className.replace(new RegExp("\\s?"+cls,"g"),"")};AJS.map(_5f,function(elm){_61(elm)})},setHTML:function(elm,_65){elm.innerHTML=_65;return elm},map:function(_66,fn,_68,_69){var i=0,l=_66.length;if(_68){i=_68}
if(_69){l=_69}
for(i;i<l;i++){var val=fn(_66[i],i);if(val!=undefined){return val}}},addEventListener:function(elm,_6e,fn,_70,_71){var _72="ajsl_"+_6e+fn;if(!_71){_71=false}
AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(_6e,["keypress","keydown","keyup","click"])){var _73=fn;fn=function(e){AJS.setEventKey(e);return _73.apply(window,arguments)}}
var _75=AJS.isIn(_6e,["submit","load","scroll","resize"]);var _76=AJS.$A(elm);AJS.map(_76,function(_77){if(_70){var _78=fn;fn=function(e){AJS.REV(_77,_6e,fn);return _78.apply(window,arguments)}}
if(_75){var _7a=_77["on"+_6e];var _7b=function(){if(_7a){fn(arguments);return _7a(arguments)}else{return fn(arguments)}};_77[_72]=_7b;_77[_72+"old"]=_7a;elm["on"+_6e]=_7b}else{_77[_72]=fn;if(_77.attachEvent){_77.attachEvent("on"+_6e,fn)}else{if(_77.addEventListener){_77.addEventListener(_6e,fn,_71)}}
AJS.listeners.push([_77,_6e,fn])}})},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(_7c){AJS.map(_7c,function(src){var pic=new Image();pic.src=src})},arguments))},forceArray:function(_7f){var r=[];AJS.map(_7f,function(elm){r.push(elm)});return r},update:function(l1,l2){for(var i in l2){l1[i]=l2[i]}
return l1},getBody:function(){return AJS.$bytc("body")[0]},HTML2DOM:function(_85,_86){var d=AJS.DIV();d.innerHTML=_85;if(_86){return d.childNodes[0]}else{return d}},getElement:function(id){if(AJS.isString(id)||AJS.isNumber(id)){return document.getElementById(id)}else{return id}},showElement:function(){var _89=AJS.forceArray(arguments);AJS.map(_89,function(elm){elm.style.display=""})},bind:function(fn,_8c,_8d){fn._cscope=_8c;return AJS._getRealScope(fn,_8d)},createDOM:function(_8e,_8f){var i=0,_91;var elm=document.createElement(_8e);var _93=_8f[0];if(AJS.isDict(_8f[i])){for(k in _93){_91=_93[k];if(k=="style"||k=="s"){elm.style.cssText=_91}else{if(k=="c"||k=="class"||k=="className"){elm.className=_91}else{elm.setAttribute(k,_91)}}}
i++}
if(_93==null){i=1}
for(var j=i;j<_8f.length;j++){var _91=_8f[j];if(_91){var _95=typeof(_91);if(_95=="string"||_95=="number"){_91=AJS.TN(_91)}
elm.appendChild(_91)}}
return elm},swapDOM:function(_96,src){_96=AJS.getElement(_96);var _98=_96.parentNode;if(src){src=AJS.getElement(src);_98.replaceChild(src,_96)}else{_98.removeChild(_96)}
return src},isDefined:function(o){return(o!="undefined"&&o!=null)}};AJS.$=AJS.getElement;AJS.$$=AJS.getElements;AJS.$f=AJS.getFormElement;AJS.$p=AJS.partial;AJS.$b=AJS.bind;AJS.$A=AJS.createArray;AJS.DI=AJS.documentInsert;AJS.ACN=AJS.appendChildNodes;AJS.RCN=AJS.replaceChildNodes;AJS.AEV=AJS.addEventListener;AJS.REV=AJS.removeEventListener;AJS.$bytc=AJS.getElementsByTagAndClassName;AJS.$AP=AJS.absolutePosition;AJS.$FA=AJS.forceArray;AJS.addEventListener(window,"unload",AJS._unloadListeners);AJS._createDomShortcuts();AJS.Class=function(_9a){var fn=function(){if(arguments[0]!="no_init"){return this.init.apply(this,arguments)}};fn.prototype=_9a;AJS.update(fn,AJS.Class.prototype);return fn};AJS.Class.prototype={extend:function(_9c){var _9d=new this("no_init");for(k in _9c){var _9e=_9d[k];var cur=_9c[k];if(_9e&&_9e!=cur&&typeof cur=="function"){cur=this._parentize(cur,_9e)}
_9d[k]=cur}
return new AJS.Class(_9d)},implement:function(_a0){AJS.update(this.prototype,_a0)},_parentize:function(cur,_a2){return function(){this.parent=_a2;return cur.apply(this,arguments)}}};script_loaded=true;script_loaded=true;

/* - ++resource++greybox/AJS_fx.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/++resource++greybox/AJS_fx.js?original=1
AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){var _3=new AJS.fx.Base();_3.elm=AJS.$(_1);_3.options.duration=600;_3.setOptions(_2);AJS.update(_3,{increase:function(){if(this.now==7){_1.style.backgroundColor="#fff"}else{_1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]}}});return _3.custom(6,0)},fadeIn:function(_4,_5){_5=_5||{};if(!_5.from){_5.from=0;AJS.setOpacity(_4,0)}
if(!_5.to){_5.to=1}
var s=new AJS.fx.Style(_4,"opacity",_5);return s.custom(_5.from,_5.to)},fadeOut:function(_7,_8){_8=_8||{};if(!_8.from){_8.from=1}
if(!_8.to){_8.to=0}
_8.duration=300;var s=new AJS.fx.Style(_7,"opacity",_8);return s.custom(_8.from,_8.to)},setWidth:function(_a,_b){var s=new AJS.fx.Style(_a,"width",_b);return s.custom(_b.from,_b.to)},setHeight:function(_d,_e){var s=new AJS.fx.Style(_d,"height",_e);return s.custom(_e.from,_e.to)}};AJS.fx.Base=new AJS.Class({init:function(_10){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,_10);AJS.bindMethods(this)},setOptions:function(_11){AJS.update(this.options,_11)},step:function(){var _12=new Date().getTime();if(_12<this.time+this.options.duration){this.cTime=_12-this.time;this.setNow()}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to}
this.increase()},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(_13,to){var _15=to-_13;return this.options.transition(this.cTime,_13,_15,this.options.duration)},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this},_start:function(_16,to){if(!this.options.wait){this.clearTimer()}
if(this.timer){return}
setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=_16;this.to=to;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this},custom:function(_18,to){return this._start(_18,to)},set:function(to){this.now=to;this.increase();return this},setStyle:function(elm,_1c,val){if(this.property=="opacity"){AJS.setOpacity(elm,val)}else{AJS.setStyle(elm,_1c,val)}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1f,_20){this.parent();this.elm=elm;this.setOptions(_20);this.property=_1f},increase:function(){this.setStyle(this.elm,this.property,this.now)}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_22){this.parent();this.elm=AJS.$(elm);this.setOptions(_22);this.now={}},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p])}},custom:function(obj){if(this.timer&&this.options.wait){return}
var _24={};var to={};for(p in obj){_24[p]=obj[p][0];to[p]=obj[p][1]}
return this._start(_24,to)},increase:function(){for(var p in this.now){this.setStyle(this.elm,p,this.now[p])}}});AJS.fx.Transitions={linear:function(t,b,c,d){return c*t/d+b},sineInOut:function(t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b}};script_loaded=true;script_loaded=true;

/* - ++resource++greybox/gb_scripts.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/++resource++greybox/gb_scripts.js?original=1
var GB_CURRENT=null;GB_hide=function(cb){GB_CURRENT.hide(cb)};GreyBox=new AJS.Class({init:function(_2){this.use_fx=AJS.fx;this.type="page";this.overlay_click_close=false;this.salt=0;this.root_dir=GB_ROOT_DIR;this.callback_fns=[];this.reload_on_close=false;this.src_loader=this.root_dir+"loader_frame.html";var _3=window.location.hostname.indexOf("www");var _4=this.src_loader.indexOf("www");if(_3!=-1&&_4==-1){this.src_loader=this.src_loader.replace("://","://www.")}
if(_3==-1&&_4!=-1){this.src_loader=this.src_loader.replace("://www.","://")}
this.show_loading=true;AJS.update(this,_2)},addCallback:function(fn){if(fn){this.callback_fns.push(fn)}},show:function(_6){GB_CURRENT=this;this.url=_6;var _7=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(_7),function(_8){_8.style.visibility="hidden"});this.createElements();return false},hide:function(cb){var me=this;AJS.callLater(function(){var _b=me.callback_fns;if(_b!=[]){AJS.map(_b,function(fn){fn()})}
me.onHide();if(me.use_fx){var _d=me.overlay;AJS.fx.fadeOut(me.overlay,{onComplete:function(){AJS.removeElement(_d);_d=null},duration:300});AJS.removeElement(me.g_window)}else{AJS.removeElement(me.g_window,me.overlay)}
me.removeFrame();AJS.REV(window,"scroll",_GB_setOverlayDimension);AJS.REV(window,"resize",_GB_update);var _e=[AJS.$bytc("object"),AJS.$bytc("select")];AJS.map(AJS.flattenList(_e),function(_f){_f.style.visibility="visible"});GB_CURRENT=null;if(me.reload_on_close){window.location.reload()}
if(AJS.isFunction(cb)){cb()}},10)},update:function(){this.setOverlayDimension();this.setFrameSize();this.setWindowPosition()},createElements:function(){this.initOverlay();this.g_window=AJS.DIV({"id":"GB_window"});AJS.hideElement(this.g_window);AJS.getBody().insertBefore(this.g_window,this.overlay.nextSibling);this.initFrame();this.initHook();this.update();var me=this;if(this.use_fx){AJS.fx.fadeIn(this.overlay,{duration:300,to:0.7,onComplete:function(){me.onShow();AJS.showElement(me.g_window);me.startLoading()}})}else{AJS.setOpacity(this.overlay,0.7);AJS.showElement(this.g_window);this.onShow();this.startLoading()}
AJS.AEV(window,"scroll",_GB_setOverlayDimension);AJS.AEV(window,"resize",_GB_update)},removeFrame:function(){try{AJS.removeElement(this.iframe)}
catch(e){}
this.iframe=null},startLoading:function(){this.iframe.src=this.src_loader+"?s="+this.salt++;AJS.showElement(this.iframe)},setOverlayDimension:function(){var _11=AJS.getWindowSize();if(AJS.isMozilla()||AJS.isOpera()){AJS.setWidth(this.overlay,"100%")}else{AJS.setWidth(this.overlay,_11.w)}
var _12=Math.max(AJS.getScrollTop()+_11.h,AJS.getScrollTop()+this.height);if(_12<AJS.getScrollTop()){AJS.setHeight(this.overlay,_12)}else{AJS.setHeight(this.overlay,AJS.getScrollTop()+_11.h)}},initOverlay:function(){this.overlay=AJS.DIV({"id":"GB_overlay"});if(this.overlay_click_close){AJS.AEV(this.overlay,"click",GB_hide)}
AJS.setOpacity(this.overlay,0);AJS.getBody().insertBefore(this.overlay,AJS.getBody().firstChild)},initFrame:function(){if(!this.iframe){var d={"name":"GB_frame","class":"GB_frame","frameBorder":0};if(AJS.isIe()){d.src="javascript:false;document.write(\"\");"}
this.iframe=AJS.IFRAME(d);this.middle_cnt=AJS.DIV({"class":"content"},this.iframe);this.top_cnt=AJS.DIV();this.bottom_cnt=AJS.DIV();AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt)}},onHide:function(){},onShow:function(){},setFrameSize:function(){},setWindowPosition:function(){},initHook:function(){}});_GB_update=function(){if(GB_CURRENT){GB_CURRENT.update()}};_GB_setOverlayDimension=function(){if(GB_CURRENT){GB_CURRENT.setOverlayDimension()}};AJS.preloadImages(GB_ROOT_DIR+"indicator.gif");script_loaded=true;var GB_SETS={};
function decoGreyboxLinks(){var as=AJS.$bytc("a");AJS.map(as,function(a){if(a.getAttribute("href")&&a.getAttribute("rel")){var rel=a.getAttribute("rel");if(rel.indexOf("gb_")==0){var _17=rel.match(/\w+/)[0];var _18=rel.match(/\[(.*)\]/)[1];var _19=0;var _1a={"caption":a.title||"","url":a.href};if(_17=="gb_pageset"||_17=="gb_imageset"){if(!GB_SETS[_18]){GB_SETS[_18]=[]}
GB_SETS[_18].push(_1a);_19=GB_SETS[_18].length}
if(_17=="gb_pageset"){a.onclick=function(){GB_showFullScreenSet(GB_SETS[_18],_19);return false}}
if(_17=="gb_imageset"){a.onclick=function(){GB_showImageSet(GB_SETS[_18],_19);return false}}
if(_17=="gb_image"){a.onclick=function(){GB_showImage(_1a.caption,_1a.url);return false}}
if(_17=="gb_page"){a.onclick=function(){var sp=_18.split(/, ?/);GB_show(_1a.caption,_1a.url,parseInt(sp[1]),parseInt(sp[0]));return false}}
if(_17=="gb_page_fs"){a.onclick=function(){GB_showFullScreen(_1a.caption,_1a.url);return false}}
if(_17=="gb_page_center"){a.onclick=function(){var sp=_18.split(/, ?/);GB_showCenter(_1a.caption,_1a.url,parseInt(sp[1]),parseInt(sp[0]));return false}}}}})}
AJS.AEV(window,"load",decoGreyboxLinks);GB_showImage=function(_1d,url,_1f){var _20={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:_1d,callback_fn:_1f};var win=new GB_Gallery(_20);return win.show(url)};GB_showPage=function(_22,url,_24){var _25={type:"page",caption:_22,callback_fn:_24,fullscreen:true,center_win:false};var win=new GB_Gallery(_25);return win.show(url)};GB_Gallery=GreyBox.extend({init:function(_27){this.parent({});this.img_close=this.root_dir+"g_close.gif";AJS.update(this,_27);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Gallery");var _28=AJS.DIV({"class":"inner"});this.header=AJS.DIV({"class":"GB_header"},_28);AJS.setOpacity(this.header,0);AJS.getBody().insertBefore(this.header,this.overlay.nextSibling);var _29=AJS.TD({"id":"GB_caption","class":"caption","width":"40%"},this.caption);var _2a=AJS.TD({"id":"GB_middle","class":"middle","width":"20%"});var _2b=AJS.IMG({"src":this.img_close});AJS.AEV(_2b,"click",GB_hide);var _2c=AJS.TD({"class":"close","width":"40%"},_2b);var _2d=AJS.TBODY(AJS.TR(_29,_2a,_2c));var _2e=AJS.TABLE({"cellspacing":"0","cellpadding":0,"border":0},_2d);AJS.ACN(_28,_2e);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}else{AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this))}},setFrameSize:function(){var _2f=this.overlay.offsetWidth;var _30=AJS.getWindowSize();if(this.fullscreen){this.width=_2f-40;this.height=_30.h-80}
AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height);AJS.setWidth(this.header,_2f)},_setHeaderPos:function(){AJS.setTop(this.header,AJS.getScrollTop()+10)},setWindowPosition:function(){var _31=this.overlay.offsetWidth;var _32=AJS.getWindowSize();AJS.setLeft(this.g_window,((_31-50-this.width)/2));var _33=AJS.getScrollTop()+55;if(!this.center_win){AJS.setTop(this.g_window,_33)}else{var fl=((_32.h-this.height)/2)+20+AJS.getScrollTop();if(fl<0){fl=0}
if(_33>fl){fl=_33}
AJS.setTop(this.g_window,fl)}
this._setHeaderPos()},onHide:function(){AJS.removeElement(this.header);AJS.removeClass(this.g_window,"GB_Gallery")},onShow:function(){if(this.use_fx){AJS.fx.fadeIn(this.header,{to:1})}else{AJS.setOpacity(this.header,1)}}});AJS.preloadImages(GB_ROOT_DIR+"g_close.gif");GB_showFullScreenSet=function(set,_36,_37){var _38={type:"page",fullscreen:true,center_win:false};var _39=new GB_Sets(_38,set);_39.addCallback(_37);_39.showSet(_36-1);return false};GB_showImageSet=function(set,_3b,_3c){var _3d={type:"image",fullscreen:false,center_win:true,width:300,height:300};var _3e=new GB_Sets(_3d,set);_3e.addCallback(_3c);_3e.showSet(_3b-1);return false};GB_Sets=GB_Gallery.extend({init:function(_3f,set){this.parent(_3f);if(!this.img_next){this.img_next=this.root_dir+"next.gif"}
if(!this.img_prev){this.img_prev=this.root_dir+"prev.gif"}
this.current_set=set},showSet:function(_41){this.current_index=_41;var _42=this.current_set[this.current_index];this.show(_42.url);this._setCaption(_42.caption);this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev});this.btn_next=AJS.IMG({"class":"right",src:this.img_next});AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this));AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this));GB_STATUS=AJS.SPAN({"class":"GB_navStatus"});AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next);this.updateStatus()},updateStatus:function(){AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length);if(this.current_index==0){AJS.addClass(this.btn_prev,"disabled")}else{AJS.removeClass(this.btn_prev,"disabled")}
if(this.current_index==this.current_set.length-1){AJS.addClass(this.btn_next,"disabled")}else{AJS.removeClass(this.btn_next,"disabled")}},_setCaption:function(_43){AJS.setHTML(AJS.$("GB_caption"),_43)},updateFrame:function(){var _44=this.current_set[this.current_index];this._setCaption(_44.caption);this.url=_44.url;this.startLoading()},switchPrev:function(){if(this.current_index!=0){this.current_index--;this.updateFrame();this.updateStatus()}},switchNext:function(){if(this.current_index!=this.current_set.length-1){this.current_index++;this.updateFrame();this.updateStatus()}}});AJS.AEV(window,"load",function(){AJS.preloadImages(GB_ROOT_DIR+"next.gif",GB_ROOT_DIR+"prev.gif")});GB_show=function(_45,url,_47,_48,_49){var _4a={caption:_45,height:_47||500,width:_48||500,fullscreen:false,callback_fn:_49};var win=new GB_Window(_4a);return win.show(url)};GB_showCenter=function(_4c,url,_4e,_4f,_50){var _51={caption:_4c,center_win:true,height:_4e||500,width:_4f||500,fullscreen:false,callback_fn:_50};var win=new GB_Window(_51);return win.show(url)};GB_showFullScreen=function(_53,url,_55){var _56={caption:_53,fullscreen:true,callback_fn:_55};var win=new GB_Window(_56);return win.show(url)};GB_Window=GreyBox.extend({init:function(_58){this.parent({});this.img_header=this.root_dir+"header_bg.gif";this.img_close=this.root_dir+"w_close.gif";this.show_close_img=true;AJS.update(this,_58);this.addCallback(this.callback_fn)},initHook:function(){AJS.addClass(this.g_window,"GB_Window");this.header=AJS.TABLE({"class":"header"});this.header.style.backgroundImage="url("+this.img_header+")";var _59=AJS.TD({"class":"caption"},this.caption);var _5a=AJS.TD({"class":"close"});if(this.show_close_img){var _5b=AJS.IMG({"src":this.img_close});var _5c=AJS.SPAN("Close");var btn=AJS.DIV(_5b,_5c);AJS.AEV([_5b,_5c],"mouseover",function(){AJS.addClass(_5c,"on")});AJS.AEV([_5b,_5c],"mouseout",function(){AJS.removeClass(_5c,"on")});AJS.AEV([_5b,_5c],"mousedown",function(){AJS.addClass(_5c,"click")});AJS.AEV([_5b,_5c],"mouseup",function(){AJS.removeClass(_5c,"click")});AJS.AEV([_5b,_5c],"click",GB_hide);AJS.ACN(_5a,btn)}
tbody_header=AJS.TBODY();AJS.ACN(tbody_header,AJS.TR(_59,_5a));AJS.ACN(this.header,tbody_header);AJS.ACN(this.top_cnt,this.header);if(this.fullscreen){AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this))}},setFrameSize:function(){if(this.fullscreen){var _5e=AJS.getWindowSize();overlay_h=_5e.h;this.width=Math.round(this.overlay.offsetWidth-(this.overlay.offsetWidth/100)*10);this.height=Math.round(overlay_h-(overlay_h/100)*10)}
AJS.setWidth(this.header,this.width+6);AJS.setWidth(this.iframe,this.width);AJS.setHeight(this.iframe,this.height)},setWindowPosition:function(){var _5f=AJS.getWindowSize();AJS.setLeft(this.g_window,((_5f.w-this.width)/2)-13);if(!this.center_win){AJS.setTop(this.g_window,AJS.getScrollTop())}else{var fl=((_5f.h-this.height)/2)-20+AJS.getScrollTop();if(fl<0){fl=0}
AJS.setTop(this.g_window,fl)}}});AJS.preloadImages(GB_ROOT_DIR+"w_close.gif",GB_ROOT_DIR+"header_bg.gif");script_loaded=true;

/* - ++resource++carousel.js - */
// http://www.marketcadres-evenements.com/portal_javascripts/++resource++carousel.js?original=1
var carousel_interval;if(jq('#carousel')){var carousel_rotate=function(){features=jq('.carousel-banner');if(features.length<2)
return;jq('.carousel-banner:visible').fadeOut(300);jq('.carousel-button.selected').removeClass('selected');next=jq('.carousel-banner:visible').next('.carousel-banner');if(next.length){next.fadeIn(300);jq('#carousel-button-'+next.attr('id').substr(16)).addClass('selected')} else{jq('#carousel-banner-0').fadeIn(300);jq('.carousel-button:first').addClass('selected')}};jq(function(){carousel_interval=setInterval(carousel_rotate,8000);setTimeout(function(){jq('#carousel .link-https, #carousel .link-external').each( function(){jq(this).replaceWith(jq(this).html())})},1000);jq('#carousel').hover(
function(){clearInterval(carousel_interval)},
function(){carousel_interval=setInterval(carousel_rotate,8000)})})}

