PageSourceSearch

https://www.tourisme-landesdarmagnac.fr/files/ot-landesarmagnac/fi…/js/js_cba17301aad759cfca72dbbbed7af6fb.js

js tourisme-landesdarmagnac.fr collected 2026-09-26 11:04:42 UTC 316,976 bytes, 4,661 lines download raw bytes

1/*!
2 * jQuery JavaScript Library v1.4.4
3 * http://jquery.com/
4 *
5 * Copyright 2010, John Resig
6 * Dual licensed under the MIT or GPL Version 2 licenses.
7 * http://jquery.org/license
8 *
9 * Includes Sizzle.js
10 * http://sizzlejs.com/
11 * Copyright 2010, The Dojo Foundation
12 * Released under the MIT, BSD, and GPL Licenses.
13 *
14 * Date: Thu Nov 11 19:04:53 2010 -0500
15 */
16(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
17h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
18h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
19"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
20e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
21"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
22a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
23C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
24s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}
24if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
25j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
26toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
27-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
28if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
29if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
30b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
31!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
32l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
33z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
34s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="str
34ing"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
35s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
36[];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
37false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
38k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
39scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
40false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
411;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
42"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
43c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
44else if(d)delete f[e];else for(var l in a)delete a[l]}}
44,acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
45a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
46c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
47a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
48colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
491)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
50l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
51"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
52if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
53a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});
53if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
54attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
55b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
56c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
57arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
58d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
59c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
60w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;
60if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
618)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
62"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
63d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
64fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
65d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
66Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
67c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
68var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};
vendor: 8,894 bytes, lines 68-85
68c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
69"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
70xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
71B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
72"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
730&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
74a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
751;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
76"object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
77c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
78(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
79[y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
80break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
81q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
82l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
83return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
84B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.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+\-]*)\))?/,
85POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}}
vendor: 3,377 bytes, lines 85-92
85,relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
86i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
87i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
88"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
89m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
90true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
91g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
920===i},eq:function(g,i,n){return n[3]-0===i}}
92,filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
93"first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
94i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
95if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
96g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
97for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
98i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
99n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
100function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
101p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");
101if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
102t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
103function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
104c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
105not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
106h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
107c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
1082,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
109b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
110e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
111"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];
vendor: 4,442 bytes, lines 111-120
111c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
112c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
113wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
114prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
115this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
116return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
117else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
118c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
119b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
120this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;
120if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
121prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
122b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
1231;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
124d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
125jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
126zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
127h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
128if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);
128if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
129d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
130e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
131ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
132"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
133!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
134getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
135script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
136!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
137false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");
137if(b.scriptCharset)A.charset=b.scriptCharset;
138A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
139b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
140c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
141c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
142encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
143[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
144e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
145if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["o
145pacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
1463),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
147d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
148d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
149"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
1501)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
151d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
152Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
153var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
154this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;
154if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
155this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
156c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
157b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
158h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
159for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
160parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
161height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
162f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
163"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
164e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;
164return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
165c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
166c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
167b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
168;
169
170/**
171 * Override jQuery.fn.init to guard against XSS attacks.
172 *
173 * See http://bugs.jquery.com/ticket/9521
174 */
175(function () {
176  var jquery_init = jQuery.fn.init;
177  jQuery.fn.init = function (selector, context, rootjQuery) {
178    // If the string contains a "#" before a "<", treat it as invalid HTML.
179    if (selector && typeof selector === 'string') {
180      var hash_position = selector.indexOf('#');
181      if (hash_position >= 0) {
182        var bracket_position = selector.indexOf('<');
183        if (bracket_position > hash_position) {
184          throw 'Syntax error, unrecognized expression: ' + selector;
185        }
186      }
187    }
188    return jquery_init.call(this, selector, context, rootjQuery);
189  };
190  jQuery.fn.init.prototype = jquery_init.prototype;
191
192  /**
193   * Pre-filter Ajax requests to guard against XSS attacks.
194   *
195   * See https://github.com/jquery/jquery/issues/2432
196   */
197  if ($.ajaxPrefilter) {
198    // For newer versions of jQuery, use an Ajax prefilter to prevent
199    // auto-executing script tags from untrusted domains. This is similar to the
200    // fix that is built in to jQuery 3.0 and higher.
201    $.ajaxPrefilter(function (s) {
202      if (s.crossDomain) {
203        s.contents.script = false;
204      }
205    });
206  }
207  else if ($.httpData) {
208    // For the version of jQuery that ships with Drupal core, override
209    // jQuery.httpData to prevent auto-detecting "script" data types from
210    // untrusted domains.
211    var jquery_httpData = $.httpData;
212    $.httpData = function (xhr, type, s) {
213      // @todo Consider backporting code from newer jQuery versions to check for
214      //   a cross-domain request here, rather than using Drupal.urlIsLocal() to
215      //   block scripts from all URLs that are not on the same site.
216      if (!type && (!s || !Drupal.urlIsLocal(s.url))) {
217        var content_type = xhr.getResponseHeader('content-type') || '';
218        if (content_type.indexOf('javascript') >= 0) {
219          // Default to a safe data type.
220          type = 'text';
221        }
222      }
223      return jquery_httpData.call(this, xhr, type, s);
224    };
225    $.httpData.prototype = jquery_httpData.prototype;
226  }
227
228})();
229
230var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };
231
232/**
233 * Set the variable that indicates if JavaScript behaviors should be applied
234 */
235Drupal.jsEnabled = true;
236
237/**
238 * Attach all registered behaviors to a page element.
239 *
240 * Behaviors are event-triggered actions that attach to page elements, enhancing
241 * default non-Javascript UIs. Behaviors are registered in the Drupal.behaviors
242 * object as follows:
243 * @code
244 *    Drupal.behaviors.behaviorName = function () {
245 *      ...
246 *    };
247 * @endcode
248 *
249 * Drupal.attachBehaviors is added below to the jQuery ready event and so
250 * runs on initial page load. Developers implementing AHAH/AJAX in their
251 * solutions should also call this function after new page content has been
252 * loaded, feeding in an element to be processed, in order to attach all
253 * behaviors to the new content.
254 *
255 * Behaviors should use a class in the form behaviorName-processed to ensure
256 * the behavior is attached only once to a given element. (Doing so enables
257 * the reprocessing of given elements, which may be needed on occasion despite
258 * the ability to limit behavior attachment to a particular element.)
259 *
260 * @param context
261 *   An element to attach behaviors to. If none is given, the document element
262 *   is used.
263 */
264Drupal.attachBehaviors = function(context) {
265  context = context || document;
266  // Execute all of them.
267  jQuery.each(Drupal.behaviors, function() {
268    this(context);
269  });
270};
271
272/**
273 * Encode special characters in a plain-text string for display as HTML.
274 */
275Drupal.checkPlain = function(str) {
276  str = String(str);
277  var replace = { '&': '&amp;', "'": '&#39;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
278  for (var character in replace) {
279    var regex = new RegExp(character, 'g');
280    str = str.replace(regex, replace[character]);
281  }
282  return str;
283};
284
285/**
286 * Translate strings to the page language or a given language.
287 *
288 * See the documentation of the server-side t() function for further details.
289 *
290 * @param str
291 *   A string containing the English string to translate.
292 * @param args
293 *   An object of replacements pairs to make after translation. Incidences
294 *   of any key in this array are replaced with the corresponding value.
295 *   Based on the first character of the key, the value is escaped and/or themed:
296 *    - !variable: inserted as is
297 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
298 *    - %variable: escape text and theme as a placeholder for user-submitted
299 *      content (checkPlain + Drupal.theme('placeholder'))
300 * @return
301 *   The translated string.
302 */
303Drupal.t = function(str, args) {
304  // Fetch the localized version of the string.
305  if (Drupal.locale.strings && Drupal.locale.strings[str]) {
306    str = Drupal.locale.strings[str];
307  }
308
309  if (args) {
310    // Transform arguments before inserting them
311    for (var key in args) {
312      switch (key.charAt(0)) {
313        // Escaped only
314        case '@':
315          args[key] = Drupal.checkPlain(args[key]);
316        break;
317        // Pass-through
318        case '!':
319          break;
320        // Escaped and placeholder
321        case '%':
322        default:
323          args[key] = Drupal.theme('placeholder', args[key]);
324          break;
325      }
326      str = str.replace(key, args[key]);
327    }
328  }
329  return str;
330};
331
332/**
333 * Format a string containing a count of items.
334 *
335 * This function ensures that the string is pluralized correctly. Since Drupal.t() is
336 * called by this function, make sure not to pass already-localized strings to it.
337 *
338 * See the documentation of the server-side format_plural() function for further details.
339 *
340 * @param count
341 *   The item count to display.
342 * @param singular
343 *   The string for the singular case. Please make sure it is clear this is
344 *   singular, to ease translation (e.g. use "1 new comment" instead of "1 new").
345 *   Do not use @count in the singular string.
346 * @param plural
347 *   The string for the plural case. Please make sure it is clear this is plural,
348 *   to ease translation. Use @count in place of the item count, as in "@count
349 *   new comments".
350 * @param args
351 *   An object of replacements pairs to make after translation. Incidences
352 *   of any key in this array are replaced with the corresponding value.
353 *   Based on the first character of the key, the value is escaped and/or themed:
354 *    - !variable: inserted as is
355 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
356 *    - %variable: escape text and theme as a placeholder for user-submitted
357 *      content (checkPlain + Drupal.theme('placeholder'))
358 *   Note that you do not need to include @count in this array.
359 *   This replacement is done automatically for the plural case.
360 * @return
361 *   A translated string.
362 */
363Drupal.formatPlural = function(count, singular, plural, args) {
364  var args = args || {};
365  args['@count'] = count;
366  // Determine the index of the plural form.
367  var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);
368
369  if (index == 0) {
370    return Drupal.t(singular, args);
371  }
372  else if (index == 1) {
373    return Drupal.t(plural, args);
374  }
375  else {
376    args['@count['+ index +']'] = args['@count'];
377    delete args['@count'];
378    return Drupal.t(plural.replace('@count', '@count['+ index +']'), args);
379  }
380};
381
382/**
383 * Returns the passed in URL as an absolute URL.
384 *
385 * @param url
386 *   The URL string to be normalized to an absolute URL.
387 *
388 * @return
389 *   The normalized, absolute URL.
390 *
391 * @see https://github.com/angular/angular.js/blob/v1.4.4/src/ng/urlUtils.js
392 * @see https://grack.com/blog/2009/11/17/absolutizing-url-in-javascript
393 * @see https://github.com/jquery/jquery-ui/blob/1.11.4/ui/tabs.js#L53
394 */
395Drupal.absoluteUrl = function (url) {
396  var urlParsingNode = document.createElement('a');
397
398  // Decode the URL first; this is required by IE <= 6. Decoding non-UTF-8
399  // strings may throw an exception.
400  try {
401    url = decodeURIComponent(url);
402  } catch (e) {}
403
404  urlParsingNode.setAttribute('href', url);
405
406  // IE <= 7 normalizes the URL when assigned to the anchor node similar to
407  // the other browsers.
408  return urlParsingNode.cloneNode(false).href;
409};
410
411/**
412 * Returns true if the URL is within Drupal's base path.
413 *
414 * @param url
415 *   The URL string to be tested.
416 *
417 * @return
418 *   Boolean true if local.
419 *
420 * @see https://github.com/jquery/jquery-ui/blob/1.11.4/ui/tabs.js#L58
421 */
422Drupal.urlIsLocal = function (url) {
423  // Always use browser-derived absolute URLs in the comparison, to avoid
424  // attempts to break out of the base path using directory traversal.
425  var absoluteUrl = Drupal.absoluteUrl(url);
426  var protocol = location.protocol;
427
428  // Consider URLs that match this site's base URL but use HTTPS instead of HTTP
429  // as local as well.
430  if (protocol === 'http:' && absoluteUrl.indexOf('https:') === 0) {
431    protocol = 'https:';
432  }
433  var baseUrl = protocol + '//' + location.host + Drupal.settings.basePath.slice(0, -1);
434
435  // Decoding non-UTF-8 strings may throw an exception.
436  try {
437    absoluteUrl = decodeURIComponent(absoluteUrl);
438  } catch (e) {}
439  try {
440    baseUrl = decodeURIComponent(baseUrl);
441  } catch (e) {}
442
443  // The given URL matches the site's base URL, or has a path under the site's
444  // base URL.
445  return absoluteUrl === baseUrl || absoluteUrl.indexOf(baseUrl + '/') === 0;
446};
447
448/**
449 * Generate the themed representation of a Drupal object.
450 *
451 * All requests for themed output must go through this function. It examines
452 * the request and routes it to the appropriate theme function. If the current
453 * theme does not provide an override function, the generic theme function is
454 * called.
455 *
456 * For example, to retrieve the HTML that is output by theme_placeholder(text),
457 * call Drupal.theme('placeholder', text).
458 *
459 * @param func
460 *   The name of the theme function to call.
461 * @param ...
462 *   Additional arguments to pass along to the theme function.
463 * @return
464 *   Any data the theme function returns. This could be a plain HTML string,
465 *   but also a complex object.
466 */
467Drupal.theme = function(func) {
468  for (var i = 1, args = []; i < arguments.length; i++) {
469    args.push(arguments[i]);
470  }
471
472  return (Drupal.theme[func] || Drupal.theme.prototype[func]).apply(this, args);
473};
474
475/**
476 * Parse a JSON response.
477 *
478 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
479 */
480Drupal.parseJson = function (data) {
481  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
482    return { status: 0, data: data.length ? data : Drupal.t('Unspecified error') };
483  }
484  return eval('(' + data + ');');
485};
486
487/**
488 * Freeze the current body height (as minimum height). Used to prevent
489 * unnecessary upwards scrolling when doing DOM manipulations.
490 */
491Drupal.freezeHeight = function () {
492  Drupal.unfreezeHeight();
493  var div = document.createElement('div');
494  $(div).css({
495    position: 'absolute',
496    top: '0px',
497    left: '0px',
498    width: '1px',
499    height: $('body').css('height')
500  }).attr('id', 'freeze-height');
501  $('body').append(div);
502};
503
504/**
505 * Unfreeze the body height
506 */
507Drupal.unfreezeHeight = function () {
508  $('#freeze-height').remove();
509};
510
511/**
512 * Wrapper around encodeURIComponent() which avoids Apache quirks (equivalent of
513 * drupal_urlencode() in PHP). This function should only be used on paths, not
514 * on query string arguments.
515 */
516Drupal.encodeURIComponent = function (item, uri) {
517  uri = uri || location.href;
518  item = encodeURIComponent(item).replace(/%2F/g, '/');
519  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
520};
521
522/**
523 * Get the text selection in a textarea.
524 */
525Drupal.getSelection = function (element) {
526  if (typeof(element.selectionStart) != 'number' && document.selection) {
527    // The current selection
528    var range1 = document.selection.createRange();
529    var range2 = range1.duplicate();
530    // Select all text.
531    range2.moveToElementText(element);
532    // Now move 'dummy' end point to end point of original range.
533    range2.setEndPoint('EndToEnd', range1);
534    // Now we can calculate start and end points.
535    var start = range2.text.length - range1.text.length;
536    var end = start + range1.text.length;
537    return { 'start': start, 'end': end };
538  }
539  return { 'start': element.selectionStart, 'end': element.selectionEnd };
540};
541
542/**
543 * Build an error message from ahah response.
544 */
545Drupal.ahahError = function(xmlhttp, uri) {
546  if (xmlhttp.status == 200) {
547    if (jQuery.trim(xmlhttp.responseText)) {
548      var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
549    }
550    else {
551      var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri });
552    }
553  }
554  else {
555    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
556  }
557  return message.replace(/\n/g, '<br />');
558}
559
560// Global Killswitch on the <html> element
561$(document.documentElement).addClass('js');
562// Attach all behaviors.
563$(document).ready(function() {
564  Drupal.attachBehaviors(this);
565});
566
567/**
568 * The default themes.
569 */
570Drupal.theme.prototype = {
571
572  /**
573   * Formats text for emphasized display in a placeholder inside a sentence.
574   *
575   * @param str
576   *   The text to format (plain-text).
577   * @return
578   *   The formatted text (html).
579   */
580  placeholder: function(str) {
581    return '<em>' + Drupal.checkPlain(str) + '</em>';
582  }
583};
584;
585Drupal.locale = { 'pluralFormula': function($n) { return Number(($n!=1)); }, 'strings': {"Unspecified error":"Erreur non sp\u00e9cifi\u00e9e","Testing clean URLs...":"Test des URLs simplifi\u00e9es...","Your server has been successfully tested to support this feature.":"Le test a r\u00e9ussi. Votre serveur supporte cette fonctionnalit\u00e9.","Your system configuration does not currently support this feature. The \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003ehandbook page on Clean URLs\u003c\/a\u003e has additional troubleshooting information.":"La configuration de votre syst\u00e8me ne supporte pas cette fonctionnalit\u00e9. La \u003ca href=\"http:\/\/drupal.org\/node\/15365\"\u003epage du manuel sur les URLs simplifi\u00e9es\u003c\/a\u003e apporte une aide suppl\u00e9mentaire.","Cancel":"Annuler","Read more":"En savoir plus","Save":"Sauvegarder","Upload":"Transfert de fichiers","file":"fichier","Published":"Publi\u00e9","Promoted to front page":"Promu en page d'accueil","1 attachment":"@count fichier attach\u00e9","@count attachments":"@count fichiers attach\u00e9s","Anonymous":"Anonyme","Select all rows in this table":"S\u00e9lectionner toutes les lignes du tableau","Deselect all rows in this table":"D\u00e9s\u00e9lectionner toutes les lignes du tableau","Create new revision":"Cr\u00e9er une nouvelle r\u00e9vision","Not published":"Non publi\u00e9","Only files with the following extensions are allowed: %files-allowed.":"Seuls les fichiers se terminant par les extensions suivantes sont autoris\u00e9s\u0026nbsp;: %files-allowed.","Drag to re-order":"Cliquer-d\u00e9poser pour r\u00e9-organiser","Changes made in this table will not be saved until the form is submitted.":"Les changements effectu\u00e9s dans ce tableau ne seront pris en compte que lorsque la configuration aura \u00e9t\u00e9 enregistr\u00e9e.","The changes to these blocks will not be saved until the \u003cem\u003eSave blocks\u003c\/em\u003e button is clicked.":"N'oubliez pas de cliquer sur \u003cem\u003eEnregistrer les blocs\u003c\/em\u003e pour confirmer les modifications apport\u00e9es ici.","Close":"Fermer","Copyright":"Auteur","Minimum":"Minimum","Maximum":"Maximum","Requires a title":"Titre obligatoire","No body":"Pas de corps","Automatic alias":"Alias automatique","Alias: @alias":"Alias : @alias","No alias":"Aucun alias","New revision":"Nouvelle r\u00e9vision","No revision":"Aucune r\u00e9vision","By @name on @date":"Par @name le @date","By @name":"Par @name","Sticky on top of lists":"Epingl\u00e9 en haut des listes","Not in book":"Pas dans le livre","New book":"Nouveau livre","Not in menu":"Pas dans le menu","No attachments":"Aucune pi\u00e8ce jointe","Not restricted":"Non restreint","Save and send":"Sauvegarder et envoyer","Save and send test":"Sauvegarder et envoyer un test","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Le fichier s\u00e9lectionn\u00e9 %filename ne peut pas \u00eatre transf\u00e9r\u00e9. Seulement les fichiers avec les extensions suivantes sont permis : %extensions.","File browsing is disabled in directory %dir.":"La navigation de fichiers a \u00e9t\u00e9 d\u00e9sactiv\u00e9e dans le r\u00e9pertoire %dir.","You can not perform this operation.":"Vous ne pouvez pas r\u00e9aliser cette op\u00e9ration.","Do you want to refresh the current directory?":"Voulez-vous rafra\u00eechir ce r\u00e9pertoire?","Delete selected files?":"Voulez-vous vraiment supprimer la s\u00e9lection?","Please select a thumbnail.":"Veuillez choisir une vignette.","Please specify dimensions within the allowed range that is from 1x1 to @dimensions.":"Veuillez sp\u00e9cifier des dimensions qui correspondent \u00e0 la plage allou\u00e9e, soit de 1x1 \u00e0 @dimensions.","unlimited":"illimit\u00e9","Please select a file.":"Veuillez choisir un fichier","Log messages":"Messages du journal","%filename is not an image.":"%filename n'est pas une image.","You must select at least %num files.":"Vous devez s\u00e9lectionner au moins %num fichier(s).","You are not allowed to operate on more than %num files.":"Vous n'\u00eates pas autoris\u00e9(e) \u00e0 effectuer des op\u00e9rations sur plus de %num fichiers.","Insert file":"Ins\u00e9rer un fichier","jQuery UI Tabs: Mismatching fragment identifier.":"Onglets d'interface jQuery : identifiant de fragment ne correspondant pas.","jQuery UI Tabs: Not enough arguments to add tab.":"Onglets d'interface jQuery : pas assez d'arguments pour ajouter l'onglet.","
585Edit images":"Modifier les informations des images","Image name":"Nom de l'image","Legend":"L\u00e9gende","Add file":"Ajouter un fichier","Next":"Suivant","An error occurred at ":"Une erreur s'est produite \u00e0","The link cannot be inserted because the parent window cannot be found.":"Le lien ne peut \u00eatre ins\u00e9r\u00e9 parce que la fen\u00eatre parente ne peut \u00eatre trouv\u00e9e.","Distance":"Distance","No corresponding location have been found for the specified address. This can be caused by a recent, incorrect, or imprecise address. If you see this error, re-try with a more accurate address.":"Aucune localisation g\u00e9ographique correspondante n'a pu \u00eatre trouv\u00e9e pour l'adresse sp\u00e9cifi\u00e9e. Ce qui peut \u00eatre d\u00fb \u00e0 une adresse r\u00e9cente, incorrecte, ou peu pr\u00e9cise. Si vous voyez cette erreur, r\u00e9essayez avec une adresse plus pr\u00e9cise.","The request cannot have been successfully computed. No reason ou the failure is known.":"La demande d'itin\u00e9raire n'a pu \u00eatre calcul\u00e9e avec succ\u00e8s, aucune raison de l'\u00e9chec n'est connue.","The HTTP q parameter was either missing or had no value. For directions requests, this means that no query was specified in the input.":"Le param\u00e8tre q de la requ\u00eate HTTP est soit manquant, soit nul. Pour les requ\u00eates d'itin\u00e9raires, cela signifie qu'aucune requ\u00eate n'a \u00e9t\u00e9 sp\u00e9cifi\u00e9e.","The Google Maps key isn't valid or don't match the domain name.":"La cl\u00e9 (Google Maps Key) n'est pas valide ou ne correspond pas au nom de domaine.","The request cannot have been correctly parsed.":"La demande d'itin\u00e9raire n'a pu \u00eatre correctement analys\u00e9e.","The route cannot have been computed with these points.":"L'itin\u00e9raire n'a pas pu \u00eatre calcul\u00e9 avec ces deux valeurs.","You do not have filled the \"city\" field !":"Vous n'avez pas renseign\u00e9 le champ \"ville\" !","Choose your address among the following ones :":"Choisissez votre adresse parmi les suivantes :","No corresponding location have been found for the specified address.":"Aucune localisation g\u00e9ographique correspondante n'a pu \u00eatre trouv\u00e9e pour l'adresse sp\u00e9cifi\u00e9e. ","There was an error on this request. Please contact an administrator.":"Une erreur s'est produite \u00e0 l'ex\u00e9cution de la requ\u00eate. Contactez un administrateur.","Manage directories":"G\u00e9rer les r\u00e9pertoires.","You are not alllowed to create more than %num directories.":"Vous n'\u00eates pas autoris\u00e9 \u00e0 cr\u00e9er plus de %num r\u00e9pertoires.","Subdirectory %dir already exists.":"Le sous-r\u00e9pertoire %dir existe d\u00e9j\u00e0.","Subdirectory %dir does not exist.":"Le sous-r\u00e9pertoire %dir n'existe pas.","Are you sure want to delete this subdirectory with all directories and files in it?":"\u00cates-vous s\u00fbr(e) de vouloir supprimer ce sous-r\u00e9pertoire et tous les dossiers et fichiers qu'il contient ?","No terms":"Aucun terme","No result match your search":"Aucun r\u00e9sultat ne correspond \u00e0 votre recherche","Close window":"Fermer la fen\u00eatre","No page title":"Sans titre","Elevation":"D\u00e9nivel\u00e9","The webpage has gone over the requests limit in too short a period of time.":"La page Web a d\u00e9pass\u00e9 la limite des demandes dans un d\u00e9lai trop court de temps","The webpage is not allowed to use the directions service.":"La page web n'est pas autoris\u00e9 \u00e0 utiliser le service des directions","A directions request could not be processed due to a server error. The request may succeed if you try again.":"La demande n'a pas pu \u00eatre trait\u00e9e en raison d'une erreur de serveur. Veuillez r\u00e9\u00e9ssayez \u00e0 nouveau","No route could be found between the origin and destination.":"Aucune route n'a pu \u00eatre trouv\u00e9 entre le point de d\u00e9part et la destination"} };;
586// ColorBox v1.3.19 - jQuery lightbox plugin
587// (c) 2011 Jack Moore - jacklmoore.com
588// License: http://www.opensource.org/licenses/mit-license.php
589(function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&&(g.id=f+d),e&&(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c<0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.slice(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&&c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,
589k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&&a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&&b.body&&(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&&W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),W.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))}),a("."+g,b).live("click",function(a){a.which>1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={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:.9,preloading:!0,current:"Image {current} \/ {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!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:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&&!a.support.style,o=n&&!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&&!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left
589:e.left}),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&&setTimeout(function(){z.bind("resize."+f,W.position)},1),b&&b()},step:function(){i(this)}})},W.resize=function(a){S&&(a=a||{},a.width&&(K.w=_(a.width,"x")-O-M),a.innerWidth&&(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=_(a.height,"y")-N-L),a.innerHeight&&(K.h=_(a.innerHeight,"y")),!a.innerHeight&&!a.height&&(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function h(){return K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(!S)return;var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Z(X,"LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function q(){n&&r[0].style.removeAttribute("filter")}var b,c,g=y.length,h,i="frameBorder",k="allowTransparency",l,o,p;if(!S)return;l=function(){clearTimeout(V),C.hide(),bc(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show();if(g>1){typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||Q<g-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),K.slideshow&&F.show();if(K.preloading){b=[$(-1),$(1)];while(c=y[b.pop()])o=a.data(c,e).href||c.href,a.isFunction(o)&&(o=o.call(c)),ba(o)&&(p=new Image,p.src=o)}}else J.hide();K.iframe?(h=Z("iframe")[0],i in h&&(h[i]=0),k in h&&(h[k]="true"),h.name=f+ +(new Date),K.fastIframe?l():a(h).one("load",l),h.src=K.href,K.scrolling||(h.scrolling="no"),a(h).addClass(f+"Iframe").appendTo(A).one(m,function(){h.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,q):q()},K.transition==="fade"?r.fadeTo(d,0,function(){W.position(0,c)}):W.position(d,c)},W.load=function(b){var c,d,e=W.prep;T=!0,R=!1,P=y[Q],b||bb(),bc(m),bc(i,K.onLoad),K.h=K.height?_(K.height,"y")-N-L:K.innerHeight&&_(K.innerHeight,"y"),K.w=K.width?_(K.width,"x")-O-M:K.innerWidth&&_(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=_(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=_(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,V=setTimeout(function(){C.show()},100),K.inline?(Z(X).hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):ba(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Z(X,"Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(K.loop||y[Q+1])&&(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&&y[1]&&(K.loop||y[Q+1])&&(Q=$(1),W.load())},W.prev=function(){!T&&y[1]&&(K.loop||Q)&&(Q=$(-1),W.load())},W.close=function(){S&&!U&&(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this);;
590(function ($) {
591
592Drupal.behaviors.initColorbox = function (context) {
593  if (!$.isFunction($.colorbox)) {
594    return;
595  }
596  $('a, area, input', context)
597    .filter('.colorbox:not(.initColorbox-processed)')
598    .addClass('initColorbox-processed')
599    .colorbox(Drupal.settings.colorbox);
600};
601
602{
603  $(document).bind('cbox_complete', function () {
604    Drupal.attachBehaviors('#cboxLoadedContent');
605  });
606}
607
608})(jQuery);
609;
610/**
611 * Display banner if Internet Explorer version is less than 7.
612 */
613Drupal.behaviors.ie6nomore = function (context) {
614  if($.browser.msie && $.browser.version < 7) {
615    $("body").prepend($("#ie6nomore")).find('#ie6nomore').show();
616  }
617};
618/**
619* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
620* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
621* 
622* @param  f  onMouseOver function || An object with configuration options
623* @param  g  onMouseOut function  || Nothing (use configuration options object)
624* @author    Brian Cherne brian(at)cherne(dot)net
625*/
626(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);;
627/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
628 * Licensed under the MIT License (LICENSE.txt).
629 *
630 * Version 2.1.2
631 */
632(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);;
633/*
634 * Superfish v1.4.8 - jQuery menu widget
635 * Copyright (c) 2008 Joel Birch
636 *
637 * Dual licensed under the MIT and GPL licenses:
638 *   http://www.opensource.org/licenses/mit-license.php
639 *   http://www.gnu.org/licenses/gpl.html
640 *
641 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
642 */
643
644(function($){
645  $.fn.superfish = function(op){
646    var sf = $.fn.superfish,
647      c = sf.c,
648      $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
649      over = function(){
650        var $$ = $(this), menu = getMenu($$);
651        clearTimeout(menu.sfTimer);
652        $$.showSuperfishUl().siblings().hideSuperfishUl();
653      },
654      out = function(){
655        var $$ = $(this), menu = getMenu($$), o = sf.op;
656        clearTimeout(menu.sfTimer);
657        menu.sfTimer=setTimeout(function(){
658          o.retainPath=($.inArray($$[0],o.$path)>-1);
659          $$.hideSuperfishUl();
660          if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
661        },o.delay);
662      },
663      getMenu = function($menu){
664        var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
665        sf.op = sf.o[menu.serial];
666        return menu;
667      },
668      addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
669
670    return this.each(function() {
671      var s = this.serial = sf.o.length;
672      var o = $.extend({},sf.defaults,op);
673      o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
674        $(this).addClass([o.hoverClass,c.bcClass].join(' '))
675          .filter('li:has(ul)').removeClass(o.pathClass);
676      });
677      sf.o[s] = sf.op = o;
678
679      $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
680        if (o.autoArrows) addArrow( $('>a:first-child',this) );
681      })
682      .not('.'+c.bcClass)
683        .hideSuperfishUl();
684
685      var $a = $('a',this);
686      $a.each(function(i){
687        var $li = $a.eq(i).parents('li');
688        $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
689      });
690      o.onInit.call(this);
691
692    }).each(function() {
693      var menuClasses = [c.menuClass];
694      if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
695      $(this).addClass(menuClasses.join(' '));
696    });
697  };
698
699  var sf = $.fn.superfish;
700  sf.o = [];
701  sf.op = {};
702  sf.IE7fix = function(){
703    var o = sf.op;
704    if ($.browser.msie && $.browser.version >
704 6 && o.dropShadows && o.animation.opacity!=undefined)
705      this.toggleClass(sf.c.shadowClass+'-off');
706    };
707  sf.c = {
708    bcClass: 'sf-breadcrumb',
709    menuClass: 'sf-js-enabled',
710    anchorClass: 'sf-with-ul',
711    arrowClass: 'sf-sub-indicator',
712    shadowClass: 'sf-shadow'
713  };
714  sf.defaults = {
715    hoverClass: 'sfHover',
716    pathClass: 'overideThisToUse',
717    pathLevels: 1,
718    delay: 800,
719    animation: {opacity:'show'},
720    speed: 'normal',
721    autoArrows: true,
722    dropShadows: true,
723    disableHI: false, // true disables hoverIntent detection
724    onInit: function(){}, // callback functions
725    onBeforeShow: function(){},
726    onShow: function(){},
727    onHide: function(){}
728  };
729  $.fn.extend({
730    hideSuperfishUl : function(){
731      var o = sf.op,
732        not = (o.retainPath===true) ? o.$path : '';
733      o.retainPath = false;
734      var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
735          .find('>ul').hide().css('visibility','hidden');
736      o.onHide.call($ul);
737      return this;
738    },
739    showSuperfishUl : function(){
740      var o = sf.op,
741        sh = sf.c.shadowClass+'-off',
742        $ul = this.addClass(o.hoverClass)
743          .find('>ul:hidden').css('visibility','visible');
744      sf.IE7fix.call($ul);
745      o.onBeforeShow.call($ul);
746      $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
747      return this;
748    }
749  });
750})(jQuery);;
751/*
752 * Supersubs v0.2b - jQuery plugin - LAST UPDATE: MARCH 23rd, 2011
753 * Copyright (c) 2008 Joel Birch
754 *
755 * Jan 16th, 2011 - Modified a little in order to work with NavBar menus as well.
756 *
757 * Dual licensed under the MIT and GPL licenses:
758 *   http://www.opensource.org/licenses/mit-license.php
759 *   http://www.gnu.org/licenses/gpl.html
760 *
761 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
762 * their longest list item children. If you use this, please expect bugs and report them
763 * to the jQuery Google Group with the word 'Superfish' in the subject line.
764 *
765 */
766
767(function($){ // $ will refer to jQuery within this closure
768
769  $.fn.supersubs = function(options){
770    var opts = $.extend({}, $.fn.supersubs.defaults, options);
771	// return original object to support chaining
772    return this.each(function() {
773      // cache selections
774      var $$ = $(this);
775      // support metadata
776      var o = $.meta ? $.extend({}, opts, $$.data()) : opts;
777      // get the font size of menu.
778      // .css('fontSize') returns various results cross-browser, so measure an em dash instead
779      var fontsize = $('<li id="menu-fontsize">&#8212;</li>').css({
780        'padding' : 0,
781        'position' : 'absolute',
782        'top' : '-99999em',
783        'width' : 'auto'
784      }).appendTo($$).width(); //clientWidth is faster, but was incorrect here
785      // remove em dash
786      $('#menu-fontsize').remove();
787
788      // Jump on level if it's a "NavBar"
789      if ($$.hasClass('sf-navbar')) {
790        $$ = $('li > ul', $$);
791      }
792      // cache all ul elements 
793      $ULs = $$.find('ul:not(.sf-megamenu)');
794      // loop through each ul in menu
795      $ULs.each(function(i) {
796        // cache this ul
797        var $ul = $ULs.eq(i);
798        // get all (li) children of this ul
799        var $LIs = $ul.children();
800        // get all anchor grand-children
801        var $As = $LIs.children('a');
802        // force content to one line and save current float property
803        var liFloat = $LIs.css('white-space','nowrap').css('float');
804        // remove width restrictions and floats so elements remain vertically stacked
805        var emWidth = $ul.add($LIs).add($As).css({
806          'float' : 'none',
807          'width'  : 'auto'
808        })
809        // this ul will now be shrink-wrapped to longest li due to position:absolute
810        // so save its width as ems. Clientwidth is 2 times faster than .width() - thanks Dan Switzer
811        .end().end()[0].clientWidth / fontsize;
812        // add more width to ensure lines don't turn over at certain sizes in various browsers
813        emWidth += o.extraWidth;
814        // restrict to at least minWidth and at most maxWidth
815        if (emWidth > o.maxWidth)    { emWidth = o.maxWidth; }
816        else if (emWidth < o.minWidth)  { emWidth = o.minWidth; }
817        emWidth += 'em';
818        // set ul to width in ems
819        $ul.css('width',emWidth);
820        // restore li floats to avoid IE bugs
821        // set li width to full width of this ul
822        // revert white-space to normal
823        $LIs.css({
824          'float' : liFloat,
825          'width' : '100%',
826          'white-space' : 'normal'
827        })
828        // update offset position of descendant ul to reflect new width of parent
829        .each(function(){
830          var $childUl = $('>ul',this);
831          var offsetDirection = $childUl.css('left')!==undefined ? 'left' : 'right';
832          $childUl.css(offsetDirection,emWidth);
833        });
834      });
835
836    });
837  };
838  // expose defaults
839  $.fn.supersubs.defaults = {
840    minWidth: 9, // requires em unit.
841    maxWidth: 25, // requires em unit.
842    extraWidth: 0 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
843  };
844
845})(jQuery); // plugin code ends;
846/*
847* Supposition v0.2 - an optional enhancer for Superfish jQuery menu widget - LAST UPDATE: MARCH 23rd, 2011
848*
849* Copyright (c) 2008 Joel Birch - based mostly on work by Jesse Klaasse and credit goes largely to him.
850* Special thanks to Karl Swedberg for valuable input.
851* 
852* Dec 28th, 2010 - Modified for the Superfish project for Drupal (http://drupal.org/project/superfish)
853*
854* jQuery version: 1.3.x or higher.
855*
856* Dual licensed under the MIT and GPL licenses:
857* 	http://www.opensource.org/licenses/mit-license.php
858* 	http://www.gnu.org/licenses/gpl.html
859*/
860
861(function($){
862  $.fn.supposition = function(){
863    var $w = $(window), /*do this once instead of every onBeforeShow call*/
864    _offset = function(dir) {
865      return window[dir == 'y' ? 'pageYOffset' : 'pageXOffset']
866      || document.documentElement && document.documentElement[dir=='y' ? 'scrollTop' : 'scrollLeft']
867      || document.body[dir=='y' ? 'scrollTop' : 'scrollLeft'];
868    },
869    onHide = function(){
870      this.css({Top:'',Right:'',Bottom:'',Left:''});
871    },
872    onBeforeShow = function(){
873      this.each(function(){
874        var $u = $(this);
875        $u.css('display','block');
876        var menuWidth = $u.width(),
877        menuParentWidth = $u.closest('li').outerWidth(true),
878        menuParentLeft = $u.closest('li').offset().left,
879        totalRight = $w.width() + _offset('x'),
880        menuRight = $u.offset().left + menuWidth,
881        exactMenuWidth = (menuRight > (menuParentWidth + menuParentLeft)) ? menuWidth - (menuRight - (menuParentWidth + menuParentLeft)) : menuWidth;  
882        if ($u.parents('.sf-js-enabled').hasClass('rtl')) {
883          if (menuParentLeft < exactMenuWidth) {
884            $u.css('left', menuParentWidth + 'px');
885            $u.css('right', 'auto');
886          }
887        }
888        else {
889          if (menuRight > totalRight && menuParentLeft > menuWidth) {
890            $u.css('right', menuParentWidth + 'px');
891            $u.css('left', 'auto');
892          }
893        }
894        var windowHeight = $w.height(),
895        offsetTop = $u.offset().top,
896        menuParentHeight = $u.parent().outerHeight(true),
897        menuHeight = $u.height(),
898        baseline = windowHeight + _offset('y');
899        var expandUp = ((offsetTop + menuHeight > baseline) && (offsetTop > menuHeight));
900        if (expandUp) {
901          $u.css('bottom', menuParentHeight + 'px');
902          $u.css('top', 'auto');
903        }
904        $u.css('display','none');
905      });
906    };
907
908    return this.each(function() {
909    var o = $.fn.superfish.o[this.serial]; /* get this menu's options */
910
911    /* if callbacks already set, store them */
912    var _onBeforeShow = o.onBeforeShow,
913    _onHide = o.onHide;
914
915    $.extend($.fn.superfish.o[this.serial],{
916    onBeforeShow: function() {
917    onBeforeShow.call(this); /* fire our Supposition callback */
918    _onBeforeShow.call(this); /* fire stored callbacks */
919    },
920    onHide: function() {
921    onHide.call(this); /* fire our Supposition callback */
922    _onHide.call(this); /* fire stored callbacks */
923    }
924    });
925    });
926  };
927})(jQuery);;
928/*
929 * sf-Touchscreen v1.0b - Provides touchscreen compatibility for the jQuery Superfish plugin. - LAST UPDATE: MARCH 23rd, 2011
930 *
931 * Developer's notes:
932 * Built as a part of the Superfish project for Drupal (http://drupal.org/project/superfish) 
933 * Found any bug? have any cool ideas? contact me right away! http://drupal.org/user/619294/contact
934 *
935 * jQuery version: 1.3.x or higher.
936 *
937 * Dual licensed under the MIT and GPL licenses:
938 *   http://www.opensource.org/licenses/mit-license.php
939 *   http://www.gnu.org/licenses/gpl.html
940*/
941
942(function($){
943  $.fn.sftouchscreen = function() {
944    // Return original object to support chaining.
945    return this.each( function() {
946      // Select hyperlinks from parent menu items.
947      $(this).find('li > ul').closest('li').children('a').each( function() {
948	    var $item = $(this);
949        // No .toggle() here as it's not possible to reset it.
950        $item.click( function(event){
951	      // Already clicked? proceed to the URI.
952          if ($item.hasClass('sf-clicked')) {
953            var $uri = $item.attr('href');
954            window.location = $uri;
955          }
956          else {
957            event.preventDefault();
958            $item.addClass('sf-clicked');
959          }
960        }).closest('li').mouseleave( function(){
961          // So, we reset everything.
962          $item.removeClass('sf-clicked');
963        });
964	  });
965    });
966  };
967})(jQuery);;
968// $Id: jquery.textsize.js,v 1.1.2.8 2009/12/10 22:45:25 christianzwahlen Exp $
969
970if (Drupal.jsEnabled) {
971  $(document).ready(function(){
972    $("a.ts_increase_variable").attr({ href: "#" });
973    $("a.ts_decrease_variable").attr({ href: "#" });
974    $("a.ts_normal_variable").attr({ href: "#" });
975    $("a.ts_increase_fix").attr({ href: "#" });
976    $("a.ts_decrease_fix").attr({ href: "#" });
977    $("a.ts_normal_fix").attr({ href: "#" });
978    function textsizeDisplayCalc(ts_v) {
979      if (textsizeDisplay == 1) {
980        ts_c = (100 * ts_v / textsizeNormal);
981        return Math.round(ts_c);
982      }
983      else {
984        return ts_v;
985      }
986    }
987    function textsizeIncrease(ts_a, ts_b) {
988      if (ts_a == textsizeMaximum) {
989        return ts_a;
990      }
991      else {
992        return 1*ts_a + 1*textsizeIncrement;
993      }
994    }
995    function textsizeDecrease(ts_a, ts_b) {
996      if (ts_a == textsizeMinimum) {
997        return ts_a;
998      }
999      else {
1000        return 1*ts_a - 1*textsizeIncrement;
1001      }
1002    }
1003    function TSremoveBC(){
1004      var tsElement = $(textsizeElement + textsizeElementClass);
1005      var tsClasses = tsElement.attr('class').split(' ');
1006      for( var i in tsClasses ){
1007        if( tsClasses[i].substring(0,8) == 'textsize' ){
1008          tsElement.removeClass( tsClasses[i] );
1009          break;
1010        }
1011      }
1012    }
1013    function tsIncrease(){
1014      TSremoveBC();
1015      $("#textsize_current").empty();
1016      $("#textsize_current").append((textsizeNormalDisplay + textsizeIncrementDisplay) + '%');
1017      $("#textsize_current").attr({ title: textsizeCurrentText + ": " + (textsizeNormalDisplay + textsizeIncrementDisplay) + '%'});
1018      $(textsizeElement + textsizeElementClass).addClass('textsize-' + (textsizeNormal + textsizeIncrement));
1019      $(textsizeElement + textsizeElementClass).css("font-size", (textsizeNormal + textsizeIncrement) + "%");
1020      $.cookie('textsize', textsizeIncrease(textsizeNormalDisplay, textsizeIncrementDisplay), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1021      return false;
1022    }
1023    function tsDecrease(){
1024      TSremoveBC();
1025      $("#textsize_current").empty();
1026      $("#textsize_current").append((textsizeNormalDisplay - textsizeIncrementDisplay) + '%');
1027      $("#textsize_current").attr({ title: textsizeCurrentText + ": " + (textsizeNormalDisplay - textsizeIncrementDisplay) + '%'});
1028      $(textsizeElement + textsizeElementClass).addClass('textsize-' + (textsizeNormal - textsizeIncrement));
1029      $(textsizeElement + textsizeElementClass).css("font-size", (textsizeNormal - textsizeIncrement) + "%");
1030      $.cookie('textsize', textsizeDecrease(textsizeNormalDisplay, textsizeIncrementDisplay), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1031      return false;
1032    }
1033    function tsNormal(){
1034      TSremoveBC();
1035      $("#textsize_current").empty();
1036      $("#textsize_current").append(textsizeNormalDisplay + '%');
1037      $("#textsize_current").removeClass('error');
1038      $("#textsize_current").attr({ title: textsizeCurrentText + ": " + textsizeNormalDisplay + '%'});
1039      $(textsizeElement + textsizeElementClass).addClass('textsize-' + textsizeNormal);
1040      $(textsizeElement + textsizeElementClass).css("font-size", textsizeNormal + "%");
1041      $.cookie('textsize', textsizeNormal, { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1042      return false;
1043    }
1044    function tsForm() {
1045      var ts_val = $("#edit-textsize-select").val();
1046      var ts_val_d = textsizeDisplayCalc($("#edit-textsize-select").val());
1047      TSremoveBC();
1048      $.cookie('textsize', ts_val, { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1049      $(textsizeElement + textsizeElementClass).addClass("textsize-" + ts_val);
1050      $("#textsize_current").empty();
1051      $("#textsize_current").append(ts_val_d + '%');
1052      $("#textsize_current").attr({ title: textsizeCurrentText + ": " + ts_val_d + '%'});
1053      $(textsizeElement + textsizeElementClass).addClass('textsize-' + ts_val);
1054      $(textsizeElement + textsizeElementClass).css("font-size", ts_val + "%");
1055    }
1056    $("a.ts_increase_variable[href=#]").click(
1057      function (){
1058        if (!$.cookie("textsize")) {
1059          tsNormal();
1060        }
1061        if ($.cookie("textsize") && $.cookie("textsize") < textsizeMaximum) {
1062          TSremoveBC();
1063          $.cookie('textsize', textsizeIncrease($.cookie("textsize"), textsizeIncrement), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1064          $("#textsize_current").empty();
1065          $("#textsize_current").append( textsizeDisplayCalc($.cookie("textsize")) + '%');
1066          $("#textsize_current").attr({ title: textsizeCurrentText + ": " + textsizeDisplayCalc($.cookie("textsize")) + '%'});
1067          $("#textsize_current").removeClass('error');
1068          $(textsizeElement + textsizeElementClass).addClass('textsize-' + $.cookie("textsize"));
1069          $(textsizeElement + textsizeElementClass).css("font-size", $.cookie("textsize") + "%");
1070          return false;
1071        }
1072        else if ($.cookie("textsize") && ($.cookie("textsize") == textsizeMaximum) && textsizeReset == 0) {
1073          $("#textsize_current").empty();
1074          $("#textsize_current").append( '<abbr title="' + Drupal.t('Maximum') + '" class="textsize">' + Drupal.t('Max.') + '</abbr> ' + textsizeDisplayCalc(textsizeMaximum) + '%');
1075          $("#textsize_current").addClass('error');
1076          return false;
1077        }
1078        else if ($.cookie("textsize") && ($.cookie("textsize") == textsizeMaximum) && textsizeReset == 1) {
1079          tsNormal();
1080          return false;
1081        }
1082      }
1083    );
1084    $("a.ts_increase_fix[href=#]").click(
1085      function (){
1086        if ($.cookie("textsize") && $.cookie("textsize") < (textsizeNormal + textsizeIncrement)) {
1087          TSremoveBC();
1088          $.cookie('textsize', (textsizeNormal + textsizeIncrement), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1089          $("#textsize_current").empty();
1090          $("#textsize_current").append( textsizeDisplayCalc($.cookie("textsize")) + '%');
1091          $("#textsize_current").attr({ title: textsizeCurrentText + ": " + textsizeDisplayCalc($.cookie("textsize")) + '%'});
1092          $("#textsize_current").removeClass('error');
1093          $(textsizeElement + textsizeElementClass).addClass('textsize-' + (textsizeNormal + textsizeIncrement));
1094          $(textsizeElement + textsizeElementClass).css("font-size", (textsizeNormal + textsizeIncrement) + "%");
1095          return false;
1096        }
1097        else if ($.cookie("textsize") && $.cookie("textsize") == (textsizeNormal + textsizeIncrement)) {
1098          $("#textsize_current").empty();
1099          $("#textsize_current").append( '<abbr title="' + Drupal.t('Maximum') + '" class="textsize">' + Drupal.t('Max.') + '</abbr> ' + textsizeDisplayCalc((textsizeNormal + textsizeIncrement)) + '%');
1100          $("#textsize_current").addClass('error');
1101          return false;
1102        }
1103        else {
1104          tsIncrease()
1105        }
1106      }
1107    );
1108    $("a.ts_decrease_variable[href=#]").click(
1109      function (){
1110        if (!$.cookie("textsize")) {
1111          tsNormal();
1112        }
1113        if ($.cookie("textsize") && $.cookie("textsize") > textsizeMinimum) {
1114          TSremoveBC();
1115          $.cookie('textsize', textsizeDecrease($.cookie("textsize"), textsizeIncrement), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1116          $("#textsize_current").empty();
1117          $("#textsize_current").append( textsizeDisplayCalc($.cookie("textsize")) + '%');
1118          $("#textsize_current").attr({ title: textsizeCurrentText + ": " + textsizeDisplayCalc($.cookie("textsize")) + '%'});
1119          $("#textsize_current").removeClass('error');
1120          $(textsizeElement + textsizeElementClass).addClass('textsize-' + $.cookie("textsize"));
1121          $(textsizeElement + textsizeElementClass).css("font-size", $.cookie("textsize") + "%");
1122          return false;
1123        }
1124        else if ($.cookie("textsize") && ($.cookie("textsize") == textsizeMinimum) && textsizeReset == 0) {
1125          $("#textsize_current").empty();
1126          $("#textsize_current").append( '<abbr title="' + Drupal.t('Minimum') + '" class="textsize">' + Drupal.t('Min.') + '</abbr> ' + textsizeDisplayCalc(textsizeMinimum) + '%');
1127          $("#textsize_current").addClass('error');
1128          return false;
1129        }
1130        else if ($.cookie("textsize") && ($.cookie("textsize") == textsizeMinimum) && textsizeReset == 1) {
1131          tsNormal()
1132          return false;
1133        }
1134      }
1135    );
1136    $("a.ts_decrease_fix[href=#]").click(
1137      function (){
1138        if ($.cookie("textsize") && $.cookie("textsize") > (textsizeNormal - textsizeIncrement)) {
1139          TSremoveBC();
1140          $.cookie('textsize', (textsizeNormal - textsizeIncrement), { expires: textsizeCookieExpires, path: textsizeCookieDomain});
1141          $("#textsize_current").empty();
1142          $("#textsize_current").append( textsizeDisplayCalc($.cookie("textsize")) + '%');
1143          $("#textsize_current").attr({ title: textsizeCurrentText + ": " + textsizeDisplayCalc($.cookie("textsize")) + '%'});
1144          $("#textsize_current").removeClass('error');
1145          $(textsizeElement + textsizeElementClass).addClass('textsize-' + (textsizeNormal - textsizeIncrement));
1146          $(textsizeElement + textsizeElementClass).css("font-size", (textsizeNormal - textsizeIncrement) + "%");
1147          return false;
1148        }
1149        else if ($.cookie("textsize") && $.cookie("textsize") == (textsizeNormal - textsizeIncrement)) {
1150          $("#textsize_current").empty();
1151          $("#textsize_current").append( '<abbr title="' + Drupal.t('Minimum') + '" class="textsize">' + Drupal.t('Min.') + '</abbr> ' + textsizeDisplayCalc((textsizeNormal - textsizeIncrement)) + '%');
1152          $("#textsize_current").addClass('error');
1153          return false;
1154        }
1155        else {
1156          tsDecrease()
1157        }
1158      }
1159    );
1160    $("a.ts_normal_variable[href=#]").click(
1161      function (){
1162        tsNormal();
1163        return false;
1164      }
1165    );
1166    $("a.ts_normal_fix[href=#]").click(
1167      function (){
1168        tsNormal();
1169        return false;
1170      }
1171    );
1172    $("#edit-textsize-select").change(tsForm);
1173    $("#edit-textsize-submit").hide();
1174    $("img.ts_rollover").hover(
1175      function(){
1176        if($(this).attr("src").indexOf("16_hover") == -1) {
1177          var newSrc = $(this).attr("src").replace("16.gif","16_hover.gif#hover");
1178          $(this).attr("src",newSrc);
1179        }
1180      },
1181      function(){
1182        if($(this).attr("src").indexOf("16_hover.gif#hover") != -1) {
1183          var oldSrc = $(this).attr("src").replace("16_hover.gif#hover","16.gif");
1184          $(this).attr("src",oldSrc);
1185        }
1186        else if($(this).attr("src").indexOf("16_focus.gif#focus") != -1) {
1187          var oldSrc = $(this).attr("src").replace("16_focus.gif#focus","16.gif");
1188          $(this).attr("src",oldSrc);
1189        }
1190      }
1191    );
1192    $("a.ts_rollover").focus(
1193      function(){
1194        var tsIMG = $(this).children("img");
1195        if($(tsIMG).attr("src").indexOf("16_hover.gif#hover") != -1) {
1196          var newSrc = $(tsIMG).attr("src").replace("16_hover.gif#hover","16_focus.gif#focus");
1197          $(tsIMG).attr("src",newSrc);
1198        }
1199      }
1200    );
1201  });
1202}
1203;
1204/**
1205 * Cookie plugin
1206 *
1207 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
1208 * Dual licensed under the MIT and GPL licenses:
1209 * http://www.opensource.org/licenses/mit-license.php
1210 * http://www.gnu.org/licenses/gpl.html
1211 *
1212 */
1213jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};
1214;
1215(function(a){a.fn.daterangepicker=function(s){var d=a(this);var e=a.extend({presetRanges:[{text:"Today",dateStart:"today",dateEnd:"today"},{text:"Last 7 days",dateStart:"today-7days",dateEnd:"today"},{text:"Month to date",dateStart:function(){return Date.parse("today").moveToFirstDayOfMonth()},dateEnd:"today"},{text:"Year to date",dateStart:function(){var w=Date.parse("today");w.setMonth(0);w.setDate(1);return w},dateEnd:"today"},{text:"The previous Month",dateStart:function(){return Date.parse("1 month ago").moveToFirstDayOfMonth()},dateEnd:function(){return Date.parse("1 month ago").moveToLastDayOfMonth()}}],presets:{specificDate:"Specific Date",allDatesBefore:"All Dates Before",allDatesAfter:"All Dates After",dateRange:"Date Range"},rangeStartTitle:"Start date",rangeEndTitle:"End date",nextLinkText:"Next",prevLinkText:"Prev",target:d,doneButtonText:"Done",earliestDate:Date.parse("-15years"),latestDate:Date.parse("+15years"),constrainDates:false,rangeSplitter:"-",dateFormat:"m/d/yy",closeOnSelect:true,arrows:false,appendTo:"body",onClose:function(){},onOpen:function(){},onChange:function(){},datepickerOptions:null},s);var g={onSelect:function(A,z){var y=j.find(".range-start");var B=j.find(".range-end");if(j.find(".ui-daterangepicker-specificDate").is(".ui-state-active")){B.datepicker("setDate",y.datepicker("getDate"))}a(this).trigger("constrainOtherPicker");var x=b(y.datepicker("getDate"));var w=b(B.datepicker("getDate"));if(d.length==2){d.eq(0).val(x);d.eq(1).val(w)}else{d.val((x!=w)?x+" "+e.rangeSplitter+" "+w:x)}if(e.closeOnSelect){if(!j.find("li.ui-state-active").is(".ui-daterangepicker-dateRange")&&!j.is(":animated")){k()}a(this).trigger("constrainOtherPicker");e.onChange()}},defaultDate:+0};d.bind("change",e.onChange);e.datepickerOptions=(s)?a.extend(g,s.datepickerOptions):g;var m,l=Date.parse("today");var o,i;if(d.size()==2){o=Date.parse(d.eq(0).val());i=Date.parse(d.eq(1).val());if(o==null){o=i}if(i==null){i=o}}else{o=Date.parse(d.val().split(e.rangeSplitter)[0]);i=Date.parse(d.val().split(e.rangeSplitter)[1]);if(i==null){i=o}}if(o!=null){m=o}if(i!=null){l=i}var j=a('<div class="ui-daterangepicker ui-widget ui-helper-clearfix ui-widget-content ui-corner-all"></div>');var u=(function(){var y=a('<ul class="ui-widget-content"></ul>').appendTo(j);a.each(e.presetRanges,function(){a('<li class="ui-daterangepicker-'+this.text.replace(/ /g,"")+' ui-corner-all"><a href="#">'+this.text+"</a></li>").data("dateStart",this.dateStart).data("dateEnd",this.dateEnd).appendTo(y)});var w=0;a.each(e.presets,function(x,z){a('<li class="ui-daterangepicker-'+x+" preset_"+w+' ui-helper-clearfix ui-corner-all"><span class="ui-icon ui-icon-triangle-1-e"></span><a href="#">'+z+"</a></li>").appendTo(y);w++});y.find("li").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).click(function(){j.find(".ui-state-active").removeClass("ui-state-active");a(this).addClass("ui-state-active");q(a(this),j,n,f);return false});return y})();function b(y){if(!y.getDate()){return""}var x=y.getDate();var A=y.getMonth();var z=y.getFullYear();A++;var w=e.dateFormat;return a.datepicker.formatDate(w,y)}a.fn.restoreDateFromData=function(){if(a(this).data("saveDate")){a(this).datepicker("setDate",a(this).data("saveDate")).removeData("saveDate")}return this};a.fn.saveDateToData=function(){if(!a(this).data("saveDate")){a(this).data("saveDate",a(this).datepicker("getDate"))}return this};function t(){if(j.data("state")=="closed"){v();j.fadeIn(300).data("state","open");e.onOpen()}}function k(){if(j.data("state")=="open"){j.fadeOut(300).data("state","closed");e.onClose()}}function c(){if(j.data("state")=="open"){k()}else{t()}}function v(){var w=p||d;var A=w.offset(),y="left",z=A.left,x=a(window).width()-z-w.outerWidth();if(z>x){y="right",z=x}j.parent().css(y,z).css("top",A.top+w.outerHeight())}function q(z,y,A,w){if(z.is(".ui-daterangepicker-specificDate")){w.hide();A.show();y.find(".title-start").text(e.presets.specificDate);y.find(".range-start").restoreDateFromData().css("opacity",1).show(400);
1215y.find(".range-end").restoreDateFromData().css("opacity",0).hide(400);setTimeout(function(){w.fadeIn()},400)}else{if(z.is(".ui-daterangepicker-allDatesBefore")){w.hide();A.show();y.find(".title-end").text(e.presets.allDatesBefore);y.find(".range-start").saveDateToData().datepicker("setDate",e.earliestDate).css("opacity",0).hide(400);y.find(".range-end").restoreDateFromData().css("opacity",1).show(400);setTimeout(function(){w.fadeIn()},400)}else{if(z.is(".ui-daterangepicker-allDatesAfter")){w.hide();A.show();y.find(".title-start").text(e.presets.allDatesAfter);y.find(".range-start").restoreDateFromData().css("opacity",1).show(400);y.find(".range-end").saveDateToData().datepicker("setDate",e.latestDate).css("opacity",0).hide(400);setTimeout(function(){w.fadeIn()},400)}else{if(z.is(".ui-daterangepicker-dateRange")){w.hide();A.show();y.find(".title-start").text(e.rangeStartTitle);y.find(".title-end").text(e.rangeEndTitle);y.find(".range-start").restoreDateFromData().css("opacity",1).show(400);y.find(".range-end").restoreDateFromData().css("opacity",1).show(400);setTimeout(function(){w.fadeIn()},400)}else{w.hide();y.find(".range-start, .range-end").css("opacity",0).hide(400,function(){A.hide()});var B=(typeof z.data("dateStart")=="string")?Date.parse(z.data("dateStart")):z.data("dateStart")();var x=(typeof z.data("dateEnd")=="string")?Date.parse(z.data("dateEnd")):z.data("dateEnd")();y.find(".range-start").datepicker("setDate",B).find(".ui-datepicker-current-day").trigger("click");y.find(".range-end").datepicker("setDate",x).find(".ui-datepicker-current-day").trigger("click")}}}}return false}var n=a('<div class="ranges ui-widget-header ui-corner-all ui-helper-clearfix"><div class="range-start"><span class="title-start">Start Date</span></div><div class="range-end"><span class="title-end">End Date</span></div></div>').appendTo(j);n.find(".range-start, .range-end").datepicker(e.datepickerOptions);n.find(".range-start").datepicker("setDate",m);n.find(".range-end").datepicker("setDate",l);n.find(".range-start, .range-end").bind("constrainOtherPicker",function(){if(e.constrainDates){if(a(this).is(".range-start")){j.find(".range-end").datepicker("option","minDate",a(this).datepicker("getDate"))}else{j.find(".range-start").datepicker("option","maxDate",a(this).datepicker("getDate"))}}}).trigger("constrainOtherPicker");var f=a('<button class="btnDone ui-state-default ui-corner-all">'+e.doneButtonText+"</button>").click(function(){j.find(".ui-datepicker-current-day").trigger("click");k()}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).appendTo(n);a(this).click(function(){c();return false});n.hide().find(".range-start, .range-end, .btnDone").hide();j.data("state","closed");n.find(".ui-datepicker").css("display","block");a(e.appendTo).append(j);j.wrap('<div class="ui-daterangepickercontain"></div>');if(e.arrows&&d.size()==1){var h=a('<a href="#" class="ui-daterangepicker-prev ui-corner-all" title="'+e.prevLinkText+'"><span class="ui-icon ui-icon-circle-triangle-w">'+e.prevLinkText+"</span></a>");var r=a('<a href="#" class="ui-daterangepicker-next ui-corner-all" title="'+e.nextLinkText+'"><span class="ui-icon ui-icon-circle-triangle-e">'+e.nextLinkText+"</span></a>");a(this).addClass("ui-rangepicker-input ui-widget-content").wrap('<div class="ui-daterangepicker-arrows ui-widget ui-widget-header ui-helper-clearfix ui-corner-all"></div>').before(h).before(r).parent().find("a").click(function(){var x=n.find(".range-start").datepicker("getDate");var w=n.find(".range-end").datepicker("getDate");var y=Math.abs(new TimeSpan(x-w).getTotalMilliseconds())+86400000;if(a(this).is(".ui-daterangepicker-prev")){y=-y}n.find(".range-start, .range-end ").each(function(){var z=a(this).datepicker("getDate");if(z==null){return false}a(this).datepicker("setDate",z.add({milliseconds:y})).find(".ui-datepicker-current-day").trigger("click")});return false}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});var p=d.parent()}a(document).click(function(){if(j.is(":visible")){k()}});j.click(function(){return false}).hide();return this}})(jQuery);;
1216var globalFacetteArray = {}
1216, currentPl, ajaxTransactionInProgress = false;
1217var ajaxGet = [], ajaxSearchCallbacks = [];
1218
1219$.fn.extend({
1220	isDisplayed: function(f){
1221		if('none' === this.css('display')) { return false }
1222		var dt = $(window).scrollTop(), db = dt + $(window).height();
1223		var et = this.offset().top, eb = et + this.height();
1224		return (f || false) ? (eb <= db) && (et >= dt) : !((et >= db) || (eb <= dt));
1225	},
1226	topIsVisible: function(){
1227		var t = this.offset().top, st = $(window).scrollTop();
1228		return t >= st && t <= st + $(window).height();
1229	},
1230	exists: function(){
1231		return this.length !== 0;
1232	},
1233	makeStatic: function(opts){
1234		if(!this.exists()){
1235			return;
1236		}
1237		opts = opts || {};
1238		var me = this,
1239			cls = 'tourism-elt-static-',
1240			cf = cls + 'fixed',
1241			ca = cls + 'attached',
1242			winFn, uFn;
1243
1244		uFn = (function func(){
1245			if($.isFunction(opts.visibility) && !opts.visibility()){
1246				return me.hide();
1247			}
1248			me.show().removeClass(cf + ' ' + ca);
1249			me.addClass(me.offset().top > $(document).scrollTop() ? ca : cf);
1250			if($.isFunction(opts.after)){
1251				opts.after();
1252			}
1253			return func;
1254		})();
1255
1256		if($.browser.msie && $.browser.version < 9){
1257			var f = !0;
1258			winFn = function(){
1259				if(!f){
1260					return;
1261				}
1262				f = !f;
1263				setTimeout(function(){
1264					uFn();
1265					f = !f;
1266				}, 250);
1267			};
1268		} else {
1269			winFn = uFn;
1270		}
1271
1272		$(window).bind('scroll resize', winFn);
1273	}
1274});
1275
1276$.extend({
1277	getArgs: function(g){
1278		var v = {}, href = window.location.href, i = href.indexOf('?') + 1, h;
1279		if(i !== 0){
1280			var hs = href.slice(i).split('&');
1281			for (i = 0; i < hs.length; i++) {
1282				h = hs[i].split('=');
1283				v[h[0]] = h[1];
1284			}
1285		}
1286		return g ? v[g] : v;
1287	}
1288});
1289
1290function CookieFactory(cn, defaultVal, ttl){
1291	defaultVal = defaultVal || {};
1292	ttl = ttl || null;
1293	return {
1294		get: function(){
1295			var data = $.cookie(cn);
1296			return data ? $.parseJSON(data) : defaultVal;
1297		},
1298		set: function(data){
1299			var opts = {expires: ttl, path: '/'};
1300			$.cookie(cn, JSON.stringify(data), opts);
1301		},
1302		destroy: function(){
1303			$.cookie(cn, null);
1304		},
1305		isset: function(){
1306			return $.cookie(cn) ? true : false;
1307		}
1308	};
1309}
1310
1311$(document).ready(function(){
1312	if(!$('.search-tourism-form').exists()){
1313		return;
1314	}
1315
1316	var tourismCookie = CookieFactory('tourism-search'),
1317		cPl = $('input[name="pl_id"]').val(),
1318		c = tourismCookie.get();
1319
1320	ajaxSearchCallbacks.push(function(data, e){
1321		var c = tourismCookie.get();
1322		c.playlist = cPl;
1323		c.s = data.path_args.s;
1324		c.page = data.path_args.page;
1325		c.ma = data.path_args.ma || false;
1326		c.fiches = data.fiches || false;
1327		c.col = data.col || false;
1328		tourismCookie.set(c);
1329	});
1330
1331	if(!tourismCookie.isset() || c.playlist !== cPl){
1332		c = {playlist: cPl};
1333	}
1334	if($.getArgs('s')){
1335		c.s = $.getArgs('s');
1336	}
1337	tourismCookie.set(c);
1338});
1339
1340/* Init Globals */
1341function initListResult(){
1342	var seCfg = searchEngineConfig || {};
1343	initOngletMapAndList(seCfg);
1344	initPaginationAjax(seCfg);
1345	initChoixModeAjax(seCfg);
1346	initListUI(seCfg);
1347	if(typeof(initCarnetBehaviour) === 'function'){
1348		initCarnetBehaviour();
1349	}
1350}
1351
1352function initListUI(seCfg){
1353	$('.listeManifDetailLocalisation').hover(function(){
1354		var urlCtnr = $('.listeManifLocalisationUrl', $(this));
1355		if(urlCtnr.exists()){
1356			urlCtnr.replaceWith($(document.createElement('img')).attr('src', urlCtnr.data('imgUrl')));
1357		}
1358	});
1359
1360	var hoverTimer;
1361	$('.resultManifs li').hover(function(){
1362		var me = $(this);
1363		if(me.hasClass('listeManifHover')){
1364			return;
1365		}
1366		var nextDates = $('.listeManifDatesNext span', me);
1367		if(!nextDates.exists()){
1368			return;
1369		}
1370		var height = nextDates.innerHeight() * nextDates.length;
1371		if(me.hasClass('col2')){
1372			height += me.height();
1373		} else if(me.hasClass('col3')){
1374			height += 5;
1375		}
1376
1377		hoverTimer = setTimeout(function(){
1378			if(me.hasClass('col2')){
1379				me.css('height', height + 'px');
1380			} else if(me.hasClass('col3')){
1381				me.find('.listeManifDatesNext').css('height', height + 'px');
1382			}
1383			me.addClass('listeManifHover');
1384		}, me.hasClass('col3') ? 0 : 500);
1385	}, function(){
1386		clearTimeout(hoverTimer);
1387		if($(this).hasClass('col3')){
1388			$(this)
1389					.removeClass('listeManifHover')
1390					.find('.listeManifDatesNext').removeAttr('style');
1391		}
1392	});
1393
1394	var bgMaps = $('.tourism-map-background');
1395	if(bgMaps.exists()){
1396		var bgMap;
1397		bgMaps.each(function(){
1398			var me = $(this);
1399			me.closest('.aFrame').hover(function(){
1400				var gps = new google.maps.LatLng(me.data('lat'), me.data('lng'));
1401				var mapCfg = {
1402					zoom: 11,
1403					center: gps,
1404					mapTypeId: google.maps.MapTypeId.ROADMAP,
1405					scrollwheel: false,
1406					zoomControl: true,
1407					panControl: false,
1408					streetViewControl: false,
1409					scaleControl: false,
1410					mapTypeControl: false
1411				};
1412				bgMap = new google.maps.Map(me.get(0), mapCfg);
1413				new google.maps.Marker({
1414					position: gps,
1415					map: bgMap,
1416					icon: '/' + module_base_path + '/ressources/isc/images/gmaps/' + seCfg.playlists[me.data('idPlaylist')].icone + '.png'
1417				});
1418			}, function(){
1419				if(typeof(bgMap) === 'object'){
1420					me.html('');
1421				}
1422			});
1423		});
1424	}
1425
1426	var itis = $('.tourism-hover-itineraire');
1427	if(itis.length > 0){
1428		var paths = {};
1429		itis.each(function(){
1430			var me = $(this),
1431				parent = me.parent(),
1432				lcls = 'tourism-itineraire-loading',
1433				data = {
1434					idPlaylist: me.data('idPlaylist'),
1435					idFiche: me.data('idFiche')
1436				},
1437				idMapElt = 'map_canvas_ctnr_' + data.idFiche,
1438				ctnr = $('<div/>', {id: idMapElt, 'class': 'map_canvas_list'}),
1439				showFn = function(){
1440					initItinerairePreview(paths[data.idFiche], idMapElt);
1441					parent.removeClass(lcls);
1442				};
1443
1444			parent.hover(function(){
1445				parent.addClass(lcls);
1446				me.append(ctnr);
1447				if(!(data.idFiche in paths)){
1448					$.getJSON('/' + langContext + 'tourism/ajax/getItinerairePath/detail', data, function(response){
1449						paths[data.idFiche] = response;
1450						showFn();
1451					});
1452				} else {
1453					showFn();
1454				}
1455			}, function(){
1456				parent.removeClass(lcls);
1457				ctnr.remove();
1458			});
1459		});
1460	}
1461}
1462
1463function initDatePicker(){
1464	var stayBlock = $('#blockDateSelectionMain');
1465	if(!stayBlock.exists()){
1466		return;
1467	}
1468
1469	var datePickerCfg = {
1470		showButtonPanel: true,
1471		changeMonth: true,
1472		changeYear: true,
1473		showWeek: true,
1474		minDate: 0,
1475		dateFormat: 'dd-mm-yy',
1476		showOn: 'both',
1477		buttonImage: '/' + module_base_path + '/ressources/isc/images/calendar.gif',
1478		buttonImageOnly: true
1479	};
1480
1481	var cookieDate = CookieFactory('tourism-date-sejour2');
1482
1483	var start = $('#stay_start_id', stayBlock);
1484	var end = $('#stay_end_id', stayBlock);
1485
1486	start.datepicker($.extend({}, datePickerCfg, {
1487		onSelect: function(dateText){
1488			cookieDate.set({});
1489			end.val('');
1490		}
1491	}));
1492
1493	end.datepicker($.extend({}, datePickerCfg, {
1494		beforeShow: function(){
1495			//get date startDate is set to
1496			var startDate = $('#stay_start_id').datepicker('getDate');
1497			//if a date was selected else do nothing
1498			if(startDate !== null){
1499				startDate.setMonth(startDate.getMonth());
1500				end.datepicker('option', 'minDate', startDate);
1501			}
1502		},
1503		onSelect: function(dateText){
1504			cookieDate.set({start: start.datepicker('getDate'), end: end.datepicker('getDate')});
1505		}
1506	}));
1507
1508	if(cookieDate.isset()){
1509		var data = cookieDate.get();
1510		data.start = new Date(data.start);
1511		data.end = new Date(data.end);
1512		if(data.start.toString() === 'Invalid Date' || data.end.toString() === 'Invalid Date'){
1513			cookieDate.destroy();
1514		} else {
1515			start.datepicker('setDate', data.start);
1516			end.datepicker('setDate', data.end);
1517			initBlocDateSejour();
1518			$('#blockDateSelectionValiderButton', stayBlock).click();
1519		}
1520	} else {
1521		start.datepicker('setDate', null);
1522		end.datepicker('setDate', null);
1523	}
1524}
1525
1526function initDateForm(callback)
1527{
1528	var context = $('.search-tourism-form'),
1529		dateDebut = context.find('.tourism-form-date-debut-field'),
1530		fieldset = dateDebut.closest('fieldset');
1531
1532	if(!dateDebut.exists()){
1533		return;
1534	}
1535
1536	var inputs = fieldset.find('input, select');
1537	inputs.data('validator', function(){
1538		var flag = true;
1539		fieldset.find('.required').each(function(){
1540			if(!$(this).val()){
1541				flag = false;
1542			}
1543		});
1544
1545		if(flag){
1546			var ch = CookieFactory('tourism-search'), data = ch.get();
1547			if(!data.fields){
1548				data.fields = {};
1549			}
1550			inputs.each(function(){
1551				var me = $(this);
1552				data.fields[me.attr('name')] = me.val();
1553			});
1554			ch.set(data);
1555		}
1556		return flag;
1557	});
1558
1559	initializeDateField = function(field){
1560		field.datepicker({
1561			showButtonPanel: true,
1562			changeMonth: true,
1563			changeYear: true,
1564			showWeek: true,
1565			minDate: 0,
1566			dateFormat: 'dd-mm-yy',
1567			showOn: 'both',
1568			buttonImage: '/' + module_base_path + '/ressources/isc/images/calendar.gif',
1569			buttonImageOnly: true
1570		});
1571		field.change(function(e){
1572			callback(e);
1573		});
1574	};
1575
1576	initializeDateField(dateDebut);
1577
1578	var dateFin = fieldset.find('.tourism-form-date-fin-field');
1579
1580	if(dateFin.exists()){
1581		initializeDateField(dateFin);
1582	}
1583
1584	fieldset.append(
1585			$(document.createElement('div'))
1586			.html('x')
1587			.addClass('tourism-form-date-reset-button')
1588			.click(function(e){
1589				var f = false;
1590				fieldset.find('input, select').each(function(){
1591					if($(this).val() != ''){
1592						$(this).val('');
1593						f = true;
1594					}
1595				});
1596
1597				if(f){
1598					callback();
1599				}
1600			})
1601	);
1602}
1603
1604function initRatingFields(callback){
1605	// quickfix
1606	$.fn.on = $.fn.bind;
1607	$('.tourism-ranking-field').each(function(){
1608		var me = $(this), radios = me.find('.form-radios');
1609		radios.hide();
1610		me.find('.tourism-raty-field').raty({
1611			path: '/' + module_base_path + '/ressources/libs/raty/img',
1612			cancel: true,
1613			number: radios.children().length - 1,
1614			score: me.find('input[type="radio"][checked="checked"]').val(),
1615			hints: ['', '', '', '', ''],
1616			click: function(value){
1617				value = value || 0;
1618				me.find('input').removeAttr('checked');
1619				me.find('input[value="' + value + '"]').attr('checked', 'checked').change();
1620			}
1621		});
1622	});
1623}
1624
1625function initSearchSliders(idPlaylist, callback, params){
1626	$('.search-slider').each(function(){
1627		var me = $(this);
1628
1629		var typeSlider = me.attr('class').split(' ');
1630		var strType = 'type-slider-';
1631		for (var i in typeSlider) {
1632			if(typeSlider[i].indexOf(strType) === 0){
1633				typeSlider = typeSlider[i].replace(strType, '');
1634				break;
1635			}
1636		}
1637
1638		var range = me.find('#search-slider-hidden-' + typeSlider + '-' + idPlaylist);
1639		if(range.length < 1){
1640			return true;
1641		}
1642
1643		var range = range.val().split('-');
1644
1645		var min = me.find('.search-slider-min'),
1646			max = me.find('.search-slider-max'),
1647			valuesSet = [min.text(), max.text()],
1648			uiSlideCallbacks = [function(e, ui){
1649				min.text(ui.values[0]);
1650				max.text(ui.values[1]);
1651			}];
1652
1653		if(typeSlider === 'duree'){
1654			var slideDureeCallback = function(e, ui){
1655				me.find('input#' + typeSlider + '_data').val(min.text() + '-' + max.text());
1656				min.text(minutesToHours(min.text()));
1657				max.text(minutesToHours(max.text()));
1658			};
1659			slideDureeCallback();
1660			uiSlideCallbacks.push(slideDureeCallback);
1661		} else {
1662			var updateIntUI = function(minVal, maxVal){
1663				min.text(formatInt(minVal));
1664				max.text(formatInt(maxVal));
1665			};
1666			updateIntUI(valuesSet[0], valuesSet[1]);
1667			uiSlideCallbacks.push(function(e, ui){
1668				updateIntUI(ui.values[0], ui.values[1]);
1669			});
1670		}
1671
1672		me.find('.search-slider-container').slider({
1673			range: true,
1674			min: parseFloat(range[0]),
1675			max: parseFloat(range[1]),
1676			step: parseInt(me.data('step') || 1),
1677			values: valuesSet,
1678			slide: function(e, ui){
1679				for (var i in uiSlideCallbacks) {
1680					uiSlideCallbacks[i](e, ui);
1681				}
1682			},
1683			stop: function(e, ui){
1684				me.find('input[name="' + typeSlider + '[' + typeSlider + '_min]"]').val(ui.values[0]);
1685				me.find('input[name="' + typeSlider + '[' + typeSlider + '_max]"]').val(ui.values[1]);
1686				if(typeof(params) == 'undefined'){
1687					callback();
1688				} else {
1689					callback({idPl: params.idPl, type: params.type, icone: params.icone, form: $(this).closest('form')});
1690				}
1691			}
1692		});
1693	});
1694}
1695
1696function initAutoSuggestionList(){
1697	var list = $('#autoSuggestionsList');
1698
1699	var input = $('input[name="raison_sociale"]');
1700
1701	input.data('validator', function(){
1702		return false;
1703	});
1704
1705	input.unbind('blur').unbind('focus');
1706
1707	input.focus(function(e){
1708		list.show();
1709	});
1710
1711	input.blur(function(e){
1712		setTimeout(function(){
1713			list.hide();
1714		}, 200);
1715	});
1716}
1717
1718function initBlocDateSejour(isMap){
1719
1720	isMap = (typeof(isMap) != "undefined");
1721
1722	Date.CultureInfo = {name: "fr-FR", englishName: "French (France)", nativeName: "français (France)", dayNames: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], abbreviatedDayNames: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], shortestDayNames: ["di", "lu", "ma", "me", "je", "ve", "sa"], firstLetterDayNames: ["d", "l", "m", "m", "j", "v", "s"], monthNames: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], abbreviatedMonthNames: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."], amDesignator: "", pmDesignator: "", firstDayOfWeek: 1, twoDigitYearMax: 2029, dateElementOrder: "dmy", formatPatterns: {shortDate: "dd/MM/yyyy", longDate: "dddd d MMMM yyyy", shortTime: "HH:mm", longTime: "HH:mm:ss", fullDateTime: "dddd d MMMM yyyy HH:mm:ss", sortableDateTime: "yyyy-MM-ddTHH:mm:ss", universalSortableDateTime: "yyyy-MM-dd HH:mm:ssZ", rfc1123: "ddd, dd MMM yyyy HH:mm:ss GMT", monthDay: "d MMMM", yearMonth: "MMMM yyyy"}, regexPatterns: {jan: /^janv(.(ier)?)?/i, feb: /^févr(.(ier)?)?/i, mar: /^mars/i, apr: /^avr(.(il)?)?/i, may: /^mai/i, jun: /^juin/i, jul: /^juil(.(let)?)?/i, aug: /^août/i, sep: /^sept(.(embre)?)?/i, oct: /^oct(.(obre)?)?/i, nov: /^nov(.(embre)?)?/i, dec: /^déc(.(embre)?)?/i, sun: /^di(m(.(anche)?)?)?/i, mon: /^lu(n(.(di)?)?)?/i, tue: /^ma(r(.(di)?)?)?/i, wed: /^me(r(.(credi)?)?)?/i, thu: /^je(u(.(di)?)?)?/i, fri: /^ve(n(.(dredi)?)?)?/i, sat: /^sa(m(.(edi)?)?)?/i, future: /^next/i, past: /^last|past|prev(ious)?/i, add: /^(\+|after|from)/i, subtract: /^(\-|before|ago)/i, yesterday: /^yesterday/i, today: /^t(oday)?/i, tomorrow: /^tomorrow/i, now: /^n(ow)?/i, millisecond: /^ms|milli(second)?s?/i, second: /^sec(ond)?s?/i, minute: /^min(ute)?s?/i, hour: /^h(ou)?rs?/i, week: /^w(ee)?k/i, month: /^m(o(nth)?s?)?/i, day: /^d(ays?)?/i, year: /^y((ea)?rs?)?/i, shortMeridian: /^(a|p)/i, longMeridian: /^(a\.?m?\.?|p\.?m?\.?)/i, timezone: /^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\s*(\+|\-)\s*\d\d\d\d?)|gmt)/i, ordinalSuffix: /^\s*(st|nd|rd|th)/i, timeContext: /^\s*(\:|a|p)/i}, abbreviatedTimeZoneStandard: {GMT: "-000", EST: "-0400", CST: "-0500", MST: "-0600", PST: "-0700"}, abbreviatedTimeZoneDST: {GMT: "-000", EDT: "-0500", CDT: "-0600", MDT: "-0700", PDT: "-0800"}};
1723	$('#stay_start_id-wrapper :input').add($('#stay_end_id-wrapper :input')).unbind('click');
1724	($('#stay_start_id').val().length > 1 && $('#stay_end_id').val().length > 1) ? processBlocDateSejour(false, isMap) : razBlocDateSejour(false, isMap)
1725
1726	$('#blockDateSelectionEffacerButton').click(function(event){
1727		razBlocDateSejour(true, isMap);
1728	});
1729
1730	$('#blockDateSelectionValiderButton').click(function(event){
1731		processBlocDateSejour(true, isMap);
1732	});
1733
1734}
1735
1736function initPaginationAjax(seCfg)
1737{
1738	$('.pager a').click(function(event){
1739		loader(true);
1740		var page = $(this).attr('name').substr(4);
1741
1742		if($('#block-tourism_raccourci-tourism_search_map_engine').length > 0){
1743			var updateMap = true;
1744			var form = $('.entete-facette').filter('.deplier').next().find('form');
1745			var idPl = $('.entete-facette').filter('.deplier').next().find('form').find('input[name="pl_id"]').val();
1746		} else {
1747			var idPl = $('#edit-pl-id').val();
1748			var form = $("form[id$='search-tourism-form']");
1749		}
1750
1751		var formState = getMyFormParams(form);
1752
1753		if(seCfg.customScroll){
1754			seCfg.customScroll('pagination');
1755		} else {
1756			if(!$(event.target).hasClass('no-scroll')){
1757				scrollToTop();
1758			} else {
1759				$('#loader-overlay').css('background-position', 'center ' + $('#tab-1').height() + 'px');
1760			}
1761		}
1762
1763		var get = $.get('/' + langContext + 'tourism/ajax/process/search?' + formState + '&json=true&page=' + page, function(data){
1764			var data = $.parseJSON(data);
1765			updateTourismSearchEngineUI(data);
1766			if(updateMap){
1767				update(data.datasMap, globalFacetteArray[idPl].type, globalFacetteArray[idPl].icone);
1768			}
1769			globalAjaxCallback(data, event);
1770		});
1771		ajaxGet.push(get);
1772
1773		return false;
1774	});
1775
1776	var displayMore = $('.display-more');
1777	if(displayMore.exists()){
1778		document.scrollCount = document.scrollCount || 0;
1779		var flag = true;
1780		displayMore.find('a').click(function(){
1781			var pagerLdr = $(document.createElement('div'));
1782			pagerLdr.addClass('pager-loader');
1783			displayMore.prepend(pagerLdr);
1784		});
1785
1786		ajaxSearchCallbacks.push(function(){
1787			flag = true;
1788		});
1789
1790		var scrollCb = function(e){
1791			if(seCfg.maxAutoScrollCount == 'infinite' || document.scrollCount < seCfg.maxAutoScrollCount){
1792				if(flag && $('#main').next().isDisplayed()){
1793					document.scrollCount++;
1794					flag = false;
1795					displayMore.find('a').click();
1796				}
1797			} else {
1798				$(document).unbind('scroll.PaginationScroll');
1799			}
1800		}
1801		$(document).unbind('scroll.PaginationScroll');
1802		$(document).bind('scroll.PaginationScroll', scrollCb);
1803	}
1804}
1805
1806scrollToTop = function(){
1807	var topOffset = $("#tab-1");
1808	topOffset = topOffset.exists() ? topOffset.offset().top : 0;
1809	$('html, body').animate({
1810		scrollTop: topOffset
1811	}, 'slow');
1812}
1813
1814function initChoixModeAjax(seCfg){
1815	var modeSwitchCtnr = $('.navModeList'),
1816		modeScroll = function(){
1817			if(seCfg.customScroll){
1818				seCfg.customScroll('mode');
1819//			} else {
1820//				scrollToTop();
1821			}
1822		};
1823
1824	$('a.switch-tourism-mode', modeSwitchCtnr).click(function(event){
1825		modeScroll();
1826		loader(true);
1827		var col = $(this).attr('id') ? $(this).attr('id').substr(3, 1) : false;
1828		if($('#block-tourism_raccourci-tourism_search_map_engine').length == 1){
1829			var updateMap = true,
1830				form = $('.entete-facette').filter('.deplier').next().find('form'),
1831				idPl = $('.entete-facette').filter('.deplier').next().find('form').find('input[name="pl_id"]').val();
1832
1833		} else {
1834			var idPl = $('#edit-pl-id').val(),
1835				form = $("form[id*='search-tourism-form']");
1836			$('input[name="isMap"]').remove();
1837		}
1838		var formState = getMyFormParams(form, col);
1839		if(!ajaxTransactionInProgress){
1840			ajaxTransactionInProgress = true;
1841			if(col != 4){
1842				modeScroll();
1843			}
1844			cancelAllGet();
1845			var get = $.getJSON('/' + langContext + 'tourism/ajax/process/search?' + formState + '&json=true', function(data){
1846				loader(false);
1847				$('#block-tourism_raccourci-tourism_search_engine .content').html(data.searchEngine);
1848				if(col == 4){
1849					toggleFullScreen();
1850					update(data.datasMap, globalFacetteArray[idPl].type, globalFacetteArray[idPl].icone);
1851				} else {
1852					$('#block-tourism_raccourci-tourism_list_results').html(data.blocResult);
1853					if(updateMap){
1854						update(data.datasMap, globalFacetteArray[idPl].type, globalFacetteArray[idPl].icone);
1855					}
1856				}
1857
1858				if(col != 5){
1859					isAgenda = false;
1860				}
1861
1862				if(typeof(data.infos) != 'undefined'){
1863					var h = $('#content-header');
1864					h.find('.title').html(data.infos.pagetitle);
1865					h.find('.breadcrumb').html(data.infos.breadcrumb);
1866				}
1867				ajaxTransactionInProgress = false;
1868				executeAjaxCallbackStack(data, event);
1869			});
1870			ajaxGet.push(get);
1871		}
1872		return false;
1873	});
1874}
1875
1876function initOngletMapAndList()
1877{
1878	$('#onglet_list').click(function(event){
1879		$('#onglet_map').removeClass('mode_actif');
1880		$('#onglet_list').addClass('mode_select mode_actif');
1881	});
1882
1883	$('#onglet_map_fullscreen').click(function(event){
1884		$('#tab-1').hide();
1885		$('#tab-2').hide();
1886		$('#tab-3').show();
1887	});
1888}
1889
1890function initRaisonSocialAjax(){
1891	var input = $('input[name^="raison_sociale"]');
1892	input.after("<div class='suggestionList' id='autoSuggestionsList'> &nbsp; </div>")
1893			.unbind('click')
1894			.bind('keydown', function(e){
1895		if(e.keyCode == 13){
1896			var suggList = $('#autoSuggestionsList').find('a');
1897			if(suggList.exists()){
1898				loader(true);
1899				window.location = suggList.attr('href');
1900			}
1901		}
1902		return true;
1903	})
1904			.bind('keyup', function(){
1905		var oldVal = input.data('search') || '';
1906		var currVal = input.val();
1907		if(oldVal === currVal){
1908			return false;
1909		} else {
1910			input.next().show().html('<img src="/sites/all/modules/_raccourci/tourism_raccourci/ressources/isc/images/ajax-loader.gif" alt="loader" id="ajax-loader" />');
1911			autocomplete(currVal);
1912			input.data('search', currVal);
1913		}
1914	});
1915}
1916
1917
1918function initRazFacette(){
1919
1920	$('.raz_facette').unbind('click').click(function(e){
1921		$('.fieldset_slider').remove();
1922		$("form[id$='search-tourism-form']").find("input[type=checkbox]").each(function(){
1923			$(this).attr('checked', false);
1924		});
1925		performAjaxSearch(e);
1926		return false;
1927	});
1928}
1929
1930function initShowAndHideMapButtons(idPl, type, icone)
1931{
1932	$('div[name="idPl_' + idPl + '"] :input[type="submit"]').unbind('click').click(function(event){
1933		var form = $(this).closest('form');
1934		if($(this).hasClass('hide_all')){
1935			form.find("input[type=checkbox]").each(function(){
1936				$(this).attr('checked', false);
1937			});
1938			perfomMapAjaxSearch({idPl: idPl, type: type, icone: icone, form: form, raz: 1});
1939		} else if($(this).hasClass('show_all')){
1940			perfomMapAjaxSearch({idPl: idPl, type: type, icone: icone, form: form, raz: 0});
1941		}
1942
1943		return false;
1944	});
1945}
1946
1947function initSearchTourismFormAjaxSelect(){
1948
1949	$("form[id$='search-tourism-form']").keypress(function(e){
1950		if(e.which == 13){
1951			return false;
1952		}
1953	});
1954
1955	$("form[id$='search-tourism-form'] .form-select").unbind('click').change(function(e){
1956		// var callback = performAjaxSearch;
1957		// if(typeof(isAgenda) !== 'undefined'){
1958			// if(isAgenda == true){
1959				// callback = performAgendaAjaxSearch;
1960			// }
1961		// }
1962		var callback = typeof(isAgenda) !== 'undefined' && isAgenda == true ?
1963			performAgendaAjaxSearch : performAjaxSearch;
1964		callback(e);
1965	});
1966}
1967
1968/////////////////////////////////////////////////// INIT - SEARCH FORM ////////////////////////////////////////////////////////
1969
1970function initSearchtourismFormAjaxMap(idPl, type, icone){
1971
1972	initSearchSliders(idPl, perfomMapAjaxSearch, {idPl: idPl, type: type, icone: icone});
1973
1974	$('div[name="idPl_' + idPl + '"] :input').each(function(){
1975		var curField = $(this);
1976		var evtName = curField.is('select') ? 'change' : 'click';
1977		curField.unbind(evtName)[evtName]({idPl: idPl, type: type, icone: icone}, perfomMapAjaxSearch);
1978	});
1979
1980	initShowAndHideMapButtons(idPl, type, icone);
1981	$('input[id*="submit_button"]').hide();
1982
1983	globalFacetteArray[idPl] = {idPl: idPl, type: type, icone: icone};
1984
1985	initRaisonSocialAjax();
1986}
1987
1988function initSearchTourismFormAjax()
1989{
1990	var callback = typeof(isAgenda) !== 'undefined' && isAgenda ? performAgendaAjaxSearch : performAjaxSearch;
1991	$('input[id*="submit_button"]').hide();
1992	$("form[id$='search-tourism-form'] :input").change(callback);
1993	$('#edit-link-generate').unbind('click');
1994	$('#edit-link-url').unbind('click');
1995	var plId = $('#edit-pl-id').val();
1996	currentPl = plId;
1997	initSearchTourismFormAjaxSelect();
1998	initRaisonSocialAjax();
1999	initSearchSliders(plId, callback);
2000	initRatingFields(callback);
2001	initDateForm(callback);
2002}
2003
2004
2005/////////////////////////////////////////////////// PROCESS ////////////////////////////////////////////////////////
2006
2007function updatePanelForMapDateSelection()
2008{
2009	var enteteFacetteForUpdate = $('.entete-facette').filter('.deplier');
2010	var facetteForUpdate = $('.entete-facette').filter('.deplier');
2011	var facetteForUpdateName = facetteForUpdate.attr('id');
2012	var nameToFin = (typeof(facetteForUpdateName == "string")) ? facetteForUpdateName.substr(5) : '';
2013
2014	for (var i in globalFacetteArray) {
2015
2016		// if (i == nameToFin && enteteFacetteForUpdate.hasClass('refreshMeForMap'))  {
2017		if(i == nameToFin){
2018			// globalFacetteArray[i]['form'] = enteteFacetteForUpdate.closest('form');
2019			globalFacetteArray[i]['form'] = $('.entete-facette').filter('.deplier').next().find('form');
2020			// globalFacetteArray[i]['raz'] = 1;
2021			perfomMapAjaxSearch(globalFacetteArray[i]);
2022			enteteFacetteForUpdate.removeClass('refreshMeForMap');
2023		}
2024	}
2025}
2026
2027function submitDateSelection(isMap){
2028
2029	// var formDate = $("#mk-form-blocDateSelection").serialize();
2030
2031	if(isMap){
2032		var formDate = $("#mk-form-blocDateSelection").serialize();
2033		$('.entete-facette').addClass('refreshMeForMap');
2034		$.get("/" + langContext + "tourism/ajax/process/search?json=true&" + formDate, function(){
2035			updatePanelForMapDateSelection();
2036		});
2037	} else {
2038		performAjaxSearch();
2039		/*
2040		 loader(true);
2041		 var form = $("form[id$='search-tourism-form']");
2042		 var formState = getMyFormParams(form);
2043		 // $.get("/"+langContext+"tourism/ajax/process/search?json=true&"+formState+"&"+formDate,  function(data) {
2044		 $.get("/"+langContext+"tourism/ajax/process/search?json=true&"+formState,  function(data) {
2045		 var dataDecoded = $.parseJSON(data);
2046		 $('#block-tourism_raccourci-tourism_list_results').html(dataDecoded.blocResult);
2047		 $('#block-tourism_raccourci-tourism_search_engine').html(dataDecoded.searchEngine);
2048		 loader(false);
2049		 });
2050		 */
2051	}
2052}
2053
2054function processBlocDateSejour(submit, isMap){
2055
2056	var start = $('#stay_start_id').val();
2057	var end = $('#stay_end_id').val();
2058	if(start.length > 1 && end.length > 1){
2059
2060		if(submit){
2061			submitDateSelection(isMap);
2062		}
2063
2064		// var start = Date.parse($('#stay_start_id').val()).toString('ddd d MMMM  yyyy');
2065		// var end = Date.parse($('#stay_end_id').val()).toString('ddd d MMMM yyyy');
2066
2067		var start = $('#stay_start_id').val().replace(new RegExp('-', 'g'), '/');
2068		var end = $('#stay_end_id').val().replace(new RegExp('-', 'g'), '/')
2069
2070		var dateReplace = '<span class="date_bloc_du" >du ' + start + '</span> <span class="date_bloc_au"> au ' + end + '</span>';
2071		$('#blockDateSelectionPeriodeSelected').html(dateReplace).show();
2072		$('#blockDateSelectionForm').add($('#blockDateSelectionValiderButton')).hide();
2073		$('#blockDateSelectionEffacerButton').show();
2074	} else {
2075		alert('Vous devez entrer une date de début et de fin de séjour')
2076	}
2077}
2078
2079function razBlocDateSejour(submit, isMap){
2080	CookieFactory('tourism-date-sejour2').destroy();
2081	$("#edit-list-periodes-stay").attr('checked', false);
2082	$('#stay_start_id').add($('#stay_end_id')).val('false');
2083	if(submit){
2084		submitDateSelection(isMap);
2085	}
2086	$('#stay_start_id').add($('#stay_end_id')).val('');
2087	$('#blockDateSelectionPeriodeSelected').html(' ').hide();
2088	$('#blockDateSelectionEffacerButton').hide();
2089	$('#blockDateSelectionValiderButton').add($('#blockDateSelectionForm')).show();
2090}
2091
2092/**
2093 * @desc Annule tous les appels AJAX
2094 */
2095cancelAllGet = function()
2096{
2097	for (var i in ajaxGet) {
2098		ajaxGet[i].abort();
2099	}
2100}
2101
2102function performAjaxSearch(e){
2103	if(typeof(e) != 'undefined' && typeof(e.target.name) != 'undefined'){
2104		var target = $(e.target);
2105		if(target.data('validator') && !target.data('validator')()){
2106			return false;
2107		}
2108	}
2109
2110	loader(true);
2111	var form = $("form[id$='search-tourism-form']");
2112	var formState = getMyFormParams(form);
2113	cancelAllGet();
2114	var get = $.getJSON('/' + langContext + 'tourism/ajax/process/search?' + formState + '&json=true', function(data){
2115		updateTourismSearchEngineUI(data);
2116		if(typeof(data.infos) != "undefined" && typeof($('.fullscreen_control_wrapper') != 'undefined') && $('.fullscreen_control_wrapper').hasClass('off')){
2117			$('#content-header .title').html(data.infos.pagetitle);
2118			$('#content-header .breadcrumb').html(data.infos.breadcrumb);
2119		}
2120		globalAjaxCallback(data, e);
2121
2122	});
2123	ajaxGet.push(get);
2124}
2125
2126function updateTourismSearchEngineUI(data){
2127	$('#block-tourism_raccourci-tourism_list_results').html(data.blocResult);
2128	$('.search-tourism-form').closest('.content').html(data.searchEngine);
2129}
2130
2131function globalAjaxCallback(data, e)
2132{
2133	var printBtn = $('.wrapper-print-button-tourism');
2134	if(typeof(data.printButton) != 'undefined' && printBtn.length > 0){
2135		printBtn.replaceWith(data.printButton);
2136	}
2137
2138	loader(false);
2139	Drupal.attachBehaviors();
2140
2141	var pathArgs = data.path_args ? data.path_args : {};
2142	var token = '';
2143	for (var i in pathArgs) {
2144		token += i + '=' + pathArgs[i] + '&';
2145	}
2146	token = token === '' ? '' : '?' + token.slice(0, -1);
2147
2148	history.replaceState({}, document.title, location.pathname + token);
2149	executeAjaxCallbackStack(data, e);
2150
2151}
2152
2153function executeAjaxCallbackStack(data, e){
2154	if(ajaxSearchCallbacks.length > 0){
2155		for (var i in ajaxSearchCallbacks) {
2156			ajaxSearchCallbacks[i](data, e);
2157		}
2158	}
2159}
2160
2161function perfomMapAjaxSearch(eventObj)
2162{
2163	if(typeof(eventObj.handleObj) == "undefined"){
2164		var idPl = eventObj.idPl;
2165		var type = eventObj.type;
2166		var icone = eventObj.icone;
2167		var form = eventObj.form;
2168		var raz = eventObj.raz;
2169	} else {
2170		var idPl = eventObj.handleObj.data.idPl;
2171		var type = eventObj.handleObj.data.type;
2172		var icone = eventObj.handleObj.data.icone;
2173		var form = $(this).closest('form');
2174		var raz = 0;
2175	}
2176
2177	var formState = getMyFormParams(form);
2178
2179	loader(true);
2180	cancelAllGet();
2181	var get = $.get('/' + langContext + 'tourism/ajax/process/search?' + formState + '&json=true&raz=' + raz, function(data){
2182		var dataDecoded = $.parseJSON(data);
2183		$("div[name=idPl_" + idPl + "]").html(dataDecoded.searchEngine);
2184		if($('#block-tourism_raccourci-tourism_list_results').length > 0 && ($('.fullscreen_control_wrapper').hasClass('off') || $('.fullscreen_control_wrapper').length == 0)){
2185			$('#block-tourism_raccourci-tourism_list_results').html(dataDecoded.blocResult);
2186		}
2187		initSearchtourismFormAjaxMap(idPl, type, icone);
2188		(raz == 1) ? clearMyMap(type, true) : update(dataDecoded.datasMap, type, icone);
2189
2190		if(typeof(dataDecoded.infos) != "undefined" && typeof($('.fullscreen_control_wrapper') != 'undefined') && $('.fullscreen_control_wrapper').hasClass('off')){
2191			$('#content-header .title').html(dataDecoded.infos.pagetitle);
2192			$('#content-header .breadcrumb').html(dataDecoded.infos.breadcrumb);
2193		}
2194		loader(false);
2195		Drupal.attachBehaviors();
2196	});
2197	ajaxGet.push(get);
2198}
2199
2200/////////////////////////////////////////////////// TOOLS ////////////////////////////////////////////////////////
2201
2202function slideMe(param){
2203
2204	var parentObj = $('.' + param.data.parent);
2205	if($(this).hasClass('plier')){
2206		var facetteDeplier = parentObj.filter('.deplier').next();
2207		if(facetteDeplier.attr('class') != "undefined"){
2208			facetteDeplier.animate({
2209				opacity: 0.25,
2210				height: 'toggle'
2211			}, 500, function(){
2212				facetteDeplier.hide();
2213			});
2214		}
2215
2216		parentObj.filter('.deplier').removeClass('deplier').addClass('plier');
2217		$(this).addClass('deplier').removeClass('plier');
2218		$(this).next().animate({
2219			opacity: 1,
2220			height: "toggle"
2221		}, 500, function(){
2222			$(this).next().show();
2223		});
2224		if(parentObj.hasClass('entete-facette')){
2225			updatePanelForMapDateSelection();
2226		}
2227	} else {
2228		var facetteDeplier = parentObj.filter('.deplier').next();
2229		if(facetteDeplier.attr('class') != "undefined"){
2230			facetteDeplier.animate({
2231				opacity: 0.25,
2232				height: "toggle"
2233			}, 500, function(){
2234				facetteDeplier.hide();
2235			});
2236		}
2237		parentObj.filter('.deplier').removeClass('deplier').addClass('plier');
2238	}
2239	updatePanelPositions();
2240}
2241
2242function loader(add, elt)
2243{
2244	if(add){
2245		var sUrl = '/' + module_base_path + '/ressources/isc/images/ajax-loader.gif';
2246		var lUrl = '/' + module_base_path + '/ressources/isc/images/ajax-big-loader.gif';
2247		var bigSize = 66;
2248		$('.ajax-loader').remove();
2249		$('.nombre-resultat').hide();
2250		var list = false;
2251		if(!elt){
2252			list = true;
2253			elt = $('#tabs');
2254			$('.libelle-resultat').after('<img src="' + sUrl + '" alt="loader" class="ajax-loader" />');
2255		}
2256		if(elt.length > 0){
2257			var offset = (elt.position().top + elt.innerHeight() < window.innerHeight) ? elt.innerHeight() / 2 : (window.innerHeight - elt.position().top) / 2;
2258			elt.append($('<div id="loader-overlay"></div>')
2259					.css({
2260				'width': elt.innerWidth(),
2261				'height': elt.innerHeight(),
2262				'top': elt.position().top,
2263				'bottom': elt.position().bottom,
2264				'background': '#FFFFFF url("' + ((elt.width() > bigSize && elt.height() > bigSize) ? lUrl : sUrl) + '") no-repeat',
2265				'background-position': 'center ' + (list ? (offset - (bigSize / 2)) + 'px' : 'center'),
2266				'position': (list ? 'absolute' : 'static'),
2267				'opacity': 0.6,
2268				'z-index': 6000
2269			})
2270					.addClass('ajax-loader'));
2271		}
2272	} else {
2273		$('.nombre-resultat').show();
2274		$('.ajax-loader').fadeOut(500, function(){
2275			$(this).remove();
2276		});
2277	}
2278}
2279
2280function getMyFormParams(form, col){
2281	var formState = '';
2282	if(!col){
2283		var colAll = $('.mode_actif').find('a').attr('id');
2284		var col = (colAll) ? colAll.substr(3, 1) : '';
2285	}
2286
2287	formState += 'pl_id=' + $('input[name="pl_id"]', form).val() + '&';
2288
2289	form.find('input[type="checkbox"]:checked"')
2290		.add(form.find('input[type="radio"]:checked'))
2291		.add(form.find('input[type="hidden"]'))
2292		.add(form.find('input[type="text"]'))
2293		.add(form.find('select'))
2294		.each(function(){
2295			var that = $(this), name = that.attr('name');
2296			if(name != 'form_build_id' && name != 'pl_id'){
2297				formState += name + '=' + that.val() + '&';
2298			}
2299	});
2300
2301	form.find("input[type=checkbox]").filter(":not(:checked)").each(function(){
2302		formState += $(this).attr('name') + "=0&";
2303	});
2304
2305	var stayBlock = $('#blockDateSelectionMain');
2306	if(stayBlock.length != 0){
2307		var start = $('#stay_start_id', stayBlock), end = $('#stay_end_id', stayBlock);
2308		if(start.length + end.length == 2 && start.val() != '' && end.val() != ''){
2309			formState += 'ouverture_debut=' + start.val() + '&';
2310		}
2311	}
2312
2313	// Fix sélection date agenda : date de fin incluse (#20623)
2314	var isManifestation = $('.tourism-type-manifestation');
2315	if(isManifestation.length != 0 && stayBlock.length != 0){
2316		// new end date = end date + 1 day
2317		var from = end.val().split("-");
2318		var f = new Date(from[2], from[1] - 1, from[0]);
2319		f.setDate(f.getDate() + 1);
2320
2321		// format output date
2322		var curr_date = (f.getDate() < 10) ? '0' + f.getDate() : f.getDate();
2323		var curr_month = ((f.getMonth()+1) < 10) ? '0' + (f.getMonth()+1) : (f.getMonth()+1);
2324		var curr_year = f.getFullYear();
2325		var output = curr_date+'-'+curr_month+'-'+curr_year;
2326
2327		if(start.length + end.length == 2 && start.val() != '' && end.val() != ''){
2328			formState += 'ouverture_fin=' + output + '&';
2329		}
2330
2331	} else if (stayBlock.length != 0){
2332		if(start.length + end.length == 2 && start.val() != '' && end.val() != ''){
2333			formState += 'ouverture_fin=' + end.val() + '&';
2334		}
2335	}
2336
2337
2338	if(typeof(isAgenda) !== 'undefined'){
2339		if(isAgenda == true){
2340			if(typeof(agendaMode) !== 'undefined'){
2341				switch (agendaMode) {
2342					case "month":
2343						formState += 'month=' + (monthVal) + '&';
2344						break;
2345					case "day":
2346					case "week":
2347						formState += 'month=' + (monthVal) + '&';
2348						formState += 'day=' + (dayVal) + '&';
2349						break;
2350				}
2351				formState += 'year=' + yearVal + '&';
2352				formState += 'mode=' + agendaMode + '&';
2353			}
2354		}
2355	}
2356	formState += 'col=' + col;
2357	return formState;
2358}
2359
2360function minutesToHours(mins){
2361	mins = mins.toString();
2362	if(mins.indexOf('h') !== -1 || mins.indexOf('min') !== -1) {
2363		return mins;
2364	} else {
2365
2366		if(mins == 0){
2367			return '0';
2368		}
2369
2370		var hours = Math.floor(mins / 60);
2371		var minutes = mins % 60;
2372		var hoursDisplay = (hours == 0) ? '' : hours + 'h';
2373		var minutesDisplay;
2374		if (0 == minutes) {
2375			minutesDisplay = '';
2376		} else {
2377			minutesDisplay = (minutes <= 9 ? '0' : '') + minutes;
2378			minutesDisplay += hours == 0 ? 'min' : '';
2379		}
2380		return hoursDisplay + minutesDisplay;
2381	}
2382}
2383
2384function autocomplete(query)
2385{
2386	var idPlaylist = $('#edit-pl-id').val();
2387	if(query.length > 3){
2388		cancelAllGet();
2389		var get = $.get('/tourism/ajax/autocomplete/search?idPl=' + idPlaylist + '&json=false&query=' + query, function(data){
2390			(data.length > 0) ? $('#autoSuggestionsList').html(data) : $('#autoSuggestionsList').html("<?php echo t('No result match your search')?>");
2391			initAutoSuggestionList();
2392		});
2393		ajaxGet.push(get);
2394	} else {
2395		$('#autoSuggestionsList').hide();
2396	}
2397}
2398
2399function arrayDelete(searchValue, arrayData){
2400	var newArray = [];
2401	var j = 0;
2402
2403	for (var i in arrayData) {
2404		if(i != searchValue || arrayData[i] != searchValue){
2405			newArray[j] = arrayData[i];
2406			j++;
2407		}
2408	}
2409
2410	return newArray;
2411}
2412
2413function formatInt(intVal){
2414	if(intVal < 1000){
2415		return intVal;
2416	}
2417	intVal = intVal.toString().split('').reverse();
2418	var l = intVal.length, newTxt = '', k = -1;
2419	for(var i in intVal){
2420		newTxt += ((i != 0 && i % 3 == 0) ? ' ' : '') + intVal[i];
2421	}
2422	return newTxt.split('').reverse().join('');
2423};
2424function initManifsSlideShow(widthParam) {
2425
2426  var currentPosition = 0;
2427  var slideWidth = (typeof(widthParam) == "undefined") ? 590 : widthParam;
2428  var slides = $('.slide');
2429  var numberOfSlides = slides.length;
2430
2431  // Remove scrollbar in JS
2432  $('#manifsSlidesContainer').css('overflow', 'hidden');
2433
2434  // Wrap all .slides with #slideInner div
2435  slides
2436  .wrapAll('<div id="slideInner"></div>')
2437  // Float left to display horizontally, readjust .slides width
2438  .css({
2439    'float' : 'left',
2440    'width' : slideWidth
2441  });
2442
2443  // Set #slideInner width equal to total width of all slides
2444  $('#slideInner').css('width', slideWidth * numberOfSlides);
2445
2446  // Insert left and right arrow controls in the DOM
2447  $('#manifsSlideshow')
2448    .prepend('<span class="control" id="leftControl">Move left</span>')
2449    .append('<span class="control" id="rightControl">Move right</span>');
2450
2451  // Hide left arrow control on first load
2452  manageControls(currentPosition);
2453
2454  // Create event listeners for .controls clicks
2455  $('.control')
2456    .bind('click', function(){
2457    // Determine new position
2458      currentPosition = ($(this).attr('id')=='rightControl')
2459    ? currentPosition+1 : currentPosition-1;
2460
2461      // Hide / show controls
2462      manageControls(currentPosition);
2463      // Move slideInner using margin-left
2464      $('#slideInner').animate({
2465        'marginLeft' : slideWidth*(-currentPosition)
2466      }, "slow");
2467    });
2468
2469  // manageControls: Hides and shows controls depending on currentPosition
2470  function manageControls(position){
2471    // Hide left arrow if position is first slide
2472    if(position==0){ $('#leftControl').hide() }
2473    else{ $('#leftControl').show() }
2474    // Hide right arrow if position is last slide
2475    if(position==numberOfSlides-1){ $('#rightControl').hide() }
2476    else{ $('#rightControl').show() }
2477    }
2478}
2479
2480
2481;
2482/*
2483 * jQuery UI 1.7.2
2484 *
2485 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
2486 * Dual licensed under the MIT (MIT-LICENSE.txt)
2487 * and GPL (GPL-LICENSE.txt) licenses.
2488 *
2489 * http://docs.jquery.com/UI
2490 */�jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1
2490);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;
2491/*
2492 * jQuery UI Accordion 1.7.2
2493 *
2494 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
2495 * Dual licensed under the MIT (MIT-LICENSE.txt)
2496 * and GPL (GPL-LICENSE.txt) licenses.
2497 *
2498 * http://docs.jquery.com/UI/Accordion
2499 *
2500 * Depends:
2501 *	ui.core.js
2502 */�(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");
2502this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}
2502else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;
2503/*
2504 * jQuery UI Datepicker 1.7.2
2505 *
2506 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
2507 * Dual licensed under the MIT (MIT-LICENSE.txt)
2508 * and GPL (GPL-LICENSE.txt) licenses.
2509 *
2510 * http://docs.jquery.com/UI/Datepicker
2511 *
2512 * Depends:
2513 *	ui.core.js
2514 */�(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));
2514input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}
2514else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}
2514else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}}
2514,_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}}
2514,noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;
2514if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>
2514":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";
2514if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html}
2514,_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);;
2515jQuery(function(a){a.datepicker.regional.fr={closeText:"Fermer",prevText:"&#x3c;Préc",nextText:"Suiv&#x3e;",currentText:"Courant",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],dateFormat:"dd/mm/yy",firstDay:1,isRTL:false};a.datepicker.setDefaults(a.datepicker.regional.fr)});;
2516(function ($) {
2517
2518function extlinkAttach(context) {
2519  // Strip the host name down, removing ports, subdomains, or www.
2520  var pattern = /^(([^\/:]+?\.)*)([^\.:]{4,})((\.[a-z]{1,4})*)(:[0-9]{1,5})?$/;
2521  var host = window.location.host.replace(pattern, '$3$4');
2522  var subdomain = window.location.host.replace(pattern, '$1');
2523
2524  // Determine what subdomains are considered internal.
2525  if (Drupal.settings.extlink.extSubdomains) {
2526    var subdomains = "([^/]*\\.)?";
2527  }
2528  else if (subdomain == 'www.' || subdomain == '') {
2529    var subdomains = "(www\\.)?";
2530  }
2531  else {
2532    var subdomains = subdomain.replace(".", "\\.");
2533  }
2534
2535  // Build regular expressions that define an internal link.
2536  var internal_link = new RegExp("^https?://" + subdomains + host, "i");
2537
2538  // Extra internal link matching.
2539  var extInclude = false;
2540  if (Drupal.settings.extlink.extInclude) {
2541    extInclude = new RegExp(Drupal.settings.extlink.extInclude.replace(/\\/, '\\'), "i");
2542  }
2543
2544  // Extra external link matching.
2545  var extExclude = false;
2546  if (Drupal.settings.extlink.extExclude) {
2547    extExclude = new RegExp(Drupal.settings.extlink.extExclude.replace(/\\/, '\\'), "i");
2548  }
2549
2550  // Extra external link CSS selector exclusion.
2551  var extCssExclude = false;
2552  if (Drupal.settings.extlink.extCssExclude) {
2553    extCssExclude = Drupal.settings.extlink.extCssExclude;
2554  }
2555
2556  // Extra external link CSS selector explicit.
2557  var extCssExplicit = false;
2558  if (Drupal.settings.extlink.extCssExplicit) {
2559    extCssExplicit = Drupal.settings.extlink.extCssExplicit;
2560  }
2561
2562  // Find all links which are NOT internal and begin with http (as opposed
2563  // to ftp://, javascript:, etc. other kinds of links.
2564  // When operating on the 'this' variable, the host has been appended to
2565  // all links by the browser, even local ones.
2566  // In jQuery 1.1 and higher, we'd use a filter method here, but it is not
2567  // available in jQuery 1.0 (Drupal 5 default).
2568  var external_links = new Array();
2569  var mailto_links = new Array();
2570  $("a:not(." + Drupal.settings.extlink.extClass + ", ." + Drupal.settings.extlink.mailtoClass + "), area:not(." + Drupal.settings.extlink.extClass + ", ." + Drupal.settings.extlink.mailtoClass + ")", context).each(function(el) {
2571    try {
2572      var url = this.href.toLowerCase();
2573      if (url.indexOf('http') == 0 
2574        && ((!url.match(internal_link) && !(extExclude && url.match(extExclude))) || (extInclude && url.match(extInclude)))
2575        && !(extCssExclude && $(this).parents(extCssExclude).length > 0)
2576        && !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
2577        external_links.push(this);
2578      }
2579      // Do not include area tags with begin with mailto: (this prohibits
2580      // icons from being added to image-maps).
2581      else if (this.tagName != 'AREA' 
2582        && url.indexOf('mailto:') == 0 
2583        && !(extCssExclude && $(this).parents(extCssExclude).length > 0)
2584        && !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)) {
2585        mailto_links.push(this);
2586      }
2587    }
2588    // IE7 throws errors often when dealing with irregular links, such as:
2589    // <a href="node/10"></a> Empty tags.
2590    // <a href="http://user:[email protected]">example</a> User:pass syntax.
2591    catch(error) {
2592      return false;
2593    }
2594  });
2595
2596  if (Drupal.settings.extlink.extClass) {
2597    // Apply the "ext" class to all links not containing images.
2598    if (parseFloat($().jquery) < 1.2) {
2599      $(external_links).not('[img]').addClass(Drupal.settings.extlink.extClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.extClass + '></span>'); });
2600    }
2601    else {
2602      $(external_links).not($(external_links).find('img').parents('a')).addClass(Drupal.settings.extlink.extClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.extClass + '></span>'); });
2603    }
2604  }
2605
2606  if (Drupal.settings.extlink.mailtoClass) {
2607    // Apply the "mailto" class to all mailto links not containing images.
2608    if (parseFloat($().jquery) < 1.2) {
2609      $(mailto_links).not('[img]').addClass(Drupal.settings.extlink.mailtoClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.mailtoClass + '></span>'); });
2610    }
2611    else {
2612      $(mailto_links).not($(mailto_links).find('img').parents('a')).addClass(Drupal.settings.extlink.mailtoClass).each(function() { if ($(this).css('display') == 'inline') $(this).after('<span class=' + Drupal.settings.extlink.mailtoClass + '></span>'); });
2613    }
2614  }
2615
2616  if (Drupal.settings.extlink.extTarget) {
2617    // Apply the target attribute to all links.
2618    $(external_links).attr('target', Drupal.settings.extlink.extTarget);
2619  }
2620
2621  Drupal.extlink = Drupal.extlink || {};
2622
2623  // Set up default click function for the external links popup. This should be
2624  // overridden by modules wanting to alter the popup.
2625  Drupal.extlink.popupClickHandler = Drupal.extlink.popupClickHandler || function() {
2626    if (Drupal.settings.extlink.extAlert) {
2627      return confirm(Drupal.settings.extlink.extAlertText);
2628    }
2629   }
2630  
2631  $(external_links).click(function(e) {
2632    return Drupal.extlink.popupClickHandler(e);
2633  });
2634}
2635
2636Drupal.behaviors.extlink = function(context) {
2637  extlinkAttach(context);
2638}
2639
2640})(jQuery);
2641;
2642;(function($) {
2643
2644  Drupal.behaviors.custom_search = function (context) {
2645
2646    if (!Drupal.settings.custom_search.solr) {
2647      // Check if the search box is not empty on submit
2648      $('form.search-form', context).submit(function(){
2649        var box = $(this).find('input.custom-search-box');
2650        if (box.val() != undefined && (box.val() == '' || box.val() == $(this).find('input.default-text').val())) {
2651          $(this).find('input.custom-search-box').addClass('error');
2652          return false;
2653        }
2654        // If basic search is hidden, copy or value to the keys
2655        if ($(this).find('#edit-keys').parents('div.element-invisible').attr('class') == 'element-invisible') {
2656          $(this).find('#edit-keys').val($(this).find('#edit-or').val());
2657          $(this).find('#edit-or').val('');
2658        }
2659        return true;
2660      });
2661    }
2662
2663    // Search from target
2664    $('form.search-form').attr('target', Drupal.settings.custom_search.form_target);
2665
2666    // Clear default text on focus, and put it back on blur. Also displays Popup.
2667    $('input.custom-search-box', context)
2668      .blur(function(e){
2669        var $this = $(this);
2670        var $parentForm = $this.parents('form');
2671        if ($this.val() == '') {
2672          $this.addClass('custom-search-default-value');
2673          $this.val($parentForm.find('input.default-text').val());
2674        }
2675      })
2676      .bind('click focus', function(e){
2677        var $this = $(this);
2678        var $parentForm = $this.parents('form');
2679        if ($this.val() == $parentForm.find('input.default-text').val()) $this.val('');
2680        $this.removeClass('custom-search-default-value');
2681        // check if there's something in the popup and displays it
2682        var popup = $parentForm.find('fieldset.custom_search-popup');
2683        if (popup.find('input,select').length && !popup.hasClass('opened')) popup.fadeIn().addClass('opened');
2684        e.stopPropagation();
2685      }
2686    );
2687    $(document).bind('click focus', function(){
2688      $('fieldset.custom_search-popup').hide().removeClass('opened');
2689    });
2690
2691    // Handle checkboxes
2692    $('.custom-search-selector input:checkbox', context).each(function(){
2693      var el = $(this);
2694      if (el.val() == 'c-all') {
2695        el.change(function(){
2696          $(this).parents('.custom-search-selector').find('input:checkbox[value!=c-all]').attr('checked', false);
2697        });
2698      }
2699      else {
2700        if (el.val().substr(0,2) == 'c-') {
2701          el.change(function(){
2702            $('.custom-search-selector input:checkbox').each(function(){
2703              if ($(this).val().substr(0,2) == 'o-') $(this).attr('checked', false);
2704            });
2705            $(this).parents('.custom-search-selector').find('input:checkbox[value=c-all]').attr('checked', false);
2706          });
2707        } else {
2708          el.change(function(){
2709            $(this).parents('.custom-search-selector').find('input:checkbox[value!='+el.val()+']').attr('checked', false);
2710          });
2711        }
2712      }
2713    });
2714
2715    // Reselect types and terms in advanced search
2716    var edit_keys = $('#edit-keys').val();
2717    if(edit_keys) {
2718      // types
2719      var pos = edit_keys.indexOf('type:');
2720      if (pos) {
2721        var pos2 = edit_keys.indexOf(' ',pos);
2722        if (pos2==-1) pos2 = edit_keys.length;
2723        var types = edit_keys.substring(pos+5,pos2);
2724        types = types.split(',');
2725        for (var i=0; i<types.length; i++) {
2726          $('.search-form input:checkbox[value='+types[i]+']').attr('checked', true);
2727        }
2728      }
2729      // terms
2730      var pos = edit_keys.indexOf('category:');
2731      if (pos) {
2732        var pos2 = edit_keys.indexOf(' ',pos);
2733        if (pos2==-1) pos2 = edit_keys.length;
2734        var terms = edit_keys.substring(pos+9,pos2);
2735        terms = terms.split(',');
2736        for (var i=0; i<terms.length; i++) {
2737          $('.search-form option[value='+terms[i]+']').attr('selected', true);
2738        }
2739      }
2740    }
2741
2742    var popup = $('fieldset.custom_search-popup:not(.custom_search-processed)', context).addClass("custom_search-processed");
2743    popup.click(function(e){
2744      e.stopPropagation();
2745    })
2746    popup.append('<a class="custom_search-popup-close" href="#">' + Drupal.t('Close') + '</a>');
2747    $('a.custom_search-popup-close').click(function(e){
2748      $('fieldset.custom_search-popup.opened').hide().removeClass('opened');
2749      e.preventDefault();
2750    });
2751
2752  }
2753
2754}(jQuery));
2755;
2756$(document).ready(function(){
2757	$('input[name="filling_time"]').each(function(){
2758		var me = $(this);
2759		if(me.val() == ''){
2760			var form = me.closest('form');
2761			$('input, textarea, select', form).focus(function(){
2762				if(typeof(me.data('startFillingTime')) === 'undefined'){
2763					me.data('startFillingTime', new Date());
2764				}
2765			});
2766
2767			form.submit(function(){
2768				me.val((new Date() - me.data('startFillingTime')) / 1000);
2769				return true;
2770			});
2771		}
2772	});
2773});;
2774
2775// Javascript behaviors for general CAPTCHA functionality.
2776Drupal.behaviors.captcha = function (context) {
2777
2778  // Turn off autocompletion for the CAPTCHA response field.
2779  // We do it here with Javascript (instead of directly in the markup)
2780  // because this autocomplete attribute is not standard and
2781  // it would break (X)HTML compliance.
2782  $("#edit-captcha-response").attr("autocomplete", "off");
2783
2784};
2785
2786
2787// JavaScript behaviors for the CAPTCHA admin page
2788Drupal.behaviors.captchaAdmin = function (context) {
2789
2790	// Add onclick handler to checkbox for adding a CAPTCHA description
2791	// so that the textfields for the CAPTCHA description are hidden
2792	// when no description should be added.
2793	$("#edit-captcha-add-captcha-description").click(function() {
2794		if ($("#edit-captcha-add-captcha-description").is(":checked")) {
2795			// Show the CAPTCHA description textfield(s).
2796			$("#edit-captcha-description-wrapper").show("slow");
2797		}
2798		else {
2799			// Hide the CAPTCHA description textfield(s).
2800			$("#edit-captcha-description-wrapper").hide("slow");
2801		}
2802	});
2803	// Hide the CAPTCHA description textfields if option is disabled on page load.
2804	if (!$("#edit-captcha-add-captcha-description").is(":checked")) {
2805		$("#edit-captcha-description-wrapper").hide();
2806	}
2807
2808};
2809;
2810
2811/**
2812 * JavaScript behaviors for the front-end display of webforms.
2813 */
2814
2815(function ($) {
2816
2817Drupal.behaviors.webform = function(context) {
2818  // Calendar datepicker behavior.
2819  Drupal.webform.datepicker(context);
2820};
2821
2822Drupal.webform = Drupal.webform || {};
2823
2824Drupal.webform.datepicker = function(context) {
2825  $('div.webform-datepicker').each(function() {
2826    var $webformDatepicker = $(this);
2827    var $calendar = $webformDatepicker.find('input.webform-calendar');
2828
2829    // Ensure the page we're on actually contains a datepicker.
2830    if ($calendar.length == 0) { 
2831      return;
2832    }
2833
2834    var startDate = $calendar[0].className.replace(/.*webform-calendar-start-(\d{4}-\d{2}-\d{2}).*/, '$1').split('-');
2835    var endDate = $calendar[0].className.replace(/.*webform-calendar-end-(\d{4}-\d{2}-\d{2}).*/, '$1').split('-');
2836    var firstDay = $calendar[0].className.replace(/.*webform-calendar-day-(\d).*/, '$1');
2837
2838    // Convert date strings into actual Date objects.
2839    startDate = new Date(startDate[0], startDate[1] - 1, startDate[2]);
2840    endDate = new Date(endDate[0], endDate[1] - 1, endDate[2]);
2841
2842    // Ensure that start comes before end for datepicker.
2843    if (startDate > endDate) {
2844      var laterDate = startDate;
2845      startDate = endDate;
2846      endDate = laterDate;
2847    }
2848
2849    var startYear = startDate.getFullYear();
2850    var endYear = endDate.getFullYear();
2851
2852    // Set up the jQuery datepicker element.
2853    $calendar.datepicker({
2854      dateFormat: 'yy-mm-dd',
2855      yearRange: startYear + ':' + endYear,
2856      firstDay: parseInt(firstDay),
2857      minDate: startDate,
2858      maxDate: endDate,
2859      onSelect: function(dateText, inst) {
2860        var date = dateText.split('-');
2861        $webformDatepicker.find('select.year, input.year').val(+date[0]).trigger('change');
2862        $webformDatepicker.find('select.month').val(+date[1]).trigger('change');
2863        $webformDatepicker.find('select.day').val(+date[2]).trigger('change');
2864      },
2865      beforeShow: function(input, inst) {
2866        // Get the select list values.
2867        var year = $webformDatepicker.find('select.year, input.year').val();
2868        var month = $webformDatepicker.find('select.month').val();
2869        var day = $webformDatepicker.find('select.day').val();
2870
2871        // If empty, default to the current year/month/day in the popup.
2872        var today = new Date();
2873        year = year ? year : today.getFullYear();
2874        month = month ? month : today.getMonth() + 1;
2875        day = day ? day : today.getDate();
2876
2877        // Make sure that the default year fits in the available options.
2878        year = (year < startYear || year > endYear) ? startYear : year;
2879
2880        // jQuery UI Datepicker will read the input field and base its date off
2881        // of that, even though in our case the input field is a button.
2882        $(input).val(year + '-' + month + '-' + day);
2883      }
2884    });
2885
2886    // Prevent the calendar button from submitting the form.
2887    $calendar.click(function(event) {
2888      $(this).focus();
2889      event.preventDefault();
2890    });
2891  });
2892}
2893
2894})(jQuery);
2895;
2896$(document).ready(function(){
2897	initTravelCart();
2898});
2899
2900function initTravelCart(){
2901	initTravelCartBehaviours();
2902	travelCartUpdateUI();
2903}
2904
2905function initTravelCartBehaviours(){
2906	var addButtons = $('.lienBoutonCarnetVoyage');
2907	addButtons.unbind('click');
2908	var parseCls = function(cls){
2909		var cls = cls.split(' ');
2910		for(var i in cls){
2911			if(cls[i].indexOf('add_') === 0){
2912				cls[i] = cls[i].split('_');
2913				cls[i] = cls[i][1].split('-');
2914				return {
2915					idPlaylist: cls[i][0],
2916					idFiche: cls[i][1]
2917				};
2918			}
2919		}
2920	}
2921
2922	var setButtonFn = function(btn, fn){
2923		var cb, clsAdd, clsRmv, txt;
2924		if(fn == 'remove'){
2925			cb = 'AddFiche';
2926			clsAdd = 'removeFromTravelCart';
2927			txt = 'remove';
2928			clsRmv = 'addToTravelCart';
2929		} else {
2930			cb = 'RemoveFiche';
2931			clsAdd = 'addToTravelCart';
2932			clsRmv = 'removeFromTravelCart';
2933			txt = 'add';
2934		}
2935		btn.removeClass(clsRmv).addClass(clsAdd).html(TravelCart.texts[txt]);
2936		return 'travelCart' + cb;
2937	}
2938
2939	var isSelected = function(idPlaylist, idFiche){
2940		var cart = travelCartCookie();
2941		for(var i in cart){
2942			if(cart[i].idPlaylist == idPlaylist && cart[i].idFiche == idFiche){
2943				return true;
2944			}
2945		}
2946		return false;
2947	}
2948
2949	addButtons.each(function(){
2950		var that = $(this);
2951		var btnData = parseCls(that.attr('class'));
2952		if(isSelected(btnData.idPlaylist, btnData.idFiche)){
2953			setButtonFn(that, 'remove');
2954		}
2955
2956		that.click(function(e){
2957			e.preventDefault();
2958			var that = $(this), data = parseCls(that.attr('class')),
2959				action = that.hasClass('addToTravelCart') ? 'remove' : 'add'
2960				cb = setButtonFn(that, action),
2961				fData = that.data('fiche-data');
2962			window[cb](data.idPlaylist, data.idFiche);
2963			travelCartUpdateUI();
2964			if(fData){
2965				travelCartShowMessage(action === 'remove' ? 'added' : 'removed', fData);
2966			}
2967		});
2968	});
2969}
2970
2971function travelCartShowMessage(text, data){
2972	var cls = 'travel-cart-message', ccls = 'close-button',
2973		anim = 'slow', w = $('.' + cls), elts = [], close;
2974
2975	if(w.exists()){
2976		w.find('.' + ccls).click();
2977	}
2978
2979	w = $('<div/>', {
2980		'class': cls + ' travel-cart-' + text,
2981		click: function(e){
2982			if(e.target == w.get(0)){
2983				close.click();
2984			}
2985		}
2986	});
2987
2988	text = TravelCart.texts[text];
2989	for(var i in data){
2990		text = text.replace('%' + i, '<span class="travel-cart ' + i + '">' + data[i] + '</span>');
2991	}
2992	text = '<div class="travel-cart-message-content">' + text + '</div>';
2993
2994	close = $('<a/>', {
2995		'class': ccls,
2996		html: TravelCart.texts.close,
2997		click: function(){
2998			w.fadeOut(anim, function(){
2999				w.remove();
3000			});
3001		}
3002	});
3003	elts.push(close)
3004	elts.push(text);
3005	elts.push($('<a/>', {
3006		'class': 'travel-cart-button',
3007		href: '/travelcart',
3008		html: TravelCart.texts.popup_link_text
3009	}));
3010
3011	var wrap = $('<div/>', {'class': 'travel-cart-wrapper'});
3012	for(var i in elts){
3013		wrap.append(elts[i]);
3014	}
3015
3016	w.append(wrap)
3017		.appendTo($('body'))
3018		.hide()
3019		.fadeIn(anim);
3020
3021	var resize = function(){
3022		w.height($(window).height());
3023		wrap.css('margin-top', ($(window).height() - wrap.height()) / 2);
3024	};
3025
3026	resize();
3027
3028	$(window).bind('resize', resize);
3029
3030	setTimeout(function(){
3031		close.click();
3032		$(window).unbind('resize', resize);
3033	}, 3000);
3034}
3035
3036function travelCartAddFiche(idPlaylist, idFiche){
3037	var cart = travelCartCookie();
3038	cart.push({
3039		idPlaylist: idPlaylist,
3040		idFiche: idFiche
3041	});
3042	travelCartSetCart(cart);
3043}
3044
3045function travelCartCookie(){
3046	var cart = $.cookie('travel-cart');
3047	return cart ? JSON.parse(cart) : new Array();
3048}
3049
3050function travelCartSetCart(cart){
3051	var opts = {expires: 7, path: '/'};
3052	$.cookie('travel-cart', JSON.stringify(cart), opts);
3053}
3054
3055function travelCartRemoveFiche(idPlaylist, idFiche){
3056	var cart = travelCartCookie();
3057	var nc = new Array();
3058	for(var i in cart){
3059		if(cart[i].idPlaylist != idPlaylist || cart[i].idFiche != idFiche){
3060			nc.push(cart[i]);
3061		}
3062	}
3063	travelCartSetCart(nc);
3064}
3065
3066function travelCartUpdateUI(){
3067	var cart = travelCartCookie();
3068	$('#travelCartCount').html(cart.length);
3069};
3070$(document).ready(function(){
3071	$('.yr-verdata-placeholder').each(function(){
3072		var that = $(this);
3073		$.get('/ajax_weather', {block: that.data('block')}, function(data){
3074			that.replaceWith(data);
3075		});
3076	});
3077});;
3078(function($) {
3079	Drupal.behaviors.initColorboxRaccourciStyle = function(context) {
3080		var body = $('body'),
3081			isMSIE = (navigator.userAgent.indexOf('MSIE') !== -1) ? true : false,
3082			colorbox = $('#colorbox'),
3083			colorboxElements = $('#cboxClose, #cboxTitle, #cboxCurrent', context),
3084			colorboxNext = $('#cboxNext'),
vendor: 4,275 bytes, lines 3085-3210
3085			colorboxPrev = $('#cboxPrevious');
3086			
3087		// Active la lightbox avec l'attribut rel="lightbox"
3088		if (body.hasClass('not-front')) {
3089			$('a[rel^="lightbox"]').colorbox({
3090				maxWidth: '80%',
3091				maxHeight: '80%'
3092			});
3093		}
3094		
3095		$(document).bind('cbox_open', function(){
3096			if (!isMSIE) {
3097				colorboxElements.css('opacity', 0);
3098			}
3099		});
3100		$(document).bind('cbox_load', function(){
3101			if (!isMSIE) {
3102				colorboxElements.css('opacity', 0);
3103			}
3104			else {
3105				colorbox.addClass('cboxIE');
3106			}
3107		});
3108		$(document).bind('cbox_complete', function(){
3109			colorboxElements.animate({
3110				opacity: 1
3111			}, 'fast');
3112			colorboxNext.html('<div class="cboxNavBtn">'+colorboxNext.text()+'<\/div>');
3113			colorboxPrev.html('<div class="cboxNavBtn">'+colorboxPrev.text()+'<\/div>');
3114		});
3115	};
3116})(jQuery);;
3117/*
3118 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3119 *
3120 * Uses the built in easing capabilities added In jQuery 1.1
3121 * to offer multiple easing options
3122 *
3123 * TERMS OF USE - jQuery Easing
3124 * 
3125 * Open source under the BSD License. 
3126 * 
3127 * Copyright © 2008 George McGinley Smith
3128 * All rights reserved.
3129 * 
3130 * Redistribution and use in source and binary forms, with or without modification, 
3131 * are permitted provided that the following conditions are met:
3132 * 
3133 * Redistributions of source code must retain the above copyright notice, this list of 
3134 * conditions and the following disclaimer.
3135 * Redistributions in binary form must reproduce the above copyright notice, this list 
3136 * of conditions and the following disclaimer in the documentation and/or other materials 
3137 * provided with the distribution.
3138 * 
3139 * Neither the name of the author nor the names of contributors may be used to endorse 
3140 * or promote products derived from this software without specific prior written permission.
3141 * 
3142 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
3143 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
3144 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
3145 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
3146 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
3147 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
3148 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
3149 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
3150 * OF THE POSSIBILITY OF SUCH DAMAGE. 
3151 *
3152*/
3153
3154// t: current time, b: begInnIng value, c: change In value, d: duration
3155jQuery.easing['jswing'] = jQuery.easing['swing'];
3156
3157jQuery.extend( jQuery.easing,
3158{
3159	def: 'easeOutQuad',
3160	swing: function (x, t, b, c, d) {
3161		//alert(jQuery.easing.default);
3162		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
3163	},
3164	easeInQuad: function (x, t, b, c, d) {
3165		return c*(t/=d)*t + b;
3166	},
3167	easeOutQuad: function (x, t, b, c, d) {
3168		return -c *(t/=d)*(t-2) + b;
3169	},
3170	easeInOutQuad: function (x, t, b, c, d) {
3171		if ((t/=d/2) < 1) return c/2*t*t + b;
3172		return -c/2 * ((--t)*(t-2) - 1) + b;
3173	},
3174	easeInCubic: function (x, t, b, c, d) {
3175		return c*(t/=d)*t*t + b;
3176	},
3177	easeOutCubic: function (x, t, b, c, d) {
3178		return c*((t=t/d-1)*t*t + 1) + b;
3179	},
3180	easeInOutCubic: function (x, t, b, c, d) {
3181		if ((t/=d/2) < 1) return c/2*t*t*t + b;
3182		return c/2*((t-=2)*t*t + 2) + b;
3183	},
3184	easeInQuart: function (x, t, b, c, d) {
3185		return c*(t/=d)*t*t*t + b;
3186	},
3187	easeOutQuart: function (x, t, b, c, d) {
3188		return -c * ((t=t/d-1)*t*t*t - 1) + b;
3189	},
3190	easeInOutQuart: function (x, t, b, c, d) {
3191		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
3192		return -c/2 * ((t-=2)*t*t*t - 2) + b;
3193	},
3194	easeInQuint: function (x, t, b, c, d) {
3195		return c*(t/=d)*t*t*t*t + b;
3196	},
3197	easeOutQuint: function (x, t, b, c, d) {
3198		return c*((t=t/d-1)*t*t*t*t + 1) + b;
3199	},
3200	easeInOutQuint: function (x, t, b, c, d) {
3201		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
3202		return c/2*((t-=2)*t*t*t*t + 2) + b;
3203	},
3204	easeInSine: function (x, t, b, c, d) {
3205		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
3206	},
3207	easeOutSine: function (x, t, b, c, d) {
3208		return c * Math.sin(t/d * (Math.PI/2)) + b;
3209	},
3210	easeInOutSine: function (x, t, b, c, d) {
vendor: 4,188 bytes, lines 3211-3314
3211		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
3212	},
3213	easeInExpo: function (x, t, b, c, d) {
3214		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
3215	},
3216	easeOutExpo: function (x, t, b, c, d) {
3217		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
3218	},
3219	easeInOutExpo: function (x, t, b, c, d) {
3220		if (t==0) return b;
3221		if (t==d) return b+c;
3222		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
3223		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
3224	},
3225	easeInCirc: function (x, t, b, c, d) {
3226		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
3227	},
3228	easeOutCirc: function (x, t, b, c, d) {
3229		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
3230	},
3231	easeInOutCirc: function (x, t, b, c, d) {
3232		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
3233		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
3234	},
3235	easeInElastic: function (x, t, b, c, d) {
3236		var s=1.70158;var p=0;var a=c;
3237		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
3238		if (a < Math.abs(c)) { a=c; var s=p/4; }
3239		else var s = p/(2*Math.PI) * Math.asin (c/a);
3240		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
3241	},
3242	easeOutElastic: function (x, t, b, c, d) {
3243		var s=1.70158;var p=0;var a=c;
3244		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
3245		if (a < Math.abs(c)) { a=c; var s=p/4; }
3246		else var s = p/(2*Math.PI) * Math.asin (c/a);
3247		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
3248	},
3249	easeInOutElastic: function (x, t, b, c, d) {
3250		var s=1.70158;var p=0;var a=c;
3251		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
3252		if (a < Math.abs(c)) { a=c; var s=p/4; }
3253		else var s = p/(2*Math.PI) * Math.asin (c/a);
3254		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
3255		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
3256	},
3257	easeInBack: function (x, t, b, c, d, s) {
3258		if (s == undefined) s = 1.70158;
3259		return c*(t/=d)*t*((s+1)*t - s) + b;
3260	},
3261	easeOutBack: function (x, t, b, c, d, s) {
3262		if (s == undefined) s = 1.70158;
3263		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
3264	},
3265	easeInOutBack: function (x, t, b, c, d, s) {
3266		if (s == undefined) s = 1.70158; 
3267		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
3268		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
3269	},
3270	easeInBounce: function (x, t, b, c, d) {
3271		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
3272	},
3273	easeOutBounce: function (x, t, b, c, d) {
3274		if ((t/=d) < (1/2.75)) {
3275			return c*(7.5625*t*t) + b;
3276		} else if (t < (2/2.75)) {
3277			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
3278		} else if (t < (2.5/2.75)) {
3279			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
3280		} else {
3281			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
3282		}
3283	},
3284	easeInOutBounce: function (x, t, b, c, d) {
3285		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
3286		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
3287	}
3288});
3289
3290/*
3291 *
3292 * TERMS OF USE - EASING EQUATIONS
3293 * 
3294 * Open source under the BSD License. 
3295 * 
3296 * Copyright © 2001 Robert Penner
3297 * All rights reserved.
3298 * 
3299 * Redistribution and use in source and binary forms, with or without modification, 
3300 * are permitted provided that the following conditions are met:
3301 * 
3302 * Redistributions of source code must retain the above copyright notice, this list of 
3303 * conditions and the following disclaimer.
3304 * Redistributions in binary form must reproduce the above copyright notice, this list 
3305 * of conditions and the following disclaimer in the documentation and/or other materials 
3306 * provided with the distribution.
3307 * 
3308 * Neither the name of the author nor the names of contributors may be used to endorse 
3309 * or promote products derived from this software without specific prior written permission.
3310 * 
3311 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
3312 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
3313 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
3314 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
3315 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
3316 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
3317 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
3318 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
3319 * OF THE POSSIBILITY OF SUCH DAMAGE. 
3320 *
3321 */;
3322/* =========================================================
3323
3324// jquery.innerfade.js
3325
3326// Datum: 2008-02-14
3327// Firma: Medienfreunde Hofmann & Baldes GbR
3328// Author: Torsten Baldes
3329// Mail: [email protected]
3330// Web: http://medienfreunde.com
3331
3332// based on the work of Matt Oakes http://portfolio.gizone.co.uk/applications/slideshow/
3333// and Ralf S. Engelschall http://trainofthoughts.org/
3334
3335 *
3336 *  <ul id="news"> 
3337 *      <li>content 1</li>
3338 *      <li>content 2</li>
3339 *      <li>content 3</li>
3340 *  </ul>
3341 *  
3342 *  $('#news').innerfade({ 
3343 *	  animationtype: Type of animation 'fade' or 'slide' (Default: 'fade'), 
3344 *	  speed: Fading-/Sliding-Speed in milliseconds or keywords (slow, normal or fast) (Default: 'normal'), 
3345 *	  timeout: Time between the fades in milliseconds (Default: '2000'), 
3346 *	  type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence'), 
3347 * 		containerheight: Height of the containing element in any css-height-value (Default: 'auto'),
3348 *	  runningclass: CSS-Class which the container get’s applied (Default: 'innerfade'),
3349 *	  children: optional children selector (Default: null)
3350 *  }); 
3351 *
3352
3353// ========================================================= */
3354
3355
3356(function($) {
3357
3358    $.fn.innerfade = function(options) {
3359        return this.each(function() {   
3360            $.innerfade(this, options);
3361        });
3362    };
3363
3364    $.innerfade = function(container, options) {
3365        var settings = {
3366        		'animationtype':    'fade',
3367            'speed':            'normal',
3368            'type':             'sequence',
3369            'timeout':          2000,
3370            'containerheight':  'auto',
3371            'runningclass':     'innerfade',
3372            'children':         null
3373        };
3374        if (options)
3375            $.extend(settings, options);
3376        if (settings.children === null)
3377            var elements = $(container).children();
3378        else
3379            var elements = $(container).children(settings.children);
3380        if (elements.length > 1) {
3381            $(container).css('position', 'relative').css('height', settings.containerheight).addClass(settings.runningclass);
3382            for (var i = 0; i < elements.length; i++) {
3383                $(elements[i]).css('z-index', String(elements.length-i)).css('position', 'absolute').hide();
3384            };
3385            if (settings.type == "sequence") {
3386                setTimeout(function() {
3387                    $.innerfade.next(elements, settings, 1, 0);
3388                }, settings.timeout);
3389                $(elements[0]).show();
3390            } else if (settings.type == "random") {
3391            		var last = Math.floor ( Math.random () * ( elements.length ) );
3392                setTimeout(function() {
3393                    do { 
3394												current = Math.floor ( Math.random ( ) * ( elements.length ) );
3395										} while (last == current );             
3396										$.innerfade.next(elements, settings, current, last);
3397                }, settings.timeout);
3398                $(elements[last]).show();
3399						} else if ( settings.type == 'random_start' ) {
3400								settings.type = 'sequence';
3401								var current = Math.floor ( Math.random () * ( elements.length ) );
3402								setTimeout(function(){
3403									$.innerfade.next(elements, settings, (current + 1) %  elements.length, current);
3404								}, settings.timeout);
3405								$(elements[current]).show();
3406						}	else {
3407							alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');
3408						}
3409				}
3410    };
3411
3412    $.innerfade.next = function(elements, settings, current, last) {
3413        if (settings.animationtype == 'slide') {
3414            $(elements[last]).slideUp(settings.speed);
3415            $(elements[current]).slideDown(settings.speed);
3416        } else if (settings.animationtype == 'fade') {
3417            $(elements[last]).fadeOut(settings.speed);
3418            $(elements[current]).fadeIn(settings.speed, function() {
3419							removeFilter($(this)[0]);
3420						});
3421        } else
3422            alert('Innerfade-animationtype must either be \'slide\' or \'fade\'');
3423        if (settings.type == "sequence") {
3424            if ((current + 1) < elements.length) {
3425                current = current + 1;
3426                last = current - 1;
3427            } else {
3428                current = 0;
3429                last = elements.length - 1;
3430            }
3431        } else if (settings.type == "random") {
3432            last = current;
3433            while (current == last)
3434                current = Math.floor(Math.random() * elements.length);
3435        } else
3436            alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');
3437        setTimeout((function() {
3438            $.innerfade.next(elements, settings, current, last);
3439        }), settings.timeout);
3440    };
3441
3442})(jQuery);
3443
3444// **** remove Opacity-Filter in ie ****
3445function removeFilter(element) {
3446	if(element.style.removeAttribute){
3447		element.style.removeAttribute('filter');
3448	}
3449}
3450;
3451/**
3452 * jCarousel - Riding carousels with jQuery
3453 *   http://sorgalla.com/jcarousel/
3454 *
3455 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
3456 * Dual licensed under the MIT (MIT-LICENSE.txt)
3457 * and GPL (GPL-LICENSE.txt) licenses.
3458 *
3459 * Built on top of the jQuery library
3460 *   http://jquery.com
3461 *
3462 * Inspired by the "Carousel Component" by Bill Scott
3463 *   http://billwscott.com/carousel/
3464 */
3465
3466(function($) {
3467    /**
3468     * Creates a carousel for all matched elements.
3469     *
3470     * @example $("#mycarousel").jcarousel();
3471     * @before <ul id="mycarousel" class="jcarousel-skin-name"><li>First item</li><li>Second item</li></ul>
3472     * @result
3473     *
3474     * <div class="jcarousel-skin-name">
3475     *   <div class="jcarousel-container">
3476     *     <div disabled="disabled" class="jcarousel-prev jcarousel-prev-disabled"></div>
3477     *     <div class="jcarousel-next"></div>
3478     *     <div class="jcarousel-clip">
3479     *       <ul class="jcarousel-list">
3480     *         <li class="jcarousel-item-1">First item</li>
3481     *         <li class="jcarousel-item-2">Second item</li>
3482     *       </ul>
3483     *     </div>
3484     *   </div>
3485     * </div>
3486     *
3487     * @name jcarousel
3488     * @type jQuery
3489     * @param Hash o A set of key/value pairs to set as configuration properties.
3490     * @cat Plugins/jCarousel
3491     */
3492    $.fn.jcarousel = function(o) {
3493        return this.each(function() {
3494            new $jc(this, o);
3495        });
3496    };
3497
3498    // Default configuration properties.
3499    var defaults = {
3500        vertical: false,
3501        start: 1,
3502        offset: 1,
3503        size: null,
3504        scroll: 3,
3505        visible: null,
3506        animation: 'normal',
3507        easing: 'swing',
3508        auto: 0,
3509        wrap: null,
3510        initCallback: null,
3511        reloadCallback: null,
3512        itemLoadCallback: null,
3513        itemFirstInCallback: null,
3514        itemFirstOutCallback: null,
3515        itemLastInCallback: null,
3516        itemLastOutCallback: null,
3517        itemVisibleInCallback: null,
3518        itemVisibleOutCallback: null,
3519        buttonNextHTML: '<div></div>',
3520        buttonPrevHTML: '<div></div>',
3521        buttonNextEvent: 'click',
3522        buttonPrevEvent: 'click',
3523        buttonNextCallback: null,
3524        buttonPrevCallback: null
3525    };
3526
3527    /**
3528     * The jCarousel object.
3529     *
3530     * @constructor
3531     * @name $.jcarousel
3532     * @param Object e The element to create the carousel for.
3533     * @param Hash o A set of key/value pairs to set as configuration properties.
3534     * @cat Plugins/jCarousel
3535     */
3536    $.jcarousel = function(e, o) {
3537        this.options    = $.extend({}, defaults, o || {});
3538
3539        this.locked     = false;
3540
3541        this.container  = null;
3542        this.clip       = null;
3543        this.list       = null;
3544        this.buttonNext = null;
3545        this.buttonPrev = null;
3546
3547        this.wh = !this.options.vertical ? 'width' : 'height';
3548        this.lt = !this.options.vertical ? 'left' : 'top';
3549
3550        // Extract skin class
3551        var skin = '', split = e.className.split(' ');
3552
3553        for (var i = 0; i < split.length; i++) {
3554            if (split[i].indexOf('jcarousel-skin') != -1) {
3555                $(e).removeClass(split[i]);
3556                var skin = split[i];
3557                break;
3558            }
3559        }
3560
3561        if (e.nodeName == 'UL' || e.nodeName == 'OL') {
3562            this.list = $(e);
3563            this.container = this.list.parent();
3564
3565            if (this.container.hasClass('jcarousel-clip')) {
3566                if (!this.container.parent().hasClass('jcarousel-container'))
3567                    this.container = this.container.wrap('<div></div>');
3568
3569                this.container = this.container.parent();
3570            } else if (!this.container.hasClass('jcarousel-container'))
3571                this.container = this.list.wrap('<div></div>').parent();
3572        } else {
3573            this.container = $(e);
3574            this.list = $(e).find('>ul,>ol,div>ul,div>ol');
3575        }
3576
3577        if (skin != '' && this.container.parent()[0].className.indexOf('jcarousel-skin') == -1)
3578        	this.container.wrap('<div class=" '+ skin + '"></div>');
3579
3580        this.clip = this.list.parent();
3581
3582        if (!this.clip.length || !this.clip.hasClass('jcarousel-clip'))
3583            this.clip = this.list.wrap('<div></div>').parent();
3584
3585        this.buttonPrev = $('.jcarousel-prev', this.container);
3586
3587        if (this.buttonPrev.size() == 0 && this.options.buttonPrevHTML != null)
3588            this.buttonPrev = this.clip.before(this.options.buttonPrevHTML).prev();
3589
3590        this.buttonPrev.addClass(this.className('jcarousel-prev'));
3591
3592        this.buttonNext = $('.jcarousel-next', this.container);
3593
3594        if (this.buttonNext.size() == 0 && this.options.buttonNextHTML != null)
3595            this.buttonNext = this.clip.before(this.options.buttonNextHTML).prev();
3596
3597        this.buttonNext.addClass(this.className('jcarousel-next'));
3598
3599        this.clip.addClass(this.className('jcarousel-clip'));
3600        this.list.addClass(this.className('jcarousel-list'));
3601        this.container.addClass(this.className('jcarousel-container'));
3602
3603        var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
3604        var li = this.list.children('li');
3605
3606        var self = this;
3607
3608        if (li.size() > 0) {
3609            var wh = 0, i = this.options.offset;
3610            li.each(function() {
3611                self.format(this, i++);
3612                wh += self.dimension(this, di);
3613            });
3614
3615            this.list.css(this.wh, wh + 'px');
3616
3617            // Only set if not explicitly passed as option
3618            if (!o || o.size === undefined)
3619                this.options.size = li.size();
3620        }
3621
3622        // For whatever reason, .show() does not work in Safari...
3623        this.container.css('display', 'block');
3624        this.buttonNext.css('display', 'block');
3625        this.buttonPrev.css('display', 'block');
3626
3627        this.funcNext   = function() { self.next(); };
3628        this.funcPrev   = function() { self.prev(); };
3629        this.funcResize = function() { self.reload(); };
3630
3631        if (this.options.initCallback != null)
3632            this.options.initCallback(this, 'init');
3633
3634        if ($.browser.safari) {
3635            this.buttons(false, false);
3636            $(window).bind('load', function() { self.setup(); });
3637        } else
3638            this.setup();
3639    };
3640
3641    // Create shortcut for internal use
3642    var $jc = $.jcarousel;
3643
3644    $jc.fn = $jc.prototype = {
3645        jcarousel: '0.2.3'
3646    };
3647
3648    $jc.fn.extend = $jc.extend = $.extend;
3649
3650    $jc.fn.extend({
3651        /**
3652         * Setups the carousel.
3653         *
3654         * @name setup
3655         * @type undefined
3656         * @cat Plugins/jCarousel
3657         */
3658        setup: function() {
3659            this.first     = null;
3660            this.last      = null;
3661            this.prevFirst = null;
3662            this.prevLast  = null;
3663            this.animating = false;
3664            this.timer     = null;
3665            this.tail      = null;
3666            this.inTail    = false;
3667
3668            if (this.locked)
3669                return;
3670
3671            this.list.css(this.lt, this.pos(this.options.offset) + 'px');
3672            var p = this.pos(this.options.start);
3673            this.prevFirst = this.prevLast = null;
3674            this.animate(p, false);
3675
3676            $(window).unbind('resize', this.funcResize).bind('resize', this.funcResize);
3677        },
3678
3679        /**
3680         * Clears the list and resets the carousel.
3681         *
3682         * @name reset
3683         * @type undefined
3684         * @cat Plugins/jCarousel
3685         */
3686        reset: function() {
3687            this.list.empty();
3688
3689            this.list.css(this.lt, '0px');
3690            this.list.css(this.wh, '10px');
3691
3692            if (this.options.initCallback != null)
3693                this.options.initCallback(this, 'reset');
3694
3695            this.setup();
3696        },
3697
3698        /**
3699         * Reloads the carousel and adjusts positions.
3700         *
3701         * @name reload
3702         * @type undefined
3703         * @cat Plugins/jCarousel
3704         */
3705        reload: function() {
3706            if (this.tail != null && this.inTail)
3707                this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + this.tail);
3708
3709            this.tail   = null;
3710            this.inTail = false;
3711
3712            if (this.options.reloadCallback != null)
3713                this.options.reloadCallback(this);
3714
3715            if (this.options.visible != null) {
3716                var self = this;
3717                var di = Math.ceil(this.clipping() / this.options.visible), wh = 0, lt = 0;
3718                $('li', this.list).each(function(i) {
3719                    wh += self.dimension(this, di);
3720                    if (i + 1 < self.first)
3721                        lt = wh;
3722                });
3723
3724                this.list.css(this.wh, wh + 'px');
3725                this.list.css(this.lt, -lt + 'px');
3726            }
3727
3728            this.scroll(this.first, false);
3729        },
3730
3731        /**
3732         * Locks the carousel.
3733         *
3734         * @name lock
3735         * @type undefined
3736         * @cat Plugins/jCarousel
3737         */
3738        lock: function() {
3739            this.locked = true;
3740            this.buttons();
3741        },
3742
3743        /**
3744         * Unlocks the carousel.
3745         *
3746         * @name unlock
3747         * @type undefined
3748         * @cat Plugins/jCarousel
3749         */
3750        unlock: function() {
3751            this.locked = false;
3752            this.buttons();
3753        },
3754
3755        /**
3756         * Sets the size of the carousel.
3757         *
3758         * @name size
3759         * @type undefined
3760         * @param Number s The size of the carousel.
3761         * @cat Plugins/jCarousel
3762         */
3763        size: function(s) {
3764            if (s != undefined) {
3765                this.options.size = s;
3766                if (!this.locked)
3767                    this.buttons();
3768            }
3769
3770            return this.options.size;
3771        },
3772
3773        /**
3774         * Checks whether a list element exists for the given index (or index range).
3775         *
3776         * @name get
3777         * @type bool
3778         * @param Number i The index of the (first) element.
3779         * @param Number i2 The index of the last element.
3780         * @cat Plugins/jCarousel
3781         */
3782        has: function(i, i2) {
3783            if (i2 == undefined || !i2)
3784                i2 = i;
3785
3786            if (this.options.size !== null && i2 > this.options.size)
3787            	i2 = this.options.size;
3788
3789            for (var j = i; j <= i2; j++) {
3790                var e = this.get(j);
3791                if (!e.length || e.hasClass('jcarousel-item-placeholder'))
3792                    return false;
3793            }
3794
3795            return true;
3796        },
3797
3798        /**
3799         * Returns a jQuery object with list element for the given index.
3800         *
3801         * @name get
3802         * @type jQuery
3803         * @param Number i The index of the element.
3804         * @cat Plugins/jCarousel
3805         */
3806        get: function(i) {
3807            return $('.jcarousel-item-' + i, this.list);
3808        },
3809
3810        /**
3811         * Adds an element for the given index to the list.
3812         * If the element already exists, it updates the inner html.
3813         * Returns the created element as jQuery object.
3814         *
3815         * @name add
3816         * @type jQuery
3817         * @param Number i The index of the element.
3818         * @param String s The innerHTML of the element.
3819         * @cat Plugins/jCarousel
3820         */
3821        add: function(i, s) {
3822            var e = this.get(i), old = 0, add = 0;
3823
3824            if (e.length == 0) {
3825                var c, e = this.create(i), j = $jc.intval(i);
3826                while (c = this.get(--j)) {
3827                    if (j <= 0 || c.length) {
3828                        j <= 0 ? this.list.prepend(e) : c.after(e);
3829                        break;
3830                    }
3831                }
3832            } else
3833                old = this.dimension(e);
3834
3835            e.removeClass(this.className('jcarousel-item-placeholder'));
3836            typeof s == 'string' ? e.html(s) : e.empty().append(s);
3837
3838            var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
3839            var wh = this.dimension(e, di) - old;
3840
3841            if (i > 0 && i < this.first)
3842                this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - wh + 'px');
3843
3844            this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) + wh + 'px');
3845
3846            return e;
3847        },
3848
3849        /**
3850         * Removes an element for the given index from the list.
3851         *
3852         * @name remove
3853         * @type undefined
3854         * @param Number i The index of the element.
3855         * @cat Plugins/jCarousel
3856         */
3857        remove: function(i) {
3858            var e = this.get(i);
3859
3860            // Check if item exists and is not currently visible
3861            if (!e.length || (i >= this.first && i <= this.last))
3862                return;
3863
3864            var d = this.dimension(e);
3865
3866            if (i < this.first)
3867                this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + d + 'px');
3868
3869            e.remove();
3870
3871            this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) - d + 'px');
3872        },
3873
3874        /**
3875         * Moves the carousel forwards.
3876         *
3877         * @name next
3878         * @type undefined
3879         * @cat Plugins/jCarousel
3880         */
3881        next: function() {
3882            this.stopAuto();
3883
3884            if (this.tail != null && !this.inTail)
3885                this.scrollTail(false);
3886            else
3887                this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'last') && this.options.size != null && this.last == this.options.size) ? 1 : this.first + this.options.scroll);
3888        },
3889
3890        /**
3891         * Moves the carousel backwards.
3892         *
3893         * @name prev
3894         * @type undefined
3895         * @cat Plugins/jCarousel
3896         */
3897        prev: function() {
3898            this.stopAuto();
3899
3900            if (this.tail != null && this.inTail)
3901                this.scrollTail(true);
3902            else
3903                this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'first') && this.options.size != null && this.first == 1) ? this.options.size : this.first - this.options.scroll);
3904        },
3905
3906        /**
3907         * Scrolls the tail of the carousel.
3908         *
3909         * @name scrollTail
3910         * @type undefined
3911         * @param Bool b Whether scroll the tail back or forward.
3912         * @cat Plugins/jCarousel
3913         */
3914        scrollTail: function(b) {
3915            if (this.locked || this.animating || !this.tail)
3916                return;
3917
3918            var pos  = $jc.intval(this.list.css(this.lt));
3919
3920            !b ? pos -= this.tail : pos += this.tail;
3921            this.inTail = !b;
3922
3923            // Save for callbacks
3924            this.prevFirst = this.first;
3925            this.prevLast  = this.last;
3926
3927            this.animate(pos);
3928        },
3929
3930        /**
3931         * Scrolls the carousel to a certain position.
3932         *
3933         * @name scroll
3934         * @type undefined
3935         * @param Number i The index of the element to scoll to.
3936         * @param Bool a Flag indicating whether to perform animation.
3937         * @cat Plugins/jCarousel
3938         */
3939        scroll: function(i, a) {
3940            if (this.locked || this.animating)
3941                return;
3942
3943            this.animate(this.pos(i), a);
3944        },
3945
3946        /**
3947         * Prepares the carousel and return the position for a certian index.
3948         *
3949         * @name pos
3950         * @type Number
3951         * @param Number i The index of the element to scoll to.
3952         * @cat Plugins/jCarousel
3953         */
3954        pos: function(i) {
3955            if (this.locked || this.animating)
3956                return;
3957
3958            i = $jc.intval(i);
3959            if (this.options.wrap != 'circular')
3960                i = i < 1 ? 1 : (this.options.size && i > this.options.size ? this.options.size : i);
3961
3962            var back = this.first > i;
3963            var pos  = $jc.intval(this.list.css(this.lt));
3964
3965            // Create placeholders, new list width/height
3966            // and new list position
3967            var f = this.options.wrap != 'circular' && this.first <= 1 ? 1 : this.first;
3968            var c = back ? this.get(f) : this.get(this.last);
3969            var j = back ? f : f - 1;
3970            var e = null, l = 0, p = false, d = 0;
3971
3972            while (back ? --j >= i : ++j < i) {
3973                e = this.get(j);
3974                p = !e.length;
3975                if (e.length == 0) {
3976                    e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
3977                    c[back ? 'before' : 'after' ](e);
3978                }
3979
3980                c = e;
3981                d = this.dimension(e);
3982
3983                if (p)
3984                    l += d;
3985
3986                if (this.first != null && (this.options.wrap == 'circular' || (j >= 1 && (this.options.size == null || j <= this.options.size))))
3987                    pos = back ? pos + d : pos - d;
3988            }
3989
3990            // Calculate visible items
3991            var clipping = this.clipping();
3992            var cache = [];
3993            var visible = 0, j = i, v = 0;
3994            var c = this.get(i - 1);
3995
3996            while (++visible) {
3997                e = this.get(j);
3998                p = !e.length;
3999                if (e.length == 0) {
4000                    e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
4001                    // This should only happen on a next scroll
4002                    c.length == 0 ? this.list.prepend(e) : c[back ? 'before' : 'after' ](e);
4003                }
4004
4005                c = e;
4006                var d = this.dimension(e);
4007                if (d == 0) {
4008                    alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...');
4009                    return 0;
4010                }
4011
4012                if (this.options.wrap != 'circular' && this.options.size !== null && j > this.options.size)
4013                    cache.push(e);
4014                else if (p)
4015                    l += d;
4016
4017                v += d;
4018
4019                if (v >= clipping)
4020                    break;
4021
4022                j++;
4023            }
4024
4025             // Remove out-of-range placeholders
4026            for (var x = 0; x < cache.length; x++)
4027                cache[x].remove();
4028
4029            // Resize list
4030            if (l > 0) {
4031                this.list.css(this.wh, this.dimension(this.list) + l + 'px');
4032
4033                if (back) {
4034                    pos -= l;
4035                    this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - l + 'px');
4036                }
4037            }
4038
4039            // Calculate first and last item
4040            var last = i + visible - 1;
4041            if (this.options.wrap != 'circular' && this.options.size && last > this.options.size)
4042                last = this.options.size;
4043
4044            if (j > last) {
4045                visible = 0, j = last, v = 0;
4046                while (++visible) {
4047                    var e = this.get(j--);
4048                    if (!e.length)
4049                        break;
4050                    v += this.dimension(e);
4051                    if (v >= clipping)
4052                        break;
4053                }
4054            }
4055
4056            var first = last - visible + 1;
4057            if (this.options.wrap != 'circular' && first < 1)
4058                first = 1;
4059
4060            if (this.inTail && back) {
4061                pos += this.tail;
4062                this.inTail = false;
4063            }
4064
4065            this.tail = null;
4066            if (this.options.wrap != 'circular' && last == this.options.size && (last - visible + 1) >= 1) {
4067                var m = $jc.margin(this.get(last), !this.options.vertical ? 'marginRight' : 'marginBottom');
4068                if ((v - m) > clipping)
4069                    this.tail = v - clipping - m;
4070            }
4071
4072            // Adjust position
4073            while (i-- > first)
4074                pos += this.dimension(this.get(i));
4075
4076            // Save visible item range
4077            this.prevFirst = this.first;
4078            this.prevLast  = this.last;
4079            this.first     = first;
4080            this.last      = last;
4081
4082            return pos;
4083        },
4084
4085        /**
4086         * Animates the carousel to a certain position.
4087         *
4088         * @name animate
4089         * @type undefined
4090         * @param mixed p Position to scroll to.
4091         * @param Bool a Flag indicating whether to perform animation.
4092         * @cat Plugins/jCarousel
4093         */
4094        animate: function(p, a) {
4095            if (this.locked || this.animating)
4096                return;
4097
4098            this.animating = true;
4099
4100            var self = this;
4101            var scrolled = function() {
4102                self.animating = false;
4103
4104                if (p == 0)
4105                    self.list.css(self.lt,  0);
4106
4107                if (self.options.wrap == 'both' || self.options.wrap == 'last' || self.options.size == null || self.last < self.options.size)
4108                    self.startAuto();
4109
4110                self.buttons();
4111                self.notify('onAfterAnimation');
4112            };
4113
4114            this.notify('onBeforeAnimation');
4115
4116            // Animate
4117            if (!this.options.animation || a == false) {
4118                this.list.css(this.lt, p + 'px');
4119                scrolled();
4120            } else {
4121                var o = !this.options.vertical ? {'left': p} : {'top': p};
4122                this.list.animate(o, this.options.animation, this.options.easing, scrolled);
4123            }
4124        },
4125
4126        /**
4127         * Starts autoscrolling.
4128         *
4129         * @name auto
4130         * @type undefined
4131         * @param Number s Seconds to periodically autoscroll the content.
4132         * @cat Plugins/jCarousel
4133         */
4134        startAuto: function(s) {
4135            if (s != undefined)
4136                this.options.auto = s;
4137
4138            if (this.options.auto == 0)
4139                return this.stopAuto();
4140
4141            if (this.timer != null)
4142                return;
4143
4144            var self = this;
4145            this.timer = setTimeout(function() { self.next(); }, this.options.auto * 1000);
4146        },
4147
4148        /**
4149         * Stops autoscrolling.
4150         *
4151         * @name stopAuto
4152         * @type undefined
4153         * @cat Plugins/jCarousel
4154         */
4155        stopAuto: function() {
4156            if (this.timer == null)
4157                return;
4158
4159            clearTimeout(this.timer);
4160            this.timer = null;
4161        },
4162
4163        /**
4164         * Sets the states of the prev/next buttons.
4165         *
4166         * @name buttons
4167         * @type undefined
4168         * @cat Plugins/jCarousel
4169         */
4170        buttons: function(n, p) {
4171            if (n == undefined || n == null) {
4172                var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null || this.last < this.options.size);
4173                if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && this.last >= this.options.size)
4174                    n = this.tail != null && !this.inTail;
4175            }
4176
4177            if (p == undefined || p == null) {
4178                var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || this.first > 1);
4179                if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && this.first == 1)
4180                    p = this.tail != null && this.inTail;
4181            }
4182
4183            var self = this;
4184
4185            this.buttonNext[n ? 'bind' : 'unbind'](this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr('disabled', n ? false : true);
4186            this.buttonPrev[p ? 'bind' : 'unbind'](this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled', p ? false : true);
4187
4188            if (this.buttonNext.length >
4188 0 && (this.buttonNext[0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate != n) && this.options.buttonNextCallback != null) {
4189                this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); });
4190                this.buttonNext[0].jcarouselstate = n;
4191            }
4192
4193            if (this.buttonPrev.length > 0 && (this.buttonPrev[0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate != p) && this.options.buttonPrevCallback != null) {
4194                this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); });
4195                this.buttonPrev[0].jcarouselstate = p;
4196            }
4197        },
4198
4199        notify: function(evt) {
4200            var state = this.prevFirst == null ? 'init' : (this.prevFirst < this.first ? 'next' : 'prev');
4201
4202            // Load items
4203            this.callback('itemLoadCallback', evt, state);
4204
4205            if (this.prevFirst !== this.first) {
4206                this.callback('itemFirstInCallback', evt, state, this.first);
4207                this.callback('itemFirstOutCallback', evt, state, this.prevFirst);
4208            }
4209
4210            if (this.prevLast !== this.last) {
4211                this.callback('itemLastInCallback', evt, state, this.last);
4212                this.callback('itemLastOutCallback', evt, state, this.prevLast);
4213            }
4214
4215            this.callback('itemVisibleInCallback', evt, state, this.first, this.last, this.prevFirst, this.prevLast);
4216            this.callback('itemVisibleOutCallback', evt, state, this.prevFirst, this.prevLast, this.first, this.last);
4217        },
4218
4219        callback: function(cb, evt, state, i1, i2, i3, i4) {
4220            if (this.options[cb] == undefined || (typeof this.options[cb] != 'object' && evt != 'onAfterAnimation'))
4221                return;
4222
4223            var callback = typeof this.options[cb] == 'object' ? this.options[cb][evt] : this.options[cb];
4224
4225            if (!$.isFunction(callback))
4226                return;
4227
4228            var self = this;
4229
4230            if (i1 === undefined)
4231                callback(self, state, evt);
4232            else if (i2 === undefined)
4233                this.get(i1).each(function() { callback(self, this, i1, state, evt); });
4234            else {
4235                for (var i = i1; i <= i2; i++)
4236                    if (i !== null && !(i >= i3 && i <= i4))
4237                        this.get(i).each(function() { callback(self, this, i, state, evt); });
4238            }
4239        },
4240
4241        create: function(i) {
4242            return this.format('<li></li>', i);
4243        },
4244
4245        format: function(e, i) {
4246            var $e = $(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-' + i));
4247            $e.attr('jcarouselindex', i);
4248            return $e;
4249        },
4250
4251        className: function(c) {
4252            return c + ' ' + c + (!this.options.vertical ? '-horizontal' : '-vertical');
4253        },
4254
4255        dimension: function(e, d) {
4256            var el = e.jquery != undefined ? e[0] : e;
4257
4258            var old = !this.options.vertical ?
4259                el.offsetWidth + $jc.margin(el, 'marginLeft') + $jc.margin(el, 'marginRight') :
4260                el.offsetHeight + $jc.margin(el, 'marginTop') + $jc.margin(el, 'marginBottom');
4261
4262            if (d == undefined || old == d)
4263                return old;
4264
4265            var w = !this.options.vertical ?
4266                d - $jc.margin(el, 'marginLeft') - $jc.margin(el, 'marginRight') :
4267                d - $jc.margin(el, 'marginTop') - $jc.margin(el, 'marginBottom');
4268
4269            $(el).css(this.wh, w + 'px');
4270
4271            return this.dimension(el);
4272        },
4273
4274        clipping: function() {
4275            return !this.options.vertical ?
4276                this.clip[0].offsetWidth - $jc.intval(this.clip.css('borderLeftWidth')) - $jc.intval(this.clip.css('borderRightWidth')) :
4277                this.clip[0].offsetHeight - $jc.intval(this.clip.css('borderTopWidth')) - $jc.intval(this.clip.css('borderBottomWidth'));
4278        },
4279
4280        index: function(i, s) {
4281            if (s == undefined)
4282                s = this.options.size;
4283
4284            return Math.round((((i-1) / s) - Math.floor((i-1) / s)) * s) + 1;
4285        }
4286    });
4287
4288    $jc.extend({
4289        /**
4290         * Gets/Sets the global default configuration properties.
4291         *
4292         * @name defaults
4293         * @descr Gets/Sets the global default configuration properties.
4294         * @type Hash
4295         * @param Hash d A set of key/value pairs to set as configuration properties.
4296         * @cat Plugins/jCarousel
4297         */
4298        defaults: function(d) {
4299            return $.extend(defaults, d || {});
4300        },
4301
4302        margin: function(e, p) {
4303            if (!e)
4304                return 0;
4305
4306            var el = e.jquery != undefined ? e[0] : e;
4307
4308            if (p == 'marginRight' && $.browser.safari) {
4309                var old = {'display': 'block', 'float': 'none', 'width': 'auto'}, oWidth, oWidth2;
4310
4311                $.swap(el, old, function() { oWidth = el.offsetWidth; });
4312
4313                old['marginRight'] = 0;
4314                $.swap(el, old, function() { oWidth2 = el.offsetWidth; });
4315
4316                return oWidth2 - oWidth;
4317            }
4318
4319            return $jc.intval($.css(el, p));
4320        },
4321
4322        intval: function(v) {
4323            v = parseInt(v);
4324            return isNaN(v) ? 0 : v;
4325        }
4326    });
4327
4328})(jQuery);
4329;
4330$(document).ready(function(){
4331	$('#bandeau_anime').innerfade({
4332		animationtype: 'fade',
4333		speed: 'slow',
4334		timeout: 4000,
4335		type: 'sequence',
4336		containerheight: '150px'
4337	});
4338	
4339	
4340	/**
4341	* Rechercher
4342	*/
4343	var texte_rechercher;
4344	if( $('body').hasClass('i18n-fr') ){ texte_rechercher = 'Rechercher'; }
4345	else if( $('body').hasClass('i18n-es') ){ texte_rechercher = 'Buscar' }
4346	else if( $('body').hasClass('i18n-de') ){ texte_rechercher = 'Suchen' }
4347	else if( $('body').hasClass('i18n-nl') ){ texte_rechercher = 'Zoeken' }
4348	else{ texte_rechercher = 'Search'; }
4349	var selecteur = $('#edit-search-block-form-1, #edit-search-theme-form-1');
4350	selecteur.val(texte_rechercher);
4351	selecteur.focus(function(){
4352		if( $(this).val() == texte_rechercher ){
4353			$(this).val('');
4354		}
4355	});
4356	selecteur.blur(function(){
4357		if( $(this).val() == '' || $(this).val() == 'Rechercher'){
4358			$(this).val(texte_rechercher);
4359		}
4360	});
4361	
4362	
4363	/**
4364	* Newsletter
4365	*/
4366	if( $('body').hasClass('i18n-fr') ){ var texte_email = 'Adresse e-mail'; }
4367	else if( $('body').hasClass('i18n-es') ){ texte_email = 'E-mail' }
4368	else if( $('body').hasClass('i18n-nl') ){ texte_email = 'E-mailadres' }
4369	else if( $('body').hasClass('i18n-de') ){ texte_email = 'E-Mail-Adresse' }
4370	else{ var texte_email = 'E-mail address'; }
4371	var selecteur = $('form[id^=simplenews] .form-item .form-text[name^=mail]');
4372	selecteur.val(texte_email);
4373	selecteur.focus(function(){
4374		if( $(this).val() == texte_email ){
4375			$(this).val('');
4376		}
4377	});
4378	selecteur.blur(function(){
4379		if( $(this).val() == '' ){
4380			$(this).val(texte_email);
4381		}
4382	});
4383	
4384	
4385	/**
4386	* Bouton ajouter aux favoris
4387	*/
4388	// add a "rel" attrib if Opera 7+
4389	if(window.opera){
4390		if ($('a.jqbookmark').attr('rel') != ''){
4391			$('a.jqbookmark').attr('rel', 'sidebar');
4392		}
4393	}
4394	$('a.jqbookmark').click(function(event){
4395		event.preventDefault();
4396		var url = this.href;
4397		var title = this.title;
4398		
4399		if (window.sidebar) { // Mozilla Firefox Bookmark
4400			window.sidebar.addPanel(title, url, "");
4401		} else if( window.external ) { // IE Favorite
4402			window.external.AddFavorite( url, title);
4403		} else if(window.opera) { // Opera 7+
4404			return false; // do nothing - the rel="sidebar" should do the trick
4405		} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
4406			alert('Unfortunately, this browser does not support the requested action, please bookmark this page manually.');
4407		}
4408	});
4409	
4410	/**
4411	* Script pour catégories brochures
4412	*/
4413	$('.taxo_brochures').mouseenter(function() {
4414		var a = $(this).find('li').length,h=50;
4415		$(this).stop(false,true).animate({'height':a*h+'px'}, 500);
4416	});
4417	$('.taxo_brochures').mouseleave(function() {
4418		$(this).stop(false,true).animate({'height':'50px'}, 250);
4419	});
4420	
4421	
4422	/**
4423	* Scroll doux
4424	*/
4425	$('a[href*=#]').click(function(){
4426		if(location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname){
4427			var adjust = 0;
4428			if( $(this).parents('.detailOnglet').hasClass('detailOngletResponsive') ){
4429				if( $(window).width() < 738 ){
4430					adjust = 80;
4431					if($('#content-header').hasClass('tourism-elt-static-attached') ){
4432						adjust = 160;
4433					}
4434				}
4435				else{
4436					adjust = 180;
4437					if($('#content-header').hasClass('tourism-elt-static-attached') ){
4438						adjust = 264;
4439					}
4440				}
4441			}
4442			var $target = $(this.hash);
4443			$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
4444			if($target.length){
4445				$('html,body').animate({
4446					scrollTop: $target.offset().top - adjust
4447				}, 1000, 'easeOutCubic');
4448				return false;
4449			}
4450		}
4451	});
4452});
4453
4454
4455/**
4456* Menu qui passe à gauche si il sort de l'écran
4457*/
4458$(function(){
4459	//Get our elements for faster access and set overlay width
4460	var div = $('div.sc_menu'),
4461	ul = $('ul.sc_menu'),
4462	// unordered list's left margin
4463	ulPadding = 0;
4464	
4465	//Get menu width
4466	var divWidth = div.width();
4467	
4468	//Remove scrollbars
4469	div.css({overflow: 'hidden'});
4470	
4471	//Find last image container
4472	var lastLi = ul.find('li:last-child');
4473	
4474	//When user move mouse over menu
4475	div.mousemove(function(e){
4476		//As images are loaded ul width increases,
4477		//so we recalculate it each time
4478		var ulWidth = lastLi[0].offsetLeft + lastLi.outerWidth() + ulPadding;
4479		
4480		var left = (e.pageX - div.offset().left) * (ulWidth-divWidth) / divWidth;
4481		div.scrollLeft(left);
4482	});
4483});
4484
4485
4486/**
4487* Anime les onglets
4488*/
4489(function($){
4490	$.fn.animTabs = function(userOptions){
4491		var selecteur = $(this);
4492		
4493		// Options
4494		var settings = {
4495			waiting: 1000,
4496			duration: 600
4497		}
4498		$.extend(settings, userOptions);
4499		
4500		if( selecteur.length != 0 ){
4501			setTimeout(function(){
4502				var i = 0;
4503				setInterval(function(){
4504					var tab = selecteur.find('li:nth-child('+i+')');
4505					tab.addClass('active');
4506					setTimeout(function(){
4507						tab.removeClass('active');
4508					}, settings.duration);
4509					i++;
4510				}, settings.duration);
4511			}, settings.waiting);
4512		}
4513	};
4514})(jQuery);
4515
4516function viewFilters ( viewName, inputType, checkedCls, eventType, callBack ) {
4517	
4518	if ( !viewName ) return;
4519
4520	eventType = eventType || 'click';
4521	inputType = inputType || 'radios';
4522	checkedCls = checkedCls || 'active';
4523
4524	var namespace = 'ajaxSuccess.filters',
4525		view = 'view-' + viewName ;
4526		classes = {
4527			item: '.form-item'
4528		};
4529
4530	(function watchAjax () {
4531		$(document).unbind(namespace).bind(namespace, function ( event, xhr ) {
4532			if ( xhr.response.indexOf( view ) >= 0  ) {
4533				filtersHandler();
4534				if ( typeof(callBack) === 'function' ) callBack.call();
4535			}
4536		});
4537	})();
4538	
4539	function filtersHandler () {
4540		
4541		var filters = $('.' + view + ' .view-filters .form-' + inputType + ' ' + classes.item),
4542			submit = $('#edit-submit-' + viewName),
4543			t, waiting = 150;
4544
4545		filters.find('input:checked').closest(classes.item).addClass(checkedCls);
4546
4547		filters.each(function(index, el) {
4548			$(el).bind(eventType, function(event) {
4549				$(el).addClass(checkedCls);
4550				t = setTimeout(function () {
4551					submit.trigger('submit');
4552				}, waiting);
4553				$(el).unbind(eventType);
4554			});
4555		});
4556	}
4557	filtersHandler();
4558}
4559
4560(function($){
4561
4562	$.jqwatch = function( elt, opts ){
4563
4564		var self = this;
4565
4566		self.watching = $(elt);
4567		self.settings = $.extend({}, self.defaults, opts);
4568		self.init();
4569
4570	};
4571	$.jqwatch.prototype.init = function() {
4572		var self = this;
4573		self.hasTriggered = false;
4574		self.windowEvent();
4575	};
4576	$.jqwatch.prototype.windowEvent = function() {
4577		
4578		var self = this;
4579
4580		$(window).unbind('scroll.jqwatch').bind( 'scroll.jqwatch' , function () {
4581			var range = $(window).scrollTop() + ( self.settings.offset * $(window).height());
4582
4583			if ( self.watching.offset().top < range ){
4584				if( typeof self.settings.callback === 'function' && !self.hasTriggered ){
4585					self.settings.callback.call(self, self.watching, self.settings);
4586					self.hasTriggered = true;
4587				}
4588			}
4589		});
4590
4591	};
4592	$.jqwatch.prototype.wait = function(callback) {
4593
4594		var self = this;
4595
4596		$(document).unbind('ajaxSuccess.jqwatch').bind('ajaxSuccess.jqwatch', function (e,x,s) {
4597			var url = s.url.split('/'), inArray = 0;
4598
4599			for (i in self.settings.ajaxReq) {
4600				if( $.inArray(self.settings.ajaxReq[i], url) != -1 ) {
4601					inArray++;
4602				}
4603			}
4604
4605			if( inArray === self.settings.ajaxReq.length ){
4606				setTimeout(function(){
4607					callback();
4608				}, 250);
4609			}
4610		});
4611
4612	};
4613	$.jqwatch.prototype.defaults = {
4614		callback: null,
4615		offset: 0.7,
4616		action: 'click',
4617		ajaxReq : [
4618			'tourism',
4619			'ajax'
4620		]
4621	};
4622	$.fn.jqwatch = function( opts ){
4623		return this.each(function(i, obj) {
4624			var inst = new $.jqwatch(obj,opts);
4625		});
4626	};
4627
4628})(jQuery);
4629;
4630;(function($){
4631	$(document).ready(function(){
4632		
4633		window.scriptHandler = window.sh = {};
4634
4635		var path = '/' + Drupal.settings.pathToTheme + '/js/',
4636			globScript = 'globalScript.js',
4637			cls = {
4638				// NOM_FICHER_JS : TABLEAU DE CLASSES [class, class, ...]
4639				front : ['front'],
4640				pages : ['not-front'],
4641				brochures : ['page-node-22'],
4642				tourisme : ['node-type-playlist-tourism', 'section-map-tourisme']
4643			};
4644
4645		$.getScript( path + globScript, function( data, textStatus ){
4646			$.each( cls, function( i, v ) {
4647				if ( $.isArray( v ) ) {
4648					for ( var j in v ){
4649						if ( $('body').hasClass(v[j]) ) {
4650							$.getScript( path + i +'.js');
4651						}
4652					}
4653				} else {
4654					if ( $('body').hasClass(v) ) {
4655						$.getScript( path + i +'.js');
4656					}
4657				}
4658			});
4659		});
4660	});
4661})(jQuery);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.