if(typeof m=="undefined"){m={};}if(typeof c=="undefined"){c={};}c.getRef=function(path,target){var parts=path.split(".");if(!target){target=window;}for(var index=0,length=parts.length,part;index<length;index++){part=parts[index];if(part in target){target=target[part];}else{target=null;break;}}return target;};m.arialoader={$name:"$arialoader",$apf:"1ad2c569a811e42ea67a1b3948087c8",$aria_uic:"35d40413f444249fd22e26034863cd3",$aria:"8c808e481095b9301835afe92c737a68",$ariaaffinity:"3d88b3d672abcf3b74bc96ea85f30bb",$ariacarp:"1652c312283df569c469ef189716466",$ariahcs:"a1b5e627eb7cc5a522bba5dcb4931aa1",$arialayoutssa:"e2a018d64dc84506db64cfd3935fb",$arialoader:"76498978888a55b2879d8d921fece74",$ariameb:"ea10e1ca676c96afab3629f362cc1a64",$ariangp:"fe561297724b7c7aee8d8e6a8922dc1",$ariaprofiles:"965ac84b5917d7bc1c87ece1281147",$ariasellweb:"86b4144c7cc1b15528cd675baf99692",$ariaukrail:"3a7b71a04993ac575f7073206732f5",$loaderpattern:"48eabbeb5146fc46dd8b29853f1b5eb",$loadManager:"25a6866638c48f8efdb21343615236a",$uic:"a0b71d3e5f442b78b5f493889da1cd1",$userprofile:"30118215c7e0ba2f8fe9fce3683c5131",$yahoo:"b97bf18c3fe5ed414bb9bfe88ba2c83",$yuilayout:"7757edcc7dc62234dd95eec9ef3ad8e",aria:{$APFActionQueue:"6856d71669bf9d5bab7a754d5fd0c96",$AriaTemplatesBridge:"eaaaa41b9853837d1c74d7fce853d512",$AriaTemplatesPopupBridge:"77cdc5f7747de918a868885d6db9be5",$EventCommunicationBus:"1c910c15cafd763ad3b57573649167",$Keyboard:"6af893f164df967edb9eae699412bf2b",$MultiSessionAPFActionQueue:"40f5841ad898b7b88fc820d38d2d9ad",$ServerSideAccess:"ef68ac54396e2341130649c0b0b4da",$Shell:"fe863c38d79f554ae53f177d36ffb36d",$test:"f36a5f501fcdf287f374b6e6cfae25c",$UserProfile:"23b7edba3763acc9836b82cea5dd1122",lang:{$JsObject:"2d34d8e42a9eee6d2c81825b939e5eb0",$Xml:"bc85fbba82a5a62ef233dcd046266090"},layouts:{$AriaTemplatesAwareGenericLayout:"f71bb9c1f96d704a48d743643ce28c30",$BorderLayout:"b28a3dc96210b191957c6aa44b5ce67",$CardLayout:"f2dd8e5e79e8597872fff814039b31",$GenericLayout:"1c322e1578d6df5435931f72e955a15",$HtmlAriaTemplatesLayout:"6cb8d145c23baa1c52897526a5597a8",$HtmlLayout:"cb3a4e3b4dbef819cf3cdb7a6dce8ad3",$Manager:"3654b4fe18cc56a752e9c8c1e8a8fbc2",$PortalLayout:"1eca34ae98d0ce41d35218cd73cd8a5a",$SimpleBorderLayout:"c3b9daf8a373ae401743cdc9e1dc3d57"},responseHandlers:{$AriaDebugHandler:"31f976659cae675f56e9a8d4b74679d",$AriaErrorHandler:"64d7a6e1335095ec22678b7cea8361",$AriaEventHandler:"4880dc269835657f678a4d452e25",$AriaTemplatesInitHandler:"ab871d34a1f5264bb3ef4b6517d17e",$MessagesHandler:"1dbc9161e1761d42dd7abe1e095712d"},ssa:{$CarPlus:"b51dcff1116b66c3a0a52197b9846a1b",$Cryptic:"1da5afc57a6dbfa237a5d5c69953fcd5",$Hotel:"84cecf65e4654c22fc7369f488bfeb2",$PushProcessor:"df1a768ccb403577559c17d96c58c49",$ShoppingDossier:"36926f27211461d5e830106b9ae35db"},store:{$Cookie:"1dcf7e99a5cf53c595e2af3daabb2d",$Generic:"10ab2c6561ca46a4a23c5ba0f27040ec",$MixedCollection:"77e3d58e41da1fe9c6b4e114975891d",$templateStore:"f2fae2bcaf4d24cd84e8e2d369a5fe6a"},test:{$DriverBridge:"3b809686298418089f7fecb74715a1b"},ui:{$ATModule:"5e86af2645aa82ce34b410e792a85dbe",$Module:"35a60f577a5ec3f417aa7d76c3f9e9",$Panel:"b2634584d84bb8fd11b9a7ca66d475",$Panel_v2:"b443cf716416a8b868e8d807f5f541d",$Section:"8d2bc448d7d79a9aa11a97d8848ad4ab",$Viewset:"665224d96c3999b8682eefc7695d4c3"}},gfx:{$canvaschartpainter:"dc4432a0c52e62d446b55c7f97528ee9",$chart:"19f417b2bf3698ee1ef35757162ea234",$excanvas:"af19507380cac5a811a2d6b479b2c9dd",$flashcharts:"283a2bfd41da9ea57cea461a63cf4",$iecanvas:"f1a24041186e3a1ca6ed8366a944b59b"},uic:{$Accordion:"a4e90138a98bdebe9822ca7d91e8b6c",$AutoComplete:"31d6319371a5fa7a3a7b59baf7101c43",$Behavior:"2441dc259c26e73832b3c245e72db6cf",$Button:"6912d0e71fe418aee5f383937934a1",$Calculator:"e89490846497824c25bffb0cb606e58",$Calendar:"e89162d5688f16b357f3faff365f9bd",$Canvas:"eeb5977056264ba7ba28ff791d85bbcc",$CardLayout:"87dcf2e44fafef7bde9d7a9c064e964",$Chart:"bd11e77720a0a2f63f14038a68f23db",$Check:"2c2492a17670881f1d8167bca6de78",$CheckBox:"333fd7ae616493cc4896b6cdd7980fe",$ColorPicker:"478d4cf8c19860ffa7b9fbc2ad22a75",$ContextMenu:"a9d2a33a6a2f7256d0a05d8482f4f2",$Datagrid:"a8205da9ec3582219edb8ef72e01e15",$DataTable:"15cfcd39d18555a82fa4cafa73a0bc2b",$DatePicker:"909e4f6f45c4c462f02347d56b2a5159",$Dialog:"608a4f2f3be15aea1187aeb31e7793",$DomElementWrapper:"6063f054f962ea24c9819a5c9d333a0",$Errors:"d9f19a7fdb767d11b56a4a360de886a",$Expand:"8c4b7082390abfa17187d3ca5b9022",$Form:"3e2af44fd5e39cd10278abd654cc3e",$Gauge:"5da1eec1df2c6318d92524cde6c9a0c9",$GoogleMap:"369976e6eadaf5893266c669fc35b",$GroupBox:"dab84778121975777590b99513a2585a",$MarkerGroup:"27a73b62fa931eec26bf49206bc1d012",$MenuBar:"cd2530dfd2783915a012fc5163cf53e8",$MicrosoftMap:"d7b5eff668c6e47d897219fa49953d7f",$MultiMap:"301246c56196aabdd899cf95e54a3ed4",$MultiSelect:"587fa938ea94378f38e05ce93d6dd8e8",$MultiSelect_v2:"5bcc2dc1a4fe801d62214ca398db730",$ProgressBar:"ef3a2f5f8282a10d0c8710389c98c8",$Radio:"d05049700375f8869c91fba3087349b",$Rss:"8e6b31651f3d3a235ec469b7d4aac3",$SeatMap:"68f028bdc317d2bddda687adc0a5d823",$Select:"4b9b168c976920285d8a2ec8f4e720",$Slider:"c29a155523729d12a205b23744c7a66",$SlideShow:"e93381e04636d43e5127ba7d9fb456c6",$Splitter:"f4951873e29387e318578a9816825",$TabBar:"241241db5fcb53e4933a944dc54fec7",$Table:"f53020f713ad5fc4f644be8d5e60d059",$TableCore:"e495e7ae1d9c1261abe2d43aa49f2822",$TaskBar:"2edc61ddfe95cf7f868c4c93754491b",$TaskFile:"596476ee7f1db279fe82acfc81ac8c3",$TextArea:"5a462ba488b31ce8c7dfd91dbda67ed",$TextField:"6f60184ada6e634b12c2b281bd189c9",$ToolBar:"90bf4933714c7e28388bc62aa1dc868",$Tooltip:"49b7793ddb87ed79d0a7570ceceb13",$TreeView:"1924db1db88bd56f633681fcbcccfc1",$uicInput:"e1b16b5732820cf42ae23d18fda6d1a",$uicObject:"196ec7a4f6796822976686f5a10d926",dialog:{$AriaTemplatesDialog:"eccefda5d3ef4754f7ddc15655ff034",$BackwardDialog:"06649e1515e4d7dde2eb59adb9ab",$DialogManager:"b8296fb294426415474cdde0e236264",$SimpleDialog:"ece6571f7d4f8f81e51523236cdcd22",alert:{$GenericAlert:"a8bd8b93e57b65dbcd4efbf20c7e8c1"}},ext:{$ClusterMarker:"dff4adffd22653680d21496cde2898",$ECB_apftaskmgr_plugin:"76cdc73ea42bb1ad1939ce5955b9e2ea",$FormSaver:"cd6e2ee8a2bd4a77c58efb1e26dfc62",$Help:"6fe9f06e3115ad397b4b9cceb5d722e",$markermanager:"da367aaa762f2933a86a2be53061118"},map:{$marker:"e8fca670a25c35ef4e9fff6f3f3b1b6"},parser:{$XHRParser:"9a5736cd848c8bf1bcf7d162e7b0ed86",$XHRParser_AIR:"d26a7c425cdbc9d92a521f92db1239e",$XHRParser_AIRRAIL:"b51cb43f6976cc4e6cc68513fd3ce87a",$XHRParser_AIR_COUNTRY:"f4138c3df54f87f39aded4a8b22d015",$XHRParser_CITY:"7baefcccfb81b14ab8ac5d6c669f2eca",$XHRParser_GMap:"bb99d57779724d95d8ea9586c3ca81b7",$XHRParser_HOTEL:"4e7fdf4d6a7b21b092421dbff93c1f4a",$XHRParser_MMap:"12cd81c9b95a9064d85eebd456baf70",$XHRParser_POR:"bcf1697ab28fa95819cbe718c17cfe",$XHRParser_POR_Google_Webservice:"36cdda5ff6e4a89a26902650e8725284",$XHRParser_POR_Multimap:"5664fa57a314f25e342dabc51a3126e4",$XHRParser_POR_VE:"b4231196e385a9a81db2390df48f98e",$XHRParser_POR_VE_Webservice:"59a4eb3d7e8a47dc278460a8becc3479",$XHRParser_RAIL:"fe453a67fc5bc8cd4a061179a797ce2",$XHRParser_UKRAIL:"2efef5494728522ab178358708a4af4",$XHRParser_VE:"942c214f9adf281e7ebc8e57fabd8",$XHRParser_VE_Webservice:"2afe91add57e03c63e6cf18c2799570"},table:{$AbstractSelectionModel:"5c14a5484a175fe9932b387359a3a9ca",$CellNavigationModel:"9411da5332c4e97c81cb3256fe4480d9",$CellSelectionModel:"e88ffccc4c76ac1bf68b87d9be9c436",$DeferredTable:"f288d2767dd7c10d8193af68ea7f1c7",$RowSelectionModel:"ae42bdb11897bca911b0a2ee88b8cb8e",$TableCollection:"9d705d72596b5585de835b4862a6e820",$TableFilter:"546dcb25cab459e75defb2cd0393a86",$TableStore:"cbf18a6bfd7d4e84f89b40da6b64dfcc",$TableView:"fdb81349b1bfdcda5716e5784c53286d"},templates:{MultiSelect_v2:{$main:"54839c1d2c9d910f2b0d492cefc2c66"},seatmap:{$horizontalTemplate:"2a7f2f278cf9ed3bbfbdd6e4f1d23581",$verticalTemplate:"32e9b4562b51e12af0963c595924720"}},validator:{$ALPHANUMValidator:"afe511f0408e4f4f43fd231dfae056",$ALPHAValidator:"fa28a7e4c5aec4887d1e6c1cf07910f5",$ALPHA_INTERNATIONALValidator:"8e450335ca4e5a4fc73b3097306477",$CCValidator:"922a15916dc9c48c5cfd10659172673f",$DATEValidator:"7dc4eed66118bd03876d56131ac7ef0",$EMAILValidator:"f2d8be2b6574be8cebee9a3dfd6cd9",$GenericValidator:"138b046961070d050e024d5967bd56b",$GREATERTHANValidator:"adfb3c3b7dba60739328f36aa4512b4",$LESSTHANValidator:"2b89f6c897f20aa7ea43c12153854b0",$MULTIPLE_EMAILSValidator:"a41bd168a2656d65bbc14ab64f7ba66",$NUMValidator:"3ecdf266d98114168f345b85d38cc720",$PHONEValidator:"64a25ed84c8b5e7c1d4a13716859780",$REGEXPValidator:"bb1784678d6256f19df417c69a8adf6",$REQValidator:"d6acc06bedd86050e7ca80fab62a4b5",$STRINGValidator:"395649a54bc1b242d1ee339997dc82",$ValidatorFactory:"eb1cd5f19eda27d8a62fa894c37e10fb"}},util:{$access:"d3859a6c7e730a366a65c7d2382a43",$Array:"9b178465c5c492fa2483ec7cd9de1",$Base64:"dfee862a403c36cb8579fb68dadd9",$Browser:"c0fba527c3847dddafa4dfc9ffbc18",$date:"e71a51c563ed5dcee3f735eae956a695",$dateFormat:"33d52fded09b87fcdcfe7b77269b7239",$dom:"14d3d148d19d794f78609c0972f577a",$event:"a035b574a18252506dacb7d13c0de3b",$Function:"b6c8a219d5bc62d242c0f3854ae2b2",$HistoryManager:"aa8df3cb33f7c1ffd23bf0d8bc38476c",$I18n:"ddc6e2f7c28d9a49e8a56d96299788a",$json:"ba29c31cd2d5ab35ca3d8f6dcd34989",$JSTEngine:"6d414689d93770bcc4cd4ad9919c18",$key:"cfe98e32f4d8491a17b9722238a64e",$lang:"fa3cc74f367e64a5192a37af2f4c2af2",$LoaderOverlay:"e22fc1cb7c532630b8c679e991d2eda6",$Log:"ccabba9b68c7126a654856905785e4",$Memoize:"e1ef95297fd5951448a197a78ec2654",$monitoring:"962bb8464f7e9cc7aeea66fde28f5c84",$mouse:"497b421b8bae2f964530e2c7a4c28cf6",$Object:"13cad5c9a59af84941ad74e07425e73",$peppy:"afaa2e3d639bac2daa6ad78dd49886",$PollingUtil:"66189298fae4429af9a5370382bff",$Section:"779f1a7c5cea92068dba8798d53e69",$selectorEngine:"856f101344e8a164c782f0392e60c7f5",$Shortcut:"5aaa22c9e6ab6a93e3fb1fec81b367b9",$simpleDateFormat:"dbb760daae8b91a1c7aa2eaf46a1caa",$sizzle:"85846ec2b1681352e72b3f19cce3f68",$Skin:"7e77a1aa7ae3a5e0b43819e2856326",$String:"d16784af13fc4257b7aa56a59baa18",$style:"a7266d712a86c249afa8ac1d2f7ec5b1",$type:"7522ad882a9ea132e9f19265ed1d1f5",$url:"9e42845c9a237d71ac4bb624dcbd2c1f",$Util:"894c18de452f5cf3d25faefcae51e96d",$UtilCore:"a06ffde88bf34290fb60306cb50587",$xml2json:"ac4a40b5c250e83ae7f6eebcce1668f0",$XMLResponse:"20263fb418a76097629b549cb5499",$xpath:"5ead3d66b13bdb8bb690cbed1e23502d",debug:{$Console:"b492e082b0336f434a14de3ee91d1"},dom:{$Window:"10a7b78933fbf91fb3194cd1991359"},log:{$CustomLogger:"d28fb044e2397b232fcbb4a072645e2f",$DefaultAppender:"2bf05af220812ee446f5bd66e74af66",$Logger:"42e1e5dad404d41ef66b526bcd126d",$WindowAppender:"4ca9e31ae538dec5cb5a55ac57bc513"},monitoring:{$Helper:"4c565c63804cef1fd1161c937c8cf2",$LeakWatcher:"f44c9cd1c97499f4f06553fd4ad713e",$Section:"bca16021f6dad2a773284eaea7f27015"},nav:{$geo:"398f83285ca1a2cace6f84e284eabcdb",$global:"187c61f3612db93892851b47e0a44985",$main:"b12928c7f0973924bd5c99c74b48d4f"},section:{$SectionObject:"608bd871632fd6a4bd8a5b0a780db5"},style:{$emptyJSforMap:"d41d8cd98f0b24e980998ecf8427e"}},yui:{$animation:"866275c59d41d03a8e75d7d49f5b4598",$autocomplete:"12b15d987ca8247a5c8c731fe8aca0",$calendar:"c7de3946b21e7af13b4756104f1dd3ea",$color:"f19d755996caa27d168e614bc87db7c",$columnset:"36752f552a356fee69798aefa3e270",$connection:"fef3243becd9ac2123f0cc58995489",$container:"89265eafb971d46afd36cba94ff3f6f",$container_core:"da282323733ff02138d2d6c9abaee111",$datasource_beta:"42d356533ce1787479867eecf1165e83",$datatable_beta:"7cdf7749675306f603041fbe84a52fa",$dom:"c0c2e5d4a270448cc145516229651af8",$dragdrop:"1431c1eac5664cc6a3817233e9adf036",$element_beta:"b59c2d41be9672ba89d9184ed7b04952",$event:"d997abe8be99396bb04f36e48b0cd21",$history:"499089b18d9de29f64cfe4975a13444",$key:"369e656e748e5aa62a76071c8acbbf4",$logger:"3f2d7b273c9fafa5c48ed53fecdf15c",$menu:"fd4ad07be9bb2f2d1694762c4d543733",$slider:"7e672b48d4aac0f9d3cf4cc3426cc6a2",$tabview:"3fe516978e12cfe82105e2573e87a7",$treeview:"90d4bb2248472bc75c07db17cae8024",$utilities:"431651ad5344eda31b4db4ec23e1aa",$yahoo_dom_event:"9ee3b2504e88faa4cea798d8f55669c0",$yahoo:"6774b82185e4f23e1cfe1ea3e863104a",$yui_ext_core:"e84725d0f41dd5ca9650624594c88c",$yui_ext_date:"f1abbdd97d67ea63f537bdfcc146dc",$yui_ext_dialog:"df53fea8e4746cfd57679438638f4d5",$yui_ext:"5a299939cba0eed6313ab15a5cf439e"}};
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="["+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";}if(util.log){util.log.getLogger("c._tracker")[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]=[];}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]=[];}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.util.dateFormat");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 : "+util.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+=util.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+=util.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 > "+util.dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"\n";dateDiff.setTime(renderTimeSpent);totalTime+=renderTimeSpent;result+="   render > "+util.dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="\n";}dateDiff.setTime(totalTime);result+="Total time : "+util.dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"\n";}}}return result;};c._tracker.toHtml=function(){c.require("util.dateFormat");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">'+util.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+=util.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+=util.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 : "+util.dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds()+"<br />";dateDiff.setTime(renderTimeSpent);result+="render : "+util.dateFormat.format(datePattern,dateDiff)+" "+dateDiff.getMilliseconds();result+="&nbsp;</td>";}result+="</tr>";}result+="</tbody></table>";}}return result;};map={};map.loader=function(){this._loadedFile={};this._loadedFile.push=function(fileName){this[fileName]=true;};this.loading={};this.queue=[];this.curReq=0;this.maxCur=3;this.activateQueue=false;this.onLoad=[];this.filebuffer={};this._dependencies={};this._lastReqId=-1;};map.loader.prototype.get=function(fileid,path){var json=fileid.replace(/\-/g,"_");var path=(path==undefined)?"":path;var ret=path+fileid.replace(/\./g,"/");var fPos=json.lastIndexOf(".");json=json.substring(0,fPos+1)+"$"+json.substring(fPos+1,json.length);if("arialoader" in m){var resource=c.getRef(json,m.arialoader);if(resource){if(typeof resource=="string"){ret+="-"+resource;ret+=".js";}else{if(typeof resource=="object"){ret=resource.path+"."+resource.type;}else{ret+=".js";}}}else{ret+=".js";}}else{ret+=".js";}return ret;};map.loader.prototype.createLoader=function(ident,path,type){var explode=ident.split("."),loader={},partial=loader,tmp;
for(var i=0,l=explode.length;i<l;i++){if(i==l-1){tmp={path:path,type:type,isLoading:false};partial["$"+explode[i]]=tmp;}else{tmp={};partial[explode[i]]=tmp;partial=tmp;}}this.add(loader);};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(""+syncCall.responseText+"\n\n//@ sourceURL="+src);}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(c.require){c.require.cache[fileid]=true;}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[real]=true;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){if(typeof file=="undefined"){return true;}if(this._loadedFile[file]){return true;}return false;};map.loader.prototype.isLoading=function(file){if(c.loader.loading[file]){return true;}m.log("[ISLOADING] Find "+file+" Not loading "+c.loader.loading[file]);return false;};map.loader.prototype.asyncload=function(toload,finalCallback,args,failsafe){var loadingIndex=++this._lastReqId;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{if(!!util&&!!util.log){util.log.getLogger("map.loader").warn("[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){delete this._dependencies[loadingIndex];delete this.filebuffer[loadingIndex];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){if(!!util&&!!util.log){util.log.getLogger("map.loader").warn("[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;var 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(util.Function.bind(fn,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],file,content;m.log("[LOADER] LoadingIndex "+arg.loadingIndex+" evaluation.");for(var fb=0,j=k.length;fb<j;fb++){if(k[fb]==undefined){continue;
}file=k[fb].f;content=k[fb].c;m.__trackerBefore("evaluate",file);eval(content+"\n\n//@ sourceURL="+file);this.register(file);m.__trackerAfter("evaluate",file);}delete this.filebuffer[arg.loadingIndex];delete this._dependencies[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(url,forceReload){if(!this.isLoaded(url)||forceReload){var head=document.getElementsByTagName("head")[0];var link=document.createElement("link");link.type="text/css";link.rel="stylesheet";link.media="all";link.href=url;head.appendChild(link);return link;}};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"});c.loader.register("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){c.require("util.selectorEngine");this.getElementsByClassName=this._getElementsByClassNameWithSelectorEngine;return this._getElementsByClassNameWithSelectorEngine(className,tag,root);},_getElementsByClassNameWithSelectorEngine:function(className,tag,root){return $$([tag,".",className].join(""),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"});c.loader.register("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=[];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;var l=this.subscribers.length,i;for(i=l-1;i>-1;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 subscribers=this.subscribers.slice(0);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 callbacks=[];for(i=0;i<len;i++){var subscriber=subscribers[i];if(subscriber){var scope=subscriber.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];}callbacks.push(util.Function.bindStrict(subscriber.fn,scope,param,subscriber.obj));}else{callbacks.push(util.Function.bindStrict(subscriber.fn,scope,this.type,args,subscriber.obj));}}}len=callbacks.length;for(var i=0;i<len;i++){ret=callbacks[i].call();if(false===ret){return false;}}delete callbacks;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,capture){if(!fn||!fn.call){return false;}capture=(capture===true);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,capture)&&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,capture);});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,capture);}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,capture){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);}capture=(capture===true);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],capture);}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){if(el){var elId=el.id;if(elId){if(listeners[elId]){return elId;}if(beingAdded){if(elId.indexOf("elgen")==-1){return elId;}}}}return"__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(EU.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){var elId=el.id;if(elId&&listeners[elId]&&elId.indexOf("elgen")==-1){var elListeners=[];for(var i=listeners[elId].length-1;i>=0;i--){var l=listeners[elId][i];if(!sType||l[1]===sType){elListeners.push({type:l[1],fn:l[2],cI:i,cId:elId});}}}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"){var 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()){var 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);}}}}}},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){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;EU._ready();}};}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement("p");EU._dri=setInterval(function(){try{n.doScroll("left");clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex){}},EU.POLL_INTERVAL);}}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"});c.loader.register("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"});c.loader.register("yui.connection");if(typeof Aria=="undefined"){Aria={};Aria.activateTestMode=function(){Aria.testMode=true;};}if(typeof a=="undefined"){if(typeof aria=="undefined"){aria={};}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]];}}};aria.extend=function(classPath,parentClassPath,optExtension){if(typeof(classPath)!="string"||typeof(parentClassPath)!="string"){util.log.getLogger("a").error("Extend Invalid arguments: class paths must be strings");return;}var subc=c.getRef(classPath),superc=c.getRef(parentClassPath);if(!subc||!superc){util.log.getLogger("a").error("Extend: Failed to extend "+classPath+" with "+parentClassPath+" SUBC :"+subc+" SUPERC : "+superc);}else{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];}}subc.prototype.classname=classPath;var superclasses=(!!superc.prototype.superclasses)?superc.prototype.superclasses.clone():[];superclasses.push(classPath);subc.prototype.superclasses=superclasses;}};aria.augment=function(receiver,supplier){if(typeof(receiver)!="string"||typeof(supplier)!="string"){util.log.getLogger("a").error("Augment Invalid arguments: class paths must be strings");return;}var r,s;try{r=c.getRef(receiver);s=c.getRef(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){util.log.getLogger("a").error("Augment: Failed to augment "+receiver+" with "+supplier,e);}};aria.__initCb=null;aria.setInitCallback=function(cb){if(this.__initCb){util.log.getLogger("a").fatal("Init callback can only be set once!");return;}else{if(!YAHOO){util.log.getLogger("a").fatal("Yahoo YUI is required for init callback support");return;}}this.__initCb=cb;YAHOO.util.Event.addListener(window,"load",a.__initCb);};aria.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;};aria.registerBehaviour=function(behaviourClassName,sectionId){c.__behaviours[sectionId]=behaviourClassName;};a=aria;}c.loader.register("aria");a.namespace("aria.lang");aria.lang.JsObject=function(){this._ecbEvents=[];this._logger=this.getLogger();};aria.lang.JsObject.prototype={superclass:window.aria.lang.JsObject,classname:"aria.lang.JsObject",superclasses:["aria.lang.JsObject"],init:function(){},toString:function(){return this.classname;},instanceOf:function(classname){if(this.superclasses.hasValue(classname)){return true;}return false;},getLogger:function(){if(!this._logger){this._logger=util.log.getLogger(this.classname);}return this._logger;},destroy:function(){if(this._ecbEvents&&this._ecbEvents.length!=0){for(var i=0;i<this._ecbEvents.length;i++){a.ecb.unsubscribe(this._ecbEvents[i].name,this._ecbEvents[i].func,this);}this._ecbEvents=[];}if(this._ecbScopedEvents&&this._ecbScopedEvents.length!=0){for(var j=0;
j<this._ecbScopedEvents.length;j++){a.ecb.unsubscribe_within_task(this._ecbScopedEvents[j].name,this,this._ecbScopedEvents[j].func,this);}this._ecbScopedEvents=[];}}};c.loader.register("aria.lang.JsObject");a.namespace("util.log");util.log.Logger=function(className){this._className=className;};util.log.Logger.prototype={debug:function(msg,o){this._log(util.log.LEVEL_DEBUG,msg,o);},info:function(msg,o){this._log(util.log.LEVEL_INFO,msg,o);},warn:function(msg,o){this._log(util.log.LEVEL_WARN,msg,o);},error:function(msg,e){this._log(util.log.LEVEL_ERROR,msg,e);},fatal:function(msg,e){this._log(util.log.LEVEL_FATAL,msg,e);},deprecated:function(deprecatedFunction,functionToUseInstead,deprecatedSinceVersion,willBeRemovedFromVersion,developerName){var badUsage=false;if(typeof(deprecatedFunction)!="string"||typeof(functionToUseInstead)!="string"||typeof(deprecatedSinceVersion)!="string"||typeof(willBeRemovedFromVersion)!="string"||typeof(developerName)!="string"){badUsage=true;}var msg=" DEPRECATED function: '"+deprecatedFunction+"'. Use '"+functionToUseInstead+"' instead.   ";msg+="Since version: "+deprecatedSinceVersion+".   ";msg+="Suppression planned for: "+willBeRemovedFromVersion+" (contact "+developerName+" for assistance).  ";var LOG_LEVEL;var re1=new RegExp("(\\d+)\\.(\\d+)","gi");var re2=new RegExp("(\\d+)\\.(\\d+)","gi");var m1=re1.exec(willBeRemovedFromVersion);var m2=re2.exec(uic.p.PACKAGE_VERSION.toString());if(((m1!=null)&&(m2!=null))&&((m1.length==3)&&(m2.length==3))){var substractMajor=parseInt(m1[1],10)-parseInt(m2[1],10);var substractMinor=parseInt(m1[2],10)-parseInt(m2[2],10);var deltaRelease=substractMajor*3+substractMinor;if(deltaRelease>=2){LOG_LEVEL=util.log.LEVEL_WARN;}else{if(deltaRelease==1){LOG_LEVEL=util.log.LEVEL_WARN;}else{LOG_LEVEL=util.log.LEVEL_WARN;msg="TO ARIA DEVELOPER: method '"+deprecatedFunction+"' is deprecated since "+deprecatedSinceVersion+" and should be removed.";}}}else{badUsage=true;}if(!badUsage){this._log(LOG_LEVEL,msg);}else{this._log(util.log.LEVEL_WARN,"Bad use of util.log.Logger#deprecated log function. Ex: this._logger.deprecated('deprecatedFunctionName', 'newFunctionName', '3.1', '4.0', 'V. Renaudin')");}},startGroup:function(title){var apps=util.log.getAppenders();for(var i=0;i<apps.length;i++){apps[i].startGroup(title);}},endGroup:function(){var apps=util.log.getAppenders();for(var i=0;i<apps.length;i++){apps[i].endGroup();}},_log:function(level,msg,objOrErr){if(this.isLogEnabled(level)){var apps=util.log.getAppenders();for(var i=0;i<apps.length;i++){switch(level){case util.log.LEVEL_DEBUG:apps[i].debug(this._className,msg,objOrErr);break;case util.log.LEVEL_INFO:apps[i].info(this._className,msg,objOrErr);break;case util.log.LEVEL_WARN:apps[i].warn(this._className,msg,objOrErr);break;case util.log.LEVEL_ERROR:apps[i].error(this._className,msg,objOrErr);break;case util.log.LEVEL_FATAL:apps[i].fatal(this._className,msg,objOrErr);break;default:util.log.getLogger("util.log").error("Invalid level passed for logging the message");break;}}}},isLogEnabled:function(level){var minimumLevel=util.log.getLoggingLevel(this._className);if(minimumLevel){return level>=minimumLevel;}else{return false;}}};c.loader.register("util.log.Logger");a.namespace("util.log");util.log.DefaultAppender=function(){};util.log.DefaultAppender.prototype=window.console?{_formatClassName:function(className){return"["+className+"]";},_inspectObject:window.console.dir?function(o){if(o&&typeof o=="object"){window.console.dir(o);}}:function(){},debug:window.console.debug?function(className,msg,o){window.console.debug(this._formatClassName(className)+msg);this._inspectObject(o);}:function(){},info:window.console.info?function(className,msg,o){window.console.info(this._formatClassName(className)+msg);this._inspectObject(o);}:function(){},warn:window.console.warn?function(className,msg,o){window.console.warn(this._formatClassName(className)+msg);this._inspectObject(o);}:function(){},error:window.console.error?function(className,msg,e){window.console.error(this._formatClassName(className)+msg+this._formatException(e));
}:function(){},fatal:window.console.error?function(className,msg,e){window.console.error("!FATAL "+this._formatClassName(className)+msg+this._formatException(e));}:function(){},startGroup:window.console.group?function(title){window.console.group(title);}:function(){},endGroup:window.console.group?function(){window.console.groupEnd();}:function(){}}:{debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){},startGroup:function(){},endGroup:function(){}};util.log.DefaultAppender.prototype._formatException=function(e,html){var str="";if(typeof e=="undefined"||e==null){return"";}var cr=html?"<br />":"\n";str="Exception";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;};c.loader.register("util.log.DefaultAppender");a.namespace("util.log");util.log.CustomLogger=function(name){this._logger=util.log.getLogger(name||"CustomLogger");this._level="info";};util.log.CustomLogger.prototype.setLevel=function(level){var valid=["debug","info","warn","error","fatal"];if(util.type.isString(level)){if(valid.indexOf(level)>-1){this._level=level;}}else{switch(level){case util.log.LEVEL_DEBUG:this._level="debug";break;case util.log.LEVEL_INFO:this._level="info";break;case util.log.LEVEL_WARN:this._level="warn";break;case util.log.LEVEL_ERROR:this._level="error";break;case util.log.LEVEL_FATAL:this._level="fatal";break;}}return this;};util.log.CustomLogger.prototype.getLevel=function(){return this._level;};util.log.CustomLogger.prototype.log=function(message){if(!util.type.isString(message)){if(util.type.isFunction(message)){message=message();}else{message=""+message;}}this._logger[this._level](message);return message;};c.loader.register("util.log.CustomLogger");a.namespace("util");(function(){var utilSingleton={LEVEL_DEBUG:1,LEVEL_INFO:2,LEVEL_WARN:3,LEVEL_ERROR:4,LEVEL_FATAL:5,_loggers:[],_loggingLevels:{},_appenders:[],setDefaultLevels:function(){this.resetLoggingLevels();this.setLoggingLevel("a.*",this.LEVEL_ERROR);this.setLoggingLevel("aria.*",this.LEVEL_ERROR);this.setLoggingLevel("c.*",this.LEVEL_ERROR);this.setLoggingLevel("uic.*",this.LEVEL_ERROR);this.setLoggingLevel("uic",this.LEVEL_WARN);this.setLoggingLevel("util.*",this.LEVEL_ERROR);this.setLoggingLevel("modules.*",this.LEVEL_ERROR);this.setLoggingLevel("viewsets.*",this.LEVEL_ERROR);this.setLoggingLevel("YAHOO.*",this.LEVEL_ERROR);this.setLoggingLevel("undefined.class",this.LEVEL_ERROR);},setDebugLevels:function(){this.resetLoggingLevels();this.setLoggingLevel("a.*",this.LEVEL_DEBUG);this.setLoggingLevel("aria.*",this.LEVEL_DEBUG);this.setLoggingLevel("c.*",this.LEVEL_DEBUG);this.setLoggingLevel("uic.*",this.LEVEL_DEBUG);this.setLoggingLevel("uic",this.LEVEL_DEBUG);this.setLoggingLevel("util.*",this.LEVEL_DEBUG);this.setLoggingLevel("modules.*",this.LEVEL_DEBUG);this.setLoggingLevel("viewsets.*",this.LEVEL_DEBUG);this.setLoggingLevel("YAHOO.*",this.LEVEL_DEBUG);this.setLoggingLevel("undefined.class",this.LEVEL_DEBUG);},setAPFDebugLevel:function(){this.setDefaultLevels();this.setLoggingLevel("a.ssa",this.LEVEL_INFO);this.setLoggingLevel("a.ssa.*",this.LEVEL_INFO);this.setLoggingLevel("aria.ssaHandlers.*",this.LEVEL_DEBUG);this.setLoggingLevel("a.ecb",this.LEVEL_INFO);this.setLoggingLevel("uic",this.LEVEL_DEBUG);this.setLoggingLevel("modules.*",this.LEVEL_DEBUG);this.setLoggingLevel("viewsets.*",this.LEVEL_DEBUG);},_init:function(){this.setDefaultLevels();this.addAppender(new util.log.DefaultAppender());if(typeof m!="undefined"){for(var i=0,k=m._log,j=k.length;i<j;i++){this.getLogger("c.loader").debug(k[i]);}for(var i=0,k=m._err,j=k.length;i<j;i++){this.getLogger("c.loader").error(k[i].m,k[i].e);}delete m._log;
delete m._err;m.log=function(msg){util.log.getLogger("c.loader").debug(msg);};m.err=function(msg,e){util.log.getLogger("c.loader").error(msg,e);};}c.log=function(msg){util.log.getLogger("undefined.class").debug(msg);};c.info=function(msg){util.log.getLogger("undefined.class").info(msg);};c.warn=function(msg){util.log.getLogger("undefined.class").warn(msg);};c.error=function(msg,e){util.log.getLogger("undefined.class").error(msg,e);};c.fatal=function(msg,e){util.log.getLogger("undefined.class").fatal(msg,e);};c.logger={};c.logger.log=c.log;c.logger.info=c.info;c.logger.warn=c.warn;c.logger.error=c.error;c.logger.fatal=c.fatal;c.logger.inspect=function(){util.log.getLogger("util.log").info("c.logger is deprecated, refer to c.log for more info.");};c.logger.unStack=function(){util.log.getLogger("util.log").info("c.logger is deprecated, refer to c.log for more info.");};c.logger.logGrpStart=function(title){util.log.getLogger("undefined.class").startGroup(title);};c.logger.logGrpStop=function(){util.log.getLogger("undefined.class").endGroup();};c.logger.dir=function(obj){util.log.getLogger("undefined.class").debug("c.logger is deprecated",obj);};},getLogger:function(className){if(!className){this.getLogger("util.log").error("Cannot get a logger instance without passing a className");return false;}if(!this._loggers[className]){this._loggers[className]=new util.log.Logger(className);}return this._loggers[className];},isValidLevel:function(level){return(level==util.log.LEVEL_DEBUG||level==util.log.LEVEL_INFO||level==util.log.LEVEL_WARN||level==util.log.LEVEL_ERROR||level==util.log.LEVEL_FATAL);},_logLevelCache:{},setLoggingLevel:function(className,level){if(!util.log.isValidLevel(level)){util.log.getLogger("util.log").error("Invalid level passed to setLoggingLevel");}else{util.log._loggingLevels[className]=level;util.log._logLevelCache={};}},resetLoggingLevels:function(){util.log._loggingLevels=[];util.log._logLevelCache={};},getLoggingLevel:function(className){if(className in this._logLevelCache){return this._logLevelCache[className];}var loggingLevel=util.log._loggingLevels[className];if(loggingLevel==null){var str=className;while(str=str.substring(0,str.lastIndexOf("."))){loggingLevel=util.log._loggingLevels[str+".*"];if(loggingLevel!=null){break;}}}if(loggingLevel==null){loggingLevel=false;}this._logLevelCache[className]=loggingLevel;return loggingLevel;},addAppender:function(appender){this._appenders.push(appender);},clearAppenders:function(){this._appenders=[];},getAppenders:function(){return this._appenders;}};if(!util.log){util.log={};}for(var attr in utilSingleton){if(utilSingleton.hasOwnProperty(attr)){util.log[attr]=utilSingleton[attr];}}})();util.log._init();c.loader.register("util.log");a.namespace("util");util.event=function(){this.hasCapturing=!!window.addEventListener;};util.event.prototype.addEventListener=function(el,stype,fn,obj,override,capture){var domEl=$d(el);if("mousewheel"==stype){if(c.browser.isIE){if(domEl==window){domEl=window.document;}YAHOO.util.Event.addListener(domEl,"mousewheel",fn,obj,override,capture);}else{if(c.browser.isOpera||c.browser.isSafari){YAHOO.util.Event.addListener(domEl,"mousewheel",fn,obj,override,capture);}else{YAHOO.util.Event.addListener(domEl,"DOMMouseScroll",fn,obj,override,capture);}}}else{if("load"==stype&&c.windowLoadEventFired){c.callBack(fn,obj,override);}else{if(("mouseleave"==stype||"mouseenter"==stype)&&!util.browser.isIE){YAHOO.util.Event.addListener(domEl,"mouseleave"==stype?"mouseout":"mouseover",util.event._wrapMouseMovements(stype,domEl,fn),obj,override);}else{if(typeof el=="object"&&"addEvent" in el){el.addEvent(stype,fn,obj,override,capture);}else{YAHOO.util.Event.addListener(domEl,stype,fn,obj,override,capture);}domEl=null;}}}};util.event.prototype.getMouseX=function(e){return YAHOO.util.Event.getPageX(e);};util.event.prototype.getMouseY=function(e){return YAHOO.util.Event.getPageY(e);};util.event.prototype.removeEventListener=function(el,stype,fn,capture){var domEl=$d(el);
if(c.isSet(el)){if(("mouseleave"==stype||"mouseenter"==stype)&&!util.browser.isIE){fn=this._popWrapMouseFn(stype,el,fn);stype=("mouseleave"===stype)?"mouseout":"mouseover";}if("mousewheel"==stype){if(c.browser.isIE){if(domEl==window){domEl=window.document;}YAHOO.util.Event.removeListener(domEl,"mousewheel",fn,capture);}else{if(c.browser.isOpera||c.browser.isSafari){YAHOO.util.Event.removeListener(domEl,"mousewheel",fn,capture);}else{YAHOO.util.Event.removeListener(domEl,"DOMMouseScroll",fn,capture);}}}else{if(typeof el=="object"&&"remEvent" in el){el.remEvent(stype,fn,capture);}else{YAHOO.util.Event.removeListener(domEl,stype,fn,capture);}domEl=null;}}else{util.log.getLogger("util.event").warn("Bad argument issue in util.event.removeEventListener function. You're trying to removeEvents on an not well defined HTMLElement (null or undefined).");}};util.event.prototype.stopEvent=function(evt){YAHOO.util.Event.stopEvent(evt);};util.event.prototype.makeEvent=function(name,target){return{type:name,target:target,currentTarget:target,originalTarget:target,bubbles:true,cancelable:true};};util.event.prototype.getTarget=function(e,name,returnUIC){var target=YAHOO.util.Event.getTarget(e);if(returnUIC){target=c.getUIC(target);}return target;};util.event.prototype.getASCIICode=function(keypressEvent){return(keypressEvent.keyCode||keypressEvent.charCode||keypressEvent.which||0);};util.event.prototype.isInsideInputWidget=function(event){var target=this.getTarget(event);var widget=util.Section.getUICInputById(target.id);return(widget&&util.lang.instanceOf(widget,"uic.uicInput"));};util.event.prototype._wrappedMouseFn={mouseenter:[],mouseleave:[]};util.event.prototype._popWrapMouseFn=function(stype,container,fn){if(!fn){this._wrappedMouseFn[stype]=[];return;}for(var i=0,all=this._wrappedMouseFn[stype]||[],len=all.length;i<len;i+=1){if(all[i].container===container&&all[i].original===fn){return all.splice(i,1)[0].wrap;}}return fn;};util.event.prototype._wrapMouseMovements=function(stype,container,fn){var wrap=function(event,object){if(util.event.isWithin(event.relatedTarget,container)===false){util.event.stopEvent(event);fn.call(this,event,object);}};this._wrappedMouseFn[stype].push({original:fn,container:container,wrap:wrap});return wrap;};util.event.prototype.isWithin=function(target,container){var parent=target;try{if(parent&&parent!==document&&!parent.parentNode){return;}while(parent&&parent!==container){parent=parent.parentNode;}if(parent!==container){return false;}}catch(e){}return true;};util.event.prototype._validDelegatedTypes=["click","dblclick","mousedown","mouseup","mouseover","mousemove","mouseout","keypress","keydown","select","change","submit","reset","focus","blur"];util.event.prototype.addDelegatedEventListener=function(el,expression,stype,fn,obj,override){var log=util.log.getLogger("util.event");if(!el||!expression||!stype||!expression){log.warn("addDelegatedEventListener: Missing a required parameter");return false;}if(!util.type.isFunction(fn)){log.warn("addDelegatedEventListener: fn must be a valid function");return false;}if(util.type.isString(el)){el=$(el);if(!el){log.warn("addDelegatedEventListener: el is not valid");return false;}}else{if(util.type.isUICObject(el)){el=el.getDom();}else{if(!util.type.isHTMLElement(el)){log.warn("addDelegatedEventListener: el is not valid");return;}}}c.require("util.selectorEngine");if(util.type.isString(stype)){stype=[stype];}else{if(!util.type.isArray(stype)){log.warn("addDelegatedEventListener: stype is not valid");return false;}}var selector=util.SelectorEngine.parseCSS(expression);if(selector===false){selector=expression;}var params={container:el,selector:selector,callback:fn,object:obj,override:override};var addedTypes=[];for(var i=0,l=stype.length;i<l;i++){if(util.event._storeDelegatedListener(stype[i],params)){addedTypes.push(stype[i]);}else{log.warn("addDelegatedEventListener: invalid stype "+stype[i]);}}return(addedTypes.length>0)?addedTypes:false;};util.event.prototype._hashDelegatedListeners={};
util.event.prototype._storeDelegatedListener=function(type,params){if(!util.event._validDelegatedTypes.contains(type)){return false;}var capture=false;if(type=="focus"){if(!this.hasCapturing){type="focusin";}else{capture=true;}}else{if(type=="blur"){if(!this.hasCapturing){type="focusout";}else{capture=true;}}}if(!util.event._hashDelegatedListeners[type]){util.event._hashDelegatedListeners[type]=[];}else{for(var i=0,l=util.event._hashDelegatedListeners[type].length;i<l;i++){if(params.container!=util.event._hashDelegatedListeners[type][i].params.container){continue;}if(params.selector!=util.event._hashDelegatedListeners[type][i].params.selector){continue;}if(params.callback!=util.event._hashDelegatedListeners[type][i].params.callback){continue;}util.log.getLogger("util.event").warn("addDelegatedEventListener: duplicate event listener");return false;}}if(type=="change"&&util.browser.isIE8OrLess){var wrFocus=function(e){util.event._pushValue(c.getTarget(e));};var wrBlurClick=function(e){var input=c.getTarget(e);var value=util.event._popValue(input);if(value!==undefined&&value!=input.value){util.event._manageDelegatedEvent(e,params);}};util.event._hashDelegatedListeners[type].push({wrFocus:wrFocus,wrBlurClick:wrBlurClick,params:params});util.event.addEventListener(params.container,"focusin",wrFocus,null,false,capture);util.event.addEventListener(params.container,"focusout",wrBlurClick,null,false,capture);util.event.addEventListener(params.container,"click",wrBlurClick,null,false,capture);}else{var wr=function(e){util.event._manageDelegatedEvent(e,params);};util.event._hashDelegatedListeners[type].push({wr:wr,params:params});util.event.addEventListener(params.container,type,wr,null,false,capture);}return true;};util.event.prototype._pushValue=function(input){if(input.value!==undefined){input.setAttribute("_originalValue",input.value);}};util.event.prototype._popValue=function(input){if(input.value!==undefined){var value=input.getAttribute("_originalValue");input.removeAttribute("_originalValue");return value;}return null;};util.event.prototype._manageDelegatedEvent=function(e,params){var log,target,delegatedTarget;log=util.log.getLogger("util.event");target=util.event.getTarget(e);if(!util.type.isString(params.selector)){if(util.SelectorEngine.match(target,params.selector)){delegatedTarget=target;}else{log.info("_manageDelegatedEven: simple selectot doesn't match the target");return false;}}else{params.matchingElements=$$(params.selector,params.container);if(params.matchingElements.length<=0){log.info("_manageDelegatedEven: expression "+params.selector+" doesn't match any valid element");return false;}delegatedTarget=util.event._getDelegatedTarget(target,params);}if(delegatedTarget!==false){util.event._fireDelegatedCallback(e,delegatedTarget,params);}return true;};util.event.prototype._getDelegatedTarget=function(evTarget,params){var target=evTarget;var matchFound=false;var fakeDelegation=(target===params.container);do{if(params.matchingElements.contains(target)){matchFound=true;break;}if(fakeDelegation){break;}target=target.parentNode;}while(target!==params.container&&target.parentNode);return(matchFound)?target:false;};util.event.prototype._fireDelegatedCallback=function(e,target,params){var scope=target;var cbParams=params.object;if(params.override){if(params.override===true){scope=params.object;}else{scope=params.override;}}var evt=e;if(e.type=="focusin"){evt=document.createEventObject(e);evt.type="focus";}else{if(e.type=="focusout"){evt=document.createEventObject(e);evt.type="blur";}}params.callback.call(scope,evt,target,cbParams);};util.event.prototype.remDelegatedEventListener=function(el,expression,stype,fn){var log=util.log.getLogger("util.event");if(!el||!util.type.isString(expression)){log.warn("remDelegatedEventListener: Missing a required parameter");return false;}if(util.type.isString(el)){el=$(el);if(!el){log.warn("remDelegatedEventListener: el is not valid");return false;}}else{if(util.type.isUICObject(el)){el=el.getDom();
}else{if(!util.type.isHTMLElement(el)){log.warn("remDelegatedEventListener: el is not valid");return;}}}if(util.type.isString(stype)){stype=[stype];}else{if(!util.type.isArray(stype)){log.warn("remDelegatedEventListener: stype is not valid");return false;}}var remCount=0;for(var i=0,l=stype.length;i<l;i++){var type=stype[i];if(!util.event._validDelegatedTypes.contains(type)){log.warn("remDelegatedEventListener: Event type not supported, "+type);continue;}var capture=false;if(type=="focus"){if(!this.hasCapturing){type="focusin";}else{capture=true;}}else{if(type=="blur"){if(!this.hasCapturing){type="focusout";}else{capture=true;}}}if(!util.event._hashDelegatedListeners[type]){log.info("remDelegatedEventListener: no listeners for "+type);continue;}else{for(var k=util.event._hashDelegatedListeners[type].length-1;k>=0;k-=1){if(el!=util.event._hashDelegatedListeners[type][k].params.container){continue;}if(expression!=util.event._hashDelegatedListeners[type][k].params.selector){continue;}if(util.type.isFunction(fn)){if(fn!=util.event._hashDelegatedListeners[type][k].params.callback){continue;}}if(type=="change"&&util.browser.isIE){var p=util.event._hashDelegatedListeners[type][k];util.event.removeEventListener(el,"focusin",p.wrFocus,capture);util.event.removeEventListener(el,"focusout",p.wrBlurClick,capture);util.event.removeEventListener(el,"click",p.wrBlurClick,capture);}else{util.event.removeEventListener(el,type,util.event._hashDelegatedListeners[type][k].wr,capture);}var rem=util.event._hashDelegatedListeners[type].splice(k,1);remCount+=rem.length;}}}return remCount;};util.event=new util.event();c.loader.register("util.event");if(typeof util=="undefined"){var util={};}if(typeof c=="undefined"){var c={};}util._logger=util.log.getLogger("util.Shortcut");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!=null&&window.pageYOffset!=null){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;if(util.date.isValid(secondDate)&&util.date.isValid(firstDate)){return Math.round((secondDate.getTime()-firstDate.getTime())/(one_day));}else{return null;}};util.calculateRelativeOffset=function(obj,attr,reference,stopAbsolute){var offset=util.calculateOffset(obj,attr,stopAbsolute);var parent=reference||obj.parentNode;if(parent!=null&&obj!=document.body){offset-=util.calculateOffset(parent,attr,stopAbsolute);}return offset;};util.calculateOffset=function(obj,attr,stopAbsolute){var objPositionCss;var borderAttr;var offset=0;var i=0;obj=$d(obj);var o=obj;if(obj.getBoundingClientRect&&!stopAbsolute){if(attr=="offsetLeft"){return obj.getBoundingClientRect().left+util.dom._getDocumentScrollLeft();}else{if(attr=="offsetTop"){return obj.getBoundingClientRect().top+util.dom._getDocumentScrollTop();}}}while(obj){if(stopAbsolute){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!=null&&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.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(){var 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.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.connect={asyncRequest:function(){YAHOO.util.Connect.asyncRequest.apply(YAHOO.util.Connect,arguments);}};util.Function={bind:function(method,obj,args){var bindArgs=null;if(typeof(obj)!="undefined"&&arguments.length>2){bindArgs=Array.prototype.slice.call(arguments,2);}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);};},bindStrict:function(method,obj){var bindArgs=null;if(typeof(obj)!="undefined"&&arguments.length>2){bindArgs=Array.prototype.slice.call(arguments,2);}return function(){var newArgs=[];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);};}};Function.prototype.bind=function(){Array.prototype.splice.call(arguments,0,0,this);return util.Function.bind.apply(util.Function,arguments);};Function.prototype.bindStrict=function(){Array.prototype.splice.call(arguments,0,0,this);return util.Function.bindStrict.apply(util.Function,arguments);};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+'"';}};if(typeof util.json=="undefined"){util.json={};}util.json._logger=util.log.getLogger("util.json");util.json.serialize=function(obj){return util.s.object(obj);};util.json.unserialize=function(str){try{var obj=null;eval("obj = "+str);return obj;}catch(e){this._logger.error("Can't parse json : ",e);}};util.json.clone=function(objectToClone){if(typeof(objectToClone)!="object"||objectToClone==null){return objectToClone;}var newInstance=objectToClone.constructor();for(var i in objectToClone){newInstance[i]=util.json.clone(objectToClone[i]);}return newInstance;};util.jsonSerialize=function(obj){util.json._logger.deprecated("util.jsonSerialize","util.json.serialize","3.1","4.1","V. Renaudin");return util.json.serialize(obj);};util.jsonUnSerialize=function(str){util.json._logger.deprecated("util.jsonUnSerialize","util.json.unserialize","3.1","4.1","V. Renaudin");return util.json.unserialize(str);};c.loader.register("util.json");if(typeof util.url=="undefined"){util.url={};}util.url._logger=util.log.getLogger("util.url");util.url.serializeParams=function(params){var str="",i;if(params){for(i in params){if(params.hasOwnProperty(i)){str=[str,util.url._serializeParameter(i,params[i])].join("");}}str=str.substring(0,str.length-1);}return str;};util.url._serializeParameter=function(key,value){var str="";if(util.type.isString(value)||util.type.isNumber(value)||util.type.isBoolean(value)){str=[str,key,"=",util.url._encodeQueryComponent(""+value),"&"].join("");}else{if(util.type.isArray(value)){for(var i=0;i<value.length;i++){str=[str,util.url._serializeParameter(key,value[i])].join("");}}}return str;};util.url._encodeQueryComponent=function(value){return value.replace(/&/g,"%26").replace(/;/g,"%3B").replace(/\//g,"%2F").replace(/\?/g,"%3F").replace(/:/g,"%3A").replace(/@/g,"%40").replace(/=/g,"%3D").replace(/\+/g,"%2B").replace(/,/g,"%2C").replace(/\$/g,"%24");
};util.url.checkMethod=function(method){if(method&&typeof method=="string"&&(method.toUpperCase()=="GET"||method.toUpperCase()=="POST")){return method.toUpperCase();}else{return false;}};util.url.changeJSessionId=function(url,jsessionid){var jsessionidKeyPosition=url.indexOf("jsessionid=",0);var paramsStartKeyPosition=url.indexOf("?",jsessionidKeyPosition);var urlBeforeJSessionId;if(paramsStartKeyPosition!=-1){if(jsessionidKeyPosition!=-1){urlBeforeJSessionId=url.substring(0,jsessionidKeyPosition+11);}else{urlBeforeJSessionId=url.substring(0,paramsStartKeyPosition)+";jsessionid=";}return urlBeforeJSessionId+jsessionid+url.substring(paramsStartKeyPosition);}else{if(jsessionidKeyPosition!=-1){urlBeforeJSessionId=url.substring(0,jsessionidKeyPosition+11);}else{urlBeforeJSessionId=url+";jsessionid=";}return urlBeforeJSessionId+jsessionid;}return url;};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{this._logger.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{this._logger.warn("Unable to extract APF action from url: "+requestUrl);return null;}};util.url.getUrlParams=function(decode){var url=arguments[1]||window.location.href,map={},indexOf=url.indexOf("?"),pair,name,params=(indexOf!==-1)?url.slice(indexOf+1).split("&"):[];for(var i=0,l=params.length;i<l;i++){pair=params[i].split("=");if(pair.length>=2&&!!pair[0]){name=pair[0];pair.splice(0,1);map[name]=(decode!==false)?util.lang.decodeURIComponent(pair.join("=")):pair.join("=");}}return map;};c.loader.register("util.url");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());amount=amount*1;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;},getCutOffDate:function(mindate,maxdate,today){if(!maxdate&&today){today=new Date(today);maxdate=util.date.add(today,"Y",20);}var cutOffDate=null;if(!mindate&&!maxdate){mindate=new Date("01/01/1950");maxdate=new Date("12/31/2049");}else{if(!mindate){mindate=util.date.add(util.date.add(new Date(maxdate),"Y",-100),"D",1);}else{if(!maxdate){maxdate=util.date.add(util.date.add(new Date(mindate),"Y",100),"D",-1);}}}mindate=new Date(mindate);maxdate=new Date(maxdate);if(mindate.getFullYear()>=2000&&maxdate.getFullYear()>=2000){return new Date("01/01/2000");}var maxDateAdjusted=util.date.add(util.date.add(maxdate,"Y",-100),"D",1);var cutOffDate=null;if(util.date.after(mindate,maxDateAdjusted)){cutOffDate=mindate;}else{cutOffDate=maxDateAdjusted;}var adjustedYear=1900+cutOffDate.getFullYear()%100;cutOffDate.setFullYear(adjustedYear);return cutOffDate;},YD2JD:function(txt){return new Date(txt);},stringToDate:function(txt){return new Date(txt);},JD2YD:function(date){return this._dateToString(date);},_dateToString:function(date){return(date.getMonth()+1)+"/"+date.getDate()+"/"+date.getFullYear();},sameDay:function(date1,date2){if(!(util.date.isValid(date1)&&util.date.isValid(date2))){return false;}return((date1.getDate()==date2.getDate())&&(date1.getMonth()==date2.getMonth())&&(date1.getYear()==date2.getYear()));},isValid:function(date){if(!(date&&date.getTime)){return false;}var time=date.getTime();return !isNaN(time);}};c.loader.register("util.date");if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};}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;};String.prototype.capitalizeAll=function(){var regexp=new RegExp(/[a-z0-9]+/gi);var str=this;var matches=this.match(regexp);for(var i=0;i<matches.length;i++){var match=matches[i];str=str.replace(match,match.toLowerCase().capitalize());}return str;};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;};String.prototype.endsWith=function(suffix){return this.indexOf(suffix,this.length-suffix.length)!==-1;};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(str){if(!arguments.callee.sRE){var specials=["/",".","*","+","?","|","(",")","[","]","{","}","\\"];arguments.callee.sRE=new RegExp("(\\"+specials.join("|\\")+")","g");}return str.replace(arguments.callee.sRE,"\\$1");}};c.loader.register("util.String");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;};if(!Array.prototype.contains){Array.prototype.contains=function(item){var from=Number(arguments[1])||0;
return this.indexOf(item,from)!=-1;};}Array.prototype.isEmpty=function(){for(var i in this){if(this.hasOwnProperty(i)){return false;}}return true;};Array.prototype.add=function(array){for(var i=0,j=array.length;i<j;i++){this.push(array[i]);}return this;};if(!Array.prototype.remove){Array.prototype.remove=function(value){var index=this.indexOf(value);if(index>-1){this.splice(index,1);}};}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.lastIndexOf){Array.prototype.lastIndexOf=function(elt){var len=this.length;var from=Number(arguments[1]);if(isNaN(from)){from=len-1;}else{from=(from<0)?Math.ceil(from):Math.floor(from);if(from<0){from+=len;}else{if(from>=len){from=len-1;}}}for(;from>-1;from--){if(from in this&&this[from]===elt){return from;}}return -1;};}if(!Array.prototype.clone){Array.prototype.clone=function(){return this.slice(0);};}if(!Array.prototype.difference){Array.prototype.difference=function(array){var res=[];for(var i=0,j=this.length;i<j;i++){if(!array.hasValue(this[i])){res.push(this[i]);}}return res;};}if(!Array.prototype.filter){Array.prototype.filter=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var res=new Array();var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){var val=this[i];if(fun.call(thisp,val,i,this)){res.push(val);}}}return res;};}if(!Array.prototype.include){Array.prototype.include=function(item){if(!this.hasValue(item)){this.push(item);}return this;};}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;};if(!Array.prototype.each){Array.prototype.each=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){fun.call(thisp,this[i],i,this);}}};}if(!Array.prototype.every){Array.prototype.every=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this&&!fun.call(thisp,this[i],i,this)){return false;}}return true;};}if(!Array.prototype.forEach){Array.prototype.forEach=Array.prototype.each;}if(!Array.prototype.map){Array.prototype.map=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var res=new Array(len);var thisp=arguments[1];for(var i=0;i<len;i++){res[i]=fun.call(thisp,this[i],i,this);}return res;};}if(!Array.prototype.merge){Array.prototype.merge=function(array){for(var i=0,l=array.length;i<l;i++){this.include(array[i]);}return this;};}if(!Array.prototype.some){Array.prototype.some=function(fun){var len=this.length;if(typeof fun!="function"){throw new TypeError();}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this&&fun.call(thisp,this[i],i,this)){return true;}}return false;};}if(!Array.prototype.compare){Array.prototype.compare=function(testArr){if(this.length!=testArr.length){return false;}for(var i=0;i<testArr.length;i++){if(this[i].compare){if(!this[i].compare(testArr[i])){return false;}}if(this[i]!==testArr[i]){return false;}}return true;};}util.array={each:function(items,fn,context){for(var i=0,len=items.length;i<len;i++){var item=items[i];fn.call(context||item,item,items,i);}},applyToEach:function(items,strFn){for(var i=0,len=items.length;i<len;i++){var item=items[i];var fn=item[strFn];if(fn){fn.call(item);}}},map:function(items,fn){return Array.prototype.map.call(items,fn);},stretch:function(array,size){var value=array[array.length-1];while(size--){array.push(value);}return array;}};c.loader.register("util.Array");
util.browser=function(){this.ua=navigator.userAgent.toLowerCase();this.isOpera=false;this.isOpera6=false;this.isOpera8=false;this.isOpera9=false;this.isChrome=false;this.isSafari=false;this.isIE=false;this.isIE9=false;this.isIE8=false;this.isIE7=false;this.isIE6=false;this.isGecko=false;this.isFirefox=false;this.isFirefox36OrAbove=false;this.isIE8OrLess=false;this.isNS=false;this.isWindows=false;this.isMac=false;this.properties={};this._init();};a.extend("util.browser","aria.lang.JsObject",{});util.browser.prototype._init=function(){this._detectBrowser();this._detectVersion();this._detectMajorVersion();this._detectEnvironment();this._setProperties();};util.browser.prototype._detectBrowser=function(){var ua=this.ua;if(ua.indexOf("msie")>-1){this.isIE=true;this.name="IE";if(ua.indexOf("msie 6")>-1){this.isIE6=true;}else{if(ua.indexOf("msie 7")>-1){this.isIE7=true;}else{if(ua.indexOf("msie 8")>-1){this.isIE8=true;}else{if(ua.indexOf("msie 9")>-1){this.isIE9=true;}}}}var elem=document.createElement("div");elem.innerHTML='<!--[if IE 7]><div class="ie7"></div><![endif]--><!--[if IE 8]><div class="ie8"></div><![endif]-->';if(elem.firstChild){if(elem.firstChild.className.substring(2)=="7"){this.isIE7=true;this.isIE8=false;}else{this.isIE7=false;this.isIE8=true;}}}else{if(ua.indexOf("opera")>-1){this.isOpera=true;this.name="Opera";if(ua.indexOf("opera 6")>-1){this.isOpera6=true;}else{if(ua.indexOf("opera/9")>-1){this.isOpera9=true;}else{if((ua.indexOf("opera/8")>-1)||(ua.indexOf("opera 8")>-1)){this.isOpera8=true;}}}}else{if(ua.indexOf("chrome")>-1){this.isChrome=true;this.name="Chrome";}else{if(ua.indexOf("webkit")>-1){this.isSafari=true;this.name="Safari";}else{if(ua.indexOf("gecko")>-1){this.isGecko=true;}if(ua.indexOf("firefox")>-1){this.name="Firefox";this.isFirefox=true;}if(ua.indexOf("netscape")>-1){this.name="Netscape";this.isNS=true;}}}}}};util.browser.prototype._detectVersion=function(){var ua=this.ua;if(this.isIE){if(/msie[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;if(parseInt(this.version,10)<9){this.isIE8OrLess=true;}}}else{if(this.isFirefox){if(/firefox[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;if(this.version.substring(0,3)*1>3.5){this.isFirefox36OrAbove=true;}}}else{if(this.isSafari){if(/version[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;}}else{if(this.isChrome){if(/chrome[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;}}else{if(this.isNS){if(/netscape[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;}}else{if(this.isOpera){if(/opera[\/\s]((?:\d+\.?)+)/.test(ua)){this.version=RegExp.$1;}}}}}}}};util.browser.prototype._detectMajorVersion=function(){if(this.isFirefox){this.majorVersion=this.version.substring(0,3);}else{this.majorVersion=this.version.substring(0,1);}};util.browser.prototype._detectEnvironment=function(){var ua=this.ua;if(ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1){this.isWindows=true;this.environment="Windows";}else{if(ua.indexOf("macintosh")!=-1){this.isMac=true;this.environment="MacOS";}}};util.browser.prototype.toString=function(){return this.name+" "+this.version;};util.browser.prototype._setProperties=function(){this.properties={code:this.name+this.majorVersion,identifier:this.name,majorVersion:this.majorVersion,version:this.version,env:this.environment};};util.browser=new util.browser();c.browser=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);};}c.loader.register("util.Browser");a.namespace("util.monitoring");util.monitoring.event={getListeners:function(id){return this.getManager()._getListeners(id);},getLength:function(){return this.getManager()._getLength();},getLostListeners:function(){var lostListeners=[];var listeners=this.getListeners();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&&!util.dom.hasClass(parent,"offDomStore")){var isInOffDomStore=util.browser.isIE?util.dom.hasClass(parent.firstChild,"offDomStore"):util.dom.hasClass(parent,"offDomStore");if(!isInOffDomStore){var obj=list[j][4];var className="";if(obj){className=obj.classname||obj.className;}l.information={id:ind,className:className};lostListeners.push(l);}}}}}}var li=lostListeners.length;for(var i=0,li;i<li;i++){if(util.event._hashDelegatedListeners[lostListeners[i][1]]){var lj=util.event._hashDelegatedListeners[lostListeners[i][1]].length;for(var j=0,lj;j<lj;j++){if(lostListeners[i][2]===util.event._hashDelegatedListeners[lostListeners[i][1]][j].wr){lostListeners[i][2]=util.event._hashDelegatedListeners[lostListeners[i][1]][j].params.callback;}}}}return lostListeners;},cleanLostListeners:function(){this.getManager().cleanListeners();},getManager:function(){return YAHOO.util.Event;}};c.loader.register("util.monitoring");a.namespace("util");util.lang=function(){};a.extend("util.lang","aria.lang.JsObject");util.lang.prototype.safeSetTimeout=(c.browser.isFirefox?function(){var fn=arguments[0];var wrappedFn=function(){var args=Array.prototype.slice.apply(arguments,[0]);args.splice(0,1);return fn.apply(null,args);};arguments[0]=wrappedFn;return setTimeout.apply(window,arguments);}:function(fn,delay){return window.setTimeout(fn,delay);});util.lang.prototype.instanceOf=function(jsObject,classname){if(jsObject&&typeof jsObject.instanceOf=="function"&&typeof classname=="string"){return jsObject.instanceOf(classname);}else{return false;}};util.lang.prototype.decodeURIComponent=function(encodedURIString){try{return decodeURIComponent(encodedURIString);}catch(error){util.log.getLogger("util.lang").warn("Decoding "+encodedURIString+" failed. "+(error.message||error));return encodedURIString;}};util.lang=new util.lang();c.loader.register("util.lang");a.namespace("util");util.type=function(){};util.type.prototype.isArray=function(value){return Object.prototype.toString.apply(value)==="[object Array]";};util.type.prototype.isString=function(value){if(typeof(value)==="string"){return true;}return Object.prototype.toString.apply(value)==="[object String]";};util.type.prototype.isRegExp=function(value){return Object.prototype.toString.apply(value)==="[object RegExp]";};util.type.prototype.isNumber=function(value){if(typeof(value)==="number"){return true;}return Object.prototype.toString.apply(value)==="[object Number]";};util.type.prototype.isDate=function(value){return Object.prototype.toString.apply(value)==="[object Date]";};util.type.prototype.isBoolean=function(value){return Object.prototype.toString.apply(value)==="[object Boolean]";};util.type.prototype.isHTMLElement=function(object){if(object){var tagName=object.tagName;return util.type.isString(tagName);}else{return false;}};util.type.prototype.isUICObject=function(object){return util.lang.instanceOf(object,"uic.uicObject");};util.type.prototype.isFunction=function(value){return Object.prototype.toString.apply(value)==="[object Function]";};util.type.prototype.isObject=function(value){return Object.prototype.toString.apply(value)==="[object Object]";};util.type.prototype.isUndefined=function(value){return typeof value=="undefined";};util.type=new util.type();uic.isArray=util.type.isArray;c.loader.register("util.type");(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,done=0,toString=Object.prototype.toString,hasDuplicate=false;var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[];}if(!selector||typeof selector!=="string"){return results;}var parts=[],m,set,checkSet,check,mode,extra,prune=true,contextXML=isXML(context);chunker.lastIndex=0;while((m=chunker.exec(selector))!==null){parts.push(m[1]);
if(m[2]){extra=RegExp.rightContext;break;}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context);}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift();}set=posProcess(selector,set);}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0];}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set);}else{prune=false;}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur="";}else{pop=parts.pop();}if(pop==null){pop=context;}Expr.relative[cur](checkSet,pop,contextXML);}}else{checkSet=parts=[];}}if(!checkSet){checkSet=set;}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector);}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet);}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i]);}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i]);}}}}}else{makeArray(checkSet,results);}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results);}return results;};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=false;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1);}}}}return results;};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set);};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[];}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.match[type].exec(expr))){var left=RegExp.leftContext;if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break;}}}}if(!set){set=context.getElementsByTagName("*");}return{set:set,expr:expr};};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop==result){result=[];}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true;}else{if(match===true){continue;}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true;}else{curLoop[i]=false;}}else{if(pass){result.push(item);anyFound=true;}}}}}if(found!==undefined){if(!inplace){curLoop=result;}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[];}break;}}}if(expr==old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr;}else{break;}}old=expr;}return curLoop;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href");
}},relative:{"+":function(checkSet,part,isXML){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag&&!isXML){part=part.toUpperCase();}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName===part?elem||false:elem===part;}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true);}},">":function(checkSet,part,isXML){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=isXML?part:part.toUpperCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName===part?parent:false;}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part;}}if(isPartStr){Sizzle.filter(part,checkSet,true);}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(!/\W/.test(part)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML);},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=isXML?part:part.toUpperCase();checkFn=dirNodeCheck;}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML);}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[];}},NAME:function(match,context,isXML){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i]);}}return ret.length===0?null:ret;}},TAG:function(match,context){return context.getElementsByTagName(match[1]);}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match;}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").indexOf(match)>=0)){if(!inplace){result.push(elem);}}else{if(inplace){curLoop[i]=false;}}}}return false;},ID:function(match){return match[1].replace(/\\/g,"");},TAG:function(match,curLoop){for(var i=0;curLoop[i]===false;i++){}return curLoop[i]&&isXML(curLoop[i])?match[1]:match[1].toUpperCase();},CHILD:function(match){if(match[1]=="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]=="even"&&"2n"||match[2]=="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0;}match[0]=done++;return match;},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name];}if(match[2]==="~="){match[4]=" "+match[4]+" ";}return match;},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if(chunker.exec(match[3]).length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop);}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret);}return false;}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true;}}return match;},POS:function(match){match.unshift(true);return match;}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden";},disabled:function(elem){return elem.disabled===true;},checked:function(elem){return elem.checked===true;},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true;},parent:function(elem){return !!elem.firstChild;},empty:function(elem){return !elem.firstChild;},has:function(elem,i,match){return !!Sizzle(match[3],elem).length;},header:function(elem){return/h\d/i.test(elem.nodeName);},text:function(elem){return"text"===elem.type;},radio:function(elem){return"radio"===elem.type;},checkbox:function(elem){return"checkbox"===elem.type;
},file:function(elem){return"file"===elem.type;},password:function(elem){return"password"===elem.type;},submit:function(elem){return"submit"===elem.type;},image:function(elem){return"image"===elem.type;},reset:function(elem){return"reset"===elem.type;},button:function(elem){return"button"===elem.type||elem.nodeName.toUpperCase()==="BUTTON";},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName);}},setFilters:{first:function(elem,i){return i===0;},last:function(elem,i,match,array){return i===array.length-1;},even:function(elem,i){return i%2===0;},odd:function(elem,i){return i%2===1;},lt:function(elem,i,match){return i<match[3]-0;},gt:function(elem,i,match){return i>match[3]-0;},nth:function(elem,i,match){return match[3]-0==i;},eq:function(elem,i,match){return match[3]-0==i;}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array);}else{if(name==="contains"){return(elem.textContent||elem.innerText||"").indexOf(match[3])>=0;}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false;}}return true;}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false;}}if(type=="first"){return true;}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false;}}return true;case"nth":var first=match[2],last=match[3];if(first==1&&last==0){return true;}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count;}}parent.sizcache=doneName;}var diff=elem.nodeIndex-last;if(first==0){return diff==0;}else{return(diff%first==0&&diff/first>=0);}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match;},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName===match;},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1;},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!=check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false;},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array);}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results;}return array;};try{Array.prototype.slice.call(document.documentElement.childNodes,0);}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array);}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i]);}}else{for(var i=0;array[i];i++){ret.push(array[i]);}}}return ret;};}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true;}return 0;}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true;}return ret;};}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true;}return 0;}var ret=a.sourceIndex-b.sourceIndex;
if(ret===0){hasDuplicate=true;}return ret;};}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true;}return 0;}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.selectNode(a);aRange.collapse(true);bRange.selectNode(b);bRange.collapse(true);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true;}return ret;};}}}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(!!document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[];}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match;};}root.removeChild(form);root=form=null;})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i]);}}results=tmp;}return results;};}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2);};}div=null;})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return;}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra);}catch(e){}}return oldSizzle(query,context,extra,seed);};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop];}div=null;})();}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(div.getElementsByClassName("e").length===0){return;}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return;}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1]);}};div=null;})();}function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i;}if(elem.nodeName===cur){match=elem;break;}elem=elem[dir];}checkSet[i]=match;}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){var sibDir=dir=="previousSibling"&&!isXML;for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){if(sibDir&&elem.nodeType===1){elem.sizcache=doneName;elem.sizset=i;}elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break;}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i;}if(typeof cur!=="string"){if(elem===cur){match=true;break;}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break;}}}elem=elem[dir];}checkSet[i]=match;}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16;
}:function(a,b){return a!==b&&(a.contains?a.contains(b):true);};var isXML=function(elem){return elem.nodeType===9&&elem.documentElement.nodeName!=="HTML"||!!elem.ownerDocument&&elem.ownerDocument.documentElement.nodeName!=="HTML";};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"");}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet);}return Sizzle.filter(later,tmpSet);};window.Sizzle=Sizzle;})();c.loader.register("util.sizzle");window.$$=function(query,o){return window.Sizzle(query,$d(o));};a.namespace("util");util.SelectorEngine=function(){};util.SelectorEngine.prototype.match=function(el,selector){if(!util.type.isHTMLElement(el)){return false;}var rules=util.type.isString(selector)?this.parseCSS(selector):selector;if(!util.type.isArray(rules)){return false;}ruleLoop:for(var i=0,l=rules.length;i<l;i++){var rule=rules[i],tag=rule.tag.toUpperCase(),id=rule.id||"",classes=rule.classes||[],attributes=rule.attributes||false,className,attr,elAttr;if(tag!=="*"&&tag!==el.tagName){continue ruleLoop;}if(!!rule.id&&rule.id!==el.id){continue ruleLoop;}className=el.className||"";className=className.split(" ");for(var c=classes.length;c--;){for(var k=className.length;k--;){if(className[k]===classes[c]){break;}continue ruleLoop;}}if(attributes){for(attr in attributes){elAttr=el.getAttribute(attr);if(!elAttr||elAttr!==attributes[attr]){continue ruleLoop;}}}return true;}return false;};util.SelectorEngine.prototype.parseCSS=function(selector){var empty=/:empty\b/,invalid=/[>+~|]+/,tokenizer=/[:\[#\.]/g;if(invalid.test(selector)||selector.indexOf("::")>-1){return false;}var simpleSelectors=selector.split(","),results=[],simple;for(var i=0,l=simpleSelectors.length;i<l;i++){simple=simpleSelectors[i].trim();if(!empty.test(simpleSelectors[i])){return false;}simple=simple.replace(empty,"");if(/[\s:]/g.test(simple)){return false;}var token=undefined,tag="",attributes={},classes=[],id="",lastIndex=-1,lastToken="",res={},attribute=false;tokenizer.exec("");while(token=tokenizer.exec(simple)){if(token[0]==":"){return false;}if(!lastToken){tag=simple.substring(0,token.index)||"*";}else{if(lastToken=="#"){id=simple.substring(lastIndex+1,token.index);}else{if(lastToken=="."){classes.push(simple.substring(lastIndex+1,token.index));}else{if(lastToken=="["){attribute=this._parseAttributes(simple.substring(lastIndex+1,token.index-1));if(!!attribute){attributes[attribute[0]]=attribute[1];}}}}}lastIndex=token.index;lastToken=token[0];}if(lastIndex===-1){results.push({tag:simple||"*"});continue;}else{if(lastToken=="#"){id=simple.substr(lastIndex+1);}else{if(lastToken=="."){classes.push(simple.substr(lastIndex+1));}else{if(lastToken=="["){attribute=this._parseAttributes(simple.substring(lastIndex+1,simple.length-1));if(!!attribute){attributes[attribute[0]]=attribute[1];}else{return false;}}}}}if(!tag){return false;}res={tag:tag};if(util.Object.size(attributes)){res.attributes=attributes;}if(classes.length){res.classes=classes;}if(!!id){res.id=id;}results.push(res);}return results.length?results:false;};util.SelectorEngine.prototype._parseAttributes=function(attribute){var regexp=/^([\w]+)=['"]([\w]+)/,match=regexp.exec(attribute),res={};return !match?false:[match[1],match[2]];};util.SelectorEngine=new util.SelectorEngine();c.loader.register("util.selectorEngine");a.namespace("util");util.Object=function(){};util.Object.prototype.equals=function(a,b){if(a===null||b===null){return(a===null&&b===null);}else{if(a===undefined||b===undefined){return(a===undefined&&b===undefined);}}if(!util.type.isObject(a)||!util.type.isObject(b)){if(util.type.isFunction(a)){return util.type.isFunction(b)?a.toString()==b.toString():false;}else{if(util.type.isFunction(b)){return false;}else{if(util.type.isArray(a)){if(util.type.isArray(b)){if(a.length!==b.length){return false;
}for(var i=0,l=a.length;i<l;i++){if(!this.equals(a[i],b[i])){return false;}}return true;}else{return false;}}else{return a===b;}}}}if(util.type.isUICObject(a)){return util.type.isUICObject(b)?a===b:false;}if(util.type.isHTMLElement(a)){return util.type.isHTMLElement(b)?a===b:false;}if(util.Object.size(a)!=util.Object.size(b)){return false;}for(var key in a){if(a.hasOwnProperty(key)){if(!b.hasOwnProperty(key)){return false;}if(!util.Object.equals(a[key],b[key])){return false;}}}return true;};util.Object.prototype.size=function(obj){var size=0,k;for(k in obj){if(obj.hasOwnProperty(k)){size++;}}return size;};util.Object.prototype.toArray=function(obj){var arr=[],k;for(k in obj){if(obj.hasOwnProperty(k)){arr.push(obj[k]);}}return arr;};util.Object.prototype.nullify=function(){for(var i=0,l=arguments.length;i<l;i++){var argument=arguments[i];if(!argument.hasOwnProperty||util.type.isHTMLElement(argument)){continue;}for(var k in argument){if(argument.hasOwnProperty(k)){argument[k]=null;delete argument[k];}}}};util.Object.prototype.translate=function(jsonObject,dictionnary){var translatedObject={};for(var key in jsonObject){if(jsonObject.hasOwnProperty(key)){var newKey=dictionnary[key];var keyToApply=key;if(newKey!=null){keyToApply=newKey;}translatedObject[keyToApply]=jsonObject[key];delete jsonObject[key];delete jsonObject[newKey];}}return translatedObject;};util.Object.prototype.serialize=function(obj){var str=[];for(var i in obj){if(!obj.hasOwnProperty(i)){continue;}var value=obj[i];str.push(i,value,typeof value);}return str.join("\x0B");};util.Object=new util.Object();c.loader.register("util.Object");a.namespace("aria.ui");aria.ui.Section=function(){this._activeSection=util.Section._activeSection;this._sections={};this._ids={};this._mutualized=util.Section._mutualized;this._secPrefix=util.Section._prefixes;this._panels={};this._viewsets={};this._logger=util.Section.getLogger();this.push=function(section,id){if(!this._sections.hasOwnProperty(section)){this._sections[section]={};}};this.getUIC=function(sectionName,type){return util.Section.getUIC.apply(util.Section,arguments);};this._get=function(sectionName,cond){};this.getInputs=function(name){return util.Section.getInputs.apply(util.Section,arguments);};this.get=function(sec,id){return util.Section.getElement.apply(util.Section,arguments);};this._reg=function(id,obj,sec){util.Section.registerUICObject.apply(util.Section,arguments);};this._isReg=function(id,sec){return util.Section.isComponentRegistered.apply(util.Section,arguments);};this._getSec=function(sec){var prefix=this._secPrefix[sec]||"";return prefix+sec;};this._delSec=function(sec){delete this._sections[sec];};this.destroyAllSections=function(){this._logger.deprecated("c.sectionManager.destroyAllSections","util.Section.destroyAllSections","3.2.10","4.0","F. Crisci");util.Section.destroyAllSections();};this.destroy=function(sects,prefix,keepDom){this._logger.deprecated("c.sectionManager.destroy","util.Section.destroy","3.2.10","4.0","F. Crisci");util.Section.destroy.apply(util.Section,arguments);};this._destroyAll=function(comp){};this._destroyUICObject=function(obj,id){};this.getPanel=function(options){if(options.section){var section=options.section,panels=this.getPanels();for(var fullSectionName in panels){if(fullSectionName.indexOf(section)!=-1){return panels[fullSectionName];}}this._logger.debug("Couldn't get panel for section "+section+". No panel available in this section.");return false;}};this.getPanels=function(){return this._panels;};this.getSectionContainer=function(section,prefix){this._logger.deprecated("c.sectionManager.getSectionContainer","util.Section.getSectionContainer","3.2.10","4.0","F. Crisci");return util.Section.getSectionContainer.apply(util.Section,arguments);};this.getComponentName=function(component,sectionName){this._logger.deprecated("c.sectionManager.getComponentName","util.Section.getComponentName","3.2.10","4.0","F. Crisci");return util.Section.getComponentName.apply(util.Section,arguments);
};this.getComponentNameById=function(componentId,sectionName){this._logger.deprecated("c.sectionManager.getComponentNameById","util.Section.getComponentNameById","3.2.10","4.0","F. Crisci");return util.Section.getComponentNameById.apply(util.Section,arguments);};this.getSectionForComponent=function(component){this._logger.deprecated("c.sectionManager.getSectionForComponent","util.Section.getSectionForComponent","3.2.10","4.0","F. Crisci");return util.Section.getSectionForComponent.apply(util.Section,arguments);};this.getSectionForComponentById=function(componentId){this._logger.deprecated("c.sectionManager.getSectionForComponentById","util.Section.getSectionForComponentById","3.2.10","4.0","F. Crisci");return util.Section.getSectionForComponentById.apply(util.Section,arguments);};this.getUICInputById=function(id){this._logger.deprecated("c.sectionManager.getUICInputById","util.Section.getUICInputById","3.2.10","4.0","F. Crisci");return util.Section.getUICInputById.apply(util.Section,arguments);};this.updateId=function(oldId,inputId,uicInput){this._logger.deprecated("c.sectionManager.updateId","util.Section.updateId","3.2.10","4.0","F. Crisci");util.Section.updateId.apply(util.Section,arguments);};};c.loader.register("aria.ui.Section");util.SectionObject=function(name,id,parent,kids,behavior){this.name=name;this.id=id;this.key=id+name;this.parent=!!parent?id+parent:"";this.lazy=!!behavior;this.innerJS=!!behavior?behavior.js:"";this.decodedJS="";this.innerHTML=!!behavior?behavior.html:"";this.child={};this.childCount=0;this.childNames=!!kids?kids.split(","):[];this.lazyDescendants=false;this.pending=this.childNames.length;this.behavior="";this.isRegistered=false;this.isLoaded=false;this.panels=[];this.wakeUpCallback=function(){};this.UICObjects={};};a.extend("util.SectionObject","aria.lang.JsObject");util.SectionObject.prototype.appendChild=function(kid){this.childCount++;this.pending--;this.child[kid.key]=kid;};util.SectionObject.prototype.isRoot=function(){return !this.parent;};util.SectionObject.prototype.isLazy=function(){if(this.lazy){return true;}return this.isRoot()?false:util.Section.getSection(this.parent).isLazy();};util.SectionObject.prototype.isFinalized=function(){return this.pending>0;};util.SectionObject.prototype.loaded=function(){this.isLoaded=true;for(var i=this.panels.length;i--;){this.panels[i].setLazyLoaded(this);}util.lang.safeSetTimeout(this.wakeUpCallback,20);};util.SectionObject.prototype.finalized=function(){if(!this.lazy){this.isLoaded=true;this._initDom();}util.Section.unsetSleepingSection(this.name);var kids=this.childNames,i=this.panels.length;for(;i--;){this.panels[i].finalize(this);}for(i=kids.length;i--;){c.loadMng.initialized("PARENT",kids[i]);}};util.SectionObject.prototype.wakeUp=function(callback){this.wakeUp=function(){};if(util.type.isFunction(callback)){this.wakeUpCallback=callback;}if(this.isLoaded){return;}var domElement=this.getDom();if(!domElement){return;}c.loadMng.initializing("SECTION",this.name);c.onLoad("loaded",this);this._insertHTML(domElement,this.innerHTML);this.innerHTML="";if(!this.decodedJS&&!!this.innerJS){c.require("util.Base64");this.decodedJS=util.Base64.decode(this.innerJS);}if(this.decodedJS){util.dom.executeJS(this.decodedJS,true);this.decodedJS="";}c.loadMng.initialized("SECTION",this.name);};util.SectionObject.prototype._insertHTML=function(section,htmlEncoded){if(!htmlEncoded||!section){return;}c.require("util.Base64");var html=util.Base64.decode(htmlEncoded),firstPanel=this.panels[0],panelId=firstPanel.getId(),extracted,inlineJS;if(!html){return;}extracted=a.ssa.separateJSFromMarkup(html);inlineJS=extracted.js;html=util.dom.prefixIDs(extracted.html,panelId);section.innerHTML=html;if(inlineJS){eval(inlineJS);}};util.SectionObject.prototype.getLazyDescendants=function(){if(!!this.lazyDescendants){return this.lazyDescendants;}var grandchild=[],begReg="c._begRegSec('",begRegLength=begReg.length,js,regIndex,quoteIndex;this.lazyDescendants=[];if(!this.lazy){return grandchild;
}if(this.innerJS){c.require("util.Base64");this.decodedJS=util.Base64.decode(this.innerJS);this.innerJS="";}js=this.decodedJS;if(!js){return grandchild;}regIndex=js.indexOf(begReg);while(regIndex>-1){regIndex+=begRegLength;quoteIndex=js.indexOf("'",regIndex);grandchild.push(js.substring(regIndex,quoteIndex));regIndex=js.indexOf(begReg,quoteIndex);}this.lazyDescendants=grandchild;return grandchild;};util.SectionObject.prototype.registerUIC=function(id,obj){this.UICObjects[id]=obj;};util.SectionObject.prototype.getUIC=function(type){if(!type){return util.Object.toArray(this.UICObjects);}var condition,t=type.split(".");if(t.length<=1){condition=function(obj){if(obj.tag==t[0]){return true;}};}else{t.splice(0,1);var regexp=new RegExp(t.join("."));condition=function(obj){if(obj.tag==t[0]&&obj.dam&&obj.dam.id.match(regexp)){return true;}};}return this._get(condition);};util.SectionObject.prototype._get=function(cond){var res=[],objects=this.UICObjects;for(var id in objects){if(cond(objects[id])){res.push(objects[id]);}}cond=undefined;return res;};util.SectionObject.prototype.getInputs=function(){var condition=function(obj){return !!obj.getInput;};return this._get(condition);};util.SectionObject.prototype.getElement=function(id){return this.UICObjects[id]||false;};util.SectionObject.prototype.getKey=function(){return this.key;};util.SectionObject.prototype._initDom=function(){if(!util.type.isHTMLElement(this.domElement)){var domElement=$k(this.key+"_id");this.domElement=domElement;}};util.SectionObject.prototype.getDom=function(){this._initDom();return this.domElement;};util.SectionObject.prototype.destroy=function(keepDom){this._destroyAllComponents();if(util.type.isArray(keepDom)){if(util.type.isBoolean(keepDom[0])){keepDom=keepDom[0];}}if(!keepDom){c.removeContent(this.getDom());}this.domElement=null;};util.SectionObject.prototype._destroyAllComponents=function(){var all=this.UICObjects,uicObjects=[],length=0,i;for(i in all){if(!all.hasOwnProperty(i)){continue;}var single=all[i];if(util.lang.instanceOf(single,"uic.Behavior")){this._destroyUICObject(single,i);}else{uicObjects.push(single);length++;}}for(i=0;i<length;i++){this._destroyUICObject(uicObjects[i]);}util.Object.nullify.apply(window,uicObjects);};util.SectionObject.prototype._destroyUICObject=function(obj,id){if(!obj.destroy){return;}var id=id||obj.id||$d(obj).id;if(obj.getInput){var inputId=obj.getInput().id;util.Section.unregisterUICObject(inputId);}try{obj.destroy();if(!!id){util.Section.unregisterUICObject(id);delete this.UICObjects[id];}}catch(e){util.log.getLogger("util.Section").error("Destroy FAILED for component id : "+id);}};a.namespace("util");util.Section=function(){this.root={};this.flat={};this.__sections=[];this.orphans=[];this.sleepingOrphans=[];this._ids={};this._mutualized={};this._prefixes={};this._activeSection=null;this.sectionManager={};};a.extend("util.Section","aria.lang.JsObject");util.Section.prototype.register=function(name,id,parent,children,behavior){this.getLogger().info("Registering new section "+name+", "+id);c.loadMng.sectionsInitializing[name]=true;id=id||"";var section=new util.SectionObject(name,id,parent,children,behavior);var key=section.key;if(!util.lang.instanceOf(this.flat[key],"util.SectionObject")){this.flat[key]=section;this.sectionManager.push(key);}else{section=this.flat[key];}this._prefixes[name]=id;this._activeSection=section;if(section.isRoot()){this.root[key]=section;}else{var parentSection=this.flat[section.parent];if(parentSection){parentSection.appendChild(section);}else{this.orphans.push(section);}}for(var i=this.orphans.length;i--;){if(this.orphans[i].parent===key){section.appendChild(this.orphans[i]);this.orphans.splice(i,1);}}for(var i=c.panels.length;i--;){var panel=c.panels[i];if(!panel){continue;}if(panel._section.indexOf(name)>-1){section.panels.push(panel);}}if(!section.panels.length){this.getLogger().warn("Section "+name+" does not belong to any panel");}};util.Section.prototype.finalize=function(name,id){id=id||"";
var section=util.Section.getSection(name,id);var key=section.getKey();section.isRegistered=true;c.onLoad("finalized",section,name);if(!section.isRoot()&&!util.Section.getSection(section.parent)){c.loadMng.initializing("PARENT",name);}c.loadMng.sectionsInitializing[name]=false;c.loadMng.initializing("SECTION",name);var bc=c.__behaviours[name];if(bc){var ref=c.getRef(bc),o;if(!ref){this.getLogger().error("Invalid Behaviour class: "+bc);}else{o=new ref;o._setSectionId(name);o.init();}}this.__sections[name]=true;this._activeSection=null;c.loadMng.initialized("SECTION",name);};util.Section.prototype.getSection=function(key,prefix){if(!util.type.isString(prefix)){prefix=this._prefixes[key]||"";}key=prefix+key;return(this.flat[key]||this.flat["e"+key]);};util.Section.prototype.setSleepingSection=function(sectionName){if(this.sleepingOrphans.indexOf(sectionName)===-1){this.sleepingOrphans.push(sectionName);}};util.Section.prototype.isSleepingSection=function(sectionName){return this.sleepingOrphans.indexOf(sectionName)!==-1;};util.Section.prototype.unsetSleepingSection=function(sectionName){this.sleepingOrphans.remove(sectionName);};util.Section.prototype.destroy=function(sections,prefix,keepDom){if(util.type.isString(sections)){sections=[sections];}for(var i=sections.length;i--;){var sectionName=sections[i];var sectionObj=this.getSection(sectionName,prefix);var parent,child;if(!sectionObj){continue;}var key=sectionObj.getKey();this.getLogger().info("Destroying section "+sectionObj.name);sectionObj.destroy(keepDom);this.sectionManager._delSec(key);parent=!!sectionObj.parent?this.getSection(sectionObj.parent):util.Section.root;if(sectionObj.childCount){for(var s in sectionObj.child){child=sectionObj.child[s];if(!parent.appendChild){child.parent="";parent[s]=child;}else{child.parent=parent.getKey();parent.appendChild(child);parent.childNames.push(child.getKey());}}}if(parent){if(!!parent.childCount){delete parent.child[key];parent.childCount-=1;parent.childNames.remove(key);}else{delete parent[key];}}delete util.Section.flat[key];if(this._prefixes[sectionObj.name]==sectionObj.id){delete this._prefixes[sectionObj.name];}}};c.destroy=function(){util.Section.destroy.apply(util.Section,arguments);};util.Section.prototype.registerUICObject=function(id,obj,sec,prefix){var section=this.getSection(sec,prefix)||this._activeSection;if(!section){this.getLogger().error("Registration failed for section "+sec+" id "+id);return;}this._ids[id]=section;this.sectionManager._ids[id]=section.name;section.registerUIC(id,obj);this.sectionManager.push(section.key);this.sectionManager._sections[section.key][id]=obj;};util.Section.prototype.isComponentRegistered=function(id,sectionName){var section=this.getSection(sectionName);if(!section){return false;}return !!section.getElement(id);};util.Section.prototype.getUIC=function(sectionName,type){var section=this.getSection(sectionName);if(!section){this.getLogger().warn("Section "+sectionName+" not found while calling getUIC.");return[];}return section.getUIC(type);};util.Section.prototype.getElement=function(sectionName,id){var section=this.getSection(sectionName);if(!section){section=this.getSectionObjectForId(id);}if(!section){return null;}return section.getElement(id);};util.Section.prototype.getInputs=function(name,prefix){var section=this.getSection(name,prefix);if(!section){this.getLogger().warn("Section "+name+" not found while calling getInputs.");return[];}return section.getInputs();};util.Section.prototype.destroyAllSections=function(){for(var section in this.flat){this.destroy(section);}};util.Section.prototype.unregisterUICObject=function(id){delete this.sectionManager._ids[id];delete this._ids[id];delete this._mutualized[id];};util.Section.prototype.updateId=function(oldId,inputId,uicInput){if(oldId){delete this._mutualized[oldId];}this._mutualized[inputId]=uicInput.id;};util.Section.prototype.getUICInputById=function(id){if(!id){return false;}var oid="",section,object,end=id.lastIndexOf("_id_")+3;if(end<4){oid=id;
}else{oid=id.substring(0,end);}section=this._ids[oid];if(!section){if(this._mutualized[id]){oid=this._mutualized[id];section=this._ids[oid];}}if(!section){return false;}object=section.getElement(oid);return util.lang.instanceOf(object,"uic.uicInput")?object:false;};util.Section.prototype.getSectionContainer=function(section,prefix){var section=this.getSection(section,prefix);return(section)?section.getDom():null;};util.Section.prototype.getComponentName=function(component,sectionName){var componentId=$d(component).id||component,id=this._mutualized[componentId]||componentId,section=this._ids[id]||this.getSection(sectionName),prefix=section.name+"_",suffix="_id";var start=componentId.indexOf(prefix),end=componentId.lastIndexOf(suffix);if(start===-1||start>=end){return;}return componentId.substring(start+prefix.length,end);};util.Section.prototype.getComponentNameById=function(componentId,sectionName){return this.getComponentName(componentId);};util.Section.prototype.getSectionObjectForId=function(componentId){var id=this._mutualized[componentId]||componentId,section=this._ids[id];if(!section){}return section;};util.Section.prototype.getSectionForComponentById=function(componentId){var sectionObject=this.getSectionObjectForId(componentId);if(sectionObject){return sectionObject.name;}return null;};util.Section.prototype.getSectionForComponent=function(component){return this.getSectionForComponentById($d(component).id);};util.Section=new util.Section();util.Section.sectionManager=new aria.ui.Section();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._appendToSection=function(domElement,sectionName){try{var elementId=$d(domElement).id;var section=util.Section.getSectionObjectForId(elementId);if(!section){section=util.Section.getSection(sectionName);if(!section){section=util.Section._activeSection;}}section.getDom().appendChild(domElement);}catch(e){c.removeContent(domElement);}};c._begRegSec=function(){util.Section.register.apply(util.Section,arguments);};c._endRegSec=function(){util.Section.finalize.apply(util.Section,arguments);};c.__sections=util.Section.__sections;c._sections=util.Section.sectionManager;c.sectionManager=util.Section.sectionManager;c.__behaviours=[];c.loader.register("util.Section");a.namespace("uic.GlobalList");a.namespace("uic.factory");uic.factory.toString=function(){return"uic.factory";};a.namespace("util");a.namespace("gfx");uic.cste={ATTRIBUTE_ERRORCLS:"uicErrorCls",ATTRIBUTE_VALIDATOR:"uicvalidator",ATTRIBUTE_ERRORTEXT:"_errortext",ESCAPE_WAITING:"uicEscapeWaiting",STATE_NORMAL:"Normal",STATE_ERROR:"Error",STATE_MANDATORY:"Mandatory",STATE_DISABLED:"Disabled",STATE_READONLY:"ReadOnly"};uic.STATUS="dev";uic._logger=util.log.getLogger("uic");c.panels=[];c.windowLoadEventFired=false;c.isSet=function(o){return typeof o!="undefined"&&o!=null;};c.addEvent=function(el,stype,fn,obj,override){return util.event.addEventListener.apply(util.dom,arguments);};c.addDelegatedEvent=function(el,expression,stype,fn,obj,override){return util.event.addDelegatedEventListener.apply(util.dom,arguments);};c.getX=function(evt){return util.event.getMouseX.apply(util.dom,arguments);};c.getY=function(e){return util.event.getMouseY.apply(util.dom,arguments);};c.remEvent=function(el,stype,fn){return util.event.removeEventListener.apply(util.dom,arguments);};c.remDelegatedEvent=function(el,expression,stype,fn){return util.event.remDelegatedEventListener.apply(util.dom,arguments);};c.stopEvent=function(evt){return util.event.stopEvent.apply(util.dom,arguments);};c.mkEvent=function(name,target){return util.event.makeEvent.apply(util.dom,arguments);};c.getTarget=function(e,name,returnUIC){return util.event.getTarget.apply(util.dom,arguments);};c.getASCIICode=function(e){return util.event.getASCIICode.apply(util.dom,arguments);
};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.getUIC=function(domObject){return c.getUICParent(domObject,null,true);};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.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){c.require("uic.dialog.alert.GenericAlert");if(c._alertBox){c._alertBox.destroy();}c._alertBox=new uic.dialog.alert.GenericAlert({id:"uicAlertBox",title:title,shortText:shortText,longText:longText,type:type,buttons:buttons});};c.genericAlert=function(parameters){c.require("uic.dialog.alert.GenericAlert");if(c._alertBox){c._alertBox.destroy();}parameters.id="uicAlertBox";c._alertBox=new uic.dialog.alert.GenericAlert(parameters);};c.getAncestor=function(nodeName,obj){return util.dom.getAncestor(obj,nodeName);};c.require=function(jsobject){if(c.require.cache[jsobject]){return true;}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.require.cache[jsobject]=true;};c.require.cache={};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);};uic.factory._logger=util.log.getLogger("uic.factory");uic.factory._check=function(component,o,id){var ret=(o==null);if(ret){this._logger.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 decodeURIComponent(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]);};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]);}}}a.namespace("uic.validator");c.require("aria.lang.JsObject");uic.validator.GenericValidator=function(){};a.extend("uic.validator.GenericValidator","aria.lang.JsObject");uic.validator.GenericValidator.prototype.validate=function(entry){return this.getValid();
};uic.validator.GenericValidator.prototype._defaultValid={isValid:true};uic.validator.GenericValidator.prototype._defaultNotValid={isValid:false};uic.validator.GenericValidator.prototype.getValid=function(){return this._defaultValid;};uic.validator.GenericValidator.prototype.getError=function(){return{isValid:false,errorMessage:this.errorMessage||"",errorCode:this.errorCode||""};};uic.validator.GenericValidator.prototype.setErrorMessage=function(str){this.errorMessage=str;};uic.validator.GenericValidator.prototype.setErrorCode=function(code){this.errorCode=code;};c.loader.register("uic.validator.GenericValidator");a.namespace("uic.validator");c.require("uic.validator.GenericValidator");c.require("util.String");uic.validator.REQValidator=function(){this.skipDirectValidation=true;this.errorCode=uic.validator.REQValidator.ERROR_CODE;};uic.validator.REQValidator.ERROR_CODE="REQ";a.extend("uic.validator.REQValidator","uic.validator.GenericValidator");uic.validator.REQValidator.prototype.validate=function(entry){if(!!entry.trim().length){return this.getValid();}return this.getError();};c.loader.register("uic.validator.REQValidator");c.require("aria.lang.JsObject");c.require("util.event");c.require("util.Object");uic.uicObject=function(config){uic.uicObject.superclass.constructor.apply(this);c.extend(this,config||{});this._yuiObject=null;this._cbPool=[];this._internalEvents=[];this.initComponent();};a.extend("uic.uicObject","aria.lang.JsObject",{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;},fireDomEvent:function(eventType,options){},_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,capture){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,capture);}else{ip.setAttribute("uic","true");YAHOO.util.Event.addListener(ip,type,callback,obj,scope,capture);}}else{YAHOO.util.Event.addListener($d(this),type,callback,obj,scope,capture);}},remEvent:function(type,callback,capture){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,capture);}else{YAHOO.util.Event.removeListener(this,type,callback,capture);}},addDelegatedEvent:function(expression,type,callback,obj,scope){return util.event.addDelegatedEventListener(this,expression,type,callback,obj,scope);},remDelegatedEvent:function(expression,type,callback){return util.event.remDelegatedEventListener(this,expression,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.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);}});c.loader.register("uic.uicObject");util.EventHelper={fireDomEvent:function(eventType,target,options){this.Y.simulate(target,eventType,options);},fireKeydownEventAdaptedForKeyNav:function(target,options){var Y=this.Y;if(c.browser.isIE||c.browser.isSafari){Y.simulate(target,"keydown",options);}else{Y.simulate(target,"keydown",options);Y.simulate(target,"keypress",options);}}};(function(){var Y={};var L=Y.Lang,array=uic.isArray,isFunction=function(aFunction){return(typeof(aFunction)=="function");};isString=function(aString){return(typeof(aString)=="string");};isBoolean=function(aBool){return(typeof(aBool)=="boolean");};isObject=function(anObject){return(typeof(anObject)=="object");};isNumber=function(aNumber){return(typeof(aNumber)=="number");};doc=window.document;mouseEvents={click:1,dblclick:1,mouseover:1,mouseout:1,mousedown:1,mouseup:1,mousemove:1},keyEvents={keydown:1,keyup:1,keypress:1},htmlEvents={focus:1,blur:1,change:1,focusin:1,focusout:1};Y.error=function(msg){if((typeof(window.console)!="undefined")&&(typeof(window.console.log)!="undefined")){window.console.log(msg);}};function simulateKeyEvent(target,type,bubbles,cancelable,view,ctrlKey,altKey,shiftKey,metaKey,keyCode,charCode){if(!target){Y.error("simulateKeyEvent(): Invalid target.");}if(isString(type)){type=type.toLowerCase();switch(type){case"textevent":type="keypress";break;case"keyup":case"keydown":case"keypress":break;default:Y.error("simulateKeyEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateKeyEvent(): Event type must be a string.");}if(!isBoolean(bubbles)){bubbles=true;}if(!isBoolean(cancelable)){cancelable=true;}if(!isObject(view)){view=window;}if(!isBoolean(ctrlKey)){ctrlKey=false;}if(!isBoolean(altKey)){altKey=false;}if(!isBoolean(shiftKey)){shiftKey=false;}if(!isBoolean(metaKey)){metaKey=false;}if(!isNumber(keyCode)){keyCode=0;}if(!isNumber(charCode)){charCode=0;}var customEvent=null;if(isFunction(doc.createEvent)){try{customEvent=doc.createEvent("KeyEvents");customEvent.initKeyEvent(type,bubbles,cancelable,view,ctrlKey,altKey,shiftKey,metaKey,keyCode,charCode);}catch(ex){try{customEvent=doc.createEvent("Events");}catch(uierror){customEvent=doc.createEvent("UIEvents");}finally{customEvent.initEvent(type,bubbles,cancelable);customEvent.view=view;customEvent.altKey=altKey;customEvent.ctrlKey=ctrlKey;customEvent.shiftKey=shiftKey;customEvent.metaKey=metaKey;customEvent.keyCode=keyCode;customEvent.charCode=charCode;}}target.dispatchEvent(customEvent);}else{if(isObject(doc.createEventObject)){customEvent=doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=view;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.shiftKey=shiftKey;customEvent.metaKey=metaKey;customEvent.keyCode=(charCode>0)?charCode:keyCode;target.fireEvent("on"+type,customEvent);}else{Y.error("simulateKeyEvent(): No event simulation framework present.");}}}function simulateMouseEvent(target,type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget){if(!target){Y.error("simulateMouseEvent(): Invalid target.");
}if(isString(type)){type=type.toLowerCase();if(!mouseEvents[type]){Y.error("simulateMouseEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateMouseEvent(): Event type must be a string.");}if(!isBoolean(bubbles)){bubbles=true;}if(!isBoolean(cancelable)){cancelable=(type!="mousemove");}if(!isObject(view)){view=window;}if(!isNumber(detail)){detail=1;}if(!isNumber(screenX)){screenX=0;}if(!isNumber(screenY)){screenY=0;}if(!isNumber(clientX)){clientX=0;}if(!isNumber(clientY)){clientY=0;}if(!isBoolean(ctrlKey)){ctrlKey=false;}if(!isBoolean(altKey)){altKey=false;}if(!isBoolean(shiftKey)){shiftKey=false;}if(!isBoolean(metaKey)){metaKey=false;}if(!isNumber(button)){button=0;}var customEvent=null;if(isFunction(doc.createEvent)){customEvent=doc.createEvent("MouseEvents");if(customEvent.initMouseEvent){customEvent.initMouseEvent(type,bubbles,cancelable,view,detail,screenX,screenY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget);}else{customEvent=doc.createEvent("UIEvents");customEvent.initEvent(type,bubbles,cancelable);customEvent.view=view;customEvent.detail=detail;customEvent.screenX=screenX;customEvent.screenY=screenY;customEvent.clientX=clientX;customEvent.clientY=clientY;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.metaKey=metaKey;customEvent.shiftKey=shiftKey;customEvent.button=button;customEvent.relatedTarget=relatedTarget;}if(relatedTarget&&!customEvent.relatedTarget){if(type=="mouseout"){customEvent.toElement=relatedTarget;}else{if(type=="mouseover"){customEvent.fromElement=relatedTarget;}}}target.dispatchEvent(customEvent);}else{if(isObject(doc.createEventObject)){customEvent=doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=view;customEvent.detail=detail;customEvent.screenX=screenX;customEvent.screenY=screenY;customEvent.clientX=clientX;customEvent.clientY=clientY;customEvent.ctrlKey=ctrlKey;customEvent.altKey=altKey;customEvent.metaKey=metaKey;customEvent.shiftKey=shiftKey;switch(button){case 0:customEvent.button=1;break;case 1:customEvent.button=4;break;case 2:break;default:customEvent.button=0;}customEvent.relatedTarget=relatedTarget;if(target.checked!=undefined){target.checked=!target.checked;}if(!customEvent.preventDefault){customEvent.preventDefault=function(){};}target.fireEvent("on"+type,customEvent);}else{Y.error("simulateMouseEvent(): No event simulation framework present.");}}}function simulateHtmlEvent(target,type){var bubbles,cancelable;if(!target){Y.error("simulateHtmlEvent(): Invalid target.");}if(isString(type)){type=type.toLowerCase();if(!htmlEvents[type]){Y.error("simulateHtmlEvent(): Event type '"+type+"' not supported.");}}else{Y.error("simulateHtmlEvent(): Event type must be a string.");}bubbles=(type==="change"||type==="focusin"||type==="focusout");cancelable=false;var customEvent=null;if(isFunction(doc.createEvent)){customEvent=doc.createEvent("HTMLEvents");customEvent.initEvent(type,bubbles,cancelable,window);target.dispatchEvent(customEvent);}else{if(isObject(doc.createEventObject)){customEvent=doc.createEventObject();customEvent.bubbles=bubbles;customEvent.cancelable=cancelable;customEvent.view=window;target.fireEvent("on"+type,customEvent);}else{Y.error("simulateHtmlEvent(): No event simulation framework present.");}}}Y.simulate=function(target,type,options){options=options||{};if(mouseEvents[type]){simulateMouseEvent(target,type,options.bubbles,options.cancelable,options.view,options.detail,options.screenX,options.screenY,options.clientX,options.clientY,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.button,options.relatedTarget);}else{if(keyEvents[type]){simulateKeyEvent(target,type,options.bubbles,options.cancelable,options.view,options.ctrlKey,options.altKey,options.shiftKey,options.metaKey,options.keyCode,options.charCode);}else{if(htmlEvents[type]){simulateHtmlEvent(target,type);}else{Y.error("simulate(): Event '"+type+"' can't be simulated.");}}}};window.util.EventHelper.Y=Y;
})();c.loader.register("util.EventHelper");a.namespace("uic");c.require("uic.uicObject");c.require("uic.validator.REQValidator");c.require("util.EventHelper");uic.uicInput=function(){uic.uicInput.superclass.constructor.call(this);this._logger=this.getLogger();this.dam=$k(this.id);if(!this.dam){this._logger.error("Object not retrieved in DOM : "+this.id);return;}this._evtAddCustomEvent(["STATECHANGE"]);if(this._firstCall){this._initGlobalEvents();}this._initValidation();};uic.uicInput.CLASSNAME_ERROR="error";uic.uicInput.ATTRIBUTE_ERROR="uicerrorcls";uic.uicInput.CLASSNAME_MANDATORY="mandatory";uic.uicInput.CLASSNAME_NORMAL="normal";uic.uicInput.CLASSNAME_READONLY="readOnly";uic.uicInput.CLASSNAME_DISABLED="disabled";uic.uicInput.STATE_ERROR="Error";uic.uicInput.STATE_MANDATORY="Mandatory";uic.uicInput.STATE_NORMAL="Normal";uic.uicInput.STATE_READONLY="ReadOnly";uic.uicInput.STATE_DISABLED="Disabled";a.extend("uic.uicInput","uic.uicObject");uic.uicInput.prototype._firstCall=true;uic.uicInput.prototype.fireDomEvent=function(eventType,target,options){util.EventHelper.fireDomEvent(eventType,this.getInput(),options);};uic.uicInput.prototype._initGlobalEvents=function(){util.event.addDelegatedEventListener(document.body,"input:empty, textarea:empty, select:empty","focus",uic.uicInput.prototype._callbackGlobalFocus);util.event.addDelegatedEventListener(document.body,"input:empty, textarea:empty, select:empty","blur",uic.uicInput.prototype._callbackGlobalBlur);util.event.addDelegatedEventListener(document.body,"a:empty, input:empty, button:empty","click",uic.uicInput.prototype._callbackGlobalClick);uic.uicInput.prototype._firstCall=false;uic.uicInput.prototype._initGlobalEvents=function(){};};uic.uicInput.prototype._callbackGlobalFocus=function(e,target,args){var uicInput=util.Section.getUICInputById(target.id);if(!uicInput){return;}if(!uic.dialog||uic.dialog.DialogManager.isBeneathModal(target)===false){uic.uicInput.lastFocused=uicInput;if(uicInput.handleFocus){uicInput.handleFocus.call(uicInput,e,target,args);}else{if(uicInput._onFocus){uicInput._onFocus.call(uicInput,e,uicInput);}else{if(uicInput.getInput&&target===uicInput.getInput()){if(uicInput.getTextField){var textField=uicInput.getTextField();if(textField.handleFocus){textField.handleFocus.call(textField,e,target,args);}}}}}}};uic.uicInput.prototype._callbackGlobalBlur=function(e,target,args){var uicInput=util.Section.getUICInputById(target.id);if(!uicInput){return;}if(uicInput._validationOnBlur){uicInput._validationOnBlur.call(uicInput);}if(uicInput.handleBlur){uicInput.handleBlur.call(uicInput,e,target,args);}else{if(uicInput.getInput&&target===uicInput.getInput()){if(uicInput.getTextField){var textField=uicInput.getTextField();if(textField.handleBlur){textField.handleBlur.call(textField,e,target,args);}}}}};uic.uicInput.prototype._callbackGlobalClick=function(e,target,args){var uicInput=util.Section.getUICInputById(target.id);if(!uicInput){return;}if(uicInput.handleClick){uicInput.handleClick.call(uicInput,e,target,args);}else{if(uicInput.getInput&&target===uicInput.getInput()){if(uicInput.getTextField){var textField=uicInput.getTextField();if(textField.handleClick){textField.handleClick.call(textField,e,target,args);}}}}};uic.uicInput.prototype.getInputName=function(){return this.getInput().name;};uic.uicInput.prototype.getPattern=function(){var validators=this._validators;for(var i=0,n=validators.length;i<n;i++){if(validators[i].getPattern){return validators[i].getPattern();}}return null;},uic.uicInput.prototype.setNormal=function(){if(this.isNormal()){return;}this._saveState();this._removeSpecialClass();this.removeValidatorWithType("uic.validator.REQValidator");var link=this._get("a");if(link){c.removeClass(link,"uicDisabled");}util.dom.addClass($d(this),uic.uicInput.CLASSNAME_NORMAL);this._evtFire("STATECHANGE","SETNORMAL");};uic.uicInput.prototype.isNormal=function(){var currentState=this._getInputState();if(currentState.contains(uic.uicInput.STATE_NORMAL)){return true;
}else{return false;}};uic.uicInput.prototype.setError=function(){if(this.hasError()){return;}this._saveState();var errorClass=this.getInput().getAttribute(uic.uicInput.ATTRIBUTE_ERROR);if(errorClass){util.dom.addClass($d(this),errorClass);}else{util.dom.addClass($d(this),uic.uicInput.CLASSNAME_ERROR);}this._evtFire("STATECHANGE","SETERROR");};uic.uicInput.prototype.remError=function(){if(!this.hasError()){return;}var errorClass=this.getInput().getAttribute(uic.uicInput.ATTRIBUTE_ERROR);if(errorClass){util.dom.removeClass($d(this),errorClass);}else{util.dom.removeClass($d(this),uic.uicInput.CLASSNAME_ERROR);}};uic.uicInput.prototype.hasError=function(){var currentState=this._getInputState();if(currentState.contains(uic.uicInput.STATE_ERROR)){return true;}else{return false;}};uic.uicInput.prototype.setCustomErrorClass=function(customClass){if(customClass===""){this.getInput().removeAttribute(uic.uicInput.ATTRIBUTE_ERROR);}else{this.getInput().setAttribute(uic.uicInput.ATTRIBUTE_ERROR,customClass);}};uic.uicInput.prototype.setMandatory=function(){if(this.isMandatory()){return;}this._saveState();this._removeSpecialClass();this.addValidator(new uic.validator.REQValidator());util.dom.addClass($d(this),uic.uicInput.CLASSNAME_MANDATORY);this._evtFire("STATECHANGE","SETMANDATORY");};uic.uicInput.prototype.isMandatory=function(){var currentState=this._getInputState();if(currentState.contains(uic.uicInput.STATE_MANDATORY)){return true;}else{return false;}};uic.uicInput.prototype.setDisabled=function(){if(this.isDisabled()){return;}this._saveState();this._removeSpecialClass();this.removeValidatorWithType("uic.validator.REQValidator");this.remError();var link=this._get("a");if(link){util.dom.addClass(link,"uicDisabled");}util.dom.addClass($d(this),uic.uicInput.CLASSNAME_DISABLED);util.dom.setReadOnly(this.getInput());util.dom.setDisabled(this.getInput());this._evtFire("STATECHANGE","SETDISABLED");};uic.uicInput.prototype.isDisabled=function(){var currentState=this._getInputState();if(currentState.contains(uic.uicInput.STATE_DISABLED)){return true;}else{return false;}};uic.uicInput.prototype.setReadOnly=function(){if(this.isReadOnly()){return;}this._saveState();this._removeSpecialClass();this.removeValidatorWithType("uic.validator.REQValidator");this.remError();util.dom.addClass($d(this),uic.uicInput.CLASSNAME_READONLY);util.dom.setReadOnly(this.getInput());this._evtFire("STATECHANGE","SETREADONLY");};uic.uicInput.prototype.isReadOnly=function(){var currentState=this._getInputState();if(currentState.contains(uic.uicInput.STATE_READONLY)){return true;}else{return false;}};uic.uicInput.prototype.setPreviousState=function(){var states=this.getPreviousState();if(typeof states=="object"&&states.length){this._applyStates(states);}};uic.uicInput.prototype._applyStates=function(states){if(states.contains(uic.uicInput.STATE_NORMAL)){this.setNormal();}if(states.contains(uic.uicInput.STATE_ERROR)){this.setError();}if(states.contains(uic.uicInput.STATE_MANDATORY)){this.setMandatory();}if(states.contains(uic.uicInput.STATE_DISABLED)){this.setDisabled();}if(states.contains(uic.uicInput.STATE_READONLY)){this.setReadOnly();}};uic.uicInput.prototype._getInputState=function(){var states=[],uicInput=uic.uicInput,errorClass;var classname=$d(this).className;var classes=classname.split(" ");var addStateIfInClassName=function(stateClassname,stateName){if(classname.indexOf(stateClassname)!=-1&&classes.contains(stateClassname)){states.push(stateName);}};addStateIfInClassName(uicInput.CLASSNAME_NORMAL,uicInput.STATE_NORMAL);addStateIfInClassName(uicInput.CLASSNAME_MANDATORY,uicInput.STATE_MANDATORY);addStateIfInClassName(uicInput.CLASSNAME_DISABLED,uicInput.STATE_DISABLED);addStateIfInClassName(uicInput.CLASSNAME_READONLY,uicInput.STATE_READONLY);errorClass=this.getInput().getAttribute(uicInput.ATTRIBUTE_ERROR);addStateIfInClassName(errorClass||uicInput.CLASSNAME_ERROR,uicInput.STATE_ERROR);if(states.length===0){states.push(uicInput.STATE_NORMAL);}return states;};uic.uicInput.prototype.getPreviousState=function(){if(this.previousState){return this.previousState;
}else{return this._getInputState();}};uic.uicInput.prototype._removeSpecialClass=function(){c.removeClass($d(this),[uic.uicInput.CLASSNAME_READONLY,uic.uicInput.CLASSNAME_DISABLED,uic.uicInput.CLASSNAME_NORMAL,uic.uicInput.CLASSNAME_MANDATORY]);util.dom.remReadOnly(this.getInput());util.dom.remDisabled(this.getInput());};uic.uicInput.prototype._saveState=function(){this.previousState=this._getInputState();};uic.uicInput.prototype.destroy=function(){if(uic.uicInput.lastFocused==this){if(uic.uicInput.hideLastContextError){uic.uicInput.hideLastContextError();}uic.uicInput.lastFocused=null;}if(this.getInput()){c.remEvent(this.getInput(),"focus");c.remEvent(this.getInput(),"blur");}if(this.dam&&this.dam.parentNode){c.removeContent(this.dam);}this.dam=null;uic.uicInput.superclass.destroy.call(this);};uic.uicInput.prototype.updateId=function(id){if(!this.getInput&&!id){return false;}var input=this.getInput(),oldId=input.id;input.id=id;util.Section.updateId(oldId,id,this);};c.loader.register("uic.uicInput");uic.uicInput.prototype.showContextError=function(){var text=this.getContextErrorText();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;}var tooltipPos=util.calculateOffset(this.getInput(),"offsetLeft",false)+this.getInput().offsetWidth-46;var scrollLeft=document.documentElement.scrollLeft;var leftPos=false;if(scrollLeft+util.dom.getViewportWidth()<tooltipPos+c._contextErrorDom.offsetWidth){leftPos=true;}var leftOffset=0,topOffset=0;if(leftPos){leftOffset=46-c._contextErrorDom.offsetWidth;}else{leftOffset=this.getInput().offsetWidth-46;}c._contextErrorDom.style.left=(util.calculateOffset(this.getInput(),"offsetLeft",false)+leftOffset)+"px";if(above){topOffset=6-c._contextErrorDom.offsetHeight;}else{topOffset=this.getInput().offsetHeight-4;}c._contextErrorDom.style.top=(util.calculateOffset(this.getInput(),"offsetTop",false)+topOffset)+"px";var remClasses=["uicFCE-upon-left","uicFCE-upon-right","uicFCE-below-left","uicFCE-below-right"];var addClasses=[];if(above&&leftPos){addClasses=["uicFCE-upon-left"];}else{if(above&&!leftPos){addClasses=["uicFCE-upon-right"];}else{if(!above&&leftPos){addClasses=["uicFCE-below-left"];}else{if(!above&&!leftPos){addClasses=["uicFCE-below-right"];}}}}util.dom.replaceClass(c._contextErrorDom,remClasses,addClasses);c._contextErrorDom.style.visibility="visible";c._contextErrorDom._uicInput=this;util.dom.updateShim(c._contextErrorDom.firstChild,{appendToParent:true});util.dom.constrainToViewport(c._contextErrorDom,this.getInput());this.connectContextErrorEvents();}};uic.uicInput.prototype._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});}};uic.uicInput.prototype.hideContextError=function(e){if(!!e&&e.type=="mousedown"){var targ=(e.target)?e.target:e.srcElement;if(targ==this.getInput()||targ==this){return;}}if(c._contextErrorDom&&c._contextErrorDom._uicInput==this){uic.uicInput.hideLastContextError();}this.disconnectContextErrorEvents();};uic.uicInput.prototype.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);}}};uic.uicInput.prototype.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);}}};uic.uicInput.prototype.isContextErrorVisible=function(){if(c._contextErrorDom){if(c._contextErrorDom.style.visibility=="hidden"){return false;}else{return true;}}else{return false;}};uic.uicInput.prototype.setContextErrorText=function(text){text=text||"";if(this.getContextErrorText()){this.getDom().removeAttribute(uic.cste.ATTRIBUTE_ERRORTEXT);}if(text!==""){this.getDom().setAttribute(uic.cste.ATTRIBUTE_ERRORTEXT,text);}};uic.uicInput.prototype.getContextErrorText=function(){return this.getDom().getAttribute(uic.cste.ATTRIBUTE_ERRORTEXT);};uic.uicInput.showLastContextError=function(){var lastFocused=uic.uicInput.lastFocused;if(lastFocused&&util.dom.isVisible(lastFocused.getInput())){if(!lastFocused.validate()){lastFocused.showContextError();var input=lastFocused.getInput();if(util.dom.isFocusable(input)){input.focus();}}}};uic.uicInput.hideLastContextError=function(){if(c._contextErrorDom){c._contextErrorDom.style.visibility="hidden";c._contextErrorDom.style.zIndex="";util.dom.remShim(c._contextErrorDom.firstChild);}};uic.uicInput.prototype.setContextErrorZIndex=function(zIndex){var text=this.getContextErrorText();if(text){if(!c._contextErrorDom){this._createContextErrorDom();}c._contextErrorDom.style.zIndex=zIndex;}};c.require("util.type");c.require("util.Array");uic.uicInput.prototype._initValidation=function(){this.directValidation=true;this._validators=[];this._errorMessages=[];this._errorCodes=[];};uic.uicInput.lastFocused=null;uic.uicInput.prototype.addValidator=function(validator){if(!validator.instanceOf||!validator.instanceOf("uic.validator.GenericValidator")){return this._addValidatorBck.apply(this,arguments);}if(this._validators.contains(validator)){return;}else{var error=validator.getError();if(!error.errorMessage){var errorMessage=this.getContextErrorText();if(errorMessage){validator.setErrorMessage(errorMessage);}}this._validators.push(validator);}};uic.uicInput.prototype.removeValidator=function(validator){if(!validator){this._validators=[];return;}if(!util.lang.instanceOf(validator,"uic.validator.GenericValidator")){return this._removeValidatorBck.apply(this,arguments);}if(!this._validators.contains(validator)){return;}else{this._validators.remove(validator);}};uic.uicInput.prototype.removeValidatorWithType=function(validatorType){for(var i=0,l=this._validators.length;i<l;i++){if(this._validators[i].classname===validatorType){this._validators.splice(i,1);l--;}}};uic.uicInput.prototype.getValidators=function(validatorType){if(!validatorType){return this._validators;}return this.getValidatorsWithType(validatorType);};uic.uicInput.prototype.getValidatorsWithType=function(validatorType){validatorType=uic.validator.ValidatorFactory.getValidatorType(validatorType)||validatorType;var validators=this.getValidators();var validatorsWithType=[];for(var i=0,l=validators.length;i<l;i++){var validator=validators[i];if(validator.instanceOf(validatorType)){validatorsWithType.push(validator);}}return validatorsWithType;};uic.uicInput.prototype.validate=function(isOnBlur){this._errorMessages=[];this._errorCodes=[];if(this.isDisabled()||this.isReadOnly()){return true;}var isValid=true,hasBestValue=false;var value=this.getValue();if(!util.type.isString(value)){return false;}var validator;for(var i=0,l=this._validators.length;i<l;i++){validator=this._validators[i];if(isOnBlur){if(validator.skipDirectValidation){continue;}}var validationReport=validator.validate(value);if(!validationReport.isValid){isValid=false;if(validationReport.errorMessage){this._errorMessages.push(validationReport.errorMessage);}if(validationReport.errorCode){this._errorCodes.push(validationReport.errorCode);}}if(validationReport.bestValue){value=validationReport.bestValue;hasBestValue=true;}}if(hasBestValue){this.setValue(value,true);
}if(!isValid){this.setError();if(this._errorMessages.length){this.setContextErrorText(this._errorMessages[0]);}return false;}else{if(this.hasError()){this.remError();}return true;}};uic.uicInput.prototype.getErrors=function(){var errors=[];for(var i=0,l=this._errorMessages.length;i<l;i++){errors.push({message:this._errorMessages[i],bind:this.getInput().id});}return errors;};uic.uicInput.prototype.getErrorCodes=function(){return this._errorCodes;};uic.uicInput.prototype._addValidatorBck=function(type,errorcls,param){this.getLogger().deprecated("addValidator","addValidator with its new signature","3.2","4.0","bbaliguet");c.require("uic.validator.ValidatorFactory");this.addValidator(uic.validator.ValidatorFactory.getValidator(type,param,this));if(errorcls){this.setCustomErrorClass(errorcls);}};uic.uicInput.prototype._removeValidatorBck=function(type){this.getLogger().deprecated("removeValidatorBck","addValidator with its new signature","3.2","4.0","bbaliguet");if(type==null){this._validators=[];return;}else{c.require("uic.validator.ValidatorFactory");this.removeValidatorWithType(uic.validator.ValidatorFactory.getValidatorType(type));}};uic.uicInput.prototype._initOldValidators=function(){var strValidator=this.getInput().getAttribute(uic.cste.ATTRIBUTE_VALIDATOR);if(strValidator){c.require("uic.validator.ValidatorFactory");var errorText=this.getContextErrorText();var oldValidators=uic.validator.ValidatorFactory.getValidators(strValidator);for(var i=0,l=oldValidators.length;i<l;i++){if(errorText){oldValidators[i].setErrorMessage(errorText);}this.addValidator(oldValidators[i]);}}this.getInput().removeAttribute(uic.cste.ATTRIBUTE_VALIDATOR);};uic.uicInput.prototype._validationOnBlur=function(){if(this.directValidation){this.validate(true);}};a.namespace("aria");aria.EventCommunicationBus=function(){this.events=[];this.frameworkEvents={DOCUMENT_IS_CLICKED:"ARIA.DOCUMENT_IS_CLICKED"};this.useExchange=false;this.id="ARIA_ECB";this.modulename="";this._logger=util.log.getLogger("a.ecb");if(c.browser!=null&&c.browser.isIE){if("external" in window){try{if(typeof window.external.RegisterAppDomain!="undefined"){this.modulename=c.getUrlParam("MODULENAME");this.id="ARIA_ECB_"+this.modulename;window.external.RegisterAppDomain(this.id);YAHOO.util.Event.addListener(window,"unload",function(){window.external.RevokeAppDomain(a.ecb.id);});var appdom=window.external.GetAppDomain(this.id);appdom.Callbacks.Add("ARIA_FIRE_EVENT",function(event,args){a.ecb.fire(event,args);});this.useExchange=true;uic.p.EXCHANGE_STATE="Success";}else{uic.p.EXCHANGE_STATE="Unavailable";}}catch(e){uic.p.EXCHANGE_STATE="failed";}}}};aria.EventCommunicationBus.prototype={declareEvent:function(eventName){if(!(eventName in a.ecb.events)){this._logger.debug("Declaring event "+eventName+".");this.events[eventName]=new YAHOO.util.CustomEvent(eventName);this._wildCardManager(eventName,null);}},_wildCardManager:function(eventName,action){var s=eventName.split(".");var index=0;for(var i=0;i<s.length-1;i++){index=eventName.indexOf(".",index);var evt=eventName.substring(0,index)+".*";if(typeof action!="undefined"&&action==null){if(!(evt in this.events)){this.events[evt]=new YAHOO.util.CustomEvent(evt);}}else{this.events[evt].fire(action,eventName);}index++;}},subscribe:function(eventName,callback,obj,override){if(callback=="undefined"){this._logger.warn("trying to suscribe to event "+eventName+" with an undefined callback method.");}if(!(eventName in this.events)){this.declareEvent(eventName);}this.events[eventName].subscribe(callback,obj,override);this._logger.info("Subscribing to "+eventName+" event.");var panelObj=null;if(obj&&typeof obj=="object"&&obj._ecbEvents){panelObj=obj;}else{if(override&&typeof override=="object"&&override._ecbEvents){panelObj=override;}}if(panelObj){panelObj._ecbEvents.push({name:eventName,func:callback});}},fire:function(){var eventName,args;if(typeof arguments[0]=="string"){eventName=arguments[0];args=arguments[1];}else{if(arguments[1]&&arguments[1].eventName&&arguments[1].args){eventName=arguments[1].eventName;
args=arguments[1].args;}}if(!(eventName in this.events)){this.declareEvent(eventName);}if(args){this._logger.info("Firing event "+eventName,args);}else{this._logger.info("Firing event "+eventName);}this.events[eventName].fire(args);this._wildCardManager(eventName,args);if(this.useExchange){var appdom=window.external.GetAppDomain("SELL_APP_"+this.modulename);if(appdom==null){this._logger.warn("Missing App Domain 'SELL_APP_"+this.modulename+"'");return;}var callback=appdom.Callbacks("SELL_SEND_MESSAGE");if(callback==null){this._logger.warn("Missing callback 'SELL_SEND_MESSAGE'");return;}callback({event:eventName,param:args});}},cleanEvents:function(){for(var i in this.events){if(this.events[i].subscribers){for(var j=0;j<this.events[i].subscribers.length;j++){var obj=this.events[i].subscribers[j].obj;var cb=this.events[i].subscribers[j].fn;if(obj.ns=="aria.ui.Panel"&&!obj.dom.parentNode){this.unsubscribe(i,cb,obj);}}}}for(var e in this.events){if(this.events[e].subscribers&&this.events[e].subscribers.length==0){delete this.events[e];}}},unsubscribe:function(eventName,callback,scope){if(this.events[eventName]){if(this.events[eventName].unsubscribe(callback,scope)){if(this.events[eventName].subscribers.length==0){delete this.events[eventName];}this._logger.info("Unsubscribing from event "+eventName+".");return true;}else{this._logger.warn("Cannot unsubscribe from event "+eventName+". Callback not found.");return false;}}else{this._logger.warn("Cannot unsubscribe from event "+eventName+". Event is not declared.");return false;}}};a.ecb=new aria.EventCommunicationBus();c.loader.register("aria.EventCommunicationBus");uic.loadMng=function(){this.loading=[];this.loaded=[];this.initcomp={};this.initcomp.GENERAL=[];this.onLoaded=[];this.timer=null;this.filebuffer=[];this.sectionsInitializing={};this._logger=util.log.getLogger("c.loadMng");};uic.loadMng.prototype={initializing:function(component,section){this._logger.debug(component+" are initialising in section "+section);if(typeof section=="undefined"){section="GENERAL";}if(!(section in this.initcomp)){this.initcomp[section]=[];}this.initcomp[section].push(component);},initialized:function(component,section){this._logger.debug(component+" was initialised in section "+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"){this._logger.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(){if(!c.windowLoadEventFired){return;}var lM=c.loadMng;var allEmpty=true;if(uic.cste.ESCAPE_WAITING in lM.onLoaded){lM.execSectionUserScript(uic.cste.ESCAPE_WAITING);}var executedSections=[];do{var serialBefore=util.Object.serialize(lM.initcomp);for(var section in lM.initcomp){if(!lM.initcomp.hasOwnProperty(section)||section=="GENERAL"){continue;}if(lM.initcomp[section].length){allEmpty=false;}else{if(!executedSections.contains(section)){lM.execSectionUserScript(section);executedSections.push(section);}}}var serialAfter=util.Object.serialize(lM.initcomp);}while(serialBefore!=serialAfter);if("GENERAL" in lM.onLoaded&&allEmpty){lM.execSectionUserScript("GENERAL");}},execSectionUserScript:function(section){var lM=c.loadMng,cb,k,i;if(section in lM.onLoaded&&!c.loadMng.sectionsInitializing[section]){k=lM.onLoaded[section],i=k.length;while(k.length){cb=k.pop();
try{if(util.type.isFunction(cb)){util.lang.safeSetTimeout(cb,20);}else{this._logger.debug("[CALLBACK] Callback : "+cb);cb._context[cb._callBack]();}if(c.isSet(cb._firedEvent)){this._logger.debug("["+section+"]-> Callback Event");c.require("aria.EventCommunicationBus");a.ecb.fire(cb._firedEvent);}}catch(e){this._logger.error("LOADER:"+section+" ->"+cb+" generate this error : ",e);}}if(lM.onLoaded[section]&&!lM.onLoaded[section].length){delete lM.onLoaded[section];}if(section!="GENERAL"&&lM.initcomp[section]&&!lM.initcomp[section].length){this._logger.debug("LOADER:"+section+" -> Deleted");delete lM.initcomp[section];}}}};c.loadMng=new uic.loadMng();c.onLoad=function(cbfnt,obj,section,firedEvent){c.loadMng.cbOnPageLoaded({method:cbfnt,object:obj,section:section,firedEvent:firedEvent});if(c.windowLoadEventFired){if(section&&!(section in c.loadMng.initcomp)){c.loadMng.execSectionUserScript(section);}else{c.loadMng.executeUserScript();}}};c.onLoad(function(){if(m.__trackerAfter){m.__trackerAfter("application");}});c.loadMng._onWindowLoad=function(){c.windowLoadEventFired=true;c.loadMng.executeUserScript();var initParameters=uic.p;if(initParameters.PACKAGER_MAP){c.require("util.Skin");util.Skin.loadConfiguration(initParameters.SKINNING_SYSTEM_MAP,initParameters.PACKAGER_MAP,initParameters.SKIN);if(util.type.isArray(initParameters.PRELOADED_CSS_FILES)){util.Skin.loadCSSFiles(initParameters.PRELOADED_CSS_FILES);}}YAHOO.util.Event.removeListener(window,"load",c.loadMng._onWindowLoad);};YAHOO.util.Event.addListener(window,"load",c.loadMng._onWindowLoad);if(uic.p.WATCHER){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.DEBUG){YAHOO.util.Event.addListener(window,"load",c.watcherStarter);}else{c.loader.loadFW("Watcher","watcherStarter",c,true);}}_logger=util.log.getLogger("window");$=function(name,scope,sectionArg){if(!util.type.isString(name)){return name;}scope=scope||"";var panid="";var sections=[];if(arguments.length>1){if(util.type.isObject(scope)){sectionArg=sectionArg||scope._section;if(util.type.isArray(sectionArg)){sections=sectionArg;}else{if(util.type.isString(sectionArg)){sections.push(sectionArg);}}if(scope._id){panid="e"+scope._id;}}else{sections.push(scope);panid=sectionArg||"";}}var obj;for(var i=0,l=sections.length;i<l;i++){var section=sections[i];var prefixedSection=panid+section;var prefixedId=prefixedSection+"_"+name+"_id";obj=(util.Section.getElement(prefixedSection,prefixedId)||util.Section.getElement(section,name)||$k(prefixedId));if(obj){return obj;}}obj=(util.Section.getElement("",name)||$k(panid+name)||$k(name));if(obj){return obj;}};$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);});if(!util.dom){util.dom={};}util.dom._logger=util.log.getLogger("util.dom");util.dom.getElementById=function(obj,id){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(!window.getComputedStyle){if(attribute&&element.currentStyle){return element.currentStyle[attribute];}else{return element.currentStyle;}}else{if(attribute){if(window.getComputedStyle(element,null)){return window.getComputedStyle(element,null)[attribute];}return null;}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(node,testVisibility){node=util.type.isString(node)?$k(node):node;node=$d(node);var isNotIFrame=!this.isInIFrame(node);var initialNode=node;while(util.type.isHTMLElement(node)&&(util.dom.getComputedStyle(node,"display")!="none"&&(!testVisibility||util.dom.getComputedStyle(node,"visibility")!="hidden"))&&(isNotIFrame||node.offsetWidth!=0)){node=node.parentNode;}var isVisible;if(util.type.isHTMLElement(node)||node!=document){isVisible=false;}else{isVisible=true;}if(util.browser.isIE){if(util.type.isHTMLElement(initialNode)&&initialNode.tagName=="INPUT"&&initialNode.getAttribute("type")=="hidden"){isVisible=false;}}node=null;initialNode=null;return isVisible;};util.dom.isDisplayed=function(obj){return obj.offsetWidth!=0;};util.dom.isInIFrame=function(){return window!=window.top;};util.dom.initializer=function(componentId,callback,scope){this._logger.debug(componentId+" is invisible");var component=null;var getComputedFloatStyle=util.dom.getComputedFloatStyle;if(typeof componentId=="string"){component=$k(componentId);}else{component=componentId;}component=$d(component);if(!util.type.isHTMLElement(component)){util.dom._logger.warn("util.dom.initializer unable to retrieve the HTML element : "+componentId);return;}scope=scope?scope:component;var ancestorNode=component.parentNode;var firstParent=ancestorNode;var widthAdjust=0;var inDomContainer,offDomParent;if(ancestorNode&&!util.dom.isInDom(ancestorNode)){var parent=ancestorNode;while(parent.parentNode){parent=parent.parentNode;}offDomParent=parent;inDomContainer=document.createElement("div");inDomContainer.className="uicInvisible";document.body.appendChild(inDomContainer);inDomContainer.appendChild(offDomParent);}while(ancestorNode!=null&&!util.dom.isVisible(ancestorNode)){widthAdjust+=getComputedFloatStyle(ancestorNode,"marginLeft");widthAdjust+=getComputedFloatStyle(ancestorNode,"marginRight");widthAdjust+=getComputedFloatStyle(ancestorNode,"paddingLeft");widthAdjust+=getComputedFloatStyle(ancestorNode,"paddingRight");widthAdjust+=getComputedFloatStyle(ancestorNode,"borderLeftWidth");widthAdjust+=getComputedFloatStyle(ancestorNode,"borderRightWidth");ancestorNode=ancestorNode.parentNode;}if(ancestorNode!=null){widthAdjust+=getComputedFloatStyle(ancestorNode,"paddingLeft");widthAdjust+=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);el=null;}if(util.type.isHTMLElement(inDomContainer)){if(offDomParent.parentNode==inDomContainer){inDomContainer.removeChild(offDomParent);}document.body.removeChild(inDomContainer);}};util.dom.isInBorderLayout=function(el){var node=$d(el);var result=false;while(util.type.isHTMLElement(node)){if(c.hasClass(node,"ylayout-panel-body")&&node.borderLayoutRegion){result=node;break;}node=node.parentNode;}return result;};util.dom.isInDom=function(el){var node=$d(el);try{while(node.parentNode!=document.body){if(node.parentNode){node=node.parentNode;}else{return false;}}}catch(e){return false;}return true;};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;}domObj=null;}: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]);}}}domObj=null;}:function(){};util.dom.debugObject=function(obj,sep,iter){this._logger.info("this function is deprecated");};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{this._logger.error("toggle_visibility: Impossible object is null");}};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{this._logger.error("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{this._logger.error("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,isJS){if(typeof inputText!="string"){return;}if(isJS!==true){inputText=inputText.replace(/\n/g,"");inputText=inputText.replace(/\r/g,"");if(inputText==""||typeof inputText=="undefined"){return;}var srcExpression=/^([^<]*?)<script([^>]*?)src=(\"|\')((([^>]*)\/(.*?)\.js)|(([^\/]*)\.js))(\"|\')([^>]*?)(\/>|>([^<]*?)<\/script>)(.*)/i;var srcResult=srcExpression.exec(inputText);if(srcResult!=null){util.dom.executeJS(srcResult[14]);}else{var scriptExpression=/^([\s\S]*?)<script(.*?)>([\s\S]*?)<\/script>([\s\S]*)/i;var scriptResult=scriptExpression.exec(inputText);if(scriptResult!=null){eval(scriptResult[3]);util.dom.executeJS(scriptResult[4]);}}}else{eval(inputText);}};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){util.dom.replaceClass(el,false,className);};c.addClass=util.dom.addClass;util.dom.removeClass=function(el,className){util.dom.replaceClass(el,className,false);};c.removeClass=util.dom.removeClass;util.dom.replaceClass=function(el,oldClassName,newClassName){var rem=[],add=[],length=0;el=$d(el);if(!el){return;}else{if(util.type.isString(el)){el=[$k(el)];length=1;}else{if(!util.type.isArray(el)){el=[el];length=1;}else{length=el.length;}}}if(!!oldClassName){rem=(typeof oldClassName=="string")?oldClassName.split(" "):oldClassName;}if(!!newClassName){add=(typeof newClassName=="string")?newClassName.split(" "):newClassName;}while(length--){var classString=el[length].className,found=false;var classes=!!classString?classString.split(" "):[];for(var j=classes.length-1;j>=0;j-=1){for(var d=add.length-1;d>=0;d-=1){if(classes[j]==add[d]){classes.splice(j,1);}}for(var k=rem.length-1;k>=0;k-=1){if(classes[j]==rem[k]){classes.splice(j,1);found=true;}}}if(!found&&add.length==0){continue;}classes.push.apply(classes,add);el[length].className=classes.join(" ");}};c.replaceClass=util.dom.replaceClass;util.dom.hasClass=function(el,className,all){el=$d(el);if(!el||!className){return false;}else{if(util.type.isString(el)){el=$k(el);if(!el){return false;}}else{if(util.type.isArray(el)){var results=[];for(var i=0,l=el.length;i<l;i++){results[i]=util.dom.hasClass(el[i],className,all);}return results;}}}all=!!all;if(util.type.isString(className)){className=[className];}var classString=el.className,found=false,classes=!!classString?classString.replace(/[\n\r\t]+/g," ").split(" "):[];if(all){for(var i=className.length;i--;){if(classes.indexOf(className[i])<0){return false;}}return true;}else{for(var i=className.length;i--;){if(classes.indexOf(className[i])>-1){return true;}}return false;}};c.hasClass=util.dom.hasClass;util.dom.isReadOnly=function(el){var readonly=el.getAttribute("readOnly");if(typeof readonly=="boolean"){return readonly;}if(typeof readonly=="string"){return readonly.toLowerCase()=="readonly";}else{return false;}};util.dom.isDisabled=function(el){var disabled=el.getAttribute("disabled");if(typeof disabled=="boolean"){return disabled;}if(typeof disabled=="string"){return disabled.toLowerCase()=="disabled";}else{return false;}};util.dom.setReadOnly=function(el){el.setAttribute("readOnly","readonly");};util.dom.setDisabled=function(el){el.setAttribute("disabled","disabled");};util.dom.remReadOnly=function(el){el.removeAttribute("readOnly");};util.dom.remDisabled=function(el){el.removeAttribute("disabled");};util.dom.getAncestor=function(el,nodeName){var node=$d(el);nodeName=nodeName.toUpperCase();node=node.parentNode;while(node!=null&&node!=document){if(node.nodeName==nodeName){return node;}else{node=node.parentNode;}}return document;};util.dom.isAncestor=function(parent,child){parent=$d(parent);child=$d(child);return YAHOO.util.Dom.isAncestor(parent,child);};util.dom.getAncestorBy=function(node,method){while((node=node.parentNode)){if(node&&node.nodeType==1&&(!method||method(node))){return node;}}return null;};util.dom.getAncestorByClassName=function(node,className){var method=function(el){return util.dom.hasClass(el,className);};return util.dom.getAncestorBy(node,method);};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=(['"]?)([a-zA-Z0-9_\-\:\.]*['"]?)/ig," id=$1e"+id+"$2");
}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){var 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,scope){for(var i=0,l=el.length;i<l;i++){iterator.call(scope,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._getElementsByName_iefix=function(tag,name){var elem=document.getElementsByTagName(tag);var arr=new Array();for(var i=0,iarr=0;i<elem.length;i++){var att=elem[i].getAttribute("name");if(att==name){arr[iarr]=elem[i];iarr++;}}return arr;};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=$d(obj);if(!opt){opt={};}var offset=opt.offset||0;var height=opt.height||obj.offsetHeight;var width=opt.width||obj.offsetWidth;var position=opt.position||false;var marginTop=opt.marginTop||0;var ref=ref||{offsetWidth:0,offsetHeight:0};var oTop=opt.oTop||util.calculateOffset(obj,"offsetTop");var 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 newLeft=0;var widthDiff=oLeft+width-(util.dom.getClientWidth()+document.documentElement.scrollLeft);if(0<widthDiff){newLeft=(obj.offsetLeft-widthDiff);}if(0>oLeft){newLeft=1;}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(obj){obj=$d(obj).offsetParent;while(obj){if(util.getCSSProperty(obj,"visibility")=="hidden"){return true;}obj=obj.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.renderVisible=function(obj){var o=$d(obj);var oTop=util.calculateRelativeOffset(o,"offsetTop"),oHeight=o.offsetHeight;var reference=o;var testOnBody=!c.browser.isIE;o=o.parentNode;while(o&&o!=document){if(o.scrollHeight-o.offsetHeight>10&&(testOnBody||o!=document.body)){o.scrollTop=util.calculateRelativeOffset(reference,"offsetTop",o);reference=o;}if(util.getCSSProperty(o,"visibility")=="hidden"){return true;}o=o.parentNode;}if(oTop>util.dom.getViewportHeight()){document.documentElement.scrollTop=oTop;}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.selectorEngine");el=$d(el);var a=[];var getFirstVisible=function(array){var i=0;var len=array.length;while(i<len){if(util.dom.isFocusable(array[i])){break;}i++;}if(i<len&&array[i]){return array[i];}else{return false;}};a._push=function(el){if(el){a.push(el);}};a._push(getFirstVisible($$("a[href]",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];var mTop=util.calculateOffset(m,"offsetTop");var 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(util.dom.isFocusable(focusEl)){focusEl.focus();}};util.dom.isFocusable=function(el){el=$d(el);
if((el&&el.tagName&&el.tagName.toLowerCase&&"textareainputselectbutton".indexOf(el.tagName.toLowerCase())!=-1)&&!util.dom.isDisabled(el)&&util.dom.isVisible(el,true)&&util.dom.getComputedStyle(el,"visibility")!="hidden"){return true;}else{return false;}};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){util.log.getLogger("util.dom").info("The unitConverter.getPxSize could not convert unit "+unit);util.dom.UnitConverter[unit]=1;}document.body.removeChild(el);delete el;}return util.dom.UnitConverter[unit];}};util.dom.createStyleSheet=function(cssText,id){var ss=null;var id=(typeof id=="string")?id:"";if(c.browser.isIE){try{for(var i=0;i<document.styleSheets.length;i++){var stylesheet=document.styleSheets[i];if(stylesheet.owningElement.id==id){ss=stylesheet;}}if(ss==null){var styleTag=document.createElement("style");styleTag.id=id;document.documentElement.firstChild.appendChild(styleTag);ss=styleTag.styleSheet;}ss.cssText+=cssText;}catch(e){if(document.styleSheets.length==31){c.error("YAHOO.ext.util.CSS.createStyleSheet crashed. Too many CSS files (31 max on IE).");}else{c.error("YAHOO.ext.util.CSS.createStyleSheet crashed.");}}}else{var head=document.getElementsByTagName("head")[0];var styleTag=document.createElement("style");styleTag.setAttribute("type","text/css");try{styleTag.appendChild(document.createTextNode(cssText));}catch(e){styleTag.cssText=cssText;}head.appendChild(styleTag);ss=document.styleSheets[document.styleSheets.length-1];}return ss;};util.dom.focusWithContainer=function(focusEl,container){if(util.dom.isFocusable(focusEl)){if(util.dom.isScrolledOut(container)){util.dom.renderVisible(container);}focusEl.focus();}};util.dom._isCSS1Compat=(function(){var compatMode=document.compatMode;if(compatMode=="CSS1Compat"){return true;}else{return false;}})();util.dom.getDocumentOverflowElement=function(){var docElement=document.documentElement;if(docElement&&util.type.isHTMLElement(docElement)){util.dom._documentOverflowElement=docElement;util.dom.getDocumentOverflowElement=function(){return util.dom._documentOverflowElement;};return util.dom.getDocumentOverflowElement();}else{return{style:{overflow:""}};}};util.dom.getDocumentScrollElement=function(){var docElement=(!(util.browser.isSafari||util.browser.isChrome)&&util.dom._isCSS1Compat)?document.documentElement:document.body;if(docElement){util.dom._documentScrollElement=docElement;util.dom.getDocumentScrollElement=function(){return util.dom._documentScrollElement;};return util.dom.getDocumentScrollElement();}else{return{scrollTop:0,scrollLeft:0};}};util.dom._getDocumentScrollLeft=function(){return this.getDocumentScrollElement().scrollLeft;};util.dom._getDocumentScrollTop=function(){return this.getDocumentScrollElement().scrollTop;};util.dom._getDocumentScroll=function(){var scrollLeft=this._getDocumentScrollLeft();var scrollTop=this._getDocumentScrollTop();var scroll={scrollLeft:scrollLeft,scrollTop:scrollTop};return scroll;};util.dom.getFactoryDiv=function(){if(!util.type.isHTMLElement(util.dom._factoryDiv)){util.dom._factoryDiv=document.createElement("div");util.dom.getFactoryDiv=function(){return util.dom._factoryDiv;};return util.dom.getFactoryDiv();}};util.dom.calculateSize=function(element,sizeConf){c.require("util.style");sizeConf=sizeConf||{};var div=util.dom._getCalculateSizeDiv();if(sizeConf.height!==null||sizeConf.width!=null){div.addStyleProperty(new util.style.Size(sizeConf));}div.render();var innerHTML=element.innerHTML;div.getDom().innerHTML=innerHTML;var size=util.dom._getSize(div);if(size.height>sizeConf.maxHeight){div.addStyleProperty(new util.style.Size({height:sizeConf.maxHeight}));div.render();size=util.dom._getSize(div);size=new util.style.Size({height:sizeConf.maxHeight,width:size.width});
}else{if(size.width>sizeConf.maxWidth){div.addStyleProperty(new util.style.Size({width:sizeConf.maxWidth}));div.render();size=util.dom._getSize(div);size=new util.style.Size({width:sizeConf.maxWidth,height:size.height});}}div.getDom().innerHTML="";return size;};util.dom._getSize=function(element){var element=$d(element);c.require("util.style");var size=new util.style.Size({height:element.offsetHeight,width:element.offsetWidth});return size;};util.dom._getCalculateSizeDiv=function(){c.require("util.style");if(!util.type.isHTMLElement(util.dom._calculateSizeDiv)){var _calculateSizeDiv=new uic.DomElementWrapper();_calculateSizeDiv.dam=document.createElement("div");_calculateSizeDiv.addStyleProperty(new util.style.Offset({top:0,left:0}));_calculateSizeDiv.addStyleProperty(new util.style.Position({position:"absolute"}));_calculateSizeDiv.styleProperties.properties.display="block";if(util.browser.isIE6){_calculateSizeDiv.styleProperties.properties.overflow="hidden";}_calculateSizeDiv.styleProperties.properties.visibility="hidden";_calculateSizeDiv.render();document.body.appendChild(_calculateSizeDiv.getDom());util.dom._calculateSizeDiv=_calculateSizeDiv;util.dom._getCalculateSizeDiv=function(){return util.dom._calculateSizeDiv;};return util.dom._getCalculateSizeDiv();}};util.dom.createNodeFromString=function(markupString){var factoryDiv=util.dom.getFactoryDiv();factoryDiv.innerHTML=markupString;var node=factoryDiv.firstChild;factoryDiv.removeChild(node);if(util.type.isHTMLElement(node)){return node;}else{util.log.getLogger("util.dom").error("error in createNodeFromString. Could not create node. Solve before integration.");}};util.dom.setInnerHTML=util.browser.isIE?function(domElement,content){content="<form></form>"+content;domElement.innerHTML=content;domElement.removeChild(domElement.getElementsByTagName("form")[0]);}:function(domElement,content){domElement.innerHTML=content;};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){var 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|multiselect".indexOf(domObject.tag.toLowerCase())!=-1){switch(domObject.tag){case"DatePicker":var value=jsObject.getJRESDate();break;case"Multiselect":var value=jsObject.getCodes().join(",");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();var value=jsObject.getJRESDate();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){var 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("&");}};util.dom.shimManager=function(){this.targets=[];this.usedFrames=[];this.frames=[];this.bindings=[];};a.extend("util.dom.ShimManager","aria.lang.JsObject");util.dom.shimManager.prototype={addShim:function(box,o){if(o&&o.appendToParent){o.body=false;}box=$d(box);this.check();this.targets.push(box);this.assignFrame(box,o);},remShim:function(box){box=$d(box);this.check();this.removeTarget(box);this.releaseFrame(box);},updateShim:function(box,o){if(o&&o.appendToParent){o.body=false;}box=$d(box);this.check();var frame=this.getUsedFrame(box);if(frame){this.displayShim(frame,box,o);}else{this.addShim(box,o);}},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(frame,box){if(box.style&&box.style.zIndex){frame.style.zIndex=(box.style.zIndex||1)-1;}else{if(box){frame.style.zIndex=util.dom.calculateZIndex(box)-1;}}},hideShim:function(frame){if(frame.parentNode!=document.body){document.body.appendChild(frame);}frame.style.display="none";
frame.style.visibility="hidden";frame.style.left="-15000px";frame.style.top="-15000px";},createShim:function(){var frame=document.createElement("iframe");frame.src=uic.p.FRAMEWORK_DOCUMENT_ROOT+"img/corporate_square_bullet.gif";util.dom.addClass(frame,"uicShim");frame.setAttribute("frameBorder","0");frame.setAttribute("scrolling","no");document.body.appendChild(frame);frame.style.position="absolute";frame.style.display="none";frame.style.visibility="hidden";return frame;},displayShim:function(frame,box,options){var p={body:true,left:0,top:0};c.extend(p,options);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";frame.style.visibility="visible";}};if(!util.browser.isIE6){util.dom.addShim=util.dom.remShim=util.dom.updateShim=function(){};}else{a.shimManager=new util.dom.shimManager();util.dom.addShim=function(box,o){a.shimManager.addShim(box,o);};util.dom.remShim=function(box){a.shimManager.remShim(box);};util.dom.updateShim=function(box,o){a.shimManager.updateShim(box,o);};}c.loader.register("util.dom");uic.Check=function(){this.error={};this.error.code=0;this.error.message="";};a.extend("uic.Check","aria.lang.JsObject");uic.Check.prototype.addCallBack=function(_object,fnt){this.getLogger().deprecated("addCallBack","use yourObject.addValidator(yourCustomValidator) instead","3.2","4.0","bbaliguet");var uicObj=c.getUICParent(_object,null,true);if(uicObj&&uicObj.instanceOf&&uicObj.instanceOf("uic.uicInput")){uicObj._addValidatorBck("METHOD",null,fnt);}};uic.Check.prototype.validate=function(_object,force){this.getLogger().deprecated("validate","use yourObject.validate() instead","3.2","4.0","bbaliguet");var uicObj=c.getUICParent(_object,null,true);if(uicObj&&uicObj.instanceOf&&uicObj.instanceOf("uic.uicInput")){return uicObj.validate(!force);}return false;};uic.Check.prototype.validateOnSubmit=function(formObj){formObj=$d(formObj);util.dom.each(formObj,function(el){var uicObj=c.getUICParent(el,null,true);if(uicObj&&uicObj.instanceOf&&uicObj.instanceOf("uic.uicInput")){uicObj.directValidation=false;}});YAHOO.util.Event.addListener(formObj,"submit",uic.Check._checkFormCB,formObj);};uic.Check.prototype._checkFormCB=function(){if(!arguments[1]){return false;}return uic.Check.checkForm(arguments[1],false);};uic.Check.prototype.checkForm=function(formObj){formObj=$d(formObj);var ret=true;var uicObjects=[];util.dom.each(formObj,function(el){var uicObj=c.getUICParent(el,null,true);if(uicObjects.contains(uicObj)){return;}uicObjects.push(uicObj);if(uicObj&&uicObj.instanceOf&&uicObj.instanceOf("uic.uicInput")){ret=uicObj.validate()&&ret;}});return ret;};uic.Check.prototype.showLastContextError=function(){uic.uicInput.showLastContextError();};uic.Check.prototype.hideLastContextError=function(){uic.uicInput.hideLastContextError();};uic.Check.prototype.getFormInputStatus=function(formObj){formObj=$d(formObj);var ret=[];var uicObjects=[];util.dom.each(formObj,function(el){var uicObj=c.getUICParent(el,null,true);if(uicObjects.contains(uicObj)){return;}uicObjects.push(uicObj);if(uicObj&&uicObj.instanceOf&&uicObj.instanceOf("uic.uicInput")){var isValid=uicObj.validate();if(!isValid){var errCode;if(uicObj.getErrors().length>0){errCode=uicObj.getErrors()[0].message;}else{errCode="";}ret.push({input:uicObj.getInput(),status:false,errCode:errCode});}else{ret.push({input:uicObj.getInput(),status:true});}}});return ret;};uic.Check.prototype.addValidator=function(type,object,errorcls,param){this.getLogger().deprecated("addValidator","this.addValidator with its new signature","3.2","4.0","bbaliguet");var uicObj=c.getUICParent(object,null,true);uicObj._addValidatorBck(type,errorcls,param);};uic.Check.prototype.removeValidator=function(type,object){this.getLogger().deprecated("removeValidator","this.removeValidator with its new signature","3.2","4.0","bbaliguet");
var uicObj=c.getUICParent(object,null,true);uicObj._removeValidatorBck(type);};uic.Check=new uic.Check();c.loader.register("uic.Check");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;this._logger=util.log.getLogger("util.key");};util.key._logger=util.log.getLogger("util.key");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)){util.keyCode._logger.debug("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){util.keyCode._logger.error("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;var 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);this.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");a.namespace("util");util.I18n=function(options){this._bundle=null;this._bundlePath=(typeof options.bundlePath=="undefined")?uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.FRAMEWORK_RESOURCES:options.bundlePath;this._language=(!options.language||!util.type.isString(options.language))?"GB":options.language.toUpperCase();this._bundleType=(typeof options.bundleType=="undefined")?"js":options.bundleType;this._logger=util.log.getLogger("util.I18n");this._bundleName=(typeof options.bundleName=="undefined")?"":this.setBundle(options.bundleName);};util.I18n.prototype.get=function(key,bundleName,params){var savedbundle=this._oBundle;if(typeof bundleName!="undefined"&&bundleName!=null){this.setBundle(bundleName);}if(!this._objBundle){this._objBundle=c.getRef(this._oBundle);}if(this._objBundle!=null){var value=c.getRef(this._oBundle+"."+key);if(value){if(params!=undefined){for(var i=0,k=params,j=k.length;i<j;i++){value=value.replace("{"+i+"}",k[i]);}}}else{this._logger.error(key+" not found in Bundle "+this._oBundle);return key;}if(typeof value=="string"){return value;}else{this._logger.error(key+" not found in Bundle "+this._oBundle);return key;}}else{this._logger.warn("You must specify a bundle first "+this._oBundle);}this._oBundle=savedbundle;};util.I18n.prototype.setBundle=function(bundleName){bundleName=bundleName.replace(/-/g,"_");var realBundle="c.bundles."+bundleName+"."+this._language;a.namespace(realBundle);this._bundlePath+=(this._bundlePath.lastIndexOf("/")==(this._bundlePath-1))?"":"/";c.loader.createLoader(bundleName+"_"+this._language,this._bundlePath+bundleName+"_"+this._language,this._bundleType,false);var data=c.loader._load(this._bundlePath,bundleName+"_"+this._language,false);if(typeof data!="boolean"){data=data.trim();var s="";if(data.indexOf("\r\n")!=-1){s="\r\n";}if(s==""&&data.indexOf("\n")!=-1){s="\n";}if(s==""&&data.indexOf("\r")!=-1){s="\r";}var aKeysValues=[data];if(s!=""){aKeysValues=data.split(s);}var evalStringArray=[];for(var kv=0;kv<aKeysValues.length;kv++){var akeyval=aKeysValues[kv].trim();akeyval=akeyval.split("=");if(akeyval[0]!=""){for(var i=2;i<akeyval.length;i++){akeyval[1]+="="+akeyval[i];}akeyval[1]=akeyval[1].replace(/''/g,"'");akeyval[1]=akeyval[1].replace(/'/g,"\\'");var namespace=realBundle+"."+akeyval[0].substring(0,akeyval[0].lastIndexOf("."));a.namespace(namespace);evalStringArray.push(realBundle+"."+akeyval[0]+"='"+akeyval[1]+"';\n");}}evalStringArray.push("this._objBundle = "+realBundle+";");
eval(evalStringArray.join(""));this._bundleName=bundleName;this._oBundle=realBundle;}else{if(!data){this._logger.warn("Can't load bundle "+this._bundlePath+bundleName+"_"+this._language);}else{this._bundleName=bundleName;this._oBundle=realBundle;this._objBundle=null;}}};util.I18n.prototype.getBundleObject=function(){return this._objBundle;};util.I18n.prototype.setLanguage=function(language){this._language=language;};util.I18n.prototype.setBundlePath=function(bundlePath){this._bundlePath=bundlePath;};c.loader.register("util.I18n");c.require("util.I18n");c.require("util.date");c.require("util.type");util.dateFormat=function(){this.tokPat=/^(yyyy|MMMMM|EEEE|MMMM|EEE|EE|MMM|dd|mm|MM|yy|HH|ss|m|M|d|H|s|h|a)/;this.timeCheck=/^([\.: aHhmsS])*$/;this.dateCheck=/^((U|I)?[\/\.: yMd])*$/;this.amPmPat=/^(a|p|am|pm|a\.m\.|p\.m\.)/i;this.lowermonthshort=[];this.monthshort=[];this.monthlong=[];this.monthIATA=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"];this.weekslong=[];this.weeksshort=[];this.dateBundle=new util.I18n({language:uic.p.SITE_LANGUAGE,bundleName:"date"});this._loadBundle();this.cutOffDate=new Date("01/01/1950");var weeksshort2_regexp="";var weeksshort3_regexp="";var weekslong_regexp="^";var separator="|";for(var i=0;i<this.weekslong.length;i++){if(i==this.weekslong.length){separator="";}weeksshort2_regexp+=this.weeksshort[i].toLowerCase()+separator;weeksshort3_regexp+=this.weekslong[i].substr(0,3).toLowerCase()+separator;weekslong_regexp+=this.weekslong[i].toLowerCase()+separator;}var mon_regexp="";var month_regexp="^";var separator="|";for(var i=0;i<this.monthlong.length;i++){if(i==this.monthlong.length){separator="";}mon_regexp+=this.monthshort[i].toLowerCase()+separator;month_regexp+=this.monthlong[i].toLowerCase()+separator;}var month_IATA_regexp="jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec";this.weeksshort2PatArr=[];this.weeksshort3PatArr=[];this.weekslongPatArr=[];this.monPatArr=[];this.monIATAPatArr=[];this.monthPatArr=[];this.weeksshort2PatArr.EE=new RegExp(weeksshort2_regexp);this.weeksshort3PatArr.EEE=new RegExp(weeksshort3_regexp);this.weekslongPatArr.EEEE=new RegExp(weekslong_regexp);this.monPatArr.MMM=new RegExp(mon_regexp);this.monIATAPatArr.MMM=new RegExp(month_IATA_regexp);this.monthPatArr.MMMMM=new RegExp(month_regexp);this.monthPatArr.MMMM=new RegExp(month_regexp);this.parsingError=null;};util.dateFormat.NAMESPACE_LONGDATE="uic.r.longdate";util.dateFormat.NAMESPACE_SHORTDATE="uic.r.shortdate";util.dateFormat.prototype._createArrayFromBundle=function(keys,bundleNamespace){var anArray=[];util.array.each(keys,function(element){anArray.push(this.dateBundle.get([bundleNamespace,element].join(".")));},this);return anArray;};util.dateFormat.prototype._loadBundle=function(){var longMonthKeys=["january","february","march","april","may","june","july","august","september","october","november","december"];var longWeekDayKeys=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];var shortMonthKeys=util.array.map(longMonthKeys,function(element){return element.substr(0,3);});var shortWeekDayKeys=util.array.map(longWeekDayKeys,function(element){return element.substr(0,3);});this.monthshort=this._createArrayFromBundle(shortMonthKeys,util.dateFormat.NAMESPACE_SHORTDATE);this.weeksshort=this._createArrayFromBundle(shortWeekDayKeys,util.dateFormat.NAMESPACE_SHORTDATE);this.monthlong=this._createArrayFromBundle(longMonthKeys,util.dateFormat.NAMESPACE_LONGDATE);this.weekslong=this._createArrayFromBundle(longWeekDayKeys,util.dateFormat.NAMESPACE_LONGDATE);this.lowermonthshort=this._createArrayFromBundle(shortMonthKeys,util.dateFormat.NAMESPACE_SHORTDATE);this.lowermonthshort=util.array.map(this.lowermonthshort,function(element){return element.toLowerCase();});this._duplicateDateResourcesForBackward();};util.dateFormat.prototype._interprate=function(code,date,isIATA){switch(code){case"m":return date.getMinutes();case"mm":var min=date.getMinutes();if(min>9){return min;}return"0"+min;case"M":return date.getMonth()+1;
case"MM":var mon=date.getMonth()+1;if(mon>9){return mon;}return"0"+mon;case"EE":return this.weeksshort[date.getDay()].capitalize();case"EEE":return this.weekslong[date.getDay()].capitalize().substring(0,3);case"EEEE":return this.weekslong[date.getDay()].capitalize();case"MMM":if(isIATA){return this.monthIATA[date.getMonth()];}else{return this.monthshort[date.getMonth()].capitalize();}case"MMMMM":return this.monthlong[date.getMonth()].capitalize();case"MMMM":return this.monthlong[date.getMonth()].capitalize();case"d":return date.getDate();case"dd":var day=date.getDate();if(day>9){return day;}return"0"+day;case"H":return date.getHours();case"HH":var hour=date.getHours();if(hour>9){return hour;}return"0"+hour;case"h":var hour=date.getHours()%12;if(hour===0){hour=12;}return hour;case"s":return date.getSeconds();case"ss":var sec=date.getSeconds();if(sec>9){return sec;}return"0"+sec;case"yy":var year=date.getFullYear()%100;if(year<10){return"0"+year;}return year;case"yyyy":return date.getFullYear();case"a":return(date.getHours()>=12)?"PM":"AM";}};util.dateFormat.prototype.computeCutOffYear=function(mindate,today){return util.date.getCutOffDate(mindate,null,today).getFullYear()-1900;};util.dateFormat.prototype.getDate=function(pattern,sdate,strict,cutOffDate,options){if(sdate.length==0){return null;}if(strict===false){if(this.timeCheck.test(pattern)){var timeTemp=this._decodeTimeShortcut(pattern,sdate);if(timeTemp!==null){return timeTemp;}}if(this.dateCheck.test(pattern)){var dateTemp=this._decodeDateShortcut(pattern,sdate,cutOffDate);if(dateTemp!==null){return dateTemp;}}}var isIATA=(pattern.substring(0,1)=="I");if(isIATA){pattern=pattern.substring(1);if(pattern!="ddMMMyyyy"&&pattern!="ddMMMyy"){return"";}}var tokArr=this._parseFormatString(pattern,options);var strInd=0;var tokInd=0;var ampm="";var intMonth,intDay,intYear,intHour,intMin,intSec,strOffset;cutOffDate=util.type.isDate(cutOffDate)?cutOffDate:this.cutOffDate;var curdate=new Date();intMonth=curdate.getMonth()+1;intDay="noday";intYear=curdate.getFullYear();var yearAuto=true;var checkAgainstCutOff=false;intHour=1;intMin=0;intSec=0;while(strInd<sdate.length&&tokInd<tokArr.length){if(tokArr[tokInd].type=="literal"){if(sdate.indexOf(tokArr[tokInd].token,strInd)==strInd){strInd+=tokArr[tokInd++].token.length;continue;}else{return this._returnError("DATE1");}}switch(tokArr[tokInd].token){case"m":case"d":case"D":case"h":case"H":case"s":case"S":case"M":var curChar=sdate.charAt(strInd);var nextChar=sdate.charAt(strInd+1);var matchArr=sdate.substr(strInd).match(/^\d{1,2}/);if(matchArr==null){switch(tokArr[tokInd].token){case"d":var unit="day";break;case"M":var unit="month";break;case"m":var unit="minute";break;case"h":ampm="true";var unit="hour";break;case"H":var unit="hour";break;case"s":var unit="second";break;}return this._returnError("DATE2","Bad "+unit+' "'+curChar+'" or "'+curChar+nextChar+'".');}strOffset=matchArr[0].length;switch(tokArr[tokInd].token){case"M":intMonth=parseInt(matchArr[0],10);break;case"d":intDay=parseInt(matchArr[0],10);break;case"m":intMin=parseInt(matchArr[0],10);break;case"h":ampm=(ampm=="")?"am":ampm;intHour=parseInt(matchArr[0],10);break;case"H":intHour=parseInt(matchArr[0],10);break;case"s":intSec=parseInt(matchArr[0],10);break;}break;case"MM":case"mm":case"dd":case"HH":case"ss":strOffset=2;matchArr=sdate.substr(strInd).match(/^\d{2}/);if(matchArr==null){switch(tokArr[tokInd].token){case"MM":var unit="month";break;case"dd":var unit="day";break;case"mm":var unit="minute";break;case"HH":var unit="hour";break;case"ss":var unit="second";break;}return this._returnError("DATE3","Bad "+unit+' "'+sdate.substr(strInd,2)+'".');}switch(tokArr[tokInd].token){case"MM":intMonth=parseInt(matchArr[0],10);break;case"dd":intDay=parseInt(matchArr[0],10);break;case"mm":intMin=parseInt(matchArr[0],10);break;case"HH":intHour=parseInt(matchArr[0],10);break;case"ss":intSec=parseInt(matchArr[0],10);break;}break;case"y":yearAuto=false;if(sdate.substr(strInd,4).search(/\d{4}/)!=-1){intYear=parseInt(sdate.substr(strInd,4),10);
strOffset=4;}else{if(sdate.substr(strInd,2).search(/\d{2}/)!=-1){intYear=1900+parseInt(sdate.substr(strInd,2),10);checkAgainstCutOff=true;strOffset=2;}else{return this._returnError("DATE4",'Bad year "'+sdate.substr(strInd,2)+'". Must be two or four digits.');}}break;case"yy":case"YY":yearAuto=false;if(sdate.substr(strInd,2).search(/\d{2}/)!=-1){intYear=1900+parseInt(sdate.substr(strInd,2),10);checkAgainstCutOff=true;strOffset=2;}else{return this._returnError("DATE5",'Bad year "'+sdate.substr(strInd,2)+'". Must be two digits.');}break;case"yyyy":case"Y":yearAuto=false;if(sdate.substr(strInd,4).search(/\d{4}/)!=-1){intYear=parseInt(sdate.substr(strInd,4),10);strOffset=4;}else{return this._returnError("DATE6",'Bad year "'+sdate.substr(strInd,4)+'". Must be four digits.');}break;case"MMM":var monPat=isIATA?this.monIATAPatArr[tokArr[tokInd].token]:this.monPatArr[tokArr[tokInd].token];var matchArray=sdate.substr(strInd).toLowerCase().match(monPat);if(matchArray==null||matchArray.length==0||matchArray[0]==""){var caseStat="between Jan and Dec";return this._returnError("DATE7",'Bad month "'+sdate.substr(strInd,3)+'". Must be '+caseStat+".");}if(isIATA){intMonth=this.monthIATA.indexOf(matchArray[0].toUpperCase())+1;}else{intMonth=this.lowermonthshort.indexOf(matchArray[0].toLowerCase())+1;}strOffset=matchArray[0].length;break;case"MMMM":case"MMMMM":var monPat=this.monthPatArr[tokArr[tokInd].token];var matchArray=sdate.substr(strInd).toLowerCase().match(monPat);if(matchArray==null||matchArray.length==0||matchArray[0]==""){return this._returnError("DATE8","Can't find a month beginning at \""+sdate.substr(strInd)+'".');}intMonth=this.lowermonthshort.indexOf(matchArray[0].substr(0,3).toLowerCase())+1;strOffset=matchArray[0].length;break;case"EE":var weekPat=this.weeksshort2PatArr[tokArr[tokInd].token];var matchArray=sdate.substr(strInd).toLowerCase().match(weekPat);if(matchArray==null||matchArray.length==0||matchArray[0]==""){var caseStat="between Sun and Sat";return this._returnError("DATE21",'Bad week day "'+sdate.substr(strInd,3)+'". Must be '+caseStat+".");}strOffset=matchArray[0].length;break;case"EEE":var weekPat=this.weeksshort3PatArr[tokArr[tokInd].token];var matchArray=sdate.substr(strInd).toLowerCase().match(weekPat);if(matchArray==null||matchArray.length==0||matchArray[0]==""){var caseStat="between Sun and Sat";return this._returnError("DATE21",'Bad week day "'+sdate.substr(strInd,3)+'". Must be '+caseStat+".");}strOffset=matchArray[0].length;break;case"EEEE":var weekPat=this.weekslongPatArr[tokArr[tokInd].token];var matchArray=sdate.substr(strInd).toLowerCase().match(weekPat);if(matchArray==null||matchArray.length==0||matchArray[0]==""){return this._returnError("DATE22","Can't find a week day beginning at \""+sdate.substr(strInd)+'".');}strOffset=matchArray[0].length;break;case"a":matchArr=sdate.substr(strInd).match(this.amPmPat);if(matchArr==null){return this._returnError("DATE9","Missing am/pm designation.");}if(matchArr[0].substr(0,1).toLowerCase()=="a"){ampm="am";}else{ampm="pm";}strOffset=matchArr[0].length;break;}strInd+=strOffset;tokInd++;}if(tokInd!=tokArr.length||strInd!=sdate.length){return this._returnError("DATE10",'"'+sdate+'" is either missing desired information or has more information than the expected format: '+pattern);}if(intDay==="noday"){if(intMonth===curdate.getMonth()&&intYear===curdate.getFullYear()){intDay=curdate.getDate();}else{intDay=1;}}if(intMonth<1||intMonth>12){return this._returnError("DATE11","Month must be between 1 and 12.");}if(intDay<1||intDay>31){return this._returnError("DATE12","Day must be between 1 and 31.");}if((intMonth==4||intMonth==6||intMonth==9||intMonth==11)&&intDay==31){return this._returnError("DATE13","Month "+intMonth+" doesn't have 31 days!");}if(intMonth==2){var isleap=(intYear%4==0&&(intYear%100!=0||intYear%400==0));if(intDay>29||(intDay==29&&!isleap)){if(yearAuto){var nextYear=intYear+1;if(!(nextYear%4==0&&(nextYear%100!=0||nextYear%400==0))){return this._returnError("DATE14","February "+nextYear+" doesn't have "+intDay+" days!");
}}else{return this._returnError("DATE14","February "+intYear+" doesn't have "+intDay+" days!");}}}if(ampm==""){if(intHour<0||intHour>23){return this._returnError("DATE15","Hour must be between 0 and 23.");}}else{if(intHour<1||intHour>12){return this._returnError("DATE16","Hour must be between 1 and 12.");}}if(ampm=="am"&&intHour==12){intHour=0;}if(ampm=="pm"&&intHour<12){intHour+=12;}if(intMin<0||intMin>59){return this._returnError("DATE17","Minute must be between 0 and 59.");}if(intSec<0||intSec>59){return this._returnError("DATE18","Second must be between 0 and 59.");}var newDate=new Date(intYear,intMonth-1,intDay,intHour,intMin,intSec);if(checkAgainstCutOff===true){if(util.date.before(newDate,cutOffDate)&&intYear<2000){newDate=new Date(intYear+100,intMonth-1,intDay,intHour,intMin,intSec);}}if(yearAuto){util.date.clearTime(curdate);var clearedNewDate=new Date(newDate);util.date.clearTime(clearedNewDate);if(util.date.before(clearedNewDate,curdate)){newDate=new Date(intYear+1,intMonth-1,intDay,intHour,intMin,intSec);}}return newDate;};util.dateFormat.prototype._decodeDateShortcut=function(pattern,sdate,cutOffDate){var today=new Date();var returned=sdate.trim();cutOffDate=cutOffDate||this.cutOffDate;var regHasOneValidChar=new RegExp("[a-z0-9]","gi");if(!regHasOneValidChar.test(returned)){return null;}if(/^[+\-][0-9]*$/g.test(returned)){var intValue=parseInt(returned,10);if(intValue>-366&&intValue<366){return util.date.add(today,util.date.DAY,intValue);}else{return this._returnError("DATE20");}}var iDay=pattern.indexOf("d");var noDay=iDay<0?true:false;var iMonth=pattern.indexOf("M");var noMonth=iMonth<0?true:false;var iYear=pattern.indexOf("y");var noYear=iYear<0?true:false;if(noDay){return null;}if(!noDay&&(iDay<iYear&&iYear<iMonth)||(iMonth<iYear&&iYear<iDay)){return null;}var dayBeforeMonth=null;if(pattern.indexOf("MMM")>-1&&/^[0-9]+$/.test(sdate)){if(uic.p.SITE_LANGUAGE=="US"){dayBeforeMonth=false;}else{dayBeforeMonth=true;}}else{dayBeforeMonth=iDay<iMonth;}iDay=dayBeforeMonth?0:1;iMonth=dayBeforeMonth?1:0;var iYear=2;if(pattern.trim().substr(0,1)=="y"){if(noDay){iYear=1;iMonth=2;iDay=0;}else{iYear=0;iDay++;iMonth++;}}var adjustYear=true;var isIATA=this._isIATAPattern(pattern).isIATA;var regAlpha=new RegExp("[a-z\\u00A1-\\uFFFF]{3,}","gi");var ar=regAlpha.exec(returned);if(ar&&ar.length>0){var monthInLetter=ar[0].toLowerCase();var monthIndex=null;var monthArr=(isIATA?this.monthIATA:this.monthshort);for(var i=0;i<12;i++){if(monthArr[i].toLowerCase()==monthInLetter){monthIndex=i+1;break;}}if(monthIndex===null){for(var i=0;i<12;i++){if(this.monthlong[i].toLowerCase()==monthInLetter){monthIndex=i+1;break;}}}if(iDay<iMonth&&returned.indexOf(ar[0])===0){returned="01"+returned;}if(monthIndex!==null){if(monthIndex<10){monthIndex="0"+monthIndex;}returned=returned.replace(ar[0],monthIndex);}}if(/[a-z]+/gi.test(returned)){return null;}var regSep=new RegExp("[^a-z0-9]+","gi");if(noDay){if(regSep.test(returned)){returned="1/"+returned;}else{if(returned.length%2===0){returned="01"+returned;}else{returned="010"+returned;}}}var arDate=returned.split(regSep);if(c.browser.isIE){if(/^[^a-z0-9]+/i.test(returned)){arDate.unshift("");}if(/[^a-z0-9]+$/i.test(returned)){arDate.push("");}}var hasSeparator=arDate.length>1;if(!hasSeparator){var length=returned.length;if(returned.length%2==1){returned="0"+returned;length++;}var yearLength=4;switch(length){case 2:arDate[iDay]=parseInt(returned,10);arDate[iMonth]=today.getMonth();arDate[iYear]=today.getFullYear();break;case 4:if(dayBeforeMonth){arDate[iDay]=parseInt(returned.substr(0,2),10);arDate[iMonth]=parseInt(returned.substr(2,2),10)-1;}else{arDate[iMonth]=parseInt(returned.substr(0,2),10)-1;arDate[iDay]=parseInt(returned.substr(2,2),10);}arDate[iYear]=parseInt(today.getFullYear(),10);break;case 6:yearLength=2;case 8:adjustYear=false;var tmpDayIndex;var tmpMonthIndex;var tmpYearIndex;if(iYear==0){tmpDayIndex=length-dayBeforeMonth?4:2;tmpMonthIndex=length-dayBeforeMonth?2:4;tmpYearIndex=0;}else{tmpDayIndex=dayBeforeMonth?0:2;
tmpMonthIndex=dayBeforeMonth?2:0;tmpYearIndex=length-yearLength;}arDate[iMonth]=parseInt(returned.substr(tmpMonthIndex,2),10)-1;arDate[iDay]=parseInt(returned.substr(tmpDayIndex,2),10);arDate[iYear]=parseInt(returned.substr(tmpYearIndex,yearLength),10);break;default:return null;}if(arDate[iYear]<100){arDate[iYear]+=1900;}}else{var forceDay=false;adjustYear=false;var newAr,arLast;if(arDate.length<3){if(noDay){newAr=arDate.slice(0,iDay);arLast=arDate.slice(iDay,arDate.length);arDate=newAr.concat([1],arLast);forceDay=true;}else{newAr=arDate.slice(0,iYear);arLast=arDate.slice(iYear,arDate.length);arDate=newAr.concat([today.getFullYear()%100],arLast);adjustYear=true;}}if(arDate[iDay]===""){arDate[iDay]=1;}if(arDate[iMonth]===""){arDate[iMonth]=today.getMonth()+1;}if(arDate[iYear]===""){arDate[iYear]=today.getFullYear()%100;}arDate[iYear]=parseInt(arDate[iYear],10);if(arDate[iYear]<100){arDate[iYear]+=1900;}arDate[iMonth]=parseInt(arDate[iMonth],10);arDate[iMonth]--;if(forceDay){if(arDate[iMonth]==today.getMonth()&&arDate[iYear]==today.getFullYear()){arDate[iDay]=today.getDate();}else{arDate[iDay]=1;}}else{arDate[iDay]=parseInt(arDate[iDay],10);}}var isLeap=arDate[iMonth]===1&&arDate[iDay]===29;var resultDate=new Date(arDate[iYear],arDate[iMonth],arDate[iDay],23,59,59);if(util.date.before(resultDate,cutOffDate)&&arDate[iYear]<2000&&yearLength!==4){arDate[iYear]+=100;if(isLeap){resultDate=new Date(arDate[iYear],arDate[iMonth],arDate[iDay],23,59,59);}else{resultDate.setYear(arDate[iYear]);}}if(adjustYear&&util.date.before(resultDate,today)){arDate[iYear]++;if(isLeap){resultDate=new Date(arDate[iYear],arDate[iMonth],arDate[iDay],23,59,59);}else{resultDate.setYear(arDate[iYear]);}}arDate[iMonth]++;var strTemp=""+(arDate[iYear]<1000?"0"+arDate[iYear]:arDate[iYear])+(arDate[iMonth]<10?"0"+arDate[iMonth]:arDate[iMonth])+(arDate[iDay]<10?"0"+arDate[iDay]:arDate[iDay]);if(this.format("yyyyMMdd",resultDate)!==strTemp){return null;}return resultDate;};util.dateFormat.prototype._decodeTimeShortcut=function(pattern,sdate){var isPm=null;var str=sdate.trim().toLowerCase();var ampmPattern=/am|pm|a\.m\.|p\.m\.|a|p/g;if(str.match(ampmPattern)){isPm=(str.indexOf("p")!=-1)||(str.indexOf("P")!=-1);str=str.replace(ampmPattern,"");}str=str.trim();var l=str.length;if(l<=5&&/.*[hH].*m.*/.test(pattern)){var h,m;var regSep=new RegExp("[^0-9]+","gi");var sepExtract=str.split(regSep);if(sepExtract.length>1){h=parseInt(sepExtract[0],10)+((isPm)?12:0);m=parseInt(sepExtract[1],10);}else{switch(l){case 1:str="0"+str+"00";break;case 2:str=str+"00";break;case 3:str="0"+str;break;case 4:break;default:return null;}h=parseInt(str.substr(0,2),10)+((isPm)?12:0);m=parseInt(str.substr(2,2),10);}if(isPm!==null){if(h===0){return this._returnError("DATE16");}if((h%12)===0){h=h-12;}}if(m<60&&h<24){var newDate=new Date();newDate.setHours(h);newDate.setMinutes(m);return newDate;}}return null;};util.dateFormat.prototype._returnError=function(errorCode,message){var error={errorCode:errorCode,errorMessage:message};this.parsingError=error;return error;};util.dateFormat.prototype.format=function(pattern,jsdate,options){if(pattern.length===0){return"";}var inUppercase=false;if(pattern.substring(0,1)=="U"){inUppercase=true;pattern=pattern.substring(1);}var res=this._isIATAPattern(pattern);var isIATA=res.isIATA;if(isIATA){pattern=res.datePattern;}var formatted="";var tokArr=this._parseFormatString(pattern,options);var tokInd=0;while(tokInd<tokArr.length){if(tokArr[tokInd].type=="literal"){formatted+=tokArr[tokInd++].token;}else{formatted+=this._interprate(tokArr[tokInd].token,jsdate,isIATA);tokInd++;}}return inUppercase?formatted.toUpperCase():formatted;};util.dateFormat.prototype._parseFormatString=function(formatStr,options){if(formatStr.substring(0,1)=="U"){formatStr=formatStr.substring(1);}var tokArr=[];var tokInd=0;var strInd=0;var foundTok=0;var inFreeText=false;var inEscape=false;while(strInd<formatStr.length){var matchArray=null;var c=formatStr.charAt(strInd);if(c=="\\"){if(formatStr.length>strInd+1&&formatStr.charAt(strInd+1)=="'"){strInd++;
inEscape=true;continue;}}if(c=="'"){if(inEscape){inEscape=!inEscape;}else{if(options&&options.useSingleQuotes){inFreeText=!inFreeText;strInd++;if(!inFreeText){continue;}}}}else{matchArray=this.tokPat.exec(formatStr.substr(strInd));}if(!inFreeText&&matchArray!==null){strInd+=matchArray[1].length;tokArr[tokInd++]={token:matchArray[0],type:"symbolic"};}else{if(tokInd>0&&tokArr[tokInd-1].type=="literal"){tokArr[tokInd-1].token+=formatStr.charAt(strInd++);}else{tokArr[tokInd++]={token:formatStr.charAt(strInd++),type:"literal"};}}}return tokArr;};util.dateFormat.prototype._duplicateDateResourcesForBackward=function(){var bundleObject=this.dateBundle.getBundleObject();var longdate=bundleObject.uic.r.longdate;if(longdate){for(var i in longdate){if(longdate.hasOwnProperty(i)){bundleObject.uic.r[i]=longdate[i];}}}var shortdate=bundleObject.uic.r.shortdate;if(shortdate){for(var i in shortdate){if(shortdate.hasOwnProperty(i)){bundleObject.uic.r[i]=shortdate[i];}}}},util.dateFormat.prototype._isIATAPattern=function(pattern){if(pattern){var isIATA=(pattern.substring(0,1)=="I");if(isIATA){pattern=pattern.substring(1);if(pattern!="ddMMMyyyy"&&pattern!="ddMMMyy"){isIATA=false;}}}else{isIATA=false;}return{isIATA:isIATA,datePattern:pattern};};util.dateFormat=new util.dateFormat();c.loader.register("util.dateFormat");c.require("util.dateFormat");util.simpleDateFormat=function(){return util.dateFormat;};c.loader.register("util.simpleDateFormat");
