﻿/* GENERE PAR PLUGIN BIGJEES - 31/01/12 15:16*/
var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,f=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),j=c?/win/.test(c):/win/.test(f),l=c?/mac/.test(c):/mac/.test(f),h=/webkit/.test(f)?parseFloat(f.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,e=!+"\v1",g=[0,0,0],m=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){m=aB.plugins[ab].description;if(m&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;e=false;m=m.replace(/^.*\s+(\S+\s+\S+$)/,"$1");g[0]=parseInt(m.replace(/^(.*)\..*$/,"$1"),10);g[1]=parseInt(m.replace(/^.*\.(.*)\s.*$/,"$1"),10);g[2]=/[a-zA-Z]/.test(m)?parseInt(m.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof af.ActiveXObject!=aq){try{var k=new ActiveXObject(X);if(k){m=k.GetVariable("$version");if(m){e=true;m=m.split(" ")[1].split(",");g=[parseInt(m[0],10),parseInt(m[1],10),parseInt(m[2],10)];}}}catch(b){}}}return{w3:a,pv:g,wk:h,ie:e,win:j,mac:l};}(),aK=function(){if(!ah.w3){return;}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP();}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false);}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP();}});if(af==top){(function(){if(ak){return;}try{aL.documentElement.doScroll("left");}catch(a){setTimeout(arguments.callee,0);return;}aP();})();}}if(ah.wk){(function(){if(ak){return;}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return;}aP();})();}aC(aP);}}();function aP(){if(ak){return;}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b);}catch(a){return;}ak=true;var e=Z.length;for(var c=0;c<e;c++){Z[c]();}}function aj(a){if(ak){a();}else{Z[Z.length]=a;}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false);}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false);}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a);}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a();};}else{af.onload=a;}}}}}function aN(){if(aa){Y();}else{am();}}function Y(){var e=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=e.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var f=a.GetVariable("$version");if(f){f=f.split(" ")[1].split(",");ah.pv=[parseInt(f[0],10),parseInt(f[1],10),parseInt(f[2],10)];}}else{if(c<10){c++;setTimeout(arguments.callee,10);return;}}e.removeChild(b);a=null;am();})();}else{am();}}function am(){var h=aG.length;if(h>0){for(var j=0;j<h;j++){var c=aG[j].id;var n=aG[j].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var k=aS(c);if(k){if(ao(aG[j].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(n){a.success=true;a.ref=av(c);n(a);}}else{if(aG[j].expressInstall&&au()){var f={};f.data=aG[j].expressInstall;f.width=k.getAttribute("width")||"0";f.height=k.getAttribute("height")||"0";if(k.getAttribute("class")){f.styleclass=k.getAttribute("class");}if(k.getAttribute("align")){f.align=k.getAttribute("align");}var g={};var e=k.getElementsByTagName("param");var m=e.length;for(var l=0;l<m;l++){if(e[l].getAttribute("name").toLowerCase()!="movie"){g[e[l].getAttribute("name")]=e[l].getAttribute("value");}}ae(f,g,c,n);}else{aF(k);if(n){n(a);}}}}}else{ay(c,true);if(n){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b;}n(a);}}}}}function av(b){var e=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){e=c;}else{var a=c.getElementsByTagName(aD)[0];if(a){e=a;}}}return e;}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312);}function ae(g,e,j,f){aU=true;ap=f||null;at={success:false,id:j};var a=aS(j);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null;}else{aJ=a;ad=j;}g.id=ac;if(typeof g.width==aq||(!/%$/.test(g.width)&&parseInt(g.width,10)<310)){g.width="310";}if(typeof g.height==aq||(!/%$/.test(g.height)&&parseInt(g.height,10)<137)){g.height="137";}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof e.flashvars!=aq){e.flashvars+="&"+c;}else{e.flashvars=c;}if(ah.ie&&ah.win&&a.readyState!=4){var h=ar("div");j+="SWFObjectNew";h.setAttribute("id",j);a.parentNode.insertBefore(h,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a);}else{setTimeout(arguments.callee,10);}})();}aA(g,e,j);
}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a);}else{setTimeout(arguments.callee,10);}})();}else{a.parentNode.replaceChild(aO(a),a);}}function aO(b){var e=ar("div");if(ah.win&&ah.ie){e.innerHTML=b.innerHTML;}else{var f=b.getElementsByTagName(aD)[0];if(f){var a=f.childNodes;if(a){var g=a.length;for(var c=0;c<g;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){e.appendChild(a[c].cloneNode(true));}}}}}return e;}function aA(f,h,c){var e,a=aS(c);if(ah.wk&&ah.wk<312){return e;}if(a){if(typeof f.id==aq){f.id=c;}if(ah.ie&&ah.win){var g="";for(var k in f){if(f[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){h.movie=f[k];}else{if(k.toLowerCase()=="styleclass"){g+=' class="'+f[k]+'"';}else{if(k.toLowerCase()!="classid"){g+=" "+k+'="'+f[k]+'"';}}}}}var j="";for(var l in h){if(h[l]!=Object.prototype[l]){j+='<param name="'+l+'" value="'+h[l]+'" />';}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+g+">"+j+"</object>";ag[ag.length]=f.id;e=aS(f.id);}else{var b=ar(aD);b.setAttribute("type",aE);for(var m in f){if(f[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){b.setAttribute("class",f[m]);}else{if(m.toLowerCase()!="classid"){b.setAttribute(m,f[m]);}}}}for(var n in h){if(h[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){aQ(b,n,h[n]);}}a.parentNode.replaceChild(b,a);e=b;}}return e;}function aQ(b,e,c){var a=ar("param");a.setAttribute("name",e);a.setAttribute("value",c);b.appendChild(a);}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a);}else{setTimeout(arguments.callee,10);}})();}else{b.parentNode.removeChild(b);}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null;}}b.parentNode.removeChild(b);}}function aS(a){var c=null;try{c=aL.getElementById(a);}catch(b){}return c;}function ar(a){return aL.createElement(a);}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b];}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false;}function az(b,g,a,c){if(ah.ie&&ah.mac){return;}var f=aL.getElementsByTagName("head")[0];if(!f){return;}var h=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null;}if(!aH||an!=h){var e=ar("style");e.setAttribute("type","text/css");e.setAttribute("media",h);aH=f.appendChild(e);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1];}an=h;}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,g);}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+g+"}"));}}}function ay(a,c){if(!aI){return;}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b;}else{az("#"+a,"visibility:"+b);}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b;}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2]);}var e=ag.length;for(var c=0;c<e;c++){aw(ag[c]);}for(var f in ah){ah[f]=null;}ah=null;for(var g in swfobject){swfobject[g]=null;}swfobject=null;});}}();return{registerObject:function(a,f,c,b){if(ah.w3&&a&&f){var e={};e.id=a;e.swfVersion=f;e.expressInstall=c;e.callbackFn=b;aG[aG.length]=e;ay(a,false);}else{if(b){b({success:false,id:a});}}},getObjectById:function(a){if(ah.w3){return av(a);}},embedSWF:function(m,f,j,g,c,a,b,k,h,l){var e={success:false,id:f};if(ah.w3&&!(ah.wk&&ah.wk<312)&&m&&f&&j&&g&&c){ay(f,false);aj(function(){j+="";g+="";var t={};if(h&&typeof h===aD){for(var r in h){t[r]=h[r];}}t.data=m;t.width=j;t.height=g;var q={};if(k&&typeof k===aD){for(var s in k){q[s]=k[s];}}if(b&&typeof b===aD){for(var n in b){if(typeof q.flashvars!=aq){q.flashvars+="&"+n+"="+b[n];}else{q.flashvars=n+"="+b[n];}}}if(ao(c)){var o=aA(t,q,f);if(t.id==f){ay(f,true);}e.success=true;e.ref=o;}else{if(a&&au()){t.data=a;ae(t,q,f,l);return;}else{ay(f,true);}}if(l){l(e);}});}else{if(l){l(e);}}},switchOffAutoHideShow:function(){aI=false;},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]};},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c);}else{return undefined;}},showExpressInstall:function(b,a,e,c){if(ah.w3&&au()){ae(b,a,e,c);}},removeSWF:function(a){if(ah.w3){aw(a);}},createCSS:function(b,a,c,e){if(ah.w3){az(b,a,c,e);}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1];}if(b==null){return ai(a);}var c=a.split("&");for(var e=0;e<c.length;e++){if(c[e].substring(0,c[e].indexOf("="))==b){return ai(c[e].substring((c[e].indexOf("=")+1)));
}}}return"";},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block";}}if(ap){ap(at);}}aU=false;}}};}();
/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(aR,U){function a3(){if(!ak.isReady){try{ac.documentElement.doScroll("left");}catch(c){setTimeout(a3,1);return;}ak.ready();}}function M(s,c){c.src?ak.ajax({url:c.src,async:false,dataType:"script"}):ak.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c);}function at(s,c,L,G,J,A){var F=s.length;if(typeof c==="object"){for(var K in c){at(s,K,c[K],G,J,L);}return s;}if(L!==U){G=!A&&G&&ak.isFunction(L);for(K=0;K<F;K++){J(s[K],c,G?L.call(s[K],K,J(s[K],c)):L,A);}return s;}return F?J(s[0],c):U;}function aI(){return(new Date).getTime();}function ar(){return false;}function ap(){return true;}function aN(s,c,A){A[0].type=s;return ak.event.handle.apply(c,A);}function aj(P){var O,N=[],K=[],L=arguments,G,J,s,F,A,c;J=ak.data(this,"events");if(!(P.liveFired===this||!J||!J.live||P.button&&P.type==="click")){P.liveFired=this;var Q=J.live.slice(0);for(F=0;F<Q.length;F++){J=Q[F];J.origType.replace(aC,"")===P.type?K.push(J.selector):Q.splice(F--,1);}G=ak(P.target).closest(K,P.currentTarget);A=0;for(c=G.length;A<c;A++){for(F=0;F<Q.length;F++){J=Q[F];if(G[A].selector===J.selector){s=G[A].elem;K=null;if(J.preType==="mouseenter"||J.preType==="mouseleave"){K=ak(P.relatedTarget).closest(J.selector)[0];}if(!K||K!==s){N.push({elem:s,handleObj:J});}}}}A=0;for(c=N.length;A<c;A++){G=N[A];P.currentTarget=G.elem;P.data=G.handleObj.data;P.handleObj=G.handleObj;if(G.handleObj.origHandler.apply(G.elem,L)===false){O=false;break;}}return O;}}function D(s,c){return"live."+(s&&s!=="*"?s+".":"")+c.replace(/\./g,"`").replace(/ /g,"&");}function n(c){return !c||!c.parentNode||c.parentNode.nodeType===11;}function bn(s,c){var A=0;c.each(function(){if(this.nodeName===(s[A]&&s[A].nodeName)){var J=ak.data(s[A++]),K=ak.data(this,J);if(J=J&&J.events){delete K.handle;K.events={};for(var F in J){for(var G in J[F]){ak.event.add(this,F,J[F][G],J[F][G].data);}}}}});}function a6(s,c,J){var F,G,A;c=c&&c[0]?c[0].ownerDocument||c[0]:ac;if(s.length===1&&typeof s[0]==="string"&&s[0].length<512&&c===ac&&!aS.test(s[0])&&(ak.support.checkClone||!an.test(s[0]))){G=true;if(A=ak.fragments[s[0]]){if(A!==1){F=A;}}}if(!F){F=c.createDocumentFragment();ak.clean(s,c,F,J);}if(G){ak.fragments[s[0]]=A?F:1;}return{fragment:F,cacheable:G};}function aF(s,c){var A={};ak.each(I.concat.apply([],I.slice(0,c)),function(){A[this]=s;});return A;}function r(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false;}var ak=function(s,c){return new ak.fn.init(s,c);},t=aR.jQuery,e=aR.$,ac=aR.document,aw,bc=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aW=/^.[^:#\[\.,]*$/,aq=/\S/,S=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aA=navigator.userAgent,b=false,ay=[],aE,a4=Object.prototype.toString,aY=Object.prototype.hasOwnProperty,aB=Array.prototype.push,ax=Array.prototype.slice,a9=Array.prototype.indexOf;ak.fn=ak.prototype={init:function(s,c){var F,A;if(!s){return this;}if(s.nodeType){this.context=this[0]=s;this.length=1;return this;}if(s==="body"&&!c){this.context=ac;this[0]=ac.body;this.selector="body";this.length=1;return this;}if(typeof s==="string"){if((F=bc.exec(s))&&(F[1]||!c)){if(F[1]){A=c?c.ownerDocument||c:ac;if(s=u.exec(s)){if(ak.isPlainObject(c)){s=[ac.createElement(s[1])];ak.fn.attr.call(s,c,true);}else{s=[A.createElement(s[1])];}}else{s=a6([F[1]],[A]);s=(s.cacheable?s.fragment.cloneNode(true):s.fragment).childNodes;}return ak.merge(this,s);}else{if(c=ac.getElementById(F[2])){if(c.id!==F[2]){return aw.find(s);}this.length=1;this[0]=c;}this.context=ac;this.selector=s;return this;}}else{if(!c&&/^\w+$/.test(s)){this.selector=s;this.context=ac;s=ac.getElementsByTagName(s);return ak.merge(this,s);}else{return !c||c.jquery?(c||aw).find(s):ak(c).find(s);}}}else{if(ak.isFunction(s)){return aw.ready(s);}}if(s.selector!==U){this.selector=s.selector;this.context=s.context;}return ak.makeArray(s,this);},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length;},toArray:function(){return ax.call(this,0);},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c];},pushStack:function(s,c,F){var A=ak();ak.isArray(s)?aB.apply(A,s):ak.merge(A,s);A.prevObject=this;A.context=this.context;if(c==="find"){A.selector=this.selector+(this.selector?" ":"")+F;}else{if(c){A.selector=this.selector+"."+c+"("+F+")";}}return A;},each:function(s,c){return ak.each(this,s,c);},ready:function(c){ak.bindReady();if(ak.isReady){c.call(ac,ak);}else{ay&&ay.push(c);
}return this;},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(ax.apply(this,arguments),"slice",ax.call(arguments).join(","));},map:function(c){return this.pushStack(ak.map(this,function(s,A){return c.call(s,A,s);}));},end:function(){return this.prevObject||ak(null);},push:aB,sort:[].sort,splice:[].splice};ak.fn.init.prototype=ak.fn;ak.extend=ak.fn.extend=function(){var s=arguments[0]||{},c=1,L=arguments.length,G=false,J,A,F,K;if(typeof s==="boolean"){G=s;s=arguments[1]||{};c=2;}if(typeof s!=="object"&&!ak.isFunction(s)){s={};}if(L===c){s=this;--c;}for(;c<L;c++){if((J=arguments[c])!=null){for(A in J){F=s[A];K=J[A];if(s!==K){if(G&&K&&(ak.isPlainObject(K)||ak.isArray(K))){F=F&&(ak.isPlainObject(F)||ak.isArray(F))?F:ak.isArray(K)?[]:{};s[A]=ak.extend(G,F,K);}else{if(K!==U){s[A]=K;}}}}}}return s;};ak.extend({noConflict:function(c){aR.$=e;if(c){aR.jQuery=t;}return ak;},isReady:false,ready:function(){if(!ak.isReady){if(!ac.body){return setTimeout(ak.ready,13);}ak.isReady=true;if(ay){for(var s,c=0;s=ay[c++];){s.call(ac,ak);}ay=null;}ak.fn.triggerHandler&&ak(ac).triggerHandler("ready");}},bindReady:function(){if(!b){b=true;if(ac.readyState==="complete"){return ak.ready();}if(ac.addEventListener){ac.addEventListener("DOMContentLoaded",aE,false);aR.addEventListener("load",ak.ready,false);}else{if(ac.attachEvent){ac.attachEvent("onreadystatechange",aE);aR.attachEvent("onload",ak.ready);var s=false;try{s=aR.frameElement==null;}catch(c){}ac.documentElement.doScroll&&s&&a3();}}}},isFunction:function(c){return a4.call(c)==="[object Function]";},isArray:function(c){return a4.call(c)==="[object Array]";},isPlainObject:function(s){if(!s||a4.call(s)!=="[object Object]"||s.nodeType||s.setInterval){return false;}if(s.constructor&&!aY.call(s,"constructor")&&!aY.call(s.constructor.prototype,"isPrototypeOf")){return false;}var c;for(c in s){}return c===U||aY.call(s,c);},isEmptyObject:function(s){for(var c in s){return false;}return true;},error:function(c){throw c;},parseJSON:function(c){if(typeof c!=="string"||!c){return null;}c=ak.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return aR.JSON&&aR.JSON.parse?aR.JSON.parse(c):(new Function("return "+c))();}else{ak.error("Invalid JSON: "+c);}},noop:function(){},globalEval:function(s){if(s&&aq.test(s)){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,A=ac.createElement("script");A.type="text/javascript";if(ak.support.scriptEval){A.appendChild(ac.createTextNode(s));}else{A.text=s;}c.insertBefore(A,c.firstChild);c.removeChild(A);}},nodeName:function(s,c){return s.nodeName&&s.nodeName.toUpperCase()===c.toUpperCase();},each:function(s,c,K){var G,J=0,A=s.length,F=A===U||ak.isFunction(s);if(K){if(F){for(G in s){if(c.apply(s[G],K)===false){break;}}}else{for(;J<A;){if(c.apply(s[J++],K)===false){break;}}}}else{if(F){for(G in s){if(c.call(s[G],G,s[G])===false){break;}}}else{for(K=s[0];J<A&&c.call(K,J,K)!==false;K=s[++J]){}}}return s;},trim:function(c){return(c||"").replace(S,"");},makeArray:function(s,c){c=c||[];if(s!=null){s.length==null||typeof s==="string"||ak.isFunction(s)||typeof s!=="function"&&s.setInterval?aB.call(c,s):ak.merge(c,s);}return c;},inArray:function(s,c){if(c.indexOf){return c.indexOf(s);}for(var F=0,A=c.length;F<A;F++){if(c[F]===s){return F;}}return -1;},merge:function(s,c){var G=s.length,A=0;if(typeof c.length==="number"){for(var F=c.length;A<F;A++){s[G++]=c[A];}}else{for(;c[A]!==U;){s[G++]=c[A++];}}s.length=G;return s;},grep:function(s,c,J){for(var F=[],G=0,A=s.length;G<A;G++){!J!==!c(s[G],G)&&F.push(s[G]);}return F;},map:function(s,c,K){for(var G=[],J,A=0,F=s.length;A<F;A++){J=c(s[A],A,K);if(J!=null){G[G.length]=J;}}return G.concat.apply([],G);},guid:1,proxy:function(s,c,A){if(arguments.length===2){if(typeof c==="string"){A=s;s=A[c];c=U;}else{if(c&&!ak.isFunction(c)){A=c;c=U;}}}if(!c&&s){c=function(){return s.apply(A||this,arguments);};}if(s){c.guid=s.guid=s.guid||c.guid||ak.guid++;}return c;},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"};},browser:{}});aA=ak.uaMatch(aA);if(aA.browser){ak.browser[aA.browser]=true;ak.browser.version=aA.version;}if(ak.browser.webkit){ak.browser.safari=true;}if(a9){ak.inArray=function(s,c){return a9.call(c,s);};}aw=ak(ac);if(ac.addEventListener){aE=function(){ac.removeEventListener("DOMContentLoaded",aE,false);ak.ready();};}else{if(ac.attachEvent){aE=function(){if(ac.readyState==="complete"){ac.detachEvent("onreadystatechange",aE);ak.ready();}};}}(function(){ak.support={};var N=ac.documentElement,L=ac.createElement("script"),K=ac.createElement("div"),G="script"+aI();
K.style.display="none";K.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var J=K.getElementsByTagName("*"),A=K.getElementsByTagName("a")[0];if(!(!J||!J.length||!A)){ak.support={leadingWhitespace:K.firstChild.nodeType===3,tbody:!K.getElementsByTagName("tbody").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(A.getAttribute("style")),hrefNormalized:A.getAttribute("href")==="/a",opacity:/^0.55$/.test(A.style.opacity),cssFloat:!!A.style.cssFloat,checkOn:K.getElementsByTagName("input")[0].value==="on",optSelected:ac.createElement("select").appendChild(ac.createElement("option")).selected,parentNode:K.removeChild(K.appendChild(ac.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};L.type="text/javascript";try{L.appendChild(ac.createTextNode("window."+G+"=1;"));}catch(F){}N.insertBefore(L,N.firstChild);if(aR[G]){ak.support.scriptEval=true;delete aR[G];}try{delete L.test;}catch(c){ak.support.deleteExpando=false;}N.removeChild(L);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function s(){ak.support.noCloneEvent=false;K.detachEvent("onclick",s);});K.cloneNode(true).fireEvent("onclick");}K=ac.createElement("div");K.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";N=ac.createDocumentFragment();N.appendChild(K.firstChild);ak.support.checkClone=N.cloneNode(true).cloneNode(true).lastChild.checked;ak(function(){var O=ac.createElement("div");O.style.width=O.style.paddingLeft="1px";ac.body.appendChild(O);ak.boxModel=ak.support.boxModel=O.offsetWidth===2;ac.body.removeChild(O).style.display="none";});N=function(O){var Q=ac.createElement("div");O="on"+O;var P=O in Q;if(!P){Q.setAttribute(O,"return;");P=typeof Q[O]==="function";}return P;};ak.support.submitBubbles=N("submit");ak.support.changeBubbles=N("change");N=L=K=J=A=null;}})();ak.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var aK="jQuery"+aI(),f=0,aV={};ak.extend({cache:{},expando:aK,noData:{embed:true,object:true,applet:true},data:function(s,c,G){if(!(s.nodeName&&ak.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var A=s[aK],F=ak.cache;if(!A&&typeof c==="string"&&G===U){return null;}A||(A=++f);if(typeof c==="object"){s[aK]=A;F[A]=ak.extend(true,{},c);}else{if(!F[A]){s[aK]=A;F[A]={};}}s=F[A];if(G!==U){s[c]=G;}return typeof c==="string"?s[c]:s;}},removeData:function(s,c){if(!(s.nodeName&&ak.noData[s.nodeName.toLowerCase()])){s=s==aR?aV:s;var G=s[aK],A=ak.cache,F=A[G];if(c){if(F){delete F[c];ak.isEmptyObject(F)&&ak.removeData(s);}}else{if(ak.support.deleteExpando){delete s[ak.expando];}else{s.removeAttribute&&s.removeAttribute(ak.expando);}delete A[G];}}}});ak.fn.extend({data:function(s,c){if(typeof s==="undefined"&&this.length){return ak.data(this[0]);}else{if(typeof s==="object"){return this.each(function(){ak.data(this,s);});}}var F=s.split(".");F[1]=F[1]?"."+F[1]:"";if(c===U){var A=this.triggerHandler("getData"+F[1]+"!",[F[0]]);if(A===U&&this.length){A=ak.data(this[0],s);}return A===U&&F[1]?this.data(F[0]):A;}else{return this.trigger("setData"+F[1]+"!",[F[0],c]).each(function(){ak.data(this,s,c);});}},removeData:function(c){return this.each(function(){ak.removeData(this,c);});}});ak.extend({queue:function(s,c,F){if(s){c=(c||"fx")+"queue";var A=ak.data(s,c);if(!F){return A||[];}if(!A||ak.isArray(F)){A=ak.data(s,c,ak.makeArray(F));}else{A.push(F);}return A;}},dequeue:function(s,c){c=c||"fx";var F=ak.queue(s,c),A=F.shift();if(A==="inprogress"){A=F.shift();}if(A){c==="fx"&&F.unshift("inprogress");A.call(s,function(){ak.dequeue(s,c);});}}});ak.fn.extend({queue:function(s,c){if(typeof s!=="string"){c=s;s="fx";}if(c===U){return ak.queue(this[0],s);}return this.each(function(){var A=ak.queue(this,s,c);s==="fx"&&A[0]!=="inprogress"&&ak.dequeue(this,s);});},dequeue:function(c){return this.each(function(){ak.dequeue(this,c);});},delay:function(s,c){s=ak.fx?ak.fx.speeds[s]||s:s;c=c||"fx";return this.queue(c,function(){var A=this;setTimeout(function(){ak.dequeue(A,c);},s);});},clearQueue:function(c){return this.queue(c||"fx",[]);}});var bi=/[\n\t]/g,ae=/\s+/,bd=/\r/g,aP=/href|src|style/,aX=/(button|input)/i,az=/(button|input|object|select|textarea)/i,ad=/^(a|area)$/i,a1=/radio|checkbox/;ak.fn.extend({attr:function(s,c){return at(this,s,c,true,ak.attr);},removeAttr:function(c){return this.each(function(){ak.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c);});},addClass:function(N){if(ak.isFunction(N)){return this.each(function(P){var O=ak(this);O.addClass(N.call(this,P,O.attr("class")));});}if(N&&typeof N==="string"){for(var L=(N||"").split(ae),K=0,G=this.length;K<G;K++){var J=this[K];if(J.nodeType===1){if(J.className){for(var A=" "+J.className+" ",F=J.className,c=0,s=L.length;c<s;c++){if(A.indexOf(" "+L[c]+" ")<0){F+=" "+L[c];
}}J.className=ak.trim(F);}else{J.className=N;}}}}return this;},removeClass:function(s){if(ak.isFunction(s)){return this.each(function(N){var O=ak(this);O.removeClass(s.call(this,N,O.attr("class")));});}if(s&&typeof s==="string"||s===U){for(var c=(s||"").split(ae),L=0,G=this.length;L<G;L++){var J=this[L];if(J.nodeType===1&&J.className){if(s){for(var A=(" "+J.className+" ").replace(bi," "),F=0,K=c.length;F<K;F++){A=A.replace(" "+c[F]+" "," ");}J.className=ak.trim(A);}else{J.className="";}}}}return this;},toggleClass:function(s,c){var F=typeof s,A=typeof c==="boolean";if(ak.isFunction(s)){return this.each(function(J){var G=ak(this);G.toggleClass(s.call(this,J,G.attr("class"),c),c);});}return this.each(function(){if(F==="string"){for(var L,J=0,K=ak(this),N=c,G=s.split(ae);L=G[J++];){N=A?N:!K.hasClass(L);K[N?"addClass":"removeClass"](L);}}else{if(F==="undefined"||F==="boolean"){this.className&&ak.data(this,"__className__",this.className);this.className=this.className||s===false?"":ak.data(this,"__className__")||"";}}});},hasClass:function(s){s=" "+s+" ";for(var c=0,A=this.length;c<A;c++){if((" "+this[c].className+" ").replace(bi," ").indexOf(s)>-1){return true;}}return false;},val:function(s){if(s===U){var c=this[0];if(c){if(ak.nodeName(c,"option")){return(c.attributes.value||{}).specified?c.value:c.text;}if(ak.nodeName(c,"select")){var L=c.selectedIndex,G=[],J=c.options;c=c.type==="select-one";if(L<0){return null;}var A=c?L:0;for(L=c?L+1:J.length;A<L;A++){var F=J[A];if(F.selected){s=ak(F).val();if(c){return s;}G.push(s);}}return G;}if(a1.test(c.type)&&!ak.support.checkOn){return c.getAttribute("value")===null?"on":c.value;}return(c.value||"").replace(bd,"");}return U;}var K=ak.isFunction(s);return this.each(function(N){var Q=ak(this),P=s;if(this.nodeType===1){if(K){P=s.call(this,N,Q.val());}if(P==null){P="";}else{if(typeof P==="number"){P+="";}}if(ak.isArray(P)&&a1.test(this.type)){this.checked=ak.inArray(Q.val(),P)>=0;}else{if(ak.nodeName(this,"select")){var O=ak.makeArray(P);ak("option",this).each(function(){this.selected=ak.inArray(ak(this).val(),O)>=0;});if(!O.length){this.selectedIndex=-1;}}else{this.value=P;}}}});}});ak.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(s,c,J,F){if(!s||s.nodeType===3||s.nodeType===8){return U;}if(F&&c in ak.attrFn){return ak(s)[c](J);}F=s.nodeType!==1||!ak.isXMLDoc(s);var G=J!==U;c=F&&ak.props[c]||c;if(s.nodeType===1){var A=aP.test(c);if(c in s&&F&&!A){if(G){c==="type"&&aX.test(s.nodeName)&&s.parentNode&&ak.error("type property can't be changed");s[c]=J;}if(ak.nodeName(s,"form")&&s.getAttributeNode(c)){return s.getAttributeNode(c).nodeValue;}if(c==="tabIndex"){return(c=s.getAttributeNode("tabIndex"))&&c.specified?c.value:az.test(s.nodeName)||ad.test(s.nodeName)&&s.href?0:U;}return s[c];}if(!ak.support.style&&F&&c==="style"){if(G){s.style.cssText=""+J;}return s.style.cssText;}G&&s.setAttribute(c,""+J);s=!ak.support.hrefNormalized&&F&&A?s.getAttribute(c,2):s.getAttribute(c);return s===null?U:s;}return ak.style(s,c,J);}});var aC=/\.(.*)$/,v=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s;});};ak.event={add:function(Q,P,N,K){if(!(Q.nodeType===3||Q.nodeType===8)){if(Q.setInterval&&Q!==aR&&!Q.frameElement){Q=aR;}var L,G;if(N.handler){L=N;N=L.handler;}if(!N.guid){N.guid=ak.guid++;}if(G=ak.data(Q)){var J=G.events=G.events||{},s=G.handle;if(!s){G.handle=s=function(){return typeof ak!=="undefined"&&!ak.event.triggered?ak.event.handle.apply(s.elem,arguments):U;};}s.elem=Q;P=P.split(" ");for(var F,A=0,c;F=P[A++];){G=L?ak.extend({},L):{handler:N,data:K};if(F.indexOf(".")>-1){c=F.split(".");F=c.shift();G.namespace=c.slice(0).sort().join(".");}else{c=[];G.namespace="";}G.type=F;G.guid=N.guid;var R=J[F],O=ak.event.special[F]||{};if(!R){R=J[F]=[];if(!O.setup||O.setup.call(Q,K,c,s)===false){if(Q.addEventListener){Q.addEventListener(F,s,false);}else{Q.attachEvent&&Q.attachEvent("on"+F,s);}}}if(O.add){O.add.call(Q,G);if(!G.handler.guid){G.handler.guid=N.guid;}}R.push(G);ak.event.global[F]=true;}Q=null;}}},global:{},remove:function(T,R,P,N){if(!(T.nodeType===3||T.nodeType===8)){var O,K=0,L,F,J,G,c,V,Q=ak.data(T),s=Q&&Q.events;if(Q&&s){if(R&&R.type){P=R.handler;R=R.type;}if(!R||typeof R==="string"&&R.charAt(0)==="."){R=R||"";for(O in s){ak.event.remove(T,O+R);}}else{for(R=R.split(" ");O=R[K++];){G=O;L=O.indexOf(".")<0;F=[];if(!L){F=O.split(".");O=F.shift();J=new RegExp("(^|\\.)"+ak.map(F.slice(0).sort(),v).join("\\.(?:.*\\.)?")+"(\\.|$)");}if(c=s[O]){if(P){G=ak.event.special[O]||{};for(A=N||0;A<c.length;A++){V=c[A];if(P.guid===V.guid){if(L||J.test(V.namespace)){N==null&&c.splice(A--,1);G.remove&&G.remove.call(T,V);}if(N!=null){break;}}}if(c.length===0||N!=null&&c.length===1){if(!G.teardown||G.teardown.call(T,F)===false){aJ(T,O,Q.handle);}delete s[O];}}else{for(var A=0;A<c.length;A++){V=c[A];if(L||J.test(V.namespace)){ak.event.remove(T,G,V.handler,A);c.splice(A--,1);}}}}}if(ak.isEmptyObject(s)){if(R=Q.handle){R.elem=null;
}delete Q.events;delete Q.handle;ak.isEmptyObject(Q)&&ak.removeData(T);}}}}},trigger:function(O,N,L,J){var K=O.type||O;if(!J){O=typeof O==="object"?O[aK]?O:ak.extend(ak.Event(K),O):ak.Event(K);if(K.indexOf("!")>=0){O.type=K=K.slice(0,-1);O.exclusive=true;}if(!L){O.stopPropagation();ak.event.global[K]&&ak.each(ak.cache,function(){this.events&&this.events[K]&&ak.event.trigger(O,N,this.handle.elem);});}if(!L||L.nodeType===3||L.nodeType===8){return U;}O.result=U;O.target=L;N=ak.makeArray(N);N.unshift(O);}O.currentTarget=L;(J=ak.data(L,"handle"))&&J.apply(L,N);J=L.parentNode||L.ownerDocument;try{if(!(L&&L.nodeName&&ak.noData[L.nodeName.toLowerCase()])){if(L["on"+K]&&L["on"+K].apply(L,N)===false){O.result=false;}}}catch(F){}if(!O.isPropagationStopped()&&J){ak.event.trigger(O,N,J,true);}else{if(!O.isDefaultPrevented()){J=O.target;var G,c=ak.nodeName(J,"a")&&K==="click",A=ak.event.special[K]||{};if((!A._default||A._default.call(L,O)===false)&&!c&&!(J&&J.nodeName&&ak.noData[J.nodeName.toLowerCase()])){try{if(J[K]){if(G=J["on"+K]){J["on"+K]=null;}ak.event.triggered=true;J[K]();}}catch(s){}if(G){J["on"+K]=G;}ak.event.triggered=false;}}}},handle:function(s){var c,K,G,J;s=arguments[0]=ak.event.fix(s||aR.event);s.currentTarget=this;c=s.type.indexOf(".")<0&&!s.exclusive;if(!c){K=s.type.split(".");s.type=K.shift();G=new RegExp("(^|\\.)"+K.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");}J=ak.data(this,"events");K=J[s.type];if(J&&K){K=K.slice(0);J=0;for(var A=K.length;J<A;J++){var F=K[J];if(c||G.test(F.namespace)){s.handler=F.handler;s.data=F.data;s.handleObj=F;F=F.handler.apply(this,arguments);if(F!==U){s.result=F;if(F===false){s.preventDefault();s.stopPropagation();}}if(s.isImmediatePropagationStopped()){break;}}}}return s.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(s){if(s[aK]){return s;}var c=s;s=ak.Event(c);for(var F=this.props.length,A;F;){A=this.props[--F];s[A]=c[A];}if(!s.target){s.target=s.srcElement||ac;}if(s.target.nodeType===3){s.target=s.target.parentNode;}if(!s.relatedTarget&&s.fromElement){s.relatedTarget=s.fromElement===s.target?s.toElement:s.fromElement;}if(s.pageX==null&&s.clientX!=null){c=ac.documentElement;F=ac.body;s.pageX=s.clientX+(c&&c.scrollLeft||F&&F.scrollLeft||0)-(c&&c.clientLeft||F&&F.clientLeft||0);s.pageY=s.clientY+(c&&c.scrollTop||F&&F.scrollTop||0)-(c&&c.clientTop||F&&F.clientTop||0);}if(!s.which&&(s.charCode||s.charCode===0?s.charCode:s.keyCode)){s.which=s.charCode||s.keyCode;}if(!s.metaKey&&s.ctrlKey){s.metaKey=s.ctrlKey;}if(!s.which&&s.button!==U){s.which=s.button&1?1:s.button&2?3:s.button&4?2:0;}return s;},guid:100000000,proxy:ak.proxy,special:{ready:{setup:ak.bindReady,teardown:ak.noop},live:{add:function(c){ak.event.add(this,c.origType,ak.extend({},c,{handler:aj}));},remove:function(s){var c=true,A=s.origType.replace(aC,"");ak.each(ak.data(this,"events").live||[],function(){if(A===this.origType.replace(aC,"")){return c=false;}});c&&ak.event.remove(this,s.origType,aj);}},beforeunload:{setup:function(s,c,A){if(this.setInterval){this.onbeforeunload=A;}return false;},teardown:function(s,c){if(this.onbeforeunload===c){this.onbeforeunload=null;}}}}};var aJ=ac.removeEventListener?function(s,c,A){s.removeEventListener(c,A,false);}:function(s,c,A){s.detachEvent("on"+c,A);};ak.Event=function(c){if(!this.preventDefault){return new ak.Event(c);}if(c&&c.type){this.originalEvent=c;this.type=c.type;}else{this.type=c;}this.timeStamp=aI();this[aK]=true;};ak.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ap;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false;}},stopPropagation:function(){this.isPropagationStopped=ap;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true;}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ap;this.stopPropagation();},isDefaultPrevented:ar,isPropagationStopped:ar,isImmediatePropagationStopped:ar};var ah=function(s){var c=s.relatedTarget;try{for(;c&&c!==this;){c=c.parentNode;}if(c!==this){s.type=s.data;ak.event.handle.apply(this,arguments);}}catch(A){}},B=function(c){c.type=c.data;ak.event.handle.apply(this,arguments);};ak.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(s,c){ak.event.special[s]={setup:function(A){ak.event.add(this,c,A&&A.selector?B:ah,s);},teardown:function(A){ak.event.remove(this,c,A&&A.selector?B:ah);}};});if(!ak.support.submitBubbles){ak.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){ak.event.add(this,"click.specialSubmit",function(s){var c=s.target,A=c.type;if((A==="submit"||A==="image")&&ak(c).closest("form").length){return aN("submit",this,arguments);}});ak.event.add(this,"keypress.specialSubmit",function(s){var c=s.target,A=c.type;
if((A==="text"||A==="password")&&ak(c).closest("form").length&&s.keyCode===13){return aN("submit",this,arguments);}});}else{return false;}},teardown:function(){ak.event.remove(this,".specialSubmit");}};}if(!ak.support.changeBubbles){var x=/textarea|input|select/i,h,l=function(s){var c=s.type,A=s.value;if(c==="radio"||c==="checkbox"){A=s.checked;}else{if(c==="select-multiple"){A=s.selectedIndex>-1?ak.map(s.options,function(F){return F.selected;}).join("-"):"";}else{if(s.nodeName.toLowerCase()==="select"){A=s.selectedIndex;}}}return A;},bh=function(s,c){var G=s.target,A,F;if(!(!x.test(G.nodeName)||G.readOnly)){A=ak.data(G,"_change_data");F=l(G);if(s.type!=="focusout"||G.type!=="radio"){ak.data(G,"_change_data",F);}if(!(A===U||F===A)){if(A!=null||F){s.type="change";return ak.event.trigger(s,c,G);}}}};ak.event.special.change={filters:{focusout:bh,click:function(s){var c=s.target,A=c.type;if(A==="radio"||A==="checkbox"||c.nodeName.toLowerCase()==="select"){return bh.call(this,s);}},keydown:function(s){var c=s.target,A=c.type;if(s.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||s.keyCode===32&&(A==="checkbox"||A==="radio")||A==="select-multiple"){return bh.call(this,s);}},beforeactivate:function(c){c=c.target;ak.data(c,"_change_data",l(c));}},setup:function(){if(this.type==="file"){return false;}for(var c in h){ak.event.add(this,c+".specialChange",h[c]);}return x.test(this.nodeName);},teardown:function(){ak.event.remove(this,".specialChange");return x.test(this.nodeName);}};h=ak.event.special.change.filters;}ac.addEventListener&&ak.each({focus:"focusin",blur:"focusout"},function(s,c){function A(F){F=ak.event.fix(F);F.type=c;return ak.event.handle.call(this,F);}ak.event.special[c]={setup:function(){this.addEventListener(s,A,true);},teardown:function(){this.removeEventListener(s,A,true);}};});ak.each(["bind","one"],function(s,c){ak.fn[c]=function(L,G,J){if(typeof L==="object"){for(var A in L){this[c](A,G,L[A],J);}return this;}if(ak.isFunction(G)){J=G;G=U;}var F=c==="one"?ak.proxy(J,function(N){ak(this).unbind(N,F);return J.apply(this,arguments);}):J;if(L==="unload"&&c!=="one"){this.one(L,G,J);}else{A=0;for(var K=this.length;A<K;A++){ak.event.add(this[A],L,F,G);}}return this;};});ak.fn.extend({unbind:function(s,c){if(typeof s==="object"&&!s.preventDefault){for(var F in s){this.unbind(F,s[F]);}}else{F=0;for(var A=this.length;F<A;F++){ak.event.remove(this[F],s,c);}}return this;},delegate:function(s,c,F,A){return this.live(c,F,A,s);},undelegate:function(s,c,A){return arguments.length===0?this.unbind("live"):this.die(c,null,A,s);},trigger:function(s,c){return this.each(function(){ak.event.trigger(s,c,this);});},triggerHandler:function(s,c){if(this[0]){s=ak.Event(s);s.preventDefault();s.stopPropagation();ak.event.trigger(s,c,this[0]);return s.result;}},toggle:function(s){for(var c=arguments,A=1;A<c.length;){ak.proxy(s,c[A++]);}return this.click(ak.proxy(s,function(F){var G=(ak.data(this,"lastToggle"+s.guid)||0)%A;ak.data(this,"lastToggle"+s.guid,G+1);F.preventDefault();return c[G].apply(this,arguments)||false;}));},hover:function(s,c){return this.mouseenter(s).mouseleave(c||s);}});var bl={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};ak.each(["live","die"],function(s,c){ak.fn[c]=function(P,N,O,K){var L,F=0,J,G,A=K||this.selector,Q=K?this:ak(this.context);if(ak.isFunction(N)){O=N;N=U;}for(P=(P||"").split(" ");(L=P[F++])!=null;){K=aC.exec(L);J="";if(K){J=K[0];L=L.replace(aC,"");}if(L==="hover"){P.push("mouseenter"+J,"mouseleave"+J);}else{G=L;if(L==="focus"||L==="blur"){P.push(bl[L]+J);L+=J;}else{L=(bl[L]||L)+J;}c==="live"?Q.each(function(){ak.event.add(this,D(L,A),{data:N,selector:A,handler:O,origType:L,origHandler:O,preType:G});}):Q.unbind(D(L,A),O);}}return this;};});ak.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(s,c){ak.fn[c]=function(A){return A?this.bind(c,A):this.trigger(c);};if(ak.attrFn){ak.attrFn[c]=true;}});aR.attachEvent&&!aR.addEventListener&&aR.attachEvent("onunload",function(){for(var s in ak.cache){if(ak.cache[s].handle){try{ak.event.remove(ak.cache[s].handle.elem);}catch(c){}}}});(function(){function X(ba){for(var ab="",aa,Z=0;ba[Z];Z++){aa=ba[Z];if(aa.nodeType===3||aa.nodeType===4){ab+=aa.nodeValue;}else{if(aa.nodeType!==8){ab+=X(aa.childNodes);}}}return ab;}function W(bp,bb,ba,ab,Z,aa){Z=0;for(var br=ab.length;Z<br;Z++){var bs=ab[Z];if(bs){bs=bs[bp];for(var bq=false;bs;){if(bs.sizcache===ba){bq=ab[bs.sizset];break;}if(bs.nodeType===1&&!aa){bs.sizcache=ba;bs.sizset=Z;}if(bs.nodeName.toLowerCase()===bb){bq=bs;break;}bs=bs[bp];}ab[Z]=bq;}}}function V(bp,bb,ba,ab,Z,aa){Z=0;for(var br=ab.length;Z<br;Z++){var bs=ab[Z];if(bs){bs=bs[bp];for(var bq=false;bs;){if(bs.sizcache===ba){bq=ab[bs.sizset];break;}if(bs.nodeType===1){if(!aa){bs.sizcache=ba;bs.sizset=Z;}if(typeof bb!=="string"){if(bs===bb){bq=true;break;}}else{if(O.filter(bb,[bs]).length>0){bq=bs;
break;}}}bs=bs[bp];}ab[Z]=bq;}}}var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,T=0,P=Object.prototype.toString,Q=false,L=true;[0,0].sort(function(){L=false;return 0;});var O=function(br,bq,bb,ba){bb=bb||[];var aa=bq=bq||ac;if(bq.nodeType!==1&&bq.nodeType!==9){return[];}if(!br||typeof br!=="string"){return bb;}for(var ab=[],bw,bx,bt,bp,bv=true,bs=s(bq),bu=br;(R.exec(""),bw=R.exec(bu))!==null;){bu=bw[3];ab.push(bw[1]);if(bw[2]){bp=bw[3];break;}}if(ab.length>1&&J.exec(br)){if(ab.length===2&&N.relative[ab[0]]){bx=Y(ab[0]+ab[1],bq);}else{for(bx=N.relative[ab[0]]?[bq]:O(ab.shift(),bq);ab.length;){br=ab.shift();if(N.relative[br]){br+=ab.shift();}bx=Y(br,bx);}}}else{if(!ba&&ab.length>1&&bq.nodeType===9&&!bs&&N.match.ID.test(ab[0])&&!N.match.ID.test(ab[ab.length-1])){bw=O.find(ab.shift(),bq,bs);bq=bw.expr?O.filter(bw.expr,bw.set)[0]:bw.set[0];}if(bq){bw=ba?{expr:ab.pop(),set:c(ba)}:O.find(ab.pop(),ab.length===1&&(ab[0]==="~"||ab[0]==="+")&&bq.parentNode?bq.parentNode:bq,bs);bx=bw.expr?O.filter(bw.expr,bw.set):bw.set;if(ab.length>0){bt=c(bx);}else{bv=false;}for(;ab.length;){var Z=ab.pop();bw=Z;if(N.relative[Z]){bw=ab.pop();}else{Z="";}if(bw==null){bw=bq;}N.relative[Z](bt,bw,bs);}}else{bt=[];}}bt||(bt=bx);bt||O.error(Z||br);if(P.call(bt)==="[object Array]"){if(bv){if(bq&&bq.nodeType===1){for(br=0;bt[br]!=null;br++){if(bt[br]&&(bt[br]===true||bt[br].nodeType===1&&F(bq,bt[br]))){bb.push(bx[br]);}}}else{for(br=0;bt[br]!=null;br++){bt[br]&&bt[br].nodeType===1&&bb.push(bx[br]);}}}else{bb.push.apply(bb,bt);}}else{c(bt,bb);}if(bp){O(bp,aa,bb,ba);O.uniqueSort(bb);}return bb;};O.uniqueSort=function(aa){if(K){Q=L;aa.sort(K);if(Q){for(var Z=1;Z<aa.length;Z++){aa[Z]===aa[Z-1]&&aa.splice(Z--,1);}}}return aa;};O.matches=function(aa,Z){return O(aa,null,null,Z);};O.find=function(bp,bb,ba){var ab,Z;if(!bp){return[];}for(var aa=0,br=N.order.length;aa<br;aa++){var bs=N.order[aa];if(Z=N.leftMatch[bs].exec(bp)){var bq=Z[1];Z.splice(1,1);if(bq.substr(bq.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");ab=N.find[bs](Z,bb,ba);if(ab!=null){bp=bp.replace(N.match[bs],"");break;}}}}ab||(ab=bb.getElementsByTagName("*"));return{set:ab,expr:bp};};O.filter=function(bs,br,bp,ba){for(var aa=bs,ab=[],by=br,bz,bv,bq=br&&br[0]&&s(br[0]);bs&&br.length;){for(var bx in N.filter){if((bz=N.leftMatch[bx].exec(bs))!=null&&bz[2]){var bt=N.filter[bx],bw,Z;Z=bz[1];bv=false;bz.splice(1,1);if(Z.substr(Z.length-1)!=="\\"){if(by===ab){ab=[];}if(N.preFilter[bx]){if(bz=N.preFilter[bx](bz,by,bp,ab,ba,bq)){if(bz===true){continue;}}else{bv=bw=true;}}if(bz){for(var bb=0;(Z=by[bb])!=null;bb++){if(Z){bw=bt(Z,bz,bb,by);var bu=ba^!!bw;if(bp&&bw!=null){if(bu){bv=true;}else{by[bb]=false;}}else{if(bu){ab.push(Z);bv=true;}}}}}if(bw!==U){bp||(by=ab);bs=bs.replace(N.match[bx],"");if(!bv){return[];}break;}}}}if(bs===aa){if(bv==null){O.error(bs);}else{break;}}aa=bs;}return by;};O.error=function(Z){throw"Syntax error, unrecognized expression: "+Z;};var N=O.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Z){return Z.getAttribute("href");}},relative:{"+":function(ba,ab){var aa=typeof ab==="string",Z=aa&&!/\W/.test(ab);aa=aa&&!Z;if(Z){ab=ab.toLowerCase();}Z=0;for(var bb=ba.length,bp;Z<bb;Z++){if(bp=ba[Z]){for(;(bp=bp.previousSibling)&&bp.nodeType!==1;){}ba[Z]=aa||bp&&bp.nodeName.toLowerCase()===ab?bp||false:bp===ab;}}aa&&O.filter(ab,ba,true);},">":function(ba,ab){var aa=typeof ab==="string";if(aa&&!/\W/.test(ab)){ab=ab.toLowerCase();for(var Z=0,bb=ba.length;Z<bb;Z++){var bp=ba[Z];if(bp){aa=bp.parentNode;ba[Z]=aa.nodeName.toLowerCase()===ab?aa:false;}}}else{Z=0;for(bb=ba.length;Z<bb;Z++){if(bp=ba[Z]){ba[Z]=aa?bp.parentNode:bp.parentNode===ab;}}aa&&O.filter(ab,ba,true);}},"":function(ba,ab,aa){var Z=T++,bb=V;if(typeof ab==="string"&&!/\W/.test(ab)){var bp=ab=ab.toLowerCase();bb=W;}bb("parentNode",ab,Z,ba,bp,aa);},"~":function(ba,ab,aa){var Z=T++,bb=V;if(typeof ab==="string"&&!/\W/.test(ab)){var bp=ab=ab.toLowerCase();bb=W;}bb("previousSibling",ab,Z,ba,bp,aa);}},find:{ID:function(ab,aa,Z){if(typeof aa.getElementById!=="undefined"&&!Z){return(ab=aa.getElementById(ab[1]))?[ab]:[];}},NAME:function(ba,ab){if(typeof ab.getElementsByName!=="undefined"){var aa=[];ab=ab.getElementsByName(ba[1]);for(var Z=0,bb=ab.length;Z<bb;Z++){ab[Z].getAttribute("name")===ba[1]&&aa.push(ab[Z]);}return aa.length===0?null:aa;}},TAG:function(aa,Z){return Z.getElementsByTagName(aa[1]);}},preFilter:{CLASS:function(bb,ba,aa,Z,bp,bq){bb=" "+bb[1].replace(/\\/g,"")+" ";
if(bq){return bb;}bq=0;for(var ab;(ab=ba[bq])!=null;bq++){if(ab){if(bp^(ab.className&&(" "+ab.className+" ").replace(/[\t\n]/g," ").indexOf(bb)>=0)){aa||Z.push(ab);}else{if(aa){ba[bq]=false;}}}}return false;},ID:function(Z){return Z[1].replace(/\\/g,"");},TAG:function(Z){return Z[1].toLowerCase();},CHILD:function(aa){if(aa[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(aa[2]==="even"&&"2n"||aa[2]==="odd"&&"2n+1"||!/\D/.test(aa[2])&&"0n+"+aa[2]||aa[2]);aa[2]=Z[1]+(Z[2]||1)-0;aa[3]=Z[3]-0;}aa[0]=T++;return aa;},ATTR:function(ba,ab,aa,Z,bb,bp){ab=ba[1].replace(/\\/g,"");if(!bp&&N.attrMap[ab]){ba[1]=N.attrMap[ab];}if(ba[2]==="~="){ba[4]=" "+ba[4]+" ";}return ba;},PSEUDO:function(ba,ab,aa,Z,bb){if(ba[1]==="not"){if((R.exec(ba[3])||"").length>1||/^\w/.test(ba[3])){ba[3]=O(ba[3],null,null,ab);}else{ba=O.filter(ba[3],ab,aa,true^bb);aa||Z.push.apply(Z,ba);return false;}}else{if(N.match.POS.test(ba[0])||N.match.CHILD.test(ba[0])){return true;}}return ba;},POS:function(Z){Z.unshift(true);return Z;}},filters:{enabled:function(Z){return Z.disabled===false&&Z.type!=="hidden";},disabled:function(Z){return Z.disabled===true;},checked:function(Z){return Z.checked===true;},selected:function(Z){return Z.selected===true;},parent:function(Z){return !!Z.firstChild;},empty:function(Z){return !Z.firstChild;},has:function(ab,aa,Z){return !!O(Z[3],ab).length;},header:function(Z){return/h\d/i.test(Z.nodeName);},text:function(Z){return"text"===Z.type;},radio:function(Z){return"radio"===Z.type;},checkbox:function(Z){return"checkbox"===Z.type;},file:function(Z){return"file"===Z.type;},password:function(Z){return"password"===Z.type;},submit:function(Z){return"submit"===Z.type;},image:function(Z){return"image"===Z.type;},reset:function(Z){return"reset"===Z.type;},button:function(Z){return"button"===Z.type||Z.nodeName.toLowerCase()==="button";},input:function(Z){return/input|select|textarea|button/i.test(Z.nodeName);}},setFilters:{first:function(aa,Z){return Z===0;},last:function(ba,ab,aa,Z){return ab===Z.length-1;},even:function(aa,Z){return Z%2===0;},odd:function(aa,Z){return Z%2===1;},lt:function(ab,aa,Z){return aa<Z[3]-0;},gt:function(ab,aa,Z){return aa>Z[3]-0;},nth:function(ab,aa,Z){return Z[3]-0===aa;},eq:function(ab,aa,Z){return Z[3]-0===aa;}},filter:{PSEUDO:function(ba,ab,aa,Z){var bb=ab[1],bp=N.filters[bb];if(bp){return bp(ba,aa,ab,Z);}else{if(bb==="contains"){return(ba.textContent||ba.innerText||X([ba])||"").indexOf(ab[3])>=0;}else{if(bb==="not"){ab=ab[3];aa=0;for(Z=ab.length;aa<Z;aa++){if(ab[aa]===ba){return false;}}return true;}else{O.error("Syntax error, unrecognized expression: "+bb);}}}},CHILD:function(bb,ba){var aa=ba[1],Z=bb;switch(aa){case"only":case"first":for(;Z=Z.previousSibling;){if(Z.nodeType===1){return false;}}if(aa==="first"){return true;}Z=bb;case"last":for(;Z=Z.nextSibling;){if(Z.nodeType===1){return false;}}return true;case"nth":aa=ba[2];var bp=ba[3];if(aa===1&&bp===0){return true;}ba=ba[0];var bq=bb.parentNode;if(bq&&(bq.sizcache!==ba||!bb.nodeIndex)){var ab=0;for(Z=bq.firstChild;Z;Z=Z.nextSibling){if(Z.nodeType===1){Z.nodeIndex=++ab;}}bq.sizcache=ba;}bb=bb.nodeIndex-bp;return aa===0?bb===0:bb%aa===0&&bb/aa>=0;}},ID:function(aa,Z){return aa.nodeType===1&&aa.getAttribute("id")===Z;},TAG:function(aa,Z){return Z==="*"&&aa.nodeType===1||aa.nodeName.toLowerCase()===Z;},CLASS:function(aa,Z){return(" "+(aa.className||aa.getAttribute("class"))+" ").indexOf(Z)>-1;},ATTR:function(ba,ab){var aa=ab[1];ba=N.attrHandle[aa]?N.attrHandle[aa](ba):ba[aa]!=null?ba[aa]:ba.getAttribute(aa);aa=ba+"";var Z=ab[2];ab=ab[4];return ba==null?Z==="!=":Z==="="?aa===ab:Z==="*="?aa.indexOf(ab)>=0:Z==="~="?(" "+aa+" ").indexOf(ab)>=0:!ab?aa&&ba!==false:Z==="!="?aa!==ab:Z==="^="?aa.indexOf(ab)===0:Z==="$="?aa.substr(aa.length-ab.length)===ab:Z==="|="?aa===ab||aa.substr(0,ab.length+1)===ab+"-":false;},POS:function(ba,ab,aa,Z){var bb=N.setFilters[ab[2]];if(bb){return bb(ba,aa,ab,Z);}}}},J=N.match.POS;for(var A in N.match){N.match[A]=new RegExp(N.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);N.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+N.match[A].source.replace(/\\(\d+)/g,function(aa,Z){return"\\"+(Z-0+1);}));}var c=function(aa,Z){aa=Array.prototype.slice.call(aa,0);if(Z){Z.push.apply(Z,aa);return Z;}return aa;};try{Array.prototype.slice.call(ac.documentElement.childNodes,0);}catch(G){c=function(ba,ab){ab=ab||[];if(P.call(ba)==="[object Array]"){Array.prototype.push.apply(ab,ba);}else{if(typeof ba.length==="number"){for(var aa=0,Z=ba.length;aa<Z;aa++){ab.push(ba[aa]);}}else{for(aa=0;ba[aa];aa++){ab.push(ba[aa]);}}}return ab;};}var K;if(ac.documentElement.compareDocumentPosition){K=function(aa,Z){if(!aa.compareDocumentPosition||!Z.compareDocumentPosition){if(aa==Z){Q=true;}return aa.compareDocumentPosition?-1:1;}aa=aa.compareDocumentPosition(Z)&4?-1:aa===Z?0:1;if(aa===0){Q=true;}return aa;};}else{if("sourceIndex" in ac.documentElement){K=function(aa,Z){if(!aa.sourceIndex||!Z.sourceIndex){if(aa==Z){Q=true;}return aa.sourceIndex?-1:1;}aa=aa.sourceIndex-Z.sourceIndex;
if(aa===0){Q=true;}return aa;};}else{if(ac.createRange){K=function(ba,ab){if(!ba.ownerDocument||!ab.ownerDocument){if(ba==ab){Q=true;}return ba.ownerDocument?-1:1;}var aa=ba.ownerDocument.createRange(),Z=ab.ownerDocument.createRange();aa.setStart(ba,0);aa.setEnd(ba,0);Z.setStart(ab,0);Z.setEnd(ab,0);ba=aa.compareBoundaryPoints(Range.START_TO_END,Z);if(ba===0){Q=true;}return ba;};}}}(function(){var ab=ac.createElement("div"),aa="script"+(new Date).getTime();ab.innerHTML="<a name='"+aa+"'/>";var Z=ac.documentElement;Z.insertBefore(ab,Z.firstChild);if(ac.getElementById(aa)){N.find.ID=function(ba,bb,bp){if(typeof bb.getElementById!=="undefined"&&!bp){return(bb=bb.getElementById(ba[1]))?bb.id===ba[1]||typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id").nodeValue===ba[1]?[bb]:U:[];}};N.filter.ID=function(ba,bb){var bp=typeof ba.getAttributeNode!=="undefined"&&ba.getAttributeNode("id");return ba.nodeType===1&&bp&&bp.nodeValue===bb;};}Z.removeChild(ab);Z=ab=null;})();(function(){var Z=ac.createElement("div");Z.appendChild(ac.createComment(""));if(Z.getElementsByTagName("*").length>0){N.find.TAG=function(ba,ab){ab=ab.getElementsByTagName(ba[1]);if(ba[1]==="*"){ba=[];for(var aa=0;ab[aa];aa++){ab[aa].nodeType===1&&ba.push(ab[aa]);}ab=ba;}return ab;};}Z.innerHTML="<a href='#'></a>";if(Z.firstChild&&typeof Z.firstChild.getAttribute!=="undefined"&&Z.firstChild.getAttribute("href")!=="#"){N.attrHandle.href=function(aa){return aa.getAttribute("href",2);};}Z=null;})();ac.querySelectorAll&&function(){var ab=O,aa=ac.createElement("div");aa.innerHTML="<p class='TEST'></p>";if(!(aa.querySelectorAll&&aa.querySelectorAll(".TEST").length===0)){O=function(ba,bq,br,bb){bq=bq||ac;if(!bb&&bq.nodeType===9&&!s(bq)){try{return c(bq.querySelectorAll(ba),br);}catch(bp){}}return ab(ba,bq,br,bb);};for(var Z in ab){O[Z]=ab[Z];}aa=null;}}();(function(){var Z=ac.createElement("div");Z.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Z.getElementsByClassName||Z.getElementsByClassName("e").length===0)){Z.lastChild.className="e";if(Z.getElementsByClassName("e").length!==1){N.order.splice(1,0,"CLASS");N.find.CLASS=function(ba,ab,aa){if(typeof ab.getElementsByClassName!=="undefined"&&!aa){return ab.getElementsByClassName(ba[1]);}};Z=null;}}})();var F=ac.compareDocumentPosition?function(aa,Z){return !!(aa.compareDocumentPosition(Z)&16);}:function(aa,Z){return aa!==Z&&(aa.contains?aa.contains(Z):true);},s=function(Z){return(Z=(Z?Z.ownerDocument||Z:0).documentElement)?Z.nodeName!=="HTML":false;},Y=function(ba,ab){var aa=[],Z="",bb;for(ab=ab.nodeType?[ab]:ab;bb=N.match.PSEUDO.exec(ba);){Z+=bb[0];ba=ba.replace(N.match.PSEUDO,"");}ba=N.relative[ba]?ba+"*":ba;bb=0;for(var bp=ab.length;bb<bp;bb++){O(ba,ab[bb],aa);}return O.filter(Z,aa);};ak.find=O;ak.expr=O.selectors;ak.expr[":"]=ak.expr.filters;ak.unique=O.uniqueSort;ak.text=X;ak.isXMLDoc=s;ak.contains=F;})();var g=/Until$/,be=/^(?:parents|prevUntil|prevAll)/,aZ=/,/;ax=Array.prototype.slice;var aO=function(s,c,F){if(ak.isFunction(c)){return ak.grep(s,function(J,G){return !!c.call(J,G,J)===F;});}else{if(c.nodeType){return ak.grep(s,function(G){return G===c===F;});}else{if(typeof c==="string"){var A=ak.grep(s,function(G){return G.nodeType===1;});if(aW.test(c)){return ak.filter(c,A,!F);}else{c=ak.filter(c,A);}}}}return ak.grep(s,function(G){return ak.inArray(G,c)>=0===F;});};ak.fn.extend({find:function(s){for(var c=this.pushStack("","find",s),K=0,G=0,J=this.length;G<J;G++){K=c.length;ak.find(s,this[G],c);if(G>0){for(var A=K;A<c.length;A++){for(var F=0;F<K;F++){if(c[F]===c[A]){c.splice(A--,1);break;}}}}}return c;},has:function(s){var c=ak(s);return this.filter(function(){for(var F=0,A=c.length;F<A;F++){if(ak.contains(this,c[F])){return true;}}});},not:function(c){return this.pushStack(aO(this,c,false),"not",c);},filter:function(c){return this.pushStack(aO(this,c,true),"filter",c);},is:function(c){return !!c&&ak.filter(c,this).length>0;},closest:function(N,L){if(ak.isArray(N)){var K=[],G=this[0],J,A={},F;if(G&&N.length){J=0;for(var c=N.length;J<c;J++){F=N[J];A[F]||(A[F]=ak.expr.match.POS.test(F)?ak(F,L||this.context):F);}for(;G&&G.ownerDocument&&G!==L;){for(F in A){J=A[F];if(J.jquery?J.index(G)>-1:ak(G).is(J)){K.push({selector:F,elem:G});delete A[F];}}G=G.parentNode;}}return K;}var s=ak.expr.match.POS.test(N)?ak(N,L||this.context):null;return this.map(function(P,O){for(;O&&O.ownerDocument&&O!==L;){if(s?s.index(O)>-1:ak(O).is(N)){return O;}O=O.parentNode;}return null;});},index:function(c){if(!c||typeof c==="string"){return ak.inArray(this[0],c?ak(c):this.parent().children());}return ak.inArray(c.jquery?c[0]:c,this);},add:function(s,c){s=typeof s==="string"?ak(s,c||this.context):ak.makeArray(s);c=ak.merge(this.get(),s);return this.pushStack(n(s[0])||n(c[0])?c:ak.unique(c));},andSelf:function(){return this.add(this.prevObject);}});ak.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null;},parents:function(c){return ak.dir(c,"parentNode");},parentsUntil:function(s,c,A){return ak.dir(s,"parentNode",A);
},next:function(c){return ak.nth(c,2,"nextSibling");},prev:function(c){return ak.nth(c,2,"previousSibling");},nextAll:function(c){return ak.dir(c,"nextSibling");},prevAll:function(c){return ak.dir(c,"previousSibling");},nextUntil:function(s,c,A){return ak.dir(s,"nextSibling",A);},prevUntil:function(s,c,A){return ak.dir(s,"previousSibling",A);},siblings:function(c){return ak.sibling(c.parentNode.firstChild,c);},children:function(c){return ak.sibling(c.firstChild);},contents:function(c){return ak.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:ak.makeArray(c.childNodes);}},function(s,c){ak.fn[s]=function(G,A){var F=ak.map(this,c,G);g.test(s)||(A=G);if(A&&typeof A==="string"){F=ak.filter(A,F);}F=this.length>1?ak.unique(F):F;if((this.length>1||aZ.test(A))&&be.test(s)){F=F.reverse();}return this.pushStack(F,s,ax.call(arguments).join(","));};});ak.extend({filter:function(s,c,A){if(A){s=":not("+s+")";}return ak.find.matches(s,c);},dir:function(s,c,F){var A=[];for(s=s[c];s&&s.nodeType!==9&&(F===U||s.nodeType!==1||!ak(s).is(F));){s.nodeType===1&&A.push(s);s=s[c];}return A;},nth:function(s,c,F){c=c||1;for(var A=0;s;s=s[F]){if(s.nodeType===1&&++A===c){break;}}return s;},sibling:function(s,c){for(var A=[];s;s=s.nextSibling){s.nodeType===1&&s!==c&&A.push(s);}return A;}});var al=/ jQuery\d+="(?:\d+|null)"/g,av=/^\s+/,E=/(<([\w:]+)[^>]*?)\/>/g,aG=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,o=/<([\w:]+)/,af=/<tbody/i,y=/<|&#?\w+;/,aS=/<script|<object|<embed|<option|<style/i,an=/checked\s*(?:[^=]|=\s*.checked.)/i,bo=function(s,c,A){return aG.test(A)?s:c+"></"+A+">";},aM={option:[1,"<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,"",""]};aM.optgroup=aM.option;aM.tbody=aM.tfoot=aM.colgroup=aM.caption=aM.thead;aM.th=aM.td;if(!ak.support.htmlSerialize){aM._default=[1,"div<div>","</div>"];}ak.fn.extend({text:function(c){if(ak.isFunction(c)){return this.each(function(s){var A=ak(this);A.text(c.call(this,s,A.text()));});}if(typeof c!=="object"&&c!==U){return this.empty().append((this[0]&&this[0].ownerDocument||ac).createTextNode(c));}return ak.text(this);},wrapAll:function(s){if(ak.isFunction(s)){return this.each(function(A){ak(this).wrapAll(s.call(this,A));});}if(this[0]){var c=ak(s,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var A=this;A.firstChild&&A.firstChild.nodeType===1;){A=A.firstChild;}return A;}).append(this);}return this;},wrapInner:function(c){if(ak.isFunction(c)){return this.each(function(s){ak(this).wrapInner(c.call(this,s));});}return this.each(function(){var s=ak(this),A=s.contents();A.length?A.wrapAll(c):s.append(c);});},wrap:function(c){return this.each(function(){ak(this).wrapAll(c);});},unwrap:function(){return this.parent().each(function(){ak.nodeName(this,"body")||ak(this).replaceWith(this.childNodes);}).end();},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c);});},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild);});},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this);});}else{if(arguments.length){var c=ak(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments);}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling);});}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,ak(arguments[0]).toArray());return c;}}},remove:function(s,c){for(var F=0,A;(A=this[F])!=null;F++){if(!s||ak.filter(s,[A]).length){if(!c&&A.nodeType===1){ak.cleanData(A.getElementsByTagName("*"));ak.cleanData([A]);}A.parentNode&&A.parentNode.removeChild(A);}}return this;},empty:function(){for(var s=0,c;(c=this[s])!=null;s++){for(c.nodeType===1&&ak.cleanData(c.getElementsByTagName("*"));c.firstChild;){c.removeChild(c.firstChild);}}return this;},clone:function(s){var c=this.map(function(){if(!ak.support.noCloneEvent&&!ak.isXMLDoc(this)){var F=this.outerHTML,A=this.ownerDocument;if(!F){F=A.createElement("div");F.appendChild(this.cloneNode(true));F=F.innerHTML;}return ak.clean([F.replace(al,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(av,"")],A)[0];}else{return this.cloneNode(true);}});if(s===true){bn(this,c);bn(this.find("*"),c.find("*"));}return c;},html:function(s){if(s===U){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(al,""):null;}else{if(typeof s==="string"&&!aS.test(s)&&(ak.support.leadingWhitespace||!av.test(s))&&!aM[(o.exec(s)||["",""])[1].toLowerCase()]){s=s.replace(E,bo);try{for(var c=0,F=this.length;
c<F;c++){if(this[c].nodeType===1){ak.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=s;}}}catch(A){this.empty().append(s);}}else{ak.isFunction(s)?this.each(function(K){var G=ak(this),J=G.html();G.empty().append(function(){return s.call(this,K,J);});}):this.empty().append(s);}}return this;},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(ak.isFunction(c)){return this.each(function(s){var F=ak(this),A=F.html();F.replaceWith(c.call(this,s,A));});}if(typeof c!=="string"){c=ak(c).detach();}return this.each(function(){var s=this.nextSibling,A=this.parentNode;ak(this).remove();s?ak(s).before(c):ak(A).append(c);});}else{return this.pushStack(ak(ak.isFunction(c)?c():c),"replaceWith",c);}},detach:function(c){return this.remove(c,true);},domManip:function(P,O,N){function K(Q){return ak.nodeName(Q,"table")?Q.getElementsByTagName("tbody")[0]||Q.appendChild(Q.ownerDocument.createElement("tbody")):Q;}var L,G,J=P[0],s=[],F;if(!ak.support.checkClone&&arguments.length===3&&typeof J==="string"&&an.test(J)){return this.each(function(){ak(this).domManip(P,O,N,true);});}if(ak.isFunction(J)){return this.each(function(Q){var R=ak(this);P[0]=J.call(this,Q,O?R.html():U);R.domManip(P,O,N);});}if(this[0]){L=J&&J.parentNode;L=ak.support.parentNode&&L&&L.nodeType===11&&L.childNodes.length===this.length?{fragment:L}:a6(P,this,s);F=L.fragment;if(G=F.childNodes.length===1?(F=F.firstChild):F.firstChild){O=O&&ak.nodeName(G,"tr");for(var A=0,c=this.length;A<c;A++){N.call(O?K(this[A],G):this[A],A>0||L.cacheable||this.length>1?F.cloneNode(true):F);}}s.length&&ak.each(s,M);}return this;}});ak.fragments={};ak.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,c){ak.fn[s]=function(K){var G=[];K=ak(K);var J=this.length===1&&this[0].parentNode;if(J&&J.nodeType===11&&J.childNodes.length===1&&K.length===1){K[c](this[0]);return this;}else{J=0;for(var A=K.length;J<A;J++){var F=(J>0?this.clone(true):this).get();ak.fn[c].apply(ak(K[J]),F);G=G.concat(F);}return this.pushStack(G,s,K.selector);}};});ak.extend({clean:function(P,O,N,K){O=O||ac;if(typeof O.createElement==="undefined"){O=O.ownerDocument||O[0]&&O[0].ownerDocument||ac;}for(var L=[],G=0,J;(J=P[G])!=null;G++){if(typeof J==="number"){J+="";}if(J){if(typeof J==="string"&&!y.test(J)){J=O.createTextNode(J);}else{if(typeof J==="string"){J=J.replace(E,bo);var s=(o.exec(J)||["",""])[1].toLowerCase(),F=aM[s]||aM._default,A=F[0],c=O.createElement("div");for(c.innerHTML=F[1]+J+F[2];A--;){c=c.lastChild;}if(!ak.support.tbody){A=af.test(J);s=s==="table"&&!A?c.firstChild&&c.firstChild.childNodes:F[1]==="<table>"&&!A?c.childNodes:[];for(F=s.length-1;F>=0;--F){ak.nodeName(s[F],"tbody")&&!s[F].childNodes.length&&s[F].parentNode.removeChild(s[F]);}}!ak.support.leadingWhitespace&&av.test(J)&&c.insertBefore(O.createTextNode(av.exec(J)[0]),c.firstChild);J=c.childNodes;}}if(J.nodeType){L.push(J);}else{L=ak.merge(L,J);}}}if(N){for(G=0;L[G];G++){if(K&&ak.nodeName(L[G],"script")&&(!L[G].type||L[G].type.toLowerCase()==="text/javascript")){K.push(L[G].parentNode?L[G].parentNode.removeChild(L[G]):L[G]);}else{L[G].nodeType===1&&L.splice.apply(L,[G+1,0].concat(ak.makeArray(L[G].getElementsByTagName("script"))));N.appendChild(L[G]);}}}return L;},cleanData:function(N){for(var L,K,G=ak.cache,J=ak.event.special,A=ak.support.deleteExpando,F=0,c;(c=N[F])!=null;F++){if(K=c[ak.expando]){L=G[K];if(L.events){for(var s in L.events){J[s]?ak.event.remove(c,s):aJ(c,s,L.handle);}}if(A){delete c[ak.expando];}else{c.removeAttribute&&c.removeAttribute(ak.expando);}delete G[K];}}}});var j=/z-?index|font-?weight|opacity|zoom|line-?height/i,a7=/alpha\([^)]*\)/,aT=/opacity=([^)]*)/,aH=/float/i,ag=/-([a-z])/ig,bj=/([A-Z])/g,a2=/^-?\d+(?:px)?$/i,aL=/^-?\d/,ai={position:"absolute",visibility:"hidden",display:"block"},C=["Left","Right"],m=["Top","Bottom"],bm=ac.defaultView&&ac.defaultView.getComputedStyle,ao=ak.support.cssFloat?"cssFloat":"styleFloat",z=function(s,c){return c.toUpperCase();};ak.fn.css=function(s,c){return at(this,s,c,true,function(G,A,F){if(F===U){return ak.curCSS(G,A);}if(typeof F==="number"&&!j.test(A)){F+="px";}ak.style(G,A,F);});};ak.extend({style:function(s,c,G){if(!s||s.nodeType===3||s.nodeType===8){return U;}if((c==="width"||c==="height")&&parseFloat(G)<0){G=U;}var A=s.style||s,F=G!==U;if(!ak.support.opacity&&c==="opacity"){if(F){A.zoom=1;c=parseInt(G,10)+""==="NaN"?"":"alpha(opacity="+G*100+")";s=A.filter||ak.curCSS(s,"filter")||"";A.filter=a7.test(s)?s.replace(a7,c):c;}return A.filter&&A.filter.indexOf("opacity=")>=0?parseFloat(aT.exec(A.filter)[1])/100+"":"";}if(aH.test(c)){c=ao;}c=c.replace(ag,z);if(F){A[c]=G;}return A[c];},css:function(s,c,K,G){if(c==="width"||c==="height"){var J,A=c==="width"?C:m;function F(){J=c==="width"?s.offsetWidth:s.offsetHeight;G!=="border"&&ak.each(A,function(){G||(J-=parseFloat(ak.curCSS(s,"padding"+this,true))||0);if(G==="margin"){J+=parseFloat(ak.curCSS(s,"margin"+this,true))||0;}else{J-=parseFloat(ak.curCSS(s,"border"+this+"Width",true))||0;
}});}s.offsetWidth!==0?F():ak.swap(s,ai,F);return Math.max(0,Math.round(J));}return ak.curCSS(s,c,K);},curCSS:function(s,c,J){var F,G=s.style;if(!ak.support.opacity&&c==="opacity"&&s.currentStyle){F=aT.test(s.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return F===""?"1":F;}if(aH.test(c)){c=ao;}if(!J&&G&&G[c]){F=G[c];}else{if(bm){if(aH.test(c)){c="float";}c=c.replace(bj,"-$1").toLowerCase();G=s.ownerDocument.defaultView;if(!G){return null;}if(s=G.getComputedStyle(s,null)){F=s.getPropertyValue(c);}if(c==="opacity"&&F===""){F="1";}}else{if(s.currentStyle){J=c.replace(ag,z);F=s.currentStyle[c]||s.currentStyle[J];if(!a2.test(F)&&aL.test(F)){c=G.left;var A=s.runtimeStyle.left;s.runtimeStyle.left=s.currentStyle.left;G.left=J==="fontSize"?"1em":F||0;F=G.pixelLeft+"px";G.left=c;s.runtimeStyle.left=A;}}}}return F;},swap:function(s,c,G){var A={};for(var F in c){A[F]=s.style[F];s.style[F]=c[F];}G.call(s);for(F in c){s.style[F]=A[F];}}});if(ak.expr&&ak.expr.filters){ak.expr.filters.hidden=function(s){var c=s.offsetWidth,F=s.offsetHeight,A=s.nodeName.toLowerCase()==="tr";return c===0&&F===0&&!A?true:c>0&&F>0&&!A?false:ak.curCSS(s,"display")==="none";};ak.expr.filters.visible=function(c){return !ak.expr.filters.hidden(c);};}var a5=aI(),aQ=/<script(.|\s)*?\/script>/gi,am=/select|textarea/i,H=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,aD=/=\?(&|$)/,k=/\?/,q=/(\?|&)_=.*?(&|$)/,a=/^(\w+:)?\/\/([^\/?#]+)/,a8=/%20/g,aU=ak.fn.load;ak.fn.extend({load:function(s,c,J){if(typeof s!=="string"){return aU.call(this,s);}else{if(!this.length){return this;}}var F=s.indexOf(" ");if(F>=0){var G=s.slice(F,s.length);s=s.slice(0,F);}F="GET";if(c){if(ak.isFunction(c)){J=c;c=null;}else{if(typeof c==="object"){c=ak.param(c,ak.ajaxSettings.traditional);F="POST";}}}var A=this;ak.ajax({url:s,type:F,dataType:"html",data:c,complete:function(K,L){if(L==="success"||L==="notmodified"){A.html(G?ak("<div />").append(K.responseText.replace(aQ,"")).find(G):K.responseText);}J&&A.each(J,[K.responseText,L,K]);}});return this;},serialize:function(){return ak.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return this.elements?ak.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||am.test(this.nodeName)||H.test(this.type));}).map(function(s,c){s=ak(this).val();return s==null?null:ak.isArray(s)?ak.map(s,function(A){return{name:c.name,value:A};}):{name:c.name,value:s};}).get();}});ak.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(s,c){ak.fn[c]=function(A){return this.bind(c,A);};});ak.extend({get:function(s,c,F,A){if(ak.isFunction(c)){A=A||F;F=c;c=null;}return ak.ajax({type:"GET",url:s,data:c,success:F,dataType:A});},getScript:function(s,c){return ak.get(s,null,c,"script");},getJSON:function(s,c,A){return ak.get(s,c,A,"json");},post:function(s,c,F,A){if(ak.isFunction(c)){A=A||F;F=c;c={};}return ak.ajax({type:"POST",url:s,data:c,success:F,dataType:A});},ajaxSetup:function(c){ak.extend(ak.ajaxSettings,c);},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:aR.XMLHttpRequest&&(aR.location.protocol!=="file:"||!aR.ActiveXObject)?function(){return new aR.XMLHttpRequest;}:function(){try{return new aR.ActiveXObject("Microsoft.XMLHTTP");}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(ab){function aa(){Y.success&&Y.success.call(Q,L,T,s);Y.global&&X("ajaxSuccess",[s,Y]);}function Z(){Y.complete&&Y.complete.call(Q,s,T);Y.global&&X("ajaxComplete",[s,Y]);Y.global&&!--ak.active&&ak.event.trigger("ajaxStop");}function X(bb,bp){(Y.context?ak(Y.context):ak.event).trigger(bb,bp);}var Y=ak.extend(true,{},ak.ajaxSettings,ab),R,T,L,Q=ab&&ab.context||Y,N=Y.type.toUpperCase();if(Y.data&&Y.processData&&typeof Y.data!=="string"){Y.data=ak.param(Y.data,Y.traditional);}if(Y.dataType==="jsonp"){if(N==="GET"){aD.test(Y.url)||(Y.url+=(k.test(Y.url)?"&":"?")+(Y.jsonp||"callback")+"=?");}else{if(!Y.data||!aD.test(Y.data)){Y.data=(Y.data?Y.data+"&":"")+(Y.jsonp||"callback")+"=?";}}Y.dataType="json";}if(Y.dataType==="json"&&(Y.data&&aD.test(Y.data)||aD.test(Y.url))){R=Y.jsonpCallback||"jsonp"+a5++;if(Y.data){Y.data=(Y.data+"").replace(aD,"="+R+"$1");}Y.url=Y.url.replace(aD,"="+R+"$1");Y.dataType="script";aR[R]=aR[R]||function(bb){L=bb;aa();Z();aR[R]=U;try{delete aR[R];}catch(bp){}c&&c.removeChild(G);};}if(Y.dataType==="script"&&Y.cache===null){Y.cache=false;}if(Y.cache===false&&N==="GET"){var J=aI(),A=Y.url.replace(q,"$1_="+J+"$2");Y.url=A+(A===Y.url?(k.test(Y.url)?"&":"?")+"_="+J:"");}if(Y.data&&N==="GET"){Y.url+=(k.test(Y.url)?"&":"?")+Y.data;}Y.global&&!ak.active++&&ak.event.trigger("ajaxStart");J=(J=a.exec(Y.url))&&(J[1]&&J[1]!==location.protocol||J[2]!==location.host);
if(Y.dataType==="script"&&N==="GET"&&J){var c=ac.getElementsByTagName("head")[0]||ac.documentElement,G=ac.createElement("script");G.src=Y.url;if(Y.scriptCharset){G.charset=Y.scriptCharset;}if(!R){var K=false;G.onload=G.onreadystatechange=function(){if(!K&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){K=true;aa();Z();G.onload=G.onreadystatechange=null;c&&G.parentNode&&c.removeChild(G);}};}c.insertBefore(G,c.firstChild);return U;}var F=false,s=Y.xhr();if(s){Y.username?s.open(N,Y.url,Y.async,Y.username,Y.password):s.open(N,Y.url,Y.async);try{if(Y.data||ab&&ab.contentType){s.setRequestHeader("Content-Type",Y.contentType);}if(Y.ifModified){ak.lastModified[Y.url]&&s.setRequestHeader("If-Modified-Since",ak.lastModified[Y.url]);ak.etag[Y.url]&&s.setRequestHeader("If-None-Match",ak.etag[Y.url]);}J||s.setRequestHeader("X-Requested-With","XMLHttpRequest");s.setRequestHeader("Accept",Y.dataType&&Y.accepts[Y.dataType]?Y.accepts[Y.dataType]+", */*":Y.accepts._default);}catch(ba){}if(Y.beforeSend&&Y.beforeSend.call(Q,s,Y)===false){Y.global&&!--ak.active&&ak.event.trigger("ajaxStop");s.abort();return false;}Y.global&&X("ajaxSend",[s,Y]);var W=s.onreadystatechange=function(bp){if(!s||s.readyState===0||bp==="abort"){F||Z();F=true;if(s){s.onreadystatechange=ak.noop;}}else{if(!F&&s&&(s.readyState===4||bp==="timeout")){F=true;s.onreadystatechange=ak.noop;T=bp==="timeout"?"timeout":!ak.httpSuccess(s)?"error":Y.ifModified&&ak.httpNotModified(s,Y.url)?"notmodified":"success";var bq;if(T==="success"){try{L=ak.httpData(s,Y.dataType,Y);}catch(bb){T="parsererror";bq=bb;}}if(T==="success"||T==="notmodified"){R||aa();}else{ak.handleError(Y,s,T,bq);}Z();bp==="timeout"&&s.abort();if(Y.async){s=null;}}}};try{var V=s.abort;s.abort=function(){s&&V.call(s);W("abort");};}catch(P){}Y.async&&Y.timeout>0&&setTimeout(function(){s&&!F&&W("timeout");},Y.timeout);try{s.send(N==="POST"||N==="PUT"||N==="DELETE"?Y.data:null);}catch(O){ak.handleError(Y,s,null,O);Z();}Y.async||W();return s;}},handleError:function(s,c,F,A){if(s.error){s.error.call(s.context||s,c,F,A);}if(s.global){(s.context?ak(s.context):ak.event).trigger("ajaxError",[c,s,A]);}},active:0,httpSuccess:function(s){try{return !s.status&&location.protocol==="file:"||s.status>=200&&s.status<300||s.status===304||s.status===1223||s.status===0;}catch(c){}return false;},httpNotModified:function(s,c){var F=s.getResponseHeader("Last-Modified"),A=s.getResponseHeader("Etag");if(F){ak.lastModified[c]=F;}if(A){ak.etag[c]=A;}return s.status===304||s.status===0;},httpData:function(s,c,G){var A=s.getResponseHeader("content-type")||"",F=c==="xml"||!c&&A.indexOf("xml")>=0;s=F?s.responseXML:s.responseText;F&&s.documentElement.nodeName==="parsererror"&&ak.error("parsererror");if(G&&G.dataFilter){s=G.dataFilter(s,c);}if(typeof s==="string"){if(c==="json"||!c&&A.indexOf("json")>=0){s=ak.parseJSON(s);}else{if(c==="script"||!c&&A.indexOf("javascript")>=0){ak.globalEval(s);}}}return s;},param:function(s,c){function J(K,L){if(ak.isArray(L)){ak.each(L,function(N,O){c||/\[\]$/.test(K)?F(K,O):J(K+"["+(typeof O==="object"||ak.isArray(O)?N:"")+"]",O);});}else{!c&&L!=null&&typeof L==="object"?ak.each(L,function(N,O){J(K+"["+N+"]",O);}):F(K,L);}}function F(K,L){L=ak.isFunction(L)?L():L;G[G.length]=encodeURIComponent(K)+"="+encodeURIComponent(L);}var G=[];if(c===U){c=ak.ajaxSettings.traditional;}if(ak.isArray(s)||s.jquery){ak.each(s,function(){F(this.name,this.value);});}else{for(var A in s){J(A,s[A]);}}return G.join("&").replace(a8,"+");}});var bk={},bf=/toggle|show|hide/,a0=/^([+-]=)?([\d+-.]+)(.*)$/,au,I=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];ak.fn.extend({show:function(s,c){if(s||s===0){return this.animate(aF("show",3),s,c);}else{s=0;for(c=this.length;s<c;s++){var G=ak.data(this[s],"olddisplay");this[s].style.display=G||"";if(ak.css(this[s],"display")==="none"){G=this[s].nodeName;var A;if(bk[G]){A=bk[G];}else{var F=ak("<"+G+" />").appendTo("body");A=F.css("display");if(A==="none"){A="block";}F.remove();bk[G]=A;}ak.data(this[s],"olddisplay",A);}}s=0;for(c=this.length;s<c;s++){this[s].style.display=ak.data(this[s],"olddisplay")||"";}return this;}},hide:function(s,c){if(s||s===0){return this.animate(aF("hide",3),s,c);}else{s=0;for(c=this.length;s<c;s++){var A=ak.data(this[s],"olddisplay");!A&&A!=="none"&&ak.data(this[s],"olddisplay",ak.css(this[s],"display"));}s=0;for(c=this.length;s<c;s++){this[s].style.display="none";}return this;}},_toggle:ak.fn.toggle,toggle:function(s,c){var A=typeof s==="boolean";if(ak.isFunction(s)&&ak.isFunction(c)){this._toggle.apply(this,arguments);}else{s==null||A?this.each(function(){var F=A?s:ak(this).is(":hidden");ak(this)[F?"show":"hide"]();}):this.animate(aF("toggle",3),s,c);}return this;},fadeTo:function(s,c,A){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},s,A);},animate:function(s,c,G,A){var F=ak.speed(c,G,A);if(ak.isEmptyObject(s)){return this.each(F.complete);
}return this[F.queue===false?"each":"queue"](function(){var K=ak.extend({},F),L,N=this.nodeType===1&&ak(this).is(":hidden"),J=this;for(L in s){var O=L.replace(ag,z);if(L!==O){s[O]=s[L];delete s[L];L=O;}if(s[L]==="hide"&&N||s[L]==="show"&&!N){return K.complete.call(this);}if((L==="height"||L==="width")&&this.style){K.display=ak.css(this,"display");K.overflow=this.style.overflow;}if(ak.isArray(s[L])){(K.specialEasing=K.specialEasing||{})[L]=s[L][1];s[L]=s[L][0];}}if(K.overflow!=null){this.style.overflow="hidden";}K.curAnim=ak.extend({},s);ak.each(s,function(Q,P){var V=new ak.fx(J,K,Q);if(bf.test(P)){V[P==="toggle"?N?"show":"hide":P](s);}else{var T=a0.exec(P),W=V.cur(true)||0;if(T){P=parseFloat(T[2]);var R=T[3]||"px";if(R!=="px"){J.style[Q]=(P||1)+R;W=(P||1)/V.cur(true)*W;J.style[Q]=W+R;}if(T[1]){P=(T[1]==="-="?-1:1)*P+W;}V.custom(W,P,R);}else{V.custom(W,P,"");}}});return true;});},stop:function(s,c){var A=ak.timers;s&&this.queue([]);this.each(function(){for(var F=A.length-1;F>=0;F--){if(A[F].elem===this){c&&A[F](true);A.splice(F,1);}}});c||this.dequeue();return this;}});ak.each({slideDown:aF("show",1),slideUp:aF("hide",1),slideToggle:aF("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(s,c){ak.fn[s]=function(F,A){return this.animate(c,F,A);};});ak.extend({speed:function(s,c,F){var A=s&&typeof s==="object"?s:{complete:F||!F&&c||ak.isFunction(s)&&s,duration:s,easing:F&&c||c&&!ak.isFunction(c)&&c};A.duration=ak.fx.off?0:typeof A.duration==="number"?A.duration:ak.fx.speeds[A.duration]||ak.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&ak(this).dequeue();ak.isFunction(A.old)&&A.old.call(this);};return A;},easing:{linear:function(s,c,F,A){return F+A*s;},swing:function(s,c,F,A){return(-Math.cos(s*Math.PI)/2+0.5)*A+F;}},timers:[],fx:function(s,c,A){this.options=c;this.elem=s;this.prop=A;if(!c.orig){c.orig={};}}});ak.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(ak.fx.step[this.prop]||ak.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block";}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];}return(c=parseFloat(ak.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(ak.curCSS(this.elem,this.prop))||0;},custom:function(s,c,G){function A(J){return F.step(J);}this.startTime=aI();this.start=s;this.end=c;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;A.elem=this.elem;if(A()&&ak.timers.push(A)&&!au){au=setInterval(ak.fx.tick,13);}},show:function(){this.options.orig[this.prop]=ak.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());ak(this.elem).show();},hide:function(){this.options.orig[this.prop]=ak.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(s){var c=aI(),G=true;if(s||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var A in this.options.curAnim){if(this.options.curAnim[A]!==true){G=false;}}if(G){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;s=ak.data(this.elem,"olddisplay");this.elem.style.display=s?s:this.options.display;if(ak.css(this.elem,"display")==="none"){this.elem.style.display="block";}}this.options.hide&&ak(this.elem).hide();if(this.options.hide||this.options.show){for(var F in this.options.curAnim){ak.style(this.elem,F,this.options.orig[F]);}}this.options.complete.call(this.elem);}return false;}else{F=c-this.startTime;this.state=F/this.options.duration;s=this.options.easing||(ak.easing.swing?"swing":"linear");this.pos=ak.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||s](this.state,F,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();}return true;}};ak.extend(ak.fx,{tick:function(){for(var s=ak.timers,c=0;c<s.length;c++){s[c]()||s.splice(c--,1);}s.length||ak.fx.stop();},stop:function(){clearInterval(au);au=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){ak.style(c.elem,"opacity",c.now);},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit;}else{c.elem[c.prop]=c.now;}}}});if(ak.expr&&ak.expr.filters){ak.expr.filters.animated=function(c){return ak.grep(ak.timers,function(s){return c===s.elem;}).length;};}ak.fn.offset="getBoundingClientRect" in ac.documentElement?function(s){var c=this[0];if(s){return this.each(function(G){ak.offset.setOffset(this,s,G);});}if(!c||!c.ownerDocument){return null;}if(c===c.ownerDocument.body){return ak.offset.bodyOffset(c);}var F=c.getBoundingClientRect(),A=c.ownerDocument;c=A.body;A=A.documentElement;return{top:F.top+(self.pageYOffset||ak.support.boxModel&&A.scrollTop||c.scrollTop)-(A.clientTop||c.clientTop||0),left:F.left+(self.pageXOffset||ak.support.boxModel&&A.scrollLeft||c.scrollLeft)-(A.clientLeft||c.clientLeft||0)};
}:function(O){var N=this[0];if(O){return this.each(function(P){ak.offset.setOffset(this,O,P);});}if(!N||!N.ownerDocument){return null;}if(N===N.ownerDocument.body){return ak.offset.bodyOffset(N);}ak.offset.initialize();var L=N.offsetParent,J=N,K=N.ownerDocument,F,G=K.documentElement,c=K.body;J=(K=K.defaultView)?K.getComputedStyle(N,null):N.currentStyle;for(var A=N.offsetTop,s=N.offsetLeft;(N=N.parentNode)&&N!==c&&N!==G;){if(ak.offset.supportsFixedPosition&&J.position==="fixed"){break;}F=K?K.getComputedStyle(N,null):N.currentStyle;A-=N.scrollTop;s-=N.scrollLeft;if(N===L){A+=N.offsetTop;s+=N.offsetLeft;if(ak.offset.doesNotAddBorder&&!(ak.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(N.nodeName))){A+=parseFloat(F.borderTopWidth)||0;s+=parseFloat(F.borderLeftWidth)||0;}J=L;L=N.offsetParent;}if(ak.offset.subtractsBorderForOverflowNotVisible&&F.overflow!=="visible"){A+=parseFloat(F.borderTopWidth)||0;s+=parseFloat(F.borderLeftWidth)||0;}J=F;}if(J.position==="relative"||J.position==="static"){A+=c.offsetTop;s+=c.offsetLeft;}if(ak.offset.supportsFixedPosition&&J.position==="fixed"){A+=Math.max(G.scrollTop,c.scrollTop);s+=Math.max(G.scrollLeft,c.scrollLeft);}return{top:A,left:s};};ak.offset={initialize:function(){var s=ac.body,c=ac.createElement("div"),J,F,G,A=parseFloat(ak.curCSS(s,"marginTop",true))||0;ak.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.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>";s.insertBefore(c,s.firstChild);J=c.firstChild;F=J.firstChild;G=J.nextSibling.firstChild.firstChild;this.doesNotAddBorder=F.offsetTop!==5;this.doesAddBorderForTableAndCells=G.offsetTop===5;F.style.position="fixed";F.style.top="20px";this.supportsFixedPosition=F.offsetTop===20||F.offsetTop===15;F.style.position=F.style.top="";J.style.overflow="hidden";J.style.position="relative";this.subtractsBorderForOverflowNotVisible=F.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=s.offsetTop!==A;s.removeChild(c);ak.offset.initialize=ak.noop;},bodyOffset:function(s){var c=s.offsetTop,A=s.offsetLeft;ak.offset.initialize();if(ak.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(ak.curCSS(s,"marginTop",true))||0;A+=parseFloat(ak.curCSS(s,"marginLeft",true))||0;}return{top:c,left:A};},setOffset:function(s,c,K){if(/static/.test(ak.curCSS(s,"position"))){s.style.position="relative";}var G=ak(s),J=G.offset(),A=parseInt(ak.curCSS(s,"top",true),10)||0,F=parseInt(ak.curCSS(s,"left",true),10)||0;if(ak.isFunction(c)){c=c.call(s,K,J);}K={top:c.top-J.top+A,left:c.left-J.left+F};"using" in c?c.using.call(s,K):G.css(K);}};ak.fn.extend({position:function(){if(!this[0]){return null;}var s=this[0],c=this.offsetParent(),F=this.offset(),A=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();F.top-=parseFloat(ak.curCSS(s,"marginTop",true))||0;F.left-=parseFloat(ak.curCSS(s,"marginLeft",true))||0;A.top+=parseFloat(ak.curCSS(c[0],"borderTopWidth",true))||0;A.left+=parseFloat(ak.curCSS(c[0],"borderLeftWidth",true))||0;return{top:F.top-A.top,left:F.left-A.left};},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||ac.body;c&&!/^body|html$/i.test(c.nodeName)&&ak.css(c,"position")==="static";){c=c.offsetParent;}return c;});}});ak.each(["Left","Top"],function(s,c){var A="scroll"+c;ak.fn[A]=function(G){var J=this[0],F;if(!J){return null;}if(G!==U){return this.each(function(){if(F=r(this)){F.scrollTo(!s?G:ak(F).scrollLeft(),s?G:ak(F).scrollTop());}else{this[A]=G;}});}else{return(F=r(J))?"pageXOffset" in F?F[s?"pageYOffset":"pageXOffset"]:ak.support.boxModel&&F.document.documentElement[A]||F.document.body[A]:J[A];}};});ak.each(["Height","Width"],function(s,c){var A=c.toLowerCase();ak.fn["inner"+c]=function(){return this[0]?ak.css(this[0],A,false,"padding"):null;};ak.fn["outer"+c]=function(F){return this[0]?ak.css(this[0],A,false,F?"margin":"border"):null;};ak.fn[A]=function(F){var G=this[0];if(!G){return F==null?null:this;}if(ak.isFunction(F)){return this.each(function(J){var K=ak(this);K[A](F.call(this,J,K[A]()));});}return"scrollTo" in G&&G.document?G.document.compatMode==="CSS1Compat"&&G.document.documentElement["client"+c]||G.document.body["client"+c]:G.nodeType===9?Math.max(G.documentElement["client"+c],G.body["scroll"+c],G.documentElement["scroll"+c],G.body["offset"+c],G.documentElement["offset"+c]):F===U?ak.css(G,A):this.css(A,typeof F==="string"?F:F+"px");};});aR.jQuery=aR.$=ak;})(window);(function(q){var s="indexer",r=q.event,l=r.special,g=q.listen=function(k,j,h,a){if(typeof j!="object"){a=h;h=j;j=document;}c(k.split(/\s+/),function(n){n=g.fixes[n]||n;var m=f(j,n)||f(j,n,new e(n,j));m.append(h,a);m.start();});},f=function(a,j,h){return q.data(a,j+"."+s,h);};q.fn[s]=function(h){return this[0]&&f(this[0],h)||null;
};q[s]=function(h){return f(document,h);};q.extend(g,{regex:/^((?:\w*?|\*))(?:([#.])([\w-]+))?$/,fixes:{focus:"focusin",blur:"focusout"},cache:function(h){this.caching=h;}});q.each(g.fixes,function(j,h){l[h]={setup:function(){if(q.browser.msie){return !1;}this.addEventListener(j,l[h].handler,!0);},teardown:function(){if(q.browser.msie){return !1;}this.removeEventListener(j,l[h].handler,!0);},handler:function(a){arguments[0]=a=r.fix(a);a.type=h;return r.handle.apply(this,arguments);}};});q.fn.listen=function(j,h,k){return this.each(function(){g(j,this,h,k);});};function e(j,h){q.extend(this,{ids:{},tags:{},listener:h,event:j});this.id=e.instances.push(this);}e.instances=[];e.prototype={constructor:e,handle:function(j){var h=j.stopPropagation;j.stopPropagation=function(){j.stopped=1;h.apply(this,arguments);};f(this,j.type).parse(j);j.stopPropagation=h;h=j.data=null;},on:0,bubbles:0,start:function(){var h=this;if(!h.on){r.add(h.listener,h.event,h.handle);h.on=1;}},stop:function(){var h=this;if(h.on){r.remove(h.listener,h.event,h.handle);h.on=0;}},cache:function(j,h){return q.data(j,"listenCache_"+this.id,h);},parse:function(h){var k=this,m=h.data||h.target,j=arguments,a;if(!g.caching||!(a=k.cache(m))){a=[];if(m.id&&k.ids[m.id]){b(a,k.ids[m.id]);}c([m.nodeName,"*"],function(o){var n=k.tags[o];if(n){c((m.className+" *").split(" "),function(t){if(t&&n[t]){b(a,n[t]);}});}});if(g.caching){k.cache(m,a);}}if(a[0]){c(a,function(n){if(n.apply(m,j)===!1){h.preventDefault();h.stopPropagation();}});}if(!h.stopped&&(m=m.parentNode)&&(m.nodeName=="A"||k.bubbles&&m!=k.listener)){h.data=m;k.parse(h);}a=j=m=null;},append:function(h,a){var j=this;c(h.split(/\s*,\s*/),function(m){var k=g.regex.exec(m);if(!k){throw'$.listen > "'+m+'" is not a supported selector.';}var t=k[2]=="#"&&k[3],o=k[1].toUpperCase()||"*",n=k[3]||"*";if(t){(j.ids[t]||(j.ids[t]=[])).push(a);}else{if(o){o=j.tags[o]=j.tags[o]||{};(o[n]||(o[n]=[])).push(a);}}});}};function c(k,h,n){for(var m=0,j=k.length;m<j;m++){h.call(n,k[m],m);}}function b(j,h){j.push.apply(j,h);return j;}q(window).unload(function(){if(typeof e=="function"){c(e.instances,function(a){a.stop();q.removeData(a.listener,a.event+"."+s);a.ids=a.names=a.listener=null;});}});})(jQuery);(function($){$.toJSON=function(o){if(typeof(JSON)=="object"&&JSON.stringify){return JSON.stringify(o);}var type=typeof(o);if(o===null){return"null";}if(type=="undefined"){return undefined;}if(type=="number"||type=="boolean"){return o+"";}if(type=="string"){return $.quoteString(o);}if(type=="object"){if(typeof o.toJSON=="function"){return $.toJSON(o.toJSON());}if(o.constructor===Date){var month=o.getUTCMonth()+1;if(month<10){month="0"+month;}var day=o.getUTCDate();if(day<10){day="0"+day;}var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10){hours="0"+hours;}var minutes=o.getUTCMinutes();if(minutes<10){minutes="0"+minutes;}var seconds=o.getUTCSeconds();if(seconds<10){seconds="0"+seconds;}var milli=o.getUTCMilliseconds();if(milli<100){milli="0"+milli;}if(milli<10){milli="0"+milli;}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"';}if(o.constructor===Array){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i])||"null");}return"["+ret.join(",")+"]";}var pairs=[];for(var k in o){var name;var type=typeof k;if(type=="number"){name='"'+k+'"';}else{if(type=="string"){name=$.quoteString(k);}else{continue;}}if(typeof o[k]=="function"){continue;}var val=$.toJSON(o[k]);pairs.push(name+":"+val);}return"{"+pairs.join(", ")+"}";}};$.evalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src);}return eval("("+src+")");};$.secureEvalJSON=function(src){if(typeof(JSON)=="object"&&JSON.parse){return JSON.parse(src);}var filtered=src;filtered=filtered.replace(/\\["\\\/bfnrtu]/g,"@");filtered=filtered.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");filtered=filtered.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")");}else{throw new SyntaxError("Error parsing JSON, source is not valid.");}};$.quoteString=function(string){if(string.match(_escapeable)){return'"'+string.replace(_escapeable,function(a){var c=_meta[a];if(typeof c==="string"){return c;}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);})+'"';}return'"'+string+'"';};var _escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;var _meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g);},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a;},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a;},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a;}return -h/2*((--f)*(f-2)-1)+a;},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a;},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a;},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a;
}return h/2*((f-=2)*f*f+2)+a;},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a;},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a;},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a;}return -h/2*((f-=2)*f*f*f-2)+a;},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a;},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a;},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a;}return h/2*((f-=2)*f*f*f*f+2)+a;},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a;},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a;},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a;},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a;},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a;},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a;}if(f==g){return a+h;}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a;}return h/2*(-Math.pow(2,-10*--f)+2)+a;},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a;},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a;},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a;}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a;},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e;}if((h/=l)==1){return e+m;}if(!k){k=l*0.3;}if(g<Math.abs(m)){g=m;var j=k/4;}else{var j=k/(2*Math.PI)*Math.asin(m/g);}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e;},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e;}if((h/=l)==1){return e+m;}if(!k){k=l*0.3;}if(g<Math.abs(m)){g=m;var j=k/4;}else{var j=k/(2*Math.PI)*Math.asin(m/g);}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e;},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e;}if((h/=l/2)==2){return e+m;}if(!k){k=l*(0.3*1.5);}if(g<Math.abs(m)){g=m;var j=k/4;}else{var j=k/(2*Math.PI)*Math.asin(m/g);}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e;}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e;},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158;}return j*(f/=h)*f*((g+1)*f-g)+a;},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158;}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a;},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158;}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a;}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a;},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a;},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a;}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a;}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a;}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a;}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a;}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a;}});(function(c){var a=c.scrollTo=function(f,g,h){c(window).scrollTo(f,g,h);};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(e){return c(window)._scrollable();};c.fn._scrollable=function(){return this.map(function(){var f=this,g=!f.nodeName||c.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!g){return f;}var h=(f.contentWindow||f).document||f.ownerDocument||f;return c.browser.safari||h.compatMode=="BackCompat"?h.body:h.documentElement;});};c.fn.scrollTo=function(g,f,e){if(typeof f=="object"){e=f;f=0;}if(typeof e=="function"){e={onAfter:e};}if(g=="max"){g=9000000000;}e=c.extend({},a.defaults,e);f=f||e.speed||e.duration;e.queue=e.queue&&e.axis.length>1;if(e.queue){f/=2;}e.offset=b(e.offset);e.over=b(e.over);return this._scrollable().each(function(){var o=this,m=c(o),n=g,k,l={},h=m.is("html,body");switch(typeof n){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=b(n);break;}n=c(n,this);case"object":if(n.is||n.style){k=(n=c(n)).offset();}}c.each(e.axis.split(""),function(s,t){var v=t=="x"?"Left":"Top",u=v.toLowerCase(),y="scroll"+v,r=o[y],q=a.max(o,t);if(k){l[y]=k[u]+(h?0:r-m.offset()[u]);if(e.margin){l[y]-=parseInt(n.css("margin"+v))||0;l[y]-=parseInt(n.css("border"+v+"Width"))||0;}l[y]+=e.offset[u]||0;if(e.over[u]){l[y]+=n[t=="x"?"width":"height"]()*e.over[u];}}else{var x=n[u];l[y]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*q:x;}if(/^\d+$/.test(l[y])){l[y]=l[y]<=0?0:Math.min(l[y],q);}if(!s&&e.queue){if(r!=l[y]){j(e.onAfterFirst);}delete l[y];}});j(e.onAfter);function j(q){m.animate(l,f,e.easing,q&&function(){q.call(this,g,e);});}}).end();};a.max=function(j,k){var o=k=="x"?"Width":"Height",n="scroll"+o;if(!c(j).is("html,body")){return j[n]-c(j)[o.toLowerCase()]();}var q="client"+o,g=j.ownerDocument.documentElement,f=j.ownerDocument.body;return Math.max(g[n],f[n])-Math.min(g[q],f[q]);};function b(e){return typeof e=="object"?e:{top:e,left:e};
}})(jQuery);(function(e){var c=e.serialScroll=function(a){return e(window).serialScroll(a);};c.defaults={duration:1000,axis:"x",event:"click",start:0,step:1,lock:!0,cycle:!0,constant:!0};e.fn.serialScroll=function(a){return this.each(function(){var v=e.extend({},c.defaults,a),x=v.event,H=v.step,y=v.lazy,L=v.target?this:document,b=e(v.target||this,L),A=b[0],D=v.items,I=v.start,J=v.interval,F=v.navigation,E;if(!y){D=M();}if(v.force){K({},I);}e(v.prev||[],L).bind(x,-H,z);e(v.next||[],L).bind(x,H,z);if(!A.ssbound){b.bind("prev.serialScroll",-H,z).bind("next.serialScroll",H,z).bind("goto.serialScroll",K);}if(J){b.bind("start.serialScroll",function(f){if(!J){B();J=!0;C();}}).bind("stop.serialScroll",function(){B();J=!1;});}b.bind("notify.serialScroll",function(f,g){var h=G(g);if(h>-1){I=h;}});A.ssbound=!0;if(v.jump){(y?b:M()).bind(x,function(f){K(f,G(f.target));});}if(F){F=e(F,L).bind(x,function(f){f.data=Math.round(M().length/F.length)*F.index(this);K(f,this);});}function z(f){f.data+=I;K(f,this);}function K(h,k){if(!isNaN(k)){h.data=k;k=A;}var g=h.data,o,f=h.type,j=v.exclude?M().slice(0,-v.exclude):M(),l=j.length,n=j[g],m=v.duration;if(f){h.preventDefault();}if(J){B();E=setTimeout(C,v.interval);}if(!n){o=g<0?0:l-1;if(I!=o){g=o;}else{if(!v.cycle){return;}else{g=l-o-1;}}n=j[g];}if(!n||v.lock&&b.is(":animated")||f&&v.onBefore&&v.onBefore(h,n,b,M(),g)===!1){return;}if(v.stop){b.queue("fx",[]).stop();}if(v.constant){m=Math.abs(m/H*(I-g));}b.scrollTo(n,m,v).trigger("notify.serialScroll",[g]);}function C(){b.trigger("next.serialScroll");}function B(){clearTimeout(E);}function M(){return e(D,A);}function G(g){if(!isNaN(g)){return g;}var f=M(),h;while((h=f.index(g))==-1&&g!=A){g=g.parentNode;}return h;}});};})(jQuery);(function(k){k.fn.drag=function(l,m,n){if(m){this.bind("dragstart",l);}if(n){this.bind("dragend",n);}return !l?this.trigger("drag"):this.bind("drag",m?m:l);};var e=k.event,c=e.special,j=c.drag={not:":input",distance:0,which:1,dragging:false,setup:function(l){l=k.extend({distance:j.distance,which:j.which,not:j.not},l||{});l.distance=f(l.distance);e.add(this,"mousedown",g,l);if(this.attachEvent){this.attachEvent("ondragstart",a);}},teardown:function(){e.remove(this,"mousedown",g);if(this===j.dragging){j.dragging=j.proxy=false;}h(this,true);if(this.detachEvent){this.detachEvent("ondragstart",a);}}};c.dragstart=c.dragend={setup:function(){},teardown:function(){}};function g(l){var m=this,n,o=l.data||{};if(o.elem){m=l.dragTarget=o.elem;l.dragProxy=j.proxy||m;l.cursorOffsetX=o.pageX-o.left;l.cursorOffsetY=o.pageY-o.top;l.offsetX=l.pageX-l.cursorOffsetX;l.offsetY=l.pageY-l.cursorOffsetY;}else{if(j.dragging||(o.which>0&&l.which!=o.which)||k(l.target).is(o.not)){return;}}switch(l.type){case"mousedown":k.extend(o,k(m).offset(),{elem:m,target:l.target,pageX:l.pageX,pageY:l.pageY});e.add(document,"mousemove mouseup",g,o);h(m,false);j.dragging=null;return false;case !j.dragging&&"mousemove":if(f(l.pageX-o.pageX)+f(l.pageY-o.pageY)<o.distance){break;}l.target=o.target;n=b(l,"dragstart",m);if(n!==false){j.dragging=m;j.proxy=l.dragProxy=k(n||m)[0];}case"mousemove":if(j.dragging){n=b(l,"drag",m);if(c.drop){c.drop.allowed=(n!==false);c.drop.handler(l);}if(n!==false){break;}l.type="mouseup";}case"mouseup":e.remove(document,"mousemove mouseup",g);if(j.dragging){if(c.drop){c.drop.handler(l);}b(l,"dragend",m);}h(m,true);j.dragging=j.proxy=o.elem=false;break;}return true;}function b(o,m,l){o.type=m;var n=k.event.handle.call(l,o);return n===false?false:n||o.result;}function f(l){return Math.pow(l,2);}function a(){return(j.dragging===false);}function h(l,m){if(!l){return;}l.unselectable=m?"off":"on";l.onselectstart=function(){return m;};if(l.style){l.style.MozUserSelect=m?"":"none";}}})(jQuery);(function(k){var n="2.88";if(k.support==undefined){k.support={opacity:!(k.browser.msie)};}function a(t){if(k.fn.cycle.debug){g(t);}}function g(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}k.fn.cycle=function(u,t){var v={s:this.selector,c:this.context};if(this.length===0&&u!="stop"){if(!k.isReady&&v.s){g("DOM not ready, queuing slideshow");k(function(){k(v.s,v.c).cycle(u,t);});return this;}g("terminating; zero elements found by selector"+(k.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var A=o(this,u,t);if(A===false){return;}A.updateActivePagerLink=A.updateActivePagerLink||k.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var B=k(this);var C=A.slideExpr?k(A.slideExpr,this):B.children();var y=C.get();if(y.length<2){g("terminating; too few slides: "+y.length);return;}var x=m(B,C,y,A,v);if(x===false){return;}var z=x.continuous?10:j(y[x.currSlide],y[x.nextSlide],x,!x.rev);if(z){z+=(x.delay||0);if(z<10){z=10;}a("first timeout: "+z);this.cycleTimeout=setTimeout(function(){f(y,x,0,(!x.rev&&!A.backwards));},z);}});};function o(t,x,u){if(t.cycleStop==undefined){t.cycleStop=0;}if(x===undefined||x===null){x={};
}if(x.constructor==String){switch(x){case"destroy":case"stop":var z=k(t).data("cycle.opts");if(!z){return false;}t.cycleStop++;if(t.cycleTimeout){clearTimeout(t.cycleTimeout);}t.cycleTimeout=0;k(t).removeData("cycle.opts");if(x=="destroy"){s(z);}return false;case"toggle":t.cyclePause=(t.cyclePause===1)?0:1;y(t.cyclePause,u,t);return false;case"pause":t.cyclePause=1;return false;case"resume":t.cyclePause=0;y(false,u,t);return false;case"prev":case"next":var z=k(t).data("cycle.opts");if(!z){g('options not found, "prev/next" ignored');return false;}k.fn.cycle[x](z);return false;default:x={fx:x};}return x;}else{if(x.constructor==Number){var v=x;x=k(t).data("cycle.opts");if(!x){g("options not found, can not advance slide");return false;}if(v<0||v>=x.elements.length){g("invalid slide index: "+v);return false;}x.nextSlide=v;if(t.cycleTimeout){clearTimeout(t.cycleTimeout);t.cycleTimeout=0;}if(typeof u=="string"){x.oneTimeFx=u;}f(x.elements,x,1,v>=x.currSlide);return false;}}return x;function y(B,C,A){if(!B&&C===true){var D=k(A).data("cycle.opts");if(!D){g("options not found, can not resume");return false;}if(A.cycleTimeout){clearTimeout(A.cycleTimeout);A.cycleTimeout=0;}f(D.elements,D,1,(!z.rev&&!z.backwards));}}}function b(t,u){if(!k.support.opacity&&u.cleartype&&t.style.filter){try{t.style.removeAttribute("filter");}catch(v){}}}function s(t){if(t.next){k(t.next).unbind(t.prevNextEvent);}if(t.prev){k(t.prev).unbind(t.prevNextEvent);}if(t.pager||t.pagerAnchorBuilder){k.each(t.pagerAnchors||[],function(){this.unbind().remove();});}t.pagerAnchors=null;if(t.destroy){t.destroy(t);}}function m(B,N,y,x,H){var F=k.extend({},k.fn.cycle.defaults,x||{},k.metadata?B.metadata():k.meta?B.data():{});if(F.autostop){F.countdown=F.autostopCount||y.length;}var u=B[0];B.data("cycle.opts",F);F.$cont=B;F.stopCount=u.cycleStop;F.elements=y;F.before=F.before?[F.before]:[];F.after=F.after?[F.after]:[];F.after.unshift(function(){F.busy=0;});if(!k.support.opacity&&F.cleartype){F.after.push(function(){b(this,F);});}if(F.continuous){F.after.push(function(){f(y,F,0,(!F.rev&&!F.backwards));});}q(F);if(!k.support.opacity&&F.cleartype&&!F.cleartypeNoBg){h(N);}if(B.css("position")=="static"){B.css("position","relative");}if(F.width){B.width(F.width);}if(F.height&&F.height!="auto"){B.height(F.height);}if(F.startingSlide){F.startingSlide=parseInt(F.startingSlide);}else{if(F.backwards){F.startingSlide=y.length-1;}}if(F.random){F.randomMap=[];for(var L=0;L<y.length;L++){F.randomMap.push(L);}F.randomMap.sort(function(Q,P){return Math.random()-0.5;});F.randomIndex=1;F.startingSlide=F.randomMap[1];}else{if(F.startingSlide>=y.length){F.startingSlide=0;}}F.currSlide=F.startingSlide||0;var A=F.startingSlide;N.css({position:"absolute",top:0,left:0}).hide().each(function(P){var Q;if(F.backwards){Q=A?P<=A?y.length+(P-A):A-P:y.length-P;}else{Q=A?P>=A?y.length-(P-A):A-P:y.length-P;}k(this).css("z-index",Q);});k(y[A]).css("opacity",1).show();b(y[A],F);if(F.fit&&F.width){N.width(F.width);}if(F.fit&&F.height&&F.height!="auto"){N.height(F.height);}var G=F.containerResize&&!B.innerHeight();if(G){var z=0,E=0;for(var J=0;J<y.length;J++){var t=k(y[J]),O=t[0],D=t.outerWidth(),M=t.outerHeight();if(!D){D=O.offsetWidth||O.width||t.attr("width");}if(!M){M=O.offsetHeight||O.height||t.attr("height");}z=D>z?D:z;E=M>E?M:E;}if(z>0&&E>0){B.css({width:z+"px",height:E+"px"});}}if(F.pause){B.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(c(F)===false){return false;}var v=false;x.requeueAttempts=x.requeueAttempts||0;N.each(function(){var S=k(this);this.cycleH=(F.fit&&F.height)?F.height:(S.height()||this.offsetHeight||this.height||S.attr("height")||0);this.cycleW=(F.fit&&F.width)?F.width:(S.width()||this.offsetWidth||this.width||S.attr("width")||0);if(S.is("img")){var Q=(k.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var T=(k.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var R=(k.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var P=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(Q||T||R||P){if(H.s&&F.requeueOnImageNotLoaded&&++x.requeueAttempts<100){g(x.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){k(H.s,H.c).cycle(x);},F.requeueTimeout);v=true;return false;}else{g("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(v){return false;}F.cssBefore=F.cssBefore||{};F.animIn=F.animIn||{};F.animOut=F.animOut||{};N.not(":eq("+A+")").css(F.cssBefore);if(F.cssFirst){k(N[A]).css(F.cssFirst);}if(F.timeout){F.timeout=parseInt(F.timeout);if(F.speed.constructor==String){F.speed=k.fx.speeds[F.speed]||parseInt(F.speed);}if(!F.sync){F.speed=F.speed/2;}var I=F.fx=="shuffle"?500:250;while((F.timeout-F.speed)<I){F.timeout+=F.speed;}}if(F.easing){F.easeIn=F.easeOut=F.easing;}if(!F.speedIn){F.speedIn=F.speed;}if(!F.speedOut){F.speedOut=F.speed;}F.slideCount=y.length;F.currSlide=F.lastSlide=A;
if(F.random){if(++F.randomIndex==y.length){F.randomIndex=0;}F.nextSlide=F.randomMap[F.randomIndex];}else{if(F.backwards){F.nextSlide=F.startingSlide==0?(y.length-1):F.startingSlide-1;}else{F.nextSlide=F.startingSlide>=(y.length-1)?0:F.startingSlide+1;}}if(!F.multiFx){var K=k.fn.cycle.transitions[F.fx];if(k.isFunction(K)){K(B,N,F);}else{if(F.fx!="custom"&&!F.multiFx){g("unknown transition: "+F.fx,"; slideshow terminating");return false;}}}var C=N[A];if(F.before.length){F.before[0].apply(C,[C,C,F,true]);}if(F.after.length>1){F.after[1].apply(C,[C,C,F,true]);}if(F.next){k(F.next).bind(F.prevNextEvent,function(){return r(F,F.rev?-1:1);});}if(F.prev){k(F.prev).bind(F.prevNextEvent,function(){return r(F,F.rev?1:-1);});}if(F.pager||F.pagerAnchorBuilder){e(y,F);}l(F,y);return F;}function q(t){t.original={before:[],after:[]};t.original.cssBefore=k.extend({},t.cssBefore);t.original.cssAfter=k.extend({},t.cssAfter);t.original.animIn=k.extend({},t.animIn);t.original.animOut=k.extend({},t.animOut);k.each(t.before,function(){t.original.before.push(this);});k.each(t.after,function(){t.original.after.push(this);});}function c(A){var y,v,u=k.fn.cycle.transitions;if(A.fx.indexOf(",")>0){A.multiFx=true;A.fxs=A.fx.replace(/\s*/g,"").split(",");for(y=0;y<A.fxs.length;y++){var z=A.fxs[y];v=u[z];if(!v||!u.hasOwnProperty(z)||!k.isFunction(v)){g("discarding unknown transition: ",z);A.fxs.splice(y,1);y--;}}if(!A.fxs.length){g("No valid transitions named; slideshow terminating.");return false;}}else{if(A.fx=="all"){A.multiFx=true;A.fxs=[];for(p in u){v=u[p];if(u.hasOwnProperty(p)&&k.isFunction(v)){A.fxs.push(p);}}}}if(A.multiFx&&A.randomizeEffects){var x=Math.floor(Math.random()*20)+30;for(y=0;y<x;y++){var t=Math.floor(Math.random()*A.fxs.length);A.fxs.push(A.fxs.splice(t,1)[0]);}a("randomized fx sequence: ",A.fxs);}return true;}function l(u,t){u.addSlide=function(x,y){var v=k(x),z=v[0];if(!u.autostopCount){u.countdown++;}t[y?"unshift":"push"](z);if(u.els){u.els[y?"unshift":"push"](z);}u.slideCount=t.length;v.css("position","absolute");v[y?"prependTo":"appendTo"](u.$cont);if(y){u.currSlide++;u.nextSlide++;}if(!k.support.opacity&&u.cleartype&&!u.cleartypeNoBg){h(v);}if(u.fit&&u.width){v.width(u.width);}if(u.fit&&u.height&&u.height!="auto"){$slides.height(u.height);}z.cycleH=(u.fit&&u.height)?u.height:v.height();z.cycleW=(u.fit&&u.width)?u.width:v.width();v.css(u.cssBefore);if(u.pager||u.pagerAnchorBuilder){k.fn.cycle.createPagerAnchor(t.length-1,z,k(u.pager),t,u);}if(k.isFunction(u.onAddSlide)){u.onAddSlide(v);}else{v.hide();}};}k.fn.cycle.resetState=function(u,t){t=t||u.fx;u.before=[];u.after=[];u.cssBefore=k.extend({},u.original.cssBefore);u.cssAfter=k.extend({},u.original.cssAfter);u.animIn=k.extend({},u.original.animIn);u.animOut=k.extend({},u.original.animOut);u.fxFn=null;k.each(u.original.before,function(){u.before.push(this);});k.each(u.original.after,function(){u.after.push(this);});var v=k.fn.cycle.transitions[t];if(k.isFunction(v)){v(u.$cont,k(u.elements),u);}};function f(B,t,A,D){if(A&&t.busy&&t.manualTrump){a("manualTrump in go(), stopping active transition");k(B).stop(true,true);t.busy=false;}if(t.busy){a("transition active, ignoring new tx request");return;}var y=t.$cont[0],F=B[t.currSlide],E=B[t.nextSlide];if(y.cycleStop!=t.stopCount||y.cycleTimeout===0&&!A){return;}if(!A&&!y.cyclePause&&!t.bounce&&((t.autostop&&(--t.countdown<=0))||(t.nowrap&&!t.random&&t.nextSlide<t.currSlide))){if(t.end){t.end(t);}return;}var C=false;if((A||!y.cyclePause)&&(t.nextSlide!=t.currSlide)){C=true;var z=t.fx;F.cycleH=F.cycleH||k(F).height();F.cycleW=F.cycleW||k(F).width();E.cycleH=E.cycleH||k(E).height();E.cycleW=E.cycleW||k(E).width();if(t.multiFx){if(t.lastFx==undefined||++t.lastFx>=t.fxs.length){t.lastFx=0;}z=t.fxs[t.lastFx];t.currFx=z;}if(t.oneTimeFx){z=t.oneTimeFx;t.oneTimeFx=null;}k.fn.cycle.resetState(t,z);if(t.before.length){k.each(t.before,function(G,H){if(y.cycleStop!=t.stopCount){return;}H.apply(E,[F,E,t,D]);});}var v=function(){k.each(t.after,function(G,H){if(y.cycleStop!=t.stopCount){return;}H.apply(E,[F,E,t,D]);});};a("tx firing; currSlide: "+t.currSlide+"; nextSlide: "+t.nextSlide);t.busy=1;if(t.fxFn){t.fxFn(F,E,t,v,D,A&&t.fastOnEvent);}else{if(k.isFunction(k.fn.cycle[t.fx])){k.fn.cycle[t.fx](F,E,t,v,D,A&&t.fastOnEvent);}else{k.fn.cycle.custom(F,E,t,v,D,A&&t.fastOnEvent);}}}if(C||t.nextSlide==t.currSlide){t.lastSlide=t.currSlide;if(t.random){t.currSlide=t.nextSlide;if(++t.randomIndex==B.length){t.randomIndex=0;}t.nextSlide=t.randomMap[t.randomIndex];if(t.nextSlide==t.currSlide){t.nextSlide=(t.currSlide==t.slideCount-1)?0:t.currSlide+1;}}else{if(t.backwards){var x=(t.nextSlide-1)<0;if(x&&t.bounce){t.backwards=!t.backwards;t.nextSlide=1;t.currSlide=0;}else{t.nextSlide=x?(B.length-1):t.nextSlide-1;t.currSlide=x?0:t.nextSlide+1;}}else{var x=(t.nextSlide+1)==B.length;if(x&&t.bounce){t.backwards=!t.backwards;t.nextSlide=B.length-2;t.currSlide=B.length-1;}else{t.nextSlide=x?0:t.nextSlide+1;t.currSlide=x?B.length-1:t.nextSlide-1;}}}}if(C&&t.pager){t.updateActivePagerLink(t.pager,t.currSlide,t.activePagerClass);
}var u=0;if(t.timeout&&!t.continuous){u=j(B[t.currSlide],B[t.nextSlide],t,D);}else{if(t.continuous&&y.cyclePause){u=10;}}if(u>0){y.cycleTimeout=setTimeout(function(){f(B,t,0,(!t.rev&&!t.backwards));},u);}}k.fn.cycle.updateActivePagerLink=function(t,v,u){k(t).each(function(){k(this).children().removeClass(u).eq(v).addClass(u);});};function j(z,x,y,v){if(y.timeoutFn){var u=y.timeoutFn.call(z,z,x,y,v);while((u-y.speed)<250){u+=y.speed;}a("calculated timeout: "+u+"; speed: "+y.speed);if(u!==false){return u;}}return y.timeout;}k.fn.cycle.next=function(t){r(t,t.rev?-1:1);};k.fn.cycle.prev=function(t){r(t,t.rev?1:-1);};function r(v,z){var u=v.elements;var y=v.$cont[0],x=y.cycleTimeout;if(x){clearTimeout(x);y.cycleTimeout=0;}if(v.random&&z<0){v.randomIndex--;if(--v.randomIndex==-2){v.randomIndex=u.length-2;}else{if(v.randomIndex==-1){v.randomIndex=u.length-1;}}v.nextSlide=v.randomMap[v.randomIndex];}else{if(v.random){v.nextSlide=v.randomMap[v.randomIndex];}else{v.nextSlide=v.currSlide+z;if(v.nextSlide<0){if(v.nowrap){return false;}v.nextSlide=u.length-1;}else{if(v.nextSlide>=u.length){if(v.nowrap){return false;}v.nextSlide=0;}}}}var t=v.onPrevNextEvent||v.prevNextClick;if(k.isFunction(t)){t(z>0,v.nextSlide,u[v.nextSlide]);}f(u,v,1,z>=0);return false;}function e(u,v){var t=k(v.pager);k.each(u,function(x,y){k.fn.cycle.createPagerAnchor(x,y,t,u,v);});v.updateActivePagerLink(v.pager,v.startingSlide,v.activePagerClass);}k.fn.cycle.createPagerAnchor=function(y,z,v,x,A){var u;if(k.isFunction(A.pagerAnchorBuilder)){u=A.pagerAnchorBuilder(y,z);a("pagerAnchorBuilder("+y+", el) returned: "+u);}else{u='<a href="#">'+(y+1)+"</a>";}if(!u){return;}var B=k(u);if(B.parents("body").length===0){var t=[];if(v.length>1){v.each(function(){var C=B.clone(true);k(this).append(C);t.push(C[0]);});B=k(t);}else{B.appendTo(v);}}A.pagerAnchors=A.pagerAnchors||[];A.pagerAnchors.push(B);B.bind(A.pagerEvent,function(F){F.preventDefault();A.nextSlide=y;var E=A.$cont[0],D=E.cycleTimeout;if(D){clearTimeout(D);E.cycleTimeout=0;}var C=A.onPagerEvent||A.pagerClick;if(k.isFunction(C)){C(A.nextSlide,x[A.nextSlide]);}f(x,A,1,A.currSlide<y);});if(!/^click/.test(A.pagerEvent)&&!A.allowPagerClickBubble){B.bind("click.cycle",function(){return false;});}if(A.pauseOnPagerHover){B.hover(function(){A.$cont[0].cyclePause++;},function(){A.$cont[0].cyclePause--;});}};k.fn.cycle.hopsFromLast=function(x,v){var u,t=x.lastSlide,y=x.currSlide;if(v){u=y>t?y-t:x.slideCount-t;}else{u=y<t?t-y:t+x.slideCount-y;}return u;};function h(v){a("applying clearType background-color hack");function u(x){x=parseInt(x).toString(16);return x.length<2?"0"+x:x;}function t(z){for(;z&&z.nodeName.toLowerCase()!="html";z=z.parentNode){var x=k.css(z,"background-color");if(x.indexOf("rgb")>=0){var y=x.match(/\d+/g);return"#"+u(y[0])+u(y[1])+u(y[2]);}if(x&&x!="transparent"){return x;}}return"#ffffff";}v.each(function(){k(this).css("background-color",t(this));});}k.fn.cycle.commonReset=function(z,x,y,u,v,t){k(y.elements).not(z).hide();y.cssBefore.opacity=1;y.cssBefore.display="block";if(u!==false&&x.cycleW>0){y.cssBefore.width=x.cycleW;}if(v!==false&&x.cycleH>0){y.cssBefore.height=x.cycleH;}y.cssAfter=y.cssAfter||{};y.cssAfter.display="none";k(z).css("zIndex",y.slideCount+(t===true?1:0));k(x).css("zIndex",y.slideCount+(t===true?0:1));};k.fn.cycle.custom=function(G,A,t,x,z,u){var F=k(G),B=k(A);var v=t.speedIn,E=t.speedOut,y=t.easeIn,D=t.easeOut;B.css(t.cssBefore);if(u){if(typeof u=="number"){v=E=u;}else{v=E=1;}y=D=null;}var C=function(){B.animate(t.animIn,v,y,x);};F.animate(t.animOut,E,D,function(){if(t.cssAfter){F.css(t.cssAfter);}if(!t.sync){C();}});if(t.sync){C();}};k.fn.cycle.transitions={fade:function(u,v,t){v.not(":eq("+t.currSlide+")").css("opacity",0);t.before.push(function(z,x,y){k.fn.cycle.commonReset(z,x,y);y.cssBefore.opacity=0;});t.animIn={opacity:1};t.animOut={opacity:0};t.cssBefore={top:0,left:0};}};k.fn.cycle.ver=function(){return n;};k.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!k.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);(function(a){a.fn.cycle.transitions.scrollHorz=function(c,e,b){c.css("overflow","hidden").width();b.before.push(function(j,g,h,f){a.fn.cycle.commonReset(j,g,h);h.cssBefore.left=f?(g.cycleW-1):(1-g.cycleW);h.animOut.left=f?-j.cycleW:j.cycleW;});
b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0};};})(jQuery);jQuery.cookie=function(e,f,b){if(arguments.length>1&&(f===null||typeof f!=="object")){b=jQuery.extend({},b);if(f===null){b.expires=-1;}if(typeof b.expires==="number"){var h=b.expires,c=b.expires=new Date();c.setDate(c.getDate()+h);}return(document.cookie=[encodeURIComponent(e),"=",b.raw?String(f):encodeURIComponent(String(f)),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""));}b=f||{};var a,g=b.raw?function(j){return j;}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?g(a[1]):null;};(function(n){function f(a){a&&a.printPage?a.printPage():setTimeout(function(){f(a);},50);}function e(a){a=c(a);c(":checked",a).each(function(){this.setAttribute("checked","checked");});c("input[type='text']",a).each(function(){this.setAttribute("value",c(this).val());});c("select",a).each(function(){var g=c(this);c("option",g).each(function(){g.val()==c(this).val()&&this.setAttribute("selected","selected");});});c("textarea",a).each(function(){var g=c(this).attr("value");if(c.browser.b&&this.firstChild){this.firstChild.textContent=g;}else{this.innerHTML=g;}});return c("<div></div>").append(a.clone()).html();}function b(m,a){var g=c(m);m=e(m);var l=[];l.push("<html><head><title>"+a.pageTitle+"</title>");if(a.overrideElementCSS){if(a.overrideElementCSS.length>0){for(var j=0;j<a.overrideElementCSS.length;j++){var k=a.overrideElementCSS[j];typeof k=="string"?l.push('<link type="text/css" rel="stylesheet" href="'+k+'" >'):l.push('<link type="text/css" rel="stylesheet" href="'+k.href+'" media="'+k.media+'" >');}}}else{c("link",h).filter(function(){return c(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){l.push('<link type="text/css" rel="stylesheet" href="'+c(this).attr("href")+'" media="'+c(this).attr("media")+'" >');});}l.push('<base href="'+(n.location.protocol+"//"+n.location.hostname+(n.location.port?":"+n.location.port:"")+n.location.pathname)+'" />');l.push('</head><body style="'+a.printBodyOptions.styleToAdd+'" class="'+a.printBodyOptions.classNameToAdd+'">');l.push('<div class="'+g.attr("class")+'">'+m+"</div>");l.push('<script type="text/javascript">function printPage(){focus();print();'+(!c.browser.opera&&!a.leaveOpen&&a.printMode.toLowerCase()=="popup"?"close();":"")+"}<\/script>");l.push("</body></html>");return l.join("");}var h=n.document,c=n.jQuery;c.fn.printElement=function(g){var a=c.extend({},c.fn.printElement.defaults,g);if(a.printMode=="iframe"){if(c.browser.opera||/chrome/.test(navigator.userAgent.toLowerCase())){a.printMode="popup";}}c("[id^='printElement_']").remove();return this.each(function(){var j=c.a?c.extend({},a,c(this).data()):a,o=c(this);o=b(o,j);var l=null,m=null;if(j.printMode.toLowerCase()=="popup"){l=n.open("about:blank","printElementWindow","width=650,height=440,scrollbars=yes");m=l.document;}else{l="printElement_"+Math.round(Math.random()*99999).toString();var k=h.createElement("IFRAME");c(k).attr({style:j.iframeElementOptions.styleToAdd,id:l,className:j.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:"no",src:"about:blank"});h.body.appendChild(k);m=k.contentWindow||k.contentDocument;if(m.document){m=m.document;}k=h.frames?h.frames[l]:h.getElementById(l);l=k.contentWindow||k;}focus();m.open();m.write(o);m.close();f(l);});};c.fn.printElement.defaults={printMode:"iframe",pageTitle:"",overrideElementCSS:null,printBodyOptions:{styleToAdd:"padding:10px;margin:10px;",classNameToAdd:""},leaveOpen:false,iframeElementOptions:{styleToAdd:"border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;",classNameToAdd:""}};c.fn.printElement.cssElement={href:"",media:""};})(window);(function(a){a.alerts={verticalOffset:-75,horizontalOffset:0,repositionOnResize:true,overlayOpacity:0.01,overlayColor:"#FFF",draggable:true,okButton:"&nbsp;OK&nbsp;",cancelButton:"&nbsp;Cancel&nbsp;",dialogClass:null,alert:function(b,c,e){if(c==null){c="Alert";}a.alerts._show(c,b,null,"alert",function(f){if(e){e(f);}});},confirm:function(b,c,e){if(c==null){c="Confirm";}a.alerts._show(c,b,null,"confirm",function(f){if(e){e(f);}});},prompt:function(b,c,e,f){if(e==null){e="Prompt";}a.alerts._show(e,b,c,"prompt",function(g){if(f){f(g);}});},_show:function(h,g,c,b,k){a.alerts._hide();a.alerts._overlay("show");a("BODY").append('<div id="popup_container"><h1 id="popup_title"></h1><div id="popup_content"><div id="popup_message"></div></div></div>');if(a.alerts.dialogClass){a("#popup_container").addClass(a.alerts.dialogClass);}var j=(a.browser.msie&&parseInt(a.browser.version)<=6)?"absolute":"fixed";a("#popup_container").css({position:j,zIndex:99999,padding:0,margin:0});a("#popup_title").text(h);a("#popup_content").addClass(b);a("#popup_message").text(g);a("#popup_message").html(a("#popup_message").text().replace(/\n/g,"<br />"));a("#popup_container").css({minWidth:a("#popup_container").outerWidth(),maxWidth:a("#popup_container").outerWidth()});
a.alerts._reposition();a.alerts._maintainPosition(true);switch(b){case"alert":a("#popup_message").after('<div id="popup_panel"><input type="button" value="'+a.alerts.okButton+'" id="popup_ok" /></div>');a("#popup_ok").click(function(){a.alerts._hide();k(true);});a("#popup_ok").focus().keypress(function(l){if(l.keyCode==13||l.keyCode==27){a("#popup_ok").trigger("click");}});break;case"confirm":a("#popup_message").after('<div id="popup_panel"><input type="button" value="'+a.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+a.alerts.cancelButton+'" id="popup_cancel" /></div>');a("#popup_ok").click(function(){a.alerts._hide();if(k){k(true);}});a("#popup_cancel").click(function(){a.alerts._hide();if(k){k(false);}});a("#popup_ok").focus();a("#popup_ok, #popup_cancel").keypress(function(l){if(l.keyCode==13){a("#popup_ok").trigger("click");}if(l.keyCode==27){a("#popup_cancel").trigger("click");}});break;case"prompt":a("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="'+a.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+a.alerts.cancelButton+'" id="popup_cancel" /></div>');a("#popup_prompt").width(a("#popup_message").width());a("#popup_ok").click(function(){var e=a("#popup_prompt").val();a.alerts._hide();if(k){k(e);}});a("#popup_cancel").click(function(){a.alerts._hide();if(k){k(null);}});a("#popup_prompt, #popup_ok, #popup_cancel").keypress(function(l){if(l.keyCode==13){a("#popup_ok").trigger("click");}if(l.keyCode==27){a("#popup_cancel").trigger("click");}});if(c){a("#popup_prompt").val(c);}a("#popup_prompt").focus().select();break;}if(a.alerts.draggable){try{a("#popup_container").draggable({handle:a("#popup_title")});a("#popup_title").css({cursor:"move"});}catch(f){}}},_hide:function(){a("#popup_container").remove();a.alerts._overlay("hide");a.alerts._maintainPosition(false);},_overlay:function(b){switch(b){case"show":a.alerts._overlay("hide");a("BODY").append('<div id="popup_overlay"></div>');a("#popup_overlay").css({position:"absolute",zIndex:99998,top:"0px",left:"0px",width:"100%",height:a(document).height(),background:a.alerts.overlayColor,opacity:a.alerts.overlayOpacity});break;case"hide":a("#popup_overlay").remove();break;}},_reposition:function(){var c=((a(window).height()/2)-(a("#popup_container").outerHeight()/2))+a.alerts.verticalOffset;var b=((a(window).width()/2)-(a("#popup_container").outerWidth()/2))+a.alerts.horizontalOffset;if(c<0){c=0;}if(b<0){b=0;}if(a.browser.msie&&parseInt(a.browser.version)<=6){c=c+a(window).scrollTop();}a("#popup_container").css({top:c+"px",left:b+"px"});a("#popup_overlay").height(a(document).height());},_maintainPosition:function(b){if(a.alerts.repositionOnResize){switch(b){case true:a(window).bind("resize",a.alerts._reposition);break;case false:a(window).unbind("resize",a.alerts._reposition);break;}}}};jAlert=function(b,c,e){a.alerts.alert(b,c,e);};jConfirm=function(b,c,e){a.alerts.confirm(b,c,e);};jPrompt=function(b,c,e,f){a.alerts.prompt(b,c,e,f);};})(jQuery);function openVieLocaleTicketnet(a){if((null!=a)&&(a!="")){window.open(a,"ELeclerc","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=959, height=600");}}function toHex(a){if(a==null){return"00";}a=parseInt(a);if((a==0)||isNaN(a)){return"00";}a=Math.max(0,a);a=Math.min(a,255);a=Math.round(a);return"0123456789ABCDEF".charAt((a-a%16)/16)+"0123456789ABCDEF".charAt(a%16);}function openPopin(idDiv,largeur,hauteur,callback,isPopinPAF){if(!hauteur){$(idDiv).css("width",largeur);hauteur=$(idDiv).height();}$("body").append('<div id="shadow"></div><div id="popin" class="popin"></div>');$(idDiv).replaceWith("<div id='popinBack'></div>").appendTo("#popin");calculEmplacementPopin();$("#popin").css({display:"block",width:largeur,height:hauteur,top:haut,left:gauche});try{eval("afterOpenPopin_"+$(idDiv).attr("id")+"();");}catch(e){}$("#popin .close, #popin .btnAnnul").click(function(){$("#popinBack").replaceWith($(idDiv));$("#shadow, #popin").remove();try{eval("afterClosePopin_"+$(idDiv).attr("id")+"();");}catch(e){if(callback){callback();}}});$(window).resize(function(){calculEmplacementPopin();$("#popin").css({top:haut,left:gauche});});function calculEmplacementPopin(){if($(window).height()<hauteur){haut=10+$(window).scrollTop();}else{haut=($(window).height()-hauteur)/2+$(window).scrollTop();}if($(window).width()<largeur){gauche=10+$(window).scrollLeft();}else{gauche=($(window).width()-largeur)/2+$(window).scrollLeft();}}var flashSize={width:1020,height:697};$(window).resize(function(){if(isPopinPAF){calculEmplacementPopinPAF();}else{calculEmplacementPopin();$("#popin").css({top:haut,left:gauche});}});function calculEmplacementPopinPAF(){if(jQuery.browser.opera){return false;}var currentWidth=$(window).width()-20;var currentHeight=$(window).height()-57;var hauteurBarre=37;if((flashSize.width>=currentWidth)||(flashSize.height>=currentHeight)){var ratio=(flashSize.width/flashSize.height);
var haut=($(window).height()-(currentWidth/ratio+hauteurBarre))/2+$(window).scrollTop();$("#popin, #iframePopinPAF").width(currentWidth);$("#popin").height((currentWidth/ratio)+hauteurBarre).css({top:haut,left:10+$(window).scrollLeft()});$("#iframePopinPAF").height((currentWidth/ratio));if($("#popin").height()>currentHeight){var ratio=(flashSize.height/flashSize.width);var gauche=($(window).width()-(currentHeight/ratio))/2+$(window).scrollLeft();$("#popin").height(currentHeight+hauteurBarre).css({top:10+$(window).scrollTop(),left:gauche});$("#iframePopinPAF").height(currentHeight);$("#popin, #iframePopinPAF").width((currentHeight/ratio));}}else{$("#popin, #iframePopinPAF").width(flashSize.width);$("#popin").height(flashSize.height+hauteurBarre);$("#iframePopinPAF").height(flashSize.height);if($(window).height()<hauteur){haut=10+$(window).scrollTop();}else{haut=($(window).height()-hauteur)/2+$(window).scrollTop();}if($(window).width()<largeur){gauche=10+$(window).scrollLeft();}else{gauche=($(window).width()-largeur)/2+$(window).scrollLeft();}$("#popin").css({top:haut,left:gauche});}}}function openPopinAlerteImg(j,f,a,c){$(j+" .popinImg").find("img").css({display:"none"});var g=$(c).parent("div").find("img");for(var b=0;b<g.length;b++){if(g[b].style.display=="block"){var e=g[b].className;var k=/1/;var h=/2/;if(k.test(e)){$(j+" .popinImg .produit_big1").css({display:"inline"});}else{if(h.test(e)){$(j+" .popinImg .produit_big2").css({display:"inline"});}}}}openPopin(j,f,a);}function doAfterCloseTab(){}function impression(a){$(a).printElement({overrideElementCSS:["css/styles.css",{href:"css/print.css",media:"all"}]});}function raz_gecko_form_autocompletion_champs_carte(b,c){var a=b.val();if(a.search("@")!=-1){b.val("");c.val("");}}function raz_gecko_form_autocompletion_champs_email(b,c){var a=b.val();if(a.search("@")==-1){b.val("");c.val("");}}function ouvertureAutomatiqueInterstitielImage(){setTimeout(function(){$(".top_banner").slideUp("slow");$("#bt_demo").removeClass("open");},3000);$(".top_banner").show();}function initBarreOffre(){if($("#baro").length){Wu_ul=81*$("#lu ul li").length;$("#lu ul").css("width",Wu_ul);OLu_ul=$("#lu").offset().left;if($("#lu ul>li").length>10){$(".scroll_offre").css("visibility","visible");zs=Math.round($("#zone_scroll").width()-(($("#lu>ul").width()-$("#lu").width())));if(zs<0){zs=0;}$("#drag>div").css("width",zs);$("#drag").css("width",34+zs);var a=($("#lu>ul").width()-$("#lu").width())/($("#zone_scroll").width()-$("#drag").width()-20);$("#scroll_left").click(function(){durat=Math.abs(4.5*($("#lu ul").offset().left-OLu_ul));durat=1000;$("#lu").scrollTo("-=405px",durat,{queue:false,axis:"x"});new_left=$("#drag").position().left-(405/a);if(new_left<7){new_left=7;}$("#drag").animate({left:new_left},{queue:false,duration:durat});});$("#scroll_right").click(function(){durat=Math.abs(4.5*($("#lu ul").offset().left-OLu_ul));durat=1000;$("#lu").scrollTo("+=405px",durat,{queue:false,axis:"x"});new_left=$("#drag").position().left+(405/a);if(new_left>(768-$("#drag").width())){new_left=(760-$("#drag").width());}$("#drag").animate({left:new_left},{queue:false,duration:durat});});$("#drag").bind("drag",function(b){left_courant=(b.offsetX-$("#zone_scroll").offset().left);if((left_courant>=3)&&(left_courant<=(765-$(this).width()))){$(this).css({left:(b.offsetX-$("#zone_scroll").offset().left)});Uscroll=(b.offsetX-$("#zone_scroll").offset().left)*a;$("#lu").stop().scrollTo(Uscroll,{queue:false,axis:"x"});}}).bind("dragend",function(b){if(left_courant*a<=80){$(this).css({left:7});$(".lu").scrollTo(0,{queue:false,axis:"x"});}else{if(left_courant*a>(760-$(this).width())){$(this).css({left:(760-$(this).width())});mod=Math.abs(Math.round(($("#lu>ul").offset().left-$("#lu").offset().left)))+81;$("#lu").scrollTo(mod,200,{queue:false,axis:"x"});}else{mod=Math.abs(Math.round(($("#lu>ul").offset().left-$("#lu").offset().left)/81)*81);$("#lu").scrollTo(mod,200,{queue:false,axis:"x"});}}});}else{$(".scroll_offre").css("visibility","hidden");}}}$(document).ready(function(){if($("#bt_demo").length){$("#bt_demo").toggle(function(){$(".top_banner").slideDown("slow");$(this).addClass("open");},function(){$(".top_banner").slideUp("slow");$(this).removeClass("open");});}initBarreOffre();if($("#historique").length){var f=$("#historique").find("li").length;$("#historique").serialScroll({target:".mask",items:"li",prev:"div.prev",next:"div.next",axis:"x",duration:700,force:true,start:(f>2?f-3:0),cycle:false,lazy:true,exclude:2,constant:true,onBefore:function(B,A,z,D,C){$prev=$("#historique .prev");$next=$("#historique .next");if(C==0){$prev.addClass("hide");}else{$prev.removeClass("hide");}if(C==D.length-3){$next.addClass("hide");}else{$next.removeClass("hide");}}}).find(".next").addClass("hide");if(f<4){$("#historique").serialScroll().find(".next").addClass("hide");$("#historique").serialScroll().find(".prev").addClass("hide");}$("#historique .close").click(function(){$("#historique .mask").trigger("prev");$(this).parents("li").remove();
if($("#historique li").length<4){$("#historique .prev, #historique .next").addClass("hide");}doAfterCloseTab();});$("#historique .univers").click(function(){$("#historique li").removeClass("current");$(this).parents("li").addClass("current");});}if($("#lu").length){$("#lu li").mouseover(function(){var z=$(this).find("a").attr("title");z=z.replace(/ /g,"");z=z.toLowerCase();$("#promo .banner").css("display","none");$("#promo ."+z).css("display","block");});}if($(".dossier h5, .swf16").length){$(".dossier h5, .swf16").each(function(A){titre=$(this).html();bg=$(this).css("color");if(bg.charAt(0)=="#"){bg=bg.substring(1,(bg.length));}else{var B=new RegExp("[rgb(, )]+","g");var z=bg.split(B);bg=toHex(z[1])+toHex(z[2])+toHex(z[3]);}$(this).html('<object type="application/x-shockwave-flash" data="'+pathTitreFlash+'dossier.swf" width="300" height="36"><param name="movie" value="'+pathTitreFlash+'dossier.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="texte='+titre+"&couleurfond="+bg+'" />'+titre+"</object>");});}if($(".swf16-2L").length){$(".swf16-2L").each(function(A){texte1=$(this).find("span:eq(0)").html();texte2=$(this).find("span:eq(1)").html();couleurfondtexte=$(this).css("color");couleurTexte="FFFFFF";couleurfond="FFFFFF";if(couleurfondtexte.charAt(0)=="#"){couleurfondtexte=couleurfondtexte.substring(1,(couleurfondtexte.length));}else{var B=new RegExp("[rgb(, )]+","g");var z=couleurfondtexte.split(B);couleurfondtexte=toHex(z[1])+toHex(z[2])+toHex(z[3]);}$(this).html('<object type="application/x-shockwave-flash" data="'+pathTitreFlash+'titrearticle2L.swf" width="150" height="50"><param name="movie" value="'+pathTitreFlash+'titrearticle2L.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="texte1='+texte1+"&texte2="+texte2+"&couleurtexte="+couleurTexte+"&couleurfondtexte="+couleurfondtexte+"&couleurfond="+couleurfond+'" />'+texte1+" "+texte2+"</object>");});}if($(".swfarticle").length){$(".swfarticle").each(function(A){titre=$(this).html();bg=$(this).css("color");if(bg.charAt(0)=="#"){bg=bg.substring(1,(bg.length));}else{var B=new RegExp("[rgb(, )]+","g");var z=bg.split(B);bg=toHex(z[1])+toHex(z[2])+toHex(z[3]);}$(this).html('<object type="application/x-shockwave-flash" data="'+pathTitreFlash+'article.swf" width="705" height="51"><param name="movie" value="'+pathTitreFlash+'article.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="texte='+titre+"&couleurfond="+bg+'" />'+titre+"</object>");});}if($(".magasinJS").length){$(".magasinJS .thumb img").hover(function(){$this=$(this);$(this).parents(".magasinJS").find("div:eq(0) img").attr("src",$(this).attr("src"));});}if($(".slide").length){$(".slide").each(function(B){var C=$(this);var A=C.find("li").length;var z=Math.round(C.find(".mask").width()/C.find("li").width());if(A>z){C.serialScroll({target:".mask",event:"click",items:"li",prev:"a.left",next:"a.right",axis:"x",duration:700,force:true,start:0,cycle:false,lazy:false,exclude:z-1,step:z,constant:true,onBefore:function(F,E,D,H,G){$prev=D.parents(".slide").find("a.left").removeClass("hide");$next=D.parents(".slide").find("a.right").removeClass("hide");if(G==0){$prev.addClass("hide");}else{if(G==H.length-z){$next.addClass("hide");}}}}).find(".left").addClass("hide");}else{C.find(".left,.right").addClass("hide");}});}if($(".pushsCarousel").length){$(".pushsCarousel").each(function(C){var B=$(this);var A=B.find("li").length;var z=Math.round(B.find(".pushsCarouselInner").width()/B.find("li").width());if(A>z){B.serialScroll({target:".pushsCarouselInner",event:"click",items:"li",prev:"a.prev",next:"a.next",axis:"x",duration:700,force:true,start:0,cycle:false,lazy:false,exclude:z-1,constant:true,onBefore:function(F,E,D,H,G){$prev=D.parents(".pushsCarousel").children(".prev").removeClass("hide");$next=D.parents(".pushsCarousel").children(".next").removeClass("hide");if(G==0){$prev.addClass("hide");}else{if(G==H.length-z){$next.addClass("hide");}}}}).find(".prev").addClass("hide");}else{B.find(".prev,.next").addClass("hide");}});}if($(".cycleScrollHorz").length){$(".cycleScrollHorz").each(function(C){var B=$(this);$prev=B.parent().parent().find(".btPrevious");$next=B.parent().parent().find(".btNext");var z=B.find("li").length;if(z>1){if(B.hasClass("withLimit")){$(this).cycle({fx:"scrollHorz",prev:$prev,next:$next,timeout:0,speed:300,after:A});}else{$(this).cycle({fx:"scrollHorz",prev:$prev,next:$next,timeout:6000,speed:300});}}else{$prev.css("display","none");$next.css("display","none");}function A(G,E,F){var D=F.currSlide;B.parent().parent().find(".btPrevious")[D==0?"hide":"show"]();B.parent().parent().find(".btNext")[D==F.slideCount-1?"hide":"show"]();}});}if($(".swapValue").length){swapValues=[];$(".swapValue").each(function(z){swapValues[z]=$(this).val();$(this).focus(function(){if($(this).val()==swapValues[z]){$(this).val("");}}).blur(function(){if($.trim($(this).val())==""){$(this).val(swapValues[z]);}});});}if($("#menuMesRayons").length){$("#menuMesRayons>ul>li").click(function(){if($(this).is(".open")){$(this).removeClass("open").children(".smenu").css("display","none");
}else{$(this).addClass("open").children(".smenu").css("display","block");}}).mouseleave(function(){$(this).removeClass("open").children(".smenu").css("display","none");});$("#menuMesRayons ul li:nth-child(odd)").addClass("bg_grey");}if($(".faq").length){$(".faq h3 a").click(function(){$(this).parents("ul").find(".faq_content").css("display","none").end().find("a").removeClass("open");$(this).addClass("open").parent().next(".faq_content").css("display","block");});$(".faq dt a").click(function(){$(this).parents("ul").find("dd").css("display","none");$(this).parent().next().css("display","block");});}if($("#msg_ouverture_fermeture").length){var b=$("#msg_ouverture_fermeture").find("li"),v=$("#icone_ouverture_fermeture"),e=b.length,t=0;function q(){if(t==e){t=0;}v.attr("class",b.eq(t).attr("class"));b.css("display","none").eq(t).css({width:"0"}).stop().animate({width:"520px"},{queue:false,duration:2000});t++;}intervalID=setInterval(q,4000);q();$("#lienSavoirPlus").click(function(){var z=t;openPopin("#popin_fermeture"+z,400);return false;});}if($("button").length&&$.browser.msie){if(parseInt($.browser.version)==8){$("button").live("mousedown",function(){var A=parseInt($(this).css("background-position-x"));var z=parseInt($(this).css("background-position-y"));$(this).find("span").css({position:"relative",top:"-1px",left:"-1px"});}).live("mouseup",function(){$(this).find("span").css({position:"relative",top:"0",left:"0"});});}else{$("button").live("mousedown",function(){$("span",this).css({position:"relative",left:"0"});});}}if($.browser.msie&&($.browser.version<8)){var x=$("#onglets-univers").find("li.onglet");var l=x.length;x.each(function(z){$(this).css("z-index",l-z);});}if($("#drag_grossesse").length){var g=14;var c=25;var m=39;var h=28;var j=$("#semaine_limite").text();var u=((j-c)*m)+m;var o=g+(j-c)*m;function k(z){var A;$.ajax({url:"/?template=ajaxLoader&name=calendrier_grossesse&numeroSemaine="+z,type:"GET",cache:false,success:function(E){var G="<!--[DEBUT_CLIPPING]-->";var B="<!--[FIN_CLIPPING]-->";var D=E.indexOf(G)+G.length;var C=E.indexOf(B);if(D<G.length){enregistrerErreur("L'appel Ajax pour clipping n'a pas permis de détecter la balise de début pour l'URL /?template=ajaxLoader&name=calendrier_grossesse&numeroSemaine="+z+"<br/>");}if(C<0){enregistrerErreur("L'appel Ajax pour clipping n'a pas permis de détecter la balise de fin pour l'URL /?template=ajaxLoader&name=calendrier_grossesse&numeroSemaine="+z+"<br/>");}if(C>=0&&D>=G.length&&D<C){var F=E.substring(D,C);$("#clipping_calendrier").html(F);}A=$(E).find("#titreBando").val();a(A);}});}function a(B){if(B==undefined){}else{$("#titre_grossesse").html(B);bg=$("#titre_grossesse").css("color");if(bg.charAt(0)=="#"){bg=bg.substring(1,(bg.length));}else{var A=new RegExp("[rgb(, )]+","g");var z=bg.split(A);bg=toHex(z[1])+toHex(z[2])+toHex(z[3]);}$("#titre_grossesse").html('<object type="application/x-shockwave-flash" data="'+pathTitreFlash+'article.swf" width="705" height="51"><param name="movie" value="'+pathTitreFlash+'article.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="texte='+B+"&couleurfond="+bg+'" />'+B+"</object>");}}a($("#titreBando").val());$("#drag_grossesse").bind("drag",function(A){var z=Math.round($("#slider_grossesse").offset().left);var B=A.offsetX-z;if(B<g){B=g;}if(B>u-25){B=u-25;}$(this).css({left:B});}).bind("dragend",function(B){var A=Math.round($("#slider_grossesse").offset().left);var C=B.offsetX-A;var C=Math.round((C-g)/m)*m+g;if(C<g){C=g;}if(C>u-25){C=u-25;}$(this).css({left:C});var z=Math.round(C/m)+c;k(z);});$("#slider_grossesse_limite").css("width",u);$("#drag_grossesse").css("left",o);}if($("#slider-contener").length){var y=0;var s=(($(window).width()-960)/2);var r="960"-s;$(window).resize(function(){s=(($(window).width()-960)/2);r="960"-s;$("#shadowR").css("left",($(window).width())-250);if($(window).width()>1200){$("#shadowL").css("display","block");$("#shadowR").css("display","block");}else{$("#shadowL").css("display","none");$("#shadowR").css("display","none");}if(y>0){$("#slider>div").each(function(){if($(this).attr("class")<y){var z=(y-($(this).attr("class")))*(960-s);$(this).css("margin-left",-z);}});}else{$(".-1").css("margin-left",-r);}$("#sliderThumb>a").click(function(){var z=$(this).position();if(s<0){s=0;}$("#sliderArrow>div").css("left",z.left-s);});});if($(window).width()>1200){$("#shadowL").css("display","block");$("#shadowR").css("display","block");}var n=new Array();$.ajax({type:"GET",url:blo_instit_themes,dataType:"xml",success:function(z){$(z).find("theme").each(function(){n[$(this).attr("nom")]=new Array();n[$(this).attr("nom")]["fondTitre"]=$(this).find("color1").text();n[$(this).attr("nom")]["titre"]=$(this).find("color2").text();n[$(this).attr("nom")]["fondTexte"]=$(this).find("color3").text();n[$(this).attr("nom")]["texte"]=$(this).find("color4").text();n[$(this).attr("nom")]["savoirPlus"]=$(this).find("color5").text();n[$(this).attr("nom")]["firstLigne"]=$(this).find("color6").text();
n[$(this).attr("nom")]["fontEntete"]=$(this).find("color7").text();});$.ajax({type:"GET",url:blo_instit_data,dataType:"xml",success:function(B){var C=0;$(B).find("actu").each(function(){var E=$(this).find("img").text();var J=$(this).find("title").text();var K=$(this).find("texte").text();var L=$(this).find("link").text();var I=$(this).find("plus").text();var F=$(this).find("theme").attr("nom");var H=$(this).find("target").text();if(I.length>15){I=I.substr(0,15);I+="...";}var G=$("<div class='"+C+"' style='color:#"+n[F]["texte"]+"'><img src='"+E+"' width='460px' height='280px' alt=\""+J+"\"/><div><div class='flashSlider'><embed height='80' width='350' flashvars=\"couleurFond="+n[F]["fondTexte"]+"&couleurFondTexte="+n[F]["fondTitre"]+"&couleurTexte="+n[F]["titre"]+"&txtTitre="+J+"\" wmode='transparent' quality='high' src='"+blo_instit_flash+"' type='application/x-shockwave-flash'/></div><p>"+K+"</p><a href='"+L+"' style='color:#"+n[F]["savoirPlus"]+"' class='link_bt' target="+H+">"+I+"</a></div><br class='clear'/></div>").appendTo("#slider");G.css("background-color","#"+n[F]["fondTexte"]);if(J.length>24){titre2=J.substr(0,24);titre2+="...";}else{titre2=J;}if(titre2.indexOf(" ",0)>9){temp=titre2.substr(0,9)+" ";temp+=titre2.substr(9,16);titre2=temp;}var D=$("<a href='javascript:void(0)' id='"+C+"'><span></span><img src='"+E+"' alt=\""+J+"\" width='65px' height='45px'/><span class='titre'>"+titre2+"</span></a>").appendTo("#sliderThumb");D.css("background-color","#"+n[F]["fondTexte"]);D.addClass("slideActive");C++;});$("#sliderThumb>a").css("width",960/C);lastSlide=C-1;afterSlide=C;$("#shadowR").css("left",($(window).width())-250);var A=$(".0").clone().insertAfter("."+lastSlide);A.css("margin-left","0px");A.removeClass("0");A.addClass(""+afterSlide);$("#slider>div").css("opacity","0.5");$(".0").css("opacity","1");$(".0").css("z-index","15");$("#0").toggleClass("slideActive");$("<div class='clear'></div>").appendTo($("#sliderThumb"));$("<div class='clear'></div>").appendTo($("#slider"));$("#sliderArrow>div").css("border-color","transparent transparent "+$(".0").css("background-color"));$("#sliderThumb").css("border-bottom","4px solid "+$("#0").css("background-color"));A=$("."+lastSlide).clone().insertBefore(".0");A.css("margin-left",-r);A.removeClass(""+lastSlide);A.addClass("-1");$("#sliderThumb>a").click(function(){$("#sliderThumb>a").addClass("slideActive");$("#slider>div").css("opacity","0.5");var E=$(this).attr("id");$("."+E).css("opacity","1");$(this).toggleClass("slideActive");jQuery("span:eq(0)",this).css("background-image","none");$("#sliderThumb").css("border-bottom","4px solid "+$(this).css("background-color"));$("#sliderArrow>div").css("border-color","transparent transparent "+$(this).css("background-color"));var D=$(this).position();if(s>0){$("#sliderArrow>div").css("left",D.left-s);}else{$("#sliderArrow>div").css("left",D.left);}$("#slider ."+y).css("z-index","1");$("#slider ."+E).css("z-index","15");if(y<E){$("#slider>div").each(function(){if($(this).attr("class")<E){$(this).animate({"margin-left":"-"+r*(E-$(this).attr("class"))},{queue:false},800);}else{return false;}});}else{$("#slider>div").each(function(){if($(this).attr("class")>=E){$(this).animate({"margin-left":0},{queue:false},800);}else{var F=E-$(this).attr("class");$(this).animate({"margin-left":"-"+r*F},{queue:false},800);}});}y=E;});}});}});}});var strListeErreursSocle="";var listeErreursSocle="";function ajouterErreurSoclePossible(c,l,k,j,h,g,f,e,b,a,n){var m='"'+c+'":{"listeChampsConcernes":[';if(l){m+='"'+l+'"';}if(k){m+=',"'+k+'"';}if(j){m+=',"'+j+'"';}if(h){m+=',"'+h+'"';}if(g){m+=',"'+g+'"';}if(f){m+=',"'+f+'"';}if(e){m+=',"'+e+'"';}if(b){m+=',"'+b+'"';}if(a){m+=',"'+a+'"';}if(n){m+=',"'+n+'"';}m+="]}";if(strListeErreursSocle==""){strListeErreursSocle=m;}else{strListeErreursSocle+=","+m;}listeErreursSocle=$.parseJSON("{"+strListeErreursSocle+"}");}function traiterErreurParDefaut(b,f){var c=null;var e=null;listeErreursSocle=$.parseJSON("{"+strListeErreursSocle+"}");if((b==null)||(b==undefined)){return;}if(b.estMultiple){c=b.exceptions;e=b.identifiants;}else{c=[b];}for(var h=0;h<c.length;h++){var g=listeErreursSocle[c[h].code];if((g!=null)&&(g!=undefined)){var a=g.listeChampsConcernes;if((a!=null)&&(a!=undefined)){for(var k=0;k<a.length;k++){var j="*[name="+a[k]+"]";$.each($(j),function(m){if((e==null)||(e[h]==null)){if((f!=null)&&(f!=undefined)&&(f!=false)){miseEnErreurChampPopin(this,c[h].message);}else{miseEnErreurChamp(this,c[h].message);}}else{var l=$(this).parent().parent().find("input[name=idOracle]");if((l==null)||(l==undefined)||(l.val()==undefined)||(l.val()==null)){l=$(this).parent().parent().parent().find("input[name=idOracle]");}if((l==null)||(l==undefined)||(l.val()==undefined)||(l.val()==null)){miseEnErreurChamp(this,c[h].message);}else{if($(l).val()==e[h]){miseEnErreurChamp(this,c[h].message);}}}});}}}}}function razChampsEnErreur(){$.each($(".champEnErreur"),function(){miseEnNormalChamp(this);});}function razChampsEnErreurPopin(){$.each($(".champEnErreur"),function(){miseEnNormalChampPopin(this);
});}function miseEnErreurChamp(a,b){if($(a).attr("title").indexOf(b)==-1){$(a).addClass("champEnErreur");if(($(a).attr("title")=="")||($(a).attr("title")==undefined)){$(a).attr("title",b);}else{$(a).attr("title",$(a).attr("title")+" / "+b);}}}function miseEnErreurChampPopin(a,b){$(a).addClass("champEnErreur");var c=HTMLStringToString(b);$(a).attr("title",$(a).attr("title")+"\n"+c);$(a).parent().parent().find(".err").html("<span class='champEnErreur'>Il y a eu au moins une erreur lors du traitement !</span>");}function miseEnNormalChamp(a){$(a).removeClass("champEnErreur");$(a).attr("title","");}function miseEnNormalChampPopin(a){$(a).removeClass("champEnErreur");$(a).attr("title","");$("span.champEnErreur").empty();$(a).parent().parent().find(".err").empty();}function SimpleAjaxInvoker(q,k,e,o,a,c,l){var r=this;var b=q;var n="GET";var g=k;var j=l;var h=null;var f=null;m=function m(){$.ajax({url:b,type:n,async:g,cache:j,success:function(s){h=s;r.onSuccess();},error:function(u,s,t){f="Erreur code "+u.status+" : "+u.statusText;r.onError();}});};this.getMsgErreur=function(){return f;};this.getData=function(){return h;};this.query=m;this.onSuccess=e;this.onError=o;return this;}function AjaxInvoker(t,q,v,l,r,h,b,m,a){var s=this;var f=t;var e="POST";var j=q;var g=v;var n=null;var x=b;var u=null;var k=null;o=function o(){if((q!=null)&&(q!=undefined)){if((h!=null)&&h){n=({fluxJSON:q[0][1]});for(var y=1;y<j.length;y++){n[q[y][0]]=q[y][1];}}else{var z="";for(var y=0;y<j.length;y++){z+=q[y][0]+"="+q[y][1]+"&";}z=z.substring(0,z.length-1);n=z;}}};c=function c(){$.ajax({url:f,type:e,data:n,async:g,success:function(y){u=y;k=y.exception;if((k!=null)&&(k!=undefined)&&(k!=false)){if((x!=null)&&(x!=undefined)&&(x!=false)){traiterErreurParDefaut(k,x);}else{traiterErreurParDefaut(k);}s.onError();}else{s.onSuccess();}},error:function(A,y,z){k=z;s.onError();}});};this.getException=function(){return k;};this.getData=function(){return u;};this.query=c;this.onSuccess=l;this.onError=r;o();return this;}var _crossDomainAjaxInvokerEnCours=null;function _retourCrossDomainAjaxInvoker(a){var c=a;if((a!=null)&&(a!=undefined)&&(typeof a!="object")){var c=$.evalJSON(a);}_crossDomainAjaxInvokerEnCours.setData(c);var b=c.exception;if((b!=null)&&(b!=undefined)&&(b!=false)){if((_crossDomainAjaxInvokerEnCours.isPopin()!=null)&&(_crossDomainAjaxInvokerEnCours.isPopin()!=undefined)&&(_crossDomainAjaxInvokerEnCours.isPopin()!=false)){traiterErreurParDefaut(b,_crossDomainAjaxInvokerEnCours.isPopin());}else{traiterErreurParDefaut(b);}_crossDomainAjaxInvokerEnCours.onError();}else{_crossDomainAjaxInvokerEnCours.onSuccess();}}function CrossDomainAjaxInvoker(l,h,b,k,e){var m=this;var a=l;var c=null;var f=e;var g=null;n=function n(){if((h!=null)&&(h!=undefined)){var q="";for(var o=0;o<h.length;o++){q+=h[o][0]+"="+escape(h[o][1])+"&";}q=q.substring(0,q.length-1);c=q;}};j=function j(){if((c!=null)&&(c!=undefined)){a=a+"?"+c;}if($("#requeteCrossDomain")){$("#requeteCrossDomain").remove();}_crossDomainAjaxInvokerEnCours=this;var o=document.createElement("script");o.src=a;o.id="requeteCrossDomain";o.type="text/javascript";o.charset="UTF-8";document.body.appendChild(o);};this.getData=function(){return g;};this.isPopin=function(){return f;};this.setData=function(o){g=o;};this.getException=function(){return g.exception;};this.query=j;this.onSuccess=b;this.onError=k;n();return this;}function convertDateSocleEnDateJS(c){var b=c.substring(0,4);var e=c.substring(5,7);var a=c.substring(8,10);var f=new Date(b+"/"+e+"/"+a);return f;}function videSiNull(a){if((a==null)||(a==undefined)){return"";}else{return a;}}function alert(a,c){try{if(c!=null){jAlert(a,c);}else{jAlert(a);}}catch(b){confirm(a);}}function extraireContenuClipping(m){var g=null;var f="<!--[DEBUT_CLIPPING]-->";var k="<!--[FIN_CLIPPING]-->";var c=m.indexOf(f)+f.length;var b=m.indexOf(k);if(c<f.length){throw"L'extraction de chaîne n'a pas permis de détecter la balise de début ["+f+"]";}if(b<0){throw"L'extraction de chaîne n'a pas permis de détecter la balise de fin ["+k+"]";}if((b>=0)&&(c>=f.length)&&(c<b)){m=m.substring(c,b);}var l="<!--";var h="-->";var c=m.indexOf(l);var b=m.indexOf(h)+h.length;while((b>=0)&&(c>=0)&&(c<b)){var e="";var a="";if(c>0){e=m.substring(0,c-1);}if(b<m.length){a=m.substring(b,m.length);}m=e+a;c=m.indexOf(l);b=m.indexOf(h)+h.length;}g=m;return g;}function enregistrerErreur(a){if($("#tech_msgErreurs").length>0){}else{$('<div id="tech_msgErreurs" style="display:none;visibility:hidden"></div>').appendTo("body");}$("#tech_msgErreurs").append(a);}function getElementByName(e,b){var a=b.toLowerCase();var c=(arguments.length==3)?arguments[2].toLowerCase():null;for(var f=0;f<e.length;f++){if(e[f].name.toLowerCase()==a){if(e[f].value.toLowerCase()==c){return e[f];}else{if(c==null){return e[f];}}}}return null;}function getElementById(c,b){var a=b.toLowerCase();for(var e=0;e<c.length;e++){if(c[e].id.toLowerCase()==a){return c[e];}}return null;}function getParentByNodeName(c,a){var b=c;if(b.nodeName.toLowerCase()==a.toLowerCase()){return b;
}b=b.parentNode;while(b){if(b.nodeName.toLowerCase()==a.toLowerCase()){return b;}b=b.parentNode;}return null;}function getCurrentTable(a){return getParentByNodeName(a,"table");}function getCurrentRow(a){return getParentByNodeName(a,"tr");}function getCurrentCell(a){return getParentByNodeName(a,"td");}function doCreateCustomCells(a){}function doAddRow(e){var b=getCurrentTable(e);var c=document.createElement("tr");var k=getCurrentRow(e);var j=null,l=null;if(k!=null){k.firstChild.childNodes["1"].value="CREA";}j=document.createElement("td");l=document.createElement("input");l.type="hidden";l.name="idOracle";l.value=(-1*Math.floor(Math.random()*1000000));j.appendChild(l);l=document.createElement("input");l.type="hidden";l.name="action";l.value="";j.appendChild(l);l=document.createElement("input");l.type="hidden";l.name="init";j.appendChild(l);c.appendChild(j);var a=doCreateCustomCells();for(var f=0;f<a.length;f++){c.appendChild(a[f]);}j=document.createElement("td");l=document.createElement("input");l.type="button";l.name="btnAjouterLigne";l.className="add_btn";l.onclick=function(){doAddRow(this);};l.value="Ajouter";j.appendChild(l);c.appendChild(j);b.getElementsByTagName("tbody")[0].appendChild(c);if(c.previousSibling){var h=c.previousSibling;j=h.lastChild;while(j.hasChildNodes()){j.removeChild(j.firstChild);}l=document.createElement("input");l.type="button";l.name="btnSupprimerLigne";l.className="del_btn";l.onclick=function(){doDeleteRow(this);};l.value="Supprimer";j.appendChild(l);}var g=c.getElementsByTagName("input");if(getElementByName(g,"dateFermeture")&&getElementByName(g,"dateDebAffFermeture")){$(".dateFermeture").datepicker({showOn:"button",buttonText:"Calendrier",dateFormat:"dd/mm/yy"});$(".dateDebAffFermeture").datepicker({showOn:"button",buttonText:"Calendrier",dateFormat:"dd/mm/yy"});}return c;}function doConfirmDeleteRow(){return true;}function doDeleteRow(g){if(!doConfirmDeleteRow()){return;}var f=getCurrentRow(g);var e=f.childNodes,c=null;for(var b=0;b<e.length;b++){c=e[b];if(c.nodeType==1){break;}}for(var b=0;b<c.children.length;b++){_child=c.children[b];if((_child.nodeName.toLowerCase()=="input")&&(_child.type.toLowerCase()=="hidden")&&(_child.name=="idOracle")){if(_child.value==""){var a=getCurrentTable(g);a.getElementsByTagName("tbody")[0].removeChild(f);break;}}else{if((_child.nodeName.toLowerCase()=="input")&&(_child.type.toLowerCase()=="hidden")&&(_child.name=="action")){_child.value="SUPPR";f.style.display="none";break;}}}}function debug(b){w=window.open();var a="";for(property in b){a=a+"[pObject]."+property+"="+b[property]+"<br>";}w.document.write(a);w.document.close();}function Contexte(f,b,c,e,a){this.codeUniversPhoto=f;this.client=b;this.magasin=c;this.univers=e;this.centrale=a;}function ContexteClient(h,a,b,m,e,c,k,j,g,f,l){this.idClient=h;this.civiliteClient=a;this.nomClient=b;this.prenomClient=m;this.codePannonceau=e;this.nomMagasinRattachement=c;this.estConnecte=k;this.estCarte=j;this.email=g;this.estAbonneNewsletterAlertesPromos=f;this.dateNaissanceEnfantClubBebe=l;this.clubs=new Array();this.addClub=function(o,q){var n=new ClubClient(o,q);this.clubs.push(n);};this.getParamURLKey=function(){return"&crt="+this.estCarte+"&thntf="+this.estConnecte;};}function ClubClient(a,b){this.codeClub=a;this.categorieClub=b;}function ContexteUnivers(c,a,b){this.idUnivers=c;this.codeUnivers=a;this.libelleUnivers=b;}function ContexteMagasin(a,b,c,g,f,e){this.idMagasin=a;this.codePanonceau=b;this.nomUrl=g;this.nom=c;this.delegationCentrale=f;this.codeInsee=e;}function ContexteCentrale(b,a){this.idCentrale=b;this.codePanonceau=a;}function ConfigurationMagasin(a){this.listeConfigUnivers=a;}var cookiesSite={COOKIE_NAME_CLIENT:"clientCourant",COOKIE_OPTIONS_CLIENT:{path:"/",domain:_domainSiteELeclerc,secure:false,expires:365},COOKIE_NAME_MAGASIN:"magasinCourant",COOKIE_OPTIONS_MAGASIN:{path:"/",domain:_domainSiteELeclerc,secure:false},COOKIE_NAME_UNIVERS:"universCourant",COOKIE_OPTIONS_UNIVERS:{path:"/",domain:_domainSiteELeclerc,secure:false},COOKIE_NAME_NAV_UNIVERS:"navigationUnivers",COOKIE_OPTIONS_NAV_UNIVERS:{path:"/",domain:_domainSiteELeclerc,secure:false},COOKIE_NAME_GESTION_CRISE:"gestionCrise",COOKIE_OPTIONS_GESTION_CRISE:{path:"/",domain:_domainSiteELeclerc,secure:false},getClientCourant:function(){var c=$.cookie(this.COOKIE_NAME_CLIENT);if(c==null){c="";}var b=new ClientCookie();if(c!=""){var a=c.split("#");b.civiliteClient=a[1];b.nomClient=unescape(a[2]);b.prenomClient=unescape(a[3]);b.magasinClient=unescape(a[4]);}return b;},saveClientCourant:function(a){this.deleteClientCourant();var b=a.idClient+"#"+a.civiliteClient+"#"+escape(a.nomClient)+"#"+escape(a.prenomClient)+"#"+escape(a.nomMagasinRattachement);$.cookie(this.COOKIE_NAME_CLIENT,b,this.COOKIE_OPTIONS_CLIENT);},deleteClientCourant:function(){$.cookie(this.COOKIE_NAME_CLIENT,null,{path:"/",domain:_domainSiteELeclerc,secure:false,expires:-1});},getMagasinCourant:function(){var a=$.cookie(this.COOKIE_NAME_MAGASIN);if(a==null){a="";}return a;
},saveMagasinCourant:function(a){this.deleteMagasinCourant();$.cookie(this.COOKIE_NAME_MAGASIN,a,this.COOKIE_OPTIONS_MAGASIN);},deleteMagasinCourant:function(){$.cookie(this.COOKIE_NAME_MAGASIN,null,{path:"/",domain:_domainSiteELeclerc,secure:false,expires:-1});},getUniversCourant:function(){var a=$.cookie(this.COOKIE_NAME_UNIVERS);if(a==null){a="";}return a;},saveUniversCourant:function(a){this.deleteUniversCourant();$.cookie(this.COOKIE_NAME_UNIVERS,a,this.COOKIE_OPTIONS_UNIVERS);},deleteUniversCourant:function(){$.cookie(this.COOKIE_NAME_UNIVERS,null,{path:"/",domain:_domainSiteELeclerc,secure:false,expires:-1});},getNavigationUnivers:function(){var a=$.cookie(this.COOKIE_NAME_NAV_UNIVERS);if(a==null){a="";}return a;},saveNavigationUnivers:function(a){this.deleteNavigationUnivers();$.cookie(this.COOKIE_NAME_NAV_UNIVERS,a,this.COOKIE_OPTIONS_NAV_UNIVERS);},deleteNavigationUnivers:function(){$.cookie(this.COOKIE_NAME_NAV_UNIVERS,"",{expires:-1});},getParamGestionCrise:function(){var a=$.cookie(this.COOKIE_NAME_GESTION_CRISE);if(a==null){a="";}return a;},saveParamGestionCrise:function(a){this.deleteParamGestionCrise();$.cookie(this.COOKIE_NAME_GESTION_CRISE,a,this.COOKIE_OPTIONS_GESTION_CRISE);},deleteParamGestionCrise:function(){$.cookie(this.COOKIE_NAME_GESTION_CRISE,null,{path:"/",domain:_domainSiteELeclerc,secure:false,expires:-1});}};(function(){ClientCookie=function(){};ClientCookie.prototype={civiliteClient:null,nomClient:null,prenomClient:null,magasinClient:null};})();var offresPourMiseAJourUniversCourants;var g_miseAjourCookiesUnivers={traiterChangementUrlManuel:function(){if((cookiesSite.getMagasinCourant()!="")&&((g_contexte!=null)&&(g_contexte.magasin!=null)&&(g_contexte.magasin.nomUrl!=cookiesSite.getMagasinCourant()))){this.lireOffreMagasin(g_contexte.magasin.idMagasin);this.refreshCookiesUnivers(offresPourMiseAJourUniversCourants,"magasinHome");}},lireOffreMagasin:function(b){var c=new Array(1);c[0]=new Array(2);c[0][0]="techidMagasin";c[0][1]=b;var a=null;a=new AjaxInvoker(prefixeUrlSocleMag+"offre_lister.action",c,false,this.onSuccessLireOffreMagasin,this.onErrorLireOffreMagasin);a.query();},refreshCookiesUnivers:function(f,b){var c=b;if(f==null){g_ongletsUnivers.razOngletsUnivers();}else{var h=cookiesSite.getUniversCourant();var g=g_ongletsUnivers.getHashMapCookieUnivers();if((g!=null)&&(g.length>0)&&(h!="")){var k=[];var a=false;for(i=0;i<f.length;i++){var e=f[i].univers.code;if((e==h)&&(f[i].techid!=null)){a=true;break;}}$.each(g,function(o,n){for(i=0;i<f.length;i++){var m=f[i].univers.code;if((m==n.clef)&&(f[i].techid!=null)){var l=analyseURL.analyseUnivers(n.url);if(!analyseURL.isUrlUniversConcept&&f[i].estConcept){n.url=analyseURL.changeUrlUniversConceptRayon(n.url,true,m);}else{if(analyseURL.isUrlUniversConcept&&!(f[i].estConcept)){var q=analyseURL.changeUrlUniversConceptRayon(n.url,false,m);n.url=q;}}k.push(n);break;}}});if(k.length>0){g_ongletsUnivers.saveCookieUnivers(k);}else{cookiesSite.deleteNavigationUnivers();}if(a==false){if(k.length>0){cookiesSite.saveUniversCourant(k[0].clef);c=analyseURL.changeUrlUnivers(b,h,k[0].clef);}else{g_ongletsUnivers.supprimeUrlUnivers(h);c="magasinHome";}}}else{if(b!="magasinHome"){analyseURL.analyseUnivers(b);if(analyseURL.isUrlUnivers){codeUrl=analyseURL.codeUnivers;var j=false;for(i=0;i<f.length;i++){var e=f[i].univers.code;if((e==codeUrl)&&(f[i].techid!=null)){j=true;break;}}if(j==false){c="magasinHome";}}}}}return c;},onSuccessLireOffreMagasin:function(){var a=0;var b=this.getData();if(b==null){return;}offresPourMiseAJourUniversCourants=b.offres;},onErrorLireOffreMagasin:function(){var a=this.getException();alert("exception caugth : "+a.code+"/"+a.message);}};function initToolbar(){$tb_lightbox=$("#tb_lightbox"),$toolbar=$("#toolbar"),$toolbarUL=$("#toolbar").children("ul"),$toolbarLI=$("#toolbar").find("li"),$tbWindow=$("#tbWindow"),$window=$("#tbWindow").find(".window"),$tb_rollover=$("#tbWindow").find(".tb_rollover").not("#messageConnecteBox"),$tb_connexion=$("#tb_connexion"),$messageConnecte=$("#messageConnecteBox"),$screenLessThan1024=$("#tb_outter,#hd,#ct,#ft,#sliderThumb");boxOpen=false,$idBox=false,messageEstOuvert=false,isToolbarLog=$toolbar.hasClass("tb_log");positionnerToolbar=function(){var pozT="62px";$toolbarUL.css("top",pozT);$tbWindow.css("top",pozT);$toolbarLI.each(function(i){$this=$(this);if(isToolbarLog){$this.data("IDBox","#"+$this.attr("class")+"Box");}else{$this.data("IDBox","#tb_connexion");}});};positionnerBoxes=function(){$window.each(function(i){$this=$(this);$this.css("left","-"+$this.width()+"px");});};positionnerEtiquettes=function(){$tb_rollover.each(function(i){$this=$(this);var id=$this.attr("id");var classEtiquettes="."+id.split("Box")[0];var top=$("LI"+classEtiquettes).position().top;$this.css("top",top+"px");$this.css("left","-"+$this.width()+"px");});};ouvrirBox=function(){if(messageEstOuvert){$messageConnecte.animate({left:"-250px"},{queue:false,duration:600,easing:"easeOutExpo",complete:function(){$tbWindow.removeClass("messageConnecte");
messageEstOuvert=false;$tbWindow.css("visibility","visible");$tb_lightbox.css("display","block");$idBox.animate({left:0},{queue:false,duration:600,easing:"easeOutExpo"});}});}else{$tbWindow.css("visibility","visible");$tb_lightbox.css("display","block");$idBox.animate({left:0},{queue:false,duration:600,easing:"easeOutExpo"});}boxOpen=true;try{eval("init_"+$idBox.attr("id")+"();");}catch(e){}};fermerBox=function(){$toolbarUL.find(".hover").removeClass("hover");$idBox.animate({left:"-"+$idBox.width()+"px"},{queue:false,duration:600,easing:"easeOutExpo",complete:function(){$tbWindow.css("visibility","hidden");}});$tb_lightbox.css("display","none");boxOpen=false;try{eval("close_"+$idBox.attr("id")+"();");}catch(e){}};ouvrirMessageConnecte=function(){messageEstOuvert=true;$tbWindow.addClass("messageConnecte");$messageConnecte.animate({left:0},{queue:false,duration:600,easing:"easeOutExpo",complete:function(){setTimeout(fermetureMessageConnecte,3000);}});};fermetureMessageConnecte=function(){$messageConnecte.animate({left:"-250px"},{queue:false,duration:600,easing:"easeOutExpo",complete:function(){$tbWindow.removeClass("messageConnecte");messageEstOuvert=false;}});};positionnerToolbar();positionnerBoxes();positionnerEtiquettes();if($(window).width()<1037){if(!$screenLessThan1024.hasClass("screenLessThan1024")){$screenLessThan1024.addClass("screenLessThan1024");}}else{if($screenLessThan1024.hasClass("screenLessThan1024")){$screenLessThan1024.removeClass("screenLessThan1024");}}$(window).resize(function(){positionnerToolbar();if($(window).width()<1037){if(!$screenLessThan1024.hasClass("screenLessThan1024")){$screenLessThan1024.addClass("screenLessThan1024");}}else{if($screenLessThan1024.hasClass("screenLessThan1024")){$screenLessThan1024.removeClass("screenLessThan1024");}}});$toolbarUL.find("li > span").click(function(){var $this=$(this);if(!$this.parent().hasClass("hover")){if(!$this.parent().is("a")){if(boxOpen){$toolbarUL.find(".hover").removeClass("hover");try{eval("close_"+$idBox.attr("id")+"();");}catch(e){}$idBox.animate({left:"-"+$idBox.width()+"px"},{queue:false,duration:600,easing:"easeOutExpo",complete:function(){$idBox=$($this.parent().data("IDBox"));ouvrirBox();$this.parent().addClass("hover");}});}else{$idBox=$($this.parent().data("IDBox"));ouvrirBox();$this.parent().addClass("hover");}}else{return false;}}else{fermerBox();}});$window.find(".close").click(function(){fermerBox();});$messageConnecte.find(".close").click(function(){fermetureMessageConnecte();});$tb_rollover.find(".close").click(function(){fermerBox();});$(".btnMoins").click(function(){var valeur=parseInt($(this).next().val());valeur--;if(valeur>=0){$(this).next().val(valeur);}});$(".btnPlus").click(function(){var valeur=parseInt($(this).prev().val());valeur++;$(this).prev("input").val(valeur);});$(".trash").click(function(){$(this).parent().fadeOut("slow");});}function estChiffre(a){var b=new RegExp("^[0-9]+$","g");return b.test(a);}function initParametrageGestionCrise(b,f,g){var e=cookiesSite.getParamGestionCrise();if((e==null)||(e=="")){var c=new Array(1);c[0]=new Array(2);c[0][0]="techidProduit";c[0][1]=f;var a=a=new AjaxInvoker(b,c,false,onSuccessRecupererParamsCrise,onErrorRecupererParamsCrise);a.query();}}function onSuccessRecupererParamsCrise(){var a=this.getData();str=a.nbAffichageInterstitiel+";"+a.nbAffichageLayer+";"+a.nbAffichageBlocMEA+";"+a.dureeAffichageBloc;cookiesSite.saveParamGestionCrise(str);$("#lienLIFTGestionCrise").show();}function onErrorRecupererParamsCrise(){var a="0;0;0;0";cookiesSite.saveParamGestionCrise(a);}function getDureeAffichageInterstitiel(){var b=cookiesSite.getParamGestionCrise();var a=b.split(";");return parseInt(a[3]*1000);}function getNbAffichagesRestantsInterstitiel(){var c=cookiesSite.getParamGestionCrise();var a=c.split(";");var b=0;if(a[0]!=""){b=parseInt(a[0]);}return b;}function decrementerNbAffichagesRestantsInterstitiel(){var c=cookiesSite.getParamGestionCrise();var a=c.split(";");var b=parseInt(a[0]);b--;nouvelleValeur=b+";"+a[1]+";"+a[2]+";"+a[3];cookiesSite.saveParamGestionCrise(nouvelleValeur);}function getNbAffichagesRestantsPopin(){var b=cookiesSite.getParamGestionCrise();var a=b.split(";");return parseInt(a[1]);}function decrementerNbAffichagesRestantsPopin(){var c=cookiesSite.getParamGestionCrise();var a=c.split(";");var b=parseInt(a[1]);b--;nouvelleValeur=a[0]+";"+b+";"+a[2]+";"+a[3];cookiesSite.saveParamGestionCrise(nouvelleValeur);}function getAffichageMea(){var b=cookiesSite.getParamGestionCrise();var a=b.split(";");return parseInt(a[2]);}function dateDuJour_ddmmyyyy(){var c=new Date();var g=c.getDate();var b=(g<10)?"0"+g:g;var a=c.getMonth()+1;var f=(a<10)?"0"+a:a;var h=c.getYear();var e=(h<1000)?h+1900:h;return(b+"/"+f+"/"+e);}function dateDuJour_ddmoisyyyy(){var f=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"];var c=new Date();var h=c.getDate();var b=(h<10)?"0"+h:h;var a=c.getMonth();var g=f[a];var j=c.getYear();
var e=(j<1000)?j+1900:j;return(b+" "+g+" "+e);}function dateDuJour_yyyy_mm_ddThhmmss(){var c=new Date();var g=c.getDate();var b=(g<10)?"0"+g:g;var a=c.getMonth()+1;var f=(a<10)?"0"+a:a;var h=c.getYear();var e=(h<1000)?h+1900:h;return(e+"-"+f+"-"+b+"T00:00:00");}function dateDuJour_yyyymmdd(){var e=new Date();var h=e.getDate();var c=(h<10)?"0"+h:h;var b=e.getMonth()+1;var g=(b<10)?"0"+b:b;var j=e.getYear();var f=(j<1000)?j+1900:j;var a=new String();a+=f;a+=g;a+=c;return a;}function getDate(a){day=a.substring(0,2);month=a.substring(3,5);year=a.substring(6,10);d=new Date(0);d.setDate(day);d.setMonth(month-1);d.setFullYear(year);return d;}function reformatDateYYYYMMDDEnDDMMYYY(a,b){year=a.substring(0,4);month=a.substring(5,7);day=a.substring(8,10);return day+b+month+b+year;}function isValidDate(b){var a=/^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)?\d{2}))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/;return b.match(a);}function compareDate(b,a){diff=b.getTime()-a.getTime();return(diff==0?diff:diff/Math.abs(diff));}function samediSemaineCourante(){var b=new Date();var c=b.getDay();if(c==6){return b;}else{var a=7-c;return new Date(b.getTime()+(1000*60*60*24*a));}}function dimancheSemaineCourante(){var b=new Date();var c=b.getDay();if(c==0){return b;}else{var a=7-c;return new Date(b.getTime()+(1000*60*60*24*a));}}function date_yyyymmdd(e){var h=e.getDate();var c=(h<10)?"0"+h:h;var b=e.getMonth()+1;var g=(b<10)?"0"+b:b;var j=e.getYear();var f=(j<1000)?j+1900:j;var a=new String();a+=f;a+=g;a+=c;return a;}function calculeAge(f){var h=parseInt((f).substring(0,2),10);var a=parseInt((f).substring(3,5),10);var c=parseInt((f).substring(6,10),10);var g=dateDuJour_ddmmyyyy();var e=parseInt((g).substring(0,2),10);var j=parseInt((g).substring(3,5),10);var b=parseInt((g).substring(6,10),10);var k=b-c;if(j<a){if(k>0){k--;}}else{if((j==a)&&(h<h)){if(k>0){k--;}}}return k;}var mesJours=["DIM","LUN","MAR","MER","JEU","VEN","SAM","DIM"];var mesJoursNum=[6,0,1,2,3,4,5,6];function getJourJJJ(){var a=new Date();var c=a.getDay();var b=mesJours[c];return(b);}function getJour(){var a=new Date();var c=a.getDay();var b=mesJoursNum[c];return(b);}function indiceOuvertureExceptionnelle(e){var b=dateDuJour_yyyy_mm_ddThhmmss();var a=e.length;var c=-1;for(i=0;i<a;i++){if(b==e[i].date){c=i;i=a;}}return c;}function indiceOuverture(b){var c=getJour();var a=b.length;var e=-1;for(i=0;i<a;i++){if(c==b[i].codeJour){e=i;i=a;}}return e;}function indiceFermetureExceptionnelle(b){var c=dateDuJour_yyyy_mm_ddThhmmss();var a=b.length;var e=-1;for(i=0;i<a;i++){if(c==b[i].fermeture.date){e=i;i=a;}}return e;}function getHorairesJournee(g,b,a,h){var c=null;var f=null;if(h==0){f=0;}else{f=getJour();}if(null!=g){var e=indiceOuvertureExceptionnelle(g);if(e>=0){c=g[e];}else{if(null!=a){e=indiceFermetureExceptionnelle(a);if(e>=0){c=a[e];}else{if(null!=b){c=b[f];}}}else{if(null!=b){c=b[f];}}}}else{if(null!=a){e=indiceFermetureExceptionnelle(a);if(e>=0){c=a[e];}else{if(null!=b){c=b[f];}}}else{if(null!=b){c=b[f];}}}return c;}function estFerme(a){var b=true;for(i=0;i<4;i++){if(null!=a[i]){b=false;}}return b;}function ouvertEnMatinee(a){var b=false;if((null!=a[0])&&(null!=a[1])){b=true;}return b;}function ouvertEnApresMidi(a){var b=false;if((null!=a[2])&&(null!=a[3])){b=true;}return b;}function ouvertTouteJournee(a){var b=false;if((null==a[1])&&(null==a[2])){b=true;}return b;}function format2char(b){var a=""+b;if(a.length<2){a="0"+b;}return a;}function determineHoraires(c,a,f,h,j,b){var e=new Array(4);var g=new Array(4);var k=b;e[0]=c.heureOuvertureMatin;e[1]=c.heureFermetureMatin;e[2]=c.heureOuvertureApresMidi;e[3]=c.heureFermetureApresMidi;g[0]=c.minuteOuvertureMatin;g[1]=c.minuteFermetureMatin;g[2]=c.minuteOuvertureApresMidi;g[3]=c.minuteFermetureApresMidi;if(!estFerme(e)){if(ouvertTouteJournee(e)){k=j+" "+format2char(e[0])+a+format2char(g[0])+" "+f+" "+format2char(e[3])+a+format2char(g[3]);}else{if(ouvertEnMatinee(e)&&ouvertEnApresMidi(e)){k=j+" "+format2char(e[0])+a+format2char(g[0])+" "+f+" "+format2char(e[1])+a+format2char(g[1]);k+=" "+h+" "+format2char(e[2])+a+format2char(g[2])+" "+f+" "+format2char(e[3])+a+format2char(g[3]);}else{if(ouvertEnMatinee(e)){k=j+" "+format2char(e[0])+a+format2char(g[0])+" "+f+" "+format2char(e[1])+a+format2char(g[1]);}else{if(ouvertEnApresMidi(e)){k=j+" "+format2char(e[2])+a+format2char(g[2])+" "+f+" "+format2char(e[3])+a+format2char(g[3]);}}}}}return k;}var leMagasinEstChoisi=false;var provientRattachementCarte=false;var clientToolbar=null;
var codePanonceauDuMagASelectionner=null;function traiterCodeRetourRattachementCarte_client0001(a,b){if(b==2){clientToolbar=a;provientRattachementCarte=true;openPopin("#carte_info",676,515);}else{if(b==1){alerteLayer(CLIENT0001_rattachementCodeRetour01_titre,CLIENT0001_rattachementCodeRetour01_message,300);}else{if(b==3){alerteLayer(CLIENT0001_rattachementCodeRetour03_titre,CLIENT0001_rattachementCodeRetour03_message,600);}else{if(b==4){alerteLayer(CLIENT0001_rattachementCodeRetour04_titre,CLIENT0001_rattachementCodeRetour04_message,600);}else{if(b==5){alerteLayer(CLIENT0001_rattachementCodeRetour05_titre,CLIENT0001_rattachementCodeRetour05_message,600);}else{if(b==6){alerteLayer(CLIENT0001_rattachementCodeRetour06_titre,CLIENT0001_rattachementCodeRetour06_message,600);}else{if(b==7){alerteLayer(CLIENT0001_rattachementCodeRetour07_titre,CLIENT0001_rattachementCodeRetour07_message,600);}else{if(b==11){alerteLayer(CLIENT0001_rattachementCodeRetour11_titre,CLIENT0001_rattachementCodeRetour11_message,600);}else{alerteLayer("Erreur","Erreur inconnue",600);}}}}}}}}}function razFormulaire(){location.reload();}function razChampsModifMdP(){$("#ancienMdpModif").val("");$("#newMdpModif").val("");$("#newMdp2Modif").val("");}(function(){Enfant=function(g,b,c,e,f,a){this.techid=f;this.dateNaissance=c;this.oldDateNaissance=e;this.prenom=g;this.sexe=b;this.numero=a;};Enfant=function(){};Enfant.prototype={techid:null,dateNaissance:null,oldDateNaissance:null,prenom:null,sexe:null,numero:null};})();(function(){Newsletter=function(){};Newsletter.prototype={code:null};})();(function(){AbonnementNewsletter=function(){};AbonnementNewsletter.prototype={newsletter:null,client:null,techid:-1};})();(function(){Client=function(){};Client.prototype={techid:null,motDePasse:null,codeCivilite:null,nom:null,prenom:null,email:null,codePanonceau:null,dateNaissance:null,telMobile:null,telFixe:null,numeroCarte:null,codeCarte:null,codeSituationMatrimonial:null,situationProfessionnelle:null,codePays:null,numeroVoie:null,nomVoie:null,complementAdresse:null,codePostal:null,ville:null,typeResidence:null,nombreEnfant:0,abonnementNewsletters:null,enfants:null,getDonneesEnFluxJSON:function(){return $.toJSON(this);},addAbonnementNewsletter:function(c,f){if(this.abonnementNewsletters==null){this.abonnementNewsletters=new Array();}var b=new AbonnementNewsletter();var e=new Newsletter();var a=new Client();e.code=c;a.email=this.email;b.newsletter=e;b.client=a;b.techid=f;this.abonnementNewsletters.push(b);},addEnfant:function(h,c,e,f,g,a){if(this.enfants==null){this.enfants=new Array();}var b=new Enfant();b.prenom=h;b.sexe=c;b.dateNaissance=e;b.oldDateNaissance=f;b.techid=g;b.numero=a;this.enfants.push(b);},initAvecDonneesSocle:function(a){this.identifiant=a.identifiant;this.nom=a.nom;this.prenom=a.prenom;if((a.listEnfants!=null)&&(a.listEnfants!=undefined)){for(var b=0;b<a.listEnfants.length;b++){this.addEnfant(a.listEnfants[b].prenom,a.listEnfants[b].sexe,a.listEnfants[b].dateNaissance,a.listEnfants[b].oldDateNaissance,a.listEnfants[b].techid,a.listEnfants[b].numero);}}}};})();(function(){AdressePostale=function(){};AdressePostale.prototype={nomVoie:null,numeroVoie:null,complementAdresse:null,ville:null,codePostal:null};})();var monClient;var monAdressePostale;var adressePostaleAValider;function creer(){var b=new Array(1);b[0]=new Array(2);b[0][0]="inputCaptcha";b[0][1]=$(".inscription #inputCaptcha").val();var a=null;a=new AjaxInvoker("/?template=creationClientAjax",b,false,onSuccessCaptcha,onErrorCaptcha,false,true);a.query();}function creerApresValidationCaptcha(){monClient=new Client();monClient.motDePasse=motDePasse;monClient.codeCivilite=$(".inscription #civiliteid").val();monClient.nom=$(".inscription #nom").val();monClient.prenom=$(".inscription #prenom").val();monClient.email=$(".inscription #emailGestionClientid").val();monClient.codePanonceau=codePanonceau;monClient.dateNaissance=$(".inscription #jDnn").val()+"/"+$(".inscription #mDnn").val()+"/"+$(".inscription #aDnn").val();monClient.telMobile=$(".inscription #telMobile").val();monClient.telFixe=$(".inscription #telFixe").val();monClient.numeroCarte=numeroCarte;monClient.codeCarte=codeCarte;monClient.codeSituationMatrimonial=$(".inscription #stMaritale").val();monClient.situationProfessionnelle=$(".inscription #stProfessionelle").val();monClient.codePays=$(".inscription #pays").val();monClient.numeroVoie=$(".inscription #numVoie").val();monClient.nomVoie=$(".inscription #nomVoie").val();monClient.complementAdresse=$(".inscription #complAdresse").val();monClient.codePostal=$(".inscription #CP").val();monClient.ville=$(".inscription #ville").val();monClient.typeResidence=$(".inscription #habitation").val();monClient.nombreEnfant=$(".inscription #nbEnfants").val();if($(".inscription #newsLeclerc").attr("checked")==true){monClient.addAbonnementNewsletter(idNewsLeclerc,-1);}if($(".inscription #leclercVoyage").attr("checked")==true){monClient.addAbonnementNewsletter(idLeclercVoyage,-1);}$(".inscription #enfants .ligneEnfant").each(function(c){var e=$(this).find('input[name="numero"]').attr("value");
if(($(".inscription #enfants #prenom"+e).val()!="")||($(".inscription #enfants #sexe"+e).val()!="")||($(".inscription #enfants #jDnn"+e).val()!="defaut")||($(".inscription #enfants #mDnn"+e).val()!="defaut")||($(".inscription #enfants #aDnn"+e).val()!="defaut")){monClient.addEnfant($(".inscription #enfants #prenom"+e).val(),$(".inscription #enfants #sexe"+e).val(),$(".inscription #enfants #jDnn"+e).val()+"/"+$(".inscription #enfants #mDnn"+e).val()+"/"+$(".inscription #enfants #aDnn"+e).val(),$(".inscription #enfants #oldDateNaissance"+e).val(),$(".inscription #enfants #idLigneEnfant"+e).val(),$(".inscription #enfants #numero"+e).val());}});gestionChoixAdressePostale();var b=new Array(2);b[0]=new Array(2);b[0][0]="fluxJSON";b[0][1]=monClient.getDonneesEnFluxJSON();b[1]=new Array(2);b[1][0]="controlerAdresse";b[1][1]=bAdresseAControler&&!bAdresseVide;var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_creer.action",b,true,onSuccessCreerClient,onErrorCreerClient,true,true);a.query();}function synchroInfosMagasinClient(a){if(a==null){return;}var b=$("#magasin #magProche #liMagasinLayerMagClient_"+a+" div").html();$("#currentMagasin div").html(b);}function miseAJourListeMagasinClient(g){var e=0;var f="";var b="";var j="";var a=posDansTabCourantShared;if(g==null){magasinsLayer=null;}else{magasinsLayer=g;var h=0;if(g.length>5){h=5;}else{h=g.length;}j="selectionnerMagasinClient();";for(e;e<h;e++){f+="<li id='liMagasinLayerMagClient_"+e+"'><a href='#' onclick='return "+j+"'>"+videSiNull(magasinsLayer[e].coordonnee.codePostal)+" "+videSiNull(magasinsLayer[e].nom)+"</a>";b="";b+="<div>";b+="<h3>"+videSiNull(magasinsLayer[e].nom)+"</h3>";b+=videSiNull(magasinsLayer[e].coordonnee.numeroVoie)+" "+videSiNull(magasinsLayer[e].coordonnee.voie)+"<br/>";b+=videSiNull(magasinsLayer[e].coordonnee.codePostal)+" "+videSiNull(magasinsLayer[e].coordonnee.ville);b+="<br/><br/><strong>"+aujourdhuiLayerMag+" "+dateDuJour_ddmoisyyyy()+"</strong><br/>";var c=getHorairesJournee(magasinsLayer[e].horairesExceptionnels,magasinsLayer[e].horairesMagasins,magasinsLayer[e].fermetures,0);if(c!=null){b+=determineHoraires(c,separateurHoraireLayerMag,separateurPaireHeuresLayerMag,separateur2HorairesLayerMag,etatOuvertLayerMag,etatFermeLayerMag)+"<br/>";}b+="<input type='hidden' class='posDansTab' value='"+e+"'/>";b+="<input type='hidden' class='latitudeGPS' value='"+magasinsLayer[e].coordonnee.latitudeGPS+"'/>";b+="<input type='hidden' class='longitudeGPS' value='"+magasinsLayer[e].coordonnee.longitudeGPS+"'/>";b+="</div>";f+=b;f+="</li>";if((magasinsLayer[e].codePanonceau!=null)&&(magasinsLayer[e].codePanonceau==codePanonceauDuMagASelectionner)){a=e;}markersLayer[e]=markMagasin(magasinsLayer[e],e);}}if(g==null){alert(aucunMagasinLayerMag);}$("#magasin #magProche ul li").remove();$("#magasin #magProche ul").html(f);if(g!=null){synchroInfosMagasinClient(a);}}function selectionnerMagasinClient(){var a=null;a=$("#magasin #currentMagasin .posDansTab").val();if((a==null)||(a==undefined)){return null;}return magasinsLayer[a].codePanonceau;}function selectionnerMagasinClientAuthentification(){var a=null;a=$("#popinIdentifie #currentMag .posDansTab").val();if((a==null)||(a==undefined)){return null;}return magasinsLayer[a].codePanonceau;}function constructObjetClientAvecData(a){monClient=new Client();monClient.techid=a.techid;monClient.codeCivilite=a.codeCivilite;monClient.nom=a.nom;monClient.prenom=a.prenom;monClient.email=a.email;monClient.codePanonceau=a.codePanonceau;monClient.dateNaissance=a.dateNaissance;monClient.telMobile=a.telMobile;monClient.telFixe=a.telFixe;monClient.numeroCarte=a.numeroCarte;monClient.codeSituationMatrimonial=a.codeSituationMatrimonial;monClient.situationProfessionnelle=a.situationProfessionnelle;monClient.codePays=a.codePays;monClient.numeroVoie=a.numeroVoie;monClient.nomVoie=a.nomVoie;monClient.complementAdresse=a.complementAdresse;monClient.codePostal=a.codePostal;monClient.ville=a.ville;monClient.typeResidence=a.typeResidence;monClient.nombreEnfant=a.nombreEnfant;for(i=0;i<a.abonnementNewsletters.length;i++){monClient.addAbonnementNewsletter(a.abonnementNewsletters[i].newsletter.code,a.abonnementNewsletters[i].techid);}a.enfants.sort(sortEnfants);for(i=0;i<a.enfants.length;i++){monClient.addEnfant(a.enfants[i].prenom,a.enfants[i].sexe,a.enfants[i].dateNaissance,a.enfants[i].oldDateNaissance,a.enfants[i].techid,a.enfants[i].numero);}}function sortEnfants(b,a){return(b.numero-a.numero);}function enregistrerCodePanonceauClient(){var b=null;b=selectionnerMagasinClientAuthentification();if((b==null)||(b==undefined)){alerteErreurLayer("Veuillez sélectionner un magasin",300);}else{monClient.codePanonceau=b;var c=new Array(1);c[0]=new Array(2);c[0][0]="fluxJSON";c[0][1]=monClient.getDonneesEnFluxJSON();var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_modifier.action",c,true,onSuccessEnregistrerCodePanonceauClient,onErrorEnregistrerCodePanonceauClient,true,true);a.query();}}function onSuccessEnregistrerCodePanonceauClient(){mettreClientEnSession(monClient.techid);
redirigerVersHomeMagasinSession(true);}function onErrorEnregistrerCodePanonceauClient(){}function enregistrerClient(c){monClient=new Client();monClient.techid=c;monClient.codeCivilite=$(".inscription #civiliteid").val();monClient.nom=$(".inscription #nom").val();monClient.prenom=$(".inscription #prenom").val();monClient.email=$(".inscription #emailGestionClientid").val();monClient.codePanonceau=codePanonceau;monClient.dateNaissance=$(".inscription #jDnn").val()+"/"+$(".inscription #mDnn").val()+"/"+$(".inscription #aDnn").val();monClient.telMobile=$(".inscription #telMobile").val();monClient.telFixe=$(".inscription #telFixe").val();monClient.numeroCarte=numeroCarte;monClient.codeCarte=codeCarte;monClient.codeSituationMatrimonial=$(".inscription #stMaritale").val();monClient.situationProfessionnelle=$(".inscription #stProfessionelle").val();monClient.codePays=$(".inscription #pays").val();monClient.numeroVoie=$(".inscription #numVoie").val();monClient.nomVoie=$(".inscription #nomVoie").val();monClient.complementAdresse=$(".inscription #complAdresse").val();monClient.codePostal=$(".inscription #CP").val();monClient.ville=$(".inscription #ville").val();monClient.typeResidence=$(".inscription #habitation").val();monClient.nombreEnfant=$(".inscription #nbEnfants").val();monClient.abonnementNewsletters=null;if($(".inscription #newsLeclerc").attr("checked")==true){monClient.addAbonnementNewsletter(idNewsLeclerc,$(".inscription #idAbonnementNewsletter").val());}if($(".inscription #leclercVoyage").attr("checked")==true){monClient.addAbonnementNewsletter(idLeclercVoyage,$(".inscription #idAbonnementLeclercVoyage").val());}$(".inscription #enfants .ligneEnfant").each(function(e){var f=$(this).find('input[name="numero"]').attr("value");if(($(".inscription #enfants #prenom"+f).val()!="")||($(".inscription #enfants #sexe"+f).val()!="")||($(".inscription #enfants #jDnn"+f).val()!="defaut")||($(".inscription #enfants #mDnn"+f).val()!="defaut")||($(".inscription #enfants #aDnn"+f).val()!="defaut")){monClient.addEnfant($(".inscription #enfants #prenom"+f).val(),$(".inscription #enfants #sexe"+f).val(),$(".inscription #enfants #jDnn"+f).val()+"/"+$(".inscription #enfants #mDnn"+f).val()+"/"+$(".inscription #enfants #aDnn"+f).val(),$(".inscription #enfants #oldDateNaissance"+f).val(),$(".inscription #enfants #idLigneEnfant"+f).val(),$(".inscription #enfants #numero"+f).val());}});gestionChoixAdressePostale();var b=new Array(2);b[0]=new Array(2);b[0][0]="fluxJSON";b[0][1]=monClient.getDonneesEnFluxJSON();b[1]=new Array(2);b[1][0]="controlerAdresse";b[1][1]=bAdresseAControler&&!bAdresseVide;var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_modifier.action",b,true,onSuccessEnregistrerClient,onErrorEnregistrerClient,true,true);a.query();}function onSuccessValiderModifMotDePasse(){$("#popinModifMdp .close").click();openPopin("#popinSuccesModifMdp",400);}function onErrorValiderModifMotDePasse(){}function validerModifMotDePasse(){razChampsEnErreurPopin();var b=new Array(4);b[0]=new Array(2);b[0][0]="idClient";b[0][1]=$("#idClientModif").val();b[1]=new Array(2);b[1][0]="password";b[1][1]=$("#ancienMdpModif").val();b[2]=new Array(2);b[2][0]="newPassword";b[2][1]=$("#newMdpModif").val();b[3]=new Array(2);b[3][0]="confirmPassword";b[3][1]=$("#newMdp2Modif").val();var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_gestion_compte_modif_mdp.action",b,true,onSuccessValiderModifMotDePasse,onErrorValiderModifMotDePasse,false,true);a.query();}function traiterCodeRetourAuthentClientJS(a,c){if(c==1){var b=false;if((g_contexte!=null)&&((g_contexte.magasin==null)||(g_contexte.magasin=="undefined")||(g_contexte.magasin==""))){cookiesSite.saveMagasinCourant(a.nomMagasinRattachement);b=true;}mettreClientEnSession(a.techid);if(b){redirigerVersEspaceMagasin(true);}else{window.location.reload(true);}}else{if(c==2){alerteLayer(CLIENT0001_codeRetour02carte_titre,CLIENT0001_codeRetour02carte_message,300);}else{if(c==3){constructObjetClientAvecData(a);initializeLayerMagasin("","popinFiltreClientIdentifie","","");openPopin("#popinIdentifie",960,390);}else{if(c==4){alerteLayer(CLIENT0001_codeRetour04_titre,CLIENT0001_codeRetour04_message,300);}else{if((c==5)||(c==7)){clientToolbar=a;openPopin("#layer_codeRetour_05_toolbar",600);}else{if(c==6){provientRattachementCarte=false;clientToolbar=a;openPopin("#popinSameMail",600);}else{if(c==8){alerteLayer(CLIENT0001_codeRetour08_titre,CLIENT0001_codeRetour08_message,600);}else{if(c==9){alerteLayer(CLIENT0001_codeRetour09_titre,CLIENT0001_codeRetour09_message,600);}else{if(c==11){alerteLayer(CLIENT0001_codeRetour11_titre,CLIENT0001_codeRetour11_message,600);}else{alerteLayer("Erreur","Erreur inconnue",600);}}}}}}}}}}function onSuccessAuthentifierCarte(){var b=this.getData();var a=b.client;if(a==null){alerteLayer(CLIENT0001_codeRetour02carte_titre,CLIENT0001_codeRetour02carte_message,300);}else{traiterCodeRetourAuthentClientJS(a,a.codeRetour);}}function onErrorAuthentifierCarte(){var a=this.getData();traiterCodeRetourAuthentClientJS(null,a.exception.code);
}function authentifierCarte(){var b=new Array(3);b[0]=new Array(2);b[0][0]="j_username";var a=$(".inscription #numCarte").val();b[0][1]=a;if(checkNumCarte0007(a)){b[1]=new Array(2);b[1][0]="j_password";b[1][1]=$(".inscription #codeSecret").val();b[2]=new Array(2);b[2][0]="j_crossdomain";b[2][1]="true";invoker=new CrossDomainAjaxInvoker(prefixeUrlSSLSocleClient+"j_spring_security_check",b,onSuccessAuthentifierCarte,onErrorAuthentifierCarte,false);invoker.query();}else{alerteLayer(CLIENT0001_codeRetour02carte_titre,CLIENT0001_codeRetour02carte_message,300);}}function checkNumCarte0007(a){return(!isNaN(a));}function onSuccessLireClient(){var b=this.getData();var a=b.client;if(a==null){alert("Identification["+b.login+"] /["+b.password+"] invalide.");alert(b);}else{initIHMModifClient(a);}}function onErrorLireClient(){var a=this.getException();alert("exception="+$.toJSON(a));alert("exception caugth : "+a.code+"/"+a.message);}function lireClient(c){var b=new Array(1);b[0]=new Array(2);b[0][0]="identifiantClient";b[0][1]=c;var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_lire.action",b,true,onSuccessLireClient,onErrorLireClient);a.query();}function onSuccessLireMagasin(){var b=this.getData();var a=null;a=b.magasin;if(a!=null){loadFragmentMagasin(a);}}function onErrorLireMagasin(){var a=this.getException();alert("Une erreur s'est produite à la lecture du magasin du client");}function lireMagasin(a){var c=new Array(1);c[0]=new Array(2);c[0][0]="codePanonceau";c[0][1]=a;var b=null;b=new AjaxInvoker(prefixeUrlSocleMag+"magasin_lire.action",c,true,onSuccessLireMagasin,onErrorLireMagasin);b.query();}function initIHMModifClient(b){codePanonceau=b.codePanonceau;numeroCarte=b.numeroCarte;if(b.numeroCarte!=null){carte=true;}else{carte=false;$(".inscription .maCarte").hide();}lireMagasin(b.codePanonceau);initChampsSimples(b);var g=$("#newsLeclerc, #fromLeclerc"),h=$("#allNews, #leclercVoyage, #fromSpecialises"),a=g.add(h);for(i=0;i<b.abonnementNewsletters.length;i++){if(b.abonnementNewsletters[i].newsletter.code==idNewsLeclerc){g.attr("checked",true);$(".inscription #idAbonnementNewsletter").val(b.abonnementNewsletters[i].techid);}else{if(b.abonnementNewsletters[i].newsletter.code==idLeclercVoyage){a.attr("checked",true);$(".inscription #idAbonnementLeclercVoyage").val(b.abonnementNewsletters[i].techid);}}}b.enfants.sort(sortEnfants);for(i=0;i<b.enfants.length;i++){var f=parseInt(b.enfants[i].dateNaissance.substring(0,2),10);var e=parseInt(b.enfants[i].dateNaissance.substring(3,5),10);var c=parseInt(b.enfants[i].dateNaissance.substring(6,10),10);$(".inscription #enfants #jDnn"+(i+1)).val(f);$(".inscription #enfants #mDnn"+(i+1)).val(e);$(".inscription #enfants #aDnn"+(i+1)).val(c);$(".inscription #enfants #oldDateNaissance"+(i+1)).val(b.enfants[i].dateNaissance);$(".inscription #enfants #idLigneEnfant"+(i+1)).val(b.enfants[i].techid);$(".inscription #enfants #sexe"+(i+1)).val(b.enfants[i].sexe);$(".inscription #enfants #prenom"+(i+1)).val(b.enfants[i].prenom);$(".inscription #enfants #numero"+(i+1)).val(b.enfants[i].numero);}}function rechercherMagasinParPopinPourClient(){openPopin("#popinChoixMagClient",942,399);initializeLayerMagasin("","popinFiltreClient","","");$("#popinChoixMagClient .close").click();openPopin("#popinChoixMagClient",942,399);}function rechercherAdresseGoogleClient(a){paramsLayer.typeFiltreAUtiliser=a;posDansTabCourantShared=0;rechercherAdresseGoogle();}function loadFragmentMagasin(a){if(a!=null){$("#magasin #modifCP").val("");$("#magasin #magProche ul li").remove();$("#currentMagasin div").html("");paramsLayer.typeFiltreAUtiliser="popinFiltreClientFragment";codePanonceauDuMagASelectionner=a.codePanonceau;rechercherMagasinGPS(a.coordonnee.latitudeGPS,a.coordonnee.longitudeGPS);$("#magasin #magProche").css("display","block");$("#magasin #currentMagasin").css("display","block");$("#magasin .sepaOu").css("display","block");addressToShow=$("#magasin #modifCP").val();$("#magasin #magProche ul").html("<img src='"+imagePatienceLayerMag+"'/>");$("#currentMagasin > p, .btnChanger").css("display","block");$("#currentMagasin, #magProche").css("display","block");$("#CPostal, #magasin .sepaOu, .btnChoose ").css("display","none");$("#popinChoixMagClient #adresse").addClass("magasinChoisi");leMagasinEstChoisi=true;if(carte){$("#magasin .btnChanger").hide();$("#magasin .btnLocaliser").remove();}}}function initChampsSimples(b){$(".inscription #civiliteid").val(b.codeCivilite);var e=parseInt((b.dateNaissance).substring(0,2),10);var c=parseInt((b.dateNaissance).substring(3,5),10);var a=parseInt((b.dateNaissance).substring(6,10),10);var f="FR";if((b.codePays!=null)&&(b.codePays!="")){f=b.codePays.toUpperCase();}$(".inscription #jDnn").val(e);$(".inscription #mDnn").val(c);$(".inscription #aDnn").val(a);$(".inscription #nom").val(b.nom);$(".inscription #prenom").val(b.prenom);$(".inscription #numVoie").val(b.numeroVoie);$(".inscription #nomVoie").val(b.nomVoie);$(".inscription #complAdresse").val(b.complementAdresse);
$(".inscription #CP").val(b.codePostal);$(".inscription #ville").val(b.ville);$(".inscription #telFixe").val(b.telFixe);$(".inscription #telMobile").val(b.telMobile);$(".inscription #pays").val(f);$(".inscription #numCarteReadOnly").val(numeroCarte);$(".inscription #emailGestionClientid").val(b.email);$(".inscription #stMaritale").val(b.codeSituationMatrimonial);$(".inscription #habitation").val(b.typeResidence);$(".inscription #stProfessionelle").val(b.situationProfessionnelle);$(".inscription #nbEnfants").val(b.nombreEnfant);generateLignesEnfants(b.enfants.length);}function generateLignesEnfants(a){$(".inscription #enfants .ligneEnfant").remove();if(a>0){for(i=1;i<=a;i++){champsAjouterEnfant(i);}}else{champsAjouterEnfant(1);}}function onSuccessChargerListePays(){var a=this.getData();if(a!=null){if(a.listePays!=null){$.each(a.listePays,function(b,c){$(".inscription #pays").append($("<option></option>").attr("value",c.code).text(c.libelle));});}$(".inscription #pays").val("FR");}}function onErrorChargerListePays(){}function chargerListePays(){var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"lister_pays.action?cachable=true",null,true,onSuccessChargerListePays,onErrorChargerListePays,true,true);a.query();}function changeCaptcha(){$("#imgCaptcha").attr("src","/jcaptcha?a="+Math.random());$("#inputCaptcha").val("");}function changeCaptcha_popinMotDePasseOublie(){$("#imgCaptcha_popinMotDePasseOublie").attr("src","/jcaptcha?a="+Math.random());$("#inputCaptcha_popinMotDePasseOublie").val("");}function onErrorAuthentifierParEmail_AUTO_CLIENT0001(){}function onSuccessAuthentifierParEmail_AUTO_CLIENT0001(){var b=this.getData();var a=b.client;mettreClientEnSession(a.techid,false,onSuccessMajClientSession,onErrorMajClientSession);}function authentifierParEmail_AUTO_CLIENT0001(b,a){var c=new Array(3);c[0]=new Array(2);c[0][0]="j_username";c[0][1]=b;c[1]=new Array(2);c[1][0]="j_password";c[1][1]=a;c[2]=new Array(2);c[2][0]="j_crossdomain";c[2][1]="true";invoker=new CrossDomainAjaxInvoker(prefixeUrlSSLSocleClient+"j_spring_security_check",c,onSuccessAuthentifierParEmail_AUTO_CLIENT0001,onErrorAuthentifierParEmail_AUTO_CLIENT0001,false);invoker.query();}function onSuccessCaptcha(){var a=this.getData();creerApresValidationCaptcha();}function onErrorCaptcha(){changeCaptcha();activerBtValiderClient();var b=this.getData();var a=alertErreurSaisie;if((b.exception.code!=null)&&(b.exception.code=="CLI_BE_CREATION_99001")){a=alertErreurSaisieCaptcha;}alerteErreurLayer(a,400);}function onSuccessCreerClient(){var a=this.getData();authentifierParEmail_AUTO_CLIENT0001($(".inscription #emailGestionClientid").val(),motDePasse);}function onErrorCreerClient(){changeCaptcha();activerBtValiderClient();var b=this.getData();var a=alertErreurSaisie;traiterErreurEnregistrementClient(b);alerteErreurLayer(a,400);}function traiterErreurEnregistrementClient(c){if(c.exception!=null){if(c.exception.estMultiple){exceptions=c.exception.exceptions;identifiants=c.exception.identifiants;}else{exceptions=[c.exception];}if(exceptions!=null){for(var b=0;b<exceptions.length;b++){var a=listeErreursSocle[exceptions[b].code];if((c.exception.code!=null)&&(c.exception.code=="CLI_BE_CREATION_99001")){alerteAAfficher=alertErreurSaisieCaptcha;}if(exceptions[b].code=="CLI_BE_CREATION_00040"){setDisabledCoordonnesPostales(true);monAdressePostale=null;$("#ErreurCoordonneesPostales").show();if(exceptions[b].etatErreur=="ERROR_CHOISIR_UNE_CORRECTION"){$("#div_selection_adresse").show();$("#div_validation_adresse").hide();setCheckChoixCorrectionAdressePostale(true,false,false,false);$("#proposition_adresses").empty();$("#proposition_adresses").append($("<option></option>").val("NONE").html(""));$.each(exceptions[b].listePropositionCorrection,function(f,e){$("#proposition_adresses").append($("<option></option>").val(f).html(e));});sauvegarderAdresseCourante();}else{if(exceptions[b].etatErreur=="ERROR_ADRESSE_A_VERIFIER"){$(".inscription #div_selection_adresse").hide();$(".inscription #div_validation_adresse").show();setCheckChoixCorrectionAdressePostale(false,true,false,false);sauvegarderAdresseCourante();adressePostaleAValider=exceptions[b].adresseAValider;mettreAJourFormulaireAvecAdresse(adressePostaleAValider);}else{if(exceptions[b].etatErreur=="ERROR_PAS_CORRECTION"){sauvegarderAdresseCourante();$(".inscription #div_selection_adresse").hide();$(".inscription #div_validation_adresse").hide();setCheckChoixCorrectionAdressePostale(false,false,false,true);setDisabledCoordonnesPostales(false);}}}}}}}}function gestionChoixAdressePostale(){if(($(".inscription #validation_adresse").attr("checked")==true)||($(".inscription #poursuivre").attr("checked")==true)){bAdresseAControler=false;if(($(".inscription #poursuivre").attr("checked")==true)&&(monAdressePostale!=null)){monClient.numeroVoie=monAdressePostale.numeroVoie;monClient.nomVoie=monAdressePostale.nomVoie;monClient.complementAdresse=monAdressePostale.complementAdresse;monClient.codePostal=monAdressePostale.codePostal;monClient.ville=monAdressePostale.ville;
}}bAdresseVide=false;if((jQuery.trim($(".inscription #numVoie").val())=="")&&(jQuery.trim($(".inscription #nomVoie").val())=="")&&(jQuery.trim($(".inscription #complAdresse").val())=="")&&(jQuery.trim($(".inscription #CP").val())=="")&&(jQuery.trim($(".inscription #ville").val())=="")){bAdresseVide=true;}initChampsCorrectionAdressePostale();}function onSuccessRecupererAdressePostaleQasClient(){var a=this.getData();desactiverMsgPatienteQas();if(a.adresseQas!=null){mettreAJourFormulaireAvecAdresse(a.adresseQas);}else{alerteErreurLayer(alertErreurRecupAdresse,400);setModificationAdressePostale();setCheckChoixCorrectionAdressePostale(false,false,false,true);}}function sauvegarderAdresseCourante(){monAdressePostale=new AdressePostale();var a="";monAdressePostale.numeroVoie=$(".inscription #numVoie").val();if(monAdressePostale.numeroVoie!=""){a+=monAdressePostale.numeroVoie;}monAdressePostale.nomVoie=$(".inscription #nomVoie").val();if(monAdressePostale.nomVoie!=""){if(a!=""){a+=" ";}a+=monAdressePostale.nomVoie;}monAdressePostale.complementAdresse=$(".inscription #complAdresse").val();if(monAdressePostale.complementAdresse!=""){if(a!=""){a+=", ";}a+=monAdressePostale.complementAdresse;}monAdressePostale.codePostal=$(".inscription #CP").val();if(monAdressePostale.codePostal!=""){if(a!=""){a+=", ";}a+=monAdressePostale.codePostal;}monAdressePostale.ville=$(".inscription #ville").val();if(monAdressePostale.ville!=""){if((a!="")&&(monAdressePostale.codePostal!="")){a+=" ";}else{if((a!="")&&(monAdressePostale.codePostal=="")){a+=", ";}}a+=monAdressePostale.ville;}$(".inscription #adresse_saisie").text(a);}function mettreAJourFormulaireAvecAdresse(a){$(".inscription #nomVoie").val(a.nomVoie);$(".inscription #numVoie").val(a.numeroVoie);$(".inscription #complAdresse").val(a.complementAdresse);$(".inscription #ville").val(a.ville);$(".inscription #CP").val(a.codePostal);}function setModificationAdressePostale(){if(monAdressePostale!=null){mettreAJourFormulaireAvecAdresse(monAdressePostale);}setDisabledCoordonnesPostales(false);bAdresseAControler=true;}function changeSelectionAdressePostale(){$(".inscription #selection_adresse").attr("checked",true);setDisabledCoordonnesPostales(true);var b=$(".inscription #proposition_adresses").val();if(b!="NONE"){activerMsgPatienteQas();if($(".inscription #proposition_adresses option:first").val()=="NONE"){sauvegarderAdresseCourante();$(".inscription #proposition_adresses option:eq(0)").remove();}setDisabledCoordonnesPostales(true);bAdresseAControler=false;var c=new Array(1);c[0]=new Array(2);c[0][0]="idAdresseQas";c[0][1]=b;var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"client_recuperer_adresse_postale.action",c,false,onSuccessRecupererAdressePostaleQasClient,onSuccessRecupererAdressePostaleQasClient);a.query();}}function setPoursuivreAdressePostale(){if(monAdressePostale!=null){mettreAJourFormulaireAvecAdresse(monAdressePostale);}setDisabledCoordonnesPostales(true);bAdresseAControler=false;}function setValidationAdressePostale(){if(monAdressePostale!=null){mettreAJourFormulaireAvecAdresse(adressePostaleAValider);}setDisabledCoordonnesPostales(true);bAdresseAControler=false;}function setDisabledCoordonnesPostales(a){$(".inscription #nomVoie").attr("disabled",a);$(".inscription #numVoie").attr("disabled",a);$(".inscription #complAdresse").attr("disabled",a);$(".inscription #ville").attr("disabled",a);$(".inscription #CP").attr("disabled",a);$(".inscription #pays").attr("disabled",a);}function setCheckChoixCorrectionAdressePostale(e,c,b,a){$(".inscription #selection_adresse").attr("checked",e);$(".inscription #validation_adresse").attr("checked",c);$(".inscription #poursuivre").attr("checked",b);$(".inscription #modifier").attr("checked",a);}function initChampsCorrectionAdressePostale(){$(".inscription #div_selection_adresse").hide();$(".inscription #div_validation_adresse").hide();$("#ErreurCoordonneesPostales").hide();setCheckChoixCorrectionAdressePostale(false,false,false,false);setDisabledCoordonnesPostales(false);}$(document).ready(function(){var q=new Date();var n=q.getFullYear();var o=n-121;if($(".warning").length){$(".warning").css("top",($(window).height()-$(".warning").height())/2).css("left",($(window).width()-$(".warning").width())/2);}$(".warning .close").click(function(){$(this).parents(".warning").css("display","none");$("#shadow").css("display","none");});for(var h=1;h<32;h++){$("<option value="+h+">"+h+"</option>").appendTo($(".inscription #jDnn"));}for(var c=1;c<13;c++){$("<option value="+c+">"+c+"</option>").appendTo($(".inscription #mDnn"));}for(var j=n;j>o;j--){$("<option value="+j+">"+j+"</option>").appendTo($(".inscription #aDnn"));}$(".inscription>.btnValid").click(function(){if($(".inscription #CGV").attr("checked")){var m=g();if(m>0){$("#shadow").css("display","block");$(".warning").css("display","block");if(m==1){$(".warning>div:eq(1)>span").text("Vous avez fait 1 erreur, merci de la corriger.");}else{$(".warning>div:eq(1)>span").text("Vous avez fait "+m+" erreurs, merci de les corriger.");
}}}else{$("#shadow").css("display","block");$(".warning").css("display","block");$(".warning>div:eq(1)>span").text("Veuillez accepter les conditions générales d'utilisations.");}});function g(){var t=0;$(".erreurs").removeClass("erreurs");$(".errBord").removeClass("errBord");$(".errBordL").removeClass("errBordL");if($(".inscription #civiliteid").val()=="choisir"){t++;$(".inscription #civiliteid").css("border","1px solid red");$(".inscription #civiliteid").prev().addClass("erreurs");}else{$(".inscription #civiliteid").css("border","none");$(".inscription #civiliteid").prev("label").removeClass("erreurs");}if(($(".inscription #coordonee #jDnn").val()=="defaut")||($(".inscription #coordonee #mDnn").val()=="defaut")||($(".inscription #coordonee #aDnn").val()=="defaut")){t++;$(".inscription #jDnn").prev("label").addClass("erreurs");}else{$(".inscription #jDnn").prev("label").removeClass("erreurs");}if(jQuery.trim($(".inscription #nom").val()).length<=2){t++;$(".inscription #nom").prev("div").addClass("errBordL");$(".inscription #nom").addClass("errBord");$(".inscription #nom").prev().prev().addClass("erreurs");}if(jQuery.trim($(".inscription #coordonee #prenom").val()).length<=2){t++;$(".inscription #prenom").prev("div").addClass("errBordL");$(".inscription #prenom").addClass("errBord");$(".inscription #prenom").prev().prev().addClass("erreurs");}var r=new RegExp("^[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*@[a-z0-9]+([_|.|-]{1}[a-z0-9]+)*[.]{1}[a-z]{2,6}$","i");if(!r.exec($(".inscription #email").val())){t++;$(".inscription #email").prev("div").addClass("errBordL");$(".inscription #email").addClass("errBord");$(".inscription #email").prev().prev().addClass("erreurs");}var s=new RegExp("[0-9]{1,}");if((jQuery.trim($(".inscription #mdp").val()).length<6)||!s.exec($(".inscription #mdp").val())){t++;$(".inscription #mdp").prev("div").addClass("errBordL");$(".inscription #mdp").addClass("errBord");$(".inscription #mdp").prev().prev().addClass("erreurs");}if($(".inscription #mdp").val()!=$(".inscription #confirmMdp").val()){t++;$(".inscription #confirmMdp").prev("div").addClass("errBordL");$(".inscription #confirmMdp").addClass("errBord");$(".inscription #confirmMdp").prev().prev().addClass("erreurs");}if(jQuery.trim($(".inscription #maReponse").val()).length<=2){t++;$(".inscription #maReponse").prev("div").addClass("errBordL");$(".inscription #maReponse").addClass("errBord");$(".inscription #maReponse").prev().prev().addClass("erreurs");}var m=$("#questionCreate").css("display");if((m=="block")&&(jQuery.trim($(".inscription #maQuestion").val()).length<=2)){t++;$(".inscription #maQuestion").prev("div").addClass("errBordL");$(".inscription #maQuestion").addClass("errBord");$(".inscription #maQuestion").prev().prev().addClass("erreurs");}$(".inscription #enfants .ligneEnfant").each(function(){if(jQuery("input[type=text]",this).val().length<=2){jQuery("input[type=text]",this).prev("div").addClass("errBordL");jQuery("input[type=text]",this).addClass("errBord");jQuery("input[type=text]",this).prev().prev().addClass("erreurs");t++;}if(($(".inscription #coordonee #jDnn").val()=="defaut")||($(".inscription #coordonee #mDnn").val()=="defaut")||($(".inscription #coordonee #aDnn").val()=="defaut")){t++;$(".inscription #jDnn").prev("label").addClass("erreurs");}else{$(".inscription #jDnn").prev("label").removeClass("erreurs");}});return t;}$("#magasin li a").live("mouseenter",function(){if(!leMagasinEstChoisi){var r=$("div",$(this).parent()).html();$("#currentMagasin > div, #currentMag > div").html(r);var m=$(this).parent().find(".posDansTab").val();posDansTabCourantShared=m;synchroInfosMagasinClient(m);}}).live("click",function(){return false;});$("#adresse li a").live("mouseenter",function(){if(!leMagasinEstChoisi){var r=$("div",$(this).parent()).html();$("#currentMagasin > div, #currentMag > div").html(r);var m=$(this).parent().find(".posDansTab").val();posDansTabCourantShared=m;synchroInfosMagasinClient(m);}});$(".btnChoose").live("click",function(){$("#currentMag > p, .btnChanger").css("display","block");$("#currentMag, #magProche").css("display","block");$("#CPostal, #magasin .sepaOu, .btnChoose ").css("display","none");$("#popinChoixMagClient #adresse").addClass("magasinChoisi");leMagasinEstChoisi=true;$("#popin .close").click();});$(".btnChanger, .btnOk").live("click",function(){$("#currentMag > p, .btnChanger").css("display","none");$("#CPostal, #magasin .sepaOu, .btnChoose").css("display","block");$("#popinChoixMagClient #adresse").removeClass("magasinChoisi");leMagasinEstChoisi=false;});$(".gmaps #adresse li a").live("mouseenter",function(){var m=jQuery("div",$(this).parent()).html();$("#currentMag>div").html(m);});$("#choixQuestion").change(function(){if($("#choixQuestion").val()=="create"){$("#questionCreateOutter").addClass("isShowed");question=true;}else{$("#questionCreateOutter").removeClass("isShowed");question=false;}});if($("#newsletter").length){var b=$("#newsLeclerc, #fromLeclerc"),l=$("#allNews, #leclercVoyage, #fromSpecialises"),f=b.add(l);
$ALLNewsCheck=$("#allNews");$ALLNewsCheck.click(function(){if($ALLNewsCheck.attr("checked")){f.attr("checked",true);}else{f.attr("checked",false);}});l.click(function(){if($(this).attr("checked")){f.attr("checked",true);}else{l.attr("checked",false);}});b.click(function(){if($(this).attr("checked")){b.attr("checked",true);}else{f.attr("checked",false);}});}if($("#divConnexionClientPopin").length){openPopinConnexionClient("#divConnexionClientPopin",476);}if($("#cnxInscrit").length){var a=$("#numInscrit_CLIENT0001, #codeInscrit_CLIENT0001");var e=$("#email_CLIENT0001, #mdp_CLIENT0001");var k=$("#idBoutonOk_CLIENT0001");$("#cnxInscrit").find(":input").bind("focus keyup",function(){if($("#numInscrit_CLIENT0001").val()||$("#codeInscrit_CLIENT0001").val()){e.attr("disabled","disabled").addClass("disabled");}else{e.removeAttr("disabled","disabled").removeClass("disabled");}if($("#email_CLIENT0001").val()||$("#mdp_CLIENT0001").val()){a.attr("disabled","disabled").addClass("disabled");}else{a.removeAttr("disabled","disabled").removeClass("disabled");}if(($("#numInscrit_CLIENT0001").val()&&$("#codeInscrit_CLIENT0001").val())||($("#email_CLIENT0001").val()&&$("#mdp_CLIENT0001").val())){k.removeAttr("disabled").removeClass("disabled");}else{k.attr("disabled","disabled").addClass("disabled");}});}if($("#cnxCarte").length){var k=$("#idBoutonOkRattachement_CLIENT0001");$("#cnxCarte").find(":input").bind("focus keyup",function(){if($("#numCarte_CLIENT0001").val()&&$("#codeSecret_CLIENT0001").val()){k.removeAttr("disabled").removeClass("disabled");}else{k.attr("disabled","disabled").addClass("disabled");}});}$("#connexion #emailOubli_CLIENT0001").focus(function(){if($(this).val()=="email que vous avez saisi lors de votre inscription"){$(this).val("");}});$("#connexion #emailOubli_CLIENT0001").blur(function(){if($(this).val()==""){$(this).val("email que vous avez saisi lors de votre inscription");}});$("#emailBlock > input#emailGestionClientid").change(function(){validerEmail($(this).val(),"#emailBlock > input#emailGestionClientid");});});var g_champ_email=null;var emailATester=null;var retourVerifEmailVO=null;function reinitChampEmail(a){$(a).removeClass("champEnErreur");$(a).autocomplete("destroy");}function onSuccessValiderEmail(){miseEnNormalChampPopin(g_champ_email);var a=this.getData();retourVerifEmailVO=a.retourVerifEmailVO;}function verifValiditeEmailSecours(a){confirm("Utilisation de la fonction de secours");var b=new RegExp("\b(^[_A-Za-z0-9-]+(.[_A-Za-z0-9-]+)*@([A-Za-z0-9-])+((.com)|(.net)|(.org)|(.info)|(.edu)|(.mil)|(.gov)|(.biz)|(.ws)|(.us)|(.tv)|(.cc)|(.aero)|(.arpa)|(.coop)|(.int)|(.jobs)|(.museum)|(.name)|(.pro)|(.travel)|(.nato)|(..{2,3})|(..{2,3}..{2,3}))$)\b","i");var c=false;if(b.test(a)){c=true;}return(c);}function verifValiditeChampEmail(){var c=true;if(retourVerifEmailVO!=null){var a=retourVerifEmailVO.codeRetour;if(a=="01"){c=true;}else{if(a=="02"){c=verifValiditeEmailSecours(emailATester);}else{if(a=="03"){c=false;var b=retourVerifEmailVO.propositionsEmail;if(b.length>0){$(g_champ_email).autocomplete({source:b,delay:0,select:function(e,f){reinitChampEmail(g_champ_email);retourVerifEmailVO.codeRetour="01";},change:function(e,f){reinitChampEmail(g_champ_email);$(g_champ_email).autocomplete("widget").css("width",$(g_champ_email).width()+2);$(g_champ_email).autocomplete("widget").css("margin-left","1px");}});$(g_champ_email).autocomplete("search");$(g_champ_email).toggleClass("champEnErreur");$(g_champ_email).autocomplete("widget").css("width",$(g_champ_email).width()+2);$(g_champ_email).autocomplete("widget").css("margin-left","1px");}}}}}return c;}function onErrorValiderEmail(){}function validerEmail(b,e){g_champ_email=e;emailATester=b;var c=new Array(1);c[0]=new Array(2);c[0][0]="email";c[0][1]=b;var a=null;a=new AjaxInvoker(prefixeUrlSocleClient+"validation_valider_email.action",c,false,onSuccessValiderEmail,onErrorValiderEmail);a.query();}function recupererSoldePoint(f,c){var e=new Array(1);e[0]=new Array(1);e[0][0]="numeroCarte";e[0][1]=f;var a=onSuccessRecupererSoldePoint_CLIENT_0015;var b=onErrorRecupererSoldePoint_CLIENT_0015;if(c=="toolbar"){a=onSuccessRecupererSoldePoint_toolbar;b=onErrorRecupererSoldePoint_toolbar;}invoker=new AjaxInvoker(prefixeUrlSocleClient+"client_recupererSolde.action",e,true,a,b,false,false,false,true);invoker.query();}function onSuccessRecupererSoldePoint_toolbar(){var e=this.getData();var b=e.soldeCarte;var c="";var a="";c+='<p class="Fright tbPrix">';if((b==null)||((b.codeErreur!="00")&&(b.codeErreur!="60"))){c+="Indisponible";}else{if(b.codeErreur=="60"){c+="0,00&euro;";}else{c+=b.soldeCarteFormate+"&euro;";a+="au "+b.derniereMiseAJourFormate;}}c+="</p>";$("#soldePoints").html(c);$("#dateSoldePoints").html(a);}function onErrorRecupererSoldePoint_toolbar(){}function onSuccessRecupererSoldePoint_CLIENT_0015(){var c=this.getData();var b=c.soldeCarte;var a="";if((b==null)||((b.codeErreur!="00")&&(b.codeErreur!="60"))){$(".tickets_e .Fright").html("<h5><span>Indisponible</span></h5>");
}else{if(b.codeErreur=="60"){$("#entierSoldePointClient0015").html("0");$("#decimalSoldePointClient0015").html("00");}else{$("#entierSoldePointClient0015").html(b.soldeCarteFormate.split(",")[0]);$("#decimalSoldePointClient0015").html(b.soldeCarteFormate.split(",")[1]);a+=b.derniereMiseAJourFormate;}}$("#dateSoldePointClient0015").html(a);}function onErrorRecupererSoldePoint_CLIENT_0015(){}function mettreClientEnSession(j,h,e,a){var b=false;if((h!=null)&&(h!="")){b=h;}var k=mettreClientEnSession_fonctionSuccess;if((e!=null)&&(e!="")){k=e;}var f=mettreClientEnSession_fonctionError;if((a!=null)&&(a!="")){f=a;}var c=new Array(2);c[0]=new Array(2);c[0][0]="idClient";c[0][1]=j;c[1]=new Array(2);c[1][0]="reloadClient";c[1][1]=true;var g=new AjaxInvoker("/?template=tpl.gestionSession.jsp",c,b,k,f);g.query();}function mettreClientEnSession_fonctionSuccess(){}function mettreClientEnSession_fonctionError(){}function mettreClientCompletEnSession(k,h,e,a){var b=false;if((h!=null)&&(h!="")){b=h;}var j=mettreClientCompletEnSession_fonctionSuccess;if((e!=null)&&(e!="")){j=e;}var f=mettreClientCompletEnSession_fonctionError;if((a!=null)&&(a!="")){f=a;}var c=new Array(2);c[0]=new Array(2);c[0][0]="client";c[0][1]=k;c[1]=new Array(2);c[1][0]="provientBC";c[1][1]=true;var g=new AjaxInvoker("/?template=tpl.gestionSession.jsp",c,b,j,f);g.query();}function mettreClientCompletEnSession_fonctionSuccess(){}function mettreClientCompletEnSession_fonctionError(){}function mettreClientCompletEnSessionAvecFusion(m,k,e,j,f,a){var b=false;if((j!=null)&&(j!="")){b=j;}var l=mettreClientCompletEnSessionAvecFusion_fonctionSuccess;if((f!=null)&&(f!="")){l=f;}var g=mettreClientCompletEnSessionAvecFusion_fonctionError;if((a!=null)&&(a!="")){g=a;}var c=new Array(5);c[0]=new Array(2);c[0][0]="client";c[0][1]=m;c[1]=new Array(2);c[1][0]="provientBC";c[1][1]=true;c[2]=new Array(2);c[2][0]="estAConnecter";c[2][1]=true;c[3]=new Array(2);c[3][0]="idFusion";c[3][1]=k;c[4]=new Array(2);c[4][0]="emailClient";c[4][1]=e;var h=new AjaxInvoker("/?template=tpl.gestionSession.jsp",c,b,l,g);h.query();}function mettreClientCompletEnSessionAvecFusion_fonctionSuccess(){}function mettreClientCompletEnSessionAvecFusion_fonctionError(){}function stringToHTMLString(e){var j="";var b=false;var a=e.length;var h;for(var g=0;g<a;g++){h=e.charAt(g);if(h==" "){if(b){b=false;j+="&nbsp;";}else{b=true;j+=" ";}}else{b=false;if(h=='"'){j+="&quot;";}else{if(h=="&"){j+="&amp;";}else{if(h=="<"){j+="&lt;";}else{if(h==">"){j+="&gt;";}else{if(h=="\n"){j+="&lt;br/&gt;";}else{var f=65535&h;if(f<160){j+=h;}else{j+="&#";j+=f.toString(16);j+=";";}}}}}}}}return j;}function stringJsonToHTMLString(a){var e="";var c=a;while(0<c.indexOf('"')){e+=c.substring(0,c.indexOf('":"')+3);c=c.substring(0,c.indexOf('":"')+3);var b=c.substring(a.indexOf('";"'),a.length);}return e;}function HTMLStringToString(b){$("html").append("<span id='espaceTempPourConversion'></span>");$("#espaceTempPourConversion").html(b);var a=$("#espaceTempPourConversion").text();$("#espaceTempPourConversion").remove();return a;}function transcode_date(a){return a.substr(6,4)+a.substr(3,2)+a.substr(0,2);}
/*
 * jQuery UI 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(f,e){function b(g,c){var h=g.nodeName.toLowerCase();if("area"===h){c=g.parentNode;h=c.name;if(!g.href||!h||c.nodeName.toLowerCase()!=="map"){return false;}g=f("img[usemap=#"+h+"]")[0];return !!g&&a(g);}return(/input|select|textarea|button|object/.test(h)?!g.disabled:"a"==h?g.href||c:c)&&a(g);}function a(c){return !f(c).parents().andSelf().filter(function(){return f.curCSS(this,"visibility")==="hidden"||f.expr.filters.hidden(this);}).length;}f.ui=f.ui||{};if(!f.ui.version){f.extend(f.ui,{version:"1.8.13",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});f.fn.extend({_focus:f.fn.focus,focus:function(g,c){return typeof g==="number"?this.each(function(){var h=this;setTimeout(function(){f(h).focus();c&&c.call(h);},g);}):this._focus.apply(this,arguments);},scrollParent:function(){var c;c=f.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(f.curCSS(this,"position",1))&&/(auto|scroll)/.test(f.curCSS(this,"overflow",1)+f.curCSS(this,"overflow-y",1)+f.curCSS(this,"overflow-x",1));}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(f.curCSS(this,"overflow",1)+f.curCSS(this,"overflow-y",1)+f.curCSS(this,"overflow-x",1));}).eq(0);return/fixed/.test(this.css("position"))||!c.length?f(document):c;
},zIndex:function(g){if(g!==e){return this.css("zIndex",g);}if(this.length){g=f(this[0]);for(var c;g.length&&g[0]!==document;){c=g.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(g.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c;}}g=g.parent();}}return 0;},disableSelection:function(){return this.bind((f.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault();});},enableSelection:function(){return this.unbind(".ui-disableSelection");}});f.each(["Width","Height"],function(g,c){function m(q,o,h,r){f.each(l,function(){o-=parseFloat(f.curCSS(q,"padding"+this,true))||0;if(h){o-=parseFloat(f.curCSS(q,"border"+this+"Width",true))||0;}if(r){o-=parseFloat(f.curCSS(q,"margin"+this,true))||0;}});return o;}var l=c==="Width"?["Left","Right"]:["Top","Bottom"],k=c.toLowerCase(),j={innerWidth:f.fn.innerWidth,innerHeight:f.fn.innerHeight,outerWidth:f.fn.outerWidth,outerHeight:f.fn.outerHeight};f.fn["inner"+c]=function(h){if(h===e){return j["inner"+c].call(this);}return this.each(function(){f(this).css(k,m(this,h)+"px");});};f.fn["outer"+c]=function(n,h){if(typeof n!=="number"){return j["outer"+c].call(this,n);}return this.each(function(){f(this).css(k,m(this,n,true,h)+"px");});};});f.extend(f.expr[":"],{data:function(g,c,h){return !!f.data(g,h[3]);},focusable:function(c){return b(c,!isNaN(f.attr(c,"tabindex")));},tabbable:function(g){var c=f.attr(g,"tabindex"),h=isNaN(c);return(h||c>=0)&&b(g,!h);}});f(function(){var g=document.body,c=g.appendChild(c=document.createElement("div"));f.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});f.support.minHeight=c.offsetHeight===100;f.support.selectstart="onselectstart" in c;g.removeChild(c).style.display="none";});f.extend(f.ui,{plugin:{add:function(g,c,j){g=f.ui[g].prototype;for(var h in j){g.plugins[h]=g.plugins[h]||[];g.plugins[h].push([c,j[h]]);}},call:function(g,c,j){if((c=g.plugins[c])&&g.element[0].parentNode){for(var h=0;h<c.length;h++){g.options[c[h][0]]&&c[h][1].apply(g.element,j);}}}},contains:function(g,c){return document.compareDocumentPosition?g.compareDocumentPosition(c)&16:g!==c&&g.contains(c);},hasScroll:function(g,c){if(f(g).css("overflow")==="hidden"){return false;}c=c&&c==="left"?"scrollLeft":"scrollTop";var h=false;if(g[c]>0){return true;}g[c]=1;h=g[c]>0;g[c]=0;return h;},isOverAxis:function(g,c,h){return g>c&&g<c+h;},isOver:function(g,c,m,l,k,j){return f.ui.isOverAxis(g,m,k)&&f.ui.isOverAxis(c,l,j);}});}})(jQuery);
/*
 * jQuery UI Widget 1.8.13
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,f){if(a.cleanData){var e=a.cleanData;a.cleanData=function(b){for(var h=0,g;(g=b[h])!=null;h++){a(g).triggerHandler("remove");}e(b);};}else{var c=a.fn.remove;a.fn.remove=function(b,g){return this.each(function(){if(!g){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove");});}}return c.call(a(this),b,g);});};}a.widget=function(b,k,j){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!j){j=k;k=a.Widget;}a.expr[":"][g]=function(l){return !!a.data(l,b);};a[h]=a[h]||{};a[h][b]=function(l,m){arguments.length&&this._createWidget(l,m);};k=new k;k.options=a.extend(true,{},k.options);a[h][b].prototype=a.extend(true,k,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},j);a.widget.bridge(b,a[h][b]);};a.widget.bridge=function(b,g){a.fn[b]=function(m){var l=typeof m==="string",k=Array.prototype.slice.call(arguments,1),j=this;m=!l&&k.length?a.extend.apply(null,[true,m].concat(k)):m;if(l&&m.charAt(0)==="_"){return j;}l?this.each(function(){var n=a.data(this,b),h=n&&a.isFunction(n[m])?n[m].apply(n,k):n;if(h!==n&&h!==f){j=h;return false;}}):this.each(function(){var h=a.data(this,b);h?h.option(m||{})._init():a.data(this,b,new g(m,this));});return j;};};a.Widget=function(b,g){arguments.length&&this._createWidget(b,g);};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,h){a.data(h,this.widgetName,this);this.element=a(h);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy();});this._create();this._trigger("create");this._init();},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName];},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled");},widget:function(){return this.element;},option:function(b,h){var g=b;if(arguments.length===0){return a.extend({},this.options);}if(typeof b==="string"){if(h===f){return this.options[b];}g={};g[b]=h;}this._setOptions(g);
return this;},_setOptions:function(b){var g=this;a.each(b,function(j,h){g._setOption(j,h);});return this;},_setOption:function(b,g){this.options[b]=g;if(b==="disabled"){this.widget()[g?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",g);}return this;},enable:function(){return this._setOption("disabled",false);},disable:function(){return this._setOption("disabled",true);},_trigger:function(b,k,j){var h=this.options[b];k=a.Event(k);k.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();j=j||{};if(k.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];k[g]=k.originalEvent[g];}}this.element.trigger(k,j);return !(a.isFunction(h)&&h.call(this.element[0],k,j)===false||k.isDefaultPrevented());}};})(jQuery);(function(g){g.ui=g.ui||{};var f=/left|center|right/,e=/top|center|bottom/,b=g.fn.position,a=g.fn.offset;g.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments);}c=g.extend({},c);var l=g(c.of),s=l[0],q=(c.collision||"flip").split(" "),r=c.offset?c.offset.split(" "):[0,0],o,m,n;if(s.nodeType===9){o=l.width();m=l.height();n={top:0,left:0};}else{if(s.setTimeout){o=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()};}else{if(s.preventDefault){c.at="left top";o=m=0;n={top:c.of.pageY,left:c.of.pageX};}else{o=l.outerWidth();m=l.outerHeight();n=l.offset();}}}g.each(["my","at"],function(){var h=(c[this]||"").split(" ");if(h.length===1){h=f.test(h[0])?h.concat(["center"]):e.test(h[0])?["center"].concat(h):["center","center"];}h[0]=f.test(h[0])?h[0]:"center";h[1]=e.test(h[1])?h[1]:"center";c[this]=h;});if(q.length===1){q[1]=q[0];}r[0]=parseInt(r[0],10)||0;if(r.length===1){r[1]=r[0];}r[1]=parseInt(r[1],10)||0;if(c.at[0]==="right"){n.left+=o;}else{if(c.at[0]==="center"){n.left+=o/2;}}if(c.at[1]==="bottom"){n.top+=m;}else{if(c.at[1]==="center"){n.top+=m/2;}}n.left+=r[0];n.top+=r[1];return this.each(function(){var y=g(this),u=y.outerWidth(),t=y.outerHeight(),k=parseInt(g.curCSS(this,"marginLeft",true))||0,j=parseInt(g.curCSS(this,"marginTop",true))||0,A=u+k+(parseInt(g.curCSS(this,"marginRight",true))||0),z=t+j+(parseInt(g.curCSS(this,"marginBottom",true))||0),x=g.extend({},n),h;if(c.my[0]==="right"){x.left-=u;}else{if(c.my[0]==="center"){x.left-=u/2;}}if(c.my[1]==="bottom"){x.top-=t;}else{if(c.my[1]==="center"){x.top-=t/2;}}x.left=Math.round(x.left);x.top=Math.round(x.top);h={left:x.left-k,top:x.top-j};g.each(["left","top"],function(B,v){g.ui.position[q[B]]&&g.ui.position[q[B]][v](x,{targetWidth:o,targetHeight:m,elemWidth:u,elemHeight:t,collisionPosition:h,collisionWidth:A,collisionHeight:z,offset:r,my:c.my,at:c.at});});g.fn.bgiframe&&y.bgiframe();y.offset(g.extend(x,{using:c.using}));});};g.ui.position={fit:{left:function(c,h){var j=g(window);j=h.collisionPosition.left+h.collisionWidth-j.width()-j.scrollLeft();c.left=j>0?c.left-j:Math.max(c.left-h.collisionPosition.left,c.left);},top:function(c,h){var j=g(window);j=h.collisionPosition.top+h.collisionHeight-j.height()-j.scrollTop();c.top=j>0?c.top-j:Math.max(c.top-h.collisionPosition.top,c.top);}},flip:{left:function(c,j){if(j.at[0]!=="center"){var n=g(window);n=j.collisionPosition.left+j.collisionWidth-n.width()-n.scrollLeft();var l=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,m=j.at[0]==="left"?j.targetWidth:-j.targetWidth,k=-2*j.offset[0];c.left+=j.collisionPosition.left<0?l+m+k:n>0?l+m+k:0;}},top:function(c,j){if(j.at[1]!=="center"){var n=g(window);n=j.collisionPosition.top+j.collisionHeight-n.height()-n.scrollTop();var l=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,m=j.at[1]==="top"?j.targetHeight:-j.targetHeight,k=-2*j.offset[1];c.top+=j.collisionPosition.top<0?l+m+k:n>0?l+m+k:0;}}}};if(!g.offset.setOffset){g.offset.setOffset=function(c,j){if(/static/.test(g.curCSS(c,"position"))){c.style.position="relative";}var n=g(c),l=n.offset(),m=parseInt(g.curCSS(c,"top",true),10)||0,k=parseInt(g.curCSS(c,"left",true),10)||0;l={top:j.top-l.top+m,left:j.left-l.left+k};"using" in j?j.using.call(c,l):n.css(l);};g.fn.offset=function(c){var h=this[0];if(!h||!h.ownerDocument){return null;}if(c){return this.each(function(){g.offset.setOffset(this,c);});}return a.call(this);};}})(jQuery);(function(b){var a=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var e=this,c=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(e.options.disabled||e.element.attr("readonly"))){f=false;var g=b.ui.keyCode;switch(h.keyCode){case g.PAGE_UP:e._move("previousPage",h);break;case g.PAGE_DOWN:e._move("nextPage",h);break;case g.UP:e._move("previous",h);h.preventDefault();break;case g.DOWN:e._move("next",h);h.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(e.menu.active){f=true;
h.preventDefault();}case g.TAB:if(!e.menu.active){return;}e.menu.select(h);break;case g.ESCAPE:e.element.val(e.term);e.close(h);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=e.element.val()){e.selectedItem=null;e.search(null,h);}},e.options.delay);break;}}}).bind("keypress.autocomplete",function(g){if(f){f=false;g.preventDefault();}}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val();}}).bind("blur.autocomplete",function(g){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(g);e._change(g);},150);}});this._initSource();this.response=function(){return e._response.apply(e,arguments);};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",c)[0]).mousedown(function(h){var g=e.menu.element[0];b(h.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(j){j.target!==e.element[0]&&j.target!==g&&!b.ui.contains(g,j.target)&&e.close();});},1);setTimeout(function(){clearTimeout(e.closing);},13);}).menu({focus:function(h,g){g=g.item.data("item.autocomplete");false!==e._trigger("focus",h,{item:g})&&/^key/.test(h.originalEvent.type)&&e.element.val(g.value);},selected:function(l,k){var j=k.item.data("item.autocomplete"),g=e.previous;if(e.element[0]!==c.activeElement){e.element.focus();e.previous=g;setTimeout(function(){e.previous=g;e.selectedItem=j;},1);}false!==e._trigger("select",l,{item:j})&&e.element.val(j.value);e.term=e.element.val();e.close(l);e.selectedItem=j;},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term);}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe();},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this);},_setOption:function(e,c){b.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();if(e==="appendTo"){this.menu.element.appendTo(b(c||"body",this.element[0].ownerDocument)[0]);}e==="disabled"&&c&&this.xhr&&this.xhr.abort();},_initSource:function(){var e=this,c,f;if(b.isArray(this.options.source)){c=this.options.source;this.source=function(h,g){g(b.ui.autocomplete.filter(c,h.term));};}else{if(typeof this.options.source==="string"){f=this.options.source;this.source=function(h,g){e.xhr&&e.xhr.abort();e.xhr=b.ajax({url:f,data:h,dataType:"json",autocompleteRequest:++a,success:function(j){this.autocompleteRequest===a&&g(j);},error:function(){this.autocompleteRequest===a&&g([]);}});};}else{this.source=this.options.source;}}},search:function(e,c){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength){return this.close(c);}clearTimeout(this.closing);if(this._trigger("search",c)!==false){return this._search(e);}},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response);},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open");}else{this.close();}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading");},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c);}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem});},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c;}return b.map(c,function(e){if(typeof e==="string"){return{label:e,value:e};}return b.extend({label:e.label||e.value,value:e.value||e.label},e);});},_suggest:function(e){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,e);this.menu.deactivate();this.menu.refresh();c.show();this._resizeMenu();c.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"));},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()));},_renderMenu:function(e,c){var f=this;b.each(c,function(h,g){f._renderItem(e,g);});},_renderItem:function(e,c){return b("<li></li>").data("item.autocomplete",c).append(b("<a></a>").text(c.label)).appendTo(e);},_move:function(e,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate();}else{this.menu[e](c);}}else{this.search(null,c);}},widget:function(){return this.menu.element;}});b.extend(b.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");},filter:function(e,c){var f=new RegExp(b.ui.autocomplete.escapeRegex(c),"i");return b.grep(e,function(g){return f.test(g.label||g.value||g);
});}});})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();b.select(c);}});this.refresh();},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent());}).mouseleave(function(){b.deactivate();});},activate:function(k,h){this.deactivate();if(this.hasScroll()){var f=h.offset().top-this.element.offset().top,j=this.element.scrollTop(),l=this.element.height();if(f<0){this.element.scrollTop(j+f);}else{f>=l&&this.element.scrollTop(j+f-l+h.height());}}this.active=h.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",k,{item:h});},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null;}},next:function(b){this.move("next",".ui-menu-item:first",b);},previous:function(b){this.move("prev",".ui-menu-item:last",b);},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length;},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length;},move:function(g,f,c){if(this.active){g=this.active[g+"All"](".ui-menu-item").eq(0);g.length?this.activate(c,g):this.activate(c,this.element.children(f));}else{this.activate(c,this.element.children(f));}},nextPage:function(j){if(this.hasScroll()){if(!this.active||this.last()){this.activate(j,this.element.children(".ui-menu-item:first"));}else{var f=this.active.offset().top,c=this.element.height(),h=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-f-c+a(this).height();return b<10&&b>-10;});h.length||(h=this.element.children(".ui-menu-item:last"));this.activate(j,h);}}else{this.activate(j,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"));}},previousPage:function(g){if(this.hasScroll()){if(!this.active||this.first()){this.activate(g,this.element.children(".ui-menu-item:last"));}else{var f=this.active.offset().top,c=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-f+c-a(this).height();return b<10&&b>-10;});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(g,result);}}else{this.activate(g,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"));}},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight");},select:function(b){this._trigger("selected",b,{item:this.active});}});})(jQuery);if(typeof pathTitreFlash=="undefined"){pathTitreFlash="./js/titre/";}$(document).ready(function(){$("#etre_contacte").find(":radio").click(function(){if($("#etre_contacte_tel").attr("checked")){$("#plage_horaire_content").css("visibility","visible");}else{$("#plage_horaire_content").css("visibility","hidden");}});$("#bt-plusDeCriteres").click(function(){$(this).toggleClass("open");$("#contenu-plusDeCriteres").toggle();return false;});$resultatProduits=$("#resultat-produits");$resultatDossiers=$("#resultat-dossiers");$resultatPhotosVideos=$("#resultat-photos-videos");$tousLesResultats=$resultatProduits.add($resultatDossiers).add($resultatPhotosVideos);$("#onglets-recherche").find("a.tab").click(function(){$this=$(this);$(".active").removeClass("active");$(this).addClass("active");$tousLesResultats.css("display","none");var q=$(this).attr("title");if(q=="tous-les-resultats"){$tousLesResultats.css("display","block");}else{$("#"+q).css("display","block");}return false;});if($(".sous_bloc_course").length){$(".nav_etapes li").mouseenter(function(){$(this).parent().children("li.active").removeClass("active").children("img").attr("src","images/circle_small.png");$(this).addClass("active");$(this).children("img").attr("src","images/circle_big.png");$(this).parent().parent().parent(".sous_bloc_course").children(".content").hide();var q=$(this).parent().children("li.active").attr("class").split(" ")[0];$(this).parent().parent().parent(".sous_bloc_course").children(".content."+q).show();});}else{$(".nav_etapes li").mouseenter(function(){$(this).parent().children("li.active").removeClass("active").children("img").attr("src","images/circle_small_double.png");$(this).addClass("active");$(this).children("img").attr("src","images/circle_big_double.png");$(this).parent().parent().parent(".sous_bloc_course_double").children(".content").hide();var q=$(this).parent().children("li.active").attr("class").split(" ")[0];$(this).parent().parent().parent(".sous_bloc_course_double").children(".content."+q).show();});}$(".tab_onglet").click(function(){$(".tab_onglet").removeClass("active");
$(this).addClass("active");if($(".sous_bloc_course_double").is(":visible")){$(".sous_bloc_course_double").hide();}$(".contenu_courses").hide();var q=$(this).attr("rel");$(".sous_bloc_categorie #"+q).show();});$(".onglet_courses_inner a").click(function(){if($(".sous_bloc_course_double").is(":hidden")){$(".tab_onglet").removeClass("active");$(".contenu_courses").hide();$(".sous_bloc_course_double").show();}});$(".menu_onglet .tab").click(function(){$(".tab").removeClass("active");$(this).addClass("active");$(".content_onglet").hide();var q=$(this).attr("rel");$("#"+q).show();});if($("#menuCarousel").length){$("#menuCarousel").each(function(s){var t=$(this);var r=t.find("li").length;var u=r*$("#menuCarouselInner li").width();$("#menuCarouselInner ul").css("width",u+"px");var q=Math.round(t.find("#menuCarouselInner").width()/t.find("li").width());if(r>q){t.serialScroll({target:"#menuCarouselInner",event:"click",items:"li",prev:".prev",next:".next",axis:"x",duration:700,force:true,start:0,cycle:false,lazy:false,exclude:q-1,constant:true,onBefore:function(y,x,v,A,z){$prev=v.parents("#menuCarousel").find(".prev").removeClass("hide");$next=v.parents("#menuCarousel").find(".next").removeClass("hide");if(z==0){$prev.addClass("hide");}else{if(z==A.length-q){$next.addClass("hide");}}}}).find(".prev").addClass("hide");}else{t.find(".prev, .next").addClass("hide");}});}$(".contenu_courses").children(".checkbox").find(":checkbox").attr("checked",false);$(".allCheckbox input").click(function(){$allCheckbox=$(this).parents(".contenu_courses").children(".checkbox");var q=$allCheckbox.find(":checkbox");if(this.checked){q.attr("checked",true);}else{q.attr("checked",false);}});$(".categorie input").click(function(){$categorieCheckbox=$(this).parent().next();var q=$categorieCheckbox.find(":checkbox");if(this.checked){q.attr("checked",true);}else{$(this).parents(".contenu_courses").find(".allCheckbox input").attr("checked",false);q.attr("checked",false);}});$(".sous_categorie input").click(function(){if(!this.checked){$(this).parents(".contenu_courses").find(".allCheckbox input").attr("checked",false);$(this).parents(".sous_categorie").prev().find("input").attr("checked",false);}});$(".btnAnnul").click(function(){$(this).parents(".contenu_courses").find("input").attr("checked",false);});if($(".pushsCarousel4").length){$(".pushsCarousel4").each(function(t){var s=$(this);var r=s.find("li").length;var q=Math.round(s.find(".pushsCarouselInner4").width()/s.find("li").width());if(r>q){s.serialScroll({target:".pushsCarouselInner",event:"click",items:"li",prev:"a.prev",next:"a.next",axis:"x",duration:700,force:true,start:0,cycle:false,lazy:false,exclude:2,constant:true,onBefore:function(x,v,u,z,y){$prev=u.parents(".pushsCarousel4").children(".prev").removeClass("hide");$next=u.parents(".pushsCarousel4").children(".next").removeClass("hide");if(y==0){$prev.addClass("hide");}else{if(y==z.length-3){$next.addClass("hide");}}}}).find(".prev").addClass("hide");}else{s.find(".prev,.next").addClass("hide");}});}if($(".swf-titre-1L").length){$(".swf-titre-1L").each(function(r){texte=$(this).html();couleurfondtexte=$(this).css("color");couleurTexte="FFFFFF";couleurfond="FFFFFF";if(couleurfondtexte.charAt(0)=="#"){couleurfondtexte=couleurfondtexte.substring(1,(couleurfondtexte.length));}else{var s=new RegExp("[rgb(, )]+","g");var q=couleurfondtexte.split(s);couleurfondtexte=toHex(q[1])+toHex(q[2])+toHex(q[3]);}if(typeof(pathTitreFlash)=="undefined"){pathTitreFlash="./js/titre/";}tag='<object type="application/x-shockwave-flash" data="'+pathTitreFlash+"titre.swf?titre2="+texte+"&colorTXT="+couleurTexte+"&colorBG="+couleurfondtexte+'" width="450" height="50"><param name="movie" value="'+pathTitreFlash+"titre.swf?titre2="+texte+"&colorTXT="+couleurTexte+"&colorBG="+couleurfondtexte+'" /><param name="wmode" value="transparent" /></object>';$(this).html(tag);});}if($("#drag_grossesse").length){var h=14,b=25,k=39,e=28,l=$("#semaine_limite").text(),n=((l-b)*k)+k,m=h+(e-b)*k;function c(q){titre=q+"�me semaine de grossesse";$("#titre_grossesse").text(titre);bg=$("#titre_grossesse").css("color");if(bg.charAt(0)=="#"){bg=bg.substring(1,(bg.length));}else{var s=new RegExp("[rgb(, )]+","g");var r=bg.split(s);bg=toHex(r[1])+toHex(r[2])+toHex(r[3]);}$("#titre_grossesse").html('<object type="application/x-shockwave-flash" data="'+pathTitreFlash+'article.swf" width="705" height="51"><param name="movie" value="'+pathTitreFlash+'article.swf" /><param name="wmode" value="transparent" /><param name="flashvars" value="texte='+titre+"&couleurfond="+bg+'" />'+titre+"</object>");}$("#drag_grossesse").bind("drag",function(r){var q=Math.round($("#slider_grossesse").offset().left);var s=r.offsetX-q;if(s<h){s=h;}if(s>n-25){s=n-25;}$(this).css({left:s});}).bind("dragend",function(s){var r=Math.round($("#slider_grossesse").offset().left);var t=s.offsetX-r;var t=Math.round((t-h)/k)*k+h;if(t<h){t=h;}if(t>n-25){t=n-25;}$(this).css({left:t});var q=Math.round(t/k)+b;c(q);});$("#slider_grossesse_limite").css("width",n);
$("#drag_grossesse").css("left",m);c(e);}if($("#choix_carte_bancaire").length){var o=$("#choix_carte_bancaire"),g=o.find("tr"),a=o.find("input:radio"),f=a.filter(":checked"),j="current";a.click(function(){g.removeClass(j);$(this).closest("tr").addClass(j);});f.closest("tr").addClass(j);}if($("button").length&&$.browser.msie){if(parseInt($.browser.version)==8){$("button").live("mousedown",function(){var r=parseInt($(this).css("background-position-x"));var q=parseInt($(this).css("background-position-y"));$(this).find("span").css({position:"relative",top:"-1px",left:"-1px"});}).live("mouseup",function(){$(this).find("span").css({position:"relative",top:"0",left:"0"});});}else{$("button").live("mousedown",function(){$("span",this).css({position:"relative",left:"0"});});}}$("#concours_recette_modalites").find(".etapes li").mouseenter(function(){var q=$("#concours_recette_modalites").find(".etapes li").index(this);$(this).add($(".content").eq(q)).addClass("active").siblings(".active").removeClass("active");});});$(document).ready(function(){if($("#mon_magasin, #baro").length==2){$("#mon_magasin, #baro").mouseenter(function(){$("#mon_magasin>a").addClass("hover");$("#baro").removeClass("hide");}).mouseleave(function(){$("#mon_magasin>a").removeClass("hover");$("#baro").addClass("hide");});}});
