(function(a,f,b){function d(e,c,b){b=f.createElement("div");if(e)b.id=h+e;b.style.cssText=c||"";return a(b)}function c(a,e){return Math.round((/%/.test(a)?(e==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function o(a){return e.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}function i(c){e=a.extend({},a.data(A,k));for(c in e)a.isFunction(e[c])&&c.substring(0,2)!=="on"&&(e[c]=e[c].call(A));e.rel=e.rel||A.rel||"nofollow";e.href=e.href||a(A).attr("href");e.title=e.title||A.title;if(typeof e.href==="string")e.href=a.trim(e.href)}function l(e,c){c&&c.call(A);a.event.trigger(e)}function g(){var a,c=h+"Slideshow_",b="click."+h,o,d;e.slideshow&&s[1]?(o=function(){N.text(e.slideshowStop).unbind(b).bind(H,function(){if(t<s.length-1||e.loop)a=setTimeout(n.next,e.slideshowSpeed)}).bind(B,function(){clearTimeout(a)}).one(b+" "+L,d);v.removeClass(c+"off").addClass(c+"on");a=setTimeout(n.next,e.slideshowSpeed)},d=function(){clearTimeout(a);N.text(e.slideshowStart).unbind([H,B,L,b].join(" ")).one(b,o);v.removeClass(c+"on").addClass(c+"off")},e.slideshowAuto?o():d()):v.removeClass(c+"off "+c+"on")}function p(b){if(!U){A=b;i();s=a(A);t=0;e.rel!=="nofollow"&&(s=a("."+r).filter(function(){return(a.data(this,k).rel||this.rel)===e.rel}),t=s.index(A),t===-1&&(s=s.add(A),t=s.length-1));if(!D){D=O=!0;v.show();if(e.returnFocus)try{A.blur(),a(A).one(E,function(){try{this.focus()}catch(a){}})}catch(o){}I.css({opacity:+e.opacity,cursor:e.overlayClose?"pointer":"auto"}).show();e.w=c(e.initialWidth,"x");e.h=c(e.initialHeight,"y");n.position();P&&z.bind("resize."+V+" scroll."+V,function(){I.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+V);l(j,e.onOpen);X.add(Y).hide();Z.html(e.close).show()}n.load(!0)}}var q={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:0.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},k="colorbox",h="cbox",r=h+"Element",j=h+"_open",B=h+"_load",H=h+"_complete",L=h+"_cleanup",E=h+"_closed",W=h+"_purge",w=a.browser.msie&&!a.support.opacity,P=w&&a.browser.version<7,V=h+"_IE6",I,v,M,C,aa,ba,ca,da,s,z,y,Q,R,Y,ea,N,S,T,Z,X,e,J,K,F,G,A,t,u,D,O,U,fa,ga,n;n=a.fn[k]=a[k]=function(e,c){var b=this,e=e||{};if(!b[0]){if(b.selector)return b;b=a("<a/>");e.open=!0}if(c)e.onComplete=c;b.each(function(){a.data(this,k,a.extend({},a.data(this,k)||q,e));a(this).addClass(r)});(a.isFunction(e.open)&&e.open.call(b)||e.open)&&p(b[0]);return b};n.init=function(){z=a(b);v=d().attr({id:k,"class":w?h+(P?"IE6":"IE"):""});I=d("Overlay",P?"position:absolute":"").hide();M=d("Wrapper");C=d("Content").append(y=d("LoadedContent","width:0; height:0; overflow:hidden"),R=d("LoadingOverlay").add(d("LoadingGraphic")),Y=d("Title"),ea=d("Current"),S=d("Next"),T=d("Previous"),N=d("Slideshow").bind(j,g),Z=d("Close"));M.append(d().append(d("TopLeft"),aa=d("TopCenter"),d("TopRight")),d(!1,"clear:left").append(ba=d("MiddleLeft"),C,ca=d("MiddleRight")),d(!1,"clear:left").append(d("BottomLeft"),da=d("BottomCenter"),d("BottomRight"))).children().children().css({"float":"left"});Q=d(!1,"position:absolute; width:9999px; visibility:hidden; display:none");a("body").prepend(I,v.append(M,Q));C.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover");J=aa.height()+da.height()+C.outerHeight(!0)-C.height();K=ba.width()+ca.width()+C.outerWidth(!0)-C.width();F=y.outerHeight(!0);G=y.outerWidth(!0);v.css({"padding-bottom":J,"padding-right":K}).hide();S.click(function(){n.next()});T.click(function(){n.prev()});Z.click(function(){n.close()});X=S.add(T).add(ea).add(N);C.children().removeClass("hover");I.click(function(){e.overlayClose&&n.close()});a(f).bind("keydown."+h,function(a){var c=a.keyCode;D&&e.escKey&&c===27&&(a.preventDefault(),n.close());D&&e.arrowKey&&s[1]&&(c===37?(a.preventDefault(),T.click()):c===39&&(a.preventDefault(),S.click()))})};n.remove=function(){v.add(I).remove();a("."+r).removeData(k).removeClass(r)};n.position=function(a,b){function o(a){aa[0].style.width=da[0].style.width=C[0].style.width=a.style.width;R[0].style.height=R[1].style.height=C[0].style.height=ba[0].style.height=ca[0].style.height=a.style.height}var d=0,i=0;z.unbind("resize."+h);v.hide();e.fixed&&!P?v.css({position:"fixed"}):(d=z.scrollTop(),i=z.scrollLeft(),v.css({position:"absolute"}));i+=e.right!==!1?Math.max(z.width()-e.w-G-K-c(e.right,"x"),0):e.left!==!1?c(e.left,"x"):Math.round(Math.max(z.width()-e.w-G-K,0)/2);d+=e.bottom!==!1?Math.max(f.documentElement.clientHeight-e.h-F-J-c(e.bottom,"y"),0):e.top!==!1?c(e.top,"y"):Math.round(Math.max(f.documentElement.clientHeight-e.h-F-J,0)/2);v.show();a=v.width()===e.w+G&&v.height()===e.h+F?0:a||0;M[0].style.width=M[0].style.height="9999px";v.dequeue().animate({width:e.w+G,height:e.h+F,top:d,left:i},{duration:a,complete:function(){o(this);O=!1;M[0].style.width=e.w+G+K+"px";M[0].style.height=e.h+F+J+"px";b&&b();setTimeout(function(){z.bind("resize."+h,n.position)},1)},step:function(){o(this)}})};n.resize=function(a){if(D){a=a||{};if(a.width)e.w=c(a.width,"x")-G-K;if(a.innerWidth)e.w=c(a.innerWidth,"x");y.css({width:e.w});if(a.height)e.h=c(a.height,"y")-F-J;if(a.innerHeight)e.h=c(a.innerHeight,"y");if(!a.innerHeight&&!a.height)a=y.wrapInner("<div style='overflow:auto'></div>").children(),e.h=a.height(),a.replaceWith(a.children());y.css({height:e.h});n.position(e.transition==="none"?0:e.speed)}};n.prep=function(c){if(D){var b,i=e.transition==="none"?0:e.speed;y.remove();y=d("LoadedContent").append(c);y.hide().appendTo(Q.show()).css({width:function(){e.w=e.w||y.width();e.w=e.mw&&e.mw<e.w?e.mw:e.w;return e.w}(),overflow:e.scrolling?"auto":"hidden"}).css({height:function(){e.h=e.h||y.height();e.h=e.mh&&e.mh<e.h?e.mh:e.h;return e.h}()}).prependTo(C);Q.hide();a(u).css({"float":"none"});if(P)a("select").not(v.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(L,function(){this.style.visibility="inherit"});b=function(){function c(){w&&v[0].style.removeAttribute("filter")}var b,d,g,f;d=s.length;var j,r;if(D){r=function(){clearTimeout(ga);R.hide();l(H,e.onComplete)};w&&u&&y.fadeIn(100);Y.html(e.title).add(y).show();if(d>1){if(typeof e.current==="string"&&ea.html(e.current.replace("{current}",t+1).replace("{total}",d)).show(),S[e.loop||t<d-1?"show":"hide"]().html(e.next),T[e.loop||t?"show":"hide"]().html(e.previous),b=t?s[t-1]:s[d-1],g=t<d-1?s[t+1]:s[0],e.slideshow&&N.show(),e.preloading){f=a.data(g,k).href||g.href;d=a.data(b,k).href||b.href;f=a.isFunction(f)?f.call(g):f;d=a.isFunction(d)?d.call(b):d;if(o(f))a("<img/>")[0].src=f;if(o(d))a("<img/>")[0].src=d}}else X.hide();if(e.iframe){j=a("<iframe/>").addClass(h+"Iframe")[0];if(e.fastIframe)r();else a(j).one("load",r);j.name=h+ +new Date;j.src=e.href;if(!e.scrolling)j.scrolling="no";if(w)j.frameBorder=0,j.allowTransparency="true";a(j).appendTo(y).one(W,function(){j.src="//about:blank"})}else r();e.transition==="fade"?v.fadeTo(i,1,c):c()}};e.transition==="fade"?v.fadeTo(i,0,function(){n.position(0,b)}):n.position(i,b)}};n.load=function(b){var f,g,j=n.prep;O=!0;u=!1;A=s[t];b||i();l(W);l(B,e.onLoad);e.h=e.height?c(e.height,"y")-F-J:e.innerHeight&&c(e.innerHeight,"y");e.w=e.width?c(e.width,"x")-G-K:e.innerWidth&&c(e.innerWidth,"x");e.mw=e.w;e.mh=e.h;if(e.maxWidth)e.mw=c(e.maxWidth,"x")-G-K,e.mw=e.w&&e.w<e.mw?e.w:e.mw;if(e.maxHeight)e.mh=c(e.maxHeight,"y")-F-J,e.mh=e.h&&e.h<e.mh?e.h:e.mh;f=e.href;ga=setTimeout(function(){R.show()},100);e.inline?(d().hide().insertBefore(a(f)[0]).one(W,function(){a(this).replaceWith(y.children())}),j(a(f))):e.iframe?j(" "):e.html?j(e.html):o(f)?(a(u=new Image).addClass(h+"Photo").error(function(){e.title=!1;j(d("Error").text("This image could not be loaded"))}).load(function(){var a;u.onload=null;e.scalePhotos&&(g=function(){u.height-=u.height*a;u.width-=u.width*a},e.mw&&u.width>e.mw&&(a=(u.width-e.mw)/u.width,g()),e.mh&&u.height>e.mh&&(a=(u.height-e.mh)/u.height,g()));if(e.h)u.style.marginTop=Math.max(e.h-u.height,0)/2+"px";if(s[1]&&(t<s.length-1||e.loop))u.style.cursor="pointer",u.onclick=function(){n.next()};if(w)u.style.msInterpolationMode="bicubic";setTimeout(function(){j(u)},1)}),setTimeout(function(){u.src=f},1)):f&&Q.load(f,e.data,function(e,c,b){j(c==="error"?d("Error").text("Request unsuccessful: "+b.statusText):a(this).contents())})};n.next=function(){if(!O&&s[1]&&(t<s.length-1||e.loop))t=t<s.length-1?t+1:0,n.load()};n.prev=function(){if(!O&&s[1]&&(t||e.loop))t=t?t-1:s.length-1,n.load()};n.close=function(){D&&!U&&(U=!0,D=!1,l(L,e.onCleanup),z.unbind("."+h+" ."+V),I.fadeTo(200,0),v.stop().fadeTo(300,0,function(){v.add(I).css({opacity:1,cursor:"auto"}).hide();l(W);y.remove();setTimeout(function(){U=!1;l(E,e.onClosed)},1)}))};n.element=function(){return a(A)};n.settings=q;fa=function(a){a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),p(this))};a.fn.delegate?a(f).delegate("."+r,"click",fa):a("."+r).live("click",fa);a(n.init)})(jQuery,document,this);(function(a){function f(b,d){return parseInt(a.css(b[0],d))||0}a.fn.jCarouselLite=function(b){b=a.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:200,easing:null,vertical:!1,circular:!0,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},b||{});return this.each(function(){function d(d){if(!c){b.beforeStart&&b.beforeStart.call(this,h.slice(j).slice(0,k));if(b.circular)d<=b.start-k-1?(g.css(o,-((r-k*2)*B)+"px"),j=d==b.start-k-1?r-k*2-1:r-k*2-b.scroll):d>=r-k+1?(g.css(o,-(k*B)+"px"),j=d==r-k+1?k+1:k+b.scroll):j=d;else if(d<0||d>r-k)return;else j=d;c=!0;g.animate(o=="left"?{left:-(j*B)}:{top:-(j*B)},b.speed,b.easing,function(){b.afterEnd&&b.afterEnd.call(this,h.slice(j).slice(0,k));c=!1});b.circular||(a(b.btnPrev+","+b.btnNext).removeClass("disabled"),a(j-b.scroll<0&&b.btnPrev||j+b.scroll>r-k&&b.btnNext||[]).addClass("disabled"))}return!1}var c=!1,o=b.vertical?"top":"left",i=b.vertical?"height":"width",l=a(this),g=a("ul",l),p=a("li",g),q=p.size(),k=b.visible;b.circular&&(g.prepend(p.slice(q-k-1+1).clone()).append(p.slice(0,k).clone()),b.start+=k);var h=a("li",g),r=h.size(),j=b.start;l.css("visibility","visible");h.css({overflow:"hidden","float":b.vertical?"none":"left"});g.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});l.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var B=b.vertical?h[0].offsetHeight+f(h,"marginTop")+f(h,"marginBottom"):h[0].offsetWidth+f(h,"marginLeft")+f(h,"marginRight"),p=B*r,q=B*k;h.css({width:h.width(),height:h.height()});g.css(i,p+"px").css(o,-(j*B));l.css(i,q+"px");b.btnPrev&&a(b.btnPrev).click(function(){return d(j-b.scroll)});b.btnNext&&a(b.btnNext).click(function(){return d(j+b.scroll)});b.btnGo&&a.each(b.btnGo,function(c,o){a(o).click(function(){return d(b.circular?b.visible+c:c)})});b.mouseWheel&&l.mousewheel&&l.mousewheel(function(a,c){return c>0?d(j-b.scroll):d(j+b.scroll)});b.auto&&setInterval(function(){d(j+b.scroll)},b.auto+b.speed)})}})(jQuery);jQuery.cookie=function(a,f,b){if(arguments.length>1&&String(f)!=="[object Object]"){b=jQuery.extend({},b);if(f===null||f===void 0)b.expires=-1;if(typeof b.expires==="number"){var d=b.expires,c=b.expires=new Date;c.setDate(c.getDate()+d)}f=String(f);return document.cookie=[encodeURIComponent(a),"=",b.raw?f:encodeURIComponent(f),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join("")}b=f||{};c=b.raw?function(a){return a}:decodeURIComponent;return(d=RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?c(d[1]):null};(function(a){function f(c,d,f){var g=this,p=c.add(this),q=c.find(f.tabs),k=d.jquery?d:c.children(d),h;q.length||(q=c.children());k.length||(k=c.parent().find(d));k.length||(k=a(d));a.extend(this,{click:function(c,d){var o=q.eq(c);typeof c=="string"&&c.replace("#","")&&(o=q.filter("[href*="+c.replace("#","")+"]"),c=Math.max(q.index(o),0));if(f.rotate){var i=q.length-1;if(c<0)return g.click(i,d);if(c>i)return g.click(0,d)}if(!o.length){if(h>=0)return g;c=f.initialIndex;o=q.eq(c)}if(c===h)return g;d=d||a.Event();d.type="onBeforeClick";p.trigger(d,[c]);if(!d.isDefaultPrevented())return b[f.effect].call(g,c,function(){h=c;d.type="onClick";p.trigger(d,[c])}),q.removeClass(f.current),o.addClass(f.current),g},getConf:function(){return f},getTabs:function(){return q},getPanes:function(){return k},getCurrentPane:function(){return k.eq(h)},getCurrentTab:function(){return q.eq(h)},getIndex:function(){return h},next:function(){return g.click(h+1)},prev:function(){return g.click(h-1)},destroy:function(){q.unbind(f.event).removeClass(f.current);k.find("a[href^=#]").unbind("click.T");return g}});a.each("onBeforeClick,onClick".split(","),function(c,b){a.isFunction(f[b])&&a(g).bind(b,f[b]);g[b]=function(c){c&&a(g).bind(b,c);return g}});if(f.history&&a.fn.history)a.tools.history.init(q),f.event="history";q.each(function(c){a(this).bind(f.event,function(a){g.click(c,a);return a.preventDefault()})});k.find("a[href^=#]").bind("click.T",function(c){g.click(a(this).attr("href"),c)});location.hash&&f.tabs=="a"&&c.find("[href="+location.hash+"]").length?g.click(location.hash):(f.initialIndex===0||f.initialIndex>0)&&g.click(f.initialIndex)}a.tools=a.tools||{version:"@VERSION"};a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,slideUpSpeed:400,slideDownSpeed:400,history:!1},addEffect:function(a,c){b[a]=c}};var b={"default":function(a,c){this.getPanes().hide().eq(a).show();c.call()},fade:function(a,c){var b=this.getConf(),d=b.fadeOutSpeed,f=this.getPanes();d?f.fadeOut(d):f.hide();f.eq(a).fadeIn(b.fadeInSpeed,c)},slide:function(a,c){var b=this.getConf();this.getPanes().slideUp(b.slideUpSpeed);this.getPanes().eq(a).slideDown(b.slideDownSpeed,c)},ajax:function(a,c){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),c)}},d,c;a.tools.tabs.addEffect("horizontal",function(b,f){if(!d){var l=this.getPanes().eq(b),g=this.getCurrentPane();c||(c=this.getPanes().eq(0).width());d=!0;l.show();g.animate({width:0},{step:function(a){l.css("width",c-a)},complete:function(){a(this).hide();f.call();d=!1}});g.length||(f.call(),d=!1)}});a.fn.tabs=function(c,b){var d=this.data("tabs");d&&(d.destroy(),this.removeData("tabs"));a.isFunction(b)&&(b={onBeforeClick:b});b=a.extend({},a.tools.tabs.conf,b);this.each(function(){d=new f(a(this),c,b);a(this).data("tabs",d)});return b.api?d:this}})(jQuery);(function(a){function f(c,b,d){var f=d.relative?c.position().top:c.offset().top,g=d.relative?c.position().left:c.offset().left,p=d.position[0];f-=b.outerHeight()-d.offset[0];g+=c.outerWidth()+d.offset[1];/iPad/i.test(navigator.userAgent)&&(f-=a(window).scrollTop());var q=b.outerHeight()+c.outerHeight();p=="center"&&(f+=q/2);p=="bottom"&&(f+=q);p=d.position[1];c=b.outerWidth()+c.outerWidth();p=="center"&&(g-=c/2);p=="left"&&(g-=c);return{top:f,left:g}}function b(c,b){var i=this,l=c.add(i),g,p=0,q=0,k=c.attr("title"),h=c.attr("data-tooltip"),r=d[b.effect],j,B=c.is(":input"),H=B&&c.is(":checkbox, :radio, select, :button, :submit"),L=c.attr("type"),E=b.events[L]||b.events[B?H?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';E=E.split(/,\s*/);if(E.length!=2)throw"Tooltip: bad events configuration for "+L;c.bind(E[0],function(a){clearTimeout(p);b.predelay?q=setTimeout(function(){i.show(a)},b.predelay):i.show(a)}).bind(E[1],function(a){clearTimeout(q);b.delay?p=setTimeout(function(){i.hide(a)},b.delay):i.hide(a)});k&&b.cancelDefault&&(c.removeAttr("title"),c.data("title",k));a.extend(i,{show:function(d){if(!g&&(h?g=a(h):b.tip?g=a(b.tip).eq(0):k?g=a(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(k):(g=c.next(),g.length||(g=c.parent().next())),!g.length))throw"Cannot find tooltip for "+c;if(i.isShown())return i;g.stop(!0,!0);var w=f(c,g,b);b.tip&&g.html(c.data("title"));d=a.Event();d.type="onBeforeShow";l.trigger(d,[w]);if(d.isDefaultPrevented())return i;w=f(c,g,b);g.css({position:"absolute",top:w.top,left:w.left});j=!0;r[0].call(i,function(){d.type="onShow";j="full";l.trigger(d)});w=b.events.tooltip.split(/,\s*/);g.data("__set")||(g.unbind(w[0]).bind(w[0],function(){clearTimeout(p);clearTimeout(q)}),w[1]&&!c.is("input:not(:checkbox, :radio), textarea")&&g.unbind(w[1]).bind(w[1],function(a){a.relatedTarget!=c[0]&&c.trigger(E[1].split(" ")[0])}),b.tip||g.data("__set",!0));return i},hide:function(c){if(!g||!i.isShown())return i;c=a.Event();c.type="onBeforeHide";l.trigger(c);if(!c.isDefaultPrevented())return j=!1,d[b.effect][1].call(i,function(){c.type="onHide";l.trigger(c)}),i},isShown:function(a){return a?j=="full":j},getConf:function(){return b},getTip:function(){return g},getTrigger:function(){return c}});a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(c,d){a.isFunction(b[d])&&a(i).bind(d,b[d]);i[d]=function(c){c&&a(i).bind(d,c);return i}})}a.tools=a.tools||{version:"@VERSION"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,fadeIE:!1,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,f){d[a]=[b,f]}};var d={toggle:[function(a){var b=this.getConf(),d=this.getTip(),b=b.opacity;b<1&&d.css({opacity:b});d.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(b){var d=this.getConf();!a.browser.msie||d.fadeIE?this.getTip().fadeTo(d.fadeInSpeed,d.opacity,b):(this.getTip().show(),b())},function(b){var d=this.getConf();!a.browser.msie||d.fadeIE?this.getTip().fadeOut(d.fadeOutSpeed,b):(this.getTip().hide(),b())}]};a.fn.tooltip=function(c){var d=this.data("tooltip");if(d)return d;c=a.extend(!0,{},a.tools.tooltip.conf,c);if(typeof c.position=="string")c.position=c.position.split(/,?\s/);this.each(function(){d=new b(a(this),c);a(this).data("tooltip",d)});return c.api?d:this}})(jQuery);$.fn.g11=function(a){function f(a,d,c){var f=a.width,i=a.height;if(i<=c&&f<=d)var l=i,g=f,c=Math.floor((c-l)/2),d=Math.floor((d-g)/2);else i>c||(d-f)/d>(d-i)/d?(l=c,g=Math.round(c*(f/i)),c=0,d=Math.floor((d-g)/2)):f>d||(d-f)/d<(d-i)/d?(g=d,l=Math.round(d*(i/f)),c=Math.floor((c-l)/2),d=0):(l=i(),g=f(),c=Math.floor((c-l)/2),d=Math.floor((d-g)/2));$(a).css({position:"absolute",height:l+"px",width:g+"px",left:d+"px",top:c+"px"})}a=$.extend({opacity:"0.7"},a);return this.each(function(){var b=$(this),d=parseInt($(b).attr("data-id")),c=$(".i",b),o=$(c).width(),i=$(c).height(),l=$("img",c).eq(0);l.get(0).complete?f(l.get(0),o,i):l.load(function(){f(l.get(0),o,i)});var g=$("ul img",b);if($(g).length&&($(g).bind("click",function(){var d=$(this),g=$("div.current",b),h=$("div."+$(this).attr("class"),c),l=$("a",h),j=$(l).attr("href"),p=$(l).attr("title");$(".t",g).slideUp();if(l.html()==""){var H=new Image;$(H).load(function(){$(this).hide();$(l).append(this);f(H,o,i);$('<div class="t hide">'+p+"</div>").css({opacity:a.opacity}).appendTo(l);$(d).click()}).attr({src:j,title:p})}else $("img",g).fadeOut("normal"),$(g).removeClass("current"),h.addClass("current"),$("img",h).fadeIn("normal",function(){p!=""&&$(".t",h).html(p).slideDown()});return!1}),g=$(b).find(".slider"),$(g).length)){var p=parseInt($(g).attr("data-nb"));$(g).jCarouselLite({btnNext:"#slin"+d,btnPrev:"#slip"+d,visible:p,circular:!1})}$("a[rel='"+$(".current a",b).eq(0).attr("rel")+"']",b).colorbox({opacity:"0.6"})})};function noacc(a){a=a.toLowerCase();a=a.replace(/[ ']/gi,"-");a=a.replace(/[\u00e2\u00e4\u00e0]/gi,"a");a=a.replace(/[\u00ea\u00eb\u00e8\u00e9]/gi,"e");a=a.replace(/[\u00ee\u00ef]/gi,"i");a=a.replace(/[\u00f4\u00f6]/gi,"o");a=a.replace(/[\u00fb\u00fc\u00f9]/gi,"u");a=a.replace(/[\u00e7]/gi,"c");a=a.replace(/[\u0153]/gi,"oe");a=a.replace(/[&]/gi,"-et-");a=a.replace(/[^a-z0-9\-]/gi,"");a=a.replace(/[-]{2,}/gi,"-");a=a.replace(/^[-]/gi,"");return a=a.replace(/[-]$/gi,"")}function divgmapCB(){$(".divgmap").each(function(){var a=parseInt($(this).attr("data-zoom"));!a>0&&(a=13);var f=new google.maps.LatLng($(this).attr("data-lat"),$(this).attr("data-lon")),a={zoom:a,center:f,mapTypeControl:!0,scrollwheel:!1,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU},navigationControl:!0,navigationControlOptions:{style:google.maps.NavigationControlStyle.DEFAULT},scaleControl:!0,mapTypeId:google.maps.MapTypeId.ROADMAP},a=new google.maps.Map(document.getElementById($(this).attr("id")),a);new google.maps.Marker({map:a,position:f})})}var timermnu,cur_mnu=0;function afsb(a,f){return{container:a,number:f,lines:3,linkTarget:"_blank",width:"auto",fontFamily:"arial",fontSizeTitle:"12px",fontSizeDescription:"13px",fontSizeDomainLink:"11px",colorTitleLink:"#a82314",colorText:"#000",colorDomainLink:"#a82314"}}function Imprimer(){window.print&&window.print()}function pop(a,f,b){flyout=window.open(a,"ishow","resizable=yes,status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=yes,width="+f+",height="+b)}function get_radio_value(a){for(var f=0;f<a.length;f++)if(a[f].checked)return a[f].value;return!1}function add_opt(a,f,b,d){var c=document.createElement("option");c.value=f;c.innerHTML=b;if(d)c.selected=!0;a.appendChild(c)}function clear_select(a){a=document.getElementById(a);for(m=a.options.length-1;m>=0;m--)a.options[m]=null;a.style.display="none"}function conf2go(a,f){f===void 0&&(f="Confirmer");if(confirm(f))window.location=a}function no_b(a){window.location=a.substr(1).replace(/^:/,"http://").replace("@","/")}function nob(){for(var a="",f=0;f<arguments.length;f++)a+=arguments[f];window.location.href=a;return!1}function aunik(a){a.sort();for(var f=1;f<a.length;)a[f-1]==a[f]?a.splice(f,1):f++;return a}function testmail(a){var f=a.lastIndexOf("@");if(f<1)return!1;if(f==a.length-1)return!1;if(f>64)return!1;if(a.length-f>255)return!1;var b=a.lastIndexOf(".");return b>f+1&&b<a.length-1?!0:a.charAt(f+1)=="["&&a.charAt(a.length-1)=="]"?!0:!1}function ichk(a,f,b){f!=""&&ichkloop(f.split(","),a==1?"disabled":"",!a);b!=""&&ichkloop(b.split(","),a==1?"":"disabled",a)}function ichkloop(a,f,b){for(x=0;x<a.length;x++){var d=document.getElementById(a[x]);if(d.tagName=="INPUT")d.disabled=f,d.style.background=f==""?"#fff":"#ababab";else if(d.tagName=="DIV")d.style.display=b?"block":"none";else if(d.tagName=="SPAN")d.style.display=b?"inline":"none"}}$(function(){$(".g11").g11();$(document).delegate("a.ovl","click",function(a){a.preventDefault();a=$(this).attr("href");a.indexOf("http")===0?$.colorbox({href:a,iframe:!0,fastIframe:!1,innerWidth:425,innerHeight:344}):$.colorbox({href:a+(a.indexOf("?")==-1?"?":"&")+"js=1&loc="+escape(window.location)})});$(".divgmap").length>0&&$.getScript("http://maps.google.com/maps/api/js?sensor=false&callback=divgmapCB");$("#hnav > li").bind("mouseleave",function(){clearTimeout(timermnu)}).bind("mouseenter",function(){clearTimeout(timermnu);cur_mnu=$(this).attr("id");timermnu=setTimeout(function(){clearTimeout(timermnu);$("ul.smnu").css("display","none");$("#"+cur_mnu).children("ul").css("display","block");$("#poles").unbind("mouseleave");$("#poles").bind("mouseleave",function(){timermnu=setTimeout(function(){clearTimeout(timermnu);$("#poles").unbind();$("ul.smnu").css("display","none");$("li.sel").children("ul").css("display","block")},2E3)})},100)});$("ul.css-tabs").tabs("div.css-panes > div",{onClick:function(){}});$("input.ichk").each(function(){ichk(this.checked,$(this).attr("data-off"),$(this).attr("data-on"))}).bind("click",function(){ichk(this.checked,$(this).attr("data-off"),$(this).attr("data-on"))});$("input.ttip").bind("focus",function(){var a=$(this).attr("rel");if($(this).hasClass("open"))$(this).removeClass("open"),$("#"+a).hide();else{$(this).addClass("open");$("#"+a).hasClass("close")&&$("#"+a).removeClass("close").prepend("<a onclick=\"$('.ttip[rel="+a+"]').click()\" style='float:right;'>X</a>");var f=$(this).offset();$("#"+a).css({top:f.top+"px",left:f.left+$(this).width()+3+"px"}).show()}}).blur(function(){$(this).removeClass("open");$("#"+$(this).attr("rel")+"").hide()})});
