if(!AJS){var AJS={BASE_URL:"",ajaxErrorHandler:null,getQueryArgument:function(_1){var _2=window.location.search.substring(1);var _3=_2.split("&");for(var i=0;i<_3.length;i++){var _5=_3[i].split("=");if(_5[0]==_1){return _5[1];}}return null;},isIe:function(){return (navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1);},isNetscape7:function(){return (navigator.userAgent.toLowerCase().indexOf("netscape")!=-1&&navigator.userAgent.toLowerCase().indexOf("7.")!=-1);},isSafari:function(){return (navigator.userAgent.toLowerCase().indexOf("khtml")!=-1);},isOpera:function(){return (navigator.userAgent.toLowerCase().indexOf("opera")!=-1);},isMozilla:function(){return (navigator.userAgent.toLowerCase().indexOf("gecko")!=-1&&navigator.productSub>=20030210);},isMac:function(){return (navigator.userAgent.toLowerCase().indexOf("macintosh")!=-1);},createArray:function(v){if(AJS.isArray(v)&&!AJS.isString(v)){return v;}else{if(!v){return [];}else{return [v];}}},forceArray:function(_7){var r=[];AJS.map(_7,function(_9){r.push(_9);});return r;},join:function(_a,_b){try{return _b.join(_a);}catch(e){var r=_b[0]||"";AJS.map(_b,function(_d){r+=_a+_d;},1);return r+"";}},isIn:function(_e,_f){var i=AJS.getIndex(_e,_f);if(i!=-1){return true;}else{return false;}},getIndex:function(elm,_12,_13){for(var i=0;i<_12.length;i++){if(_13&&_13(_12[i])||elm==_12[i]){return i;}}return -1;},getFirst:function(_15){if(_15.length>0){return _15[0];}else{return null;}},getLast:function(_16){if(_16.length>0){return _16[_16.length-1];}else{return null;}},update:function(l1,l2){for(var i in l2){l1[i]=l2[i];}return l1;},flattenList:function(_1a){var r=[];var _1c=function(r,l){AJS.map(l,function(o){if(o==null){}else{if(AJS.isArray(o)){_1c(r,o);}else{r.push(o);}}});};_1c(r,_1a);return r;},map:function(_20,fn,_22,_23){var i=0,l=_20.length;if(_22){i=_22;}if(_23){l=_23;}for(i;i<l;i++){var val=fn(_20[i],i);if(val!=undefined){return val;}}},rmap:function(_26,fn){var i=_26.length-1,l=0;for(i;i>=l;i--){var val=fn.apply(null,[_26[i],i]);if(val!=undefined){return val;}}},filter:function(_2a,fn,_2c,_2d){var r=[];AJS.map(_2a,function(elm){if(fn(elm)){r.push(elm);}},_2c,_2d);return r;},partial:function(fn){var _31=AJS.$FA(arguments);_31.shift();return function(){_31=_31.concat(AJS.$FA(arguments));return fn.apply(window,_31);};},getElement:function(id){if(AJS.isString(id)||AJS.isNumber(id)){return document.getElementById(id);}else{return id;}},getElements:function(){var _33=AJS.forceArray(arguments);var _34=new Array();for(var i=0;i<_33.length;i++){var _36=AJS.getElement(_33[i]);_34.push(_36);}return _34;},getElementsByTagAndClassName:function(_37,_38,_39){var _3a=[];if(!AJS.isDefined(_39)){_39=document;}if(!AJS.isDefined(_37)){_37="*";}var els=_39.getElementsByTagName(_37);var _3c=els.length;var _3d=new RegExp("(^|\\s)"+_38+"(\\s|$)");for(i=0,j=0;i<_3c;i++){if(_3d.test(els[i].className)||_38==null){_3a[j]=els[i];j++;}}return _3a;},nodeName:function(elm){return elm.nodeName.toLowerCase();},_nodeWalk:function(elm,_40,_41,_42){var p=_42(elm);var _44;if(_40&&_41){_44=function(p){return AJS.nodeName(p)==_40&&AJS.hasClass(p,_41);};}else{if(_40){_44=function(p){return AJS.nodeName(p)==_40;};}else{_44=function(p){return AJS.hasClass(p,_41);};}}while(p){if(_44(p)){return p;}p=_42(p);}return null;},getParentBytc:function(elm,_49,_4a){return AJS._nodeWalk(elm,_49,_4a,function(m){return m.parentNode;});},hasParent:function(elm,_4d,_4e){if(elm==_4d){return true;}if(_4e==0){return false;}return AJS.hasParent(elm.parentNode,_4d,_4e-1);},getPreviousSiblingBytc:function(elm,_50,_51){return AJS._nodeWalk(elm,_50,_51,function(m){return m.previousSibling;});},getNextSiblingBytc:function(elm,_54,_55){return AJS._nodeWalk(elm,_54,_55,function(m){return m.nextSibling;});},getBody:function(){return AJS.$bytc("body")[0];},getFormElement:function(_57,_58){_57=AJS.$(_57);var r=null;AJS.map(_57.elements,function(elm){if(elm.name&&elm.name==_58){r=elm;}});if(r){return r;}AJS.map(AJS.$bytc("select",null,_57),function(elm){if(elm.name&&elm.name==_58){r=elm;}});return r;},formContents:function(_5c){var _5d=AJS.$(_5d);var r={};var fn=function(_60){AJS.map(_60,function(e){if(e.name){r[e.name]=e.value||"";}});};fn(AJS.$bytc("input",null,_5d));fn(AJS.$bytc("textarea",null,_5d));return r;},documentInsert:function(elm){if(typeof (elm)=="string"){elm=AJS.HTML2DOM(elm);}document.write("<span id=\"dummy_holder\"></span>");AJS.swapDOM(AJS.$("dummy_holder"),elm);},cloner:function(_63){return function(){return _63.cloneNode(true);};},appendChildNodes:function(elm){if(arguments.length>=2){AJS.map(arguments,function(n){if(AJS.isString(n)){n=AJS.TN(n);}if(AJS.isDefined(n)){elm.appendChild(n);}},1);}return elm;},appendToTop:function(elm){var _67=AJS.forceArray(arguments).slice(1);if(_67.length>=1){var _68=elm.firstChild;if(_68){while(true){var _69=_67.shift();if(_69){AJS.insertBefore(_69,_68);}else{break;}}}else{AJS.ACN.apply(null,arguments);}}return elm;},replaceChildNodes:function(elm){var _6b;while((_6b=elm.firstChild)){elm.removeChild(_6b);}if(arguments.length<2){return elm;}else{return AJS.appendChildNodes.apply(null,arguments);}return elm;},insertAfter:function(elm,_6d){_6d.parentNode.insertBefore(elm,_6d.nextSibling);return elm;},insertBefore:function(elm,_6f){_6f.parentNode.insertBefore(elm,_6f);return elm;},swapDOM:function(_70,src){_70=AJS.getElement(_70);var _72=_70.parentNode;if(src){src=AJS.getElement(src);_72.replaceChild(src,_70);}else{_72.removeChild(_70);}return src;},removeElement:function(){var _73=AJS.forceArray(arguments);AJS.map(_73,function(elm){AJS.swapDOM(elm,null);});},createDOM:function(_75,_76){var i=0,attr;var elm=document.createElement(_75);var _79=_76[0];if(AJS.isDict(_76[i])){for(k in _79){attr=_79[k];if(k=="style"){elm.style.cssText=attr;}else{if(k=="class"||k=="className"){elm.className=attr;}else{elm.setAttribute(k,attr);}}}i++;}if(_79==null){i=1;}for(var j=i;j<_76.length;j++){var _7b=_76[j];if(_7b){var _7c=typeof (_7b);if(_7c=="string"||_7c=="number"){_7b=AJS.TN(_7b);}elm.appendChild(_7b);}}return elm;},_createDomShortcuts:function(){var _7d=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre"];var _7e=function(elm){AJS[elm.toUpperCase()]=function(){return AJS.createDOM.apply(null,[elm,arguments]);};};AJS.map(_7d,_7e);AJS.TN=function(_80){return document.createTextNode(_80);};},setHTML:function(elm,_82){elm.innerHTML=_82;return elm;},showElement:function(){var _83=AJS.forceArray(arguments);AJS.map(_83,function(elm){elm.style.display="";});},hideElement:function(elm){var _86=AJS.forceArray(arguments);AJS.map(_86,function(elm){elm.style.display="none";});},isElementHidden:function(elm){return ((elm.style.display=="none")||(elm.style.visibility=="hidden"));},getCssDim:function(dim){if(AJS.isString(dim)){return dim;}else{return dim+"px";}},getCssProperty:function(elm,_8b){elm=AJS.$(elm);var y;if(elm.currentStyle){y=elm.currentStyle[_8b];}else{if(window.getComputedStyle){y=document.defaultView.getComputedStyle(elm,null).getPropertyValue(_8b);}}return y;},setStyle:function(){var _8d=AJS.forceArray(arguments);var _8e=_8d.pop();var _8f=_8d.pop();AJS.map(_8d,function(elm){elm.style[_8f]=AJS.getCssDim(_8e);});},setWidth:function(){var _91=AJS.forceArray(arguments);_91.splice(_91.length-1,0,"width");AJS.setStyle.apply(null,_91);},setHeight:function(){var _92=AJS.forceArray(arguments);_92.splice(_92.length-1,0,"height");AJS.setStyle.apply(null,_92);},setLeft:function(){var _93=AJS.forceArray(arguments);_93.splice(_93.length-1,0,"left");AJS.setStyle.apply(null,_93);},setTop:function(){var _94=AJS.forceArray(arguments);_94.splice(_94.length-1,0,"top");AJS.setStyle.apply(null,_94);},setClass:function(){var _95=AJS.forceArray(arguments);var c=_95.pop();AJS.map(_95,function(elm){elm.className=c;});},addClass:function(){var _98=AJS.forceArray(arguments);var cls=_98.pop();var _9a=function(o){if(!new RegExp("(^|\\s)"+cls+"(\\s|$)").test(o.className)){o.className+=(o.className?" ":"")+cls;}};AJS.map(_98,function(elm){_9a(elm);});},hasClass:function(elm,cls){if(!elm.className){return false;}return elm.className==cls||elm.className.search(new RegExp(" "+cls+"|^"+cls))!=-1;},removeClass:function(){var _9f=AJS.forceArray(arguments);var cls=_9f.pop();var _a1=function(o){o.className=o.className.replace(new RegExp("\\s?"+cls,"g"),"");};AJS.map(_9f,function(elm){_a1(elm);});},setOpacity:function(elm,p){elm.style.opacity=p;elm.style.filter="alpha(opacity="+p*100+")";},resetOpacity:function(elm){elm.style.opacity=1;elm.style.filter="";},RND:function(_a7,ns,_a9){_a9=_a9||window;var fn=function(w,g){g=g.split("|");var cnt=ns[g[0]];for(var i=1;i<g.length;i++){cnt=_a9[g[i]](cnt);}if(cnt==""){return "";}if(cnt==0||cnt==-1){cnt+="";}return cnt||w;};return _a7.replace(/%\(([A-Za-z0-9_|.]*)\)/g,fn);},HTML2DOM:function(_af,_b0){var d=AJS.DIV();d.innerHTML=_af;if(_b0){return d.childNodes[0];}else{return d;}},preloadImages:function(){AJS.AEV(window,"load",AJS.$p(function(_b2){AJS.map(_b2,function(src){var pic=new Image();pic.src=src;});},arguments));},getXMLHttpRequest:function(){var _b5=[function(){return new XMLHttpRequest();},function(){return new ActiveXObject("Msxml2.XMLHTTP");},function(){return new ActiveXObject("Microsoft.XMLHTTP");},function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0");},function(){throw "Browser does not support XMLHttpRequest";}];for(var i=0;i<_b5.length;i++){var _b7=_b5[i];try{return _b7();}catch(e){}}},getRequest:function(url,_b9,_ba){if(!_ba){_ba="POST";}var req=AJS.getXMLHttpRequest();if(url.indexOf("http://")==-1){if(AJS.BASE_URL!=""){if(AJS.BASE_URL.lastIndexOf("/")!=AJS.BASE_URL.length-1){AJS.BASE_URL+="/";}url=AJS.BASE_URL+url;}}req.open(_ba,url,true);if(_ba=="POST"){req.setRequestHeader("Content-type","application/x-www-form-urlencoded");}return AJS._sendXMLHttpRequest(req);},_sendXMLHttpRequest:function(req,_bd){var d=new AJSDeferred(req);var _bf=function(){if(req.readyState==4){var _c0="";try{_c0=req.status;}catch(e){}if(_c0==200||_c0==304||req.responseText==null){d.callback();}else{if(d.errbacks.length==0){if(AJS.ajaxErrorHandler){AJS.ajaxErrorHandler(req.responseText,req);}}else{d.errback();}}}};req.onreadystatechange=_bf;return d;},_reprString:function(o){return ("\""+o.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");},_reprDate:function(db){var _c3=db.getFullYear();var dd=db.getDate();var mm=db.getMonth()+1;var hh=db.getHours();var _c7=db.getMinutes();function leadingZero(nr){if(nr<10){nr="0"+nr;}return nr;}if(hh==24){hh="00";}var _c9=leadingZero(hh)+":"+leadingZero(_c7);return "\""+_c3+"-"+mm+"-"+dd+"T"+_c9+"\"";},serializeJSON:function(o){var _cb=typeof (o);if(_cb=="undefined"){return "undefined";}else{if(_cb=="number"||_cb=="boolean"){return o+"";}else{if(o===null){return "null";}}}if(_cb=="string"){return AJS._reprString(o);}if(_cb=="object"&&o.getFullYear){return AJS._reprDate(o);}var me=arguments.callee;if(_cb!="function"&&typeof (o.length)=="number"){var res=[];for(var i=0;i<o.length;i++){var val=me(o[i]);if(typeof (val)!="string"){val="undefined";}res.push(val);}return "["+res.join(",")+"]";}if(_cb=="function"){return null;}res=[];for(var k in o){var _d1;if(typeof (k)=="number"){_d1="\""+k+"\"";}else{if(typeof (k)=="string"){_d1=AJS._reprString(k);}else{continue;}}val=me(o[k]);if(typeof (val)!="string"){continue;}res.push(_d1+":"+val);}return "{"+res.join(",")+"}";},loadJSONDoc:function(url){var d=AJS.getRequest(url);var _d4=function(_d5,req){var _d7=req.responseText;if(_d7=="Error"){d.errback(req);}else{return AJS.evalTxt(_d7);}};d.addCallback(_d4);return d;},evalTxt:function(txt){try{return eval("("+txt+")");}catch(e){return eval(txt);}},evalScriptTags:function(_d9){var _da=_d9.match(/<script.*?>((\n|\r|.)*?)<\/script>/g);if(_da!=null){for(var i=0;i<_da.length;i++){var _dc=_da[i].replace(/<script.*?>/g,"");_dc=_dc.replace(/<\/script>/g,"");eval(_dc);}}},queryArguments:function(_dd){var _de=[];for(k in _dd){_de.push(k+"="+AJS.urlencode(_dd[k]));}return _de.join("&");},getMousePos:function(e){var _e0=0;var _e1=0;if(!e){var e=window.event;}if(e.pageX||e.pageY){_e0=e.pageX;_e1=e.pageY;}else{if(e.clientX||e.clientY){_e0=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;_e1=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}}return {x:_e0,y:_e1};},getScrollTop:function(){var t;if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop;}else{if(document.body){t=document.body.scrollTop;}}return t;},absolutePosition:function(elm){var _e5={"x":elm.offsetLeft,"y":elm.offsetTop};if(elm.offsetParent){var _e6=elm.offsetParent;while(_e6){_e5.x+=_e6.offsetLeft;_e5.y+=_e6.offsetTop;_e6=_e6.offsetParent;}}if(AJS.isSafari()&&elm.style.position=="absolute"){_e5.x-=document.body.offsetLeft;_e5.y-=document.body.offsetTop;}return _e5;},getWindowSize:function(doc){doc=doc||document;var _e8,win_h;if(self.innerHeight){_e8=self.innerWidth;win_h=self.innerHeight;}else{if(doc.documentElement&&doc.documentElement.clientHeight){_e8=doc.documentElement.clientWidth;win_h=doc.documentElement.clientHeight;}else{if(doc.body){_e8=doc.body.clientWidth;win_h=doc.body.clientHeight;}}}return {"w":_e8,"h":win_h};},isOverlapping:function(_e9,_ea){var _eb=AJS.absolutePosition(_e9);var _ec=AJS.absolutePosition(_ea);var _ed=_eb.y;var _ee=_eb.x;var _ef=_ee+_e9.offsetWidth;var _f0=_ed+_e9.offsetHeight;var _f1=_ec.y;var _f2=_ec.x;var _f3=_f2+_ea.offsetWidth;var _f4=_f1+_ea.offsetHeight;var _f5=function(v){if(v>0){return "+";}else{if(v<0){return "-";}else{return 0;}}};if((_f5(_ed-_f4)!=_f5(_f0-_f1))&&(_f5(_ee-_f3)!=_f5(_ef-_f2))){return true;}return false;},getEventElm:function(e){if(e&&!e.type&&!e.keyCode){return e;}var _f8;if(!e){var e=window.event;}if(e.target){_f8=e.target;}else{if(e.srcElement){_f8=e.srcElement;}}if(_f8.nodeType==3){_f8=_f8.parentNode;}return _f8;},setEventKey:function(e){e.key=e.keyCode?e.keyCode:e.charCode;if(window.event){e.ctrl=window.event.ctrlKey;e.shift=window.event.shiftKey;}else{e.ctrl=e.ctrlKey;e.shift=e.shiftKey;}switch(e.key){case 63232:e.key=38;break;case 63233:e.key=40;break;case 63235:e.key=39;break;case 63234:e.key=37;break;}},addEventListener:function(elm,_fc,fn,_fe,_ff){var _100="ajsl_"+_fc+fn;if(!_ff){_ff=false;}AJS.listeners=AJS.$A(AJS.listeners);if(AJS.isIn(_fc,["keypress","keydown","keyup","click"])){var _101=fn;fn=function(e){AJS.setEventKey(e);return _101.apply(window,arguments);};}var _103=AJS.isIn(_fc,["submit","load","scroll","resize"]);var elms=AJS.$A(elm);AJS.map(elms,function(_105){if(_fe){var _106=fn;fn=function(e){AJS.REV(_105,_fc,fn);return _106.apply(window,arguments);};}if(_103){var _108=_105["on"+_fc];var _109=function(){if(_108){fn(arguments);return _108(arguments);}else{return fn(arguments);}};_105[_100]=_109;_105[_100+"old"]=_108;elm["on"+_fc]=_109;}else{_105[_100]=fn;if(_105.attachEvent){_105.attachEvent("on"+_fc,fn);}else{if(_105.addEventListener){_105.addEventListener(_fc,fn,_ff);}}AJS.listeners.push([_105,_fc,fn]);}});},removeEventListener:function(elm,type,fn,_10d){var _10e="ajsl_"+type+fn;if(!_10d){_10d=false;}fn=elm[_10e]||fn;if(elm["on"+type]==fn){elm["on"+type]=elm[_10e+"old"];}if(elm.removeEventListener){elm.removeEventListener(type,fn,_10d);if(AJS.isOpera()){elm.removeEventListener(type,fn,!_10d);}}else{if(elm.detachEvent){elm.detachEvent("on"+type,fn);}}},bind:function(fn,_110,_111){fn._cscope=_110;return AJS._getRealScope(fn,_111);},bindMethods:function(self){for(var k in self){var func=self[k];if(typeof (func)=="function"){self[k]=AJS.$b(func,self);}}},callLater:function(fn,_116){var _117=function(){fn();};window.setTimeout(_117,_116);},preventDefault:function(e){if(AJS.isIe()){window.event.returnValue=false;}else{e.preventDefault();}},_listenOnce:function(elm,type,fn){var r_fn=function(){AJS.removeEventListener(elm,type,r_fn);fn(arguments);};return r_fn;},_getRealScope:function(fn,_11e){_11e=AJS.$A(_11e);var _11f=fn._cscope||window;return function(){var args=AJS.$FA(arguments).concat(_11e);return fn.apply(_11f,args);};},_unloadListeners:function(){if(AJS.listeners){AJS.map(AJS.listeners,function(elm,type,fn){AJS.REV(elm,type,fn);});}AJS.listeners=[];},keys:function(obj){var rval=[];for(var prop in obj){rval.push(prop);}return rval;},values:function(obj){var rval=[];for(var prop in obj){rval.push(obj[prop]);}return rval;},urlencode:function(str){return encodeURIComponent(str.toString());},isDefined:function(o){return (o!="undefined"&&o!=null);},isArray:function(obj){return obj instanceof Array;},isString:function(obj){return (typeof obj=="string");},isNumber:function(obj){return (typeof obj=="number");},isObject:function(obj){return (typeof obj=="object");},isFunction:function(obj){return (typeof obj=="function");},isDict:function(o){var _132=String(o);return _132.indexOf(" Object")!=-1;},exportToGlobalScope:function(){for(e in AJS){window[e]=AJS[e];}},log:function(o){if(window.console){console.log(o);}else{var div=AJS.$("ajs_logger");if(!div){div=AJS.DIV({id:"ajs_logger","style":"color: green; position: absolute; left: 0"});div.style.top=AJS.getScrollTop()+"px";AJS.ACN(AJS.getBody(),div);}AJS.setHTML(div,""+o);}}};AJS.Class=function(_135){var fn=function(){if(arguments[0]!="no_init"){return this.init.apply(this,arguments);}};fn.prototype=_135;AJS.update(fn,AJS.Class.prototype);return fn;};AJS.Class.prototype={extend:function(_137){var _138=new this("no_init");for(k in _137){var prev=_138[k];var cur=_137[k];if(prev&&prev!=cur&&typeof cur=="function"){cur=this._parentize(cur,prev);}_138[k]=cur;}return new AJS.Class(_138);},implement:function(_13b){AJS.update(this.prototype,_13b);},_parentize:function(cur,prev){return function(){this.parent=prev;return cur.apply(this,arguments);};}};AJS.$=AJS.getElement;AJS.$$=AJS.getElements;AJS.$f=AJS.getFormElement;AJS.$b=AJS.bind;AJS.$p=AJS.partial;AJS.$FA=AJS.forceArray;AJS.$A=AJS.createArray;AJS.DI=AJS.documentInsert;AJS.ACN=AJS.appendChildNodes;AJS.RCN=AJS.replaceChildNodes;AJS.AEV=AJS.addEventListener;AJS.REV=AJS.removeEventListener;AJS.$bytc=AJS.getElementsByTagAndClassName;AJS.$AP=AJS.absolutePosition;AJSDeferred=function(req){this.callbacks=[];this.errbacks=[];this.req=req;};AJSDeferred.prototype={excCallbackSeq:function(req,list){var data=req.responseText;while(list.length>0){var fn=list.pop();var _143=fn(data,req);if(_143){data=_143;}}},callback:function(){this.excCallbackSeq(this.req,this.callbacks);},errback:function(){if(this.errbacks.length==0){alert("Error encountered:\n"+this.req.responseText);}this.excCallbackSeq(this.req,this.errbacks);},addErrback:function(fn){this.errbacks.unshift(fn);},addCallback:function(fn){this.callbacks.unshift(fn);},abort:function(){this.req.abort();},addCallbacks:function(fn1,fn2){this.addCallback(fn1);this.addErrback(fn2);},sendReq:function(data){if(AJS.isObject(data)){this.req.send(AJS.queryArguments(data));}else{if(AJS.isDefined(data)){this.req.send(data);}else{this.req.send("");}}}};AJS.addEventListener(window,"unload",AJS._unloadListeners);AJS._createDomShortcuts();}script_loaded=true;AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){var _3=new AJS.fx.Base();_3.elm=AJS.$(_1);_3.options.duration=600;_3.setOptions(_2);AJS.update(_3,{increase:function(){if(this.now==7){_1.style.backgroundColor="#fff";}else{_1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)];}}});return _3.custom(6,0);},fadeIn:function(_4,_5){_5=_5||{};if(!_5.from){_5.from=0;AJS.setOpacity(_4,0);}if(!_5.to){_5.to=1;}var s=new AJS.fx.Style(_4,"opacity",_5);return s.custom(_5.from,_5.to);},fadeOut:function(_7,_8){_8=_8||{};if(!_8.from){_8.from=1;}if(!_8.to){_8.to=0;}_8.duration=300;var s=new AJS.fx.Style(_7,"opacity",_8);return s.custom(_8.from,_8.to);},setWidth:function(_a,_b){var s=new AJS.fx.Style(_a,"width",_b);return s.custom(_b.from,_b.to);},setHeight:function(_d,_e){var s=new AJS.fx.Style(_d,"height",_e);return s.custom(_e.from,_e.to);}};AJS.fx.Base=new AJS.Class({init:function(_10){this.options={onStart:function(){},onComplete:function(){},transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50};AJS.update(this.options,_10);AJS.bindMethods(this);},setOptions:function(_11){AJS.update(this.options,_11);},step:function(){var _12=new Date().getTime();if(_12<this.time+this.options.duration){this.cTime=_12-this.time;this.setNow();}else{setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10);this.clearTimer();this.now=this.to;}this.increase();},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(_13,to){var _15=to-_13;return this.options.transition(this.cTime,_13,_15,this.options.duration);},clearTimer:function(){clearInterval(this.timer);this.timer=null;return this;},_start:function(_16,to){if(!this.options.wait){this.clearTimer();}if(this.timer){return;}setTimeout(AJS.$p(this.options.onStart,this.elm),10);this.from=_16;this.to=to;this.time=new Date().getTime();this.timer=setInterval(this.step,Math.round(1000/this.options.fps));return this;},custom:function(_18,to){return this._start(_18,to);},set:function(to){this.now=to;this.increase();return this;},setStyle:function(elm,_1c,val){if(this.property=="opacity"){AJS.setOpacity(elm,val);}else{AJS.setStyle(elm,_1c,val);}}});AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1f,_20){this.parent();this.elm=elm;this.setOptions(_20);this.property=_1f;},increase:function(){this.setStyle(this.elm,this.property,this.now);}});AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_22){this.parent();this.elm=AJS.$(elm);this.setOptions(_22);this.now={};},setNow:function(){for(p in this.from){this.now[p]=this.compute(this.from[p],this.to[p]);}},custom:function(obj){if(this.timer&&this.options.wait){return;}var _24={};var to={};for(p in obj){_24[p]=obj[p][0];to[p]=obj[p][1];}return this._start(_24,to);},increase:function(){for(var p in this.now){this.setStyle(this.elm,p,this.now[p]);}}});AJS.fx.Transitions={linear:function(t,b,c,d){return c*t/d+b;},sineInOut:function(t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b;}};script_loaded=true;var PE={langu:"eng",pngFix:function(_1){var _2=AJS.$bytc("img","pngfix");for(var i=0;i<_2.length;i++){var _4=_2[i].src.substring(0,_2[i].src.lastIndexOf("."))+".png";if(AJS.isIe()&&(parseFloat(navigator.userAgent.toLowerCase().substring(navigator.userAgent.toLowerCase().indexOf("msie ")+5))>5)){_2[i].style.visibility="hidden";_2[i].runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+_4+"', sizingMethod='scale')";_2[i].src=_1;_2[i].style.visibility="visible";}else{_2[i].src=_4;}}return 1;},slideShow:function(_5,_6,_7,_8){if(AJS.$(_5)==null){return;}var _9={array:new Array(),parentTag:AJS.$(_5),fadeSpeed:(typeof _7!="undefined")?_7:8,rootPath:(typeof _6!="undefined")?_6:"images/slideshow",ImageNode:null,ImageUrlNode:null,Banner:null,PlayButtonImageNode:null,PlayButtonUrlNode:null,NextButtonImageNode:null,BackButtonImageNode:null,intefaceTitlePlayPause:(this.langu=="eng")?"play/pause":"jouer/pause",intefaceTitleNext:(this.langu=="eng")?"next":"suivant",intefaceTitleBack:(this.langu=="eng")?"back":"pr\xe9c\xe9dent",intefaceTitlePause:"pause",isPlaying:true,currentSlide:0};var _a=AJS.$bytc("li",null,_9.parentTag);for(var _b=0;_b<_a.length;_b++){var _c=AJS.$bytc("img",null,_a[_b]);if(_c.length<1){continue;}var _d=AJS.$bytc("a",null,_a[_b])[0];var _e=AJS.$bytc("a",null,_a[_b])[1];AJS.setClass(_e,"ss-active");var _f={src:_c[0].src,alt:_c[0].alt,url:_d.href};_9.array.push(_f);if(this.slideshowWieghtParser(_a[_b].className)>0){for(var i=0;i<this.slideshowWieghtParser(_a[_b].className);i++){this.addToSlideShowGracefully(_9,_f);}}AJS.removeClass(_a[_b],"menucontent");AJS.addClass(_a[_b],"ss-active");AJS.removeElement(_d);AJS.removeElement(AJS.$bytc("br",null,_a[_b])[0]);}window.slideShowObject=_9;AJS.insertBefore(this.createSlideShowNode(_9.array[0]),_9.parentTag);},addToSlideShowGracefully:function(_11,_12){var _13=true;for(var i=0;i<_11.array.length;i++){var _15=(i>0)?(i-1):i;if((_11.array[_15].src!=_12.src)&&(_11.array[i].src!=_12.src)&&_13){_11.array.splice(i,0,_12);_13=false;}}},slideshowWieghtParser:function(_16){if(_16.indexOf("ss-double")>-1){return 1;}if(_16.indexOf("ss-triple")>-1){return 2;}if(_16.indexOf("ss-quadruple")>-1){return 3;}return 0;},createSlideShowNode:function(_17){var _18=AJS.DIV({className:"slideshowbanner"});var _19=AJS.A({id:"slideshow-imagelink",href:_17.url,title:_17.alt});var _1a=AJS.IMG({id:"slideshow-image",src:_17.src,alt:_17.alt});window.slideShowObject.ImageNode=_1a;window.slideShowObject.ImageUrlNode=_19;window.slideShowObject.Banner=_18;_19.appendChild(_1a);_18.appendChild(_19);var _1b=AJS.DIV({id:"slideshowcontrolsContainer"});var _1c=document.createElement("a");_1c.setAttribute("id","slideshowbacklink");_1c.setAttribute("title",window.slideShowObject.intefaceTitleBack);_1c.style.cursor="pointer";AJS.AEV(_1c,"click",PE.backSlide);AJS.AEV(_1c,"keydown",PE.backSlide);_1c.tabIndex=0;var _1d=AJS.IMG({id:"slideshowbackbutton",src:window.slideShowObject.rootPath+"prev_up.gif",alt:window.slideShowObject.intefaceTitleBack});window.slideShowObject.BackButtonImageNode=_1d;_1c.appendChild(_1d);_1b.appendChild(_1c);var _1e=document.createElement("a");_1e.setAttribute("id","slideshowplaylink");_1e.setAttribute("title",window.slideShowObject.intefaceTitlePlayPause);_1e.style.cursor="pointer";AJS.AEV(_1e,"click",PE.toggleSlideShow);AJS.AEV(_1e,"keydown",PE.toggleSlideShow);_1e.tabIndex=0;var _1f=AJS.IMG({id:"slideshowplaybutton",src:window.slideShowObject.rootPath+"pause_up.gif",alt:window.slideShowObject.intefaceTitlePlayPause,height:"19px",width:"19px"});_1e.appendChild(_1f);window.slideShowObject.PlayButtonImageNode=_1f;_1b.appendChild(_1e);var _20=document.createElement("a");_20.setAttribute("id","slideshownextlink");_20.setAttribute("title",window.slideShowObject.intefaceTitleNext);_20.style.cursor="pointer";AJS.AEV(_20,"click",PE.nextSlide);AJS.AEV(_20,"keydown",PE.nextSlide);_20.tabIndex=0;var _21=AJS.IMG({id:"slideshownextbutton",src:window.slideShowObject.rootPath+"next_up.gif",alt:window.slideShowObject.intefaceTitleNext,height:"20px",width:"19px"});window.slideShowObject.NextButtonImageNode=_21;_20.appendChild(_21);_1b.appendChild(_20);var _22=document.createElement("div");_22.setAttribute("id","slideshowContainer");_22.appendChild(_18);_22.appendChild(_1b);showtime=setInterval("PE.rotateSlide()",(window.slideShowObject.fadeSpeed*1000));return _22;},toggleSlideShow:function(_23){var _24=false;if(_23){if((_23.key==9)||(_23.key==16)){_24=true;}}if(_24==false){if(!window.slideShowObject.isPlaying){window.slideShowObject.PlayButtonImageNode.src=window.slideShowObject.rootPath+"pause_up.gif";window.slideShowObject.isPlaying=true;}else{window.slideShowObject.PlayButtonImageNode.src=window.slideShowObject.rootPath+"play_up.gif";window.slideShowObject.isPlaying=false;}}},backSlide:function(_25){var _26=false;if(_25){if((_25.key==9)||(_25.key==16)){_26=true;}}if(_26==false){var _27=window.slideShowObject.array.length;var _28=window.slideShowObject.currentSlide-2;if(_28<0){_28=window.slideShowObject.array.length+_28;}window.slideShowObject.currentSlide=_28;PE.nextSlide();}},rotateSlide:function(){if(!window.slideShowObject.isPlaying){return;}PE.nextSlide();},nextSlide:function(_29){var _2a=false;if(_29){if((_29.key==9)||(_29.key==16)){_2a=true;}}if(_2a==false){clearInterval(showtime);if(window.slideShowObject.currentSlide++==window.slideShowObject.array.length-1){window.slideShowObject.currentSlide=0;}var _2b=window.slideShowObject.array[window.slideShowObject.currentSlide].src;var _2c=window.slideShowObject.array[window.slideShowObject.currentSlide].alt;var _2d=window.slideShowObject.array[window.slideShowObject.currentSlide].url;window.slideShowObject.ImageNode.src=_2b;window.slideShowObject.ImageNode.alt=_2c;window.slideShowObject.ImageUrlNode.href=_2d;window.slideShowObject.ImageUrlNode.title=_2c;showtime=setInterval("PE.rotateSlide()",(window.slideShowObject.fadeSpeed*1000));}},toolTips:function(obj){window.peObjects=new Object();window.peObjects.Tooltip=AJS.DIV({style:"background-color: "+obj+"; padding: 2px; border: 1px solid #000; font-size: 11px; position:absolute"},"tt");window.peObjects.Tooltip.zIndex="1000";AJS.setTop(window.peObjects.Tooltip,-100);AJS.insertAfter(window.peObjects.Tooltip,AJS.getBody().firstChild);AJS.AEV(AJS.getBody(),"keyup",function(_2f){if(_2f.key==9){AJS.setTop(window.peObjects.Tooltip,-100);window.clearTimeout(window.tooltipstimerOut);var _30=AJS.getEventElm(_2f);if(typeof _30.title!="undefined"&&_30.title.length>0){window.peObjects.Tooltip.firstChild.nodeValue=_30.title;var _31=_30.offsetHeight;var _32=_30.offsetWidth;var pos=AJS.absolutePosition(_30);var _34=((pos.y+_31+window.peObjects.Tooltip.offsetHeight)>AJS.getWindowSize().h)?(pos.y-window.peObjects.Tooltip.offsetHeight):(pos.y+_31);var _35=((pos.x+_32/2+window.peObjects.Tooltip.offWidth)>AJS.getWindowSize().w)?(pos.w-window.peObjects.Tooltip.offsetWidth):(pos.x+_32/2);AJS.setTop(window.peObjects.Tooltip,_34);AJS.setLeft(window.peObjects.Tooltip,_35);AJS.fx.fadeIn(window.peObjects.Tooltip);window.tooltipstimerOut=window.setTimeout("AJS.fx.fadeOut(window.peObjects.Tooltip)",5000);}}});},progress:function(obj){this.domLoad(obj);},activateProgressEnhancement:function(obj){if(arguments.callee.done){return;}arguments.callee.done=true;if(typeof obj.lng!="undefined"){this.langu=obj.lng;}if(typeof obj.pngfix!="undefined"){this.pngFix(obj.pngfix);}if(typeof obj.tooltips!="undefined"){this.toolTips(obj.tooltips);}if(typeof obj.slideshow!="undefined"){this.slideShow(obj.slideshow,obj.slideshowrootpath,obj.slideshowspeed);}},domLoad:function(obj){var _t=setInterval(function(){if(document.getElementsByTagName("body")[0]!=null||document.body!=null){PE.activateProgressEnhancement(obj);clearInterval(_t);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){PE.activateProgressEnhancement(obj);clearInterval(_t);},null);}}};