
var __dEcOdE=function(a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d["$"+e(c)]=k[c]||e(c);k=[function(e){r=d["$"+e];return r!=undefined?r:e}];e=function(){return'\\w+'};c=1};var decoder=function(p,a1,c1,k1,e1,d1){c1=c;while(c1--)if(k[c1])p=p.replace(new RegExp("\\b"+e(c1)+"\\b","g"),k[c1]);return p};return decoder}(62, 300, '||||||||function||||||||||||||||||||||return|this|var||if|length||jQuery|position|node|extend|addClass|left|version|false|replace|removeClass|window|isDefaultPrevented|typeof|offset|value|null|document|top|getConf|width|flashembed|find|class_name|bugRiddenCrashPronePieceOfJunk|expressInstall||data|ShockwaveFlash|LSHighlight|navigator|setTimeout||scrollLeft|livesearch|true|height|conf|case|tools|scrollTop|innerHTML|SortNodeWrapper|each|search|indexOf|hasOwnProperty|getNaviButtons|scrollable|location|jq|interval|hide|event|attr|css|slideshow|slideFade|name|autopause|trigger|history|expires|animate|slideOffset|isSupported|id|func|autoplay|asString|absolute|zIndex|string|pause|object|mousewheel|getTip|click|classNames|backgroundImage|autoscroll|search_delayed|opacity|next|ignore_missing|href|getElementById|DOMMouseScroll|undefined|old_class|direction|slideOutSpeed||onBeforePause|disabledClass||clearInterval|ActiveXObject|start|wrapperclass|toString|src|slideInSpeed|play|onFail|onBeforeShow|onBeforePlay|naviItem|navi|idPrefix|hide_delayed|for|else|cmp_func|cachebusting|wrappertype|toggleClass|setInterval|fadeInSpeed|cloned_node|attachEvent|activeClass|GetVariable|tooltip|parents|new|getTabs|getRoot|getHTML|dynamic|browser|add|visibility|slice|right|param|items|getVersion|getTrigger|getOverlay|formulaire|fixed|fetch_func|date|break|userAgent|switch|substring|submit|parent|outernode|new_class|nameEQ|mousemove|innernode|filter|clickable||||bottom|addEffect|text|show|qu|prev|li|hasClass|getPanes|getItems|elem|call|bind|appendTo|Math|LSShadow|LSResult|wheel|split|nodes|delta|catch|api|tagName|srcNode|overlay|onPause|indexed|handler|fn|dstNode|content|clientY|clientX|w3c|type|random|path|onPlay|number|latest|img|div|days|cookie|bounce|_1|_0|speed|round|re|pageY||pageX|input|index|in|hover|flash|first|array|Flash|Event|try|_12|_11|up|tabs|stop|sort|push|none|join|http|here|hash|www|ret|get|eq|ca|_2|_16|_15|_14|_13|_10|400|3E3|200|100|le|is|h3|h2|du|de|_9|_8|_7|_6|_5|_4|_3'.split('|'), 0, {});

/* 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 -
 */

/* - jquery-integration.js - */
// http://www.clicphoto.ch/portal_javascripts/jquery-integration.js?original=1
var jq=jQuery;if(typeof cssQuery==='undefined'){var cssQuery=function(s,f){return jQuery.makeArray(jQuery(s,f))}}


/* - ++resource++plone.app.jquerytools.js - */
/*
 
 jQuery Tools v1.2.5 Overlay - Overlay base. Extend it.

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/overlay/

 Since: March 2008
 Date: 2010-12-27 15:01 
*/
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"v1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);

/*
 
 jQuery Tools v1.2.5 Scrollable - New wave UI design

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/scrollable.html

 Since: March 2008
 Date: 2010-12-27 15:01 
*/
(function(e){function p(f,c){var b=e(c);return b.length<2?b:f.parent().find(c)}function u(f,c){var b=this,n=f.add(b),g=f.children(),l=0,j=c.vertical;k||(k=b);if(g.length>1)g=e(c.items,f);e.extend(b,{getConf:function(){return c},getIndex:function(){return l},getSize:function(){return b.getItems().size()},getNaviButtons:function(){return o.add(q)},getRoot:function(){return f},getItemWrap:function(){return g},getItems:function(){return g.children(c.item).not("."+c.clonedClass)},move:function(a,d){return b.seekTo(l+
a,d)},next:function(a){return b.move(1,a)},prev:function(a){return b.move(-1,a)},begin:function(a){return b.seekTo(0,a)},end:function(a){return b.seekTo(b.getSize()-1,a)},focus:function(){return k=b},addItem:function(a){a=e(a);if(c.circular){g.children("."+c.clonedClass+":last").before(a);g.children("."+c.clonedClass+":first").replaceWith(a.clone().addClass(c.clonedClass))}else g.append(a);n.trigger("onAddItem",[a]);return b},seekTo:function(a,d,h){a.jquery||(a*=1);if(c.circular&&a===0&&l==-1&&d!==
0)return b;if(!c.circular&&a<0||a>b.getSize()||a<-1)return b;var i=a;if(a.jquery)a=b.getItems().index(a);else i=b.getItems().eq(a);var r=e.Event("onBeforeSeek");if(!h){n.trigger(r,[a,d]);if(r.isDefaultPrevented()||!i.length)return b}i=j?{top:-i.position().top}:{left:-i.position().left};l=a;k=b;if(d===undefined)d=c.speed;g.animate(i,d,c.easing,h||function(){n.trigger("onSeek",[a])});return b}});e.each(["onBeforeSeek","onSeek","onAddItem"],function(a,d){e.isFunction(c[d])&&e(b).bind(d,c[d]);b[d]=function(h){h&&
e(b).bind(d,h);return b}});if(c.circular){var s=b.getItems().slice(-1).clone().prependTo(g),t=b.getItems().eq(1).clone().appendTo(g);s.add(t).addClass(c.clonedClass);b.onBeforeSeek(function(a,d,h){if(!a.isDefaultPrevented())if(d==-1){b.seekTo(s,h,function(){b.end(0)});return a.preventDefault()}else d==b.getSize()&&b.seekTo(t,h,function(){b.begin(0)})});b.seekTo(0,0,function(){})}var o=p(f,c.prev).click(function(){b.prev()}),q=p(f,c.next).click(function(){b.next()});if(!c.circular&&b.getSize()>1){b.onBeforeSeek(function(a,
d){setTimeout(function(){if(!a.isDefaultPrevented()){o.toggleClass(c.disabledClass,d<=0);q.toggleClass(c.disabledClass,d>=b.getSize()-1)}},1)});c.initialIndex||o.addClass(c.disabledClass)}c.mousewheel&&e.fn.mousewheel&&f.mousewheel(function(a,d){if(c.mousewheel){b.move(d<0?1:-1,c.wheelSpeed||50);return false}});if(c.touch){var m={};g[0].ontouchstart=function(a){a=a.touches[0];m.x=a.clientX;m.y=a.clientY};g[0].ontouchmove=function(a){if(a.touches.length==1&&!g.is(":animated")){var d=a.touches[0],h=
m.x-d.clientX;d=m.y-d.clientY;b[j&&d>0||!j&&h>0?"next":"prev"]();a.preventDefault()}}}c.keyboard&&e(document).bind("keydown.scrollable",function(a){if(!(!c.keyboard||a.altKey||a.ctrlKey||e(a.target).is(":input")))if(!(c.keyboard!="static"&&k!=b)){var d=a.keyCode;if(j&&(d==38||d==40)){b.move(d==38?-1:1);return a.preventDefault()}if(!j&&(d==37||d==39)){b.move(d==37?-1:1);return a.preventDefault()}}});c.initialIndex&&b.seekTo(c.initialIndex,0,function(){})}e.tools=e.tools||{version:"v1.2.5"};e.tools.scrollable=
{conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var k;e.fn.scrollable=function(f){var c=this.data("scrollable");if(c)return c;f=e.extend({},e.tools.scrollable.conf,f);this.each(function(){c=new u(e(this),f);e(this).data("scrollable",c)});return f.api?c:this}})(jQuery);

/*
 
 jQuery Tools v1.2.5 Tabs- The basics of UI design.

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/tabs/

 Since: November 2008
 Date: 2010-12-27 15:01 
*/
(function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e;
g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current);
i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs=="a"&&d.find("[href="+location.hash+"]").length)e.click(location.hash);
else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"v1.2.5"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d,
b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b=
{onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery);

/*
 
 jQuery Tools v1.2.5 / Expose - Dim the lights

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/toolbox/expose.html

 Since: Mar 2010
 Date: 2010-12-27 15:01 
*/
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"v1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

/*
 
 jQuery Tools v1.2.5 History "Back button for AJAX apps"

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/toolbox/history.html

 Since: Mar 2010
 Date: 2010-12-27 15:01 
*/
(function(b){function h(c){if(c){var a=d.contentWindow.document;a.open().close();a.location.hash=c}}var g,d,f,i;b.tools=b.tools||{version:"v1.2.5"};b.tools.history={init:function(c){if(!i){if(b.browser.msie&&b.browser.version<"8"){if(!d){d=b("<iframe/>").attr("src","javascript:false;").hide().get(0);b("body").append(d);setInterval(function(){var a=d.contentWindow.document;a=a.location.hash;g!==a&&b.event.trigger("hash",a)},100);h(location.hash||"#")}}else setInterval(function(){var a=location.hash;
a!==g&&b.event.trigger("hash",a)},100);f=!f?c:f.add(c);c.click(function(a){var e=b(this).attr("href");d&&h(e);if(e.slice(0,1)!="#"){location.href="#"+e;return a.preventDefault()}});i=true}}};b(window).bind("hash",function(c,a){a?f.filter(function(){var e=b(this).attr("href");return e==a||e==a.replace("#","")}).trigger("history",[a]):f.eq(0).trigger("history",[a]);g=a});b.fn.history=function(c){b.tools.history.init(this);return this.bind("history",c)}})(jQuery);

/*
 
 jQuery Tools v1.2.5 Tooltip - UI essentials

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/tooltip/

 Since: November 2008
 Date: 2010-12-27 15:01 
*/
(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,d=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];d+=a.outerWidth()+c.offset[1];if(/iPad/i.test(navigator.userAgent))h-=f(window).scrollTop();var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")d-=a/2;if(i=="left")d-=a;return{top:h,left:d}}function u(a,b){var c=this,h=a.add(c),d,i=0,j=
0,m=a.attr("title"),q=a.attr("data-tooltip"),r=o[b.effect],l,s=a.is(":input"),v=s&&a.is(":checkbox, :radio, select, :button, :submit"),t=a.attr("type"),k=b.events[t]||b.events[s?v?"widget":"input":"def"];if(!r)throw'Nonexistent effect "'+b.effect+'"';k=k.split(/,\s*/);if(k.length!=2)throw"Tooltip: bad events configuration for "+t;a.bind(k[0],function(e){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(e)},b.predelay);else c.show(e)}).bind(k[1],function(e){clearTimeout(j);if(b.delay)i=
setTimeout(function(){c.hide(e)},b.delay);else c.hide(e)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(e){if(!d){if(q)d=f(q);else if(b.tip)d=f(b.tip).eq(0);else if(m)d=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else{d=a.next();d.length||(d=a.parent().next())}if(!d.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;d.stop(true,true);var g=p(a,d,b);b.tip&&d.html(a.data("title"));e=e||f.Event();e.type="onBeforeShow";
h.trigger(e,[g]);if(e.isDefaultPrevented())return c;g=p(a,d,b);d.css({position:"absolute",top:g.top,left:g.left});l=true;r[0].call(c,function(){e.type="onShow";l="full";h.trigger(e)});g=b.events.tooltip.split(/,\s*/);if(!d.data("__set")){d.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&d.bind(g[1],function(n){n.relatedTarget!=a[0]&&a.trigger(k[1].split(" ")[0])});d.data("__set",true)}return c},hide:function(e){if(!d||!c.isShown())return c;
e=e||f.Event();e.type="onBeforeHide";h.trigger(e);if(!e.isDefaultPrevented()){l=false;o[b.effect][1].call(c,function(){e.type="onHide";h.trigger(e)});return c}},isShown:function(e){return e?l=="full":l},getConf:function(){return b},getTip:function(){return d},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(e,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(n){n&&f(c).bind(g,n);return c}})}f.tools=f.tools||{version:"v1.2.5"};f.tools.tooltip=
{conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){o[a]=[b,c]}};var o={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();
a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new u(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);



/* - ++resource++plone.app.jquerytools.plugins.js - */
// http://www.clicphoto.ch/portal_javascripts/++resource++plone.app.jquerytools.plugins.js?original=1
eval(__dEcOdE('(8(h){8 k(d){w e=d.O();u{S:e.S+d.1a()/2,G:e.G+d.U()/2}}w l=h.1d.3z,f=h(L);h.E(l.1b,{2a:{S:Q,G:Q},2u:"fast",1J:9999});8 o(d,e){w a=v.2P(),c=v.T(),g=v.2O(),p=v,m=a.outerWidth({margin:19}),b=a.11("3P"),n=c.2R?"2R":"1I";y(!b){b=a.1t("1R");y(!b)throw"background-image CSS property not set 2n 3z";b=b.2J(b.1j("(")+1,b.1j(")")).J(/\\"/g,"");a.1t("1R","4j");b=h(\'<3P 2d="\'+b+\'"/>\');b.1t({border:0,display:"4j"}).U(m);h("body").append(b);a.11("3P",b)}w i=c.2a.S||3o.3X(f.1a()/2),j=c.2a.G||3o.3X(f.U()/2);y(g){g=k(g);i=g.S;j=g.G}y(c.2R){i-=f.1e();j-=f.17()}2o{d.S+=f.1e();d.G+=f.17()}b.1t({C:"1I",S:i,G:j,U:0,1J:c.1J}).3d();d.C=n;a.1t(d);b.1B({S:a.1t("S"),G:a.1t("G"),U:m},c.3W,8(){a.1t("1J",c.1J+1).fadeIn(c.2u,8(){p.isOpened()&&!h(v).43(a)?e.3l():a.1q()})}).1t("C",n)}8 q(d){w e=v.2P().1q(),a=v.T(),c=v.2O();e=e.11("3P");w g={S:a.2a.S,G:a.2a.G,U:0};c&&h.E(g,k(c));a.2R&&e.1t({C:"1I"}).1B({S:"+="+f.1e(),G:"+="+f.17()},0);e.1B(g,a.closeSpeed,d)}l.3b("apple",o,q)})(B);(8(b){w f=b.1d.1m;f.1S={1b:{1G:19,1p:4A,1x:19}};b.3D.1S=8(c){y(N c=="3N")c={1p:c};w d=b.E({},f.1S.1b,c),g;v.1h(8(){w a=b(v).11("1m");y(a)g=a;w e,h=19;a.2f=8(){y(!e){h=I;e=2t(8(){a.1V()},d.1p)}};a.1L=8(){e=28(e)};a.4g=8(){a.1L();h=19};d.1x&&a.2D().2H(a.1l()).45(a.1L,a.2f);d.1G&&a.2f()});u d.3w?g:v}})(B);(8(d){8 p(b,g){w h=d(g);u h.z<2?h:b.2Z().W(g)}w m=d.1d.1m;m.14={1b:{2k:".2k",2j:Q,2x:"active",3B:I,2l:Q,1z:I}};d.3D.14=8(b){y(N b=="1K")b={2k:b};b=d.E({},m.14.1b,b);w g;v.1h(8(){8 h(a,c,i){e.seekTo(c);y(j){y(1n.4n)1n.4n=a.1s("1X").J("#","")}2o u i.preventDefault()}8 f(){u k.W(b.2j||"> *")}8 n(a){w c=d("<"+(b.2j||"a")+"/>").1P(8(i){h(d(v),a,i)}).1s("1X","#"+a);a===0&&c.F(l);b.3B&&c.3c(a+1);b.2l&&c.1s("1E",b.2l+a);u c.3n(k)}8 o(a,c){a=f().4r(c.J("#",""));a.z||(a=f().35("[1X="+c+"]"));a.1P()}w e=d(v).11("1m"),k=b.2k.jquery?b.2k:p(e.2D(),b.2k),q=e.1l(),l=b.2x,j=b.1z&&d.3D.1z;y(e)g=e;e.1l=8(){u q.2H(k)};f().z?f().1h(8(a){d(v).1P(8(c){h(d(v),a,c)})}):d.1h(e.3j(),8(a){n(a)});e.onBeforeSeek(8(a,c){15(8(){y(!a.M()){w i=f().4r(c);!a.M()&&i.z&&f().K(l).4r(c).F(l)}},1)});e.onAddItem(8(a,c){c=n(e.3j().43(c));j&&c.1z(o)});j&&f().1z(o)});u b.3w?g:v}})(B);(8(c){8 p(g,a){8 m(f){w e=c(f);u e.z<2?e:g.2Z().W(f)}w b=v,i=g.2H(v),d=g.11("4f"),h,j=19,n=m(a.1V).1P(8(){d.1V()}),k=m(a.3f).1P(8(){d.3f()});c.E(b,{2C:8(){u d},T:8(){u a},2f:8(){y(h)u b;w f=c.4a("2i");i.1y(f);y(f.M())u b;h=2t(d.1V,a.1p);j=I;i.1y("3M");u b},1L:8(){y(!h)u b;w f=c.4a("25");i.1y(f);y(f.M())u b;h=28(h);i.1y("3A");u b},4g:8(){b.1L();j=19}});c.1h("2i,3M,25,3A".3s(","),8(f,e){c.isFunction(a[e])&&c(b).3m(e,a[e]);b[e]=8(q){u c(b).3m(e,q)}});a.1x&&d.2C().2H(n).2H(k).2H(d.3i()).45(b.1L,8(){j||b.2f()});a.1G&&b.2f();a.36&&d.3i().1P(8(){d.1V()});y(!d.T().rotate){w l=a.26;d.getIndex()||k.F(l);d.onBeforeClick(8(f,e){k.2s(l,!e);n.2s(l,e==d.2C().z-1)})}}w o;o=c.1d.4f.1u={1b:{1V:".forward",3f:".backward",26:"disabled",1G:I,1x:19,1p:4A,36:19,3w:I}};c.3D.1u=8(g){w a=v.11("1u");y(a)u a;g=c.E({},o.1b,g);v.1h(8(){a=2B p(c(v),g);c(v).11("1u",a)});u g.3w?a:v}})(B);(8(){8 f(a,b){y(b)2n(w c 44 b)y(b.1k(c))a[c]=b[c];u a}8 l(a,b){w c=[];2n(w d 44 a)y(a.1k(d))c[d]=b(a[d]);u c}8 m(a,b,c){y(e.1D(b.H))a.1f=e.2E(b,c);2o y(b.Z&&e.1D([6,65]))a.1f=e.2E(f(b,{2d:b.Z}),{MMredirectURL:1n.1X,MMplayerType:"PlugIn",MMdoctitle:R.title});2o{y(!a.1f.J(/\\s/g,"")){a.1f="<4G>49 H "+b.H+" or greater 4E required</4G><4F>"+(g[0]>0?"Your H 4E "+g:"You have no 46 plugin installed")+"</4F>"+(a.3x=="A"?"<p>Click 4m to download 3O H</p>":"<p>Download 3O H from <a 1X=\'"+k+"\'>4m</a></p>");y(a.3x=="A")a.onclick=8(){1n.1X=k}}y(b.2g){w d=b.2g.3l(v);y(N d=="1K")a.1f=d}}y(i)L[b.1E]=R.1Y(b.1E);f(v,{2D:8(){u a},getOptions:8(){u b},T:8(){u c},getApi:8(){u a.firstChild}})}w i=R.all,k="4l://4o.adobe.com/go/getflashplayer",n=N B=="8",o=/(\\d+)[^\\d]+(\\d+)[^\\d]*(\\d*)/,j={U:"4C%",1a:"4C%",1E:"_"+(""+3o.3K()).2J(9),allowfullscreen:19,allowscriptaccess:"always",quality:"high",H:[3,0],2g:Q,Z:Q,3I:I,2q:I};L.2w&&L.2w("onbeforeunload",8(){__flash_unloadHandler=8(){};__flash_savedUnloadHandler=8(){}});L.V=8(a,b,c){y(N a=="1K")a=R.1Y(a.J("#",""));y(a){y(N b=="1K")b={2d:b};u 2B m(a,f(f({},j),b),c)}};w e=f(L.V,{1b:j,2N:8(){w a,b;4b{b=14.plugins["Shockwave 49"].description.2J(16)}3v(c){4b{b=(a=2B 29("12.12.7"))&&a.2y("$H")}3v(d){4b{b=(a=2B 29("12.12.6"))&&a.2y("$H")}3v(h){}}}u(b=o.exec(b))?[b[1],b[3]]:[0,0]},1H:8(a){y(a===Q||a===20)u Q;w b=N a;y(b=="1M"&&a.4i)b="48";2W(b){1c "1K":a=a.J(2B RegExp(\'(["\\\\\\\\])\',"g"),"\\\\$1");a=a.J(/^\\s?(\\d+\\.?\\d+)%/,"$1pct");u\'"\'+a+\'"\';1c "48":u"["+l(a,8(d){u e.1H(d)}).4k(",")+"]";1c "8":u\'"8()"\';1c "1M":b=[];2n(w c 44 a)a.1k(c)&&b.4i(\'"\'+c+\'":\'+e.1H(a[c]));u"{"+b.4k(",")+"}"}u String(a).J(/\\s/g," ").J(/\\\'/g,\'"\')},2E:8(a,b){a=f({},a);w c=\'<1M U="\'+a.U+\'" 1a="\'+a.1a+\'" 1E="\'+a.1E+\'" 1w="\'+a.1E+\'"\';y(a.2q)a.2d+=(a.2d.1j("?")!=-1?"&":"?")+3o.3K();c+=a.3I||!i?\' 11="\'+a.2d+\'" 3J="application/x-shockwave-46"\':\' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\';c+=">";y(a.3I||i)c+=\'<2L 1w="movie" P="\'+a.2d+\'" />\';a.U=a.1a=a.1E=a.3I=a.2d=Q;a.2g=a.H=a.Z=Q;2n(w d 44 a)y(a[d])c+=\'<2L 1w="\'+d+\'" P="\'+a[d]+\'" />\';a="";y(b){2n(w h 44 b)y(b[h]){d=b[h];a+=h+"="+(/8|1M/.test(N d)?e.1H(d):d)+"&"}a=a.2J(0,-1);c+=\'<2L 1w="flashvars" P=\\\'\'+a+"\' />"}c+="</1M>";u c},1D:8(a){u g[0]>a[0]||g[0]==a[0]&&g[1]>=a[1]}}),g=e.2N();y(n){B.1d=B.1d||{H:"v1.2.5"};B.1d.V={1b:j};B.3D.V=8(a,b){u v.1h(8(){$(v).11("V",V(v,a,b))})}}})();(8(b){8 c(a){2W(a.3J){1c "33":u b.E(a.11,{3H:a.3H,3G:a.3G,41:a.41,3Z:a.3Z});1c "1Z":b.E(a,a.11);a.3u=-a.detail/3;2U;1c "1N":a.3u=a.wheelDelta/120;2U}a.3J="3r";u b.1r.handle.3l(v,a,a.3u)}b.3D.1N=8(a){u v[a?"3m":"1y"]("3r",a)};b.1r.special.3r={setup:8(){b.1r.2H(v,d,c,{})},teardown:8(){b.1r.remove(v,d,c)}};w d=!b.2G.mozilla?"1N":"1Z"+(b.2G.H<"1.9"?" 33":"")})(B);(8(g){8 j(a){w c=g(L),d=c.U()+c.17(),h=c.1a()+c.1e();u[a.O().S<=c.1e(),d<=a.O().G+a.U(),h<=a.O().S+a.1a(),c.17()>=a.O().G]}8 k(a){2n(w c=a.z;c--;)y(a[c])u I;u 19}w i=g.1d.2z;i.2F={1b:{1Q:"S 2K 3a G"}};g.3D.2F=8(a){y(N a=="3N")a={3W:a};a=g.E({},i.2F.1b,a);w c=a.1Q.3s(/\\s/),d;v.1h(8(){w h=g(v).2z().2h(8(e,f){e=v.1O();w b=v.T();d||(d=[b.C[0],b.C[1],b.O[0],b.O[1],g.E({},b)]);g.E(b,d[4]);b.C=[d[0],d[1]];b.O=[d[2],d[3]];e.1t({2I:"hidden",C:"1I",S:f.S,G:f.G}).3d();f=j(e);y(!k(f)){y(f[2]){g.E(b,a.S);b.C[0]="S";e.F(c[0])}y(f[3]){g.E(b,a.2K);b.C[1]="2K";e.F(c[1])}y(f[0]){g.E(b,a.3a);b.C[0]="3a";e.F(c[2])}y(f[1]){g.E(b,a.G);b.C[1]="G";e.F(c[3])}y(f[0]||f[2])b.O[0]*=-1;y(f[1]||f[3])b.O[1]*=-1}e.1t({2I:"visible"}).1q()});h.2h(8(){w e=v.T();v.1O();15(8(){e.C=[d[0],d[1]];e.O=[d[2],d[3]]},0)});h.onHide(8(){w e=v.1O();e.K(a.1Q)});4p=h});u a.3w?4p:v}})(B);(8(d){w i=d.1d.2z;d.E(i.1b,{22:"4e",3T:I,1C:10,2e:4B,23:4B,1v:!d.2G.msie});w e={4e:["-","S"],down:["+","S"],G:["-","G"],2K:["+","G"]};i.3b("slide",8(g){w a=v.T(),f=v.1O(),b=a.1v?{1U:a.1U}:{},c=e[a.22]||e.4e;b[c[1]]=c[0]+"="+a.1C;a.1v&&f.1t({1U:0});f.3d().1B(b,a.2e,g)},8(g){w a=v.T(),f=a.1C,b=a.1v?{1U:0}:{},c=e[a.22]||e.4e,h=""+c[0];y(a.3T)h=h=="+"?"-":"+";b[c[1]]=h+"="+f;v.1O().1B(b,a.23,8(){d(v).1q();g.3l()})})})(B);',62,300,'',0,{}))

/* - ++resource++plone.app.jquerytools.overlayhelpers.js - */
// http://www.clicphoto.ch/portal_javascripts/++resource++plone.app.jquerytools.overlayhelpers.js?original=1
var pb={spinner:{},overlay_counter:1};jQuery.tools.overlay.conf.oneInstance=false;jQuery(function($){pb.spinner.show=function(){$('body').css('cursor','wait')};pb.spinner.hide=function(){$('body').css('cursor','')};$.fn.prepOverlay=function(pba){return this.each(function(){var o,pbo,config,onBeforeLoad,onLoad,src,parts;o=$(this);pbo=$.extend(true,{},pba);config=pbo.config||{};onBeforeLoad=pb[pbo.subtype];if(onBeforeLoad){config.onBeforeLoad=onBeforeLoad}
onLoad=config.onLoad;config.onLoad=function(){if(onLoad){onLoad.apply(this,arguments)}
pb.fi_focus(this.getOverlay())};src=o.attr('href')||o.attr('src')||o.attr('action');if(pbo.urlmatch){src=src.replace(new RegExp(pbo.urlmatch),pbo.urlreplace)}
if(pbo.subtype==='inline'){src=src.replace(/^.+#/,'#');$("[id='"+src.replace('#','')+"']").addClass('overlay');o.removeAttr('href').attr('rel',src);o.overlay()} else{pbo.nt='pb_'+pb.overlay_counter;pb.overlay_counter+=1;pbo.selector=pbo.filter||pbo.selector;if(!pbo.selector){parts=src.split(' ');src=parts.shift();pbo.selector=parts.join(' ')}
pbo.src=src;pbo.config=config;pbo.source=o;pb.remove_overlay(o);o.data('pbo',pbo);o.attr('rel','#'+pbo.nt);o.addClass('link-overlay');switch(pbo.subtype){case 'image':o.click(pb.image_click);break;case 'ajax':o.click(pb.ajax_click);break;case 'iframe':pb.create_content_div(pbo);o.overlay(config);break;default:throw "Unsupported overlay type"}
o.css('cursor','pointer')}})};pb.remove_overlay=function(o){var old_data=o.data('pbo');if(old_data){switch(old_data.subtype){case 'image':o.unbind('click',pb.image_click);break;case 'ajax':o.unbind('click',pb.ajax_click);break;default:o.unbind('click')}
if(old_data.nt){$('#'+old_data.nt).remove()}}};pb.create_content_div=function(pbo){var content;content=$('<div id="'+pbo.nt+'" class="overlay overlay-'+pbo.subtype+' '+(pbo.cssclass||'')+'"><div class="close"><span>Close</span></div></div>');content.data('pbo',pbo);if(pbo.width){content.width(pbo.width)}
content.appendTo($("body"));return content};pb.image_click=function(event){var ethis,content,api,img,el,pbo;ethis=$(this);pbo=ethis.data('pbo');content=$(ethis.attr('rel'));if(!content.length){content=pb.create_content_div(pbo);content.overlay(pbo.config)}
api=content.overlay();if(content.find('img').length===0){if(pbo.src){pb.spinner.show();img=new Image();img.src=pbo.src;el=$(img);content.append(el.addClass('pb-image'));el.load(function(){pb.spinner.hide();api.load()})}} else{api.load()}
return false};pb.fi_focus=function(jqo){if(!jqo.find("form div.error :input:first").focus().length){jqo.find("form :input:visible:first").focus()}};pb.ajax_error_recover=function(responseText,selector){var tcontent=$('<div/>').append(responseText.replace(/<script(.|\s)*?\/script>/gi,""));return selector?tcontent.find(selector):tcontent};pb.add_ajax_load=function(form){if(form.find('input[name=ajax_load]').length===0){form.prepend($('<input type="hidden" name="ajax_load" value="'+(new Date().getTime())+'" />'))}};pb.prep_ajax_form=function(form){var ajax_parent=form.closest('.pb-ajax'),data_parent=ajax_parent.closest('.overlay-ajax'),pbo=data_parent.data('pbo'),formtarget=pbo.formselector,closeselector=pbo.closeselector,beforepost=pbo.beforepost,afterpost=pbo.afterpost,noform=pbo.noform,api=data_parent.overlay(),selector=pbo.selector,options={};options.beforeSerialize=function(){pb.spinner.show()};if(beforepost){options.beforeSubmit=function(arr,form,options){return beforepost(form,arr,options)}}
options.success=function(responseText,statusText,xhr,form){$(document).trigger('formOverlayStart',[this,responseText,statusText,xhr,form]);var el,myform,success,target;success=statusText==="success"||statusText==="notmodified";if(!success){responseText=responseText.responseText}
responseText=responseText.replace(/<script(.|\s)*?\/script>/gi,"");el=$('<div />').append(selector?$('<div />').append(responseText).find(selector):responseText);if(success&&afterpost){afterpost(el,data_parent)}
myform=el.find(formtarget);if(success&&myform.length){ajax_parent.empty().append(el);pb.fi_focus(ajax_parent);pb.add_ajax_load(myform);myform.ajaxForm(options);if(closeselector){el.find(closeselector).click(function(event){api.close();return false})}
$(document).trigger('formOverlayLoadSuccess',[this,myform,api,pb,ajax_parent])} else{if(success){if(typeof(noform)==="function"){noform=noform(this)}} else{noform=statusText}
switch(noform){case 'close':api.close();break;case 'reload':api.close();pb.spinner.show();location.replace(location.href);break;case 'redirect':api.close();pb.spinner.show();target=pbo.redirect;if(typeof(target)==="function"){target=target(this,responseText)}
location.replace(target);break;default:if(el.children()){ajax_parent.empty().append(el)} else{api.close()}}
$(document).trigger('formOverlayLoadFailure',[this,myform,api,pb,ajax_parent,noform])}
pb.spinner.hide()};options.error=options.success;pb.add_ajax_load(form);form.ajaxForm(options)};pb.ajax_click=function(event){var ethis=$(this),pbo,content,api,src,el,selector,formtarget,closeselector,sep;e=$.Event();e.type="beforeAjaxClickHandled";$(document).trigger(e,[this,event]);if(e.isDefaultPrevented()){return}
pbo=ethis.data('pbo');content=pb.create_content_div(pbo);content.overlay(pbo.config);api=content.overlay();src=pbo.src;selector=pbo.selector;formtarget=pbo.formselector;closeselector=pbo.closeselector;pb.spinner.show();$(this).find("input.submitting").removeClass('submitting');el=$('<div class="pb-ajax" />');if(api.getConf().fixed){el.css('max-height',Math.floor($(window).height() * 0.75))}
content.append(el);sep=(src.indexOf('?')>=0)?'&':'?';src+=sep+"ajax_load="+(new Date().getTime());if(selector){src+=' '+selector}
el[0].handle_load_inside_overlay=function(responseText,errorText){var el=$(this);if(errorText==='error'){el.append(pb.ajax_error_recover(responseText,selector))} else if(!responseText.length){el.append(ajax_noresponse_message||'No response from server.')}
el.wrapInner('<div />');if(formtarget){var target=el.find(formtarget);if(target.length>0){pb.prep_ajax_form(target)}}
if(closeselector){el.find(closeselector).click(function(event){api.close();return false})}
if($.fn.ploneTabInit){el.ploneTabInit()}
api.onClose=function(){content.remove()};$(document).trigger('loadInsideOverlay',[this,responseText,errorText,api])}
el.load(src,null, function(responseText,errorText){el[0].handle_load_inside_overlay.apply(this,[responseText,errorText]);pb.spinner.hide();api.load();return true});return false};pb.iframe=function(){var content,pbo;pb.spinner.show();content=this.getOverlay();pbo=this.getTrigger().data('pbo');if(content.find('iframe').length===0&&pbo.src){content.append('<iframe src="'+pbo.src+'" width="'+content.width()+'" height="'+content.height()+'" onload="pb.spinner.hide()"/>')} else{pb.spinner.hide()}
return true}});

/* - ++resource++plone.app.jquerytools.form.js - */
(function(b){function p(){if(b.fn.ajaxSubmit.debug){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(a);else window.opera&&window.opera.postError&&window.opera.postError(a)}}b.fn.ajaxSubmit=function(a){function g(){function t(){var n=k.attr("target"),m=k.attr("action");l.setAttribute("target",u);l.getAttribute("method")!="POST"&&l.setAttribute("method","POST");l.getAttribute("action")!=e.url&&l.setAttribute("action",e.url);e.skipEncodingOverride||
k.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});e.timeout&&setTimeout(function(){F=true;s()},e.timeout);var v=[];try{if(e.extraData)for(var w in e.extraData)v.push(b('<input type="hidden" name="'+w+'" value="'+e.extraData[w]+'" />').appendTo(l)[0]);q.appendTo("body");q.data("form-plugin-onload",s);l.submit()}finally{l.setAttribute("action",m);n?l.setAttribute("target",n):k.removeAttr("target");b(v).remove()}}function s(){if(!G){q.removeData("form-plugin-onload");var n=true;
try{if(F)throw"timeout";o=x.contentWindow?x.contentWindow.document:x.contentDocument?x.contentDocument:x.document;var m=e.dataType=="xml"||o.XMLDocument||b.isXMLDoc(o);p("isXml="+m);if(!m&&window.opera&&(o.body==null||o.body.innerHTML==""))if(--K){p("requeing onLoad callback, DOM not available");setTimeout(s,250);return}G=true;i.responseText=o.documentElement?o.documentElement.innerHTML:null;i.responseXML=o.XMLDocument?o.XMLDocument:o;i.getResponseHeader=function(L){var M={"content-type":e.dataType};
return M[L]};var v=/(json|script)/.test(e.dataType);if(v||e.textarea){var w=o.getElementsByTagName("textarea")[0];if(w)i.responseText=w.value;else if(v){var H=o.getElementsByTagName("pre")[0],I=o.getElementsByTagName("body")[0];if(H)i.responseText=H.textContent;else if(I)i.responseText=I.innerHTML}}else if(e.dataType=="xml"&&!i.responseXML&&i.responseText!=null)i.responseXML=C(i.responseText);J=b.httpData(i,e.dataType)}catch(D){p("error caught:",D);n=false;i.error=D;b.handleError(e,i,"error",D)}if(i.aborted){p("upload aborted");
n=false}if(n){e.success.call(e.context,J,"success",i);y&&b.event.trigger("ajaxSuccess",[i,e])}y&&b.event.trigger("ajaxComplete",[i,e]);y&&!--b.active&&b.event.trigger("ajaxStop");if(e.complete)e.complete.call(e.context,i,n?"success":"error");setTimeout(function(){q.removeData("form-plugin-onload");q.remove();i.responseXML=null},100)}}function C(n,m){if(window.ActiveXObject){m=new ActiveXObject("Microsoft.XMLDOM");m.async="false";m.loadXML(n)}else m=(new DOMParser).parseFromString(n,"text/xml");return m&&
m.documentElement&&m.documentElement.tagName!="parsererror"?m:null}var l=k[0];if(b(":input[name=submit],:input[id=submit]",l).length)alert('Error: Form elements must not have name or id of "submit".');else{var e=b.extend(true,{},b.ajaxSettings,a);e.context=e.context||e;var u="jqFormIO"+(new Date).getTime(),E="_"+u;window[E]=function(){var n=q.data("form-plugin-onload");if(n){n();window[E]=undefined;try{delete window[E]}catch(m){}}};var q=b('<iframe id="'+u+'" name="'+u+'" src="'+e.iframeSrc+'" onload="window[\'_\'+this.id]()" />'),
x=q[0];q.css({position:"absolute",top:"-1000px",left:"-1000px"});var i={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;q.attr("src",e.iframeSrc)}},y=e.global;y&&!b.active++&&b.event.trigger("ajaxStart");y&&b.event.trigger("ajaxSend",[i,e]);if(e.beforeSend&&e.beforeSend.call(e.context,i,e)===false)e.global&&b.active--;else if(!i.aborted){var G=false,
F=0,z=l.clk;if(z){var A=z.name;if(A&&!z.disabled){e.extraData=e.extraData||{};e.extraData[A]=z.value;if(z.type=="image"){e.extraData[A+".x"]=l.clk_x;e.extraData[A+".y"]=l.clk_y}}}e.forceSync?t():setTimeout(t,10);var J,o,K=50}}}if(!this.length){p("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof a=="function")a={success:a};var d=this.attr("action");if(d=typeof d==="string"?b.trim(d):"")d=(d.match(/^([^#]+)/)||[])[1];d=d||window.location.href||"";a=b.extend(true,{url:d,
type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},a);d={};this.trigger("form-pre-serialize",[this,a,d]);if(d.veto){p("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(a.beforeSerialize&&a.beforeSerialize(this,a)===false){p("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var c,f,h=this.formToArray(a.semantic);if(a.data){a.extraData=a.data;for(c in a.data)if(a.data[c]instanceof Array)for(var j in a.data[c])h.push({name:c,
value:a.data[c][j]});else{f=a.data[c];f=b.isFunction(f)?f():f;h.push({name:c,value:f})}}if(a.beforeSubmit&&a.beforeSubmit(h,this,a)===false){p("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[h,this,a,d]);if(d.veto){p("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}c=b.param(h);if(a.type.toUpperCase()=="GET"){a.url+=(a.url.indexOf("?")>=0?"&":"?")+c;a.data=null}else a.data=c;var k=this,r=[];a.resetForm&&r.push(function(){k.resetForm()});
a.clearForm&&r.push(function(){k.clearForm()});if(!a.dataType&&a.target){var B=a.success||function(){};r.push(function(t){var s=a.replaceTarget?"replaceWith":"html";b(a.target)[s](t).each(B,arguments)})}else a.success&&r.push(a.success);a.success=function(t,s,C){for(var l=a.context||a,e=0,u=r.length;e<u;e++)r[e].apply(l,[t,s,C||k,k])};c=b("input:file",this).length>0;j="multipart/form-data";j=k.attr("enctype")==j||k.attr("encoding")==j;if(a.iframe!==false&&(c||a.iframe||j))a.closeKeepAlive?b.get(a.closeKeepAlive,
g):g();else b.ajax(a);this.trigger("form-submit-notify",[this,a]);return this};b.fn.ajaxForm=function(a){if(this.length===0){var g={s:this.selector,c:this.context};if(!b.isReady&&g.s){p("DOM not ready, queuing ajaxForm");b(function(){b(g.s,g.c).ajaxForm(a)});return this}p("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(d){if(!d.isDefaultPrevented()){d.preventDefault();b(this).ajaxSubmit(a)}}).bind("click.form-plugin",
function(d){var c=d.target,f=b(c);if(!f.is(":submit,input:image")){c=f.closest(":submit");if(c.length==0)return;c=c[0]}var h=this;h.clk=c;if(c.type=="image")if(d.offsetX!=undefined){h.clk_x=d.offsetX;h.clk_y=d.offsetY}else if(typeof b.fn.offset=="function"){f=f.offset();h.clk_x=d.pageX-f.left;h.clk_y=d.pageY-f.top}else{h.clk_x=d.pageX-c.offsetLeft;h.clk_y=d.pageY-c.offsetTop}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};
b.fn.formToArray=function(a){var g=[];if(this.length===0)return g;var d=this[0],c=a?d.getElementsByTagName("*"):d.elements;if(!c)return g;var f,h,j,k,r,B;f=0;for(r=c.length;f<r;f++){h=c[f];if(j=h.name)if(a&&d.clk&&h.type=="image"){if(!h.disabled&&d.clk==h){g.push({name:j,value:b(h).val()});g.push({name:j+".x",value:d.clk_x},{name:j+".y",value:d.clk_y})}}else if((k=b.fieldValue(h,true))&&k.constructor==Array){h=0;for(B=k.length;h<B;h++)g.push({name:j,value:k[h]})}else k!==null&&typeof k!="undefined"&&
g.push({name:j,value:k})}if(!a&&d.clk){a=b(d.clk);c=a[0];if((j=c.name)&&!c.disabled&&c.type=="image"){g.push({name:j,value:a.val()});g.push({name:j+".x",value:d.clk_x},{name:j+".y",value:d.clk_y})}}return g};b.fn.formSerialize=function(a){return b.param(this.formToArray(a))};b.fn.fieldSerialize=function(a){var g=[];this.each(function(){var d=this.name;if(d){var c=b.fieldValue(this,a);if(c&&c.constructor==Array)for(var f=0,h=c.length;f<h;f++)g.push({name:d,value:c[f]});else c!==null&&typeof c!="undefined"&&
g.push({name:this.name,value:c})}});return b.param(g)};b.fn.fieldValue=function(a){for(var g=[],d=0,c=this.length;d<c;d++){var f=this[d];f=b.fieldValue(f,a);f===null||typeof f=="undefined"||f.constructor==Array&&!f.length||(f.constructor==Array?b.merge(g,f):g.push(f))}return g};b.fieldValue=function(a,g){var d=a.name,c=a.type,f=a.tagName.toLowerCase();if(g===undefined)g=true;if(g&&(!d||a.disabled||c=="reset"||c=="button"||(c=="checkbox"||c=="radio")&&!a.checked||(c=="submit"||c=="image")&&a.form&&
a.form.clk!=a||f=="select"&&a.selectedIndex==-1))return null;if(f=="select"){f=a.selectedIndex;if(f<0)return null;g=[];a=a.options;d=(c=c=="select-one")?f+1:a.length;for(f=c?f:0;f<d;f++){var h=a[f];if(h.selected){var j=h.value;j||(j=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value);if(c)return j;g.push(j)}}return g}return b(a).val()};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=
function(){return this.each(function(){var a=this.type,g=this.tagName.toLowerCase();if(a=="text"||a=="password"||g=="textarea")this.value="";else if(a=="checkbox"||a=="radio")this.checked=false;else if(g=="select")this.selectedIndex=-1})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};b.fn.enable=function(a){if(a===undefined)a=true;return this.each(function(){this.disabled=!a})};b.fn.selected=
function(a){if(a===undefined)a=true;return this.each(function(){var g=this.type;if(g=="checkbox"||g=="radio")this.checked=a;else if(this.tagName.toLowerCase()=="option"){g=b(this).parent("select");a&&g[0]&&g[0].type=="select-one"&&g.find("option").selected(false);this.selected=a}})}})(jQuery);



/* - register_function.js - */
// http://www.clicphoto.ch/portal_javascripts/register_function.js?original=1
eval(__dEcOdE("w Y=(14.2V.1j('MSIE 5')!=-1&&14.2V.1j('Mac')!=-1);w W3CDOM=(!Y&&N R.getElementsByTagName!='20'&&N R.createElement!='20');w registerEventListener=8(3k,1r,1F){1o(3k).3m(1r,1F)};w unRegisterEventListener=8(3k,1r,1F){1o(3k).unbind(1r,1F)};w registerPloneFunction=1o;8 getContentArea(){w D=1o('#region-3F,#3F');u D.z?D[0]:Q};",62,300,'',0,{}))

/* - plone_javascript_variables.js - */
// http://www.clicphoto.ch/portal_javascripts/plone_javascript_variables.js?original=1
eval(__dEcOdE("w portal_url='4l://4o.clicphoto.ch';w form_modified_message='Le 2Q n\\'a pas été enregistré. Tous les changements effectués seront perdus.';w form_resubmit_message='Vous avez déjà cliqué sur 4D bouton 4I soumission 4H 2Q. Voulez-vous vraiment 4D soumettre à nouveau ?';w external_links_open_new_window='I';w mark_special_links='I';w ajax_noresponse_message='Pas 4I réponse 4H serveur. Veuillez réessayer plus tard.';",62,300,'',0,{}))

/* - nodeutilities.js - */
// http://www.clicphoto.ch/portal_javascripts/nodeutilities.js?original=1
eval(__dEcOdE("8 wrapNode(D,2r,2b){1o(D).wrap('<'+2r+'>').2Z().F(2b)};8 nodeContained(34,30){u 1o(34).2A().35(8(){u v==30}).z>0};8 findContainer(D,1F){p=1o(D).2A().35(1F);u p.z?p.4q(0):I};8 hasClassName(D,X){u 1o(D).3h(X)};8 addClassName(D,X){1o(D).F(X)};8 removeClassName(D,X){1o(D).K(X)};8 replaceClassName(D,21,31,1W){y(1W||1o(D).3h(21))1o(D).K(21).F(31)};8 walkTextNodes(D,1F,11){1o(D).W('*').andSelf().contents().1h(8(){y(v.nodeType==3)1F(v,11)})};8 getInnerTextCompatible(D){u 1o(D).3c()};8 getInnerTextFast(D){u 1o(D).3c()};8 sortNodes(3t,2S,2p){w 1g=8(D){v.P=2S(D);v.2v=D.cloneNode(19)};1g.prototype.2c=8(){u v.P.2c?v.P.2c():v.P};w 2M=1o(3t).map(8(){u 2B 1g(v)});y(2p)2M.4h(2p);2o 2M.4h();1o.1h(2M,8(i){1o(3t[i]).J(v.2v)})};8 copyChildNodes(3y,3E){1o(3y).children().clone().3n(1o(3E))};",62,300,'',0,{}))

/* - cookie_functions.js - */
// http://www.clicphoto.ch/portal_javascripts/cookie_functions.js?original=1
eval(__dEcOdE('8 createCookie(1w,P,3R){w 2T,1A;y(3R){2T=2B Date();2T.setTime(2T.getTime()+(3R*24*60*60*1000));1A="; 1A="+2T.toGMTString()}2o{1A=""}R.3S=1w+"="+escape(P)+1A+"; 3L=/;"}8 readCookie(1w){w 32=1w+"=",4s=R.3S.3s(\';\'),i,c;2n(i=0;i<4s.z;i=i+1){c=4s[i];while(c.charAt(0)===\' \'){c=c.2X(1,c.z)}y(c.1j(32)===0){u unescape(c.2X(32.z,c.z))}}u Q}',62,300,'',0,{}))

/* - livesearch.js - */
// http://www.clicphoto.ch/portal_javascripts/livesearch.js?original=1
eval(__dEcOdE("w 18=(8(){w 4t=4z,4L=4z,3V={},3U=\"13\";8 4N(f,i){w l=Q,r=Q,c={},q=f.1s('action').J(/1i$/g,\"\")+\"livesearch_reply\",3Y=f.W('3Q.3q'),s=f.W('3Q.3p'),p=f.W('42[1w=3L]');8 4c(){3Y.1q();l=Q}8 4M(){L.15('18.1q(\"'+f.1s('1E')+'\")',4L)}8 4d(d){3Y.3d();s.html(d)}8 4w(){y(l===i.P){u}l=i.P;y(r&&r.readyState<4){r.abort()}y(i.P.z<2){4c();u}w 3e={q:i.P};y(p.z&&p[0].checked){3e.3L=p.val()}3e=B.2L(3e);y(c[3e]){4d(c[3e]);u}r=B.4q(q,3e,8(d){4d(d);c[3e]=d},'3c')}8 4O(){L.15('18.1i(\"'+f.1s('1E')+'\")',4t)}u{1q:4c,2m:4M,1i:4w,1T:4O}}8 4P(f){w t=Q,3Y=f.W('3Q.3q'),s=f.W('3Q.3p');8 4u(){w c=s.W('3g.13').K(3U),p=c.3f('3g');y(!p.z){p=s.W('3g:last')}p.F(3U);u I}8 4J(){w c=s.W('3g.13').K(3U),n=c.1V('3g');y(!n.z){n=s.W('3g:47')}n.F(3U);u I}8 4K(){s.W('3g.13').K(3U);3Y.1q()}8 4y(e){L.clearTimeout(t);2W(e.keyCode){1c 38:u 4u();1c 40:u 4J();1c 27:u 4K();1c 37:2U;1c 39:2U;default:t=L.15('18.1i(\"'+f.1s('1E')+'\")',4t)}}8 4x(){w t=s.W('3g.13 a').1s('1X');y(!t){u}L.1n=t;u I}u{3C:4y,2Y:4x}}8 4v(i){w i='18'+i,f=B(v).2A('form:47'),k=4P(f);3V[i]=4N(f,v);f.1s('1E',i).2Y(k.2Y);B(v).1s('autocomplete','off').keydown(k.3C).focus(3V[i].1T).blur(3V[i].2m)}B(8(){B(\"#searchGadget,42.portlet-1i-gadget\").1h(4v)});u{1i:8(1E){3V[1E].1i()},1q:8(1E){3V[1E].1q()}}}());",62,300,'',0,{}))


