var languageCode = 'fr';/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.3.0
*/

if(typeof YAHOO=="undefined"){var YAHOO={};}
YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}
return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};}
var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);}
if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(name){return YAHOO.env.modules[name]||null;};YAHOO.env.ua=function(){var o={ie:0,opera:0,gecko:0,webkit:0};var ua=navigator.userAgent,m;if((/KHTML/).test(ua)){o.webkit=1;}
m=ua.match(/AppleWebKit\/([^\s]*)/);if(m&&m[1]){o.webkit=parseFloat(m[1]);}
if(!o.webkit){m=ua.match(/Opera[\s\/]([^\s]*)/);if(m&&m[1]){o.opera=parseFloat(m[1]);}else{m=ua.match(/MSIE\s([^;]*)/);if(m&&m[1]){o.ie=parseFloat(m[1]);}else{m=ua.match(/Gecko\/([^\s]*)/);if(m){o.gecko=1;m=ua.match(/rv:([^\s\)]*)/);if(m&&m[1]){o.gecko=parseFloat(m[1]);}}}}}
return o;}();(function(){YAHOO.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}}
if(unique){ls.push(l);}}}})();YAHOO.lang={isArray:function(o){if(o){var l=YAHOO.lang;return l.isNumber(o.length)&&l.isFunction(o.splice)&&!l.hasOwnProperty(o.length);}
return false;},isBoolean:function(o){return typeof o==='boolean';},isFunction:function(o){return typeof o==='function';},isNull:function(o){return o===null;},isNumber:function(o){return typeof o==='number'&&isFinite(o);},isObject:function(o){return(o&&(typeof o==='object'||YAHOO.lang.isFunction(o)))||false;},isString:function(o){return typeof o==='string';},isUndefined:function(o){return typeof o==='undefined';},hasOwnProperty:function(o,prop){if(Object.prototype.hasOwnProperty){return o.hasOwnProperty(prop);}
return!YAHOO.lang.isUndefined(o[prop])&&o.constructor.prototype[prop]!==o[prop];},_IEEnumFix:function(r,s){if(YAHOO.env.ua.ie){var add=["toString","valueOf"];for(i=0;i<add.length;i=i+1){var fname=add[i],f=s[fname];if(YAHOO.lang.isFunction(f)&&f!=Object.prototype[fname]){r[fname]=f;}}}},extend:function(subc,superc,overrides){if(!superc||!subc){throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");}
var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;}
if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}
YAHOO.lang._IEEnumFix(subc.prototype,overrides);}},augmentObject:function(r,s){if(!s||!r){throw new Error("Absorb failed, verify dependencies.");}
var a=arguments,i,p,override=a[2];if(override&&override!==true){for(i=2;i<a.length;i=i+1){r[a[i]]=s[a[i]];}}else{for(p in s){if(override||!r[p]){r[p]=s[p];}}
YAHOO.lang._IEEnumFix(r,s);}},augmentProto:function(r,s){if(!s||!r){throw new Error("Augment failed, verify dependencies.");}
var a=[r.prototype,s.prototype];for(var i=2;i<arguments.length;i=i+1){a.push(arguments[i]);}
YAHOO.lang.augmentObject.apply(this,a);},dump:function(o,d){var l=YAHOO.lang,i,len,s=[],OBJ="{...}",FUN="f(){...}",COMMA=', ',ARROW=' => ';if(!l.isObject(o)||o instanceof Date||("nodeType"in o&&"tagName"in o)){return o;}else if(l.isFunction(o)){return FUN;}
d=(l.isNumber(d))?d:3;if(l.isArray(o)){s.push("[");for(i=0,len=o.length;i<len;i=i+1){if(l.isObject(o[i])){s.push((d>0)?l.dump(o[i],d-1):OBJ);}else{s.push(o[i]);}
s.push(COMMA);}
if(s.length>1){s.pop();}
s.push("]");}else{s.push("{");for(i in o){if(l.hasOwnProperty(o,i)){s.push(i+ARROW);if(l.isObject(o[i])){s.push((d>0)?l.dump(o[i],d-1):OBJ);}else{s.push(o[i]);}
s.push(COMMA);}}
if(s.length>1){s.pop();}
s.push("}");}
return s.join("");},substitute:function(s,o,f){var i,j,k,key,v,meta,l=YAHOO.lang,saved=[],token,DUMP='dump',SPACE=' ',LBRACE='{',RBRACE='}';for(;;){i=s.lastIndexOf(LBRACE);if(i<0){break;}
j=s.indexOf(RBRACE,i);if(i+1>=j){break;}
token=s.substring(i+1,j);key=token;meta=null;k=key.indexOf(SPACE);if(k>-1){meta=key.substring(k+1);key=key.substring(0,k);}
v=o[key];if(f){v=f(key,v,meta);}
if(l.isObject(v)){if(l.isArray(v)){v=l.dump(v,parseInt(meta,10));}else{meta=meta||"";var dump=meta.indexOf(DUMP);if(dump>-1){meta=meta.substring(4);}
if(v.toString===Object.prototype.toString||dump>-1){v=l.dump(v,parseInt(meta,10));}else{v=v.toString();}}}else if(!l.isString(v)&&!l.isNumber(v)){v="~-"+saved.length+"-~";saved[saved.length]=token;}
s=s.substring(0,i)+v+s.substring(j+1);}
for(i=saved.length-1;i>=0;i=i-1){s=s.replace(new RegExp("~-"+i+"-~"),"{"+saved[i]+"}","g");}
return s;},trim:function(s){try{return s.replace(/^\s+|\s+$/g,"");}catch(e){return s;}},merge:function(){var o={},a=arguments,i;for(i=0;i<a.length;i=i+1){YAHOO.lang.augmentObject(o,a[i],true);}
return o;},isValue:function(o){var l=YAHOO.lang;return(l.isObject(o)||l.isString(o)||l.isNumber(o)||l.isBoolean(o));}};YAHOO.util.Lang=YAHOO.lang;YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.3.0",build:"442"});
/*
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.3.0
*/

YAHOO.util.CustomEvent=function(type,oScope,silent,signature){this.type=type;this.scope=oScope||window;this.silent=silent;this.signature=signature||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}
var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(!fn){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}
if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);}
this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();}
var found=false;for(var i=0,len=this.subscribers.length;i<len;++i){var s=this.subscribers[i];if(s&&s.contains(fn,obj)){this._delete(i);found=true;}}
return found;},fire:function(){var len=this.subscribers.length;if(!len&&this.silent){return true;}
var args=[],ret=true,i,rebuild=false;for(i=0;i<arguments.length;++i){args.push(arguments[i]);}
var argslength=args.length;if(!this.silent){}
for(i=0;i<len;++i){var s=this.subscribers[i];if(!s){rebuild=true;}else{if(!this.silent){}
var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];}
ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);}
if(false===ret){if(!this.silent){}
return false;}}}
if(rebuild){var newlist=[],subs=this.subscribers;for(i=0,len=subs.length;i<len;++i){s=subs[i];newlist.push(subs[i]);}
this.subscribers=newlist;}
return true;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);}
this.subscribers=[];return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;}
this.subscribers[index]=null;},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=YAHOO.lang.isUndefined(obj)?null:obj;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}
return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var DOMReady=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var webkitKeymap={63232:38,63233:40,63234:37,63235:39};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,startInterval:function(){if(!this._interval){var self=this;var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onDOMReady:function(p_fn,p_obj,p_override){if(DOMReady){setTimeout(function(){var s=window;if(p_override){if(p_override===true){s=p_obj;}else{s=p_override;}}
p_fn.call(s,"DOMReady",[],p_obj);},0);}else{this.DOMReadyEvent.subscribe(p_fn,p_obj,p_override);}},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override){if(!fn||!fn.call){return false;}
if(this._isValidCollection(el)){var ok=true;for(var i=0,len=el.length;i<len;++i){ok=this.on(el[i],sType,fn,obj,override)&&ok;}
return ok;}else if(YAHOO.lang.isString(el)){var oEl=this.getEl(el);if(oEl){el=oEl;}else{this.onAvailable(el,function(){YAHOO.util.Event.on(el,sType,fn,obj,override);});return true;}}
if(!el){return false;}
if("unload"==sType&&obj!==this){unloadListeners[unloadListeners.length]=[el,sType,fn,obj,override];return true;}
var scope=el;if(override){if(override===true){scope=obj;}else{scope=override;}}
var wrappedFn=function(e){return fn.call(scope,YAHOO.util.Event.getEvent(e),obj);};var li=[el,sType,fn,wrappedFn,scope];var index=listeners.length;listeners[index]=li;if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);if(legacyIndex==-1||el!=legacyEvents[legacyIndex][0]){legacyIndex=legacyEvents.length;legacyMap[el.id+sType]=legacyIndex;legacyEvents[legacyIndex]=[el,sType,el["on"+sType]];legacyHandlers[legacyIndex]=[];el["on"+sType]=function(e){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(e),legacyIndex);};}
legacyHandlers[legacyIndex].push(li);}else{try{this._simpleAdd(el,sType,wrappedFn,false);}catch(ex){this.lastError=ex;this.removeListener(el,sType,fn);return false;}}
return true;},fireLegacyEvent:function(e,legacyIndex){var ok=true,le,lh,li,scope,ret;lh=legacyHandlers[legacyIndex];for(var i=0,len=lh.length;i<len;++i){li=lh[i];if(li&&li[this.WFN]){scope=li[this.ADJ_SCOPE];ret=li[this.WFN].call(scope,e);ok=(ok&&ret);}}
le=legacyEvents[legacyIndex];if(le&&le[2]){le[2](e);}
return ok;},getLegacyIndex:function(el,sType){var key=this.generateId(el)+sType;if(typeof legacyMap[key]=="undefined"){return-1;}else{return legacyMap[key];}},useLegacyEvent:function(el,sType){if(this.webkit&&("click"==sType||"dblclick"==sType)){var v=parseInt(this.webkit,10);if(!isNaN(v)&&v<418){return true;}}
return false;},removeListener:function(el,sType,fn){var i,len;if(typeof el=="string"){el=this.getEl(el);}else if(this._isValidCollection(el)){var ok=true;for(i=0,len=el.length;i<len;++i){ok=(this.removeListener(el[i],sType,fn)&&ok);}
return ok;}
if(!fn||!fn.call){return this.purgeElement(el,false,sType);}
if("unload"==sType){for(i=0,len=unloadListeners.length;i<len;i++){var li=unloadListeners[i];if(li&&li[0]==el&&li[1]==sType&&li[2]==fn){unloadListeners[i]=null;return true;}}
return false;}
var cacheItem=null;var index=arguments[3];if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);}
if(index>=0){cacheItem=listeners[index];}
if(!el||!cacheItem){return false;}
if(this.useLegacyEvent(el,sType)){var legacyIndex=this.getLegacyIndex(el,sType);var llist=legacyHandlers[legacyIndex];if(llist){for(i=0,len=llist.length;i<len;++i){li=llist[i];if(li&&li[this.EL]==el&&li[this.TYPE]==sType&&li[this.FN]==fn){llist[i]=null;break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}}
delete listeners[index][this.WFN];delete listeners[index][this.FN];listeners[index]=null;return true;},getTarget:function(ev,resolveTextNode){var t=ev.target||ev.srcElement;return this.resolveTextNode(t);},resolveTextNode:function(node){if(node&&3==node.nodeType){return node.parentNode;}else{return node;}},getPageX:function(ev){var x=ev.pageX;if(!x&&0!==x){x=ev.clientX||0;if(this.isIE){x+=this._getScrollLeft();}}
return x;},getPageY:function(ev){var y=ev.pageY;if(!y&&0!==y){y=ev.clientY||0;if(this.isIE){y+=this._getScrollTop();}}
return y;},getXY:function(ev){return[this.getPageX(ev),this.getPageY(ev)];},getRelatedTarget:function(ev){var t=ev.relatedTarget;if(!t){if(ev.type=="mouseout"){t=ev.toElement;}else if(ev.type=="mouseover"){t=ev.fromElement;}}
return this.resolveTextNode(t);},getTime:function(ev){if(!ev.time){var t=new Date().getTime();try{ev.time=t;}catch(ex){this.lastError=ex;return t;}}
return ev.time;},stopEvent:function(ev){this.stopPropagation(ev);this.preventDefault(ev);},stopPropagation:function(ev){if(ev.stopPropagation){ev.stopPropagation();}else{ev.cancelBubble=true;}},preventDefault:function(ev){if(ev.preventDefault){ev.preventDefault();}else{ev.returnValue=false;}},getEvent:function(e){var ev=e||window.event;if(!ev){var c=this.getEvent.caller;while(c){ev=c.arguments[0];if(ev&&Event==ev.constructor){break;}
c=c.caller;}}
return ev;},getCharCode:function(ev){var code=ev.keyCode||ev.charCode||0;if(YAHOO.env.ua.webkit&&(code in webkitKeymap)){code=webkitKeymap[code];}
return code;},_getCacheIndex:function(el,sType,fn){for(var i=0,len=listeners.length;i<len;++i){var li=listeners[i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}}
return-1;},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;}
return id;},_isValidCollection:function(o){try{return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");}catch(e){return false;}},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(e){if(!loadComplete){loadComplete=true;var EU=YAHOO.util.Event;EU._ready();EU._tryPreloadAttach();}},_ready:function(e){if(!DOMReady){DOMReady=true;var EU=YAHOO.util.Event;EU.DOMReadyEvent.fire();EU._simpleRemove(document,"DOMContentLoaded",EU._ready);}},_tryPreloadAttach:function(){if(this.locked){return false;}
if(this.isIE){if(!DOMReady){this.startInterval();return false;}}
this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);}
var notAvail=[];var executeItem=function(el,item){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}}
item.fn.call(scope,item.obj);};var i,len,item,el;for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&!item.checkReady){el=this.getEl(item.id);if(el){executeItem(el,item);onAvailStack[i]=null;}else{notAvail.push(item);}}}
for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&item.checkReady){el=this.getEl(item.id);if(el){if(loadComplete||el.nextSibling){executeItem(el,item);onAvailStack[i]=null;}}else{notAvail.push(item);}}}
retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}
this.locked=false;return true;},purgeElement:function(el,recurse,sType){var elListeners=this.getListeners(el,sType);if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn,l.index);}}
if(recurse&&el&&el.childNodes){for(i=0,len=el.childNodes.length;i<len;++i){this.purgeElement(el.childNodes[i],recurse,sType);}}},getListeners:function(el,sType){var results=[],searchLists;if(!sType){searchLists=[listeners,unloadListeners];}else if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners];}
for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}}
return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}}
l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}}
unloadListeners=null;if(listeners&&listeners.length>0){j=listeners.length;while(j){index=j-1;l=listeners[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index);}
j=j-1;}
l=null;EU.clearCache();}
for(i=0,len=legacyEvents.length;i<len;++i){legacyEvents[i][0]=null;legacyEvents[i]=null;}
legacyEvents=null;EU._simpleRemove(window,"unload",EU._unload);},_getScrollLeft:function(){return this._getScroll()[1];},_getScrollTop:function(){return this._getScroll()[0];},_getScroll:function(){var dd=document.documentElement,db=document.body;if(dd&&(dd.scrollTop||dd.scrollLeft)){return[dd.scrollTop,dd.scrollLeft];}else if(db){return[db.scrollTop,db.scrollLeft];}else{return[0,0];}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(EU.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var el,d=document,b=d.body;if(("undefined"!==typeof YAHOO_config)&&YAHOO_config.injecting){el=document.createElement("script");var p=d.getElementsByTagName("head")[0]||b;p.insertBefore(el,p.firstChild);}else{d.write('<scr'+'ipt id="_yui_eu_dr" defer="true" src="//:"><'+'/script>');el=document.getElementById("_yui_eu_dr");}
if(el){el.onreadystatechange=function(){if("complete"===this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready();}};}else{}
el=null;}else if(EU.webkit){EU._drwatch=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._drwatch);EU._drwatch=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}
EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}
YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];}
subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var evts=this.__yui_events;if(p_type){var ce=evts[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}}else{for(var i in evts){var ret=true;if(YAHOO.lang.hasOwnProperty(evts,i)){ret=ret&&evts[i].unsubscribe(p_fn,p_obj);}}
return ret;}
return false;},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=(opts.silent);var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);}
this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}}
return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(!ce){return null;}
var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);}
return ce.fire.apply(ce,args);},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}}
return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else if(!keyData){}else if(!handler){}
if(!event){event=YAHOO.util.KeyListener.KEYDOWN;}
var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=='string'){attachTo=document.getElementById(attachTo);}
if(typeof handler=='function'){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);}
function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;}
if(!keyData.alt){keyData.alt=false;}
if(!keyData.ctrl){keyData.ctrl=false;}
if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}}
this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);}
this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);}
this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+
(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.3.0",build:"442"});
var calendar_display_time=true;var todayStringFormat="[todayString] [UCFdayString]. [day]. [monthString] [year]";var pathToImages="img/calendar/";var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=0;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf("MSIE")>=0&&navigator.userAgent.indexOf("Opera")<0){MSIE=true}if(navigator.userAgent.indexOf("Opera")>=0){Opera=true}switch(languageCode){case"en":var monthArray=["January","February","March","April","May","June","July","August","September","October","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var dayArray=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];var weekString="W";var todayString="";break;case"ja":var monthArray=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"];var monthArrayShort=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"];var dayArray=["月","火","水","木","金","土","日"];var weekString="週";var todayString="今日";break;case"de":var monthArray=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"];var dayArray=["Mon","Die","Mit","Don","Fre","Sam","Son"];var weekString="W";var todayString="Heute";break;case"no":var monthArray=["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"];var dayArray=["Man","Tir","Ons","Tor","Fre","L&oslash;r","S&oslash;n"];var weekString="Uke";var todayString="Dagen i dag er";break;case"nl":var monthArray=["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"];var dayArray=["Ma","Di","Wo","Do","Vr","Za","Zo"];var weekString="W";var todayString="Vandaag";break;case"es":var monthArray=["Enero","Febrero","Marzo","April","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];var monthArrayShort=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"];var dayArray=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];var weekString="Sem";var todayString="Hoy es";break;case"pt-br":var monthArray=["Janeiro","Fevereiro","Mar&ccedil;o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"];var monthArrayShort=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"];var dayArray=["Seg","Ter","Qua","Qui","Sex","S&aacute;b","Dom"];var weekString="Sem";var todayString="Hoje &eacute;";break;case"fr":var monthArray=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"];var monthArrayShort=["Jan","Fev","Mar","Avr","Mai","Jun","Jul","Aou","Sep","Oct","Nov","Dec"];var dayArray=["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"];var weekString="Sem";var todayString="Aujourd'hui";break;case"da":var monthArray=["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"];var monthArrayShort=["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"];var dayArray=["man","tirs","ons","tors","fre","l&oslash;r","s&oslash;n"];var weekString="Uge";var todayString="I dag er den";break;case"hu":var monthArray=["JanuÃ¡r","FebruÃ¡r","MÃ¡rcius","Ã?prilis","MÃ¡jus","JÃºnius","JÃºlius","Augusztus","Szeptember","OktÃ³ber","November","December"];var monthArrayShort=["Jan","Feb","MÃ¡rc","Ã?pr","MÃ¡j","JÃºn","JÃºl","Aug","Szep","Okt","Nov","Dec"];var dayArray=["HÃ©","Ke","Sze","Cs","PÃ©","Szo","Vas"];var weekString="HÃ©t";var todayString="Mai nap";break;case"it":var monthArray=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"];var monthArrayShort=["Gen","Feb","Mar","Apr","Mag","Giu","Lugl","Ago","Set","Ott","Nov","Dic"];var dayArray=["Lun","Mar","Mer","Gio","Ven","Sab","Dom"];var weekString="Set";var todayString="Oggi &egrave; il";break;case"sv":var monthArray=["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"];var monthArrayShort=["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"];var dayArray=["M&aring;n","Tis","Ons","Tor","Fre","L&ouml;r","S&ouml;n"];var weekString="Vec";var todayString="Idag &auml;r det den";break}var iframeObj=false;var iframeObj2=false;function EIS_FIX_EI1(A){if(!iframeObj2){return }iframeObj2.style.display="block";iframeObj2.style.height=document.getElementById(A).offsetHeight+1;iframeObj2.style.width=document.getElementById(A).offsetWidth;iframeObj2.style.left=getleftPos(document.getElementById(A))+1-calendar_offsetLeft;iframeObj2.style.top=getTopPos(document.getElementById(A))-document.getElementById(A).offsetHeight-calendar_offsetTop}function EIS_Hide_Frame(){if(iframeObj2){iframeObj2.style.display="none"}}var selectBoxHighlightColor="#D60808";var selectBoxRolloverBgColor="#E2EBED";function isLeapYear(A){if(A%400==0||(A%4==0&&A%100!=0)){return true}return false}function getWeek(E,C,G){G=G/1;E=E/1;C=C/1+1;var H=Math.floor((14-(C))/12);var F=E+4800-H;var B=(C)+(12*H)-3;var I=G+Math.floor(((153*B)+2)/5)+(365*F)+Math.floor(F/4)-Math.floor(F/100)+Math.floor(F/400)-32045;var J=(I+31741-(I%7))%146097%36524%1461;var D=Math.floor(J/1460);var A=((J-D)%365)+D;NumberOfWeek=Math.floor(A/7)+1;return NumberOfWeek}var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];function getTopPos(A){var B=A.offsetTop+A.offsetHeight;while((A=A.offsetParent)!=null){B+=A.offsetTop}if(B+152>document.body.clientHeight){B-=140}return B+calendar_offsetTop}function getleftPos(A){var B=A.offsetLeft;while((A=A.offsetParent)!=null){B+=A.offsetLeft}if(B+210>document.body.clientWidth){B-=200}return B+calendar_offsetLeft}var calendars=new Array();function defineCalendar(G,E,F,D,C,B,A){if(!calendars[G]){calendars[G]=new Calendar(G,E,F,D,C,B,A)}}function showCalendar(G,E,F,D,C,B,A){defineCalendar(G,E,F,D,C,B,A);calendars[G].show()}function Calendar(G,E,F,D,C,B,A){this.id=G;this.yearInput=E;this.monthInput=F;this.dayInput=D;this.hourInput=C;this.minuteInput=B;this.returnDateTo=document.getElementById(this.id);this.calendarDiv=false;this.enabled=true;YAHOO.util.Event.addListener(E,"change",this.changeMonth,this);YAHOO.util.Event.addListener(F,"change",this.changeMonth,this);YAHOO.util.Event.addListener(D,"change",this.reloadCalendar,this);if(C){YAHOO.util.Event.addListener(C,"change",this.reloadCalendar,this)}if(B){YAHOO.util.Event.addListener(B,"change",this.reloadCalendar,this)}this.buttonObj=A;this.changeMonth(null,this);this.onSelectDay=new YAHOO.util.CustomEvent("onSelectDay",this);this.prepare()}Calendar.prototype.setEnabled=function(A){this.enabled=A;this.yearInput.disabled=!this.enabled;this.monthInput.disabled=!this.enabled;this.dayInput.disabled=!this.enabled;if(this.hourInput){this.hourInput.disabled=!this.enabled}if(this.minuteInput){this.minuteInput.disabled=!this.enabled}if(document.getElementById(this.id+"-img")){document.getElementById(this.id+"-img").className=this.enabled?"button":""}};Calendar.prototype.changeMonth=function(A,B){nbmonth=B.getNbDaysInMonth(B.monthInput.selectedIndex-1,B.yearInput.options[B.yearInput.selectedIndex].value);nb=B.dayInput.options.length-1;while(nb>nbmonth){B.dayInput.remove(B.dayInput.options.length-1);nb--}while(nb<nbmonth){opt=document.createElement("option");opt.text=nb+1;opt.value=nb+1;B.dayInput.appendChild(opt);nb++}B.reloadCalendar(A,B)};Calendar.prototype.reloadCalendar=function(A,B){day=B.dayInput.options[B.dayInput.selectedIndex].value;month=B.monthInput.options[B.monthInput.selectedIndex].value;year=B.yearInput.options[B.yearInput.selectedIndex].value;if(!B.testDate.call(B,parseFloat(day),parseFloat(month)-1,parseFloat(year))){day=B.returnDateTo.value.substring(0,2)/1;B.currentMonth=B.returnDateTo.value.substring(3,5)/1-1;B.currentYear=B.returnDateTo.value.substring(6,10)/1;if(B.returnDateTo.value.length>10){B.currentHour=B.returnDateTo.value.substring(11,13)/1;B.currentDay=B.returnDateTo.value.substring(14,16)/1}B.pickDate.call(B,false,day,false);return }if(B.hourInput){hour=B.hourInput.options[B.hourInput.selectedIndex].value;minutes=B.minuteInput.options[B.minuteInput.selectedIndex].value}else{hour="";minutes=""}s="";if(day.length>0&&month.length>0&&year.length>0){s=day+"/"+month+"/"+year;if(hour.length>0&&minutes.length>0){s+=" "+hour+":"+minutes}}B.returnDateTo.value=s;if(B.calendarDiv&&B.calendarDiv.style.display!="none"){B.show()}};Calendar.prototype.prepare=function(){if(!this.hourInput){this.calendarDisplayTime=false}else{this.calendarDisplayTime=true}if(this.dayInput.options[this.dayInput.selectedIndex].value.length>0&&this.monthInput.options[this.monthInput.selectedIndex].value.length>0&&this.yearInput.options[this.yearInput.selectedIndex].value.length>0){this.currentMonth=this.monthInput.options[this.monthInput.selectedIndex].value/1-1;this.currentYear=this.yearInput.options[this.yearInput.selectedIndex].value;this.inputYear=this.yearInput.options[this.yearInput.selectedIndex].value;this.inputMonth=this.monthInput.options[this.monthInput.selectedIndex].value/1-1;this.inputDay=this.dayInput.options[this.dayInput.selectedIndex].value/1}else{if(this.minDay){this.currentDay=this.minDay;this.currentMonth=this.minMonth;this.currentYear=this.minYear}else{if(this.maxDay){this.currentDay=this.maxDay;this.currentMonth=this.maxMonth;this.currentYear=this.maxYear}else{d=new Date();this.currentDay=d.getDate();this.currentMonth=d.getMonth();this.currentYear=d.getFullYear()}}this.inputYear=this.currentYear;this.inputMonth=this.currentMonth;this.inputDay=this.currentDay}if(this.calendarDisplayTime&&this.hourInput.options[this.hourInput.selectedIndex].value.length>0&&this.minuteInput.options[this.minuteInput.selectedIndex].value.length>0){this.currentHour=this.hourInput.options[this.hourInput.selectedIndex].value;this.currentMinute=this.minuteInput.options[this.minuteInput.selectedIndex].value}else{d=new Date();this.currentHour=d.getHours();this.currentMinute=d.getMinutes()}this.inputHour=this.currentHour/1;this.inputMinute=this.currentMinute/1;this.returnDateToYear=this.yearInput;this.returnDateToMonth=this.monthInput;this.returnDateToDay=this.dayInput;this.returnDateToHour=this.hourInput;this.returnDateToMinute=this.minuteInput;if(this.calendarDisplayTime){this.returnFormat="dd/mm/yyyy hh:ii"}else{this.returnFormat="dd/mm/yyyy"}};Calendar.prototype.show=function(){this.prepare();if(!this.calendarDiv){this.initCalendar()}else{this.writeCalendarContent()}this.positionCalendar(this.buttonObj);this.calendarDiv.style.visibility="visible";this.calendarDiv.style.display="block";if(iframeObj){iframeObj.style.display="";iframeObj.style.height=this.calendarDiv.offsetHeight+"px";iframeObj.style.width=this.calendarDiv.offsetWidth+"px";iframeObj2.style.display="";iframeObj2.style.height=this.calendarDiv.offsetHeight+"px";iframeObj2.style.width=this.calendarDiv.offsetWidth+"px"}this.setTimeProperties();this.updateYearDiv();this.updateMonthDiv();this.updateHourDiv();this.updateMinuteDiv()};Calendar.prototype.createYearDiv=function(){if(!document.getElementById(this.id+"_yearDropDown")){var F=document.createElement("DIV");F.className="monthYearPicker"}else{var F=document.getElementById(this.id+"_yearDropDown");var E=F.getElementsByTagName("DIV");for(var D=0;D<E.length;D++){E[D].parentNode.removeChild(E[D])}}var C=new Date();if(this.currentYear){C.setFullYear(this.currentYear)}var A=C.getFullYear()/1-5;var B=document.createElement("DIV");B.innerHTML="&nbsp;&nbsp;- ";YAHOO.util.Event.addListener(B,"click",this.changeSelectBoxYear,this);YAHOO.util.Event.addListener(B,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"mouseout",function(G,H){H.selectBoxMovementInProgress=false},this);YAHOO.util.Event.addListener(B,"selectstart",function(){return false},this);F.appendChild(B);for(var D=A;D<(A+10);D++){var B=document.createElement("DIV");B.innerHTML=D;YAHOO.util.Event.addListener(B,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"mouseout",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"click",this.selectYear,this);B.id=this.id+"_yearDiv"+D;YAHOO.util.Event.addListener(B,"selectstart",function(){return false},this);F.appendChild(B);if(this.currentYear&&this.currentYear==D){B.style.color=selectBoxHighlightColor;this.activeSelectBoxYear=B}}var B=document.createElement("DIV");B.innerHTML="&nbsp;&nbsp;+ ";YAHOO.util.Event.addListener(B,"click",this.changeSelectBoxYear,this);YAHOO.util.Event.addListener(B,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"mouseout",function(G,H){H.selectBoxMovementInProgress=false},this);YAHOO.util.Event.addListener(B,"selectstart",function(){return false},this);F.appendChild(B);return F};Calendar.prototype.createHourDiv=function(){if(!document.getElementById(this.id+"_hourDropDown")){var F=document.createElement("DIV");F.className="monthYearPicker"}else{var F=document.getElementById(this.id+"_hourDropDown");var E=F.getElementsByTagName("DIV");for(var D=0;D<E.length;D++){E[D].parentNode.removeChild(E[D])}}if(!this.currentHour){this.currentHour=0}var C=this.currentHour/1;if(C>14){C=14}var A=document.createElement("DIV");A.innerHTML="&nbsp;&nbsp;- ";YAHOO.util.Event.addListener(A,"click",this.changeSelectBoxHour,this);YAHOO.util.Event.addListener(A,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"mouseout",function(G,H){H.selectBoxMovementInProgress=false},this);YAHOO.util.Event.addListener(A,"selectstart",function(){return false},this);F.appendChild(A);for(var D=C;D<C+10;D++){var B="";if(D/1<10){B="0"}var A=document.createElement("DIV");A.innerHTML=B+D;YAHOO.util.Event.addListener(A,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"click",this.selectHour,this);A.id=this.id+"_hourDiv"+D;YAHOO.util.Event.addListener(A,"selectstart",function(){return false},this);F.appendChild(A);if(this.currentYear&&this.currentYear==D){A.style.color=selectBoxHighlightColor;this.activeSelectBoxYear=A}}var A=document.createElement("DIV");A.innerHTML="&nbsp;&nbsp;+ ";YAHOO.util.Event.addListener(A,"click",this.changeSelectBoxHour,this);YAHOO.util.Event.addListener(A,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"mouseout",function(G,H){H.selectBoxMovementInProgress=false},this);YAHOO.util.Event.addListener(A,"selectstart",function(){return false},this);F.appendChild(A);return F};Calendar.prototype.createMinuteDiv=function(){if(!document.getElementById(this.id+"_minuteDropDown")){var F=document.createElement("DIV");F.className="monthYearPicker"}else{var F=document.getElementById(this.id+"_minuteDropDown");var E=F.getElementsByTagName("DIV");for(var D=0;D<E.length;D++){E[D].parentNode.removeChild(E[D])}}var A=0;var C="";for(var D=A;D<60;D+=intervalSelectBox_minutes){if(D<10){C="0"}else{C=""}var B=document.createElement("DIV");B.innerHTML=C+D;YAHOO.util.Event.addListener(B,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"mouseout",this.highlightMonthYear,this);YAHOO.util.Event.addListener(B,"click",this.selectMinute,this);B.id=this.id+"_minuteDiv_"+C+D;YAHOO.util.Event.addListener(B,"selectstart",function(){return false},this);F.appendChild(B);if(this.currentYear&&this.currentYear==D){B.style.color=selectBoxHighlightColor;this.activeSelectBoxYear=B}}return F};Calendar.prototype.updateYearDiv=function(){var C=document.getElementById(this.id+"_yearDropDown");var A=C.getElementsByTagName("DIV");for(var B=1;B<A.length-1;B++){A[B].innerHTML=this.currentYear/1-6+B;if(this.currentYear==(this.currentYear/1-6+B)){A[B].style.color=selectBoxHighlightColor;this.activeSelectBoxYear=A[B]}else{A[B].style.color=""}}};Calendar.prototype.updateMonthDiv=function(){for(no=0;no<12;no++){document.getElementById(this.id+"_monthDiv_"+no).style.color=""}document.getElementById(this.id+"_monthDiv_"+this.currentMonth).style.color=selectBoxHighlightColor;this.activeSelectBoxMonth=document.getElementById(this.id+"_monthDiv_"+this.currentMonth)};Calendar.prototype.updateHourDiv=function(){var E=document.getElementById(this.id+"_hourDropDown");var B=E.getElementsByTagName("DIV");var A=0;if((this.currentHour/1-6+1)<0){A=(this.currentHour/1-6+1)*-1}for(var D=1;D<B.length-1;D++){var C="";if((this.currentHour/1-6+D+A)<10){C="0"}B[D].innerHTML=C+(this.currentHour/1-6+D+A);if(this.currentHour==(this.currentHour/1-6+D)){B[D].style.color=selectBoxHighlightColor;this.activeSelectBoxHour=B[D]}else{B[D].style.color=""}}};Calendar.prototype.updateMinuteDiv=function(){for(no=0;no<60;no+=intervalSelectBox_minutes){var A="";if(no<10){A="0"}document.getElementById(this.id+"_minuteDiv_"+A+no).style.color=""}if(document.getElementById(this.id+"_minuteDiv_"+this.currentMinute)){document.getElementById(this.id+"_minuteDiv_"+this.currentMinute).style.color=selectBoxHighlightColor;this.activeSelectBoxMinute=document.getElementById(this.id+"_minuteDiv_"+this.currentMinute)}};Calendar.prototype.positionCalendar=function(A){this.calendarDiv.style.left=getleftPos(A)+"px";this.calendarDiv.style.top=getTopPos(A)+"px";if(iframeObj){iframeObj.style.left=this.calendarDiv.style.left;iframeObj.style.top=this.calendarDiv.style.top;iframeObj2.style.left=this.calendarDiv.style.left;iframeObj2.style.top=this.calendarDiv.style.top}};Calendar.prototype.setTimeProperties=function(){if(!this.calendarDisplayTime){document.getElementById(this.id+"_timeBar").style.display="none";document.getElementById(this.id+"_timeBar").style.visibility="hidden";document.getElementById(this.id+"_todaysDateString").style.width="100%"}else{document.getElementById(this.id+"_timeBar").style.display="block";document.getElementById(this.id+"_timeBar").style.visibility="visible";document.getElementById(this.id+"_hourDropDown").style.top=document.getElementById(this.id+"_calendar_minute_txt").parentNode.offsetHeight+this.calendarContentDiv.offsetHeight+document.getElementById(this.id+"_topBar").offsetHeight+"px";document.getElementById(this.id+"_minuteDropDown").style.top=document.getElementById(this.id+"_calendar_minute_txt").parentNode.offsetHeight+this.calendarContentDiv.offsetHeight+document.getElementById(this.id+"_topBar").offsetHeight+"px";document.getElementById(this.id+"_minuteDropDown").style.right="50px";document.getElementById(this.id+"_hourDropDown").style.right="50px";document.getElementById(this.id+"_todaysDateString").style.width="115px"}};Calendar.prototype.initCalendar=function(){if(MSIE&&!iframeObj){iframeObj=document.createElement("IFRAME");iframeObj.style.filter="alpha(opacity=0)";iframeObj.style.position="absolute";iframeObj.border="0px";iframeObj.style.border="0px";iframeObj.style.backgroundColor="#FF0000";iframeObj2=document.createElement("IFRAME");iframeObj2.style.position="absolute";iframeObj2.border="0px";iframeObj2.style.border="0px";iframeObj2.style.height="1px";iframeObj2.style.width="1px";document.body.appendChild(iframeObj2);iframeObj2.src="blank.html";iframeObj.src="blank.html";document.body.appendChild(iframeObj)}this.calendarDiv=document.createElement("DIV");this.calendarDiv.id=this.id+"_calendarDiv";this.calendarDiv.className="calendarDiv";this.calendarDiv.style.zIndex=1000;this.slideCalendarSelectBox();document.body.appendChild(this.calendarDiv);this.writeBottomBar();this.writeTopBar();if(!this.currentYear){var A=new Date();this.currentMonth=A.getMonth();this.currentYear=A.getFullYear()}this.writeCalendarContent()};Calendar.prototype.slideCalendarSelectBox=function(){if(this.selectBoxMovementInProgress){if(this.activeSelectBox.parentNode.id==this.id+"_hourDropDown"){this.changeSelectBoxHour(false,this.activeSelectBox)}if(this.activeSelectBox.parentNode.id==this.id+"_yearDropDown"){this.changeSelectBoxYear(false,this.activeSelectBox)}}setTimeout('calendars["'+this.id+'"].slideCalendarSelectBox()',speedOfSelectBoxSliding)};Calendar.prototype.changeSelectBoxHour=function(D,A){if(!A){A=this}var B=A.parentNode.getElementsByTagName("DIV");if(A.innerHTML.indexOf("-")>=0){var F=B[1].innerHTML/1-1;if(F<0){F=0}if(this.activeSelectBoxHour){this.activeSelectBoxHour.style.color=""}}else{var F=B[1].innerHTML/1+1;if(F>14){F=14}if(this.activeSelectBoxHour){this.activeSelectBoxHour.style.color=""}}var C="";for(var E=1;E<B.length-1;E++){if((F/1+E/1)<11){C="0"}else{C=""}B[E].innerHTML=C+(F+E-1);B[E].id=this.id+"_hourDiv"+(F/1+E/1-1)}if(this.activeSelectBoxHour){this.activeSelectBoxHour.style.color="";if(document.getElementById(this.id+"_hourDiv"+this.currentHour)){this.activeSelectBoxHour=document.getElementById(this.id+"_hourDiv"+this.currentHour);this.activeSelectBoxHour.style.color=selectBoxHighlightColor}}};Calendar.prototype.changeSelectBoxYear=function(D,B){if(!B){B=this}var C=B.parentNode.getElementsByTagName("DIV");if(B.innerHTML.indexOf("-")>=0){var A=C[1].innerHTML/1-1;if(B.activeSelectBoxYear){B.activeSelectBoxYear.style.color=""}}else{var A=C[1].innerHTML/1+1;if(B.activeSelectBoxYear){B.activeSelectBoxYear.style.color=""}}for(var E=1;E<C.length-1;E++){C[E].innerHTML=A+E-1;C[E].id=this.id+"_yearDiv"+(A/1+E/1-1)}if(B.activeSelectBoxYear){B.activeSelectBoxYear.style.color="";if(document.getElementById(B.id+"_yearDiv"+B.currentYear)){B.activeSelectBoxYear=document.getElementById(B.id+"_yearDiv"+B.currentYear);B.activeSelectBoxYear.style.color=selectBoxHighlightColor}}};Calendar.prototype.writeBottomBar=function(){var D=new Date();this.bottomBar=document.createElement("DIV");this.bottomBar.id=this.id+"_bottomBar";this.bottomBar.style.cursor="pointer";this.bottomBar.className="todaysDate";var C=document.createElement("DIV");YAHOO.util.Event.addListener(C,"click",this.pickTodaysDate,this);C.id=this.id+"_todaysDateString";C.style.width=(this.calendarDiv.offsetWidth-95)+"px";var B=D.getDay();if(B==0){B=7}B--;var A=todayStringFormat;A=A.replace("[monthString]",monthArrayShort[D.getMonth()]);A=A.replace("[day]",D.getDate());A=A.replace("[year]",D.getFullYear());A=A.replace("[dayString]",dayArray[B].toLowerCase());A=A.replace("[UCFdayString]",dayArray[B]);A=A.replace("[todayString]",todayString);C.innerHTML=todayString+": "+D.getDate()+". "+monthArrayShort[D.getMonth()]+", "+D.getFullYear();C.innerHTML=A;this.bottomBar.appendChild(C);var E=this.writeTimeBar();this.bottomBar.appendChild(E);this.calendarDiv.appendChild(this.bottomBar)};Calendar.prototype.writeTimeBar=function(){this.timeBar=document.createElement("DIV");this.timeBar.id=this.id+"_timeBar";this.timeBar.className="timeBar";var D=document.createElement("DIV");D.innerHTML="Time:";var A=document.createElement("DIV");YAHOO.util.Event.addListener(A,"mouseover",this.highlightSelect,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightSelect,this);YAHOO.util.Event.addListener(A,"click",this.showHourDropDown,this);A.style.width="30px";var E=document.createElement("SPAN");E.innerHTML=this.currentHour;E.id=this.id+"_calendar_hour_txt";A.appendChild(E);this.timeBar.appendChild(A);var B=document.createElement("IMG");B.src=pathToImages+"down_time.gif";A.appendChild(B);A.className="selectBoxTime";if(Opera){A.style.width="30px";B.style.cssText="float:right";B.style.position="relative";B.style.styleFloat="right"}var C=this.createHourDiv();C.style.left="130px";C.style.width="30px";C.id=this.id+"_hourDropDown";this.calendarDiv.appendChild(C);var G=document.createElement("DIV");YAHOO.util.Event.addListener(G,"mouseover",this.highlightSelect,this);YAHOO.util.Event.addListener(G,"mouseout",this.highlightSelect,this);YAHOO.util.Event.addListener(G,"click",this.showMinuteDropDown,this);G.style.width="30px";var E=document.createElement("SPAN");E.innerHTML=this.currentMinute;E.id=this.id+"_calendar_minute_txt";G.appendChild(E);this.timeBar.appendChild(G);var B=document.createElement("IMG");B.src=pathToImages+"down_time.gif";G.appendChild(B);G.className="selectBoxTime";if(Opera){G.style.width="30px";B.style.cssText="float:right";B.style.position="relative";B.style.styleFloat="right"}var F=this.createMinuteDiv();F.style.left="167px";F.style.width="30px";F.id=this.id+"_minuteDropDown";this.calendarDiv.appendChild(F);return this.timeBar};Calendar.prototype.writeTopBar=function(){this.topBar=document.createElement("DIV");this.topBar.className="topBar";this.topBar.id=this.id+"_topBar";this.calendarDiv.appendChild(this.topBar);var D=document.createElement("DIV");D.style.marginRight="1px";var A=document.createElement("IMG");A.src=pathToImages+"left.gif";YAHOO.util.Event.addListener(A,"mouseover",this.highlightArrow,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightArrow,this);YAHOO.util.Event.addListener(A,"click",this.switchMonth,this);D.appendChild(A);this.topBar.appendChild(D);if(Opera){D.style.width="16px"}var G=document.createElement("DIV");G.style.marginRight="1px";var A=document.createElement("IMG");A.src=pathToImages+"right.gif";YAHOO.util.Event.addListener(A,"mouseover",this.highlightArrow,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightArrow,this);YAHOO.util.Event.addListener(A,"click",this.switchMonth,this);G.appendChild(A);if(Opera){G.style.width="16px"}this.topBar.appendChild(G);var C=document.createElement("DIV");C.id="monthSelect";YAHOO.util.Event.addListener(C,"mouseover",this.highlightSelect,this);YAHOO.util.Event.addListener(C,"mouseout",this.highlightSelect,this);YAHOO.util.Event.addListener(C,"click",this.showMonthDropDown,this);var F=document.createElement("SPAN");F.innerHTML=monthArray[this.currentMonth];F.id=this.id+"_calendar_month_txt";C.appendChild(F);var A=document.createElement("IMG");A.src=pathToImages+"down.gif";A.style.position="absolute";A.style.right="0px";C.appendChild(A);C.className="selectBox";if(Opera){A.style.cssText="float:right;position:relative";A.style.position="relative";A.style.styleFloat="right"}this.topBar.appendChild(C);var B=this.createMonthDiv();B.style.left="37px";B.style.top=C.offsetTop+C.offsetHeight+1+"px";B.style.width="60px";B.id=this.id+"_monthDropDown";this.calendarDiv.appendChild(B);var E=document.createElement("DIV");YAHOO.util.Event.addListener(E,"mouseover",this.highlightSelect,this);YAHOO.util.Event.addListener(E,"mouseout",this.highlightSelect,this);YAHOO.util.Event.addListener(E,"click",this.showYearDropDown,this);var F=document.createElement("SPAN");F.innerHTML=this.currentYear;F.id=this.id+"_calendar_year_txt";E.appendChild(F);this.topBar.appendChild(E);var A=document.createElement("IMG");A.src=pathToImages+"down.gif";E.appendChild(A);E.className="selectBox";if(Opera){E.style.width="50px";A.style.cssText="float:right";A.style.position="relative";A.style.styleFloat="right"}var H=this.createYearDiv();H.style.left="113px";H.style.top=C.offsetTop+C.offsetHeight+1+"px";H.style.width="35px";H.id=this.id+"_yearDropDown";this.calendarDiv.appendChild(H);var A=document.createElement("IMG");A.src=pathToImages+"close.gif";A.style.styleFloat="right";YAHOO.util.Event.addListener(A,"mouseover",this.highlightClose,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightClose,this);YAHOO.util.Event.addListener(A,"click",this.closeCalendar,this);this.topBar.appendChild(A);if(!document.all){A.style.position="absolute";A.style.right="2px"}};Calendar.prototype.createMonthDiv=function(){var C=document.createElement("DIV");C.className="monthYearPicker";C.id=this.id+"_monthPicker";for(var B=0;B<monthArray.length;B++){var A=document.createElement("DIV");A.innerHTML=monthArray[B];YAHOO.util.Event.addListener(A,"mouseover",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"mouseout",this.highlightMonthYear,this);YAHOO.util.Event.addListener(A,"click",this.selectMonth,this);A.id=this.id+"_monthDiv_"+B;A.style.width="56px";YAHOO.util.Event.addListener(A,"selectstart",function(){return false},this);C.appendChild(A);if(this.currentMonth&&this.currentMonth==B){A.style.color=selectBoxHighlightColor;this.activeSelectBoxMonth=A}}return C};Calendar.prototype.setDateMin=function(A,C,B){this.minDay=A;this.minMonth=C;this.minYear=B;dday=parseFloat(this.dayInput.options[this.dayInput.selectedIndex].value);dmonth=parseFloat(this.monthInput.options[this.monthInput.selectedIndex].value)-1;dyear=parseFloat(this.yearInput.options[this.yearInput.selectedIndex].value);if(this.dayInput.selectedIndex==0||this.monthInput.selectedIndex==0||this.yearInput.selectedIndex==0){}else{if(!this.testDate(dday,dmonth,dyear)){dd=new Date(dyear,dmonth,dday);while(!this.testDate(dd.getDate(),dd.getMonth(),dd.getFullYear())){dd.setTime(dd.getTime()+24*3600*1000)}this.currentMonth=dd.getMonth();this.currentYear=dd.getFullYear();this.pickDate(false,dd.getDate(),false)}}this.reloadCalendar(false,this)};Calendar.prototype.setDateMax=function(A,C,B){this.maxDay=A;this.maxMonth=C;this.maxYear=B;dday=parseFloat(this.dayInput.options[this.dayInput.selectedIndex].value);dmonth=parseFloat(this.monthInput.options[this.monthInput.selectedIndex].value)-1;dyear=parseFloat(this.yearInput.options[this.yearInput.selectedIndex].value);if(this.dayInput.selectedIndex==0||this.monthInput.selectedIndex==0||this.yearInput.selectedIndex==0){}else{if(!this.testDate(dday,dmonth,dyear)){dd=new Date(dyear,dmonth,dday);while(!this.testDate(dd.getDate(),dd.getMonth(),dd.getFullYear())){dd.setTime(dd.getTime()-24*3600*1000)}this.currentMonth=dd.getMonth();this.currentYear=dd.getFullYear();this.pickDate(false,dd.getDate(),false)}}this.reloadCalendar(false,this)};Calendar.prototype.getNbDaysInMonth=function(C,B){var A=daysInMonthArray[C?C:this.currentMonth];if(A==28){if(isLeapYear(B?B:this.currentYear)){A=29}}return A};Calendar.prototype.writeCalendarContent=function(){this.calendarContentDivExists=true;if(!this.calendarContentDiv){this.calendarContentDiv=document.createElement("DIV");this.calendarDiv.appendChild(this.calendarContentDiv);this.calendarContentDivExists=false}this.currentMonth=this.currentMonth/1;var G=new Date();G.setFullYear(this.currentYear);G.setDate(1);G.setMonth(this.currentMonth);var D=G.getDay();if(D==0){D=7}D--;document.getElementById(this.id+"_calendar_year_txt").innerHTML=this.currentYear;document.getElementById(this.id+"_calendar_month_txt").innerHTML=monthArray[this.currentMonth];document.getElementById(this.id+"_calendar_hour_txt").innerHTML=this.currentHour;document.getElementById(this.id+"_calendar_minute_txt").innerHTML=this.currentMinute;var A=this.calendarContentDiv.getElementsByTagName("TABLE");if(A.length>0){this.calendarContentDiv.removeChild(A[0])}var F=document.createElement("TABLE");F.width="100%";F.cellSpacing="0";this.calendarContentDiv.appendChild(F);var E=document.createElement("TBODY");F.appendChild(E);var K=E.insertRow(-1);K.className="calendar_week_row";var H=K.insertCell(-1);H.innerHTML=weekString;H.className="calendar_week_column";H.style.backgroundColor=selectBoxRolloverBgColor;for(var I=0;I<dayArray.length;I++){var H=K.insertCell(-1);H.innerHTML=dayArray[I]}var K=E.insertRow(-1);var H=K.insertCell(-1);H.className="calendar_week_column";H.style.backgroundColor=selectBoxRolloverBgColor;var C=getWeek(this.currentYear,this.currentMonth,1);H.innerHTML=C;for(var I=0;I<D;I++){var H=K.insertCell(-1);H.innerHTML="&nbsp;"}var J=D;var B=this.getNbDaysInMonth();for(var I=1;I<=B;I++){G.setDate(I-1);if(J>0&&J%7==0){var K=E.insertRow(-1);var H=K.insertCell(-1);H.className="calendar_week_column";var C=getWeek(this.currentYear,this.currentMonth,I);H.innerHTML=C;H.style.backgroundColor=selectBoxRolloverBgColor}var H=K.insertCell(-1);if(this.currentYear==this.inputYear&&this.currentMonth==this.inputMonth&&I==this.inputDay){H.className="activeDay"}if(this.testDate(I,this.currentMonth,this.currentYear)){YAHOO.util.Event.addListener(H,"click",this.pickDateEvent,this)}else{H.className+=" inactive"}H.innerHTML=I;J++}if(!document.all){if(this.calendarContentDiv.offsetHeight){document.getElementById(this.id+"_topBar").style.top=this.calendarContentDiv.offsetHeight+document.getElementById(this.id+"_timeBar").offsetHeight+document.getElementById(this.id+"_topBar").offsetHeight-1+"px"}else{document.getElementById(this.id+"_topBar").style.top="";document.getElementById(this.id+"_topBar").style.bottom="0px"}}if(iframeObj){if(!this.calendarContentDivExists){setTimeout('calendars["'+this.id+'"].resizeIframe()',350)}else{setTimeout('calendars["'+this.id+'"].resizeIframe()',10)}}};Calendar.prototype.testDate=function(A,C,B){if(this.minDay&&this.minMonth&&this.minYear){if(!(B>this.minYear||(B==this.minYear&&C>this.minMonth)||(B==this.minYear&&C==this.minMonth&&A>=this.minDay))){return false}}if(this.maxDay&&this.maxMonth&&this.maxYear){if(!(B<this.maxYear||(B==this.maxYear&&C<this.maxMonth)||(B==this.maxYear&&C==this.maxMonth&&A<=this.maxDay))){return false}}return true};Calendar.prototype.pickDateEvent=function(A,B){B.pickDate(A,this.innerHTML,true)};Calendar.prototype.changeSelectBoxYear=function(D,B){if(!B){B=this}var C=B.parentNode.getElementsByTagName("DIV");if(B.innerHTML.indexOf("-")>=0){var A=C[1].innerHTML/1-1;if(this.activeSelectBoxYear){this.activeSelectBoxYear.style.color=""}}else{var A=C[1].innerHTML/1+1;if(this.activeSelectBoxYear){this.activeSelectBoxYear.style.color=""}}for(var E=1;E<C.length-1;E++){C[E].innerHTML=A+E-1;C[E].id=this.id+"_yearDiv"+(A/1+E/1-1)}if(this.activeSelectBoxYear){this.activeSelectBoxYear.style.color="";if(document.getElementById(this.id+"_yearDiv"+this.currentYear)){this.activeSelectBoxYear=document.getElementById(this.id+"_yearDiv"+this.currentYear);this.activeSelectBoxYear.style.color=selectBoxHighlightColor}}};Calendar.prototype.highlightMonthYear=function(B,A){if(A.activeSelectBoxMonth){A.activeSelectBoxMonth.className=""}A.activeSelectBox=this;if(this.className=="monthYearActive"){this.className=""}else{this.className="monthYearActive";A.activeSelectBoxMonth=this}if(this.innerHTML.indexOf("-")>=0||this.innerHTML.indexOf("+")>=0){if(this.className=="monthYearActive"){A.selectBoxMovementInProgress=true}else{A.selectBoxMovementInProgress=false}if(this.innerHTML.indexOf("-")>=0){A.activeSelectBoxDirection=-1}else{A.activeSelectBoxDirection=1}}else{A.selectBoxMovementInProgress=false}};Calendar.prototype.selectYear=function(A,B){document.getElementById(B.id+"_calendar_year_txt").innerHTML=this.innerHTML;B.currentYear=this.innerHTML.replace(/[^\d]/g,"");document.getElementById(B.id+"_yearDropDown").style.display="none";EIS_Hide_Frame();if(B.activeSelectBoxYear){B.activeSelectBoxYear.style.color=""}B.activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;B.writeCalendarContent()};Calendar.prototype.changeSelectBoxHour=function(D,A){var B=this.parentNode.getElementsByTagName("DIV");if(this.innerHTML.indexOf("-")>=0){var F=B[1].innerHTML/1-1;if(F<0){F=0}if(A.activeSelectBoxHour){A.activeSelectBoxHour.style.color=""}}else{var F=B[1].innerHTML/1+1;if(F>14){F=14}if(A.activeSelectBoxHour){A.activeSelectBoxHour.style.color=""}}var C="";for(var E=1;E<B.length-1;E++){if((F/1+E/1)<11){C="0"}else{C=""}B[E].innerHTML=C+(F+E-1);B[E].id="hourDiv"+(F/1+E/1-1)}if(A.activeSelectBoxHour){A.activeSelectBoxHour.style.color="";if(document.getElementById(A.id+"_hourDiv"+A.currentHour)){A.activeSelectBoxHour=document.getElementById(A.id+"_hourDiv"+currentHour);A.activeSelectBoxHour.style.color=selectBoxHighlightColor}}};Calendar.prototype.selectHour=function(A,B){document.getElementById(B.id+"_calendar_hour_txt").innerHTML=this.innerHTML;B.currentHour=this.innerHTML.replace(/[^\d]/g,"");document.getElementById(B.id+"_hourDropDown").style.display="none";EIS_Hide_Frame();if(B.activeSelectBoxHour){B.activeSelectBoxHour.style.color=""}B.activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor};Calendar.prototype.selectMinute=function(A,B){document.getElementById(B.id+"_calendar_minute_txt").innerHTML=this.innerHTML;B.currentMinute=this.innerHTML.replace(/[^\d]/g,"");document.getElementById(B.id+"_minuteDropDown").style.display="none";EIS_Hide_Frame();if(B.activeSelectBoxMinute){B.activeSelectBoxMinute.style.color=""}B.activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor};Calendar.prototype.pickTodaysDate=function(A,B){var C=new Date();B.currentMonth=C.getMonth();B.currentYear=C.getFullYear();B.pickDate(false,C.getDate(),false)};Calendar.prototype.pickDate=function(A,E,C){var D=this.currentMonth/1+1;if(D<10){D="0"+D}var B;if(!E&&this){B=this.innerHTML}else{B=E}if(B/1<10){B="0"+B}this.returnDateTo.value=this.returnFormat.replace("dd",B);this.returnDateTo.value=this.returnDateTo.value.replace("mm",D);this.returnDateTo.value=this.returnDateTo.value.replace("yyyy",this.currentYear);this.returnDateTo.value=this.returnDateTo.value.replace("hh",this.currentHour);this.returnDateTo.value=this.returnDateTo.value.replace("ii",this.currentMinute);this.returnDateTo.value=this.returnDateTo.value.replace("d",B/1);this.returnDateTo.value=this.returnDateTo.value.replace("m",D/1);for(var F=0;F<this.returnDateToYear.options.length;F++){if(this.returnDateToYear.options[F].value==this.currentYear){this.returnDateToYear.selectedIndex=F;break}}for(var F=0;F<this.returnDateToMonth.options.length;F++){if(this.returnDateToMonth.options[F].value==parseFloat(D)){this.returnDateToMonth.selectedIndex=F;break}}for(var F=0;F<this.returnDateToDay.options.length;F++){if(this.returnDateToDay.options[F].value==parseFloat(B)){this.returnDateToDay.selectedIndex=F;break}}if(this.calendarDisplayTime){for(var F=0;F<this.returnDateToHour.options.length;F++){if(this.returnDateToHour.options[F].value==parseFloat(this.currentHour)){this.returnDateToHour.selectedIndex=F;break}}for(var F=0;F<this.returnDateToMinute.options.length;F++){if(parseFloat(this.returnDateToMinute.options[F].value)>=parseFloat(this.currentMinute)){this.returnDateToMinute.selectedIndex=F;break}}}if(C){this.closeCalendar(A,this)}this.onSelectDay.fire(this.returnDateTo.value)};Calendar.prototype.closeCalendar=function(A,B){if(!document.getElementById(B.id+"_yearDropDown")){return }document.getElementById(B.id+"_yearDropDown").style.display="none";document.getElementById(B.id+"_monthDropDown").style.display="none";document.getElementById(B.id+"_hourDropDown").style.display="none";document.getElementById(B.id+"_minuteDropDown").style.display="none";B.calendarDiv.style.display="none";if(iframeObj){iframeObj.style.display="none";EIS_Hide_Frame()}if(B.activeSelectBoxMonth){B.activeSelectBoxMonth.className=""}if(B.activeSelectBoxYear){B.activeSelectBoxYear.className=""}};Calendar.prototype.highlightSelect=function(A,B){if(this.className=="selectBoxTime"){this.className="selectBoxTimeOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time_over.gif"}else{if(this.className=="selectBoxTimeOver"){this.className="selectBoxTime";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_time.gif"}}if(this.className=="selectBox"){this.className="selectBoxOver";this.getElementsByTagName("IMG")[0].src=pathToImages+"down_over.gif"}else{if(this.className=="selectBoxOver"){this.className="selectBox";this.getElementsByTagName("IMG")[0].src=pathToImages+"down.gif"}}};Calendar.prototype.showHourDropDown=function(A,B){if(document.getElementById(B.id+"_hourDropDown").style.display=="block"){document.getElementById(B.id+"_hourDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById(B.id+"_hourDropDown").style.display="block";document.getElementById(B.id+"_monthDropDown").style.display="none";document.getElementById(B.id+"_yearDropDown").style.display="none";document.getElementById(B.id+"_minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1(B.id+"_hourDropDown")}}};Calendar.prototype.showMinuteDropDown=function(A,B){if(document.getElementById(B.id+"_minuteDropDown").style.display=="block"){document.getElementById(B.id+"_minuteDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById(B.id+"_minuteDropDown").style.display="block";document.getElementById(B.id+"_monthDropDown").style.display="none";document.getElementById(B.id+"_yearDropDown").style.display="none";document.getElementById(B.id+"_hourDropDown").style.display="none";if(MSIE){EIS_FIX_EI1(B.id+"_minuteDropDown")}}};Calendar.prototype.highlightArrow=function(A,B){if(this.src.indexOf("over")>=0){if(this.src.indexOf("left")>=0){this.src=pathToImages+"left.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right.gif"}}else{if(this.src.indexOf("left")>=0){this.src=pathToImages+"left_over.gif"}if(this.src.indexOf("right")>=0){this.src=pathToImages+"right_over.gif"}}};Calendar.prototype.switchMonth=function(A,B){if(this.src.indexOf("left")>=0){B.currentMonth=B.currentMonth-1;if(B.currentMonth<0){B.currentMonth=11;B.currentYear=B.currentYear-1}}else{B.currentMonth=B.currentMonth+1;if(B.currentMonth>11){B.currentMonth=0;B.currentYear=B.currentYear/1+1}}B.writeCalendarContent()};Calendar.prototype.showMonthDropDown=function(A,B){if(document.getElementById(B.id+"_monthDropDown").style.display=="block"){document.getElementById(B.id+"_monthDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById(B.id+"_monthDropDown").style.display="block";document.getElementById(B.id+"_yearDropDown").style.display="none";document.getElementById(B.id+"_hourDropDown").style.display="none";document.getElementById(B.id+"_minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1(B.id+"_monthDropDown")}}};Calendar.prototype.showYearDropDown=function(A,B){if(document.getElementById(B.id+"_yearDropDown").style.display=="block"){document.getElementById(B.id+"_yearDropDown").style.display="none";EIS_Hide_Frame()}else{document.getElementById(B.id+"_yearDropDown").style.display="block";document.getElementById(B.id+"_monthDropDown").style.display="none";document.getElementById(B.id+"_hourDropDown").style.display="none";document.getElementById(B.id+"_minuteDropDown").style.display="none";if(MSIE){EIS_FIX_EI1(B.id+"_yearDropDown")}}};Calendar.prototype.highlightClose=function(A,B){if(this.src.indexOf("over")>=0){this.src=pathToImages+"close.gif"}else{this.src=pathToImages+"close_over.gif"}};Calendar.prototype.selectMonth=function(A,B){document.getElementById(B.id+"_calendar_month_txt").innerHTML=this.innerHTML;B.currentMonth=this.id.substring(this.id.lastIndexOf("_")+1);document.getElementById(B.id+"_monthDropDown").style.display="none";EIS_Hide_Frame();for(var C=0;C<monthArray.length;C++){document.getElementById(B.id+"_monthDiv_"+C).style.color=""}this.style.color=selectBoxHighlightColor;B.activeSelectBoxMonth=this;B.writeCalendarContent()};Calendar.prototype.resizeIframe=function(){iframeObj.style.width=this.calendarDiv.offsetWidth+"px";iframeObj.style.height=this.calendarDiv.offsetHeight+"px"}
function tabPanel(D){var B=D.parentNode.getElementsByTagName("li");var C=new Array();if(D.parentNode.parentNode.getElementsByClassName){C=D.parentNode.parentNode.getElementsByClassName("tab")}else{var A=D.parentNode.parentNode.getElementsByTagName("div");for(i=0;i<A.length;i++){if((" "+A[i].className+" ").indexOf(" tab ")>-1){C.push(A[i])}}}for(i=0;i<B.length;i++){if(B[i]==D){B[i].className="selected";C[i].className="tab selected"}else{B[i].className="";C[i].className="tab"}}}function stackPanel(A){var B=A.parentNode.parentNode.getElementsByTagName("li");for(i=0;i<B.length;i+=2){if(B[i]==A){B[i+1].className="stack selected"}else{B[i+1].className="stack"}}}var masking=false;function WaitPanel(C,A,B){this.id=C;this.masking=A;this.relative=B}WaitPanel.prototype.onscroll=function(A,B){if(B.glass){B.glass.style.top=Math.max(document.documentElement.scrollTop,document.body.scrollTop)+"px"}};WaitPanel.prototype.show=function(){if(!this.elem){this.elem=document.getElementById(this.id);this.relativeElem=document.getElementById(this.relative);this.glass=document.getElementById(this.id+"_wait");this.glass.style.width=(getViewportWidth()-25)+"px";this.glass.style.height=getViewportHeight()+"px";frmDoc=this.glass.Document;if(!frmDoc){frmDoc=this.glass.contentDocument;if(!frmDoc){frmDoc=this.glass.document}}frmDoc.getElementById(this.id+"_wait_img").style.width=(getViewportWidth()-25)-25;frmDoc.getElementById(this.id+"_wait_img").style.height=getViewportHeight()-25}center(this.elem,this.relativeElem);this.elem.className="visible wait";if(this.masking){this.glass.className="visible wait-glass";this.onscroll(null,this)}YAHOO.util.Event.addListener(window,"scroll",this.onscroll,this)};WaitPanel.prototype.hide=function(){this.elem.className="invisible wait";if(this.masking){this.glass.className="wait-glass invisible"}YAHOO.util.Event.removeListener(window,"scroll",this.onscroll)};var waitPanels=new Array();function addWaitPanel(C,A,B){waitPanels[C]=new WaitPanel(C,A,B)}function showWaitPanel(A){pan=waitPanels[A];if(pan){pan.show()}}function hideWaitPanel(A){pan=waitPanels[A];if(pan){pan.hide()}}function getViewportHeight(){var A=self.innerHeight;if(!A){A=(document.compatMode=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return A}function getViewportWidth(){var A=self.innerWidth;if(!A){A=(document.compatMode=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return A}function getElementWidth(A){if(typeof A.clip!=="undefined"){return A.clip.width}else{if(A.style.pixelWidth){return A.style.pixelWidth}else{return A.offsetWidth}}}function getElementHeight(A){if(typeof A.clip!=="undefined"){return A.clip.height}else{if(A.style.pixelHeight){return A.style.pixelHeight}else{return A.offsetHeight}}}function center(E,A){E.className="visible wait";var D=10,K=getElementWidth(E),G=getElementHeight(E),I=A?getElementWidth(A):getViewportWidth(),F=A?getElementHeight(A):getViewportHeight(),C=A?getRealPos(A,"x"):0,B=A?getRealPos(A,"y"):0,J,H;if(K<I){J=(I/2)-(K/2)+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)}else{J=D+Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)}if(G<F){H=(F/2)-(G/2)+Math.max(document.documentElement.scrollTop,document.body.scrollTop)}else{H=D+Math.max(document.documentElement.scrollTop,document.body.scrollTop)}if(!E.style){E.setAttribute("style","")}if(!A){YAHOO.util.Event.addListener(window,"scroll",moveCenteredElement,E)}E.style.left=(J+C)+"px";E.style.top=(H+B)+"px"}function moveCenteredElement(A,B){B.style.top=((getViewportHeight()/2)-(getElementHeight(B)/2)+Math.max(document.documentElement.scrollTop,document.body.scrollTop))+"px"}function hideSelect(B){if(document.all){if(!document.getElementById(B.id+"_hvrShm")){document.body.insertAdjacentHTML("beforeEnd",'<iframe style="display:block;position: absolute;z-index:4;" src="javascript:\'<html></html>\'" frameBorder="0" scrolling="no" id="'+B.id+'_hvrShm" />')}var A=document.getElementById(B.id+"_hvrShm");A.style.display="block";A.style.top=getRealPos(B,"y")+"px";A.style.left=getRealPos(B,"x")+"px";A.style.width=B.offsetWidth+"px";A.style.height=B.offsetHeight+"px"}}function showSelect(A){if(document.all){if(document.getElementById(A.id+"_hvrShm")){document.getElementById(A.id+"_hvrShm").style.display="none"}}}function getRealPos(B,A){(A=="x")?pos=B.offsetLeft:pos=B.offsetTop;tmp=B.offsetParent;while(tmp!=null){pos+=(A=="x")?tmp.offsetLeft:tmp.offsetTop;tmp=tmp.offsetParent}return pos}function go(typerubrique,rubriqueid,elementid,offset,nbrec,firstrec,options){var toputoffset=true;var formName="submitor";if(options&&options["formName"]){formName=options["formName"]}var oldaction=document.getElementById(formName).action;if(options){for(var o in options){switch(o){case"method":document.getElementById(formName).method=options.method;break;case"offsetnb":offsetfield=eval("document.getElementById('"+formName+"').offset"+options.offsetnb);if(offsetfield){offsetfield.value=offset;toputoffset=false}break;case"target":document.getElementById(formName).target=options.target;break;case"formEncoding":document.getElementById(formName).encoding=options.formEncoding;document.getElementById(formName).enctype=options.formEncoding;break;case"action":document.getElementById(formName).action=options.action;break;case"features":open("0.gif",options.target,options.features).focus();break}}}document.getElementById(formName).typerubrique.value=typerubrique;document.getElementById(formName).rubriqueid.value=rubriqueid;document.getElementById(formName).elementid.value=elementid;if(toputoffset){document.getElementById(formName).offset.value=offset}document.getElementById(formName).nbrec.value=nbrec;document.getElementById(formName).firstrec.value=firstrec;document.getElementById(formName).submit();document.getElementById(formName).action=oldaction;document.getElementById(formName).target=""}function setEnr(C,B,A,D){var E="submitor";if(D&&D["formName"]){E=D["formName"]}document.getElementById(E).enregistrementid.value=C;document.getElementById(E).firstenr.value=B;document.getElementById(E).nbenr.value=A;document.getElementById(E).method="post"}CKEDITOR_GETURL=function(B){var A;if(B.indexOf("://")==-1){A="libraries.ashx?ckeditor."+B.replace(new RegExp("/","g"),".");A=this.basePath+A}else{before=B.substring(0,B.indexOf("?"))+"?";after=B.substring(B.indexOf("?")+1);A=before+after.replace(new RegExp("/","g"),".")}return A}
function ListChooser(C,B,A){this.id=C;this.currentTableNo=0;this.nomnas=B;this.idnas=A;this.nomnas.pop();this.idnas.pop();this.lastIndex=0;this.loaded=false}ListChooser.prototype.load=function(){if(this.idnas.length>0){YAHOO.util.Event.addListener(this.directoryFrameDoc.body,"click",this.click,this);i=0;elem=this.directoryFrameDoc.getElementById("suiv"+i);while(elem){YAHOO.util.Event.addListener(elem,"click",function(C,B){B.changeTable(this.id.substring(4)+1000)},this);i+=1000;elem=this.directoryFrameDoc.getElementById("suiv"+i)}i=1000;elem=this.directoryFrameDoc.getElementById("prev"+i);while(elem){YAHOO.util.Event.addListener(elem,"click",function(C,B){B.changeTable(this.id.substring(4)-1000)},this);i+=1000;elem=this.directoryFrameDoc.getElementById("prev"+i)}this.selectLine(this.lastIndex);this.bottom=this.directoryFrameDoc.getElementById("bottom").offsetTop;if(this.myinput){var A=this.directoryFrameDoc.getElementById(this.idnas[this.lastIndex]);if(A){this.myinput.value=A.innerHTML}else{this.myinput.value=""}}this.loaded=true}};ListChooser.prototype.click=function(E,B){var D=YAHOO.util.Event.getTarget(E);while(D.nodeName.toLowerCase()!="li"&&D!=B.directoryFrameDoc.body){D=D.parentNode}if(D.nodeName.toLowerCase()=="li"){var C;for(C=0;C<B.idnas.length;C++){if(B.idnas[C]==D.id){break}}if(C<B.idnas.length){B.selectLine(C)}}if(B.myinput){var A=B.directoryFrameDoc.getElementById(B.idnas[B.lastIndex]);if(A){B.myinput.value=A.innerHTML}else{B.myinput.value=""}}};ListChooser.prototype.check=function(){if(this.directoryFrame){return }this.output=document.getElementById(this.id);this.directoryFrame=document.getElementById(this.id+"_dir");this.directoryFrameDoc=this.directoryFrame.Document;if(!this.directoryFrameDoc){this.directoryFrameDoc=this.directoryFrame.contentDocument}this.directoryFrameDoc.open();this.directoryFrameDoc.write('<html><head><script type="text/javascript" src="libraries.ashx?languageCode='+languageCode+'"><\/script><script type="text/javascript">try {if (YAHOO) {\r\nYAHOO.util.Event.onDOMReady(prepareEvents);\r\n}}catch(err){}function prepareEvents() {parent.listChoosers[\''+this.id+'\'].load();}<\/script><link rel="stylesheet" href="dashboard.css"/><link rel="stylesheet" href="style.css"/></head><body class="listchooser" onload="prepareEvents()">'+document.getElementById(this.id+"_data").innerHTML+"</body></html>");this.directoryFrameDoc.close();document.getElementById(this.id+"_data").innerHTML="";YAHOO.util.Event.addListener(this.id+"_txt","keyup",onSearchChange)};ListChooser.prototype.selectLine=function(A){this.lastIndex=A;this.check();if(!(this.currentTableNo*1000<=A&&A<(this.currentTableNo+1)*1000)||(!this.currentTable)){this.changeTable(A)}newLine=this.directoryFrameDoc.getElementById(this.idnas[A]);this.output.value=this.idnas[A];if(this.currentLine){if(this.currentLine!=this.newLine){this.currentLine.className="";this.currentLine=newLine;this.currentLine.className="selected";status="Searching...";this.directoryFrame.contentWindow.scrollTo(0,this.currentLine.offsetTop);scr=Math.min((this.directoryFrame.height-this.currentLine.height)/2,this.bottom-this.currentLine.offsetTop-this.currentLine.height*2);this.directoryFrame.contentWindow.scrollBy(0,-scr);status=""}}else{this.currentLine=newLine;this.currentLine.className="selected";status="Scrolling...";this.directoryFrame.contentWindow.scrollTo(0,this.currentLine.offsetTop);this.directoryFrame.contentWindow.scrollBy(0,-(this.directoryFrame.height-this.currentLine.height)/2);status=""}};ListChooser.prototype.changeTable=function(A){status="Loading page...";if(this.currentTable){this.currentTable.className="invisible"}this.currentTableNo=Math.floor(A/1000);this.currentTable=this.directoryFrameDoc.getElementById("table"+(1000*this.currentTableNo));this.currentTable.className="visible";status=""};ListChooser.prototype.processReqChange=function(A){if(A.readyState==4){if(A.status==200){toSearch=A.responseXML.documentElement.text;if(!toSearch){toSearch=A.responseXML.documentElement.textContent}this.selectLine(this.select(toSearch))}}};ListChooser.prototype.select=function(B){var A=0;ok=false;while(A<this.nomnas.length&&this.nomnas[A]<B){A++}if(A<this.nomnas.length){if(A>0&&nearest(B,this.nomnas[A-1],this.nomnas[A])==1){A--}return A}else{return A-1}};ListChooser.prototype.selectId=function(B){for(var A=0;A<this.idnas.length;A++){if(B==this.idnas[A]){return A}}return this.lastIndex};ListChooser.prototype.setInputForSelected=function(B){this.myinput=B;var A=this.directoryFrameDoc.getElementById(this.idnas[this.lastIndex]);if(A){this.myinput.value=A.innerHTML}else{this.myinput.value=""}};ListChooser.prototype.previousPage=function(){this.selectLine(this.currentTableNo*1000-1)};ListChooser.prototype.nextPage=function(){this.selectLine((this.currentTableNo+1)*1000)};ListChooser.prototype.up=function(){if(this.currentLine){if(this.lastIndex>0){this.selectLine(this.lastIndex-1)}}};ListChooser.prototype.down=function(){if(this.currentLine){if(this.lastIndex<this.idnas.length-1){this.selectLine(this.lastIndex+1)}}};ListChooser.prototype.setLastIndex=function(A){this.lastIndex=A;if(this.loaded){this.selectLine(this.lastIndex)}};ListChooser.prototype.call=function(){};function nearest(E,D,B){var A=1;for(var C=0;C<E.length;C++){v1=-16;v2=-16;if(C<D.length){v1=parseInt(D.substr(C,1),16)}if(C<B.length){v2=parseInt(B.substr(C,1),16)}v=parseInt(E.substr(C,1),16);diff1=Math.abs(v-v1);diff2=Math.abs(v-v2);if(diff1>diff2){A=2;break}else{if(diff1<diff2){A=1;break}}}return A}var listChoosers=new Array();function createListChooser(C,B,A){listChoosers[C]=new ListChooser(C,B,A);listChoosers[C].check();return listChoosers[C]}function onSearchChange(A){dir=listChoosers[this.id.substr(0,this.id.length-4)];if(A.keyCode==3||A.keyCode==13){dir.call();return }if(A.keyCode==40){dir.down();return }if(A.keyCode==38){dir.up();return }if(dir.idnas&&dir.idnas.length>0){req=getHttpRequest();req.onreadystatechange=function(){dir.processReqChange(req)};req.open("POST","sort.ashx",true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");req.send("elementid="+this.value+"&languageCode="+languageCode)}}function getHttpRequest(){var xmlhttp;/*@cc_on @*//*@if (@_jscript_version >= 5)
  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch (E) {
      xmlhttp = false;
    }
  }
  @end @*/if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){xmlhttp=new XMLHttpRequest()}return xmlhttp}
if(typeof Activsoft=="undefined"){var Activsoft={}}if(!Activsoft.Manager){Activsoft.Manager={}}Activsoft.Manager={register:function(namespace){namespace=namespace.split(".");if(!window[namespace[0]]){window[namespace[0]]={}}var strFullNamespace=namespace[0];for(var i=1;i<namespace.length;i++){strFullNamespace+="."+namespace[i];eval("if(!window."+strFullNamespace+")window."+strFullNamespace+"={};")}}}
Activsoft.Manager.register("activsoft.menu");activsoft.menu.MenuItem=function(C,B,A){this._manager=null;this._parent=B;this._id=C;this._handleToGet=null;this._duree=A;this._divMenu=null;this._open=false;this._elements=new Array();if(this._parent){this._parent.addElement(this)}};activsoft.menu.MenuItem.prototype.openElement=function(){if(this._divMenu){this._divMenu.style.display="block";hideSelect(this._divMenu)}this._open=true};activsoft.menu.MenuItem.prototype.closeElement=function(){if(this._divMenu){this._divMenu.style.display="none";showSelect(this._divMenu)}this._open=false;for(var A in this._elements){this._elements[A].closeElement()}};activsoft.menu.MenuItem.prototype.menuMouseOver=function(A){clearTimeout(this._handleToGet);if(!this._open){this.openElement()}};activsoft.menu.MenuItem.prototype.menuMouseOut=function(A){var B=this;this._handleToGet=setTimeout(function(){B.closeElement()},this._duree)};activsoft.menu.MenuItem.prototype.menuDivMouseOver=function(A){clearTimeout(this._handleToGet);if(!this._open){this.openElement()}};activsoft.menu.MenuItem.prototype.menuDivMouseOut=function(A){var B=this;this._handleToGet=setTimeout(function(){B.closeElement()},this._duree)};activsoft.menu.MenuItem.prototype.setManager=function(A){this._manager=A};activsoft.menu.MenuItem.prototype.addElement=function(A){this._elements.push(A)};activsoft.menu.Menus=function(A){this._rootMenu=new activsoft.menu.MenuItem();this._elements=new Array();this._elements[""]=this._rootMenu;var B=this;this._duree=A;YAHOO.util.Event.onDOMReady(function(){B.initMenu()})};activsoft.menu.Menus.prototype.addMenuItem=function(E,D){var A=this._elements[D];if(!A){A=this._rootMenu}var C=D+"_"+E;if(D==""){C=E}var B=new activsoft.menu.MenuItem(C,A,this._duree);B.setManager(this);this._elements[C]=B};activsoft.menu.Menus.prototype.showPopupMenu=function(D,A,C){var B=document.getElementById(D);B.className="menu menu-popup visible";B.style.left=A+"px";B.style.top=C+"px";hideSelect(B);YAHOO.util.Event.addListener(document,"click",function(F,E){E.hidePopupMenu(D)},this)};activsoft.menu.Menus.prototype.hidePopupMenu=function(A){document.getElementById(A).className="menu menu-popup invisible"};activsoft.menu.Menus.prototype.initMenu=function(){for(var B in this._elements){var C=this;var A=this._elements[B];if(A._manager){A._divMenu=document.getElementById("menudiv"+A._id);YAHOO.util.Event.addListener(["menu"+A._id,A._id],"mouseover",function(D,E){E.menuMouseOver(D)},A);YAHOO.util.Event.addListener(["menu"+A._id],"mouseout",function(D,E){E.menuMouseOut(D)},A);YAHOO.util.Event.addListener(["menudiv"+A._id,A._id],"mouseover",function(D,E){E.menuDivMouseOver(D)},A);YAHOO.util.Event.addListener(["menudiv"+A._id],"mouseout",function(D,E){E.menuDivMouseOut(D)},A)}}}
if(!window.CKEDITOR){window.CKEDITOR=(function(){var B={timestamp:"99GE",version:"3.0.1",revision:"4391",_:{},status:"unloaded",basePath:(function(){var G=window.CKEDITOR_BASEPATH||"";if(!G){var D=document.getElementsByTagName("script");for(var F=0;F<D.length;F++){var E=D[F].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(E){G=E[1];break}}}if(G.indexOf("://")==-1){if(G.indexOf("/")===0){G=location.href.match(/^.*?:\/\/[^\/]*/)[0]+G}else{G=location.href.match(/^[^\?]*\/(?:)/)[0]+G}}return G})(),getUrl:function(D){if(D.indexOf("://")==-1&&D.indexOf("/")!==0){D=this.basePath+D}if(this.timestamp&&D.charAt(D.length-1)!="/"){D+=(D.indexOf("?")>=0?"&":"?")+"t="+this.timestamp}return D}};var A=window.CKEDITOR_GETURL;if(A){var C=B.getUrl;B.getUrl=function(D){return A.call(B,D)||C.call(B,D)}}return B})()}if(!CKEDITOR.event){CKEDITOR.event=function(){};CKEDITOR.event.implementOn=function(B,A){var C=CKEDITOR.event.prototype;for(var D in C){if(B[D]==undefined){B[D]=C[D]}}};CKEDITOR.event.prototype=(function(){var A=function(D){var C=(D.getPrivate&&D.getPrivate())||D._||(D._={});return C.events||(C.events={})};var B=function(C){this.name=C;this.listeners=[]};B.prototype={getListenerIndex:function(E){for(var C=0,D=this.listeners;C<D.length;C++){if(D[C].fn==E){return C}}return -1}};return{on:function(G,J,F,M,K){var L=A(this),C=L[G]||(L[G]=new B(G));if(C.getListenerIndex(J)<0){var I=C.listeners;if(!F){F=this}if(isNaN(K)){K=10}var H=this;var D=function(O,R,Q,N){var P={name:G,sender:this,editor:O,data:R,listenerData:M,stop:Q,cancel:N,removeListener:function(){H.removeListener(G,J)}};J.call(F,P);return P.data};D.fn=J;D.priority=K;for(var E=I.length-1;E>=0;E--){if(I[E].priority<=K){I.splice(E+1,0,D);return }}I.unshift(D)}},fire:(function(){var F=false;var E=function(){F=true};var C=false;var D=function(){C=true};return function(L,H,M){var G=A(this)[L];var P=F,J=C;F=C=false;if(G){var O=G.listeners;if(O.length){O=O.slice(0);for(var I=0;I<O.length;I++){var K=O[I].call(this,M,H,E,D);if(typeof K!="undefined"){H=K}if(F||C){break}}}}var N=C||(typeof H=="undefined"?false:H);F=P;C=J;return N}})(),fireOnce:function(C,F,E){var D=this.fire(C,F,E);delete A(this)[C];return D},removeListener:function(C,F){var E=A(this)[C];if(E){var D=E.getListenerIndex(F);if(D>=0){E.listeners.splice(D,1)}}},hasListeners:function(C){var D=A(this)[C];return(D&&D.listeners.length>0)}}})()}if(!CKEDITOR.editor){CKEDITOR.ELEMENT_MODE_NONE=0;CKEDITOR.ELEMENT_MODE_REPLACE=1;CKEDITOR.ELEMENT_MODE_APPENDTO=2;CKEDITOR.editor=function(C,A,B){this._={instanceConfig:C,element:A};this.elementMode=B||CKEDITOR.ELEMENT_MODE_NONE;CKEDITOR.event.call(this);this._init()};CKEDITOR.editor.replace=function(A,B){var E=A;if(typeof E!="object"){E=document.getElementById(A);if(!E){var D=0,C=document.getElementsByName(A);while((E=C[D++])&&E.tagName.toLowerCase()!="textarea"){}}if(!E){throw'[CKEDITOR.editor.replace] The element with id or name "'+A+'" was not found.'}}E.style.visibility="hidden";return new CKEDITOR.editor(B,E,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.editor.appendTo=function(A,B){if(typeof A!="object"){A=document.getElementById(A);if(!A){throw'[CKEDITOR.editor.appendTo] The element with id "'+A+'" was not found.'}}return new CKEDITOR.editor(B,A,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.editor.prototype={_init:function(){var A=CKEDITOR.editor._pending||(CKEDITOR.editor._pending=[]);A.push(this)},fire:function(A,B){return CKEDITOR.event.prototype.fire.call(this,A,B,this)},fireOnce:function(A,B){return CKEDITOR.event.prototype.fireOnce.call(this,A,B,this)}};CKEDITOR.event.implementOn(CKEDITOR.editor.prototype,true)}if(!CKEDITOR.env){CKEDITOR.env=(function(){var agent=navigator.userAgent.toLowerCase();var opera=window.opera;var env={ie:/*@cc_on!@*/false,opera:(!!opera&&opera.version),webkit:(agent.indexOf(" applewebkit/")>-1),air:(agent.indexOf(" adobeair/")>-1),mac:(agent.indexOf("macintosh")>-1),quirks:(document.compatMode=="BackCompat"),isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname}};env.gecko=(navigator.product=="Gecko"&&!env.webkit&&!env.opera);var version=0;if(env.ie){version=parseFloat(agent.match(/msie (\d+)/)[1]);env.ie8=!!document.documentMode;env.ie8Compat=document.documentMode==8;env.ie7Compat=((version==7&&!document.documentMode)||document.documentMode==7);env.ie6Compat=(version<7||env.quirks)}if(env.gecko){var geckoRelease=agent.match(/rv:([\d\.]+)/);if(geckoRelease){geckoRelease=geckoRelease[1].split(".");version=geckoRelease[0]*10000+(geckoRelease[1]||0)*100+(geckoRelease[2]||0)*1}}if(env.opera){version=parseFloat(opera.version())}if(env.air){version=parseFloat(agent.match(/ adobeair\/(\d+)/)[1])}if(env.webkit){version=parseFloat(agent.match(/ applewebkit\/(\d+)/)[1])}env.version=version;env.isCompatible=(env.ie&&version>=6)||(env.gecko&&version>=10801)||(env.opera&&version>=9.5)||(env.air&&version>=1)||(env.webkit&&version>=522)||false;env.cssClass="cke_browser_"+(env.ie?"ie":env.gecko?"gecko":env.opera?"opera":env.air?"air":env.webkit?"webkit":"unknown");if(env.quirks){env.cssClass+=" cke_browser_quirks"}if(env.ie){env.cssClass+=" cke_browser_ie"+(env.version<7?"6":env.version>=8?"8":"7");if(env.quirks){env.cssClass+=" cke_browser_iequirks"}}if(env.gecko&&version<10900){env.cssClass+=" cke_browser_gecko18"}return env})()}if(CKEDITOR.status=="unloaded"){(function(){CKEDITOR.event.implementOn(CKEDITOR);CKEDITOR.loadFullCore=function(){if(CKEDITOR.status!="basic_ready"){CKEDITOR.loadFullCore._load=true;return }delete CKEDITOR.loadFullCore;var B=document.createElement("script");B.type="text/javascript";B.src=CKEDITOR.basePath+"libraries.ashx?ckeditor.ckeditor.js";document.getElementsByTagName("head")[0].appendChild(B)};CKEDITOR.loadFullCoreTimeout=0;CKEDITOR.replaceClass="ckeditor";CKEDITOR.replaceByClassEnabled=true;var A=function(B,D,C){if(CKEDITOR.env.isCompatible){if(CKEDITOR.loadFullCore){CKEDITOR.loadFullCore()}var E=C(B,D);CKEDITOR.add(E);return E}return null};CKEDITOR.replace=function(B,C){return A(B,C,CKEDITOR.editor.replace)};CKEDITOR.appendTo=function(B,C){return A(B,C,CKEDITOR.editor.appendTo)};CKEDITOR.add=function(B){var C=this._.pending||(this._.pending=[]);C.push(B)};CKEDITOR.replaceAll=function(){var B=document.getElementsByTagName("textarea");for(var F=0;F<B.length;F++){var E=null;var C=B[F];var D=C.name;if(!C.name&&!C.id){continue}if(typeof arguments[0]=="string"){var G=new RegExp("(?:^| )"+arguments[0]+"(?:$| )");if(!G.test(C.className)){continue}}else{if(typeof arguments[0]=="function"){E={};if(arguments[0](C,E)===false){continue}}}this.replace(C,E)}};(function(){var B=function(){var D=CKEDITOR.loadFullCore,C=CKEDITOR.loadFullCoreTimeout;if(CKEDITOR.replaceByClassEnabled){CKEDITOR.replaceAll(CKEDITOR.replaceClass)}CKEDITOR.status="basic_ready";if(D&&D._load){D()}else{if(C){setTimeout(function(){if(CKEDITOR.loadFullCore){CKEDITOR.loadFullCore()}},C*1000)}}};if(window.addEventListener){window.addEventListener("load",B,false)}else{if(window.attachEvent){window.attachEvent("onload",B)}}})();CKEDITOR.status="basic_loaded"})()}