
var m={};if(typeof c=='undefined')
var c={};m.arialoader={$name:'$arialoader',$apf:'1dbeaf19ebd382d7bd6f8b4bb6924c5',$aria_uic:'9ab7271a9116f9d25db9c12e3f2b2f16',$aria:'961f5af149ea98bd34f1c84d055',$ariacarp:'fa2c753a69989c035457f0e9d561d',$arialayoutssa:'c44bab6fb79d51274015b7f06a1ea',$arialoader:'bae1a9c171515d88bfc1e8c3a2c9e3a',$ariameb:'3237140623f7a574892f1907cabab13',$ariangp:'41c5aad8b987f54e3f12c281ada5647',$ariaprofiles:'a9de8fd23be7243adf978f4c3d9f',$ariaukrail:'ab4e4063ea878a2f2e87aa541fb3fe',$loaderpattern:'65f89d3145ace5b886a73cc5fce69e5',$uic:'d3242d83e648f131614338e7e93ef11',$userprofile:'9619f40e35894db81584a5c64f19fe',$yahoo:'b25b8e74f7d54067e9aee8d6f5fd724',$yuilayout:'d6c11a5d30ab4b3874c668352f58add4',aria:{$EventCommunicationBus:'82f2e79ffc3f4384cb97347ecef446ad',$Keyboard:'ca9784cea747077f0d0a27ac28d8127',$ServerSideAccess:'3d62fb59f8863cc43b7963abdf4d620',$Shell:'cc6191e3a79f56aeb03645e55a15185e',$UserProfile:'6847b8c671324bfd3cb4937bc7eb45a',lang:{$JsObject:'bbe9be6910b53993d341d3455327ea0',$Xml:'ebdafaf669b0715ad3c9e1c6877ac1'},layouts:{$BorderLayout:'76eea8f3b52bd7f0a34c95abd572df7',$CardLayout:'1afe33d3e08d2d535ceb19f2ec9c641',$GenericLayout:'a04c695c5c514eaafc83ea6dd08a2733',$HtmlLayout:'f58938607eee30a7c3ba419bacaa7b8f',$Manager:'cff5e3ef6b45b6d7ec7731c68a99ee29',$PortalLayout:'3f339a6423d34b846e4aaccf48c8dd43',$SimpleBorderLayout:'fd51168a99cf8e311898e1ea2fe9e75d'},ssa:{$CarPlus:'1b2e3ce8407aa651c84e95152fce2762',$Cryptic:'2fc6b6254ee45c6fab4fccdc6388cb79',$Hotel:'8f2518495ac95f9e363a8fde36fdfcd1',$ProfileServices:'9c56c2b364c67759fbe40cace55b4',$ShoppingDossier:'ef787eb37c438460375217a01ffb2e'},store:{$Cookie:'47f2d97c5ae6456bd58e327e17a6199',$Generic:'3ae2f85242aa7cdb97ff13dd51ca94c',$MixedCollection:'91c54e9468032f95fe88da725ebc0ba'},ui:{$Module:'a2796a3f522af52c43ca6cf092ce327',$Panel:'ba3786eb1cfe3b9a319a22b8fdfaaf2',$Section:'48d1407e5f9b696e5655afff7f7bd',$Viewset:'bbc880eabea236c84c0fd737fea04d'}},gfx:{$canvaschartpainter:'1d7853ce123b022da76afb5d7d87b5',$chart:'c41cffae834b38b953b8ad556080be7e',$excanvas:'2653b8e88f56c565fb2e9def728f2531',$flashcharts:'3d4a43cc958b39a4950bfb1293f80e3',$iecanvas:'75c853190e1d1b328aa6d78633aa'},uic:{$Accordion:'d3ce937bf5b422e9d90caf6cca62aa',$AutoComplete:'5635d4f463a937a17e8aaa78b3fbe25',$Behavior:'f47b6aa9493a1337c4c2a9e85540268d',$Button:'e442797adafd6c2c5b2a74458d24a2',$Calculator:'2aa4fd88f626ca93d11e984bddfdfcd6',$Calendar:'fcacc3c9c4b19a1d662b4980ac6883',$Canvas:'272b395650388e30ab528eec5535892',$CardLayout:'fde2612d3c2af856f7915ec51ec0c',$Chart:'799ffd8c827cf60e1ad7acfdedf4622',$Check:'d0477fbf7c9f1d143c998182af12e12',$CheckBox:'f06f1fc5edc6af8d1794e715c99a47',$ColorPicker:'78505f553353409c32dac4dd798fc',$ContextMenu:'cf79a24293ef1ee7e7f76628b792360',$Datagrid:'6c9496b142301fe41bd646daa85eb299',$DataTable:'11b26673f7ed4d893a0b3143f901d8e',$DatePicker:'6bf565afacb4a221ce77639e9886a44',$Dialog:'b0686d7ca85176edf38a3d9865ed6c',$Errors:'52cf8c177e8258b58beed41a6c837165',$Form:'fe6dece8ad351cab3ab51a247cc60b1',$Gauge:'63d18d3a5f1cecff57a2d17f3e78d8d',$GoogleMap:'5ef8cc3ef95f8da8e688e74c177b98f4',$GroupBox:'40eff6b1d443a3469fa3e81a59bc620',$MarkerGroup:'1bf8b19e1da3499d2a4d5d4eff1b988',$MenuBar:'982d4b4ca54a8d282d4931288d67b68',$MicrosoftMap:'cd878b9292046d880c49da6ca61ce70',$MultiMap:'1b102665dd4197743f6a3d20146d48',$MultiSelect:'7efbdcfb8091454f16c18979b934d49',$ProgressBar:'8a4175f1a8837437933c7872e3798fa',$Radio:'9af6c4e4dded7b0e2381913b519ea93',$Rss:'45b817cd10a9e66dd758c88dcb3810b2',$SeatMap:'f7b627c8a0d28f2f54c95c41d2383',$Select:'e133a5593e4764ae52513c13662b7f',$Slider:'4fec76edb9c35b397fd679df231887',$SlideShow:'22def8a45f8c45eb496c4d03ed54fc1',$Splitter:'79959b33b4e6678730f8a70ef42a4b0',$TabBar:'431f5c5580f2f1cf2ae2b8589a2ff5fc',$Table:'dda31a722de7953aebd48c23d2dd2aee',$TaskBar:'9c7ab1e073d6b0a2e0f8cf4a9711ca6',$TaskFile:'7195ed293fcc8a2ba2c02bced8d58cc',$TextArea:'9119504ef162794dbdb1095f7e7a92',$TextField:'66b3315099f95e9a4e33afbbbcd074cc',$ToolBar:'2cb71e1b316fb849f11ff969ee53fe1',$Tooltip:'d17d8d4cf3725fede1ed8e6258444d',$TreeView:'d6d6cecdc87296ecc7b42e7060e7b26',ext:{$ClusterMarker:'59a6db7c35c35d67ed32519ca452a',$ECB_apftaskmgr_plugin:'27848ae6dd8178711f4c676e2cd2a186',$FormSaver:'f4d8f9fb4452124b2372f57903e5638',$Help:'54e31a8b2fc5c58d9d45bf227d2c5'},parser:{$XHRParser_AIR:'c37c5355f59b86c1fb5caf87e50fa57',$XHRParser_AIR_COUNTRY:'796673643d38e0d3583cd12714f192',$XHRParser_CITY:'ed4aca955cd3917bd39171eed5658530',$XHRParser_GMap:'b9bb1a7c1125a89b71630cf71c68c1b',$XHRParser_HOTEL:'b6b8cee98e837bba92cd43859f6eeaef',$XHRParser_MMap:'71d6983a44e2ed2acbf45f3561efcf',$XHRParser_POR:'2f84476d62a7d1f209ce161aafad8ab',$XHRParser_POR_VE:'98c4fe3b7184977f49a91163d1e2fa0',$XHRParser_RAIL:'a7d3a1ffea575a8c21bf8a2aefa2fd9',$XHRParser_UKRAIL:'53d7ea1e9e748357bbdd7c81fbf7c59',$XHRParser_VE:'5a98a43341894ef72688b684c0707d86'},table:{$AbstractSelectionModel:'3f32cb7dcd9b24b5b29d26b0c1afcbb3',$CellSelectionModel:'f91afec61180a32a6134eee7a2b58b2a',$RowSelectionModel:'ce66acb75d2cd7dccac0ddb9a484f9'}},util:{$access:'6ae32a1248df2d8472ccc423bb2639d',$Array:'b3a22477eb061464a983127481e2de',$dom:'ade795974444457ed2c99041648b9427',$Effect:'a6d455dda36c8ba952a0e7dd6773b474',$I18n:'51561b5bcde4f63ffbf07197fe68543',$JSTEngine:'7114a6a8285c1ac999af9779b791f83a',$key:'b51f6d2e954ffb5b46af79ca237fa925',$LoaderOverlay:'366b948c71fa97295824e94ca125c7',$Log:'e2c1b0a331558185115878bfc2167b3e',$mouse:'5dead9ed9dda2cf2b73c6c6e896c73c',$peppy:'4b1182fd29b84832319f2338923e042',$Shortcut:'42f6c6781834903ec287c119a963e7fb',$simpleDateFormat:'947abaea6f8c8d7a88d58269dad9aab',$Util:'14c17a469af73fc3139fdd3ffcb8f0b2',$xml2json:'ddee9f26bff9e2e4d7ec12d149dbb9c',$XMLResponse:'80d8ca5b56cae3b06abba89927c66bd7',$xpath:'94347956c330865a619a5df94b1dba4',debug:{$Console:'6be03875afbe913e26a0cc6a832772e'},nav:{$geo:'1e10ef9d961d9a7c47951d3a195585',$global:'acd28c6aee7d5761f83b36728660df7e',$main:'8f9c1fda271b928a9ae568afd2654ef3'}},yui:{$animation:'a179ef0c3951f4b206081ab8523ca0',$autocomplete:'edf9961ee4d1dba90e9e29557edaf7d',$calendar:'5c882309895f84b7ae6ad464c115cc',$color:'c35ec4da350cf4539d5f73b71dec568',$columnset:'f7e326fa9b80d74ecc25d79d99a4e328',$combo:'992df707590b0594146af734493242c',$connection:'9395f916d2c77be0a59d8361b87329',$container:'3f9ba369cb8a656624aa27c2ede48fd7',$container_core:'6de21bfd9163ddd45de0192e231f4148',$datasource_beta:'dd223d26ce30675af4fd6e4cec8625f6',$datatable_beta:'6f69ecc8287be51338866019bad09425',$dom:'292644ef262148c665e433150ef43',$dragdrop:'64b6c428b5b9d1017ec2176f49d6b52',$element_beta:'753fd76693bcab26236d64a9773d2fd9',$event:'522077cf2b25af7ca8dee9fd6de7a9',$history:'84dd7f793c391aab9ce658f32672582a',$key:'aed8ae734cbb0f421e9fd58ede5041',$logger:'7430afa2f0c19d6ce989d01785f1914d',$menu:'89f410cf24bd2b2cdc13c217ddc593aa',$slider:'892a92eaa3ebe22d7f46791c81755e9',$tabview:'73ae1c30a4f6eb757828c7092acebfc',$treeview:'6b3c1d401c6098675abdce784d21fd33',$utilities:'a88edab5ab1b03e70264c2bf9ae649',$yahoo_dom_event:'65c12901ef89e6e587b4d676e0747e',$yahoo:'58b8dbfe58f7e0f1d729f364fc4b9',$yui_ext_core:'68535ecc4f4b5c8ecc9abac2e0d79df6',$yui_ext_date:'16eddd6c2fd9bbd55d25da90987d9d',$yui_ext_dialog:'19dece5b8d523b31b0407b8023a687d',$yui_ext:'afa813632a613daff63cd6615b4947b3'}}
m._log=[];m.log=function(){m._log.push(arguments[0]);};m._err=[];m.err=function(){m._err.push({m:arguments[0],e:arguments[1]});};var currentSubPart=null;var globalTrackerQueueSize=10;c._tracker=[];m.__trackerBefore=function(part,subPart){if(undefined==c._tracker[part]){c._tracker[part]=new Array();}
if("ServerAction"==part){currentSubPart=subPart;}
while(c._tracker[part].length>=globalTrackerQueueSize){c._tracker[part].shift();}
c._tracker[part].push({start:new Date().getTime(),resource:subPart});}
m.__trackerAfter=function(part,subPart){if("ServerAction"==part||"componentsLoad"==part){subPart=currentSubPart;}
var time=new Date().getTime();var theObj,infoString;if(undefined!=c._tracker[part]){theObj=c._tracker[part].pop();}
infoString="[TRACKER] ["+part+"]";if(theObj&&(theObj.resource==subPart)){theObj.end=time;var needed=theObj.end-theObj.start;theObj.needed=needed;var meth='info';if(needed>100)
meth='warn';c[meth](infoString+" needed "+needed+" ms to progress!");c._tracker[part].push(theObj);}
if("ServerAction"==part){part="componentsLoad";if(undefined==c._tracker[part]){c._tracker[part]=new Array();}
while(c._tracker[part].length>=globalTrackerQueueSize){c._tracker[part].shift();}
c._tracker[part].push({start:new Date().getTime(),resource:subPart});}}
m.__trackerDatas=function(e,obj){var part=obj[0].part;var serverProcessStart=obj[0].startTime;var serverActionTime=obj[0].actionTime;var serverRenderTime=obj[0].renderTime;if(undefined==c._tracker[part]){c._tracker[part]=new Array();}
while(c._tracker[part].length>=globalTrackerQueueSize){c._tracker[part].shift();}
c._tracker[part].push({start:serverProcessStart,serverAction:serverActionTime,render:serverRenderTime,needed:serverRenderTime-serverProcessStart});}
c._tracker.toString=function(){c.require('util.simpleDateFormat');var dateFormat=new util.simpleDateFormat();var datePattern="mm' ss''";var result="";var curDate=new Date();if(undefined!=c._tracker){if(undefined!=c._tracker["ServerAction"]){var currentStartTime=0;var nextStartTime;var dateDiff=new Date();var spentTime=0;var totalTime;for(var saIndex=0;saIndex<c._tracker["ServerAction"].length;saIndex++){nextStartTime=-1;totalTime=0;currentStartTime=c._tracker["ServerAction"][saIndex].start;if(undefined!=c._tracker["ServerAction"][saIndex+1])
nextStartTime=c._tracker["ServerAction"][saIndex+1].start;result+="\n--------------------------------------------\n";result+="Resource : "+c._tracker["ServerAction"][saIndex].resource+"\n";dateDiff.setTime(c._tracker["ServerAction"][saIndex].end-currentStartTime);totalTime+=c._tracker["ServerAction"][saIndex].end-currentStartTime;result+="Server Action : "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"\n";if(undefined!=c._tracker["componentsLoad"]){result+="Components Load : ";for(var clIndex=0;clIndex<c._tracker["componentsLoad"].length;clIndex++){if(c._tracker["componentsLoad"][clIndex].start>=currentStartTime&&(c._tracker["componentsLoad"][clIndex].end<nextStartTime||-1==nextStartTime)){spentTime+=c._tracker["componentsLoad"][clIndex].end-c._tracker["componentsLoad"][clIndex].start;}}
dateDiff.setTime(spentTime);totalTime+=spentTime;result+=dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="\n";}
spentTime=0;if(undefined!=c._tracker["developerBehavior"]){result+="Developer behavior : ";for(var dbIndex=0;dbIndex<c._tracker["developerBehavior"].length;dbIndex++){if(c._tracker["developerBehavior"][dbIndex].start>=currentStartTime&&(c._tracker["developerBehavior"][dbIndex].end<nextStartTime||-1==nextStartTime)){spentTime+=c._tracker["developerBehavior"][dbIndex].end-c._tracker["developerBehavior"][dbIndex].start;}}
dateDiff.setTime(spentTime);totalTime+=spentTime;result+=dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="\n";}
if(undefined!=c._tracker["serverProcessing"]){var actionTimeSpent=c._tracker["serverProcessing"][saIndex].serverAction-c._tracker["serverProcessing"][saIndex].start;var renderTimeSpent=c._tracker["serverProcessing"][saIndex].render-c._tracker["serverProcessing"][saIndex].serverAction;result+="Server processing : \n";dateDiff.setTime(actionTimeSpent);totalTime+=actionTimeSpent;result+="   action > "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"\n";dateDiff.setTime(renderTimeSpent);totalTime+=renderTimeSpent;result+="   render > "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="\n";}
dateDiff.setTime(totalTime);result+="Total time : "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"\n";}}}
return result;}
c._tracker.toHtml=function(){c.require('util.simpleDateFormat');var dateFormat=new util.simpleDateFormat();var datePattern="mm:ss";var result="";var curDate=new Date();if(undefined!=c._tracker){if(undefined!=c._tracker["ServerAction"]){result+="<table border=1><thead><th>Resource</th><th>Server Action</th><th>Components Load</th><th>Rendering Process</th><th>Server Processing</th></thead><tbody>";var currentStartTime=0;var nextStartTime;var dateDiff=new Date();var spentTime=0;for(var saIndex=0;saIndex<c._tracker["ServerAction"].length;saIndex++){nextStartTime=-1;result+="<tr>"
currentStartTime=c._tracker["ServerAction"][saIndex].start;if(undefined!=c._tracker["ServerAction"][saIndex+1])
nextStartTime=c._tracker["ServerAction"][saIndex+1].start;result+="<td>"+c._tracker["ServerAction"][saIndex].resource+"</td>";dateDiff.setTime(c._tracker["ServerAction"][saIndex].end-currentStartTime);result+="<td class=\"sa\">"+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"</td>";if(undefined!=c._tracker["componentsLoad"]){result+="<td class=\"cl\">";for(var clIndex=0;clIndex<c._tracker["componentsLoad"].length;clIndex++){if(c._tracker["componentsLoad"][clIndex].start>=currentStartTime&&(c._tracker["componentsLoad"][clIndex].end<nextStartTime||-1==nextStartTime)){spentTime+=c._tracker["componentsLoad"][clIndex].end-c._tracker["componentsLoad"][clIndex].start;}}
dateDiff.setTime(spentTime);result+=dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="&nbsp;</td>";}
spentTime=0;if(undefined!=c._tracker["developerBehavior"]){result+="<td class=\"db\">";for(var dbIndex=0;dbIndex<c._tracker["developerBehavior"].length;dbIndex++){if(c._tracker["developerBehavior"][dbIndex].start>=currentStartTime&&(c._tracker["developerBehavior"][dbIndex].end<nextStartTime||-1==nextStartTime)){spentTime+=c._tracker["developerBehavior"][dbIndex].end-c._tracker["developerBehavior"][dbIndex].start;}}
dateDiff.setTime(spentTime);result+=dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="&nbsp;</td>";}
if(undefined!=c._tracker["serverProcessing"]){var actionTimeSpent=c._tracker["serverProcessing"][saIndex].serverAction-c._tracker["serverProcessing"][saIndex].start;var renderTimeSpent=c._tracker["serverProcessing"][saIndex].render-c._tracker["serverProcessing"][saIndex].serverAction;result+="<td class=\"sp\">";dateDiff.setTime(actionTimeSpent);result+="action : "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"<br />";dateDiff.setTime(renderTimeSpent);result+="render : "+dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="&nbsp;</td>";}
result+="</tr>"}
result+="</tbody></table>";}}
return result;}
var map={};map.loader=function(){this._loadedFile=[];this._loadableFile=[];this.loading=[];this.queue=[];this.curReq=0;this.maxCur=3;this.activateQueue=false;this.onLoad=[];this.filebuffer=[];this._dependencies=[];}
map.loader.prototype.get=function(fileid,path){var json=fileid.replace(/\-/g,"_");var path=(path==undefined)?'':path;var fPos=json.lastIndexOf('.');json=json.substring(0,fPos+1)+'$'+json.substring(fPos+1,json.length);try{var ret=path+fileid.replace(/\./g,"/");if('arialoader'in m){var j=eval('m.arialoader.'+json);if(typeof j=='string'){if(j){ret+='-'+j;ret+='.js';}
else{ret+='.js';}}else{if(typeof j=='object'){ret=j.path+'.'+j.type;}else{ret+='.js';}}}else{ret+='.js';}}catch(e){ret=path+fileid.replace(/\./g,"/")+'.js';}
return ret;}
map.loader.prototype.createLoader=function(ident,path,type){var explode=ident.split('.');explode['$'+explode[explode.length-1]]=["path:'"+path+"'","isloading:false","type:'"+type+"'"];delete explode[explode.length-1];var json=this.array2json(explode,true);eval("j="+json);this.add(j);}
map.loader.prototype.array2json=function(jsonarray,horizontal,evaluate){var json='';var end='';if(!horizontal){end='';json='{';}
for(var j_i in jsonarray){var type=typeof jsonarray[j_i];if(type=='object'){if(horizontal)json+='{';json+=j_i+':'+this.array2json(jsonarray[j_i],!horizontal,false);end+='}';}else{if(type=="string"){if(horizontal)json+='{';json+=jsonarray[j_i];if(horizontal){json+=':';end+='}';}else
json+=',';}}}
if(!horizontal)json=json.replace(/,$/,"}");if(evaluate)
return eval("json="+json+end);else
return json+end;}
map.loader.prototype.add=function(loader){if(!('arialoader'in m)){m.arialoader={};}
this._jsonExtend(m.arialoader,loader);}
map.loader.prototype._jsonExtend=function(a,b){for(var l_i in b){if(typeof a[l_i]=='undefined'){a[l_i]=b[l_i];continue;}
if(typeof a[l_i]=='object'){this._jsonExtend(a[l_i],b[l_i]);}}}
map.loader.prototype._load=function(path,fileid,evaluate){evaluate=(typeof evaluate=='undefined')?true:evaluate;var src=""
if(fileid==""){src=path;}else{src=this.get(fileid,path);}
m.log("[LOADER] Loading "+src+" via XHR.");c.loader._loading(src);if(!this.isLoaded(src,fileid)){m.log("[LOADER] Loading state for "+src+".");m.log("[LOADER] Ajax call for "+src+".");m.__trackerBefore("XHR",src);if(!YAHOO.util.Connect.syncRequest){this._extendYahoo();}
m.__trackerBefore("XHR",src);var syncCall=YAHOO.util.Connect.syncRequest("GET",src);m.__trackerAfter("XHR",src);if(syncCall.status!='404'&&syncCall.status!='500'){if(evaluate){m.__trackerBefore("evaluate",src);try{window.eval("/*"+src+"*/"+syncCall.responseText);}catch(e){m.err("[LOADER] evaluation of "+src+" cause a problem : ",e);m.lastLoaderror=e.lineNumber+fileid.substring(0,8);}
m.__trackerAfter("evaluate",src);}
this.register(src);this._unloading(src);m.log("[LOADER] "+src+" is available");if(!evaluate)return syncCall.responseText;return true;}
else{m.err("[LOADER] "+fileid+" "+syncCall.status+" can't be found on server :"+src);m.lastLoaderror="File:"+fileid+"Status:"+syncCall.status;m.lastLoaderror=fileid.substring(0,8)+syncCall.status;return false;}}else{this._unloading(src);}
m.log("[LOADER] "+fileid+" already loaded.");return true;}
map.loader.prototype.register=function(fileid){if(fileid==null)return;var real=fileid;if(fileid.indexOf('/')==-1)
real=this.get(fileid,uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT);m.log("[REGISTER] file registered "+real);this._loadedFile.push(real);this._unloading(real);if(this.onLoad[real]){for(var i=0,k=this.onLoad[real],j=k.length;i<j;i++){try{setTimeout(k[i],30);}catch(e){m.err("[LOADER] Callback method on file "+real+" : ",e);}}
delete this.onLoad[real];}}
map.loader.prototype._loading=function(fileid,path){if(path!=undefined){fileid=this.get(fileid,path);}
m.log("[LOADING] file "+fileid);c.loader.loading[fileid]=fileid;return fileid;}
map.loader.prototype._unloading=function(fileid,path){if(path!=undefined){fileid=this.get(fileid,path);}
delete c.loader.loading[fileid];}
map.loader.prototype._extendYahoo=function(){YAHOO.util.Connect.syncRequest=function(method,uri,data){data=data==undefined?null:data;var errorObj;var o=this.getConnectionObject();if(!o){return null;}
else{var oConn=this;o.conn.open(method,uri,false);if(method=='POST'&&data!=null){o.conn.setRequestHeader("Content-type","application/x-www-form-urlencoded");o.conn.setRequestHeader("Content-length",data.length);}
o.conn.send(data);return o.conn;}}}
map.loader.prototype.isLoaded=function(file,jsobj){if(typeof file=='undefined'&&typeof jsobj=='undefined')return true;if(this._loadedFile.hasValue(file))
{return true;}
m.log("[ISLOADED] Find "+file+' Not loaded ');return false;}
map.loader.prototype.checkLoaded=function(file){var f=file;if(file.indexOf('/')==-1){f=this.get(file,'../frw/js_debug/');}
var co=0;for(var i=0,j=this._loadedFile;i<j.length;i++){if(j[i]==f)co++;}
return-2+co;}
map.loader.prototype.isLoading=function(file){if(c.loader.loading.hasValue(file)){return true;}
m.log("[ISLOADING] Find "+file+' Not loading '+c.loader.loading.hasValue(file));return false;}
map.loader.prototype.asyncload=function(toload,finalCallback,args,failsafe){var loadingIndex=this.filebuffer.length;this.filebuffer[loadingIndex]=[];this._dependencies[loadingIndex]=toload.length;if(typeof failsafe=="undefined")failsafe=false;for(var i=0,k=toload,j=k.length;i<j;i++){if(!this.isLoaded(k[i])){var cb={success:function(o){this.execFiles(o)},failure:this.execFiles,scope:this,timeout:30000};cb.argument={finalCallback:finalCallback,args:args,file:k[i],loadingIndex:loadingIndex,toload:k,fileIndex:i,failsafe:failsafe};if(this.isLoading(k[i])){m.log("["+k[i]+"]["+failsafe+"] is loading...");this._onLoad(k[i],{c:this.depCountDown,a:{l:loadingIndex,c:this.callBack,a:cb.argument,o:this},o:this});}else{m.log("["+k[i]+"]["+failsafe+"] to be loaded...");this._loading(k[i]);m.__trackerBefore("XHR",k[i]);if(this.curReq<this.maxCur||!this.activateQueue){this.curReq++;YAHOO.util.Connect.asyncRequest('GET',k[i],cb);}
else{c.warn("[LOADER][QUEUE]["+this.curReq+"] "+k[i]);this.queue[this.queue.length]={m:'GET',f:k[i],c:cb};}}}else{m.log("["+k[i]+"]["+failsafe+"] already loaded "+k.splice(i,1));this.depCountDown(loadingIndex);i--;j--;}}
m.log("[FINALCALLBACK]["+failsafe+"] still loading : "+toload.length);if(this._dependencies[loadingIndex]==0){if(typeof finalCallback=="string")finalCallback=eval(finalCallback);if(typeof finalCallback=="function")finalCallback(args);}}
map.loader.prototype.dependencies=function(jsFiles,finalCallback,args,failsafe){var toload=[];for(var i=0,k=jsFiles,j=k.length;i<j;i++){var file="";if(file.indexOf(uic.p.FRAMEWORK_RESOURCES)==-1)
file=this.get(k[i],uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT);else
file=this.get(k[i],uic.p.FRAMEWORK_DOCUMENT_ROOT);toload[toload.length]=file;}
this.asyncload(toload,finalCallback,args,failsafe);}
map.loader.prototype.depCountDown=function(o){if(typeof o!='number'){this._dependencies[o.l]--;try{o.c.call(o.o,o.a);}catch(e){m.err("[LOADER] depCountDown "+o.c+" error when calling callback : "+o.o+"."+o.a+" -> ",e);}}else{this._dependencies[o]--;}}
map.loader.prototype.treatQueue=function(){if(this.curReq<this.maxCur&&this.queue[0]!=undefined){c.warn("[LOADER][QUEUE]["+this.curReq+"] "+this.queue[0].f+" Treated");this.curReq++;YAHOO.util.Connect.asyncRequest(this.queue[0].m,this.queue[0].f,this.queue[0].c);this.queue.splice(0,1);}}
map.loader.prototype.loadFW=function(component,callback,scope,param){var cpt=component.split(".");component=cpt.length>1?cpt[0]:component;type=cpt.length>1?cpt[1]:component;if(param!=undefined)c.loadMng.initializing(type,param[0]);var fileid=this.get('uic.'+component,uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT);if(callback!=undefined){param={co:component,c:callback,s:scope,p:param};callback=this.cbloadFW;scope=this;}
this.asyncload([fileid],callback,param,scope);}
map.loader.prototype.cbloadFW=function(o){try{o.s[o.c](o.p);}catch(e){m.err("[LOADER loadFW] Error while loading framework component "+o.co+", calling the following callback failed:"+"\n"+o.s.toString()+"."+o.c.toString()+"()"+"\nCheck the component source code."+"\n",e);}}
map.loader.prototype._onLoad=function(file,tobind){var fn=function(){this.c.call(this.o,this.a);}
if(!(file in this.onLoad))
this.onLoad[file]=[];this.onLoad[file].push(fn.bind(tobind));}
map.loader.prototype.execFiles=function(o){var arg=o.argument;this.curReq--;if(o.status==200){m.log("[LOADER] File "+arg.file+" loaded successfully.");m.__trackerAfter("XHR",arg.file);this.filebuffer[arg.loadingIndex][arg.fileIndex]={f:arg.file,c:o.responseText};this._dependencies[arg.loadingIndex]--;}
if(o.status==-1){m.err("[LOADER] File "+arg.file+" TimeOut... couldn't be loaded, try again...");this.asyncload([arg.file],arg.finalCallback,arg.args,arg.failsafe);return;}
if(o.status!=200){if(arg.failsafe){m.err("[LOADER] File "+arg.file+" couldn't be loaded (status: "+o.status+", message: "+o.statusText+") (failsafe mode).");this.register(arg.file);}
else{m.err("[LOADER] File "+arg.file+" couldn't be loaded (xhr status: "+o.status+", message: "+o.statusText+") (failsafe not active, "+arg.finalCallback.name+"() will not be executed).");}}
this.callBack(arg);this.treatQueue();}
map.loader.prototype.callBack=function(arg){if(this._dependencies[arg.loadingIndex]>0)return
try{var k=this.filebuffer[arg.loadingIndex];m.log("[LOADER] LoadingIndex "+arg.loadingIndex+" evaluation.");for(var fb=0,j=k.length;fb<j;fb++){if(k[fb]==undefined)continue;m.__trackerBefore("evaluate",k[fb].f);eval(k[fb].c);this.register(k[fb].f);m.__trackerAfter("evaluate",k[fb].f);}
this.filebuffer[arg.loadingIndex]=[];m.log("[LOADER] File "+arg.file+" executed successfully.");}
catch(e){m.err("[LOADER] File "+arg.file+" execution failed\n",e);}
if(typeof arg.finalCallback=="string"){try{arg.finalCallback=eval(arg.finalCallback);}catch(e){m.err("[LOADER] File "+arg.file+" couldn't create callback : ",e);}}
if(typeof arg.finalCallback=="function"){try{arg.finalCallback(arg.args);}catch(e){m.err("[LOADER] File "+arg.file+" error when calling callback : "+arg.finalCallback+" -> ",e);}}}
map.loader.prototype.includeScriptTag=function(control,forceReload,callback,args,override,errorcallback){if(typeof control=="string"){control=[control];}
for(var i=0,k=control,j=k.length;i<j;i++){this._includeScriptTagHelper(k[i],forceReload,callback,args,override,errorcallback);}}
map.loader.prototype._registerCallbackOnTag=function(scriptNode,callback,args,override){var f=this._createCallback(callback,args,override);if(c.browser.isIE){scriptNode.onreadystatechange=function(){var rs=this.readyState;if("loaded"===rs||"complete"===rs){f();}};}else{scriptNode.addEventListener("load",f,false);}}
map.loader.prototype._registerErrorCallbackOnTag=function(scriptNode,errorcallback,args,override){var f=this._createCallback(errorcallback,args,override);if(c.browser.isIE){scriptNode.attachEvent("error",f,false);scriptNode.attachEvent("abort",f,false);}else{scriptNode.addEventListener("error",f,false);scriptNode.addEventListener("abort",f,false);}}
map.loader.prototype._includeScriptTagHelper=function(control,forceReload,callback,args,override,errorcallback){var doc=document;if(!this.isLoaded(control,control)||forceReload){var scriptNode=document.createElement("script");scriptNode.type="text/javascript";scriptNode.src=control;if(callback!=null){this._registerCallbackOnTag(scriptNode,callback,args,override);}
if(errorcallback!=null){this._registerErrorCallbackOnTag(scriptNode,errorcallback,args,override);}
doc.getElementsByTagName("head")[0].appendChild(scriptNode);this.register(control);return scriptNode;}else if(callback!=null){this._createCallback(callback,args,override)();}
return null;}
map.loader.prototype._createCallback=function(callback,args,override){if(callback==null)return function(){};var scope=window;if(typeof(override)=='object'&&override!=null){scope=override;}else if(override==true){scope=args;}
var fn=function(){this.cb.call(this.scope,this.args);}
return fn.bind({'scope':scope,'cb':callback,'args':args});}
map.loader.prototype.includeCssTag=function(files,forceReload){if(typeof files=="string"){files=[files];}
for(var i=0,k=files,j=k.length;i<j;i++){if(!this.isLoaded(k[i])||forceReload){var linkTag=document.createElement("LINK");linkTag.type="text/css";linkTag.rel="stylesheet";linkTag.media="all";linkTag.href=k[i];document.getElementsByTagName("HEAD")[0].appendChild(linkTag);return linkTag;}}}
map.loader.prototype.isComplete=function(list){var ret=true;for(var i=0,k=list,j=k.length;i<j;i++){ret=ret&&this.isLoaded(k[i]);}
m.log('[ISCOMPLET] Component dependencies completely loaded ...'+ret);return ret;}
map.loader.prototype.includeScript=function(conponent){var toload=[];for(var i=0,k=conponent,j=k.length;i<j;i++){if(conponent[i].indexOf('/')!=-1)
var fileid=k[i];else{var fileid=this.get(k[i],uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT);}
if(!this.isLoading(fileid)){this._loading(fileid);toload[i]=fileid;}}
this.includeScriptTag(toload);}
c.loader=new map.loader();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.init=function(){this.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.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.lang={isArray:function(obj){if(obj&&typeof obj.length=='number'&&typeof obj.splice=='function'){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=='boolean';},isFunction:function(obj){return typeof obj=='function';},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=='number'&&isFinite(obj);},isObject:function(obj){return obj&&(typeof obj=='object'||YAHOO.lang.isFunction(obj));},isString:function(obj){return typeof obj=='string';},isUndefined:function(obj){return typeof obj=='undefined';},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);}
return!YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},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];}}},augment:function(r,s){if(!s||!r){throw new Error("YAHOO.lang.augment failed, please check that "+"all dependencies are included.");}
var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.2",build:"204"});yui.yahoo={};(function(){var Y=YAHOO.util,getStyle,setStyle,id_counter=0,propertyCache={};var ua=navigator.userAgent.toLowerCase(),isOpera=(ua.indexOf('opera')>-1),isSafari=(ua.indexOf('safari')>-1),isChrome=(ua.indexOf('chrome')>-1),isGecko=(!isOpera&&!isSafari&&!isChrome&&(ua.indexOf('gecko')>-1)),isIE=(!isOpera&&ua.indexOf('msie')>-1);var patterns={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i};var toCamel=function(property){if(!patterns.HYPHEN.test(property)){return property;}
if(propertyCache[property]){return propertyCache[property];}
var converted=property;while(patterns.HYPHEN.exec(converted)){converted=converted.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}
propertyCache[property]=converted;return converted;};if(document.defaultView&&document.defaultView.getComputedStyle){getStyle=function(el,property){var value=null;if(property=='float'){property='cssFloat';}
var computed=document.defaultView.getComputedStyle(el,'');if(computed){value=computed[toCamel(property)];}
if(el.style!=null)
return el.style[property]||value;else
return value;};}else if(document.documentElement.currentStyle&&isIE){getStyle=function(el,property){switch(toCamel(property)){case'opacity':var val=100;try{val=el.filters['DXImageTransform.Microsoft.Alpha'].opacity;}catch(e){try{val=el.filters('alpha').opacity;}catch(e){}}
return val/100;break;case'float':property='styleFloat';default:var value=el.currentStyle?el.currentStyle[property]:null;return(el.style[property]||value);}};}else{getStyle=function(el,property){return el.style[property];};}
if(isIE){setStyle=function(el,property,val){switch(property){case'opacity':if(YAHOO.lang.isString(el.style.filter)){el.style.filter='alpha(opacity='+val*100+')';if(!el.currentStyle||!el.currentStyle.hasLayout){el.style.zoom=1;}}
break;case'float':property='styleFloat';default:el.style[property]=val;}};}else{setStyle=function(el,property,val){if(property=='float'){property='cssFloat';}
el.style[property]=val;};}
YAHOO.util.Dom={get:function(el){if(YAHOO.lang.isString(el)){return document.getElementById(el);}
if(YAHOO.lang.isArray(el)){var c=[];for(var i=0,len=el.length;i<len;++i){c[c.length]=Y.Dom.get(el[i]);}
return c;}
if(el){return el;}
return null;},getStyle:function(el,property){property=toCamel(property);var f=function(element){return getStyle(element,property);};return Y.Dom.batch(el,f,Y.Dom,true);},setStyle:function(el,property,val){property=toCamel(property);var f=function(element){setStyle(element,property,val);};Y.Dom.batch(el,f,Y.Dom,true);},getXY:function(el){var f=function(el){if((el.parentNode===null||el.offsetParent===null||this.getStyle(el,'display')=='none')&&el!=document.body){return false;}
var parentNode=null;var pos=[];var box;if(el.getBoundingClientRect){box=el.getBoundingClientRect();var doc=document;if(!this.inDocument(el)&&parent.document!=document){doc=parent.document;if(!this.isAncestor(doc.documentElement,el)){return false;}}
var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);return[box.left+scrollLeft,box.top+scrollTop];}
else{pos=[el.offsetLeft,el.offsetTop];parentNode=el.offsetParent;var hasAbs=this.getStyle(el,'position')=='absolute';if(parentNode!=el){while(parentNode){pos[0]+=parentNode.offsetLeft;pos[1]+=parentNode.offsetTop;if(isSafari&&!hasAbs&&this.getStyle(parentNode,'position')=='absolute'){hasAbs=true;}
parentNode=parentNode.offsetParent;}}
if(isSafari&&hasAbs){pos[0]-=document.body.offsetLeft;pos[1]-=document.body.offsetTop;}}
parentNode=el.parentNode;while(parentNode.tagName&&!patterns.ROOT_TAG.test(parentNode.tagName))
{if(Y.Dom.getStyle(parentNode,'display')!='inline'){pos[0]-=parentNode.scrollLeft;pos[1]-=parentNode.scrollTop;}
parentNode=parentNode.parentNode;}
return pos;};return Y.Dom.batch(el,f,Y.Dom,true);},getX:function(el){var f=function(el){return Y.Dom.getXY(el)[0];};return Y.Dom.batch(el,f,Y.Dom,true);},getY:function(el){var f=function(el){return Y.Dom.getXY(el)[1];};return Y.Dom.batch(el,f,Y.Dom,true);},setXY:function(el,pos,noRetry){var f=function(el){var style_pos=this.getStyle(el,'position');if(style_pos=='static'){this.setStyle(el,'position','relative');style_pos='relative';}
var pageXY=this.getXY(el);if(pageXY===false){return false;}
var delta=[parseInt(this.getStyle(el,'left'),10),parseInt(this.getStyle(el,'top'),10)];if(isNaN(delta[0])){delta[0]=(style_pos=='relative')?0:el.offsetLeft;}
if(isNaN(delta[1])){delta[1]=(style_pos=='relative')?0:el.offsetTop;}
if(pos[0]!==null){el.style.left=pos[0]-pageXY[0]+delta[0]+'px';}
if(pos[1]!==null){el.style.top=pos[1]-pageXY[1]+delta[1]+'px';}
if(!noRetry){var newXY=this.getXY(el);if((pos[0]!==null&&newXY[0]!=pos[0])||(pos[1]!==null&&newXY[1]!=pos[1])){this.setXY(el,pos,true);}}};Y.Dom.batch(el,f,Y.Dom,true);},setX:function(el,x){Y.Dom.setXY(el,[x,null]);},setY:function(el,y){Y.Dom.setXY(el,[null,y]);},getRegion:function(el){var f=function(el){var region=new Y.Region.getRegion(el);return region;};return Y.Dom.batch(el,f,Y.Dom,true);},getClientWidth:function(){return Y.Dom.getViewportWidth();},getClientHeight:function(){return Y.Dom.getViewportHeight();},getElementsByClassName:function(className,tag,root){var method=function(el){return Y.Dom.hasClass(el,className);};return Y.Dom.getElementsBy(method,tag,root);},hasClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)');var f=function(el){return re.test(el.className);};return Y.Dom.batch(el,f,Y.Dom,true);},addClass:function(el,className){var f=function(el){if(this.hasClass(el,className)){return;}
el.className=[el.className,className].join(' ');el.className=el.className.trim();};Y.Dom.batch(el,f,Y.Dom,true);},removeClass:function(el,className){var re=new RegExp('(?:^|\\s+)'+className+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,className)||className==""){return;}
var c=el.className;el.className=c.replace(re,' ');if(this.hasClass(el,className)){this.removeClass(el,className);}
el.className=el.className.trim();};Y.Dom.batch(el,f,Y.Dom,true);},replaceClass:function(el,oldClassName,newClassName){if(oldClassName===newClassName){return false;}
var re=new RegExp('(?:^|\\s+)'+oldClassName+'(?:\\s+|$)','g');var f=function(el){if(!this.hasClass(el,oldClassName)){this.addClass(el,newClassName);return;}
el.className=el.className.replace(re,' '+newClassName+' ');if(this.hasClass(el,oldClassName)){this.replaceClass(el,oldClassName,newClassName);}};Y.Dom.batch(el,f,Y.Dom,true);},generateId:function(el,prefix){prefix=prefix||'yui-gen';el=el||{};var f=function(el){if(el){el=Y.Dom.get(el);}else{el={};}
if(!el.id){el.id=prefix+id_counter++;}
return el.id;};return Y.Dom.batch(el,f,Y.Dom,true);},isAncestor:function(haystack,needle){haystack=Y.Dom.get(haystack);if(!haystack||!needle){return false;}
var f=function(needle){if(haystack.contains&&!isSafari){return haystack.contains(needle);}
else if(haystack.compareDocumentPosition){return!!(haystack.compareDocumentPosition(needle)&16);}
else{var parent=needle.parentNode;while(parent){if(parent==haystack){return true;}
else if(!parent.tagName||parent.tagName.toUpperCase()=='HTML'){return false;}
parent=parent.parentNode;}
return false;}};return Y.Dom.batch(needle,f,Y.Dom,true);},inDocument:function(el){var f=function(el){return this.isAncestor(document.documentElement,el);};return Y.Dom.batch(el,f,Y.Dom,true);},getElementsBy:function(method,tag,root){tag=tag||'*';var nodes=[];if(root){root=Y.Dom.get(root);if(!root){return nodes;}}else{root=document;}
var elements=root.getElementsByTagName(tag);if(!elements.length&&(tag=='*'&&root.all)){elements=root.all;}
for(var i=0,len=elements.length;i<len;++i){if(method(elements[i])){nodes[nodes.length]=elements[i];}}
return nodes;},batch:function(el,method,o,override){var id=el;el=Y.Dom.get(el);var scope=(override)?o:window;if(!el||el.tagName||!el.length){if(!el){return false;}
return method.call(scope,el,o);}
var collection=[];for(var i=0,len=el.length;i<len;++i){if(!el[i]){id=el[i];}
collection[collection.length]=method.call(scope,el[i],o);}
return collection;},getDocumentHeight:function(){var scrollHeight=(document.compatMode!='CSS1Compat')?document.body.scrollHeight:document.documentElement.scrollHeight;var h=Math.max(scrollHeight,Y.Dom.getViewportHeight());return h;},getDocumentWidth:function(){var scrollWidth=(document.compatMode!='CSS1Compat')?document.body.scrollWidth:document.documentElement.scrollWidth;var w=Math.max(scrollWidth,Y.Dom.getViewportWidth());return w;},getViewportHeight:function(){var height=self.innerHeight;var mode=document.compatMode;if((mode||isIE)&&!isOpera){height=(mode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;}
return height;},getViewportWidth:function(){var width=self.innerWidth;var mode=document.compatMode;if(mode||isIE){width=(mode=='CSS1Compat')?document.documentElement.clientWidth:document.body.clientWidth;}
return width;}};})();YAHOO.util.Region=function(t,r,b,l){this.top=t;this[1]=t;this.right=r;this.bottom=b;this.left=l;this[0]=l;};YAHOO.util.Region.prototype.contains=function(region){return(region.left>=this.left&&region.right<=this.right&&region.top>=this.top&&region.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(region){var t=Math.max(this.top,region.top);var r=Math.min(this.right,region.right);var b=Math.min(this.bottom,region.bottom);var l=Math.max(this.left,region.left);if(b>=t&&r>=l){return new YAHOO.util.Region(t,r,b,l);}else{return null;}};YAHOO.util.Region.prototype.union=function(region){var t=Math.min(this.top,region.top);var r=Math.max(this.right,region.right);var b=Math.max(this.bottom,region.bottom);var l=Math.min(this.left,region.left);return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Region.prototype.toString=function(){return("Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(el){var p=YAHOO.util.Dom.getXY(el);var t=p[1];var r=p[0]+el.offsetWidth;var b=p[1]+el.offsetHeight;var l=p[0];return new YAHOO.util.Region(t,r,b,l);};YAHOO.util.Point=function(x,y){if(x instanceof Array){y=x[1];x=x[0];}
this.x=this.right=this.left=this[0]=x;this.y=this.top=this.bottom=this[1]=y;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.2",build:"204"});yui.dom={};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 errorFlag=false;var len=this.subscribers.length;if(!len&&this.silent){return true;}
var args=[],ret=true,i;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){try{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;}}catch(subscriberError){c.error("[ECB] <"+this.type+"> subscriber "+i+" crashed. Resuming the subscriber's chain. ",subscriberError);errorFlag=true;}}}
return!errorFlag;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);}
return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;}
this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;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 lastError=null;return{POLL_RETRYS:10,POLL_INTERVAL:200,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];}
return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_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){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(typeof el=="string"){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 elId=YAHOO.util.Event._getElId(el,true);var li=[el,sType,fn,wrappedFn,scope];if(!listeners[elId])listeners[elId]=[];var index=listeners[elId].length;listeners[elId][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;}
var elId=YAHOO.util.Event._getElId(el);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.splice(i,1);return true;}}
return false;}
var cacheItem=null;var index;if(arguments[3]&&arguments[4]){index=arguments[3];if(arguments[4]!==true){elId=arguments[4];}}
if("undefined"==typeof index){index=this._getCacheIndex(el,sType,fn);}
if(index>=0){cacheItem=listeners[elId][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.splice(i,1);break;}}}}else{try{this._simpleRemove(el,sType,cacheItem[this.WFN],false);}catch(ex){this.lastError=ex;return false;}}
delete listeners[elId][index][this.WFN];delete listeners[elId][index][this.FN];delete listeners[elId][index][this.EL];delete listeners[elId][index][this.TYPE];listeners[elId].splice(index,1);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){return ev.charCode||ev.keyCode||0;},_getCacheIndex:function(el,sType,fn){var elId=YAHOO.util.Event._getElId(el);if(!listeners[elId])return;for(var i=0,len=listeners[elId].length;i<len;++i){var li=listeners[elId][i];if(li&&li[this.FN]==fn&&li[this.EL]==el&&li[this.TYPE]==sType){return i;}}
return-1;},_getElId:function(el,beingAdded){beingAdded=beingAdded&&(el.attributes&&el.attributes['id']&&el.attributes['id'].value.indexOf("elgen")==-1);return(el&&el.id&&(beingAdded||listeners[el.id]))?el.id:"__noid";},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;}
return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},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();if(this.isIE){EU._simpleRemove(window,"load",EU._load);}}},_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&&!DOMReady){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){if(el.id&&listeners[el.id]&&el.id.indexOf("elgen")==-1){var elListeners=[];for(var i=listeners[el.id].length-1;i>=0;i--){var l=listeners[el.id][i];if(!sType||l[1]===sType){elListeners.push({type:l[1],fn:l[2],cI:i,cId:el.id})}}}else{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.cI,l.cId);}}
if(recurse&&el&&el.childNodes){for(var k=0,len=el.childNodes.length;k<len;++k){if(typeof el.childNodes[k]=="object"){this.purgeElement(el.childNodes[k],recurse,sType);}}}},getListeners:function(el,sType){var elId=YAHOO.util.Event._getElId(el);var results=[],searchLists;if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners[elId]];}
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;for(var ind in listeners){if(typeof listeners[ind]!="function"){list=listeners[ind];j=list.length;while(j){index=j-1;l=list[index];if(l){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],index,ind);}
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];}},_getLength:function(){var l=0;if(listeners&&listeners.getIterator){var it=listeners.getIterator();while(it.hasNext()){list=it.next();l+=list.length;}}else{l=listeners.length;}
return l;},cleanListeners:function(){var EU=YAHOO.util.Event;if(listeners&&listeners.getIterator){for(var ind in listeners){if(typeof listeners[ind]!="function"){var list=listeners[ind];var l=list[0];if(ind!="__noid"&&l){var el=l[EU.EL];var parent=el;while(parent.parentNode){parent=parent.parentNode;}
if(parent!=document&&el.tagName){EU.purgeElement(el);}}
for(var j=list.length-1;j>=0;j--){var l=list[j];var el=l[EU.EL];var parent=el;while(parent.parentNode){parent=parent.parentNode;}
if(parent!=document&&el.tagName){EU.removeListener(l[EU.EL],l[EU.TYPE],l[EU.FN],j,ind);}}}}}},getLostListeners:function(){var lostListeners=[];var EU=YAHOO.util.Event;if(listeners&&listeners.getIterator){for(var ind in listeners){if(typeof listeners[ind]!="function"){var list=listeners[ind];for(var j=0;j<list.length;j++){var el=list[j][0];var parent=el;var l=list[j];while(parent.parentNode){parent=parent.parentNode;}
if(parent!=document&&el.tagName){lostListeners.push(l);}}}}}
return lostListeners;},cleanListenersAuto:function(){if(!this.intervalClean){var oSelf=this;this.intervalClean=setInterval(oSelf.cleanListeners,5000);}},_getListeners:function(elId){if(elId&&listeners[elId])return listeners[elId];return listeners;},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){document.write('<scr'+'ipt id="_yui_eu_dr" defer="true" src="//:"></script>');var el=document.getElementById("_yui_eu_dr");el.onreadystatechange=function(){if("complete"==this.readyState){c.removeContent(this);YAHOO.util.Event._ready();}};el=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);}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 ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{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||null;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){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);}
return ce.fire.apply(ce,args);}else{return null;}},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.2.2",build:"204"});yui.event={};YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,setProgId:function(id)
{this._msxml_progid.unshift(id);YAHOO.log('ActiveX Program Id  '+id+' added to _msxml_progid.','info','Connection');},setDefaultPostHeader:function(b)
{this._use_default_post_header=b;YAHOO.log('Use default POST header set to  '+b,'info','Connection');},setDefaultXhrHeader:function(b)
{this._use_default_xhr_header=b;YAHOO.log('Use default transaction header set to  '+b,'info','Connection');},setPollingInterval:function(i)
{if(typeof i=='number'&&isFinite(i)){this._polling_interval=i;YAHOO.log('Default polling interval set to '+i+'ms','info','Connection');}},createXhrObject:function(transactionId)
{var obj,http;try
{http=new XMLHttpRequest();obj={conn:http,tId:transactionId};YAHOO.log('XHR object created for transaction '+transactionId,'info','Connection');}
catch(e)
{for(var i=0;i<this._msxml_progid.length;++i){try
{http=new ActiveXObject(this._msxml_progid[i]);obj={conn:http,tId:transactionId};YAHOO.log('ActiveX XHR object created for transaction '+transactionId,'info','Connection');break;}
catch(e){}}}
finally
{return obj;}},getConnectionObject:function()
{var o;var tId=this._transaction_id;try
{o=this.createXhrObject(tId);if(o){this._transaction_id++;}}
catch(e){}
finally
{return o;}},asyncRequest:function(method,uri,callback,postData)
{var o=this.getConnectionObject();if(!o){YAHOO.log('Unable to create connection object.','error','Connection');return null;}
else{if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(o.tId,callback,uri,postData);this.releaseObject(o);return;}
if(method.toUpperCase()=='GET'){if(this._sFormData.length!=0){uri+=((uri.indexOf('?')==-1)?'?':'&')+this._sFormData;}
else{uri+="?"+this._sFormData;}}
else if(method.toUpperCase()=='POST'){postData=postData?this._sFormData+"&"+postData:this._sFormData;}}
o.conn.open(method,uri,true);if(this._use_default_xhr_header){if(!this._default_headers['X-Requested-With']){this.initHeader('X-Requested-With',this._default_xhr_header,true);YAHOO.log('Initialize transaction header X-Request-Header to XMLHttpRequest.','info','Connection');}}
if(this._isFormSubmit||(postData&&this._use_default_post_header)){this.initHeader('Content-Type',this._default_post_header);YAHOO.log('Initialize header Content-Type to application/x-www-form-urlencoded for POST transaction.','info','Connection');if(this._isFormSubmit){this.resetFormState();}}
if(this._has_default_headers||this._has_http_headers){this.setHeader(o);}
this.handleReadyState(o,callback);o.conn.send(postData||null);return o;}},handleReadyState:function(o,callback)
{var oConn=this;if(callback&&callback.timeout){this._timeOut[o.tId]=window.setTimeout(function(){oConn.abort(o,callback,true);},callback.timeout);}
this._poll[o.tId]=window.setInterval(function(){if(o.conn&&o.conn.readyState===4){window.clearInterval(oConn._poll[o.tId]);delete oConn._poll[o.tId];if(callback&&callback.timeout){delete oConn._timeOut[o.tId];}
oConn.handleTransactionResponse(o,callback);}},this._polling_interval);},handleTransactionResponse:function(o,callback,isAbort)
{if(!callback){this.releaseObject(o);YAHOO.log('No callback object to process. Transaction complete.','warn','Connection');return;}
var httpStatus,responseObject;try
{if(o.conn.status!==undefined&&o.conn.status!==0){httpStatus=o.conn.status;}
else{httpStatus=13030;}}
catch(e){httpStatus=13030;}
if(httpStatus>=200&&httpStatus<300||httpStatus===1223){responseObject=this.createResponseObject(o,callback.argument);if(callback.success){if(!callback.scope){callback.success(responseObject);YAHOO.log('Success callback. HTTP code is '+httpStatus,'info','Connection');}
else{callback.success.apply(callback.scope,[responseObject]);YAHOO.log('Success callback with scope. HTTP code is '+httpStatus,'info','Connection');}}}
else{switch(httpStatus){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:responseObject=this.createExceptionObject(o.tId,callback.argument,(isAbort?isAbort:false));if(callback.failure){if(!callback.scope){callback.failure(responseObject);YAHOO.log('Failure callback. Exception detected. Status code is '+httpStatus,'warn','Connection');}
else{callback.failure.apply(callback.scope,[responseObject]);YAHOO.log('Failure callback with scope. Exception detected. Status code is '+httpStatus,'warn','Connection');}}
break;default:responseObject=this.createResponseObject(o,callback.argument);if(callback.failure){if(!callback.scope){callback.failure(responseObject);YAHOO.log('Failure callback. HTTP status code is '+httpStatus,'warn','Connection');}
else{callback.failure.apply(callback.scope,[responseObject]);YAHOO.log('Failure callback with scope. HTTP status code is '+httpStatus,'warn','Connection');}}}}
this.releaseObject(o);responseObject=null;},createResponseObject:function(o,callbackArg)
{var obj={};var headerObj={};try
{var headerStr=o.conn.getAllResponseHeaders();var header=headerStr.split('\n');for(var i=0;i<header.length;i++){var delimitPos=header[i].indexOf(':');if(delimitPos!=-1){headerObj[header[i].substring(0,delimitPos)]=header[i].substring(delimitPos+2);}}}
catch(e){}
obj.tId=o.tId;obj.status=(o.conn.status==1223)?204:o.conn.status;obj.statusText=(o.conn.status==1223)?"No Content":o.conn.statusText;obj.getResponseHeader=headerObj;obj.getAllResponseHeaders=headerStr;obj.responseText=o.conn.responseText;obj.responseXML=o.conn.responseXML;if(typeof callbackArg!==undefined){obj.argument=callbackArg;}
return obj;},createExceptionObject:function(tId,callbackArg,isAbort)
{var COMM_CODE=0;var COMM_ERROR='communication failure';var ABORT_CODE=-1;var ABORT_ERROR='transaction aborted';var obj={};obj.tId=tId;if(isAbort){obj.status=ABORT_CODE;obj.statusText=ABORT_ERROR;}
else{obj.status=COMM_CODE;obj.statusText=COMM_ERROR;}
if(callbackArg){obj.argument=callbackArg;}
return obj;},initHeader:function(label,value,isDefault)
{var headerObj=(isDefault)?this._default_headers:this._http_headers;if(headerObj[label]===undefined){headerObj[label]=value;}
else{headerObj[label]=value+","+headerObj[label];}
if(isDefault){this._has_default_headers=true;}
else{this._has_http_headers=true;}},setHeader:function(o)
{if(this._has_default_headers){for(var prop in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,prop)){o.conn.setRequestHeader(prop,this._default_headers[prop]);YAHOO.log('Default HTTP header '+prop+' set with value of '+this._default_headers[prop],'info','Connection');}}}
if(this._has_http_headers){for(var prop in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,prop)){o.conn.setRequestHeader(prop,this._http_headers[prop]);YAHOO.log('HTTP header '+prop+' set with value of '+this._http_headers[prop],'info','Connection');}}
delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers
this._default_headers={};this._has_default_headers=false;},setForm:function(formId,isUpload,secureUri)
{this.resetFormState();var oForm;if(typeof formId=='string'){oForm=(document.getElementById(formId)||document.forms[formId]);}
else if(typeof formId=='object'){oForm=formId;}
else{YAHOO.log('Unable to create form object '+formId,'warn','Connection');return;}
if(isUpload){this.createFrame(secureUri?secureUri:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=oForm;return;}
var oElement,oName,oValue,oDisabled;var hasSubmit=false;for(var i=0;i<oForm.elements.length;i++){oElement=oForm.elements[i];oDisabled=oForm.elements[i].disabled;oName=oForm.elements[i].name;oValue=oForm.elements[i].value;if(!oDisabled&&oName)
{switch(oElement.type)
{case'select-one':case'select-multiple':for(var j=0;j<oElement.options.length;j++){if(oElement.options[j].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';}
else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}}
break;case'radio':case'checkbox':if(oElement.checked){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}
break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit===false){if(this._hasSubmitListener){this._sFormData+=this._submitElementValue+'&';}
else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}
hasSubmit=true;}
break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';break;}}}
this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);YAHOO.log('Form initialized for transaction. HTML form POST message is: '+this._sFormData,'info','Connection');return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(secureUri){var frameId='yuiIO'+this._transaction_id;if(window.ActiveXObject){var io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof secureUri=='boolean'){io.src='javascript:false';}
else if(typeof secureURI=='string'){io.src=secureUri;}}
else{var io=document.createElement('iframe');io.id=frameId;io.name=frameId;}
io.style.position='absolute';io.style.top='-1000px';io.style.left='-1000px';document.body.appendChild(io);YAHOO.log('File upload iframe created. Id is:'+frameId,'info','Connection');},appendPostData:function(postData)
{var formElements=[];var postMessage=postData.split('&');for(var i=0;i<postMessage.length;i++){var delimitPos=postMessage[i].indexOf('=');if(delimitPos!=-1){formElements[i]=document.createElement('input');formElements[i].type='hidden';formElements[i].name=postMessage[i].substring(0,delimitPos);formElements[i].value=postMessage[i].substring(delimitPos+1);this._formNode.appendChild(formElements[i]);}}
return formElements;},uploadFile:function(id,callback,uri,postData){var frameId='yuiIO'+id;var uploadEncoding='multipart/form-data';var io=document.getElementById(frameId);this._formNode.setAttribute('action',uri);this._formNode.setAttribute('method','POST');this._formNode.setAttribute("target",frameId);if(this._formNode.encoding){this._formNode.encoding=uploadEncoding;}
else{this._formNode.enctype=uploadEncoding;}
if(postData){var oElements=this.appendPostData(postData);}
this._formNode.submit();if(oElements&&oElements.length>0){for(var i=0;i<oElements.length;i++){this._formNode.removeChild(oElements[i]);}}
this.resetFormState();var uploadCallback=function()
{var obj={};obj.tId=id;obj.argument=callback.argument;try
{obj.responseText=io.contentWindow.document.body?io.contentWindow.document.body.innerHTML:null;obj.responseXML=io.contentWindow.document.XMLDocument?io.contentWindow.document.XMLDocument:io.contentWindow.document;}
catch(e){}
if(callback&&callback.upload){if(!callback.scope){callback.upload(obj);YAHOO.log('Upload callback.','info','Connection');}
else{callback.upload.apply(callback.scope,[obj]);YAHOO.log('Upload callback with scope.','info','Connection');}}
if(YAHOO.util.Event){YAHOO.util.Event.removeListener(io,"load",uploadCallback);}
else if(window.detachEvent){io.detachEvent('onload',uploadCallback);}
else{io.removeEventListener('load',uploadCallback,false);}
setTimeout(function(){document.body.removeChild(io);YAHOO.log('File upload iframe destroyed. Id is:'+frameId,'info','Connection');},100);};if(YAHOO.util.Event){YAHOO.util.Event.addListener(io,"load",uploadCallback);}
else if(window.attachEvent){io.attachEvent('onload',uploadCallback);}
else{io.addEventListener('load',uploadCallback,false);}},abort:function(o,callback,isTimeout)
{if(this.isCallInProgress(o)){o.conn.abort();window.clearInterval(this._poll[o.tId]);delete this._poll[o.tId];if(isTimeout){delete this._timeOut[o.tId];}
this.handleTransactionResponse(o,callback,true);YAHOO.log('Transaction '+o.tId+' aborted.','info','Connection');return true;}
else{YAHOO.log('Transaction '+o.tId+' abort call failed.','warn','Connection');return false;}},isCallInProgress:function(o)
{if(o.conn){return o.conn.readyState!==4&&o.conn.readyState!==0;}
else{return false;}},releaseObject:function(o)
{o.conn=null;YAHOO.log('Connection object for transaction '+o.tId+' destroyed.','info','Connection');o=null;}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.2.2",build:"204"});yui.connection={};if(typeof a=="undefined"){var aria={namespace:function(){var a=arguments,o=null,d;for(var i=0,k=a,j=a.length;i<j;i=i+1){d=k[i].split(".");o=window;for(var l=0,m=d,n=m.length;l<n;l++){o[m[l]]=o[m[l]]||{};o=o[m[l]];}}},extend:function(classPath,parentClassPath,optExtension){if(typeof(classPath)!='string'||typeof(parentClassPath)!='string'){c.error("[ARIA.extend] Invalid arguments: class paths must be strings");return;}
var subc,superc;try{eval("subc="+classPath+";superc="+parentClassPath);subc._gcClassPath=classPath;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(optExtension){for(var i in optExtension){subc.prototype[i]=optExtension[i];}}}catch(e){c.error("[EXTEND] Failed to extend "+classPath+" with "+parentClassPath+" SUBC :"+subc+" SUPERC : "+superc+" ",e);}},augment:function(receiver,supplier){if(typeof(receiver)!='string'||typeof(supplier)!='string'){c.error("[ARIA.augment] Invalid arguments: class paths must be strings");return;}
var r,s;try{eval("r="+receiver+";s="+supplier);var rp=r.prototype,sp=s.prototype,override=false,hasProperties=false,a=options,i,p;if(arguments[2]){var options=arguments[2];if(options["override"])
override=true;if(options["properties"])
hasProperties=true;}
if(hasProperties){var pt=options["properties"];for(i=0;i<pt.length;i=i+1){if(!rp[pt[i]]||override){rp[pt[i]]=sp[pt[i]];}}}
else{for(p in sp){if(!rp[p]||override){rp[p]=sp[p];}}}}catch(e){c.error("[AUGMENT] Failed to augment "+receiver+" with "+supplier,e);}},__initCb:null,setInitCallback:function(cb){if(this.__initCb){this.log("Init callback can only be set once!","fatal");return;}else if(!YAHOO){this.log("Yahoo YUI is required for init callback support","fatal");return;}
this.__initCb=cb
YAHOO.util.Event.addListener(window,"load",a.__initCb);},deleteObject:function(ref,parentObject){if(typeof(ref)!='string'){alert("[deleteObject] Invalid argument: ref must be a string")
return}
if(!parentObject)parentObject=window
var o=parentObject[ref]
if(typeof(o)!='undefined'&&typeof(o.dispose)=='function'){o.dispose()
var c=o.constructor;do{var unusedCst=null
if(c._gcCount){c._gcCount-=1
if(c._gcCount==0)unusedCst=c}
if(c.superclass)c=c.superclass.constructor
else c=null
if(unusedCst){if(window.aria.lang.JsObject.disposeCallback!=null)window.aria.lang.JsObject.disposeCallback(unusedCst)}}while(c!=null&&c!=window.aria.lang.JsObject)}
parentObject[ref]=null;},registerBehaviour:function(behaviourClassName,sectionId){c.__behaviours[sectionId]=behaviourClassName;}}
var a=aria;}
a.namespace('util');util.Log=function(){};util.Log.prototype={loadingConsole:true,_log:function(message,type,exception,extra){var messages=(typeof extra=='undefined')?[message]:extra;if(type=="fatal"){alert("Fatal error:\n"+message);return;}
if(!('console'in this)){if('console'in window){this.console=window.console;}}
messages[0]+=this.format(exception);if(this.console&&!util.browser.isIE){if(!(type in this.console)){if('print'in this.console){this.console.print(messages[0]);}}else{this.console[type].apply(this.console,messages);}}else{if(!('stacklog'in this)){this.stacklog=[];}
this.stacklog[this.stacklog.length]={message:message,type:type,exception:exception};}},format:function(e,html){if(typeof e=='undefined'||e==null)
return"";var cr=html?"<br />":"\n";var str="Error";str+=cr+'---------------------------------------------------';if(e.fileName)
str+=cr+'File: '+e.fileName;if(e.lineNumber)
str+=cr+'Line: '+e.lineNumber;if(e.message)
str+=cr+'Message: '+e.message;if(e.name)
str+=cr+'Error: '+e.name;if(e.stack)
str+=cr+'Stack:'+cr+e.stack.substring(0,200)+" [...] Truncated stacktrace.";str+=cr+'---------------------------------------------------'+cr;return str;},log:function(){if(uic.p.DEBUG){this._log(arguments[0],'log',null,arguments);}},error:function(){this._log(arguments[0],'error',arguments[1],arguments);},info:function(){this._log(arguments[0],'info',null,arguments);},warn:function(){this._log(arguments[0],'warn',null,arguments);},dir:function(object){if(this.console&&'dir'in this.console&&!c.browser.isIE){this.console.dir(object);}else{this._log(object.toString());}},inspect:function(obj,func,notNullArguments){if(!uic.p.DEBUG)return;var old=('prototype'in obj)?obj.prototype[func]:obj[func];if(!old){c.warn('Missing valid method to apply logging on: '+func);return;}
var ret='';try{ret=old.toString();}catch(e){}
if(ret.indexOf('INSPECTED')!=-1)
return;var newFunction=function(){var INSPECTED=true;var info,warning;var args=c.logger._getArgumentsNames(old);var objName=c.logger._getObjectName(obj);c.logger.logGrpStart(objName+'.'+func+'('+args+')');warning='';for(var i=0;i<arguments.length;i++){if(old.length>i){if(arguments[i]==null&&notNullArguments&&notNullArguments.indexOf(args[i])>-1){warning+=args[i]+' ';}}
if(typeof arguments[i]=='object'){c.logger.dir(arguments[i]);}else{if(typeof arguments[i]!='function')
c.logger._log(arguments[i]);}}
if(warning.length>0){warning+='should not be null!';c.warn(warning);}
if(old.length>arguments.length){warning='Missing argument(s): ';for(var i=arguments.length;i<args.length;i++){warning+=((i>arguments.length)?', ':'')+args[i];}
c.warn(warning);}else if(old.length>0&&old.length<arguments.length){warning='Too many arguments: '+arguments.length+' given but '+old.length+' expected';c.warn(warning);}
c.logger.logGrpStop();return old.apply(obj,arguments);}
if('prototype'in obj)
obj.prototype[func]=newFunction;else
obj[func]=newFunction;},_getObjectName:function(obj){return obj.toString();},_getArgumentsNames:function(func){if(typeof(func)!='function'){return'';}
var tmp=func.toString();args=tmp.substring(tmp.indexOf('(')+1,tmp.indexOf(')'));return args.split(/ *, */);},logGrpStart:function(title){if(!c.browser.isIE&&typeof this.console!="undefined"&&'group'in this.console)this.console.group(title);},logGrpStop:function(){if(!c.browser.isIE&&typeof this.console!="undefined"&&'group'in this.console)this.console.groupEnd();},unStack:function(){if(c.browser.isIE){var dv=$('uicStacklogid');if(!dv){dv=document.createElement('div');document.body.appendChild(dv);dv.className='uicStacklog';dv.id="uicStacklogid";}
if(this.stacklog){for(var m_i=0;m_i<this.stacklog.length;m_i++){var p=document.createElement('p');var l=this.stacklog[m_i];p.className='uicStackLog'+l.type;dv.appendChild(p);p.innerHTML="<"+l+">"+l.message;if(l.exception)
p.innerHTML+=" :"+this.format(l.exception,true);delete this.stacklog[m_i];}}}else{if('console'in window){if(('stacklog'in this)){for(var m_i=0;m_i<this.stacklog.length;m_i++){this.log(this.stacklog[m_i].message,this.stacklog[m_i].type,this.stacklog[m_i].exception);}}}}}};c.logger=new util.Log();c.log=function(){c.logger.log.apply(c.logger,arguments);};m.log=c.log;for(var i=0,k=m._log,j=k.length;i<j;i++){c.log(k[i]);}
c.error=function(){c.logger.error.apply(c.logger,arguments);};m.err=c.error;for(var i=0,k=m._err,j=k.length;i<j;i++){c.error(k[i].m,k[i].e);}
c.warn=function(){c.logger.warn.apply(c.logger,arguments);};c.info=function(){c.logger.info.apply(c.logger,arguments);};c.loader.register('util.Log');if(typeof util=='undefined')var util={};if(typeof c=='undefined')var c={};if(!Function.prototype.bind){Function.prototype.bind=function(obj,args){var method=this;var bindArgs=null;if(typeof(obj)!="undefined"&&arguments.length>1){bindArgs=Array.prototype.slice.call(arguments,1);}
return function(){var newArgs=arguments;if(bindArgs){var length=bindArgs.length;for(var i=0;i<length;i++){Array.prototype.push.call(newArgs,bindArgs[i]);}}
return method.apply(obj,newArgs);};}}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,'');}
String.prototype.escapeHTML=function(){return this.replace(/</g,"&#60;").replace(/>/g,"&#62;");}
String.prototype.capitalize=function(){if(this.length>0){var first=this.charAt(0);var returnString=first.toUpperCase()+this.substring(1,this.length);return returnString;}
return this;};if(!String.prototype.escape){String.prototype.escape=function(){return this.replace(/('|\\)/g,"\\$1");}}
String.prototype.leftPad=function(size,ch){var result=new String(this);if(ch==null){ch=" ";}
while(result.length<size){result=ch+result;}
return result;}
String.prototype.getBytes=function(){return encodeURIComponent(this).replace(/%../g,'x').length;};Array.prototype.hasValue=function(value){for(var i in this){if(!(i in Array.prototype&&this[i]!=undefined)&&this[i]==value){return true;}}
return false;}
Array.prototype.isEmpty=function(){for(var i in this){if(!(i in Array.prototype&&this[i]!=undefined)){return false;}}
return true;}
Array.prototype.getIterator=function(){var iterator=new Object();iterator.lastIndex=-1;iterator.contents=[];iterator.hasNext=function(){return(this.lastIndex!=this.contents.length-1)}
iterator.next=function(){this.lastIndex++;return this.contents[this.lastIndex];}
for(var i in this){if(!(i in Array.prototype)){iterator.contents.push(this[i]);}}
return iterator;}
Array.prototype.add=function(array){for(var i=0,j=array.length;i<j;i++)
this.push(array[i]);return this;}
if(!Array.prototype.indexOf){Array.prototype.indexOf=function(elt){var len=this.length;var from=Number(arguments[1])||0;from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0)
from+=len;for(;from<len;from++){if(from in this&&this[from]===elt)
return from;}
return-1;};}
if(!Array.prototype.remove){Array.prototype.remove=function(value){var index=this.indexOf(value);if(index>-1){this.splice(index,1);}}}
util.getViewportSize=function(){if(document.compatMode!='CSS1Compat'){return{width:document.body.clientWidth,height:document.body.clientHeight};}else if(document.all){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight};}
else{return{width:document.body.offsetWidth,height:window.innerHeight};}}
util.getViewportScroll=function(){if(document.compatMode!='CSS1Compat'){return{x:document.body.scrollLeft,y:document.body.scrollTop};}else if(window.pageXOffset&&window.pageYOffset){return{x:window.pageXOffset,y:window.pageYOffset};}else if(document.documentElement){return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop};}}
util.getFullPageSize=function(){var yWithScroll,xWithScroll,arrayPageSizeWithScroll;if(window.innerHeight&&window.scrollMaxY){yWithScroll=window.innerHeight+window.scrollMaxY;xWithScroll=document.body.offsetWidth+window.scrollMaxX;}else if(document.body.scrollHeight>document.body.offsetHeight){yWithScroll=document.body.scrollHeight;xWithScroll=document.body.scrollWidth;}else{yWithScroll=document.body.offsetHeight;xWithScroll=document.body.offsetWidth;}
arrayPageSizeWithScroll={width:xWithScroll,height:yWithScroll};return arrayPageSizeWithScroll;}
util.dateDiff=function(firstDate,secondDate){var one_day=86400000;return Math.ceil((secondDate.getTime()-firstDate.getTime())/(one_day));}
util.calculateOffset=function(obj,attr,stopAbsolute){var offset=0;var i=0;obj=$d(obj);var o=obj;while(obj){if(stopAbsolute){var objPositionCss=YAHOO.util.Dom.getStyle(obj,"position");if(i>0&&(objPositionCss=="absolute"||objPositionCss=="relative"))break;}
offset+=obj[attr];if(c.browser.isIE&&!c.browser.isIE7&&offset<0){if(YAHOO.util.Dom.getStyle(obj,"float")=="left"&&attr=="offsetLeft"&&objPositionCss=="relative"){if(YAHOO.util.Dom.getStyle(obj.parentNode,"position")=="relative")
offset+=obj.offsetWidth;}}
obj=obj.offsetParent;i++;}
i=0;obj=o;while(obj.parentNode!=document.body&&obj.parentNode.tagName&&(obj=obj.parentNode)){if(stopAbsolute){var objPositionCss=YAHOO.util.Dom.getStyle(obj,"position");if(i>0&&(objPositionCss=="absolute"||objPositionCss=="relative"))break;}
if(!c.browser.isOpera&&obj.nodeName!='HTML'){if(attr=="offsetTop"&&obj.scrollTop!==0&&obj.scrollTop){offset-=obj.scrollTop;}else if(attr=="offsetLeft"&&obj.scrollLeft!==0&&obj.scrollLeft){offset-=obj.scrollLeft;}}else if(c.browser.isOpera){if(attr=="offsetTop"&&obj.scrollTop!==0&&obj.scrollTop!=obj.offsetTop){offset-=obj.scrollTop;}else if(attr=="offsetLeft"&&obj.scrollLeft!==0&&obj.scrollLeft!=obj.offsetLeft){offset-=obj.scrollLeft;}}
i++;}
return offset;}
util.getScroll=function(obj,attr){var total=0;obj=$d(obj);var scrollDir=(attr=="offsetTop")?"scrollTop":"scrollLeft";while(obj){if(obj==document.body)break;total+=obj[scrollDir];obj=obj.parentNode;}
return total;}
util.m={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'}
util.s={array:function(x){var a=['['],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=util.s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
a[a.length]=v;b=true;}}}
a[a.length]=']';return a.join('');},'boolean':function(x){return String(x);},'null':function(x){return"null";},number:function(x){return isFinite(x)?String(x):'null';},object:function(x){if(x){if(x instanceof Array){return util.s.array(x);}
var a=['{'],b,f,i,v;for(i in x){v=x[i];f=util.s[typeof v];if(f){v=f(v);if(typeof v=='string'){if(b){a[a.length]=',';}
a.push(util.s.string(i),':',v);b=true;}}}
a[a.length]='}';return a.join('');}
return'null';},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=util.m[b];if(c){return c;}
c=b.charCodeAt();return'\\u00'+
Math.floor(c/16).toString(16)+
(c%16).toString(16);});}
return'"'+x+'"';}};util.jsonSerialize=function(obj){return util.s.object(obj);};util.jsonUnSerialize=function(str){try{var obj=null;eval("obj = "+str);return obj;}catch(e){c.error("[jsonUnSerialize] Can't parse json : ",e);}}
util.purge=function(e,d){d=$d(d);var a=d.attributes,i,l,n;if(a){l=a.length;for(i=0;i<l;i+=1){n=a[i].name;if(typeof d[n]==='function'){d[n]=null;}}}
a=d.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1){util.purge(null,d.childNodes[i]);}}}
util.cleanup=function(elem,recursive){elem=$d(elem);recursive=false;var a=elem.attributes,i,l,n;if(a){l=a.length;for(i=0;i<l;i+=1){n=a[i].name;if(typeof elem[n]==='function'){elem[n]=null;}}}
if(recursive){a=elem.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1){util.cleanup(elem.childNodes[i],true);}}}}
util.safelyRemoveElement=function(element){element=$d(element);if(!element)return;if(YAHOO&&YAHOO.util.Event)YAHOO.util.Event.purgeElement(element);util.cleanup(element);c.removeContent(element);}
util.purgeWindow=function(){for(o in window){try{delete window[o];}
catch(e){}}}
util.getCSSProperty=function(sNode,sProperty){sNode=$d(sNode);if(document.defaultView){return document.defaultView.getComputedStyle(sNode,null).getPropertyValue(sProperty);}else if(sNode.currentStyle){var sProperty=sProperty.replace(/-\D/gi,function(sMatch){return sMatch.charAt(sMatch.length-1).toUpperCase();});return sNode.currentStyle[sProperty];}else{return null;}}
util.dragDrop=function(obj,o){obj=$d(obj);obj.style.zIndex=2;util.dom.addShim(obj,o);var dd=new YAHOO.util.DD(obj);dd.onDrag=function(){var dom=util.dom.addShim(obj,o);}}
util.addIds=function(id){var d=(typeof id=='string')?document.getElementById(id):id;id=d.id;var index=0;try{for(var i=0;i<d.childNodes.length;i++){var node=d.childNodes[i];if((!c.isSet(node.id)||node.id=='')&&node.nodeType!=3&&node.nodeType!=8){node.id=id+'_'+index++;}
if(node.childNodes.length>0&&typeof node.childNodes!='string'){util.addIds(node);}}}catch(e){}}
util.lzw_encode=function(inputstr){this.output=new(function OutStream(){this.bytestream=new Array();this.offset=0;this.WriteBit=function(val)
{this.bytestream[this.offset>>>3]|=val<<(this.offset&7);this.offset++;}
this.Write=function(val,numBits)
{for(var i=0;i<numBits;++i)
this.WriteBit((val>>>i)&1);}});this.CompressDictionary=function(){this.hashtable=new Object();this.nextcode=0;for(var i=0;i<256;++i)
{var str=String.fromCharCode(i);this.hashtable[str]=this.nextcode++;}
this.Exists=function(str)
{return(this.hashtable.hasOwnProperty(str));}
this.Insert=function(str)
{var numBits=this.ValSizeInBits();this.hashtable[str]=this.nextcode++;return numBits;}
this.Lookup=function(str)
{return(this.hashtable[str]);}
this.ValSizeInBits=function()
{var log2=Math.log(this.nextcode+1)/Math.LN2;return Math.ceil(log2);}};this.compress=function(str){var length=str.length;if(length==0)
return output.bytestream;var dict=new this.CompressDictionary();var numBits=dict.ValSizeInBits();var w="";for(var i=0;i<length;++i)
{var c=str.charAt(i);if(dict.Exists(w+c))
{w=w+c;}
else
{numBits=dict.Insert(w+c);this.output.Write(dict.Lookup(w),numBits);w=c;}}
this.output.Write(dict.Lookup(w),numBits);};this.compress(inputstr);return this.output.bytestream;}
util.lzw_decode=function(bytearray){this.input=new(function InStream(bytestream,bitcount){this.bytestream=bytestream;this.bitcount=bitcount;this.offset=0;this.ReadBit=function(){var tmp=this.bytestream[this.offset>>>3]>>(this.offset&7);this.offset++;return tmp&1;}
this.Read=function(numBits){if((this.offset+numBits)>this.bitcount)
return null;var val=0;for(var i=0;i<numBits;++i)
val|=this.ReadBit()<<i;return val;}})(bytearray,bytearray.length*8);this.DecompressDictionary=function(){this.revhashtable=new Array();this.nextcode=0;for(var i=0;i<256;++i)
{this.revhashtable[this.nextcode++]=String.fromCharCode(i);}
this.numBits=9;this.Size=function()
{return(this.nextcode);}
this.Insert=function(str)
{this.revhashtable[this.nextcode++]=str;var log2=Math.log(this.nextcode+2)/Math.LN2;this.numBits=Math.ceil(log2);return this.numBits;}
this.LookupIndex=function(idx)
{return this.revhashtable[idx];}
this.ValSizeInBits=function()
{return this.numBits;}}
this.decompress=function(){bitcount=this.input.bitcount;if(bitcount==0)
return"";var dict=new this.DecompressDictionary();var numBits=dict.ValSizeInBits();var k=this.input.Read(numBits);var output=String.fromCharCode(k);var w=output;var entry="";while((k=this.input.Read(numBits))!=null)
{if(k<dict.Size())
entry=dict.LookupIndex(k);else
entry=w+w.charAt(0);output+=entry;numBits=dict.Insert(w+entry.charAt(0));w=entry;}
return output;};return this.decompress();}
util.Browser=function(){var ua=navigator.userAgent.toLowerCase();this.ua=ua;this.isOpera=(function(){return(ua.indexOf('opera')>-1);})();this.isOpera6=(function(){return(ua.indexOf('opera 6')>-1);})();this.isOpera8=(function(){return((ua.indexOf('opera/8')>-1)||(ua.indexOf('opera 8')>-1));})();this.isOpera9=(function(){return(ua.indexOf('opera/9')>-1);})();this.isChrome=(function(){return(ua.indexOf('chrome')>-1);})();this.isSafari=(function(){return(ua.indexOf('webkit')>-1&&!this.isChrome);}).apply(this);this.isIE=(function(){return(ua.indexOf('msie')>-1);})();this.isIE8=(function(){return(ua.indexOf('msie 8')>-1);})();this.isIE7=(function(){return(ua.indexOf('msie 7')>-1);})();this.isIE6=(function(){return(ua.indexOf('msie 6')>-1);})();this.isGecko=(function(){return(!this.isSafari&&(ua.indexOf('gecko')>-1));})();this.isFirefox=(function(){return(ua.indexOf('firefox')>-1);})();this.isNS=(function(){return(ua.indexOf('netscape')>-1);})();this.isWindows=(function(){return(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1);})();this.isMac=(function(){return(ua.indexOf("macintosh")!=-1);})();this.version=(function(){var version="";var ua=this.ua;if(this.isIE){if(/msie[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}else if(this.isFirefox){if(/firefox[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}else if(this.isSafari){if(/version[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}else if(this.isChrome){if(/chrome[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}else if(this.isNS){if(/netscape[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}else if(this.isOpera){if(/opera[\/\s]((?:\d+\.?)+)/.test(ua)){return RegExp.$1;}}}).apply(this);this.properties=(function(){var identifier="unknown",majorVersion="unknown",env="unknown";var version=this.version;if(this.isIE){identifier="IE";majorVersion=version.substring(0,1);}else if(this.isFirefox){identifier="Firefox";majorVersion=version.substring(0,3);}else if(this.isSafari){identifier="Safari";majorVersion=version.substring(0,1);}else if(this.isChrome){identifier="Chrome";majorVersion=version.substring(0,1);}else if(this.isNS){identifier="Netscape";majorVersion=version.substring(0,1);}else if(this.isOpera){identifier="Opera";majorVersion=version.substring(0,1);}
if(this.isMac){env="mac"}else if(this.isWindows){env="windows"}
return{"code":identifier+majorVersion,"identifier":identifier,"majorVersion":majorVersion,"version":version,"env":env};}).apply(this);this.toString=function(){return this.properties.identifier+" "+this.properties.version;}};util.browser=new util.Browser();if(util.browser.isGecko){HTMLElement.prototype.click=function(){var evt=this.ownerDocument.createEvent('MouseEvents');evt.initMouseEvent('click',true,true,this.ownerDocument.defaultView,1,0,0,0,0,false,false,false,false,0,null);this.dispatchEvent(evt);}}
util.check={};util.check.sectionRef=function(){var secs="";var s=c._sections._sections;if(c.panels){for(var i=0;i<c.panels.length;i++){secs+=c.panels[i]._section+"#";}
for(var i in s){if(secs.indexOf(i)==-1){c.warn("[CHECKER] there is a section not managed in a panel : "+i);}}}}
util.check.strcnt=0;util.check.strStr=[];util.check.strObj=[];util.check.strBoo=[];util.check.strFun=[];util.check.objectSize=function(o,b,l){var fun=0,mem=0,s=0,f=0,obj=0,boo=0,j,k;util.check.strStr[util.check.strcnt]="##";util.check.strObj[util.check.strcnt]="##";util.check.strBoo[util.check.strcnt]="##";util.check.strFun[util.check.strcnt]="##";try{for(j in o){if(typeof o[j]=='function'){fun++;f+=o[j].toString().getBytes();util.check.strFun[util.check.strcnt]+=j+"@@"+o[j].toString()+"##";}else{mem++;if(typeof o[j]=='object'){obj++;if(b>0){k=util.check.objectSize(o[j],b-1,false);fun+=k.fun;mem+=k.mem;s+=k.s;obj+=k.obj;boo+=k.boo;f+=k.f;}
util.check.strObj[util.check.strcnt]+=j+"@@"+o[j].toString()+"##";}
if(typeof o[j]=='boolean'){boo++;util.check.strBoo[util.check.strcnt]+=j+"@@"+o[j]+"##";}
if(typeof o[j]=='string'&&c.isSet(o[j])){s+=o[j].getBytes();util.check.strStr[util.check.strcnt]+=j+"@@"+o[j]+"##";}}}}catch(e){return{fun:fun,mem:mem,s:s,obj:obj,boo:boo,f:f}}
if(l==undefined){c.logger.logGrpStart("[OBJECTSIZE] Run "+util.check.strcnt);c.info(fun+" Function(s) ["+f+" Bytes]");c.info(mem+" Data member(s) of which ");c.info(" |-"+obj+" Object/Array(s)");c.info(" |-"+(mem-(obj+boo))+" String(s) ["+s+" Bytes]");c.info(" |-"+boo+" Boolean(s)");c.logger.logGrpStop();util.check.strcnt++;}else{return{fun:fun,mem:mem,s:s,obj:obj,boo:boo,f:f}}}
util.check.objectCompare=function(which,runA,runB){var mrA=which[runA].split("##"),mrB=which[runB],i=mrB.split("##").length,max,tB,tA,pos=0;c.logger.logGrpStart("[OBJECTCOMPARE] Run "+runA+" and Run "+runB);if(mrA.length>i){c.info("- Run "+runA+" has more members than "+runB);}
if(mrA.length<i){c.info("- Run "+runB+" has more members than "+runA);}
if(mrA.length==i){c.info("- Run "+runA+" has same members as "+runB);}
max=mrA.length;i=1;try{while(i<max){tA=mrA[i].split("@@");pos=mrB.indexOf("##"+tA[0]+"@@");if(pos==-1){c.info("- String "+tA[0]+" is not in run "+runB);}else{if(mrB.lastIndexOf("##"+tA[0]+"@@")!=pos){c.info("- String '"+tA[0]+"' is more than one time in "+runB);}else{tB=mrB.indexOf("##",pos);tB=mrB.substring(pos+tA[0].length+2,tB);if(tA[1]!=tB){c.info("- Value of '"+tA[0]+"'("+tA[1].substring(0,15)+") change from run "+runB);}}}
i++;}}catch(e){c.warn("[Diff failed] mrB[i] "+mrB[i]+" mrA[i] "+mrA[i]);}
c.logger.logGrpStop();}
util.event={getListeners:function(id){return this.getManager()._getListeners(id);},getLength:function(){return this.getManager()._getLength();},getLostListeners:function(){return this.getManager().getLostListeners();},cleanLostListeners:function(){this.getManager().cleanListeners();},getManager:function(){return YAHOO.util.Event;}};if(typeof util.url=='undefined')util.url={};util.url.serializeParams=function(params){var str="",i;if(params){for(i in params){if(typeof params[i]=="string"||typeof params[i]=="number"||typeof params[i]=="boolean"){str+=i+"="+params[i];str+="&";}}
str=str.substring(0,str.length-1);}
return str;}
util.url.checkMethod=function(method){if(method&&typeof method=="string"&&(method.toUpperCase()=="GET"||method.toUpperCase()=="POST")){return method.toUpperCase();}else{return false;}}
util.url.extractJSessionId=function(requestUrl){var re=new RegExp("jsessionid=([^\?]*)","gi");var jsessionIdResult=re.exec(requestUrl);if(jsessionIdResult!=null&&jsessionIdResult.length==2){return jsessionIdResult[1];}
else{c.warn("Unable to extract jsessionId from url: "+requestUrl);return null;}}
util.url.extractAPFAction=function(requestUrl){var separator;if(requestUrl.indexOf(";jsessionid")==-1){separator="\\?";}
else{separator=";jsessionid";}
var re=new RegExp("apf\/(.*)"+separator,"gi");var apfActionResult=re.exec(requestUrl);if(apfActionResult!=null&&apfActionResult.length==2){return apfActionResult[1];}
else{c.warn("Unable to extract APF action from url: "+requestUrl);return null;}}
util.strip={xmlTags:function(stringToStrip){var regExpString="<[^<>]+>";return stringToStrip.replace(new RegExp(regExpString,"gi"),"");},accents:function(stringToStrip){var s=stringToStrip;s=s.replace(/[\u00E0\u00E2\u00E4]/gi,"a");s=s.replace(/[\u00E9\u00E8\u00EA\u00EB]/gi,"e");s=s.replace(/[\u00EE\u00EF]/gi,"i");s=s.replace(/[\u00F4\u00F6]/gi,"o");s=s.replace(/[\u00F9\u00FB\u00FC]/gi,"u");return s;},escapeCharacters:function(stringToStrip){var s=stringToStrip;s=s.replace(/\\/g,'\\\\');s=s.replace(/\(/g,'\\(').replace(/\)/g,'\\)');s=s.replace(/\*/g,'\\*');s=s.replace(/\|/g,'\\|');s=s.replace(/\[/g,'\\[').replace(/\]/g,'\\]');return s;}}
util.date={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:1000*60*60*24,add:function(date,field,amount){var d=new Date(date.getTime());switch(field){case this.MONTH:var newMonth=date.getMonth()+amount;var years=0;if(newMonth<0){while(newMonth<0){newMonth+=12;years-=1;}}else if(newMonth>11){while(newMonth>11){newMonth-=12;years+=1;}}
d.setMonth(newMonth);d.setFullYear(date.getFullYear()+years);break;case this.DAY:d.setDate(date.getDate()+amount);break;case this.YEAR:d.setFullYear(date.getFullYear()+amount);break;case this.WEEK:d.setDate(date.getDate()+(amount*7));break;}
return d;},subtract:function(date,field,amount){return this.add(date,field,(amount*-1));},before:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()<ms){return true;}else{return false;}},after:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()>ms){return true;}else{return false;}},between:function(date,dateBegin,dateEnd){if(this.after(date,dateBegin)&&this.before(date,dateEnd)){return true;}else{return false;}},getJan1:function(calendarYear){return new Date(calendarYear,0,1);},getDayOffset:function(date,calendarYear){var beginYear=this.getJan1(calendarYear);var dayOffset=Math.ceil((date.getTime()-beginYear.getTime())/this.ONE_DAY_MS);return dayOffset;},getWeekNumber:function(date,calendarYear){date=this.clearTime(date);var nearestThurs=new Date(date.getTime()+(4*this.ONE_DAY_MS)-((date.getDay())*this.ONE_DAY_MS));var jan1=new Date(nearestThurs.getFullYear(),0,1);var dayOfYear=((nearestThurs.getTime()-jan1.getTime())/this.ONE_DAY_MS)-1;var weekNum=Math.ceil((dayOfYear)/7);return weekNum;},isYearOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getFullYear()!=weekBeginDate.getFullYear()){overlaps=true;}
return overlaps;},isMonthOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getMonth()!=weekBeginDate.getMonth()){overlaps=true;}
return overlaps;},findMonthStart:function(date){var start=new Date(date.getFullYear(),date.getMonth(),1);return start;},findMonthEnd:function(date){var start=this.findMonthStart(date);var nextMonth=this.add(start,this.MONTH,1);var end=this.subtract(nextMonth,this.DAY,1);return end;},clearTime:function(date){date.setHours(12,0,0,0);return date;},getDifferenceInDays:function(date1,date2){var dayOffset1=util.date.getDayOffset(date1,0);var dayOffset2=util.date.getDayOffset(date2,0);var dayOffset=Math.abs(dayOffset1-dayOffset2-1);return dayOffset;},YD2JD:function(txt){return new Date(txt);},stringToDate:function(txt){return new Date(txt);},JD2YD:function(date){return this.dateToString(date);},dateToString:function(date){var yStart=c.browser.isIE?0:1900;year=(date.getYear()+yStart);return(date.getMonth()+1)+"/"+date.getDate()+"/"+year;},sameDay:function(date1,date2){var dayAsString1=this.dateToString(date1);var dayAsString2=this.dateToString(date2);return(dayAsString1==dayAsString2);}}
util.connect={asyncRequest:function(){YAHOO.util.Connect.asyncRequest.apply(YAHOO.util.Connect,arguments);}}
a.namespace("aria.ui");aria.ui.Section=function(){this._activeSection=null;this._sections={};this._ids=[];this._secPrefix=[];this._panels={};this.push=function(snm,id){id=(id)?id:"";this._secPrefix[snm]=id;this._activeSection=id+snm;if(!((id+snm)in this._sections))
this._sections[id+snm]={};}
this.getUIC=function(sectionName,type){if(type==undefined){return this._get(sectionName,"true");}
else{var t=type.split(".");var cond="t[i].dam &&";if(t.length<=1){cond+="t[i].dam.tag=='"+type+"'";}else if(t.length>1){cond+="t[i].dam.tag=='"+t[0]+"'";cond+="&& t[i].dam.id.match(/"+t[1]+"/i)!=null";}
return this._get(this._getSec(sectionName),cond);}}
this._get=function(sectionName,cond){var res=[];var t=this._sections[sectionName];eval("var fnTest = function() {for(var i in t){if("+cond+"){res.push(t[i]);}}}");fnTest();fnTest=null;return res;}
this.getInputs=function(name){return this._get(this._getSec(name),"'getInput' in t[i]");}
this.get=function(sec,id){if(sec in this._sections&&id in this._sections[sec]){c.log("[SECTION] usage of cache to retrieve object "+id);return this._sections[sec][id];}
return false}
this._reg=function(id,obj,sec){try{var s=sec!=undefined?this._getSec(sec):this._activeSection;var ix=id.indexOf(s);if(ix!=-1){if(!(s in this._sections)){s=id.substring(0,ix+s.length);}
if(!(s in this._sections))
this._sections[s]=[];this._sections[s][id]=obj;}else{if(!(s in this._sections))
this._sections[s]=[];this._sections[s][id]=obj;}
this._ids[id]=s;}catch(e){c.error("[SECTION] registration failed for section "+s+" id "+id,e);}}
this._isReg=function(id,sec){try{var s=sec!=undefined?this._getSec(sec):this._activeSection;var ix=id.indexOf(s);if(ix!=-1){if(!(s in this._sections)){s=id.substring(0,ix+s.length);}
if(!(s in this._sections))
this._sections[s]=[];if(this._sections[s][id]){return true;}}else{if(this._sections[s][s+"_"+id+"_id"]){return true;}}
return false;}catch(e){c.error("[SECTION] registration failed for section "+s+" id "+id,e);}}
this._getSec=function(sec){var prefix=this._secPrefix[sec]||"";return prefix+sec;}
this._delSec=function(sec){delete this._sections[sec];}
this.destroyAllSections=function(){var sects=this._sections;for(var i in sects){var sec=sects[i];this._destroyAll(sec);}
for(var i in sects){c.removeContent($(i+"_id"));this._delSec(i);}}
this.destroy=function(sects,prefix,keepDom){prefix=(typeof prefix=='string')?"e"+prefix:"";sects=(typeof sects=='string')?[sects]:sects;try{for(var i=0;i<sects.length;i++){var section=this._getSec(prefix+sects[i]);this._destroyAll(this.getUIC(section));if(!keepDom){c.removeContent($(section+"_id"));}
this._delSec(section);}}catch(e){c.error("[SECTION] destroy failed for section "+sects+" index "+i,e);}}
this._destroyAll=function(comp){for(var i in comp){if('destroy'in comp[i]){var tag;var id;var o=$d(comp[i])||{};try{comp[i].destroy();}catch(e){tag=o.tag||"UNDEFINED";id=o.id||"UNDEFINED";c.error("Destroy FAILED for component ["+tag+"], id : "+id);}finally{o=null;}}}}
this.getPanel=function(options){if(options.section!=undefined){var section=options.section;var panels=this.getPanels();for(var fullSectionName in panels){if(fullSectionName.indexOf(section)!=-1){return panels[fullSectionName];}}
c.log("aria.ui.Section.getPanel : no panel available for section '"+section+"'");return false;}}
this.getPanels=function(){return this._panels;}}
c.loader.register('aria.ui.Section');a.namespace('uic.factory');a.namespace('uic.GlobalList');uic.factory.toString=function(){return"uic.factory";}
a.namespace('util');a.namespace('gfx');uic.cste={};uic.cste.ATTRIBUTE_ERRORCLS="uicErrorCls";uic.cste.ATTRIBUTE_VALIDATOR="uicValidator";uic.cste.ATTRIBUTE_CALLBACK="_uicCallBack";uic.cste.ATTRIBUTE_TOBEVALIDATE="tobeValidate";uic.cste.ESCAPE_WAITING="uicEscapeWaiting";uic.STATUS="dev";c.browser=util.browser;c.panels=[];uic.uicObject=function(config){c.extend(this,config||{});this._yuiObject=null;this._label=null;this._input=null;this._cbPool=[];this._internalEvents=[];this.initComponent();}
uic.uicObject.prototype={toString:function(){return this.tag;},initComponent:function(){},_get:function(type,ind){var dom=this.getDom();if(dom){ind=ind==undefined?0:ind;if(ind==-1){this['_'+type]=dom.getElementsByTagName(type);}
else{if(this['_'+type]==undefined){this['_'+type]=dom.getElementsByTagName(type)[ind];}
if(this['_'+type]==undefined){var o=this.getElementsByTagName?this:this.dam;this['_'+type]=o.getElementsByTagName(type)[ind];}}
return this['_'+type];}else{return null;}},getDom:function(){return(typeof this.dam=="object")?this.dam:this;},_evtCreate:function(eventname){if(!this._events)this._events={};if(!(eventname in this._events)){this._events[eventname]=new YAHOO.util.CustomEvent(eventname);}},_evtSubscribe:function(eventName,callback,scope,override){this._evtCreate(eventName);this._events[eventName].subscribe(callback,scope,override);},_evtUnSubscribe:function(eventName,callback,scope){this._evtCreate(eventName);this._events[eventName].unsubscribe(callback,scope);},_evtFire:function(eventName,params){this._evtCreate(eventName);return this._events[eventName].fire(params);},_evtAddCustomEvent:function(){for(var i=0;i<arguments.length;i++){this._evtCreate(arguments[i]);}},addEvent:function(type,callback,obj,scope){if(this._events&&this._events[type]){this._evtSubscribe(type,callback,obj,scope);return;}
if('getInput'in this){var ip=this.getInput();if(typeof(ip)=='object'&&(ip.length!=null&&ip.nodeName==null)){for(var i=0;i<ip.length;i++){ip[i].setAttribute('uic','true');}
YAHOO.util.Event.addListener(ip[0],type,callback,obj,scope);}else{ip.setAttribute('uic','true');YAHOO.util.Event.addListener(ip,type,callback,obj,scope);}}
else{YAHOO.util.Event.addListener($d(this),type,callback,obj,scope);}},remEvent:function(type,callback){if(this._events&&this._events[type]){this._evtUnSubscribe(type,callback);return;}
if('getInput'in this){var ip=this.getInput();YAHOO.util.Event.removeListener(ip,type,callback);}else{YAHOO.util.Event.removeListener(this,type,callback);}},clearAllCustomEvents:function(){if(this._events){for(var i=0,len=this._events.length;i<len;i++){this._events[0].unsubscribeAll();}}},destroy:function(){if(this._yuiObject){this._yuiObject=null;}
this._label=null;this._input=null;this.clearAllCustomEvents();},_genericCb:function(event,date,eType){var cbPool=this._cbPool[eType];for(var i=0,n=cbPool.length;i<n;i++){var arg=cbPool[i];c.callBack(arg.cb,arg.scope,arg.arg);}},_activateEvent:function(fn,event){var fisrtCall=this._cbPool[event]&&this._cbPool[event].length==1;if(fisrtCall)
fn(this._genericCb,event,this);},_deactivateEvent:function(fn,event){var nothingLeft=this._cbPool[event]&&this._cbPool[event].length==0;if(nothingLeft)
fn(this._genericCb,event,this);},_genericSubscribe:function(event,fn,callback,obj,override){var scope=override?obj:null;var arg={'scope':scope,'arg':obj,'dp':this,'cb':callback,eType:event};var cbPool=this._cbPool[event];if(!c.isSet(cbPool)){cbPool=new Array();this._cbPool[event]=cbPool;}
cbPool.push(arg);this._activateEvent(fn,event);},_genericUnsubscribe:function(event,fn,callback){var cbPool=this._cbPool[event];if(c.isSet(cbPool)){for(var i=0,n=cbPool.length;i<n;i++){if(cbPool[i].cb===callback){cbPool.splice(i,1);break;}}
if(cbPool.length==0)
delete this._cbPool.event;}
this._deactivateEvent(fn,event);}};uic.uicInput=function(){uic.uicInput.superclass.constructor.call(this);}
a.extend('uic.uicInput','uic.uicObject',{getInputName:function(){return this.getInput().name;},addValidator:function(type,errorcls,param){if(this.PatternResolved){this.PatternResolved=false;this.getPattern=uic.uicInput.prototype.getPattern;}
c.require('uic.Check');uic.Check.addValidator(type,this.getInput(),errorcls,param);},removeValidator:function(type){c.require('uic.Check');uic.Check.removeValidator(type,this.getInput());},getPattern:function(){c.require('uic.Check');var _uicValidator=this.getInput().getAttribute(uic.cste.ATTRIBUTE_VALIDATOR);if(_uicValidator==null){this.getPattern=function(){return null;}
return this.getPattern();}
var _check=_uicValidator.split("&");var _test=_check[0].split(":");if(_test[0]!==""&&_test[0]in uic.Check){if(_test.length>2){var pattern='';for(var j=1,k=_test.length;j<k;j++)
pattern+=_test[j]+':';_test[1]=pattern.substring(0,pattern.length-1);}
this.PatternResolved=true;this.getPattern=function(){return _test[1];}
return this.getPattern();}},setNormal:function(ipt,lbl,link){var ipt=(c.isSet(ipt))?ipt:this.getInput();if(ipt.className.indexOf('normal')==-1){var lbl=(c.isSet(lbl))?lbl:this._get('label');var link=(c.isSet(link))?link:this._get('a');if(util.dom.hasClass(ipt,'normal'))return;this._saveState(ipt,lbl);this._removeSpecialClass(ipt,lbl);c.require('uic.Check');uic.Check.disableValidator(this);if(lbl){if(util.dom.hasClass(lbl,"disabled")){util.dom.removeClass(lbl,"disabled");}
if(util.dom.hasClass(lbl,"readOnly")){util.dom.removeClass(lbl,"readOnly");}
util.dom.addClass(lbl,"normal");}
if(link)util.dom.removeClass(link,'uicDisabled');ipt.disabled=false;ipt.readOnly=false;if(YAHOO.util.Dom.hasClass(ipt,'sizable'))ipt.className='sizable normal';else ipt.className='normal';this._evtFire("STATECHANGE","SETNORMAL");}},setError:function(ipt,lbl){var ipt=(c.isSet(ipt))?ipt:this.getInput();if(ipt.className.indexOf('error')==-1){var lbl=(c.isSet(lbl))?lbl:this._get('label');if(c.hasClass(ipt,'error'))return;this._saveState(ipt,lbl);this._removeSpecialClass(ipt,lbl);if(lbl)util.dom.addClass(lbl,'error');util.dom.addClass(ipt,'error');ipt.disabled=false;ipt.readOnly=false;this._evtFire("STATECHANGE","SETERROR");}},remError:function(ipt,lbl){var ipt=(c.isSet(ipt))?ipt:this.getInput();var lbl=(c.isSet(lbl))?lbl:this._get('label');if(!c.hasClass(ipt,'error'))return;if(lbl)util.dom.removeClass(lbl,'error');util.dom.removeClass(ipt,'error');},hasError:function(ipt){var ipt=(c.isSet(ipt))?ipt:this.getInput();return c.hasClass(ipt,'error');},setMandatory:function(ipt,lbl){var ipt=(c.isSet(ipt))?ipt:this.getInput();if(ipt.className.indexOf('mandatory')==-1){var lbl=(c.isSet(lbl))?lbl:this._get('label');if(c.hasClass(ipt,'mandatory'))return;this._saveState(ipt,lbl);this._removeSpecialClass(ipt,lbl);if(lbl){util.dom.addClass(lbl,'mandatory');util.dom.removeClass(lbl,'normal');}
util.dom.addClass(ipt,'mandatory');util.dom.removeClass(ipt,'normal');this.addValidator("REQ");ipt.disabled=false;ipt.readOnly=false;this._evtFire("STATECHANGE","SETMANDATORY");}},isMandatory:function(ipt){var ipt=(c.isSet(ipt))?ipt:this.getInput();return c.hasClass(ipt,'mandatory');},setDisabled:function(ipt,lbl,link){var ipt=(c.isSet(ipt))?ipt:this.getInput();if(ipt.className.indexOf('disabled')==-1){var lbl=(c.isSet(lbl))?lbl:this._get('label');var link=(c.isSet(link))?link:this._get('a');if(c.hasClass(ipt,'disabled'))return;this._saveState(ipt,lbl);if(lbl){if(util.dom.hasClass(lbl,"readOnly")){util.dom.removeClass(lbl,"readOnly");}
if(util.dom.hasClass(lbl,"normal")){util.dom.removeClass(lbl,"normal");}
util.dom.addClass(lbl,"disabled");}
if(link)util.dom.addClass(link,'uicDisabled');if(c.hasClass(ipt,'sizable'))ipt.className='sizable disabled';else ipt.className='disabled';ipt.disabled=true;ipt.readOnly=true;this._evtFire("STATECHANGE","SETDISABLED");}},setReadOnly:function(ipt,lbl){var ipt=(c.isSet(ipt))?ipt:this.getInput();if(ipt.className.indexOf('readOnly')==-1){var lbl=(c.isSet(lbl))?lbl:this._get('label');if(c.hasClass(ipt,'readOnly'))return;this._saveState(ipt,lbl);if(lbl){if(util.dom.hasClass(lbl,"disabled")){util.dom.removeClass(lbl,"disabled");}
if(util.dom.hasClass(lbl,"normal")){util.dom.removeClass(lbl,"normal");}
util.dom.addClass(lbl,"readOnly");}
if(c.hasClass(ipt,'sizable'))ipt.className='sizable readOnly';else ipt.className='readOnly';ipt.readOnly=true;ipt.disabled=false;this._evtFire("STATECHANGE","SETREADONLY");}},isReadOnly:function(ipt){var ipt=(c.isSet(ipt))?ipt:this.getInput();return c.hasClass(ipt,'readOnly');},setPreviousState:function(ipt,lbl){var ipt=(c.isSet(ipt))?ipt:this.getInput();var lbl=(c.isSet(lbl))?lbl:this._get('label');var ipttmpSte=ipt.previousState;if(lbl)var lbltmpSte=lbl.previousState;if(ipttmpSte!=undefined){this._saveState(ipt,lbl);if(lbl)lbl.className=lbltmpSte;if(ipttmpSte=='readOnly'){ipt.readOnly='readOnly';}else{ipt.removeAttribute('readOnly')};if(ipttmpSte=='disabled'){ipt.disabled='disabled';}else{ipt.removeAttribute('disabled')};if(c.hasClass(ipt,'sizable')&&!c.hasClass({className:ipttmpSte},'sizable')){ipt.className='sizable '+ipttmpSte;}
else{ipt.className=ipttmpSte;}
this._evtFire("SET"+ipttmpSte.toUpperCase());}},_removeSpecialClass:function(ipt,lbl){util.dom.removeClass(ipt,"readOnly");util.dom.removeClass(ipt,"disabled");if(c.isSet(lbl)){util.dom.removeClass(lbl,"readOnly");util.dom.removeClass(lbl,"disabled");}},_saveState:function(ipt,lbl){if(ipt.previousState!=ipt.className)
ipt.previousState=ipt.className;if(lbl&&lbl.previousState!=lbl.className)
lbl.previousState=lbl.className;},showContextError:function(){var text=this.getDom().getAttribute("_errortext");if(text){if(!c._contextErrorDom)this._createContextErrorDom();c._contextErrorDom.getElementsByTagName("P")[0].innerHTML=text;var offsetTop=util.calculateOffset(this.getInput(),"offsetTop");var scrollTop=document.documentElement.scrollTop;var above=true;if(offsetTop<scrollTop+c._contextErrorDom.offsetHeight){above=false;}
c._contextErrorDom.style.left=(util.calculateOffset(this.getInput(),"offsetLeft",false)+this.getInput().offsetWidth-46)+"px";if(above){c._contextErrorDom.style.top=(util.calculateOffset(this.getInput(),"offsetTop",false)-c._contextErrorDom.offsetHeight+10)+"px";c.removeClass(c._contextErrorDom,"uicFCE-below");}
else{c._contextErrorDom.style.top=(util.calculateOffset(this.getInput(),"offsetTop",false)+this.getInput().offsetHeight-10)+"px";c.addClass(c._contextErrorDom,"uicFCE-below");}
c._contextErrorDom.style.visibility="visible";c._contextErrorDom._uicInput=this;util.dom.updateShim(c._contextErrorDom.firstChild,{appendToParent:true});this.connectContextErrorEvents();}},_createContextErrorDom:function(){if(!c._contextErrorDom){c._contextErrorDom=document.createElement("DIV");c._contextErrorDom.className="uicFieldContextError";var p=document.createElement("P");p.className="uicFieldContextErrorTxt";c._contextErrorDom.appendChild(p);document.body.appendChild(c._contextErrorDom);util.dom.addShim(c._contextErrorDom.firstChild,{appendToParent:true});}},hideContextError:function(e){if(!!e&&e.type=="mousedown"){var targ=(e.target)?e.target:e.srcElement;if(targ==this.getInput()||targ==this){c.stopEvent(e);return;}}
if(c._contextErrorDom&&c._contextErrorDom._uicInput==this){c._contextErrorDom.style.visibility="hidden";util.dom.remShim(c._contextErrorDom.firstChild);}
this.disconnectContextErrorEvents();},connectContextErrorEvents:function(){this.disconnectContextErrorEvents();c.addEvent(document,'mousedown',this.hideContextError,this,true);if(c.browser.isIE){c.addEvent(document,'mousewheel',this.hideContextError,this,true);}else if(c.browser.isOpera||c.browser.isSafari){c.addEvent(window,'mousewheel',this.hideContextError,this,true);}else{c.addEvent(window,'DOMMouseScroll',this.hideContextError,this,true);}},disconnectContextErrorEvents:function(){c.remEvent(document,'mousedown',this.hideContextError);if(c.browser.isIE){c.remEvent(document,'mousewheel',this.hideContextError);}else if(c.browser.isOpera||c.browser.isSafari){c.remEvent(window,'mousewheel',this.hideContextError);}else{c.remEvent(window,'DOMMouseScroll',this.hideContextError);}},isContextErrorVisible:function(){if(c._contextErrorDom){if(c._contextErrorDom.style.visibility=="hidden")return false;else return true;}
else{return false;}},setContextErrorText:function(text){if(this.getDom().getAttribute("_errortext")){this.getDom().removeAttribute("_errortext");}
this.getDom().setAttribute("_errortext",text);},getContextErrorText:function(){return this.getDom().getAttribute("_errortext");}});uic.loadMng=function(){this.loading=[];this.loaded=[];this.initcomp=[];this.initcomp['GENERAL']=[];this.onLoaded=[];this.timer=null;this.filebuffer=[];this.sectionsInitializing={};}
uic.loadMng.prototype={initializing:function(component,section){c.log('[LOADMNG] %o are initialising in section %o',component,section);if(typeof section=='undefined'){section='GENERAL';}
if(!(section in this.initcomp)){this.initcomp[section]=[];}
this.initcomp[section].push(component);},initialized:function(component,section){c.log('[LOADMNG] %o was initialised in section %o',component,section);if(typeof section=='undefined'){section='GENERAL';}
if(section in this.initcomp){this.initcomp[section].remove(component);}
this.executeUserScript();},cbOnPageLoaded:function(){this.onPageLoaded(arguments[0].method,arguments[0].object,arguments[0].section,arguments[0].firedEvent);},onPageLoaded:function(){if(typeof arguments!='object'){var callBackfnc=arguments;}else{var callBackfnc=arguments[0];var obj=arguments[1];var section=arguments[2];var firedEvent=arguments[3];}
if(typeof section=='undefined'){section='GENERAL';}
if(!(section in this.onLoaded)){this.onLoaded[section]=[];}
if(c.isSet(obj)){if(typeof callBackfnc!='string'){c.error("[LOADER] callback function must be passed as a String");return;}
this.onLoaded[section].push({_callBack:callBackfnc,_context:obj,_firedEvent:firedEvent});}else{this.onLoaded[section].push(callBackfnc);}},executeUserScript:function(){var lM=c.loadMng;var allEmpty=true;if(uic.cste.ESCAPE_WAITING in lM.onLoaded&&c.windowLoadEventFired)
lM.execSectionUserScript(uic.cste.ESCAPE_WAITING);for(var l_i in lM.initcomp){if(typeof lM.initcomp[l_i]!='function'&&l_i!='GENERAL'){if(lM.initcomp[l_i].length>0){allEmpty=false;}else{lM.execSectionUserScript(l_i);}}}
if('GENERAL'in lM.onLoaded&&allEmpty&&c.windowLoadEventFired){lM.execSectionUserScript('GENERAL');}},execSectionUserScript:function(section){var lM=c.loadMng;if(section in lM.onLoaded&&!c.loadMng.sectionsInitializing[section]){var k=lM.onLoaded[section];while(k.length>0){var cb=k[0];try{if(typeof cb=='function'){setTimeout(cb,20);}
else{c.log('[CALLBACK] Callback :%o ',cb);cb._context[cb._callBack]();}
if(c.isSet(cb._firedEvent)){c.log("[LOADER] ["+section+"]-> Callback Event");c.require('aria.EventCommunicationBus');a.ecb.fire(cb._firedEvent);}}
catch(e){c.error("[LOADER] ["+section+"]->%o generate this error : ",e,cb);}
k.splice(0,1);}
delete lM.onLoaded[section];if(section!='GENERAL'){c.log("[LOADER] ["+section+"]-> Deleted");delete lM.initcomp[section];}}}}
c.loadMng=new uic.loadMng();c.windowLoadEventFired=false;c.isSet=function(o){return typeof o!='undefined'&&o!=null;}
c.addEvent=function(el,stype,fn,obj,override){var domEl=$d(el);if('load'==stype&&c.windowLoadEventFired){c.callBack(fn,obj,override);}else{if(typeof el=='object'&&'addEvent'in el){el.addEvent(stype,fn,obj,override);}else{YAHOO.util.Event.addListener(domEl,stype,fn,obj,override);}
domEl=null;}}
c.getX=function(e){return YAHOO.util.Event.getPageX(e);}
c.getY=function(e){return YAHOO.util.Event.getPageY(e);}
c.remEvent=function(el,stype,fn){if(c.isSet(el)){el=$d(el);YAHOO.util.Event.removeListener(el,stype,fn);}
else{c.warn("Bad argument issue in c.remEvent function. You're trying to removeEvents on an not well defined HTMLElement (null or undefined).");}}
c.stopEvent=function(evt){YAHOO.util.Event.stopEvent(evt);}
c.mkEvent=function(name,target){return{type:name,target:target,currentTarget:target,originalTarget:target,bubbles:true,cancelable:true}}
c.getTarget=function(e,name){var target=YAHOO.util.Event.getTarget(e);if(target.getAttribute('uic')){target=c.getUICParent(target,name);}
return target;}
c.getUICParent=function(node,tagName,returnUIC){node=$d(node);var father=node;if(tagName){while(father.tag==undefined||father.tag!=tagName){father=father.parentNode;if(father==null)
return node;}}else{while(father.tag==undefined){father=father.parentNode;if(father==null)
return node;}}
if(father.id){father=$(father.id);}
if(father.getUICParent){return father.getUICParent(returnUIC);}else if(returnUIC){return father;}else{return $d(father);}}
c.remove=function(node,tagName){if(c.browser.isIE){$d(node).removeAttribute(tagName);}else{delete $d(node)[tagName];}}
c.empty=function(){}
c.isInDom=function(id,panel){return $(id,panel,undefined,false)==null?false:true;}
c.getASCIICode=function(e){return(e.keyCode||e.charCode||e.which||0);}
c.extend=function(htmltag,jsObject){if(jsObject&&htmltag){for(var i in jsObject){htmltag[i]=jsObject[i];}}}
c.dialog=function(title,src,id,dialogParams,callBack,scope,override){c.require('yui.dragdrop');c.require('yui.yui-ext-dialog');c.require('uic.Dialog');return uic.factory.Dialog._dialog(title,src,id,dialogParams,callBack,scope,override);}
c.alert=function(title,shortText,longText,type,buttons,animateTarget){c.require('uic.Button');c.require('yui.dragdrop');c.require('yui.yui-ext-dialog');c.require('uic.Dialog');return uic.factory.Dialog._alert(title,shortText,longText,type,buttons,animateTarget);}
c.genericAlert=function(parameters){c.require('uic.Button');c.require('yui.dragdrop');c.require('yui.yui-ext-dialog');c.require('uic.Dialog');return uic.factory.Dialog._genericAlert(parameters);}
c.onLoad=function(cbfnt,obj,section,firedEvent){if(c.windowLoadEventFired){c.loadMng.cbOnPageLoaded({method:cbfnt,object:obj,section:section,firedEvent:firedEvent});if(section&&!(section in c.loadMng.initcomp))
c.loadMng.execSectionUserScript(section);else
c.loadMng.executeUserScript();}else{c.loadMng.cbOnPageLoaded({method:cbfnt,object:obj,section:section,firedEvent:firedEvent});}}
c.onLoad(function(){if(m.__trackerAfter){m.__trackerAfter("application");}});YAHOO.util.Event.addListener(window,"load",function(){c.windowLoadEventFired=true;c.loadMng.executeUserScript()});c.getAncestor=function(nodeName,obj){nodeName=nodeName.toUpperCase();node=obj.parentNode;while(node!=null&&node!=document)
if(node.nodeName==nodeName)return node;else node=node.parentNode;return document;}
c.require=function(jsobject){if(jsobject.indexOf('/')!=-1){c.loader._load(jsobject,"",true);}else
c.loader._load(uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT,jsobject,true);}
c.callBack=function(Callback,params,override,more){var tpo=typeof override;if(tpo=='undefined'||(tpo=='boolean'&&override==false)){if(typeof params!='undefined'&&typeof more!='undefined')
return Callback(params,more);else
if(typeof params!='undefined')
return Callback(params);else
return Callback(more);}else{if(tpo=='object'){return Callback.call(override,params,more);}else{return Callback.call(params,more,params);}}}
c.addShim=function(box,o){util.dom.addShim(box,o);}
c.remShim=function(box){util.dom.remShim(box);}
c.updateShim=function(box,o){util.dom.updateShim(box,o);}
c.__behaviours=[];c.__sections=[];c._sections=new aria.ui.Section();c.sectionManager=c._sections;c.destroy=function(s){c._sections.destroy(s);}
c.removeContent=c.browser.isIE?function(){return function(n){var trashBinDiv;if(n&&n.tagName!='BODY'){trashBinDiv=document.createElement('div');trashBinDiv.appendChild(n);trashBinDiv.innerHTML='';trashBinDiv=null;}}}():function(n){if(n&&n.parentNode&&n.tagName!='BODY'){n.parentNode.removeChild(n);}}
c._begRegSec=function(snm,id){c.loadMng.sectionsInitializing[snm]=true;c._sections.push(snm,id);}
c._endRegSec=function(snm,id){c.loadMng.sectionsInitializing[snm]=false;c.loadMng.initializing("SECTION",snm);var bc=this.__behaviours[snm];if(bc){try{eval("var o=new "+bc+"()");o._setSectionId(snm);o.init();}
catch(ex){c.error("Invalid Behaviour class: "+bc,ex);}}
c.__sections[snm]=true;c._sections._activeSection=null;c.loadMng.initialized("SECTION",snm);}
c._appendToSection=function(obj,sec){var id=obj.id||"";try{var s=sec!=undefined?c._sections._getSec(sec):c._sections._activeSection;var ix=id.indexOf(sec);var ix2=id.indexOf(s);if(ix!=-1&&ix2==-1){s=id.substring(0,s.length);}
$(s+"_id").appendChild(obj);}catch(e){c.removeContent(obj);}}
uic.factory._check=function(component,o,id){var ret=(o==null);if(ret){c.error(component+" object not retrieved in DOM : "+id);}
return ret;}
c.getUrlParam=function(name){name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)
return null;else
return results[1];}
c.getExtraParam=function(o){o=(typeof o=='string')?$k(o):o;return o.getAttribute("_extraparam");}
c.debug=function(file){uic.p.DEBUG=true;c.loader.includeScript([file]);}
c.watcherStarter=function(){window._w=new util.Watcher('Watcher',2,null,uic.p.watcher_store_url,uic.p.watcher_retreive_url);c.onLoad('init',window._w);}
if(uic.p.WATCHER){if(uic.p.DEBUG)
YAHOO.util.Event.addListener(window,"load",c.watcherStarter);else
c.loader.loadFW('Watcher','watcherStarter',c,true);}
if(uic.p.ARIA){if(uic.p.DEBUG){c.loader.includeScript(["yui.dragdrop","yui.animation","yui.yui-ext-core"]);c.loader.includeScript(["aria.lang.JsObject","aria.lang.Xml","aria.Shell","aria.ui.Module","aria.ui.Panel","aria.ui.Section","aria.layouts.Manager","aria.layouts.BorderLayout","aria.layouts.HtmlLayout"]);c.loader.includeScript(["aria.EventCommunicationBus","aria.ServerSideAccess","aria.store.Generic","aria.store.Cookie","aria.UserProfile","util.XMLResponse"]);}else{if(window.ARIA_APPLICATION_DEPENDENCIES)
c.loader.includeScript([window.ARIA_APPLICATION_DEPENDENCIES]);c.loader.includeScript(["yuilayout","arialayoutssa"]);}}
$=function(id,scope,s,v){var v=typeof v=='undefined'?true:v;scope=typeof scope=='undefined'?'':scope;var sctn=[];var panid="";if(typeof id!='string')return id;if(arguments.length>1){if(typeof scope=="object"){var sect=typeof s=='undefined'?scope._section:s;if(typeof sect!='string')
sctn=sect;else{sctn.push(sect);}
if('_id'in scope&&scope._id!=null&&scope._id!=undefined){panid="e"+scope._id;}}
else{sctn.push(scope);panid=typeof s=='undefined'?"":s;}}
var objs=[];var obj;var _obj;for(var i=0;i<sctn.length;i++){_obj=c._sections.get(panid+sctn[i],panid+sctn[i]+"_"+id+"_id");if(!_obj){_obj=c._sections.get(sect,id)}
if(!_obj){obj=$k(panid+sctn[i]+"_"+id+"_id")}else{return _obj;}
c.log("[$]<"+panid+"><"+sctn[i]+"><"+id+">");if(obj)objs.push(obj);}
if(objs.length==0){if(c._sections._ids[id]!=undefined&&!sect){sect=c._sections._ids[id];}
obj=c._sections.get(sect,id);if(!obj)obj=$k(panid+id);if(!obj)obj=$k(id);if(obj)objs.push(obj);}
if(v&&objs.length==0&&!_obj){c.warn("[$]Nothing found <"+panid+"><"+sctn.join(';')+"><"+id+">");}
if(v&&objs.length>1){c.warn("[$] found more than 1 object <"+id+">");}
return _obj||objs[0];}
$d=function(el){if(!el)return;if(!!(typeof el.getDom==="function")){return el.getDom();}
return el;}
$k=(c.browser.isIE6||c.browser.isIE7)?(function(id){var el=document.getElementById(id);if(el){if(el.getAttribute("id")==id)return el;else{for(var elem in document.all){if(elem.id==id)
return elem;}}}
return null;}):(function(id){return document.getElementById(id)});util.dom={};util.dom.getElementById=function(obj,id){var obj=(typeof obj=="string")?$(obj):obj;if(obj==null)return null;var childs=obj.childNodes;for(var i=0;i<childs.length;i++){if(childs[i].id==id)return childs[i];else{var res=util.dom.getElementById(childs[i],id);if(res!=null)return res;}}
return null;}
util.dom.getComputedStyle=function(element,attribute){element=$d(element);if(c.browser.isIE){if(attribute)return element.currentStyle[attribute];else return element.currentStyle;}
else{if(attribute)return window.getComputedStyle(element,null)[attribute];else return window.getComputedStyle(element,null);}}
util.getElementStyle=util.dom.getComputedStyle;util.dom.getComputedFloatStyle=function(el,attribute){var style=util.dom.getComputedStyle(el,attribute);var modifier=1;if(c.browser.isIE){if(style.length>2){var unit=style.substring(style.length-2);modifier=util.dom.UnitConverter.getPxSize(unit);}}
var floatStyle=parseFloat(style,10);return(!isNaN(floatStyle)&&floatStyle>0)?(floatStyle*modifier):0;}
util.dom.isVisible=function(obj){obj=(typeof obj=="string")?$k(obj):obj;obj=$d(obj);return obj.offsetWidth!=0;}
util.dom.initializer=function(componentId,callback,scope){c.log('[INITIALIZER] '+componentId+' is invisible');var component;if(typeof componentId=="string")component=$k(componentId);else component=componentId;component=$d(component);scope=scope?scope:component;var ancestorNode=component.parentNode;var firstParent=ancestorNode;var widthAdjust=0;while(ancestorNode!=null&&!util.dom.isVisible(ancestorNode)){widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'marginLeft');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'marginRight');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'paddingLeft');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'paddingRight');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'borderLeftWidth');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'borderRightWidth');ancestorNode=ancestorNode.parentNode;}
if(ancestorNode!=null){widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'paddingLeft');widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,'paddingRight');var el=document.createElement('div');el.className='uicInvisible';document.body.appendChild(el);var elWidth=ancestorNode.clientWidth-widthAdjust;if(isNaN(elWidth)||elWidth<10){el.style.width=util.dom.getViewportWidth()+"px";}else{el.style.width=elWidth+"px";}
var where=component.nextSibling;el.appendChild(component);var forceShow=false;if(!util.dom.isVisible(component)){forceShow=true;util.dom.show(component);}
if(util.dom.isVisible(component)){if(callback){callback.call(scope);}else{scope.init();}}
if(forceShow){util.dom.hide(component);}
if(where==null){firstParent.appendChild(component);}else{firstParent.insertBefore(component,where);}
document.body.removeChild(el);delete el;}}
util.dom.isInBorderLayout=function(el){var node=$d(el);var result=false;while(node.parentNode!=document.body){node=node.parentNode;if(c.hasClass(node,"ylayout-panel-body")&&node.borderLayoutRegion){result=node;break;}}
return result;}
util.dom.setOpacity=function(obj,v){obj=$d(obj);var s=obj.style;if(typeof s.opacity!="undefined"){obj.style.opacity=v/100;}
if(typeof s.MozOpacity!="undefined"){s.MozOpacity=v/100;}
if(typeof s.KhtmlOpacity!="undefined"){s.KhtmlOpacity=v/100;}
if(typeof s.filter!="undefined"){s.filter="alpha(opacity="+v+")";}}
util.dom.getOpacity=function(obj){obj=$d(obj);var s=obj.style;if(typeof s.opacity!="undefined"){return s.opacity==""?100:s.opacity*100;}
if(typeof s.MozOpacity!="undefined"){return s.MozOpacity==""?100:s.MozOpacity*100;}
if(typeof s.KhtmlOpacity!="undefined"){return s.KhtmlOpacity==""?100:s.KhtmlOpacity*100;}
if(typeof s.filter!="undefined"){var r=new RegExp("opacity=([0-9]+)");var op=r.exec(s.filter);return op==null?100:parseInt(op[1],10);}},util.dom.forceLayout=(c.browser.isIE6||c.browser.isIE7)?function(obj){var domObj=$d(obj);var floatStyle=util.dom.getComputedStyle(domObj,"styleFloat");var widthStyle=util.dom.getComputedStyle(domObj,"width");if(floatStyle=="none"||widthStyle!='auto'){domObj.style.zoom=1;}
delete domObj;}:function(){};util.dom.recForceLayout=(c.browser.isIE6||c.browser.isIE7)?function(obj){var domObj=$d(obj);var contStyle=util.dom.getComputedStyle(domObj,'display');var tagName=domObj.tagName.toLowerCase();if(contStyle=='block'){var childs=domObj.childNodes;util.dom.forceLayout(domObj);for(var i=0,l=childs.length;i<l;i++){if(childs[i].nodeType==1){util.dom.recForceLayout(childs[i]);}}}
delete domObj;}:function(){};util.dom.debugObject=function(obj,sep,iter){c.info('[debugObject] this function is deprecated');}
function getPreviousSibling(n){var x=n.previousSibling;while(x.nodeType!=1)
{x=x.previousSibling;}
return x;}
util.dom.toggle_visibility=function(o,effect){if(o!=null){if(!util.dom.isVisible(o))util.dom.show(o);else util.dom.hide(o);}
else{c.log("[toggle_visibility] Impossible object is null",'error');}}
util.dom.toggle_class=function(o,cssclass1,cssclass2){if(o!=null){if(cssclass2!=undefined){if(c.hasClass(o,cssclass2))c.removeClass(o,cssclass2);else c.addClass(o,cssclass2);}
if(c.hasClass(o,cssclass1))c.removeClass(o,cssclass1);else c.addClass(o,cssclass1);}
else{c.log("[toggle_class] Impossible object is null",'error');}}
util.dom.toggle_content=function(o,content1,content2){o=$d(o);if(o!=null){if(o.innerHTML==content1)o.innerHTML=content2;else o.innerHTML=content1;}
else{c.log("[toggle_class] Impossible object is null",'error');}}
util.dom.getElementsByClassName=function(className,tag,root){tag=tag||"";var returnElms=[];if(typeof $$!="undefined"&&typeof $$=="function"){returnElms=$$(tag+"."+className,root);}else{var elms=((!tag||tag=="*")&&document.all)?document.all:document.getElementsByTagName(tag||"*");var className=className.replace(/\-/g,"\\-");var regExp=new RegExp("(^|\\s)"+className+"(\\s|$)");var elm;for(var i=0;i<elms.length;i++){elm=elms[i];if(regExp.test(elm.className)){returnElms.push(elm);}}}
return(returnElms);}
util.dom.show=function(obj){obj=$d(obj);obj.style.display='';c.removeClass(obj,'uicHidden');}
util.dom.hide=function(obj){obj=$d(obj);obj.style.display='none';}
util.dom.setVisible=function(obj){obj=$d(obj);if(obj.offsetWidth==0){obj.style.visibility='hidden';obj.style.position='absolute';return true;}
return false;}
util.dom.setInVisible=function(obj){obj=$d(obj);if(obj.style.visibility=='hidden'){obj.style.visibility='visible';obj.style.position='relative';}}
util.dom.executeJS=function(inputText){inputText=inputText.replace(/\n/g,"");inputText=inputText.replace(/\r/g,"");if(inputText==""||typeof inputText=='undefined')return;var srcExpression=/^([^<]*?)<script([^>]*?)src=(\"|\')((([^>]*)\/(.*?)\.js)|(([^\/]*)\.js))(\"|\')([^>]*?)(\/>|>([^<]*?)<\/script>)(.*)/;var srcResult=srcExpression.exec(inputText);if(srcResult!=null)
{util.dom.executeJS(srcResult[14]);}
else
{var scriptExpression=/^([\s\S]*?)<script(.*?)>([\s\S]*?)<\/script>([\s\S]*)/;var scriptResult=scriptExpression.exec(inputText);if(scriptResult!=null)
{eval(scriptResult[3]);util.dom.executeJS(scriptResult[4]);}}}
util.dom.getElementsByAttribute=function(attr,attrVal,tag,root){tag=tag||"";var returnElms=[];if(typeof $$!="undefined"&&typeof $$=="function"){if(typeof attrVal!="undefined"){returnElms=$$(tag+"["+attr+"="+attrVal+"]",root);}else{returnElms=$$(tag+"["+attr+"]",root);}}else{var elms=((!tag||tag=="*")&&document.all)?document.all:document.getElementsByTagName(tag||"*");if(typeof attrVal!="undefined"){var attrVal=new RegExp("(^|\\s)"+attrVal+"(\\s|$)");}
var current;var currentAttr;for(var i=0;i<elms.length;i++){current=elms[i];currentAttr=current.getAttribute(attr);if(typeof currentAttr=="string"&&currentAttr.length>0){if(typeof attrVal=="undefined"||(attrVal&&attrVal.test(currentAttr))){returnElms.push(current);}}}}
return returnElms;}
util.dom.addClass=function(el,className){YAHOO.util.Dom.addClass($d(el),className);}
c.addClass=util.dom.addClass;util.dom.removeClass=function(el,className){YAHOO.util.Dom.removeClass($d(el),className);}
c.removeClass=util.dom.removeClass;util.dom.replaceClass=function(el,oldClassName,newClassName){YAHOO.util.Dom.replaceClass($d(el),oldClassName,newClassName);}
c.replaceClass=util.dom.replaceClass;util.dom.hasClass=function(el,className){return YAHOO.util.Dom.hasClass($d(el),className);}
c.hasClass=util.dom.hasClass;util.dom.getAncestor=function(el,tagname){el=$d(el);return c.getAncestor(tagname,el);}
util.dom.updateContainer=function(content,element){element=$d(element);element.innerHTML=content;util.dom.executeJS(content);}
util.dom.prefixIDs=function(pageContent,id,method){if(!!id&&id!=""){return pageContent.replace(/\sid=["'](.*?)["']/ig," id=\"e"+id+"$1\"");}else{return pageContent;}}
util.dom.oldPrefixIDs=function(pageContent,id,method){if(method==3)return pageContent.replace(/\sid=["'](.*?)["']/ig," id=\"e"+id+"$1\"");var startPosition=0;var endPosition=0;if(pageContent==""||typeof pageContent=='undefined')return"";var pageReturn=pageContent;var s=' id="';endPosition=pageContent.indexOf(s,startPosition);if(endPosition==-1){return pageReturn;}else{pageReturn="";if(method==2){while(endPosition!=-1){start=pageContent.substring(startPosition,endPosition+s.length);pageReturn+=start+"e"+id;startPosition=endPosition+s.length;endPosition=pageContent.indexOf(s,startPosition);}}
if(method==1){start=pageContent.substr(startPosition,endPosition+s.length);pageReturn=start+"e"+id+this.prefixIDs(pageContent.substr(endPosition+s.length,pageContent.length),id);}}
if(method==2)
pageReturn+=pageContent.substr(startPosition,pageContent.length);return pageReturn;}
util.dom.removeJunkNode=function(nodes){var unjunk=[];for(var n=0;n<nodes.length;n++){if(nodes[n]!=null&&nodes[n].nodeType!=3)
unjunk.push(nodes[n]);}
return unjunk;}
util.dom.each=function(el,iterator){for(var i=0,length=el.length;i<length;i++){iterator(el[i]);}}
util.dom.correctPNG=function(id){var ids=(typeof id=='string')?[id]:id;if(typeof ids=='undefined'){for(var i=0;i<document.images.length;i++)
{var img=document.images[i]
var imgName=img.src.toUpperCase()
if(imgName.substring(imgName.length-3,imgName.length)=="PNG")
{ids.push(img.id);}}}
for(var i=0;i<ids.length;i++){var img=$(ids[i]);var imgID=(img.id)?"id='"+img.id+"' ":""
var imgClass=(img.className)?"class='"+img.className+"' ":""
var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' "
var imgStyle="display:inline-block;"+img.style.cssText
if(img.align=="left")imgStyle="float:left;"+imgStyle
if(img.align=="right")imgStyle="float:right;"+imgStyle
if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle
var strNewHTML="<span "+imgID+imgClass+imgTitle
+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+img.src+"\', sizingMethod='scale');\"></span>"
img.outerHTML=strNewHTML
i=i-1}}
util.dom.addShim=function(box,o){if(o&&o.appendToParent){o.body=false;}
box=$d(box);a.shimManager.check();a.shimManager.targets.push(box);a.shimManager.assignFrame(box,o);}
util.dom.remShim=function(box){box=$d(box);a.shimManager.check();a.shimManager.removeTarget(box);a.shimManager.releaseFrame(box);}
util.dom.updateShim=function(box,o){if(o&&o.appendToParent){o.body=false;}
box=$d(box);a.shimManager.check();var frame=a.shimManager.getUsedFrame(box);if(frame){a.shimManager.displayShim(frame,box,o);}else{util.dom.addShim(box,o);}}
util.dom.shimManager=function(){};util.dom.shimManager.prototype={targets:[],usedFrames:[],frames:[],bindings:[],deleteItem:function(el,ar){var i=ar.indexOf(el);if(i>=0){return ar.splice(i,1)[0];}},addFrame:function(){this.frames.push(this.createShim());},getFrame:function(){if(this.frames.length==0){this.addFrame();}
return this.frames.pop();},assignFrame:function(box,o){var frame=this.getFrame();this.usedFrames.push(frame);this.displayShim(frame,box,o);this.bindings.push({box:box,frame:frame});},releaseFrame:function(box){var frame=this.getUsedFrame(box,true);if(frame){this.deleteItem(frame,this.usedFrames);this.hideShim(frame);this.frames.push(frame);}},getUsedFrame:function(box,removeBinding){for(var i=0;i<this.bindings.length;i++){if(this.bindings[i].box==box){if(removeBinding){var f=this.bindings.splice(i,1);return f[0].frame;}else{return this.bindings[i].frame;}}}},removeTarget:function(target){this.deleteItem(target,this.targets);},check:function(){for(var i=0;i<this.bindings.length;i++){if(!util.dom.isVisible(this.bindings[i].box)){this.removeTarget(this.bindings[i].box);this.releaseFrame(this.bindings[i].box);}else{this.checkIndex(this.bindings[i].frame,this.bindings[i].box)}}},checkIndex:function(f,b){if(b.style&&b.style.zIndex){f.style.zIndex=(b.style.zIndex||1)-1;}else if(b){f.style.zIndex=util.dom.calculateZIndex(b)-1;}},hideShim:function(frame){if(frame.parentNode!=document.body){document.body.appendChild(frame);}
frame.style.display="none";},createShim:function(){var dom=document.createElement('iframe');dom.src=uic.p.FRAMEWORK_DOCUMENT_ROOT+"img/corporate_square_bullet.gif";util.dom.addClass(dom,"uicShim");dom.setAttribute("frameBorder","0");dom.setAttribute("scrolling","no");document.body.appendChild(dom);dom.style.position="absolute";dom.style.display="none";return dom;},displayShim:function(frame,box,o){var p={body:true,left:0,top:0};c.extend(p,o);frame.style.left=util.calculateOffset(box,'offsetLeft',true)-p.left;frame.style.top=util.calculateOffset(box,'offsetTop',true)-p.top;frame.style.width=box.offsetWidth+"px";frame.style.height=box.offsetHeight+"px";frame.style.zIndex=(box.style.zIndex||1)-1;if(p.body)
document.body.appendChild(frame);else
box.parentNode.appendChild(frame);frame.style.display="block";}}
if(!c.browser.isIE6)util.dom.addShim=util.dom.remShim=util.dom.updateShim=function(){};else a.shimManager=new util.dom.shimManager();util.dom._getElementsByName_iefix=function(tag,name){var elem=document.getElementsByTagName(tag);var arr=new Array();for(i=0,iarr=0;i<elem.length;i++){att=elem[i].getAttribute("name");if(att==name){arr[iarr]=elem[i];iarr++;}}
return arr;}
uic.isArray=function(v){return v&&typeof v.length=='number'&&typeof v.splice=='function';};util.dom.getViewportHeight=YAHOO.util.Dom.getViewportHeight;util.dom.getViewportWidth=YAHOO.util.Dom.getViewportWidth;util.dom.getClientHeight=YAHOO.util.Dom.getClientHeight;util.dom.getClientWidth=YAHOO.util.Dom.getClientWidth;util.dom.getStyle=YAHOO.util.Dom.getStyle;util.dom.constrainToViewport=function(obj,ref,opt){obj=$(obj);var offset=opt.offset||0,height=opt.height||obj.offsetHeight,width=opt.width||obj.offsetWidth,position=opt.position||false,marginTop=opt.marginTop||0,ref=ref||{offsetWidth:0,offsetHeight:0},oTop=opt.oTop||util.calculateOffset(obj,"offsetTop"),oLeft=opt.oLeft||util.calculateOffset(obj,"offsetLeft");if(oTop+height>(util.dom.getClientHeight()+document.documentElement.scrollTop)){var newTop=(obj.offsetTop-height-ref.offsetHeight-marginTop)
if(newTop>0){obj.style.top=newTop+"px";}}
var widthDiff=oLeft+width-(util.dom.getClientWidth()+document.documentElement.scrollLeft);if(widthDiff>0){var newLeft=(obj.offsetLeft-widthDiff);if(newLeft>0){obj.style.left=newLeft+"px";}}}
util.dom._constrainToViewport=function(options){var top=options.top,left=options.left,height=options.height,width=options.width;var newPos={top:top,left:left};if(newPos.left<0)newPos.left=0;if(newPos.top<0)newPos.top=0;var hDiff=top+height-(util.dom.getClientHeight()+document.documentElement.scrollTop);if(hDiff>0){if(top>hDiff)newPos.top=top-hDiff;}
var wDiff=left+width-(util.dom.getClientWidth()+document.documentElement.scrollLeft);if(wDiff>0){if(left>wDiff)newPos.left=left-wDiff;}
return newPos;}
util.dom.appendElement=function(obj,ref,opt){obj=$d(obj);ref=$d(ref);opt=opt||{};var offset=opt.offset||0;var height=opt.height||obj.offsetHeight;var position=opt.position||true;var marginTop=opt.marginTop||0;var marginLeft=opt.marginLeft||0;util.dom.positionAt(obj,ref,marginLeft,ref.offsetHeight+marginTop);if(opt.constrain)util.dom.constrainToViewport(obj,ref,opt);obj.style.zIndex=Math.max(util.dom.calculateZIndex(ref)+1,25);}
util.dom.positionAt=function(obj,ref,offsetX,offsetY){obj=$d(obj);ref=$d(ref);offsetX=offsetX||0;offsetY=offsetY||0;var cs=obj.style;cs.left=(util.calculateOffset(ref,"offsetLeft",false)+offsetX)+"px";cs.top=(util.calculateOffset(ref,"offsetTop",false)+offsetY)+"px";cs.position="absolute";cs.zIndex=Math.max(util.dom.calculateZIndex(ref)+1,25);}
util.dom.calculateZIndex=function(obj,opt){obj=$d(obj);var zI=0;opt=opt||{};opt.lazy=opt.lazy||false;while(obj){var objPositionCss=util.dom.getStyle(obj,"position");if(objPositionCss=="absolute"||opt.lazy){var newZI=parseInt(util.dom.getStyle(obj,"z-index"))
if(!isNaN(newZI))
zI=Math.max(newZI,zI);}
obj=obj.offsetParent;}
return zI;}
util.dom.isScrolledOut=function(obj){var o=$d(obj);var oTop=util.calculateOffset(o,"offsetTop"),oHeight=o.offsetHeight;if(oTop>util.dom.getViewportHeight())return true;o=o.offsetParent;while(o){if(o.scrollHeight>o.offsetHeight){var t=util.calculateOffset(o,"offsetTop");if(oTop<t||oTop>t+o.offsetHeight)
return true;}
if(util.getCSSProperty(o,"visibility")=="hidden"){return true}
o=o.offsetParent;}
return false;}
util.dom.hasVisibilityHidden=function(o){o=$d(o).offsetParent;while(o){if(util.getCSSProperty(o,"visibility")=="hidden"){return true}
o=o.offsetParent;}
return false;}
util.dom.ensureVisible=function(obj){return(!util.dom.isScrolledOut(obj)&&util.dom.isVisible(obj));}
util.dom.makeVisible=function(obj){var o=$d(obj);var oTop=util.calculateOffset(o,"offsetTop"),oHeight=o.offsetHeight;o=o.offsetParent;while(o){if(o.scrollHeight>o.offsetHeight){var t=util.calculateOffset(o,"offsetTop");if(oTop<t){o.scrollTop-=t-oTop;}else if(oTop>t+o.offsetHeight){o.scrollTop+=oTop-(t+o.offsetHeight);}}
if(util.getCSSProperty(o,"visibility")=="hidden"){return true}
o=o.offsetParent;}
if(oTop>util.dom.getViewportHeight())document.documentElement.scrollTop+=oTop-util.dom.getViewportHeight();return false;}
util.dom.resizeElements=function(el){el=$d(el);var children=el.childNodes;for(var i=0;i<children.length;i++){var child=children[i];if(child.resize)
child.resize();else
util.dom.resizeElements(child)}}
util.dom.getFirstFocusable=function(el){c.require("util.peppy");el=$d(el);var a=[];var getFirstVisible=function(array){var i=0;while(array[i]&&(array[i].offsetWidth==0||array[i].disabled)){i++;}
if(array[i])return array[i];else return false;}
a._push=function(el){if(el)a.push(el);}
a._push(getFirstVisible($$("a",el)));a._push(getFirstVisible($$("input",el)));a._push(getFirstVisible($$("select",el)));a._push(getFirstVisible($$("textarea",el)));a._push(getFirstVisible($$("button",el)));while(a.length>1){var m=a[0],n=a[a.length-1];mTop=util.calculateOffset(m,"offsetTop");nTop=util.calculateOffset(n,"offsetTop");if(mTop-nTop>0){a=a.reverse();}
a.pop();}
if(a[0])return a[0];return false;}
util.dom.focusFirst=function(el){var focusEl=util.dom.getFirstFocusable(el);if(focusEl&&focusEl.focus){focusEl.focus()}}
util.dom.UnitConverter={"px":1,getPxSize:function(unit){if(typeof util.dom.UnitConverter[unit]!="number"){var el=document.createElement('div');el.className='uicInvisible';el.style['margin']="0px";el.style['padding']="0px";el.style['borderWidth']="0px";document.body.appendChild(el);try{el.style.width="1"+unit;util.dom.UnitConverter[unit]=el.clientWidth;}catch(e){c.info('could not convert unit '+unit);util.dom.UnitConverter[unit]=1;}
document.body.removeChild(el);delete el;}
return util.dom.UnitConverter[unit];}};util.form=function(options){this.options={form:null,conversion:{},skipElements:[],elements:[]};c.extend(this.options,options);this.f=$d(this.options.form);this.c=this.options.conversion;this.s=this.options.skipElements;this.e=this.options.elements;this.p=[];}
util.form.prototype={_getParams:function(){this.p=[];this.tmpp=[];var oSelf=this;if(this.f!=null){util.dom.each(this.f,function(element){element=$d(element);var n=element.name||"";if(("input|select|textarea".indexOf(element.tagName.toLowerCase())==-1)||(n&&n.length&&n.length==0)||(oSelf._isToSkip(n))){return;}
var index="";try{if(n&&n.match){index=n.match(/^([^_]+)(_.+)$/)[2];n=n.match(/^([^_]+)(_.+)$/)[1];}}catch(e){}
var convertedName=n;if(oSelf.c){converted=(oSelf.c._els)?oSelf.c._prefix+oSelf.c._els[n]:oSelf.c[n];if(typeof converted!="undefined"&&converted!=oSelf.c._prefix+"undefined"){convertedName=converted;}}
var value=null;if(element.getAttribute('type')=='hidden'){value=element.value;}else if(element.getAttribute('type')=='radio'){if(element.checked==true){var value=element.value;}else{return;}}
else{var jsObject=c.getUICParent(element.parentNode,null,true);var domObject=$d(jsObject);if(jsObject._datePicker)jsObject=jsObject._datePicker;if("textfield|textarea|datepicker|radio|checkbox|autocomplete|select".indexOf(domObject.tag.toLowerCase())!=-1){switch(domObject.tag){case'DatePicker':var value=jsObject.getJRESDate();break;case'AutoComplete':var value=jsObject.getSubmitValue();break;case'CheckBox':if(element.checked==true){var value=element.value;}else{return;}
break;default:var value=jsObject.getValue();break;}}
else{var value=element.value;}}
if(!oSelf.tmpp.hasValue(n+index)){oSelf.tmpp[oSelf.tmpp.length]=n+index;oSelf.p[oSelf.p.length]={cname:convertedName+index,value:encodeURIComponent(value)};}});return;}
if(this.e.length>0){util.dom.each(this.e,function(element){element=$d(element);if(element.getAttribute('type')=='hidden'){var value=element.value;var n=element.name||"";}else if(element.getAttribute('type')=='radio'){if(element.checked==true){var value=element.value;var n=element.name||"";}else{return;}}else{if(element.tag){var jsObject=$(element.id);}else{var jsObject=c.getUICParent(element.parentNode,null,true);}
var domObject=$d(jsObject);if(jsObject._datePicker)jsObject=jsObject._datePicker;if("textfield|textarea|datepicker|radio|checkbox|autocomplete|select".indexOf(domObject.tag.toLowerCase())!=-1){switch(domObject.tag){case'Radio':var n=(jsObject.getRadios()[0]).getInputName();break;case'DatePicker':var n=(jsObject.getTextField()).getInputName();break;case'CheckBox':if(jsObject.isCheck()){var n=jsObject.getInputName();var value=jsObject.getValue();}else{return;}
break;case'Button':return;break;case'AutoComplete':var n=jsObject.getInputName();var value=jsObject.getCode();break;default:var n=jsObject.getInputName();break;}}else{var n=element.name;}}
var index="";try{index=n.match(/^([^_]+)(_.+)$/)[2];n=n.match(/^([^_]+)(_.+)$/)[1];}catch(e){}
var convertedName=n;if(oSelf.c){converted=(oSelf.c._els)?oSelf.c._prefix+oSelf.c._els[n]:oSelf.c[n];if(converted!="undefined"&&converted!=oSelf.c._prefix+"undefined"){convertedName=converted;}}
if(element.tag){var value=value==null?$(element.id).getValue():value;}else{if(element.getAttribute('type')=='radio'&&element.checked!=true){return;}
var value=value==null?element.value:value;}
if(!oSelf.tmpp.hasValue(n+index)){oSelf.tmpp[oSelf.tmpp.length]=n+index;if(typeof convertedName=="undefined"&&typeof(value)=="undefined")return;oSelf.p[oSelf.p.length]={cname:convertedName+index,value:encodeURIComponent(value)};}});}},_isToSkip:function(name){return this.s.join('|').indexOf(name)!=-1;},toQueryParams:function(skipElements,o){if(skipElements){c.extend(this.s,skipElements);}
var finalQuery=[];if(o==undefined){this._getParams();util.dom.each(this.p,function(el){finalQuery[finalQuery.length]=el.cname+'='+el.value;});}
else{for(var i=0;i<o.length;i++)
for(var j in o[i])
if(!this.s.hasValue(j))
finalQuery[finalQuery.length]=j+'='+escape(o[i][j]);}
return finalQuery.join('&');}}
c.loader.register('util.dom');util.key=function(){this.ENTER=13;this.TAB=9;this.UP=38;this.DOWN=40;this.LEFT=37;this.RIGHT=39;this.SPACE=32;this.SHIFT=16;this.CTRL=17;this.CONTROL=17;this.ALT=18;this.ESC=27;this.F1=112;this.F2=113;this.F3=114;this.F4=115;this.F5=116;this.F6=117;this.F7=118;this.F8=119;this.F9=120;this.F10=121;this.F11=122;this.F12=123;this.DEL=46;this.DELETE=46;this.BACKSPACE=8;this.INSERT=45;this.HOME=36;this.END=35;this.PAGE_UP=33;this.PAGE_DOWN=34;this.NUM_LOCK=144;this.NUMPAD0=96;this.NUMPAD1=97;this.NUMPAD2=98;this.NUMPAD3=99;this.NUMPAD4=100;this.NUMPAD5=101;this.NUMPAD6=102;this.NUMPAD7=103;this.NUMPAD8=104;this.NUMPAD9=105;this.NUMPAD_DIVIDE=111;this.NUMPAD_MULTIPLY=106;this.NUMPAD_MINUS=109;this.NUMPAD_PLUS=107;};util.keyCode=new util.key();util.key.currentFocus=[];util.key.getFocus=function(callback,obj,keycode){util.key.currentFocus.push({callback:callback,obj:obj,key:keycode});}
util.key.releaseFocus=function(callBack){var act=util.key.currentFocus;for(var i=act.length-1;i>-1;i--){if(act[i]!=undefined&&act[i].callback==callBack)
delete act[i];}
if(util.key.helpDisabled){document.onhelp=null;window.onhelp=null;}}
util.key._doOnkeyPress=function(e){var act=util.key.currentFocus;var evt=e==null?window.event:e;for(var i=act.length-1;i>-1;i--){if(act[i]!=undefined&&(evt.keyCode==act[i].key||act[i].key==undefined)){c.log("[util.key] Key press dispatched "+act[i].callback+" ("+evt.keyCode+")");try{var ret=c.callBack(act[i].callback,act[i].obj,true,evt);if(!ret){return ret;}}catch(e){c.error("[util.key] Keypress Callback failed with: ",evt);}}}}
util.key.cancelKeyStroke=function(evt,keycodes){var evt=(evt||window.event);var key=(evt.keyCode||evt.charCode||evt.which||0);var keyToStop=[];if(keycodes!=null&&keycodes.length>0){keyToStop=keycodes;}else{keyToStop=[util.keyCode.BACKSPACE,util.keyCode.ENTER,util.keyCode.TAB];}
var flag=false;var kc,alt,ctrl,shift,meta;var ind=0;while(!flag&&ind<keyToStop.length){kc=keyToStop[ind]
if(kc.key!=null){alt=kc.alt==null?false:kc.alt;ctrl=kc.ctrl==null?false:kc.ctrl;shift=kc.shift==null?false:kc.shift;flag=(kc.key==key&&alt==evt.altKey&&ctrl==evt.ctrlKey&&shift==evt.shiftKey);}else{flag=(kc==key)}
if(c.browser.isIE&&keyToStop[ind]==util.keyCode.F1){util.key.helpDisabled=true;document.onhelp=new Function("return false;");window.onhelp=new Function("return false;");}
ind++;}
if(flag){if(evt.preventDefault)
evt.preventDefault();if(evt.stopPropagation)
evt.stopPropagation();if(c.browser.isIE){evt.keyCode=0;evt.returnValue=false;evt.cancelBubble=true;}}
return!flag;}
YAHOO.util.Event.addListener(document,"keydown",util.key._doOnkeyPress);c.loader.register('util.key');util.mouse={};util.mouse.registerElement=function(element,cbClick,scopeClick,cbDblClick,scopeDblClick){element.dcTime=250;element.dcDelay=250;element.dcAt=0;element.savEvent=null;element.savEvtTime=0;element.savTO=null;element.cbClick=[];element.cbClick.push(cbClick);element.scopeClick=[]
element.scopeClick.push(scopeClick);element.cbDblClick=[];element.cbDblClick.push(cbDblClick);element.scopeDblClick=[];element.scopeDblClick.push(scopeDblClick);element.hadDoubleClick=function(){var d=new Date();var now=d.getTime();if((now-this.dcAt)<this.dcDelay){return true;}
return false;}
element.handleWisely=function(which){which=which.type;switch(which){case"click":if(this.hadDoubleClick())return false;this.savEvent=which;d=new Date();this.savEvtTime=d.getTime();this.savTO=setTimeout(this.doClick.bind(this),this.dcTime);break;case"dblclick":this.doDoubleClick();break;default:}}
element.doClick=function(){if(this.savEvtTime-this.dcAt<=0){return false;}
for(var i=0,j=this.cbClick.length;i<j;i++)
this.cbClick[i].bind(this.scopeClick[i])();}
element.doDoubleClick=function(){var d=new Date();this.dcAt=d.getTime();if(this.savTO!=null){clearTimeout(this.savTO);savTO=null;}
for(var i=0,j=this.cbDblClick.length;i<j;i++)
this.cbDblClick[i].bind(this.scopeDblClick[i])();}
if('getInput'in element){YAHOO.util.Event.addListener(element.getInput(),'click',element.handleWisely,element,true);YAHOO.util.Event.addListener(element.getInput(),'dblclick',element.handleWisely,element,true);}else{YAHOO.util.Event.addListener(element,'click',element.handleWisely,element,true);YAHOO.util.Event.addListener(element,'dblclick',element.handleWisely,element,true);}};util.mouse.unRegisterElement=function(element){if('getInput'in element){YAHOO.util.Event.removeListener(element.getInput(),'click',element.handleWisely);YAHOO.util.Event.removeListener(element.getInput(),'dblclick',element.handleWisely);}else{YAHOO.util.Event.removeListener(element,'click',element.handleWisely);YAHOO.util.Event.removeListener(element,'dblclick',element.handleWisely);}
element.dcTime=null;element.dcDelay=null;element.dcAt=null;element.savEvent=null;element.savEvtTime=null;element.savTO=null;element.cbClick=null;element.scopeClick=null;element.cbDblClick=null;element.scopeDblClick=null;element.hadDoubleClick=null;element.handleWisely=null;element.doClick=null;element.doDoubleClick=null;}
util.mouse.addEvent=function(element,type,callback,scope){if(!('dcAt'in element)){return;}
if(type==='click'){element.cbClick.push(callback);element.scopeClick.push(scope);}else
if(type=='dblclick'){element.cbDblClick.push(callback);element.scopeDblClick.push(scope);}}
c.loader.register('util.mouse');