jQuery.fn.extend({captify:function(c){var b=$.extend({speedOver:"fast",speedOut:"normal",hideDelay:500,animation:"slide",prefix:"",opacity:"0.45",className:"caption-bottom",position:"bottom",spanWidth:"100%"},c);$(this).each(function(){var a=this;$(this).load(function(){if(a.hasInit){return false}a.hasInit=true;var p=false,o=false,s=$("#"+$(this).attr("rel")),r=!s.length?$(this).attr("alt"):s.html();s.remove();s=this.parent&&this.parent.tagName=="a"?this.parent:$(this);var q=s.wrap("<div></div>").parent().css({overflow:"hidden",padding:0,fontSize:0.1}).addClass("caption-wrapper").width($(this).width()).height($(this).height());$.map(["top","right","bottom","left"],function(d){q.css("margin-"+d,$(a).css("margin-"+d));$.map(["style","width","color"],function(e){e="border-"+d+"-"+e;q.css(e,$(a).css(e))})});$(a).css({border:"0 none"});var u=$("div:last",q.append("<div></div>")).addClass(b.className),t=$("div:last",q.append("<div></div>")).addClass(b.className).append(b.prefix).append(r);$("*",q).css({margin:0}).show();r=jQuery.browser.msie?"static":"relative";u.css({zIndex:1,position:r,opacity:b.animation=="fade"?0:b.opacity,width:b.spanWidth});if(b.position=="bottom"){s=parseInt(u.css("border-top-width").replace("px",""))+parseInt(t.css("padding-top").replace("px",""))-1;t.css("paddingTop",s)}t.css({position:r,zIndex:2,background:"none",border:"0 none",opacity:b.animation=="fade"?0:1,width:b.spanWidth});u.width(t.outerWidth());u.height(t.height());r=b.position=="bottom"&&jQuery.browser.msie?-4:0;var n=b.position=="top"?{hide:-$(a).height()-u.outerHeight()-1,show:-$(a).height()}:{hide:0,show:-u.outerHeight()+r};t.css("marginTop",-u.outerHeight());u.css("marginTop",n[b.animation=="fade"||b.animation=="always-on"?"show":"hide"]);var f=function(){if(!p&&!o){var d=b.animation=="fade"?{opacity:0}:{marginTop:n.hide};u.animate(d,b.speedOut);b.animation=="fade"&&t.animate({opacity:0},b.speedOver)}};if(b.animation!="always-on"){$(this).hover(function(){o=true;if(!p){var d=b.animation=="fade"?{opacity:b.opacity}:{marginTop:n.show};u.animate(d,b.speedOver);b.animation=="fade"&&t.animate({opacity:1},b.speedOver/2)}},function(){o=false;window.setTimeout(f,b.hideDelay)});$("div",q).hover(function(){p=true},function(){p=false;window.setTimeout(f,b.hideDelay)})}});if(this.complete||this.naturalWidth>0){$(a).trigger("load")}})}});(function(h){var a=new Array;var b=new Array;var i=new Array;var m=new Array;var l=new Array;var e=new Array;var c=new Array;var d=new Array;var f=new Array;var g=new Array;h.fn.jqFancyTransitions=h.fn.jqfancytransitions=function(n){init=function(o){a[o.id]=h.extend({},h.fn.jqFancyTransitions.defaults,n);i[o.id]=new Array();m[o.id]=new Array();l[o.id]=new Array();e[o.id]=new Array();c[o.id]=0;d[o.id]=0;params=a[o.id];if(params.effect=="zipper"){params.direction="alternate";params.position="alternate"}if(params.effect=="wave"){params.direction="alternate";params.position="top"}if(params.effect=="curtain"){params.direction="alternate";params.position="curtain"}stripWidth=parseInt(params.width/params.strips);gap=params.width-stripWidth*params.strips;stripLeft=0;h.each(h("#"+o.id+" img"),function(p,q){i[o.id][p]=h(q).attr("src");m[o.id][p]=h(q).next().attr("href");l[o.id][p]=h(q).attr("alt")?h(q).attr("alt"):"";h(q).hide()});h("#"+o.id).css({"background-image":"url("+i[o.id][0]+")",width:params.width,height:params.height,position:"relative","background-position":"top left"});h("#"+o.id).append("<div class='ft-title' id='ft-title-"+o.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000; color: #fff; background-color: #000; '>"+l[o.id][0]+"</div>");if(l[o.id][c[o.id]]){h("#ft-title-"+o.id).css("opacity",a[o.id].titleOpacity)}else{h("#ft-title-"+o.id).css("opacity",0)}if(params.navigation){h.navigation(o);h("#ft-buttons-"+o.id).children().first().addClass("ft-button-"+o.id+"-active")}odd=1;for(j=1;j<params.strips+1;j++){if(gap>0){tstripWidth=stripWidth+1;gap--}else{tstripWidth=stripWidth}if(params.links){h("#"+o.id).append("<a href='"+m[o.id][0]+"' class='ft-"+o.id+"' id='ft-"+o.id+j+"' style='width:"+tstripWidth+"px; height:"+params.height+"px; float: left; position: absolute;outline:none;'></a>")}else{h("#"+o.id).append("<div class='ft-"+o.id+"' id='ft-"+o.id+j+"' style='width:"+tstripWidth+"px; height:"+params.height+"px; float: left; position: absolute;'></div>")}h("#ft-"+o.id+j).css({"background-position":-stripLeft+"px top",left:stripLeft});stripLeft+=tstripWidth;if(params.position=="bottom"){h("#ft-"+o.id+j).css("bottom",0)}if(j%2==0&&params.position=="alternate"){h("#ft-"+o.id+j).css("bottom",0)}if(params.direction=="fountain"||params.direction=="fountainAlternate"){e[o.id][j-1]=parseInt(params.strips/2)-(parseInt(j/2)*odd);e[o.id][params.strips-1]=params.strips;odd*=-1}else{e[o.id][j-1]=j}}h(".ft-"+o.id).mouseover(function(){a[o.id].pause=true});h(".ft-"+o.id).mouseout(function(){a[o.id].pause=false});h("#ft-title-"+o.id).mouseover(function(){a[o.id].pause=true});h("#ft-title-"+o.id).mouseout(function(){a[o.id].pause=false});clearInterval(g[o.id]);g[o.id]=setInterval(function(){h.transition(o)},params.delay+params.stripDelay*params.strips)};h.transition=function(o,p){if(a[o.id].pause==true){return}f[o.id]=setInterval(function(){h.strips(e[o.id][d[o.id]],o)},a[o.id].stripDelay);h("#"+o.id).css({"background-image":"url("+i[o.id][c[o.id]]+")"});if(typeof(p)=="undefined"){c[o.id]++}else{if(p=="prev"){c[o.id]--}else{c[o.id]=p}}if(c[o.id]==i[o.id].length){c[o.id]=0}if(c[o.id]==-1){c[o.id]=i[o.id].length-1}if(l[o.id][c[o.id]]!=""){h("#ft-title-"+o.id).animate({opacity:0},a[o.id].titleSpeed,function(){h(this).html(l[o.id][c[o.id]]).animate({opacity:a[o.id].titleOpacity},a[o.id].titleSpeed)})}else{h("#ft-title-"+o.id).animate({opacity:0},a[o.id].titleSpeed)}d[o.id]=0;buttons=h("#ft-buttons-"+o.id).children();buttons.each(function(q){if(q==c[o.id]){h(this).addClass("ft-button-"+o.id+"-active")}else{h(this).removeClass("ft-button-"+o.id+"-active")}});if(a[o.id].direction=="random"){h.fisherYates(e[o.id])}if((a[o.id].direction=="right"&&e[o.id][0]==1)||a[o.id].direction=="alternate"||a[o.id].direction=="fountainAlternate"){e[o.id].reverse()}};h.strips=function(p,o){temp=a[o.id].strips;if(d[o.id]==temp){clearInterval(f[o.id]);return}h(".ft-"+o.id).attr("href",m[o.id][c[o.id]]);if(a[o.id].position=="curtain"){currWidth=h("#ft-"+o.id+p).width();h("#ft-"+o.id+p).css({width:0,opacity:0,"background-image":"url("+i[o.id][c[o.id]]+")"});h("#ft-"+o.id+p).animate({width:currWidth,opacity:1},1000)}else{h("#ft-"+o.id+p).css({height:0,opacity:0,"background-image":"url("+i[o.id][c[o.id]]+")"});h("#ft-"+o.id+p).animate({height:a[o.id].height,opacity:1},1000)}d[o.id]++};h.navigation=function(o){h("#"+o.id).append("<a href='#' id='ft-prev-"+o.id+"' class='ft-prev'>prev</a>");h("#"+o.id).append("<a href='#' id='ft-next-"+o.id+"' class='ft-next'>next</a>");h("#ft-prev-"+o.id).css({position:"absolute",top:params.height/2-15,left:0,"z-index":1001,"line-height":"30px",opacity:0.7}).click(function(p){p.preventDefault();h.transition(o,"prev");clearInterval(g[o.id]);g[o.id]=setInterval(function(){h.transition(o)},params.delay+params.stripDelay*params.strips)});h("#ft-next-"+o.id).css({position:"absolute",top:params.height/2-15,right:0,"z-index":1001,"line-height":"30px",opacity:0.7}).click(function(p){p.preventDefault();h.transition(o);clearInterval(g[o.id]);g[o.id]=setInterval(function(){h.transition(o)},params.delay+params.stripDelay*params.strips)});h("<div id='ft-buttons-"+o.id+"'></div>").insertAfter(h("#"+o.id));h("#ft-buttons-"+o.id).css({"text-align":"right","padding-top":5,width:a[o.id].width});for(k=1;k<i[o.id].length+1;k++){h("#ft-buttons-"+o.id).append("<a href='#' class='ft-button-"+o.id+"'>"+k+"</a>")}h(".ft-button-"+o.id).css({padding:5});h.each(h(".ft-button-"+o.id),function(p,q){h(q).click(function(r){r.preventDefault();h.transition(o,p);clearInterval(g[o.id]);g[o.id]=setInterval(function(){h.transition(o)},params.delay+params.stripDelay*params.strips)})})};h.fisherYates=function(o){var q=o.length;if(q==0){return false}while(--q){var p=Math.floor(Math.random()*(q+1));var s=o[q];var r=o[p];o[q]=r;o[p]=s}};this.each(function(){init(this)})};h.fn.jqFancyTransitions.defaults={width:500,height:332,strips:10,delay:5000,stripDelay:50,titleOpacity:0.7,titleSpeed:1000,position:"alternate",direction:"fountainAlternate",effect:"",navigation:false,links:false}})(jQuery);(function(bu,aT){var bc={version:"3.0.3"};var bi=navigator.userAgent.toLowerCase();if(bi.indexOf("windows")>-1||bi.indexOf("win32")>-1){bc.isWindows=true}else{if(bi.indexOf("macintosh")>-1||bi.indexOf("mac os x")>-1){bc.isMac=true}else{if(bi.indexOf("linux")>-1){bc.isLinux=true}}}bc.isIE=bi.indexOf("msie")>-1;bc.isIE6=bi.indexOf("msie 6")>-1;bc.isIE7=bi.indexOf("msie 7")>-1;bc.isGecko=bi.indexOf("gecko")>-1&&bi.indexOf("safari")==-1;bc.isWebKit=bi.indexOf("applewebkit/")>-1;var bP=/#(.+)$/,bL=/^(light|shadow)box\[(.*?)\]/i,bk=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,aY=/[0-9a-z]+$/i,bT=/(.+\/)shadowbox\.js/i;var bz=false,a3=false,aS={},K=0,bb,bB;bc.current=-1;bc.dimensions=null;bc.ease=function(a){return 1+Math.pow(a-1,3)};bc.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};bc.gallery=[];bc.onReady=bH;bc.path=null;bc.player=null;bc.playerId="sb-player";bc.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:bH,onClose:bH,onFinish:bH,onOpen:bH,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};bc.getCurrent=function(){return bc.current>-1?bc.gallery[bc.current]:null};bc.hasNext=function(){return bc.gallery.length>1&&(bc.current!=bc.gallery.length-1||bc.options.continuous)};bc.isOpen=function(){return bz};bc.isPaused=function(){return bB=="pause"};bc.applyOptions=function(a){aS=bU({},bc.options);bU(bc.options,a)};bc.revertOptions=function(){bU(bc.options,aS)};bc.init=function(c,e){if(a3){return}a3=true;if(bc.skin.options){bU(bc.options,bc.skin.options)}if(c){bU(bc.options,c)}if(!bc.path){var f,d=document.getElementsByTagName("script");for(var a=0,b=d.length;a<b;++a){f=bT.exec(d[a].src);if(f){bc.path=f[1];break}}}if(e){bc.onReady=e}bd()};bc.open=function(b){if(bz){return}var a=bc.makeGallery(b);bc.gallery=a[0];bc.current=a[1];b=bc.getCurrent();if(b==null){return}bc.applyOptions(b.options||{});bn();if(bc.gallery.length){b=bc.getCurrent();if(bc.options.onOpen(b)===false){return}bz=true;bc.skin.onOpen(b,a1)}};bc.close=function(){if(!bz){return}bz=false;if(bc.player){bc.player.remove();bc.player=null}if(typeof bB=="number"){clearTimeout(bB);bB=null}K=0;bA(false);bc.options.onClose(bc.getCurrent());bc.skin.onClose();bc.revertOptions()};bc.play=function(){if(!bc.hasNext()){return}if(!K){K=bc.options.slideshowDelay*1000}if(K){bb=bq();bB=setTimeout(function(){K=bb=0;bc.next()},K);if(bc.skin.onPlay){bc.skin.onPlay()}}};bc.pause=function(){if(typeof bB!="number"){return}K=Math.max(0,K-(bq()-bb));if(K){clearTimeout(bB);bB="pause";if(bc.skin.onPause){bc.skin.onPause()}}};bc.change=function(a){if(!(a in bc.gallery)){if(bc.options.continuous){a=(a<0?bc.gallery.length+a:0);if(!(a in bc.gallery)){return}}else{return}}bc.current=a;if(typeof bB=="number"){clearTimeout(bB);bB=null;K=bb=0}bc.options.onChange(bc.getCurrent());a1(true)};bc.next=function(){bc.change(bc.current+1)};bc.previous=function(){bc.change(bc.current-1)};bc.setDimensions=function(f,a,h,g,b,i,m,p){var n=f,c=a;var o=2*m+b;if(f+o>h){f=h-o}var d=2*m+i;if(a+d>g){a=g-d}var e=(n-f)/n,l=(c-a)/c,q=(e>0||l>0);if(p&&q){if(e>l){a=Math.round((c/n)*f)}else{if(l>e){f=Math.round((n/c)*a)}}}bc.dimensions={height:f+b,width:a+i,innerHeight:f,innerWidth:a,top:Math.floor((h-(f+o))/2+m),left:Math.floor((g-(a+d))/2+m),oversized:q};return bc.dimensions};bc.makeGallery=function(f){var c=[],a=-1;if(typeof f=="string"){f=[f]}if(typeof f.length=="number"){bR(f,function(h,g){if(g.content){c[h]=g}else{c[h]={content:g}}});a=0}else{if(f.tagName){var d=bc.getCache(f);f=d?d:bc.makeObject(f)}if(f.gallery){c=[];var e;for(var b in bc.cache){e=bc.cache[b];if(e.gallery&&e.gallery==f.gallery){if(a==-1&&e.content==f.content){a=c.length}c.push(e)}}if(a==-1){c.unshift(f);a=0}}else{c=[f];a=0}}bR(c,function(h,g){c[h]=bU({},g)});return[c,a]};bc.makeObject=function(a,c){var e={content:a.href,title:a.getAttribute("title")||"",link:a};if(c){c=bU({},c);bR(["player","title","height","width","gallery"],function(g,f){if(typeof c[f]!="undefined"){e[f]=c[f];delete c[f]}});e.options=c}else{e.options={}}if(!e.player){e.player=bc.getPlayer(e.content)}var b=a.getAttribute("rel");if(b){var d=b.match(bL);if(d){e.gallery=escape(d[2])}bR(b.split(";"),function(g,f){d=f.match(bk);if(d){e[d[1]]=d[2]}})}return e};bc.getPlayer=function(c){if(c.indexOf("#")>-1&&c.indexOf(document.location.href)==0){return"inline"}var a=c.indexOf("?");if(a>-1){c=c.substring(0,a)}var d,b=c.match(aY);if(b){d=b[0].toLowerCase()}if(d){if(bc.img&&bc.img.ext.indexOf(d)>-1){return"img"}if(bc.swf&&bc.swf.ext.indexOf(d)>-1){return"swf"}if(bc.flv&&bc.flv.ext.indexOf(d)>-1){return"flv"}if(bc.qt&&bc.qt.ext.indexOf(d)>-1){if(bc.wmp&&bc.wmp.ext.indexOf(d)>-1){return"qtwmp"}else{return"qt"}}if(bc.wmp&&bc.wmp.ext.indexOf(d)>-1){return"wmp"}}return"iframe"};function bn(){var c=bc.errorInfo,b=bc.plugins,m,l,g,d,h,e,i,f;for(var a=0;a<bc.gallery.length;++a){m=bc.gallery[a];l=false;g=null;switch(m.player){case"flv":case"swf":if(!b.fla){g="fla"}break;case"qt":if(!b.qt){g="qt"}break;case"wmp":if(bc.isMac){if(b.qt&&b.f4m){m.player="qt"}else{g="qtf4m"}}else{if(!b.wmp){g="wmp"}}break;case"qtwmp":if(b.qt){m.player="qt"}else{if(b.wmp){m.player="wmp"}else{g="qtwmp"}}break}if(g){if(bc.options.handleUnsupported=="link"){switch(g){case"qtf4m":h="shared";e=[c.qt.url,c.qt.name,c.f4m.url,c.f4m.name];break;case"qtwmp":h="either";e=[c.qt.url,c.qt.name,c.wmp.url,c.wmp.name];break;default:h="single";e=[c[g].url,c[g].name]}m.player="html";m.content='<div class="sb-message">'+aL(bc.lang.errors[h],e)+"</div>"}else{l=true}}else{if(m.player=="inline"){d=bP.exec(m.content);if(d){i=bN(d[1]);if(i){m.content=i.innerHTML}else{l=true}}else{l=true}}else{if(m.player=="swf"||m.player=="flv"){f=(m.options&&m.options.flashVersion)||bc.options.flashVersion;if(bc.flash&&!bc.flash.hasFlashPlayerVersion(f)){m.width=310;m.height=177}}}}if(l){bc.gallery.splice(a,1);if(a<bc.current){--bc.current}else{if(a==bc.current){bc.current=a>0?a-1:a}}--a}}}function bA(a){if(!bc.options.enableKeys){return}(a?bp:bg)(document,"keydown",bD)}function bD(b){if(b.metaKey||b.shiftKey||b.altKey||b.ctrlKey){return}var c=aI(b),a;switch(c){case 81:case 88:case 27:a=bc.close;break;case 37:a=bc.previous;break;case 39:a=bc.next;break;case 32:a=typeof bB=="number"?bc.pause:bc.play;break}if(a){aQ(b);a()}}function a1(e){bA(false);var f=bc.getCurrent();var c=(f.player=="inline"?"html":f.player);if(typeof bc[c]!="function"){throw"unknown player "+c}if(e){bc.player.remove();bc.revertOptions();bc.applyOptions(f.options||{})}bc.player=new bc[c](f,bc.playerId);if(bc.gallery.length>1){var a=bc.gallery[bc.current+1]||bc.gallery[0];if(a.player=="img"){var d=new Image();d.src=a.content}var g=bc.gallery[bc.current-1]||bc.gallery[bc.gallery.length-1];if(g.player=="img"){var b=new Image();b.src=g.content}}bc.skin.onLoad(e,a7)}function a7(){if(!bz){return}if(typeof bc.player.ready!="undefined"){var a=setInterval(function(){if(bz){if(bc.player.ready){clearInterval(a);a=null;bc.skin.onReady(aZ)}}else{clearInterval(a);a=null}},10)}else{bc.skin.onReady(aZ)}}function aZ(){if(!bz){return}bc.player.append(bc.skin.body,bc.dimensions);bc.skin.onShow(bj)}function bj(){if(!bz){return}if(bc.player.onLoad){bc.player.onLoad()}bc.options.onFinish(bc.getCurrent());if(!bc.isPaused()){bc.play()}bA(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(c,b){var a=this.length>>>0;b=b||0;if(b<0){b+=a}for(;b<a;++b){if(b in this&&this[b]===c){return b}}return -1}}function bq(){return(new Date).getTime()}function bU(b,a){for(var c in a){b[c]=a[c]}return b}function bR(a,e){var d=0,c=a.length;for(var b=a[0];d<c&&e.call(b,d,b)!==false;b=a[++d]){}}function aL(b,a){return b.replace(/\{(\w+?)\}/g,function(d,c){return a[c]})}function bH(){}function bN(a){return document.getElementById(a)}function bv(a){a.parentNode.removeChild(a)}var aW=true,aG=true;function a0(){var a=document.body,b=document.createElement("div");aW=typeof b.style.opacity==="string";b.style.position="fixed";b.style.margin=0;b.style.top="20px";a.appendChild(b,a.firstChild);aG=b.offsetTop==20;a.removeChild(b)}bc.getStyle=(function(){var a=/opacity=([^)]*)/,b=document.defaultView&&document.defaultView.getComputedStyle;return function(e,f){var c;if(!aW&&f=="opacity"&&e.currentStyle){c=a.test(e.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return c===""?"1":c}if(b){var d=b(e,null);if(d){c=d[f]}if(f=="opacity"&&c==""){c="1"}}else{c=e.currentStyle[f]}return c}})();bc.appendHTML=function(c,d){if(c.insertAdjacentHTML){c.insertAdjacentHTML("BeforeEnd",d)}else{if(c.lastChild){var b=c.ownerDocument.createRange();b.setStartAfter(c.lastChild);var a=b.createContextualFragment(d);c.appendChild(a)}else{c.innerHTML=d}}};bc.getWindowSize=function(a){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+a]}return document.body["client"+a]};bc.setOpacity=function(b,a){var c=b.style;if(aW){c.opacity=(a==1?"":a)}else{c.zoom=1;if(a==1){if(typeof c.filter=="string"&&(/alpha/i).test(c.filter)){c.filter=c.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{c.filter=(c.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(a*100)+")"}}};bc.clearOpacity=function(a){bc.setOpacity(a,1)};function aP(a){return a.target}function a8(a){return[a.pageX,a.pageY]}function aQ(a){a.preventDefault()}function aI(a){return a.keyCode}function bp(b,c,a){jQuery(b).bind(c,a)}function bg(b,c,a){jQuery(b).unbind(c,a)}jQuery.fn.shadowbox=function(a){return this.each(function(){var c=jQuery(this);var b=jQuery.extend({},a||{},jQuery.metadata?c.metadata():jQuery.meta?c.data():{});var d=this.className||"";b.width=parseInt((d.match(/w:(\d+)/)||[])[1])||b.width;b.height=parseInt((d.match(/h:(\d+)/)||[])[1])||b.height;Shadowbox.setup(c,b)})};var S=false,bF;if(document.addEventListener){bF=function(){document.removeEventListener("DOMContentLoaded",bF,false);bc.load()}}else{if(document.attachEvent){bF=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",bF);bc.load()}}}}function aX(){if(S){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(aX,1);return}bc.load()}function bd(){if(document.readyState==="complete"){return bc.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",bF,false);bu.addEventListener("load",bc.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",bF);bu.attachEvent("onload",bc.load);var a=false;try{a=bu.frameElement===null}catch(b){}if(document.documentElement.doScroll&&a){aX()}}}}bc.load=function(){if(S){return}if(!document.body){return setTimeout(bc.load,13)}S=true;a0();bc.onReady();if(!bc.options.skipSetup){bc.setup()}bc.skin.init()};bc.plugins={};if(navigator.plugins&&navigator.plugins.length){var aH=[];bR(navigator.plugins,function(a,b){aH.push(b.name)});aH=aH.join(",");var bI=aH.indexOf("Flip4Mac")>-1;bc.plugins={fla:aH.indexOf("Shockwave Flash")>-1,qt:aH.indexOf("QuickTime")>-1,wmp:!bI&&aH.indexOf("Windows Media")>-1,f4m:bI}}else{var aO=function(b){var c;try{c=new ActiveXObject(b)}catch(a){}return !!c};bc.plugins={fla:aO("ShockwaveFlash.ShockwaveFlash"),qt:aO("QuickTime.QuickTime"),wmp:aO("wmplayer.ocx"),f4m:false}}var a6=/^(light|shadow)box/i,bE="shadowboxCacheKey",a2=1;bc.cache={};bc.select=function(d){var c=[];if(!d){var b;bR(document.getElementsByTagName("a"),function(g,f){b=f.getAttribute("rel");if(b&&a6.test(b)){c.push(f)}})}else{var e=d.length;if(e){if(typeof d=="string"){if(bc.find){c=bc.find(d)}}else{if(e==2&&typeof d[0]=="string"&&d[1].nodeType){if(bc.find){c=bc.find(d[0],d[1])}}else{for(var a=0;a<e;++a){c[a]=d[a]}}}}else{c.push(d)}}return c};bc.setup=function(a,b){bR(bc.select(a),function(d,c){bc.addCache(c,b)})};bc.teardown=function(a){bR(bc.select(a),function(c,b){bc.removeCache(b)})};bc.addCache=function(b,a){var c=b[bE];if(c==aT){c=a2++;b[bE]=c;bp(b,"click",aJ)}bc.cache[c]=bc.makeObject(b,a)};bc.removeCache=function(a){bg(a,"click",aJ);delete bc.cache[a[bE]];a[bE]=null};bc.getCache=function(b){var a=b[bE];return(a in bc.cache&&bc.cache[a])};bc.clearCache=function(){for(var a in bc.cache){bc.removeCache(bc.cache[a].link)}bc.cache={}};function aJ(a){bc.open(this);if(bc.gallery.length){aQ(a)}}bc.find=(function(){var h=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,g=0,e=Object.prototype.toString,p=false,q=true;[0,0].sort(function(){q=false;return 0});var t=function(w,B,L,J){L=L||[];var H=B=B||document;if(B.nodeType!==1&&B.nodeType!==9){return[]}if(!w||typeof w!=="string"){return L}var v=[],z,F,C,A,x=true,y=s(B),I=w;while((h.exec(""),z=h.exec(I))!==null){I=z[3];v.push(z[1]);if(z[2]){A=z[3];break}}if(v.length>1&&n.exec(w)){if(v.length===2&&m.relative[v[0]]){F=c(v[0]+v[1],B)}else{F=m.relative[v[0]]?[B]:t(v.shift(),B);while(v.length){w=v.shift();if(m.relative[w]){w+=v.shift()}F=c(w,F)}}}else{if(!J&&v.length>1&&B.nodeType===9&&!y&&m.match.ID.test(v[0])&&!m.match.ID.test(v[v.length-1])){var G=t.find(v.shift(),B,y);B=G.expr?t.filter(G.expr,G.set)[0]:G.set[0]}if(B){var G=J?{expr:v.pop(),set:i(J)}:t.find(v.pop(),v.length===1&&(v[0]==="~"||v[0]==="+")&&B.parentNode?B.parentNode:B,y);F=G.expr?t.filter(G.expr,G.set):G.set;if(v.length>0){C=i(F)}else{x=false}while(v.length){var D=v.pop(),E=D;if(!m.relative[D]){D=""}else{E=v.pop()}if(E==null){E=B}m.relative[D](C,E,y)}}else{C=v=[]}}if(!C){C=F}if(!C){throw"Syntax error, unrecognized expression: "+(D||w)}if(e.call(C)==="[object Array]"){if(!x){L.push.apply(L,C)}else{if(B&&B.nodeType===1){for(var u=0;C[u]!=null;u++){if(C[u]&&(C[u]===true||C[u].nodeType===1&&l(B,C[u]))){L.push(F[u])}}}else{for(var u=0;C[u]!=null;u++){if(C[u]&&C[u].nodeType===1){L.push(F[u])}}}}}else{i(C,L)}if(A){t(A,H,L,J);t.uniqueSort(L)}return L};t.uniqueSort=function(u){if(f){p=q;u.sort(f);if(p){for(var v=1;v<u.length;v++){if(u[v]===u[v-1]){u.splice(v--,1)}}}}return u};t.matches=function(v,u){return t(v,null,null,u)};t.find=function(u,B,C){var v,x;if(!u){return[]}for(var y=0,z=m.order.length;y<z;y++){var w=m.order[y],x;if((x=m.leftMatch[w].exec(u))){var A=x[1];x.splice(1,1);if(A.substr(A.length-1)!=="\\"){x[1]=(x[1]||"").replace(/\\/g,"");v=m.find[w](x,B,C);if(v!=null){u=u.replace(m.match[w],"");break}}}}if(!v){v=B.getElementsByTagName("*")}return{set:v,expr:u}};t.filter=function(H,I,E,y){var z=H,C=[],u=I,w,B,v=I&&I[0]&&s(I[0]);while(H&&I.length){for(var J in m.filter){if((w=m.match[J].exec(H))!=null){var A=m.filter[J],D,F;B=false;if(u===C){C=[]}if(m.preFilter[J]){w=m.preFilter[J](w,u,E,C,y,v);if(!w){B=D=true}else{if(w===true){continue}}}if(w){for(var x=0;(F=u[x])!=null;x++){if(F){D=A(F,w,x,u);var G=y^!!D;if(E&&D!=null){if(G){B=true}else{u[x]=false}}else{if(G){C.push(F);B=true}}}}}if(D!==aT){if(!E){u=C}H=H.replace(m.match[J],"");if(!B){return[]}break}}}if(H===z){if(B==null){throw"Syntax error, unrecognized expression: "+H}else{break}}z=H}return u};var m=t.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(u){return u.getAttribute("href")}},relative:{"+":function(u,z){var x=typeof z==="string",v=x&&!/\W/.test(z),B=x&&!v;if(v){z=z.toLowerCase()}for(var y=0,A=u.length,w;y<A;y++){if((w=u[y])){while((w=w.previousSibling)&&w.nodeType!==1){}u[y]=B||w&&w.nodeName.toLowerCase()===z?w||false:w===z}}if(B){t.filter(z,u,true)}},">":function(u,z){var w=typeof z==="string";if(w&&!/\W/.test(z)){z=z.toLowerCase();for(var y=0,A=u.length;y<A;y++){var v=u[y];if(v){var x=v.parentNode;u[y]=x.nodeName.toLowerCase()===z?x:false}}}else{for(var y=0,A=u.length;y<A;y++){var v=u[y];if(v){u[y]=w?v.parentNode:v.parentNode===z}}if(w){t.filter(z,u,true)}}},"":function(w,y,u){var x=g++,z=b;if(typeof y==="string"&&!/\W/.test(y)){var v=y=y.toLowerCase();z=o}z("parentNode",y,x,w,v,u)},"~":function(w,y,u){var x=g++,z=b;if(typeof y==="string"&&!/\W/.test(y)){var v=y=y.toLowerCase();z=o}z("previousSibling",y,x,w,v,u)}},find:{ID:function(w,v,u){if(typeof v.getElementById!=="undefined"&&!u){var x=v.getElementById(w[1]);return x?[x]:[]}},NAME:function(x,u){if(typeof u.getElementsByName!=="undefined"){var y=[],v=u.getElementsByName(x[1]);for(var w=0,z=v.length;w<z;w++){if(v[w].getAttribute("name")===x[1]){y.push(v[w])}}return y.length===0?null:y}},TAG:function(v,u){return u.getElementsByTagName(v[1])}},preFilter:{CLASS:function(x,z,y,A,u,B){x=" "+x[1].replace(/\\/g,"")+" ";if(B){return x}for(var w=0,v;(v=z[w])!=null;w++){if(v){if(u^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(x)>=0)){if(!y){A.push(v)}}else{if(y){z[w]=false}}}}return false},ID:function(u){return u[1].replace(/\\/g,"")},TAG:function(u,v){return u[1].toLowerCase()},CHILD:function(v){if(v[1]==="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(v[2]==="even"&&"2n"||v[2]==="odd"&&"2n+1"||!/\D/.test(v[2])&&"0n+"+v[2]||v[2]);v[2]=(u[1]+(u[2]||1))-0;v[3]=u[3]-0}v[0]=g++;return v},ATTR:function(w,z,y,A,v,u){var x=w[1].replace(/\\/g,"");if(!u&&m.attrMap[x]){w[1]=m.attrMap[x]}if(w[2]==="~="){w[4]=" "+w[4]+" "}return w},PSEUDO:function(v,y,x,z,u){if(v[1]==="not"){if((h.exec(v[3])||"").length>1||/^\w/.test(v[3])){v[3]=t(v[3],null,null,y)}else{var w=t.filter(v[3],y,x,true^u);if(!x){z.push.apply(z,w)}return false}}else{if(m.match.POS.test(v[0])||m.match.CHILD.test(v[0])){return true}}return v},POS:function(u){u.unshift(true);return u}},filters:{enabled:function(u){return u.disabled===false&&u.type!=="hidden"},disabled:function(u){return u.disabled===true},checked:function(u){return u.checked===true},selected:function(u){u.parentNode.selectedIndex;return u.selected===true},parent:function(u){return !!u.firstChild},empty:function(u){return !u.firstChild},has:function(u,v,w){return !!t(w[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){return"text"===u.type},radio:function(u){return"radio"===u.type},checkbox:function(u){return"checkbox"===u.type},file:function(u){return"file"===u.type},password:function(u){return"password"===u.type},submit:function(u){return"submit"===u.type},image:function(u){return"image"===u.type},reset:function(u){return"reset"===u.type},button:function(u){return"button"===u.type||u.nodeName.toLowerCase()==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)}},setFilters:{first:function(u,v){return v===0},last:function(v,w,x,u){return w===u.length-1},even:function(u,v){return v%2===0},odd:function(u,v){return v%2===1},lt:function(u,v,w){return v<w[3]-0},gt:function(u,v,w){return v>w[3]-0},nth:function(u,v,w){return w[3]-0===v},eq:function(u,v,w){return w[3]-0===v}},filter:{PSEUDO:function(u,y,x,B){var z=y[1],w=m.filters[z];if(w){return w(u,x,y,B)}else{if(z==="contains"){return(u.textContent||u.innerText||d([u])||"").indexOf(y[3])>=0}else{if(z==="not"){var v=y[3];for(var x=0,A=v.length;x<A;x++){if(v[x]===u){return false}}return true}else{throw"Syntax error, unrecognized expression: "+z}}}},CHILD:function(B,y){var v=y[1],A=B;switch(v){case"only":case"first":while((A=A.previousSibling)){if(A.nodeType===1){return false}}if(v==="first"){return true}A=B;case"last":while((A=A.nextSibling)){if(A.nodeType===1){return false}}return true;case"nth":var z=y[2],C=y[3];if(z===1&&C===0){return true}var w=y[0],D=B.parentNode;if(D&&(D.sizcache!==w||!B.nodeIndex)){var x=0;for(A=D.firstChild;A;A=A.nextSibling){if(A.nodeType===1){A.nodeIndex=++x}}D.sizcache=w}var u=B.nodeIndex-C;if(z===0){return u===0}else{return(u%z===0&&u/z>=0)}}},ID:function(u,v){return u.nodeType===1&&u.getAttribute("id")===v},TAG:function(u,v){return(v==="*"&&u.nodeType===1)||u.nodeName.toLowerCase()===v},CLASS:function(u,v){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(v)>-1},ATTR:function(v,x){var y=x[1],A=m.attrHandle[y]?m.attrHandle[y](v):v[y]!=null?v[y]:v.getAttribute(y),u=A+"",w=x[2],z=x[4];return A==null?w==="!=":w==="="?u===z:w==="*="?u.indexOf(z)>=0:w==="~="?(" "+u+" ").indexOf(z)>=0:!z?u&&A!==false:w==="!="?u!==z:w==="^="?u.indexOf(z)===0:w==="$="?u.substr(u.length-z.length)===z:w==="|="?u===z||u.substr(0,z.length+1)===z+"-":false},POS:function(v,y,x,u){var z=y[2],w=m.setFilters[z];if(w){return w(v,x,y,u)}}}};var n=m.match.POS;for(var r in m.match){m.match[r]=new RegExp(m.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[r].source)}var i=function(u,v){u=Array.prototype.slice.call(u,0);if(v){v.push.apply(v,u);return v}return u};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(a){i=function(u,v){var x=v||[];if(e.call(u)==="[object Array]"){Array.prototype.push.apply(x,u)}else{if(typeof u.length==="number"){for(var w=0,y=u.length;w<y;w++){x.push(u[w])}}else{for(var w=0;u[w];w++){x.push(u[w])}}}return x}}var f;if(document.documentElement.compareDocumentPosition){f=function(v,w){if(!v.compareDocumentPosition||!w.compareDocumentPosition){if(v==w){p=true}return v.compareDocumentPosition?-1:1}var u=v.compareDocumentPosition(w)&4?-1:v===w?0:1;if(u===0){p=true}return u}}else{if("sourceIndex" in document.documentElement){f=function(v,w){if(!v.sourceIndex||!w.sourceIndex){if(v==w){p=true}return v.sourceIndex?-1:1}var u=v.sourceIndex-w.sourceIndex;if(u===0){p=true}return u}}else{if(document.createRange){f=function(v,x){if(!v.ownerDocument||!x.ownerDocument){if(v==x){p=true}return v.ownerDocument?-1:1}var w=v.ownerDocument.createRange(),y=x.ownerDocument.createRange();w.setStart(v,0);w.setEnd(v,0);y.setStart(x,0);y.setEnd(x,0);var u=w.compareBoundaryPoints(Range.START_TO_END,y);if(u===0){p=true}return u}}}}function d(x){var w="",u;for(var v=0;x[v];v++){u=x[v];if(u.nodeType===3||u.nodeType===4){w+=u.nodeValue}else{if(u.nodeType!==8){w+=d(u.childNodes)}}}return w}(function(){var v=document.createElement("div"),u="script"+(new Date).getTime();v.innerHTML="<a name='"+u+"'/>";var w=document.documentElement;w.insertBefore(v,w.firstChild);if(document.getElementById(u)){m.find.ID=function(z,y,x){if(typeof y.getElementById!=="undefined"&&!x){var A=y.getElementById(z[1]);return A?A.id===z[1]||typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id").nodeValue===z[1]?[A]:aT:[]}};m.filter.ID=function(x,z){var y=typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id");return x.nodeType===1&&y&&y.nodeValue===z}}w.removeChild(v);w=v=null})();(function(){var u=document.createElement("div");u.appendChild(document.createComment(""));if(u.getElementsByTagName("*").length>0){m.find.TAG=function(z,v){var w=v.getElementsByTagName(z[1]);if(z[1]==="*"){var x=[];for(var y=0;w[y];y++){if(w[y].nodeType===1){x.push(w[y])}}w=x}return w}}u.innerHTML="<a href='#'></a>";if(u.firstChild&&typeof u.firstChild.getAttribute!=="undefined"&&u.firstChild.getAttribute("href")!=="#"){m.attrHandle.href=function(v){return v.getAttribute("href",2)}}u=null})();if(document.querySelectorAll){(function(){var w=t,u=document.createElement("div");u.innerHTML="<p class='TEST'></p>";if(u.querySelectorAll&&u.querySelectorAll(".TEST").length===0){return}t=function(x,y,A,z){y=y||document;if(!z&&y.nodeType===9&&!s(y)){try{return i(y.querySelectorAll(x),A)}catch(B){}}return w(x,y,A,z)};for(var v in w){t[v]=w[v]}u=null})()}(function(){var u=document.createElement("div");u.innerHTML="<div class='test e'></div><div class='test'></div>";if(!u.getElementsByClassName||u.getElementsByClassName("e").length===0){return}u.lastChild.className="e";if(u.getElementsByClassName("e").length===1){return}m.order.splice(1,0,"CLASS");m.find.CLASS=function(x,w,v){if(typeof w.getElementsByClassName!=="undefined"&&!v){return w.getElementsByClassName(x[1])}};u=null})();function o(A,v,w,C,u,D){for(var y=0,z=C.length;y<z;y++){var B=C[y];if(B){B=B[A];var x=false;while(B){if(B.sizcache===w){x=C[B.sizset];break}if(B.nodeType===1&&!D){B.sizcache=w;B.sizset=y}if(B.nodeName.toLowerCase()===v){x=B;break}B=B[A]}C[y]=x}}}function b(A,v,w,C,u,D){for(var y=0,z=C.length;y<z;y++){var B=C[y];if(B){B=B[A];var x=false;while(B){if(B.sizcache===w){x=C[B.sizset];break}if(B.nodeType===1){if(!D){B.sizcache=w;B.sizset=y}if(typeof v!=="string"){if(B===v){x=true;break}}else{if(t.filter(v,[B]).length>0){x=B;break}}}B=B[A]}C[y]=x}}}var l=document.compareDocumentPosition?function(u,v){return u.compareDocumentPosition(v)&16}:function(u,v){return u!==v&&(u.contains?u.contains(v):true)};var s=function(v){var u=(v?v.ownerDocument||v:0).documentElement;return u?u.nodeName!=="HTML":false};var c=function(A,B){var x=[],w="",v,y=B.nodeType?[B]:B;while((v=m.match.PSEUDO.exec(A))){w+=v[0];A=A.replace(m.match.PSEUDO,"")}A=m.relative[A]?A+"*":A;for(var u=0,z=y.length;u<z;u++){t(A,y[u],x)}return t.filter(w,x)};return t})();bc.lang={code:"fr",of:"de",loading:"chargement",cancel:"Annuler",next:"Suivant",previous:"Pr??c??dent",play:"Lire",pause:"Pause",close:"Fermer",errors:{single:'Vous devez installer le plugin <a href="{0}">{1}</a> pour afficher ce contenu.',shared:'Vous devez installer les plugins <a href="{0}">{1}</a> et <a href="{2}">{3}</a> pour afficher ce contenu.',either:'Vous devez installer le plugin <a href="{0}">{1}</a> ou <a href="{2}">{3}</a> pour afficher ce contenu.'}};var bt,bw="sb-drag-proxy",bs,aU,bK;function bo(){bs={x:0,y:0,startX:null,startY:null}}function bW(){var a=bc.dimensions;bU(aU.style,{height:a.innerHeight+"px",width:a.innerWidth+"px"})}function be(){bo();var a=["position:absolute","cursor:"+(bc.isGecko?"-moz-grab":"move"),"background-color:"+(bc.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");bc.appendHTML(bc.skin.body,'<div id="'+bw+'" style="'+a+'"></div>');aU=bN(bw);bW();bp(aU,"mousedown",bh)}function bx(){if(aU){bg(aU,"mousedown",bh);bv(aU);aU=null}bK=null}function bh(b){aQ(b);var a=a8(b);bs.startX=a[0];bs.startY=a[1];bK=bN(bc.player.id);bp(document,"mousemove",bm);bp(document,"mouseup",aV);if(bc.isGecko){aU.style.cursor="-moz-grabbing"}}function bm(f){var c=bc.player,e=bc.dimensions,a=a8(f);var b=a[0]-bs.startX;bs.startX+=b;bs.x=Math.max(Math.min(0,bs.x+b),e.innerWidth-c.width);var d=a[1]-bs.startY;bs.startY+=d;bs.y=Math.max(Math.min(0,bs.y+d),e.innerHeight-c.height);bU(bK.style,{left:bs.x+"px",top:bs.y+"px"})}function aV(){bg(document,"mousemove",bm);bg(document,"mouseup",aV);if(bc.isGecko){aU.style.cursor="-moz-grab"}}bc.img=function(c,b){this.obj=c;this.id=b;this.ready=false;var a=this;bt=new Image();bt.onload=function(){a.height=c.height?parseInt(c.height,10):bt.height;a.width=c.width?parseInt(c.width,10):bt.width;a.ready=true;bt.onload=null;bt=null};bt.src=c.content};bc.img.ext=["bmp","gif","jpg","jpeg","png"];bc.img.prototype={append:function(d,e){var c=document.createElement("img");c.id=this.id;c.src=this.obj.content;c.style.position="absolute";var b,a;if(e.oversized&&bc.options.handleOversize=="resize"){b=e.innerHeight;a=e.innerWidth}else{b=this.height;a=this.width}c.setAttribute("height",b);c.setAttribute("width",a);d.appendChild(c)},remove:function(){var a=bN(this.id);if(a){bv(a)}bx();if(bt){bt.onload=null;bt=null}},onLoad:function(){var a=bc.dimensions;if(a.oversized&&bc.options.handleOversize=="drag"){be()}},onWindowResize:function(){var a=bc.dimensions;switch(bc.options.handleOversize){case"resize":var c=bN(this.id);c.height=a.innerHeight;c.width=a.innerWidth;break;case"drag":if(bK){var b=parseInt(bc.getStyle(bK,"top")),d=parseInt(bc.getStyle(bK,"left"));if(b+this.height<a.innerHeight){bK.style.top=a.innerHeight-this.height+"px"}if(d+this.width<a.innerWidth){bK.style.left=a.innerWidth-this.width+"px"}bW()}break}}};var bC=false,a5=[],aN=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],bQ,bM,a4,aR=true;function bf(d,g,m,o,f){var h=(g=="opacity"),n=h?bc.setOpacity:function(q,r){q.style[g]=""+r+"px"};if(o==0||(!h&&!bc.options.animate)||(h&&!bc.options.animateFade)){n(d,m);if(f){f()}return}var l=parseFloat(bc.getStyle(d,g))||0;var i=m-l;if(i==0){if(f){f()}return}o*=1000;var c=bq(),p=bc.ease,a=c+o,b;var e=setInterval(function(){b=bq();if(b>=a){clearInterval(e);e=null;n(d,m);if(f){f()}}else{n(d,l+p((b-c)/o)*i)}},10)}function bV(){bQ.style.height=bc.getWindowSize("Height")+"px";bQ.style.width=bc.getWindowSize("Width")+"px"}function bS(){bQ.style.top=document.documentElement.scrollTop+"px";bQ.style.left=document.documentElement.scrollLeft+"px"}function bl(a){if(a){bR(a5,function(c,b){b[0].style.visibility=b[1]||""})}else{a5=[];bR(bc.options.troubleElements,function(b,c){bR(document.getElementsByTagName(c),function(d,e){a5.push([e,e.style.visibility]);e.style.visibility="hidden"})})}}function aM(b,a){var c=bN("sb-nav-"+b);if(c){c.style.display=a?"":"none"}}function bJ(c,e){var f=bN("sb-loading"),b=bc.getCurrent().player,a=(b=="img"||b=="html");if(c){bc.setOpacity(f,0);f.style.display="block";var d=function(){bc.clearOpacity(f);if(e){e()}};if(a){bf(f,"opacity",1,bc.options.fadeDuration,d)}else{d()}}else{var d=function(){f.style.display="none";bc.clearOpacity(f);if(e){e()}};if(a){bf(f,"opacity",0,bc.options.fadeDuration,d)}else{d()}}}function aK(i){var a=bc.getCurrent();bN("sb-title-inner").innerHTML=a.title||"";var h,n,e,g,m;if(bc.options.displayNav){h=true;var l=bc.gallery.length;if(l>1){if(bc.options.continuous){n=m=true}else{n=(l-1)>bc.current;m=bc.current>0}}if(bc.options.slideshowDelay>0&&bc.hasNext()){g=!bc.isPaused();e=!g}}else{h=n=e=g=m=false}aM("close",h);aM("next",n);aM("play",e);aM("pause",g);aM("previous",m);var f="";if(bc.options.displayCounter&&bc.gallery.length>1){var l=bc.gallery.length;if(bc.options.counterType=="skip"){var b=0,c=l,d=parseInt(bc.options.counterLimit)||0;if(d<l&&d>2){var o=Math.floor(d/2);b=bc.current-o;if(b<0){b+=l}c=bc.current+(d-o);if(c>l){c-=l}}while(b!=c){if(b==l){b=0}f+='<a onclick="Shadowbox.change('+b+');"';if(b==bc.current){f+=' class="sb-counter-current"'}f+=">"+(++b)+"</a>"}}else{f=[bc.current+1,bc.lang.of,l].join(" ")}}bN("sb-counter").innerHTML=f;i()}function a9(a){var c=bN("sb-title-inner"),b=bN("sb-info-inner"),d=0.35;c.style.visibility=b.style.visibility="";if(c.innerHTML!=""){bf(c,"marginTop",0,d)}bf(b,"marginTop",0,d,a)}function br(d,g){var i=bN("sb-title"),f=bN("sb-info"),c=i.offsetHeight,b=f.offsetHeight,a=bN("sb-title-inner"),h=bN("sb-info-inner"),e=(d?0.35:0);bf(a,"marginTop",c,e);bf(h,"marginTop",b*-1,e,function(){a.style.visibility=h.style.visibility="hidden";g()})}function bO(c,a,d,e){var f=bN("sb-wrapper-inner"),b=(d?bc.options.resizeDuration:0);bf(a4,"top",a,b);bf(f,"height",c,b,e)}function by(c,a,d,e){var b=(d?bc.options.resizeDuration:0);bf(a4,"left",a,b);bf(a4,"width",c,b,e)}function bG(g,d){var b=bN("sb-body-inner"),g=parseInt(g),d=parseInt(d),e=a4.offsetHeight-b.offsetHeight,f=a4.offsetWidth-b.offsetWidth,i=bM.offsetHeight,h=bM.offsetWidth,a=parseInt(bc.options.viewportPadding)||20,c=(bc.player&&bc.options.handleOversize!="drag");return bc.setDimensions(g,d,i,h,e,f,a,c)}var ba={};ba.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';ba.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};ba.init=function(){bc.appendHTML(document.body,aL(ba.markup,bc.lang));ba.body=bN("sb-body-inner");bQ=bN("sb-container");bM=bN("sb-overlay");a4=bN("sb-wrapper");if(!aG){bQ.style.position="absolute"}if(!aW){var c,b,d=/url\("(.*\.png)"\)/;bR(aN,function(f,e){c=bN(e);if(c){b=bc.getStyle(c,"backgroundImage").match(d);if(b){c.style.backgroundImage="none";c.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+b[1]+",sizingMethod=scale);"}}})}var a;bp(bu,"resize",function(){if(a){clearTimeout(a);a=null}if(bz){a=setTimeout(ba.onWindowResize,10)}})};ba.onOpen=function(b,a){aR=false;bQ.style.display="block";bV();var c=bG(bc.options.initialHeight,bc.options.initialWidth);bO(c.innerHeight,c.top);by(c.width,c.left);if(bc.options.showOverlay){bM.style.backgroundColor=bc.options.overlayColor;bc.setOpacity(bM,0);if(!bc.options.modal){bp(bM,"click",bc.close)}bC=true}if(!aG){bS();bp(bu,"scroll",bS)}bl();bQ.style.visibility="visible";if(bC){bf(bM,"opacity",bc.options.overlayOpacity,bc.options.fadeDuration,a)}else{a()}};ba.onLoad=function(b,a){bJ(true);while(ba.body.firstChild){bv(ba.body.firstChild)}br(b,function(){if(!bz){return}if(!b){a4.style.visibility="visible"}aK(a)})};ba.onReady=function(a){if(!bz){return}var d=bc.player,c=bG(d.height,d.width);var b=function(){a9(a)};switch(bc.options.animSequence){case"hw":bO(c.innerHeight,c.top,true,function(){by(c.width,c.left,true,b)});break;case"wh":by(c.width,c.left,true,function(){bO(c.innerHeight,c.top,true,b)});break;default:by(c.width,c.left,true);bO(c.innerHeight,c.top,true,b)}};ba.onShow=function(a){bJ(false,a);aR=true};ba.onClose=function(){if(!aG){bg(bu,"scroll",bS)}bg(bM,"click",bc.close);a4.style.visibility="hidden";var a=function(){bQ.style.visibility="hidden";bQ.style.display="none";bl(true)};if(bC){bf(bM,"opacity",0,bc.options.fadeDuration,a)}else{a()}};ba.onPlay=function(){aM("play",false);aM("pause",true)};ba.onPause=function(){aM("pause",false);aM("play",true)};ba.onWindowResize=function(){if(!aR){return}bV();var a=bc.player,b=bG(a.height,a.width);by(b.width,b.left);bO(b.innerHeight,b.top);if(a.onWindowResize){a.onWindowResize()}};bc.skin=ba;bu.Shadowbox=bc})(window);(function(a){a.fn.supersized=function(){a.inAnimation=false;a.paused=false;var b=a.extend(a.fn.supersized.defaults,a.fn.supersized.options);a(window).bind("load",function(){a("#loading").hide();a("#supersize").fadeIn("fast");a("#content").show();if(a("#slideshow .activeslide").length==0){a("#supersize a:first").addClass("activeslide")}if(b.slide_captions==1){a("#slidecaption").html(a("#supersize .activeslide").find("img").attr("title"))}if(b.navigation==0){a("#navigation").hide()}if(b.slideshow==1){if(b.slide_counter==1){a("#slidecounter .slidenumber").html(1);a("#slidecounter .totalslides").html(a("#supersize > *").size())}slideshow_interval=setInterval("nextslide()",b.slide_interval);if(b.navigation==1){a("#navigation a").click(function(){a(this).blur();return false});a("#nextslide").click(function(){if(a.paused){return false}if(a.inAnimation){return false}clearInterval(slideshow_interval);nextslide();slideshow_interval=setInterval(nextslide,b.slide_interval);return false});a("#prevslide").click(function(){if(a.paused){return false}if(a.inAnimation){return false}clearInterval(slideshow_interval);prevslide();slideshow_interval=setInterval(nextslide,b.slide_interval);return false});a("#nextslide img").hover(function(){if(a.paused==true){return false}a(this).attr("src","images/forward.gif")},function(){if(a.paused==true){return false}a(this).attr("src","images/forward_dull.gif")});a("#prevslide img").hover(function(){if(a.paused==true){return false}a(this).attr("src","images/back.gif")},function(){if(a.paused==true){return false}a(this).attr("src","images/back_dull.gif")});a("#pauseplay").click(function(){if(a.inAnimation){return false}var c=(a(this).find("img").attr("src")==="images/play.gif")?"images/pause.gif":"images/play.gif";if(c=="images/pause.gif"){a(this).find("img").attr("src","images/play.gif");a.paused=false;slideshow_interval=setInterval(nextslide,b.slide_interval)}else{a(this).find("img").attr("src","images/pause.gif");clearInterval(slideshow_interval);a.paused=true}a(this).find("img").attr("src",c);return false});a("#pauseplay").mouseover(function(){var c=(a(this).find("img").attr("src")==="images/play_dull.gif");if(c){a(this).find("img").attr("src","images/play.gif")}else{a(this).find("img").attr("src","images/pause.gif")}});a("#pauseplay").mouseout(function(){var c=(a(this).find("img").attr("src")==="images/play.gif");if(c){a(this).find("img").attr("src","images/play_dull.gif")}else{a(this).find("img").attr("src","images/pause_dull.gif")}return false})}}});a(document).ready(function(){a("#supersize").resizenow()});a("#supersize > *").hover(function(){if(b.slideshow==1&&b.pause_hover==1){if(!(a.paused)&&b.navigation==1){a("#pauseplay > img").attr("src","images/pause.gif");clearInterval(slideshow_interval)}}original_title=a(this).find("img").attr("title");if(a.inAnimation){return false}else{a(this).find("img").attr("title","")}},function(){if(b.slideshow==1&&b.pause_hover==1){if(!(a.paused)&&b.navigation==1){a("#pauseplay > img").attr("src","images/pause_dull.gif");slideshow_interval=setInterval(nextslide,b.slide_interval)}}a(this).find("img").attr("title",original_title)});a(window).bind("resize",function(){a("#supersize").resizenow()});a("#supersize").hide();a("#content").hide()};a.fn.resizenow=function(){var b=a.extend(a.fn.supersized.defaults,a.fn.supersized.options);return this.each(function(){var e=b.startheight/b.startwidth;var f=a(this).width();var d=a(this).height();var c=a(window).width();var g=a(window).height();var h;if((g/c)>e){a(this).height(g);a(this).width(g/e);a(this).children().height(g);a(this).children().width(g/e)}else{a(this).width(c);a(this).height(c*e);a(this).children().width(c);a(this).children().height(c*e)}if(b.vertical_center==1){a(this).children().css("left",(c-a(this).width())/2);a(this).children().css("top",(g-a(this).height())/2)}return false})};a.fn.supersized.defaults={startwidth:4,startheight:3,vertical_center:1,slideshow:1,navigation:1,transition:1,pause_hover:0,slide_counter:1,slide_captions:1,slide_interval:5000}})(jQuery);function nextslide(){if($.inAnimation){return false}else{$.inAnimation=true}var c=$.extend($.fn.supersized.defaults,$.fn.supersized.options);var b=$("#supersize .activeslide");b.removeClass("activeslide");if(b.length==0){b=$("#supersize a:last")}var a=b.next().length?b.next():$("#supersize a:first");var e=a.prev().length?a.prev():$("#supersize a:last");if(c.slide_counter==1){var d=$("#slidecounter .slidenumber").html();b.next().length?d++:d=1;$("#slidecounter .slidenumber").html(d)}$(".prevslide").removeClass("prevslide");e.addClass("prevslide");if(c.slide_captions==1){$("#slidecaption").html($(a).find("img").attr("title"))}a.hide().addClass("activeslide");if(c.transition==0){a.show();$.inAnimation=false}if(c.transition==1){a.fadeIn(750,function(){$.inAnimation=false})}if(c.transition==2){a.show("slide",{direction:"up"},"slow",function(){$.inAnimation=false})}if(c.transition==3){a.show("slide",{direction:"right"},"slow",function(){$.inAnimation=false})}if(c.transition==4){a.show("slide",{direction:"down"},"slow",function(){$.inAnimation=false})}if(c.transition==5){a.show("slide",{direction:"left"},"slow",function(){$.inAnimation=false})}$("#supersize").resizenow()}function prevslide(){if($.inAnimation){return false}else{$.inAnimation=true}var c=$.extend($.fn.supersized.defaults,$.fn.supersized.options);var b=$("#supersize .activeslide");b.removeClass("activeslide");if(b.length==0){b=$("#supersize a:first")}var a=b.prev().length?b.prev():$("#supersize a:last");var e=a.next().length?a.next():$("#supersize a:first");if(c.slide_counter==1){var d=$("#slidecounter .slidenumber").html();b.prev().length?d--:d=$("#supersize > *").size();$("#slidecounter .slidenumber").html(d)}$(".prevslide").removeClass("prevslide");e.addClass("prevslide");if(c.slide_captions==1){$("#slidecaption").html($(a).find("img").attr("title"))}a.hide().addClass("activeslide");if(c.transition==0){a.show();$.inAnimation=false}if(c.transition==1){a.fadeIn(750,function(){$.inAnimation=false})}if(c.transition==2){a.show("slide",{direction:"down"},"slow",function(){$.inAnimation=false})}if(c.transition==3){a.show("slide",{direction:"left"},"slow",function(){$.inAnimation=false})}if(c.transition==4){a.show("slide",{direction:"up"},"slow",function(){$.inAnimation=false})}if(c.transition==5){a.show("slide",{direction:"right"},"slow",function(){$.inAnimation=false})}$("#supersize").resizenow()}var disappeardelay=250;var verticaloffset=-150;var enablearrowhead=0;var arrowheadimg=["arrowdown.gif","arrowup.gif"];var arrowheadheight=11;var ie=document.all;var ns6=document.getElementById&&!document.all;verticaloffset=(enablearrowhead)?verticaloffset+arrowheadheight:verticaloffset;function getposOffset(d,c){var b=(c=="left")?d.offsetLeft:d.offsetTop;var a=d.offsetParent;while(a!=null){b=(c=="left")?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(b,a){dropmenuobj.style.left=dropmenuobj.style.top="-500px";if(a.type=="mouseover"){b.visibility="visible"}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(d,b){if(b=="rightedge"){edgeoffsetx=0;var c=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(c-dropmenuobj.x<dropmenuobj.contentmeasure){edgeoffsetx=dropmenuobj.contentmeasure-d.offsetWidth}if(dropmenuobj.x-edgeoffsetx+dropmenuobj.contentmeasure>c){edgeoffsetx=dropmenuobj.x-c+dropmenuobj.contentmeasure}return edgeoffsetx}else{edgeoffsety=0;var a=ie&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var c=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(c-dropmenuobj.y<dropmenuobj.contentmeasure){edgeoffsety=dropmenuobj.contentmeasure+d.offsetHeight+(verticaloffset*2)}return edgeoffsety}}function displayballoontip(b,a){if(window.event){event.cancelBubble=true}else{if(a.stopPropagation){a.stopPropagation()}}if(typeof dropmenuobj!="undefined"){dropmenuobj.style.visibility="hidden"}clearhidemenu();dropmenuobj=document.getElementById(b.getAttribute("rel"));showhide(dropmenuobj.style,a);dropmenuobj.x=getposOffset(b,"left");dropmenuobj.y=getposOffset(b,"top")+verticaloffset;dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(b,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(b,"bottomedge")+b.offsetHeight+"px";if(enablearrowhead){displaytiparrow()}}function displaytiparrow(){tiparrow=document.getElementById("arrowhead");tiparrow.src=(edgeoffsety!=0)?arrowheadimg[0]:arrowheadimg[1];var a=(dropmenuobj.filters&&dropmenuobj.filters[0])?dropmenuobj.filters[0].Strength-1:0;tiparrow.style.left=(edgeoffsetx!=0)?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth-10+"px":parseInt(dropmenuobj.style.left)+5+"px";tiparrow.style.top=(edgeoffsety!=0)?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-a+arrowheadheight+"px":parseInt(dropmenuobj.style.top)-arrowheadheight+"px";tiparrow.style.visibility="visible"}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}function reltoelement(b){var a=b.getAttribute("rel");return(a!=null&&a!=""&&document.getElementById(a)!=null&&document.getElementById(a).className=="balloonstyle")?true:false}function initalizetooltip(){var b=document.getElementsByTagName("a");if(enablearrowhead){tiparrow=document.createElement("img");tiparrow.setAttribute("src",arrowheadimg[0]);tiparrow.setAttribute("id","arrowhead");document.body.appendChild(tiparrow)}for(var a=0;a<b.length;a++){if(reltoelement(b[a])){b[a].onmouseover=function(d){var c=window.event?window.event:d;displayballoontip(this,c)};b[a].onmouseout=delayhidemenu}}}if(window.addEventListener){window.addEventListener("load",initalizetooltip,false)}else{if(window.attachEvent){window.attachEvent("onload",initalizetooltip)}else{if(document.getElementById){window.onload=initalizetooltip}}}function couleur(a){a.style.backgroundColor="#FFFFFF"}function check(){var a="";if(document.formulaire.mail.value!=""){indexAroba=document.formulaire.mail.value.indexOf("@");indexPoint=document.formulaire.mail.value.indexOf(".");if((indexAroba<0)||(indexPoint<0)){document.formulaire.mail.style.borderColor="#F3C200";a+="Le mail est incorrect\n"}}else{document.formulaire.mail.style.borderColor="#F3C200";a+="Veuillez saisir votre mail.\n"}if(document.formulaire.nom.value==""){a+="Veuillez saisir votre nom\n";document.formulaire.nom.style.borderColor="#F3C200"}if(document.formulaire.phone.value==""){a+="Veuillez saisir votre gsm/portable\n";document.formulaire.phone.style.borderColor="#F3C200"}if(document.formulaire.message.value==""){a+="Veuillez saisir votre message\n";document.formulaire.message.style.borderColor="#F3C200"}if(a==""){return(true)}else{alert(a);return(false)}};
