var m={};if(typeof c=="undefined"){var 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:"72d916bc7057d5ef51e67af75a35253",$aria_uic:"5e2b8a1bb0c5a9c97e75745bcdb27a",$aria:"c4c151aca93b8f9a362e487841cea9a",$ariacarp:"b444c361aa8cf158e089ceb11317dcd0",$ariahcs:"edfdc42f11d5f70e0e5b7e0f861a82",$arialayoutssa:"9baee35172f4af3d32a558b939157174",$arialoader:"c6bc68d19281b258a5645e3196c17a1a",$ariameb:"6daa434484a589368a19d489e6c70c",$ariangp:"fe30ca8892edf3294d89969564e122d",$ariaprofiles:"b03247f73852790cb481bb7e148486",$ariaukrail:"658de25ca5f7ba6a4c4daea2c52cdf2c",$loaderpattern:"d984af0f7da7972914c14511d591d18",$loadManager:"619222c77d22cd4bbca9bb365f89e96",$uic:"e723946b81649dd8896a6d6b3ad978f",$userprofile:"20958fa740b830d8271141d36a7dfe3",$yahoo:"333d697a364c5d3ea912d7e9bf2dff",$yuilayout:"a2d56429c913b2c97aa2123fc8699",aria:{$AriaTemplatesBridge:"e4a253e9b4b89f935522cac9f6619",$EventCommunicationBus:"97a7b3677b77a6937356c74ed1389847",$Keyboard:"6cdf7563718d35b5d777236856f610",$ServerSideAccess:"b090faca232e96bb594892e0cd7f2c5b",$Shell:"bf6ff8d25d62da2e1528fac74f582",$UserProfile:"ff67c6a3208f96ceb1fd1a7cbe38c",lang:{$JsObject:"2d34d8e42a9eee6d2c81825b939e5eb0",$Xml:"bc85fbba82a5a62ef233dcd046266090"},layouts:{$AriaTemplatesAwareGenericLayout:"2c321258473764b47127d703c6a1df9",$BorderLayout:"b28a3dc96210b191957c6aa44b5ce67",$CardLayout:"7b3a1fa06d77213521bddd622187b1a",$GenericLayout:"dff5a736beab886941bd2b93635d6f",$HtmlAriaTemplatesLayout:"b052dbbcffc55ff5c2b4f989aec95e63",$HtmlLayout:"cb3a4e3b4dbef819cf3cdb7a6dce8ad3",$Manager:"2365af369ea25b5297922488f74265",$PortalLayout:"1eca34ae98d0ce41d35218cd73cd8a5a",$SimpleBorderLayout:"c3b9daf8a373ae401743cdc9e1dc3d57"},responseHandlers:{$AriaDebugHandler:"31f976659cae675f56e9a8d4b74679d",$AriaErrorHandler:"ed30887b547de1b35b11a8b98389584",$AriaEventHandler:"4880dc269835657f678a4d452e25",$AriaTemplatesInitHandler:"262a247d52d099528ab7b523765df75",$MessagesHandler:"1dbc9161e1761d42dd7abe1e095712d"},ssa:{$CarPlus:"b51dcff1116b66c3a0a52197b9846a1b",$Cryptic:"1da5afc57a6dbfa237a5d5c69953fcd5",$Hotel:"84cecf65e4654c22fc7369f488bfeb2",$PushProcessor:"df1a768ccb403577559c17d96c58c49",$ShoppingDossier:"36926f27211461d5e830106b9ae35db"},store:{$Cookie:"e6e9b5cef96f45fb9e1a1bda7254d5",$Generic:"10ab2c6561ca46a4a23c5ba0f27040ec",$MixedCollection:"77e3d58e41da1fe9c6b4e114975891d",$templateStore:"f2fae2bcaf4d24cd84e8e2d369a5fe6a"},ui:{$ATModule:"93117b437e368a4ed849dbe1234ed87",$Module:"b320a7581fc69a6558a1aa7946ce7da4",$Panel:"8a53c4461726ca4ff6a0dc6c4afc2",$Panel_v2:"b443cf716416a8b868e8d807f5f541d",$Section:"5c92698ac21b62b1b5f8ecb8132559",$Viewset:"a6b2f62eaf488ce1c229eddbadb855"}},gfx:{$canvaschartpainter:"dc4432a0c52e62d446b55c7f97528ee9",$chart:"19f417b2bf3698ee1ef35757162ea234",$excanvas:"af19507380cac5a811a2d6b479b2c9dd",$flashcharts:"283a2bfd41da9ea57cea461a63cf4",$iecanvas:"f1a24041186e3a1ca6ed8366a944b59b"},uic:{$Accordion:"dd52aa961bb38a7f4dbc7c974cf1b173",$AutoComplete:"621abd5fbc64fc6bc97dbb439f27cea6",$Behavior:"2441dc259c26e73832b3c245e72db6cf",$Button:"b3200aab53d12bae7b6452ea507587",$Calculator:"e89490846497824c25bffb0cb606e58",$Calendar:"c4cf1485bfdd66792cca4cbb882dd850",$Canvas:"eeb5977056264ba7ba28ff791d85bbcc",$CardLayout:"20e592ec1438e164c6e495dab0d1733d",$Chart:"bd11e77720a0a2f63f14038a68f23db",$Check:"2c2492a17670881f1d8167bca6de78",$CheckBox:"333fd7ae616493cc4896b6cdd7980fe",$ColorPicker:"478d4cf8c19860ffa7b9fbc2ad22a75",$ContextMenu:"5a24f54be3bd9b22b4a168b31506033",$Datagrid:"a8205da9ec3582219edb8ef72e01e15",$DataTable:"15cfcd39d18555a82fa4cafa73a0bc2b",$DatePicker:"eef4c94fe8e2884624fd321e8bb993",$Dialog:"78986c6f4724efa0ec75e60a838ce9e",$DomElementWrapper:"3055f2927faa0aba48b32ab971d3b56",$Errors:"7642153a3b2006a4d4a365f61a569c7",$Expand:"952d148323aeb1ee76794b2dcac4e3ef",$Form:"54bb9d9ece82ddee16c32f5c57798d84",$Gauge:"5da1eec1df2c6318d92524cde6c9a0c9",$GoogleMap:"529d65d525a7b76deaaaf2833fe901f",$GroupBox:"7a2dd089ac3098827b314f3688f7d34b",$MarkerGroup:"fee223994e1bb8bf1189d3df4477d863",$MenuBar:"cd7624113a4d13959ae46b982760cd",$MicrosoftMap:"b7799a163190c73241227c347674d093",$MultiMap:"74faee22b6357389fa5747fd1e502da2",$MultiSelect:"89c76fb5a3819bf3f72a7a34d9caf9",$MultiSelect_v2:"d898710a54b67d6e69d4742e1b931",$ProgressBar:"bdd2afcf1829f135b419a3212efd1db",$Radio:"ff678dec3ed899c606fb7eea680f2e",$Rss:"8e6b31651f3d3a235ec469b7d4aac3",$SeatMap:"d443f35e8a92acd0f3bc4ee38669b9b",$Select:"edcf59863471b5b5e358bc6d7669a55",$Slider:"7a3c24b8ff649d856aeaacab6aface2",$SlideShow:"bb5f93ea16fb29989972fe281233ece",$Splitter:"d03b53431bb037f42b7f125339314b2",$TabBar:"2ba00aeced22c8eb07b2e2d45e7d",$Table:"69f5d7786f4450c945581ed7c6223461",$TableCore:"e31165789d79c67c9395bb265f7f3",$TaskBar:"ba5078c07f4916fdd9d8e9b559c97d14",$TaskFile:"596476ee7f1db279fe82acfc81ac8c3",$TextArea:"3a70dcae7bafcc5ec88d9557023862",$TextField:"9614f38af5d5b3a462e8d681335d36",$ToolBar:"d2bdc0e46245744d327c68d1224f39a7",$Tooltip:"f3329143d2408eca93cea24b98a4f8",$TreeView:"9a4fe37e18b2c0ceb6a17c946ed5ca",$uicInput:"912fbb59b82fc1fd8e3944e9bff913b",$uicObject:"1ed1583a271cd51ffce633d977f708d",dialog:{$DialogManager:"4b89672a6a2d5a55caeb8c6120ec1f15",$SimpleDialog:"35071a71ea273f3f9919c52b17fc383"},ext:{$ClusterMarker:"bc6d3596cfe8825519ccdd465b8152",$ECB_apftaskmgr_plugin:"76cdc73ea42bb1ad1939ce5955b9e2ea",$FormSaver:"cd6e2ee8a2bd4a77c58efb1e26dfc62",$Help:"6fe9f06e3115ad397b4b9cceb5d722e"},map:{$marker:"e8fca670a25c35ef4e9fff6f3f3b1b6"},parser:{$XHRParser_AIR:"bb93771ae94694e4d53714d9139077a2",$XHRParser_AIR_COUNTRY:"8548bf59ccd9f3bcb98352301c8157",$XHRParser_CITY:"d34b45f9c56fcf941637262b49a3d9",$XHRParser_GMap:"c06b6ebca6fd8a994d759ef870e",$XHRParser_HOTEL:"a4226b606958e250f1c829b89a50284a",$XHRParser_MMap:"35925ca79f2cf0195b2ef6ea5273c07a",$XHRParser_POR:"ec7fadab9ba659db28c32da36b64f325",$XHRParser_POR_Google_Webservice:"94f45df79b709f1896526f459d8aede",$XHRParser_POR_Multimap:"b4d03f6c42e43f5524dc3b8fd55fd",$XHRParser_POR_VE:"31893eb5ae7aaf2ac460a6a7a586a333",$XHRParser_POR_VE_Webservice:"c9ea9327d9783591263939669e67545",$XHRParser_RAIL:"5b8e13b28367f62f6a7ecc2f8f5274",$XHRParser_UKRAIL:"14b1f0439df7f61e7f9556e8803854c3",$XHRParser_VE:"e99bf35547b1cf92b83a2bf2a78dbb9"},table:{$AbstractSelectionModel:"5c14a5484a175fe9932b387359a3a9ca",$CellSelectionModel:"e88ffccc4c76ac1bf68b87d9be9c436",$DeferredTable:"281c7437bff99dcf45929f373a76739",$RowSelectionModel:"ebcd38b4dd5a89f7eec7d7209998209e",$TableCollection:"9d705d72596b5585de835b4862a6e820",$TableFilter:"2382aa47c6504e2be347ecd1cde2911",$TableStore:"cbf18a6bfd7d4e84f89b40da6b64dfcc",$TableView:"e19c9c7b2a6041f475c436e1b4b64e2"},templates:{MultiSelect_v2:{$main:"c119d15cc783556876789fcc8e6c68c"},seatmap:{$horizontalTemplate:"2a7f2f278cf9ed3bbfbdd6e4f1d23581",$verticalTemplate:"32e9b4562b51e12af0963c595924720"}},validator:{$ALPHANUMValidator:"afe511f0408e4f4f43fd231dfae056",$ALPHAValidator:"fa28a7e4c5aec4887d1e6c1cf07910f5",$ALPHA_INTERNATIONALValidator:"8e450335ca4e5a4fc73b3097306477",$CCValidator:"cada79bf29eca249032b04b55216ca",$DATEValidator:"6d593f6dd97398d5bb74534c26548e5",$EMAILValidator:"f2d8be2b6574be8cebee9a3dfd6cd9",$GenericValidator:"123eb444fecdc6dce9b5dea4709b62",$GREATERTHANValidator:"4b41e97d7753ccc4c689a56e59ba56ed",$LESSTHANValidator:"36f7b5bfcbca789aaf776632e0c5eada",$MULTIPLE_EMAILSValidator:"a41bd168a2656d65bbc14ab64f7ba66",$NUMValidator:"3ecdf266d98114168f345b85d38cc720",$PHONEValidator:"64a25ed84c8b5e7c1d4a13716859780",$REGEXPValidator:"2bbf2cdee3ae671416e5f9de55f04f21",$REQValidator:"f5cf80fc7e6169833ad9461928c7a09",$STRINGValidator:"395649a54bc1b242d1ee339997dc82",$ValidatorFactory:"4172978ee04e58252116d434cdfeba7"}},util:{$access:"d3859a6c7e730a366a65c7d2382a43",$Array:"403e48ae73f9d6582dd87bdc38c78079",$Browser:"a79694d95deba0b07045f0be6bcf953d",$date:"34faec47e988711c6a0d270ae581a",$dateFormat:"4b432c7b835a7a4fac8059967e833",$dom:"b2c4884ef472e7ef34fbc4b08dfd8625",$event:"8da192bc5af453cb44c6aba4c759a977",$I18n:"fe43e14c5749da7c34f055825f0369c",$json:"ba29c31cd2d5ab35ca3d8f6dcd34989",$JSTEngine:"6d414689d93770bcc4cd4ad9919c18",$key:"cfe98e32f4d8491a17b9722238a64e",$lang:"64aac3dd78d95d57fa855bb1b434f72f",$LoaderOverlay:"7e9487ebb9897f844f17863c84cc48",$Log:"58e6e3de38b3af0cb8ad6435ff65268",$monitoring:"c3c03bd6a36d2052e46f18e422b4e1f9",$mouse:"497b421b8bae2f964530e2c7a4c28cf6",$Object:"1976d7c60a447976cea256749ba1392",$peppy:"ea5568d4f260cc5b1b69b76f21ab8994",$PollingUtil:"407de9d3e260e76da7b70fbdc1ea0f2",$selectorEngine:"a4deabde2db2d19c23effd79556a6",$Shortcut:"5aaa22c9e6ab6a93e3fb1fec81b367b9",$simpleDateFormat:"dbb760daae8b91a1c7aa2eaf46a1caa",$sizzle:"378a952d685444d43f53fe6f3589623",$String:"dfa5daec766bf24e3abd605525779e9",$style:"b4bca3bc5ce0e4ad9e7fa08cc660dac7",$type:"e0d1f95262d2db14266f3032b11c48b7",$url:"8f87c788a2d9741f41658a6e93d92e70",$Util:"bb8133e2254940581e9dc715cf91b88a",$UtilCore:"70edbd7447dbb8649225d1d375d914d",$xml2json:"85a8e6834b4cb0f0647c4391452f0cf",$XMLResponse:"318ecf44c04b87c75746359349e6bf28",$xpath:"5ead3d66b13bdb8bb690cbed1e23502d",debug:{$Console:"b492e082b0336f434a14de3ee91d1"},dom:{$Window:"3f79b718f96d20f5bd7cc8d4fefe1e9"},log:{$DefaultAppender:"4859579aa02b9ce752641dec9710ecc1",$Logger:"d7673f11599e42bdc7f51c78a54624c4",$WindowAppender:"4ca9e31ae538dec5cb5a55ac57bc513"},monitoring:{$LeakWatcher:"ad65d29987075f4c90c9d1a8f2f7db"},nav:{$geo:"398f83285ca1a2cace6f84e284eabcdb",$global:"187c61f3612db93892851b47e0a44985",$main:"90232d5f3351294f3f68a88d575d5f3"},style:{$emptyJSforMap:"d41d8cd98f0b24e980998ecf8427e"}},yui:{$animation:"866275c59d41d03a8e75d7d49f5b4598",$autocomplete:"dabba57a6daab5dd4bb4c799a1d4b334",$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:"254cb1d3c25633592e3d3962dcb6355d",$history:"499089b18d9de29f64cfe4975a13444",$key:"c7e331737ccc6f6ea16e525975ad4440",$logger:"3f2d7b273c9fafa5c48ed53fecdf15c",$menu:"4d83cd145fe98677e3da2dc3ca8a1a",$slider:"7e672b48d4aac0f9d3cf4cc3426cc6a2",$tabview:"caa411ce6375e2c8c2bc228f47e031ff",$treeview:"90d4bb2248472bc75c07db17cae8024",$utilities:"431651ad5344eda31b4db4ec23e1aa",$yahoo_dom_event:"9ee3b2504e88faa4cea798d8f55669c0",$yahoo:"6774b82185e4f23e1cfe1ea3e863104a",$yui_ext_core:"eb3ee184cf6726cf10feabd39b210a4",$yui_ext_date:"f1abbdd97d67ea63f537bdfcc146dc",$yui_ext_dialog:"2ebb2ad7e5bee277a2e869d55e98e7",$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;};var map={};map.loader=function(){this._loadedFile={};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(fn.bind(tobind));};map.loader.prototype.execFiles=function(o){var arg=o.argument;this.curReq--;if(o.status==200){m.log("[LOADER] File "+arg.file+" loaded successfully.");m.__trackerAfter("XHR",arg.file);this.filebuffer[arg.loadingIndex][arg.fileIndex]={f:arg.file,c:o.responseText};this._dependencies[arg.loadingIndex]--;}if(o.status==-1){m.err("[LOADER] File "+arg.file+" TimeOut... couldn't be loaded, try again...");this.asyncload([arg.file],arg.finalCallback,arg.args,arg.failsafe);return;}if(o.status!=200){if(arg.failsafe){m.err("[LOADER] File "+arg.file+" couldn't be loaded (status: "+o.status+", message: "+o.statusText+") (failsafe mode).");this.register(arg.file);}else{m.err("[LOADER] File "+arg.file+" couldn't be loaded (xhr status: "+o.status+", message: "+o.statusText+") (failsafe not active, "+arg.finalCallback.name+"() will not be executed).");}}this.callBack(arg);this.treatQueue();};map.loader.prototype.callBack=function(arg){if(this._dependencies[arg.loadingIndex]>0){return;}try{var k=this.filebuffer[arg.loadingIndex],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(files,forceReload){if(typeof files=="string"){files=[files];}for(var i=0,k=files,j=k.length;i<j;i++){if(!this.isLoaded(k[i])||forceReload){var linkTag=document.createElement("LINK");linkTag.type="text/css";linkTag.rel="stylesheet";linkTag.media="all";linkTag.href=k[i];document.getElementsByTagName("HEAD")[0].appendChild(linkTag);return linkTag;}}};map.loader.prototype.isComplete=function(list){var ret=true;for(var i=0,k=list,j=k.length;i<j;i++){ret=ret&&this.isLoaded(k[i]);}m.log("[ISCOMPLET] Component dependencies completely loaded ..."+ret);return ret;};map.loader.prototype.includeScript=function(conponent){var toload=[];for(var i=0,k=conponent,j=k.length;i<j;i++){if(conponent[i].indexOf("/")!=-1){var fileid=k[i];}else{var fileid=this.get(k[i],uic.p.FRAMEWORK_DOCUMENT_ROOT+uic.p.JS_DOCUMENT_ROOT);}if(!this.isLoading(fileid)){this._loading(fileid);toload[i]=fileid;}}this.includeScriptTag(toload);};c.loader=new map.loader();if(typeof YAHOO=="undefined"){var YAHOO={};}YAHOO.namespace=function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=a[i].split(".");o=YAHOO;for(j=(d[0]=="YAHOO")?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]];}}return o;};YAHOO.log=function(msg,cat,src){var l=YAHOO.widget.Logger;if(l&&l.log){return l.log(msg,cat,src);}else{return false;}};YAHOO.init=function(){this.namespace("util","widget","example");
if(typeof YAHOO_config!="undefined"){var l=YAHOO_config.listener,ls=YAHOO.env.listeners,unique=true,i;if(l){for(i=0;i<ls.length;i=i+1){if(ls[i]==l){unique=false;break;}}if(unique){ls.push(l);}}}};YAHOO.register=function(name,mainClass,data){var mods=YAHOO.env.modules;if(!mods[name]){mods[name]={versions:[],builds:[]};}var m=mods[name],v=data.version,b=data.build,ls=YAHOO.env.listeners;m.name=name;m.version=v;m.build=b;m.versions.push(v);m.builds.push(b);m.mainClass=mainClass;for(var i=0;i<ls.length;i=i+1){ls[i](m);}if(mainClass){mainClass.VERSION=v;mainClass.BUILD=b;}else{YAHOO.log("mainClass is undefined for module "+name,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.lang={isArray:function(obj){if(obj&&typeof obj.length=="number"&&typeof obj.splice=="function"){return true;}else{return YAHOO.lang.isObject(obj)&&obj.constructor==Array;}},isBoolean:function(obj){return typeof obj=="boolean";},isFunction:function(obj){return typeof obj=="function";},isNull:function(obj){return obj===null;},isNumber:function(obj){return typeof obj=="number"&&isFinite(obj);},isObject:function(obj){return obj&&(typeof obj=="object"||YAHOO.lang.isFunction(obj));},isString:function(obj){return typeof obj=="string";},isUndefined:function(obj){return typeof obj=="undefined";},hasOwnProperty:function(obj,prop){if(Object.prototype.hasOwnProperty){return obj.hasOwnProperty(prop);}return !YAHOO.lang.isUndefined(obj[prop])&&obj.constructor.prototype[prop]!==obj[prop];},extend:function(subc,superc,overrides){if(!superc||!subc){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");}var F=function(){};F.prototype=superc.prototype;subc.prototype=new F();subc.prototype.constructor=subc;subc.superclass=superc.prototype;if(superc.prototype.constructor==Object.prototype.constructor){superc.prototype.constructor=superc;}if(overrides){for(var i in overrides){subc.prototype[i]=overrides[i];}}},augment:function(r,s){if(!s||!r){throw new Error("YAHOO.lang.augment failed, please check that all dependencies are included.");}var rp=r.prototype,sp=s.prototype,a=arguments,i,p;if(a[2]){for(i=2;i<a.length;i=i+1){rp[a[i]]=sp[a[i]];}}else{for(p in sp){if(!rp[p]){rp[p]=sp[p];}}}}};YAHOO.init();YAHOO.util.Lang=YAHOO.lang;YAHOO.augment=YAHOO.lang.augment;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.2.2",build:"204"});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=[];if(!this.silent){}var onsubscribeType="_YUICEOnSubscribe";if(type!==onsubscribeType){this.subscribeEvent=new YAHOO.util.CustomEvent(onsubscribeType,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(fn,obj,override){if(!fn){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(fn,obj,override);}this.subscribers.push(new YAHOO.util.Subscriber(fn,obj,override));},unsubscribe:function(fn,obj){if(!fn){return this.unsubscribeAll();}var found=false;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 len=this.subscribers.length;if(!len&&this.silent){return true;}var args=[],ret=true,i;for(i=0;i<arguments.length;++i){args.push(arguments[i]);}var argslength=args.length;if(!this.silent){}for(i=0;i<len;++i){var s=this.subscribers[i];if(s){try{if(!this.silent){}var scope=s.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var param=null;if(args.length>0){param=args[0];}ret=s.fn.call(scope,param,s.obj);}else{ret=s.fn.call(scope,this.type,args,s.obj);}if(false===ret){if(!this.silent){}return false;}}catch(subscriberError){util.log.getLogger("YAHOO.util.CustomEvent").error("<"+this.type+"> subscriber "+i+" crashed. Resuming the subscriber's chain. ",subscriberError);errorFlag=true;}}}return !errorFlag;},unsubscribeAll:function(){for(var i=0,len=this.subscribers.length;i<len;++i){this._delete(len-1-i);}return i;},_delete:function(index){var s=this.subscribers[index];if(s){delete s.fn;delete s.obj;}this.subscribers.splice(index,1);},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope;}};YAHOO.util.Subscriber=function(fn,obj,override){this.fn=fn;this.obj=obj||null;this.override=override;};YAHOO.util.Subscriber.prototype.getScope=function(defaultScope){if(this.override){if(this.override===true){return this.obj;}else{return this.override;}}return defaultScope;};YAHOO.util.Subscriber.prototype.contains=function(fn,obj){if(obj){return(this.fn==fn&&this.obj==obj);}else{return(this.fn==fn);}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }";};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var loadComplete=false;var DOMReady=false;var listeners=[];var unloadListeners=[];var legacyEvents=[];var legacyHandlers=[];var retryCount=0;var onAvailStack=[];var legacyMap=[];var counter=0;var lastError=null;return{POLL_RETRYS:10,POLL_INTERVAL:200,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:(/KHTML/gi).test(navigator.userAgent),webkit:function(){var v=navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if(v&&v[1]){return v[1];}return null;}(),isIE:(!this.webkit&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),_interval:null,startInterval:function(){if(!this._interval){var self=this;
var callback=function(){self._tryPreloadAttach();};this._interval=setInterval(callback,this.POLL_INTERVAL);}},onAvailable:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:false});retryCount=this.POLL_RETRYS;this.startInterval();},onDOMReady:function(p_fn,p_obj,p_override){this.DOMReadyEvent.subscribe(p_fn,p_obj,p_override);},onContentReady:function(p_id,p_fn,p_obj,p_override){onAvailStack.push({id:p_id,fn:p_fn,obj:p_obj,override:p_override,checkReady:true});retryCount=this.POLL_RETRYS;this.startInterval();},addListener:function(el,sType,fn,obj,override,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){beingAdded=beingAdded&&(el.attributes&&el.attributes.id&&el.attributes.id.value.indexOf("elgen")==-1);return(el&&el.id&&(beingAdded||listeners[el.id]))?el.id:"__noid";},generateId:function(el){var id=el.id;if(!id){id="yuievtautoid-"+counter;++counter;el.id=id;}return id;},_isValidCollection:function(o){return(o&&o.length&&typeof o!="string"&&!o.tagName&&!o.alert&&typeof o[0]!="undefined");},elCache:{},getEl:function(id){return document.getElementById(id);},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(e){if(!loadComplete){loadComplete=true;var EU=YAHOO.util.Event;EU._ready();if(this.isIE){EU._simpleRemove(window,"load",EU._load);}}},_ready:function(e){if(!DOMReady){DOMReady=true;var EU=YAHOO.util.Event;EU.DOMReadyEvent.fire();EU._simpleRemove(document,"DOMContentLoaded",EU._ready);}},_tryPreloadAttach:function(){if(this.locked){return false;}if(this.isIE&&!DOMReady){return false;}this.locked=true;var tryAgain=!loadComplete;if(!tryAgain){tryAgain=(retryCount>0);}var notAvail=[];var executeItem=function(el,item){var scope=el;if(item.override){if(item.override===true){scope=item.obj;}else{scope=item.override;}}item.fn.call(scope,item.obj);};var i,len,item,el;for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&!item.checkReady){el=this.getEl(item.id);if(el){executeItem(el,item);onAvailStack[i]=null;}else{notAvail.push(item);}}}for(i=0,len=onAvailStack.length;i<len;++i){item=onAvailStack[i];if(item&&item.checkReady){el=this.getEl(item.id);if(el){if(loadComplete||el.nextSibling){executeItem(el,item);onAvailStack[i]=null;}}else{notAvail.push(item);}}}retryCount=(notAvail.length===0)?0:retryCount-1;if(tryAgain){this.startInterval();}else{clearInterval(this._interval);this._interval=null;}this.locked=false;return true;},purgeElement:function(el,recurse,sType){if(el.id&&listeners[el.id]&&el.id.indexOf("elgen")==-1){var elListeners=[];for(var i=listeners[el.id].length-1;i>=0;i--){var l=listeners[el.id][i];if(!sType||l[1]===sType){elListeners.push({type:l[1],fn:l[2],cI:i,cId:el.id});}}}else{var elListeners=this.getListeners(el,sType);}if(elListeners){for(var i=0,len=elListeners.length;i<len;++i){var l=elListeners[i];this.removeListener(el,l.type,l.fn,l.cI,l.cId);}}if(recurse&&el&&el.childNodes){for(var k=0,len=el.childNodes.length;
k<len;++k){if(typeof el.childNodes[k]=="object"){this.purgeElement(el.childNodes[k],recurse,sType);}}}},getListeners:function(el,sType){var elId=YAHOO.util.Event._getElId(el);var results=[],searchLists;if(sType=="unload"){searchLists=[unloadListeners];}else{searchLists=[listeners[elId]];}for(var j=0;j<searchLists.length;++j){var searchList=searchLists[j];if(searchList&&searchList.length>0){for(var i=0,len=searchList.length;i<len;++i){var l=searchList[i];if(l&&l[this.EL]===el&&(!sType||sType===l[this.TYPE])){results.push({type:l[this.TYPE],fn:l[this.FN],obj:l[this.OBJ],adjust:l[this.ADJ_SCOPE],index:i});}}}}return(results.length)?results:null;},_unload:function(e){var EU=YAHOO.util.Event,i,j,l,len,index;for(i=0,len=unloadListeners.length;i<len;++i){l=unloadListeners[i];if(l){var scope=window;if(l[EU.ADJ_SCOPE]){if(l[EU.ADJ_SCOPE]===true){scope=l[EU.OBJ];}else{scope=l[EU.ADJ_SCOPE];}}l[EU.FN].call(scope,EU.getEvent(e),l[EU.OBJ]);unloadListeners[i]=null;l=null;scope=null;}}unloadListeners=null;for(var ind in listeners){if(typeof listeners[ind]!="function"){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);}}}}}},getLostListeners:function(){var lostListeners=[];var EU=YAHOO.util.Event;if(listeners&&listeners.getIterator){for(var ind in listeners){if(typeof listeners[ind]!="function"){var list=listeners[ind];for(var j=0;j<list.length;j++){var el=list[j][0];var parent=el;var l=list[j];while(parent.parentNode){parent=parent.parentNode;}if(parent!=document&&el.tagName){lostListeners.push(l);}}}}}return lostListeners;},cleanListenersAuto:function(){if(!this.intervalClean){var oSelf=this;this.intervalClean=setInterval(oSelf.cleanListeners,5000);}},_getListeners:function(elId){if(elId&&listeners[elId]){return listeners[elId];}return listeners;},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(el,sType,fn,capture){el.addEventListener(sType,fn,(capture));};}else{if(window.attachEvent){return function(el,sType,fn,capture){el.attachEvent("on"+sType,fn);};}else{return function(){};}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(el,sType,fn,capture){el.removeEventListener(sType,fn,(capture));};}else{if(window.detachEvent){return function(el,sType,fn){el.detachEvent("on"+sType,fn);};}else{return function(){};}}}()};}();(function(){var EU=YAHOO.util.Event;EU.on=EU.addListener;if(EU.isIE){document.write('<script id="_yui_eu_dr" defer="true" src="//:"><\/script>');var el=document.getElementById("_yui_eu_dr");el.onreadystatechange=function(){if("complete"==this.readyState){c.removeContent(this);YAHOO.util.Event._ready();}};el=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);
}else{if(EU.webkit){EU._drwatch=setInterval(function(){var rs=document.readyState;if("loaded"==rs||"complete"==rs){clearInterval(EU._drwatch);EU._drwatch=null;EU._ready();}},EU.POLL_INTERVAL);}else{EU._simpleAdd(document,"DOMContentLoaded",EU._ready);}}EU._simpleAdd(window,"load",EU._load);EU._simpleAdd(window,"unload",EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(p_type,p_fn,p_obj,p_override){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){ce.subscribe(p_fn,p_obj,p_override);}else{this.__yui_subscribers=this.__yui_subscribers||{};var subs=this.__yui_subscribers;if(!subs[p_type]){subs[p_type]=[];}subs[p_type].push({fn:p_fn,obj:p_obj,override:p_override});}},unsubscribe:function(p_type,p_fn,p_obj){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){return ce.unsubscribe(p_fn,p_obj);}else{return false;}},unsubscribeAll:function(p_type){return this.unsubscribe(p_type);},createEvent:function(p_type,p_config){this.__yui_events=this.__yui_events||{};var opts=p_config||{};var events=this.__yui_events;if(events[p_type]){}else{var scope=opts.scope||this;var silent=opts.silent||null;var ce=new YAHOO.util.CustomEvent(p_type,scope,silent,YAHOO.util.CustomEvent.FLAT);events[p_type]=ce;if(opts.onSubscribeCallback){ce.subscribeEvent.subscribe(opts.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var qs=this.__yui_subscribers[p_type];if(qs){for(var i=0;i<qs.length;++i){ce.subscribe(qs[i].fn,qs[i].obj,qs[i].override);}}}return events[p_type];},fireEvent:function(p_type,arg1,arg2,etc){this.__yui_events=this.__yui_events||{};var ce=this.__yui_events[p_type];if(ce){var args=[];for(var i=1;i<arguments.length;++i){args.push(arguments[i]);}return ce.fire.apply(ce,args);}else{return null;}},hasEvent:function(type){if(this.__yui_events){if(this.__yui_events[type]){return true;}}return false;}};YAHOO.util.KeyListener=function(attachTo,keyData,handler,event){if(!attachTo){}else{if(!keyData){}else{if(!handler){}}}if(!event){event=YAHOO.util.KeyListener.KEYDOWN;}var keyEvent=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof attachTo=="string"){attachTo=document.getElementById(attachTo);}if(typeof handler=="function"){keyEvent.subscribe(handler);}else{keyEvent.subscribe(handler.fn,handler.scope,handler.correctScope);}function handleKeyPress(e,obj){if(!keyData.shift){keyData.shift=false;}if(!keyData.alt){keyData.alt=false;}if(!keyData.ctrl){keyData.ctrl=false;}if(e.shiftKey==keyData.shift&&e.altKey==keyData.alt&&e.ctrlKey==keyData.ctrl){var dataItem;var keyPressed;if(keyData.keys instanceof Array){for(var i=0;i<keyData.keys.length;i++){dataItem=keyData.keys[i];if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);break;}else{if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);break;}}}}else{dataItem=keyData.keys;if(dataItem==e.charCode){keyEvent.fire(e.charCode,e);}else{if(dataItem==e.keyCode){keyEvent.fire(e.keyCode,e);}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(attachTo,event,handleKeyPress);this.enabledEvent.fire(keyData);}this.enabled=true;};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(attachTo,event,handleKeyPress);this.disabledEvent.fire(keyData);}this.enabled=false;};this.toString=function(){return"KeyListener ["+keyData.keys+"] "+attachTo.tagName+(attachTo.id?"["+attachTo.id+"]":"");};};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.2.2",build:"204"});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 a=="undefined"){if(typeof aria=="undefined"){var 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;};var 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(!util.log.isValidLevel(level)){util.log.getLogger("util.log").error("Invalid level passed for logging the message");}else{if(this.isLogEnabled(level)){var apps=util.log.getAppenders();for(var i=0;i<apps.length;i++){if(level==util.log.LEVEL_DEBUG){apps[i].debug(this._className,msg,objOrErr);}if(level==util.log.LEVEL_INFO){apps[i].info(this._className,msg,objOrErr);}if(level==util.log.LEVEL_WARN){apps[i].warn(this._className,msg,objOrErr);}if(level==util.log.LEVEL_ERROR){apps[i].error(this._className,msg,objOrErr);}if(level==util.log.LEVEL_FATAL){apps[i].fatal(this._className,msg,objOrErr);}}}}},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:function(o){if(o&&typeof o=="object"){window.console.dir(o);}},debug:function(className,msg,o){window.console.debug(this._formatClassName(className)+msg);this._inspectObject(o);},info:function(className,msg,o){window.console.info(this._formatClassName(className)+msg);this._inspectObject(o);},warn:function(className,msg,o){window.console.warn(this._formatClassName(className)+msg);this._inspectObject(o);},error:function(className,msg,e){window.console.error(this._formatClassName(className)+msg+this._formatException(e));},fatal:function(className,msg,e){window.console.error("!FATAL "+this._formatClassName(className)+msg+this._formatException(e));
},startGroup:function(title){window.console.group(title);},endGroup:function(){window.console.groupEnd();}}:{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");(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);},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;}},resetLoggingLevels:function(){util.log._loggingLevels=[];},getLoggingLevel:function(className){var loggingLevel=util.log._loggingLevels[className];if(loggingLevel!=undefined){return loggingLevel;}else{var str=className;while(str.substring(0,str.lastIndexOf("."))){str=str.substring(0,str.lastIndexOf("."));if(util.log._loggingLevels[str+".*"]!=undefined){return util.log._loggingLevels[str+".*"];}}}return false;},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){util.log[attr]=utilSingleton[attr];}delete utilSingleton;})();util.log._init();c.loader.register("util.log");a.namespace("util");util.event=function(){};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(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._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 params={container:el,selector:expression,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(util.browser.isIE){type="focusin";}else{capture=true;}}else{if(type=="blur"){if(util.browser.isIE){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;}}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._manageDelegatedEvent=function(e,params){var log=util.log.getLogger("util.event");var target=util.event.getTarget(e);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;}var 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.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("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.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(util.browser.isIE){type="focusin";}else{capture=true;}}else{if(type=="blur"){if(util.browser.isIE){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;}}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.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=new util.event();c.loader.register("util.event");if(typeof util=="undefined"){var util={};}if(typeof c=="undefined"){var c={};}if(!Function.prototype.bind){Function.prototype.bind=function(obj,args){var method=this;var bindArgs=null;if(typeof(obj)!="undefined"&&arguments.length>1){bindArgs=Array.prototype.slice.call(arguments,1);}return function(){var newArgs=arguments;if(bindArgs){var length=bindArgs.length;for(var i=0;i<length;i++){Array.prototype.push.call(newArgs,bindArgs[i]);}}return method.apply(obj,newArgs);};};}Function.prototype.bindStrict=function(obj){var method=this;var bindArgs=null;if(typeof(obj)!="undefined"&&arguments.length>1){bindArgs=Array.prototype.slice.call(arguments,1);}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);};};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&&window.pageYOffset){return{x:window.pageXOffset,y:window.pageYOffset};}else{if(document.documentElement){return{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop};}}}};util.getFullPageSize=function(){var yWithScroll,xWithScroll,arrayPageSizeWithScroll;if(window.innerHeight&&window.scrollMaxY){yWithScroll=window.innerHeight+window.scrollMaxY;xWithScroll=document.body.offsetWidth+window.scrollMaxX;}else{if(document.body.scrollHeight>document.body.offsetHeight){yWithScroll=document.body.scrollHeight;xWithScroll=document.body.scrollWidth;}else{yWithScroll=document.body.offsetHeight;xWithScroll=document.body.offsetWidth;}}arrayPageSizeWithScroll={width:xWithScroll,height:yWithScroll};return arrayPageSizeWithScroll;};util.dateDiff=function(firstDate,secondDate){var one_day=86400000;if(util.date.isValid(secondDate)&&util.date.isValid(firstDate)){return Math.round((secondDate.getTime()-firstDate.getTime())/(one_day));}else{return null;}};util.calculateOffset=function(obj,attr,stopAbsolute){var offset=0;var i=0;obj=$d(obj);var o=obj;while(obj){if(stopAbsolute){var objPositionCss=YAHOO.util.Dom.getStyle(obj,"position");if(i>0&&(objPositionCss=="absolute"||objPositionCss=="relative")){break;}}offset+=obj[attr];if(c.browser.isIE&&!c.browser.isIE7&&offset<0){if(YAHOO.util.Dom.getStyle(obj,"float")=="left"&&attr=="offsetLeft"&&objPositionCss=="relative"){if(YAHOO.util.Dom.getStyle(obj.parentNode,"position")=="relative"){offset+=obj.offsetWidth;}}}obj=obj.offsetParent;i++;}i=0;obj=o;while(obj.parentNode!=document.body&&obj.parentNode.tagName&&(obj=obj.parentNode)){if(stopAbsolute){var objPositionCss=YAHOO.util.Dom.getStyle(obj,"position");if(i>0&&(objPositionCss=="absolute"||objPositionCss=="relative")){break;
}}if(!c.browser.isOpera&&obj.nodeName!="HTML"){if(attr=="offsetTop"&&obj.scrollTop!==0&&obj.scrollTop){offset-=obj.scrollTop;}else{if(attr=="offsetLeft"&&obj.scrollLeft!==0&&obj.scrollLeft){offset-=obj.scrollLeft;}}}else{if(c.browser.isOpera){if(attr=="offsetTop"&&obj.scrollTop!==0&&obj.scrollTop!=obj.offsetTop){offset-=obj.scrollTop;}else{if(attr=="offsetLeft"&&obj.scrollLeft!==0&&obj.scrollLeft!=obj.offsetLeft){offset-=obj.scrollLeft;}}}}i++;}return offset;};util.getScroll=function(obj,attr){var total=0;obj=$d(obj);var scrollDir=(attr=="offsetTop")?"scrollTop":"scrollLeft";while(obj){if(obj==document.body){break;}total+=obj[scrollDir];obj=obj.parentNode;}return total;};util.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.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){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,"=",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.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;var map={},indexOf=url.indexOf("?"),pair,name;var 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)?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());switch(field){case this.MONTH:var newMonth=date.getMonth()+amount;var years=0;if(newMonth<0){while(newMonth<0){newMonth+=12;years-=1;}}else{if(newMonth>11){while(newMonth>11){newMonth-=12;years+=1;}}}d.setMonth(newMonth);d.setFullYear(date.getFullYear()+years);break;case this.DAY:d.setDate(date.getDate()+amount);break;case this.YEAR:d.setFullYear(date.getFullYear()+amount);break;case this.WEEK:d.setDate(date.getDate()+(amount*7));break;}return d;},subtract:function(date,field,amount){return this.add(date,field,(amount*-1));},before:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()<ms){return true;}else{return false;}},after:function(date,compareTo){var ms=compareTo.getTime();if(date.getTime()>ms){return true;}else{return false;}},between:function(date,dateBegin,dateEnd){if(this.after(date,dateBegin)&&this.before(date,dateEnd)){return true;}else{return false;}},getJan1:function(calendarYear){return new Date(calendarYear,0,1);},getDayOffset:function(date,calendarYear){var beginYear=this.getJan1(calendarYear);var dayOffset=Math.ceil((date.getTime()-beginYear.getTime())/this.ONE_DAY_MS);return dayOffset;},getWeekNumber:function(date,calendarYear){date=this.clearTime(date);var nearestThurs=new Date(date.getTime()+(4*this.ONE_DAY_MS)-((date.getDay())*this.ONE_DAY_MS));var jan1=new Date(nearestThurs.getFullYear(),0,1);var dayOfYear=((nearestThurs.getTime()-jan1.getTime())/this.ONE_DAY_MS)-1;var weekNum=Math.ceil((dayOfYear)/7);return weekNum;},isYearOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getFullYear()!=weekBeginDate.getFullYear()){overlaps=true;}return overlaps;},isMonthOverlapWeek:function(weekBeginDate){var overlaps=false;var nextWeek=this.add(weekBeginDate,this.DAY,6);if(nextWeek.getMonth()!=weekBeginDate.getMonth()){overlaps=true;}return overlaps;},findMonthStart:function(date){var start=new Date(date.getFullYear(),date.getMonth(),1);return start;},findMonthEnd:function(date){var start=this.findMonthStart(date);var nextMonth=this.add(start,this.MONTH,1);var end=this.subtract(nextMonth,this.DAY,1);return end;},clearTime:function(date){date.setHours(12,0,0,0);return date;},getDifferenceInDays:function(date1,date2){var dayOffset1=util.date.getDayOffset(date1,0);var dayOffset2=util.date.getDayOffset(date2,0);var dayOffset=Math.abs(dayOffset1-dayOffset2-1);return dayOffset;},YD2JD:function(txt){return new Date(txt);},stringToDate:function(txt){return new Date(txt);},JD2YD:function(date){return this._dateToString(date);},_dateToString:function(date){var yStart=c.browser.isIE?0:1900;year=(date.getYear()+yStart);return(date.getMonth()+1)+"/"+date.getDate()+"/"+year;},sameDay:function(date1,date2){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");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;};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;};util.strip={xmlTags:function(stringToStrip){var regExpString="<[^<>]+>";return stringToStrip.replace(new RegExp(regExpString,"gi"),"");},accents:function(stringToStrip){var s=stringToStrip;s=s.replace(/[\u00E0\u00E2\u00E4]/gi,"a");s=s.replace(/[\u00E9\u00E8\u00EA\u00EB]/gi,"e");s=s.replace(/[\u00EE\u00EF]/gi,"i");s=s.replace(/[\u00F4\u00F6]/gi,"o");s=s.replace(/[\u00F9\u00FB\u00FC]/gi,"u");return s;},escapeCharacters:function(stringToStrip){var s=stringToStrip;s=s.replace(/\\/g,"\\\\");s=s.replace(/\(/g,"\\(").replace(/\)/g,"\\)");s=s.replace(/\*/g,"\\*");s=s.replace(/\|/g,"\\|");s=s.replace(/\[/g,"\\[").replace(/\]/g,"\\]");return s;}};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(!(i in Array.prototype&&this[i]!=undefined)){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);}}}};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.isIE8=false;this.isIE7=false;this.isIE6=false;this.isGecko=false;this.isFirefox=false;this.isFirefox36OrAbove=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("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;}}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(){return this.getManager().getLostListeners();},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=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=new util.type();uic.isArray=util.type.isArray;c.loader.register("util.type");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(this.size(a)!=this.size(b)){return false;}for(key in a){if(a.hasOwnProperty(key)){if(!b.hasOwnProperty(key)){return false;}if(!this.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=new util.Object();c.loader.register("util.Object");a.namespace("aria.ui");aria.ui.Section=function(){this._activeSection=null;this._sections={};this._ids={};this._secPrefix={};this._panels={};this._logger=util.log.getLogger("c.SectionManager");this.push=function(snm,id){id=(id)?id:"";this._secPrefix[snm]=id;this._activeSection=id+snm;
if(!((id+snm) in this._sections)){this._sections[id+snm]={};}};this.getUIC=function(sectionName,type){if(!type){return util.Object.toArray(this._sections[sectionName]);}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(this._getSec(sectionName),condition);};this._get=function(sectionName,cond){var res=[];var objects=this._sections[sectionName];for(var id in objects){if(cond(objects[id])){res.push(objects[id]);}}cond=undefined;return res;};this.getInputs=function(name){var condition=function(obj){return !!obj.getInput;};return this._get(this._getSec(name),condition);};this.get=function(sec,id){if(sec in this._sections&&id in this._sections[sec]){_logger.debug("usage of cache to retrieve object "+id);return this._sections[sec][id];}return false;};this._reg=function(id,obj,sec){try{var s=sec!=undefined?this._getSec(sec):this._activeSection;var ix=id.indexOf(s);if(ix!=-1){if(!(s in this._sections)){s=id.substring(0,ix+s.length);}if(!(s in this._sections)){this._sections[s]={};}this._sections[s][id]=obj;}else{if(!(s in this._sections)){this._sections[s]={};}this._sections[s][id]=obj;}this._ids[id]=s;}catch(e){this._logger.error("registration failed for section "+s+" id "+id,e);}};this._isReg=function(id,sec){try{var s=sec!=undefined?this._getSec(sec):this._activeSection;var ix=id.indexOf(s);if(ix!=-1){if(!(s in this._sections)){s=id.substring(0,ix+s.length);}if(!(s in this._sections)){this._sections[s]={};}if(this._sections[s][id]){return true;}}else{if(this._sections[s][s+"_"+id+"_id"]){return true;}}return false;}catch(e){this._logger.error("registration failed for section "+s+" id "+id,e);}};this._getSec=function(sec){var prefix=this._secPrefix[sec]||"";return prefix+sec;};this._delSec=function(sec){delete this._sections[sec];};this.destroyAllSections=function(){var sects=this._sections;for(var i in sects){var sec=sects[i];this._destroyAll(sec);}for(var i in sects){c.removeContent($k(i+"_id"));this._delSec(i);}};this.destroy=function(sects,prefix,keepDom){prefix=(typeof prefix=="string"&&prefix.length>0)?"e"+prefix:"";sects=(typeof sects=="string")?[sects]:sects;for(var i=0;i<sects.length;i++){try{var sectionName=prefix+sects[i];var section=this._getSec(sectionName);this._logger.info("Destroying section "+sectionName);this._destroyAll(this._sections[sectionName]);if(!keepDom){c.removeContent($k(section+"_id"));}this._delSec(section);delete this._secPrefix[sects[i]];}catch(e){this._logger.warn("destroy failed for section "+sects+" index "+i,e);}}};this._destroyAll=function(comp){if(util.type.isArray(comp)){for(var i=comp.length;i--;){this._destroyUICObject(comp[i]);}}else{for(var i in comp){if(comp.hasOwnProperty(i)){this._destroyUICObject(comp[i]);}}}};this._destroyUICObject=function(obj){if(!obj.destroy){return;}var tag,id,o=$d(obj)||{};try{delete this._ids[o.id];obj.destroy();}catch(e){tag=o.tag||"UNDEFINED";id=o.id||"UNDEFINED";this._logger.error("Destroy FAILED for component ["+tag+"], id : "+id);}finally{o=null;}};this.getPanel=function(options){if(options.section!=undefined){var section=options.section;var panels=this.getPanels();for(var fullSectionName in panels){if(fullSectionName.indexOf(section)!=-1){return panels[fullSectionName];}}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){prefix=(typeof prefix=="string")?"e"+prefix:"";var sectionName=this._getSec(prefix+section);return $k(sectionName+"_id");};this.getComponentName=function(component,sectionName){var componentId=$d(component).id;if(componentId&&typeof componentId=="string"){return this.getComponentNameById(componentId,sectionName);}};this.getComponentNameById=function(componentId,sectionName){if(!sectionName){sectionName=this.getSectionForComponentById(componentId);
}var fullSectionName=this._getSec(sectionName);var prefix=fullSectionName+"_";var suffix="_id";var name=componentId.substring(prefix.length,componentId.length-suffix.length);return name;};this.getSectionForComponent=function(component){var componentId=$d(component).id;if(componentId&&typeof componentId=="string"){return this.getSectionForComponentById(componentId);}};this.getSectionForComponentById=function(componentId){for(var sectionName in this._sections){var sectionComponents=this._sections[sectionName];if(sectionComponents[componentId]){return sectionName;}}};};c.loader.register("aria.ui.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,animateTarget){c.require("uic.Button");c.require("yui.dragdrop");c.require("yui.yui-ext-dialog");c.require("uic.Dialog");return uic.factory.Dialog._alert(title,shortText,longText,type,buttons,animateTarget);};c.genericAlert=function(parameters){c.require("uic.Button");c.require("yui.dragdrop");c.require("yui.yui-ext-dialog");c.require("uic.Dialog");return uic.factory.Dialog._genericAlert(parameters);};c.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);};c.__behaviours=[];c.__sections=[];c._sections=new aria.ui.Section();c.sectionManager=c._sections;c.destroy=function(s){c._sections.destroy(s);};c.removeContent=c.browser.isIE?function(){return function(n){var trashBinDiv;if(n&&n.tagName!="BODY"){trashBinDiv=document.createElement("div");trashBinDiv.appendChild(n);trashBinDiv.innerHTML="";trashBinDiv=null;}};}():function(n){if(n&&n.parentNode&&n.tagName!="BODY"){n.parentNode.removeChild(n);}};c._begRegSec=function(snm,id){util.log.getLogger("c.SectionManager").info("Registering new section "+id+snm);c.loadMng.sectionsInitializing[snm]=true;c._sections.push(snm,id);};c._endRegSec=function(snm,id){c.loadMng.sectionsInitializing[snm]=false;c.loadMng.initializing("SECTION",snm);var bc=this.__behaviours[snm];if(bc){var ref=c.getRef(bc);if(!ref){this._logger.error("Invalid Behaviour class: "+bc);}var o=new ref;o._setSectionId(snm);o.init();}c.__sections[snm]=true;c._sections._activeSection=null;c.loadMng.initialized("SECTION",snm);};c._appendToSection=function(obj,sec){var id=obj.id||"";try{var s=sec!=undefined?c._sections._getSec(sec):c._sections._activeSection;var ix=id.indexOf(sec);var ix2=id.indexOf(s);if(ix!=-1&&ix2==-1){s=id.substring(0,s.length);}$(s+"_id").appendChild(obj);}catch(e){c.removeContent(obj);}};uic.factory._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 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(){if(this.errorMessage){return{isValid:false,errorMessage:this.errorMessage};}return this._defaultNotValid;};uic.validator.GenericValidator.prototype.setErrorMessage=function(str){this.errorMessage=str;};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;};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");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;},_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(){this.getLogger().info("Destroying a component: "+this.tag+" ("+this.id+")");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");a.namespace("uic");c.require("uic.uicObject");c.require("uic.validator.REQValidator");uic.uicInput=function(){uic.uicInput.superclass.constructor.call(this);this._logger=this.getLogger();this.dam=$k(this.id);if(this.dam==null){this._logger.error("Object not retrieved in DOM : "+this.id);return;}this._evtAddCustomEvent(["STATECHANGE"]);c.addEvent(this.getInput(),"focus",this._onFocus,this,true);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";uic.uicInput._MandatoryValidator=new uic.validator.REQValidator();a.extend("uic.uicInput","uic.uicObject");uic.uicInput.prototype.getInputName=function(){return this.getInput().name;};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(uic.uicInput._MandatoryValidator);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");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");
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=[];if(util.dom.hasClass($d(this),uic.uicInput.CLASSNAME_NORMAL)){states.push(uic.uicInput.STATE_NORMAL);}var errorClass=this.getInput().getAttribute(uic.uicInput.ATTRIBUTE_ERROR);if(errorClass){if(util.dom.hasClass($d(this),errorClass)){states.push(uic.uicInput.STATE_ERROR);}}else{if(util.dom.hasClass($d(this),uic.uicInput.CLASSNAME_ERROR)){states.push(uic.uicInput.STATE_ERROR);}}if(util.dom.hasClass($d(this),uic.uicInput.CLASSNAME_MANDATORY)){states.push(uic.uicInput.STATE_MANDATORY);}if(util.dom.hasClass($d(this),uic.uicInput.CLASSNAME_DISABLED)){states.push(uic.uicInput.STATE_DISABLED);}if(util.dom.hasClass($d(this),uic.uicInput.CLASSNAME_READONLY)){states.push(uic.uicInput.STATE_READONLY);}if(states.length==0){states.push(uic.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._onFocus=function(){uic.uicInput.lastFocused=this;};uic.uicInput.prototype.destroy=function(){if(uic.uicInput.lastFocused==this){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);};c.loader.register("uic.uicInput");uic.uicInput.prototype.showContextError=function(){var text=this.getDom().getAttribute("_errortext");if(text){if(!c._contextErrorDom){this._createContextErrorDom();}c._contextErrorDom.getElementsByTagName("P")[0].innerHTML=text;var offsetTop=util.calculateOffset(this.getInput(),"offsetTop");var scrollTop=document.documentElement.scrollTop;var above=true;if(offsetTop<scrollTop+c._contextErrorDom.offsetHeight){above=false;}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;}if(leftPos){c._contextErrorDom.style.left=(util.calculateOffset(this.getInput(),"offsetLeft",false)+(46-c._contextErrorDom.offsetWidth))+"px";}else{c._contextErrorDom.style.left=(util.calculateOffset(this.getInput(),"offsetLeft",false)+this.getInput().offsetWidth-46)+"px";}if(above){c._contextErrorDom.style.top=(util.calculateOffset(this.getInput(),"offsetTop",false)-c._contextErrorDom.offsetHeight+6)+"px";}else{c._contextErrorDom.style.top=(util.calculateOffset(this.getInput(),"offsetTop",false)+this.getInput().offsetHeight-4)+"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){if(this.getDom().getAttribute("_errortext")){this.getDom().removeAttribute("_errortext");}if(text!==""){this.getDom().setAttribute("_errortext",text);}else{if(null==text){this.getDom().setAttribute("_errortext","");}}};uic.uicInput.prototype.getContextErrorText=function(){return this.getDom().getAttribute("_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.getDom().getAttribute("_errortext");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=[];};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{if(this._validators.isEmpty()){c.addEvent(this.getInput(),"blur",this._validationOnBlur,this,true);}this._validators.push(validator);}};uic.uicInput.prototype.removeValidator=function(validator){if(!validator){this._validators=[];c.remEvent(this.getInput(),"blur",this._validationOnBlur);
return;}if(!validator.instanceOf||!validator.instanceOf("uic.validator.GenericValidator")){return this._removeValidatorBck.apply(this,arguments);}if(!this._validators.contains(validator)){return;}else{this._validators.remove(validator);if(this._validators.isEmpty()){c.remEvent(this.getInput(),"blur",this._validationOnBlur);}}};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.validate=function(isOnBlur){this._errorMessages=[];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.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._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));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=[];c.remEvent(this.getInput(),"blur",this._validationOnBlur);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.getDom().getAttribute(uic.cste.ATTRIBUTE_ERRORTEXT);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);}try{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});}}catch(subscriberError){this._logger.error("One of "+eventName+" event's subscribers crashed.",subscriberError);return;}},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(){var lM=c.loadMng;var allEmpty=true;if(uic.cste.ESCAPE_WAITING in lM.onLoaded&&c.windowLoadEventFired){lM.execSectionUserScript(uic.cste.ESCAPE_WAITING);}for(var l_i in lM.initcomp){if(typeof lM.initcomp[l_i]!="function"&&l_i!="GENERAL"){if(lM.initcomp[l_i].length>0){allEmpty=false;}else{lM.execSectionUserScript(l_i);}}}if("GENERAL" in lM.onLoaded&&allEmpty&&c.windowLoadEventFired){lM.execSectionUserScript("GENERAL");}},execSectionUserScript:function(section){var lM=c.loadMng;if(section in lM.onLoaded&&!c.loadMng.sectionsInitializing[section]){var k=lM.onLoaded[section];while(k.length>0){var cb=k[0];try{if(typeof cb=="function"){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);}k.splice(0,1);}delete lM.onLoaded[section];if(section!="GENERAL"){this._logger.debug("LOADER:"+section+" -> Deleted");delete lM.initcomp[section];}}}};c.loadMng=new uic.loadMng();c.onLoad=function(cbfnt,obj,section,firedEvent){if(c.windowLoadEventFired){c.loadMng.cbOnPageLoaded({method:cbfnt,object:obj,section:section,firedEvent:firedEvent});if(section&&!(section in c.loadMng.initcomp)){c.loadMng.execSectionUserScript(section);}else{c.loadMng.executeUserScript();}}else{c.loadMng.cbOnPageLoaded({method:cbfnt,object:obj,section:section,firedEvent:firedEvent});}};c.onLoad(function(){if(m.__trackerAfter){m.__trackerAfter("application");}});YAHOO.util.Event.addListener(window,"load",function(){c.windowLoadEventFired=true;c.loadMng.executeUserScript();});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(id,scope,s,v){var v=typeof v=="undefined"?true:v;scope=typeof scope=="undefined"?"":scope;var sctn=[];var panid="";if(typeof id!="string"){return id;}if(arguments.length>1){if(typeof scope=="object"){var sect=typeof s=="undefined"?scope._section:s;if(typeof sect!="string"){sctn=sect;}else{sctn.push(sect);}if("_id" in scope&&scope._id!=null&&scope._id!=undefined){panid="e"+scope._id;}}else{sctn.push(scope);panid=typeof s=="undefined"?"":s;}}var objs=[];var obj;var _obj;for(var i=0;i<sctn.length;i++){_obj=c._sections.get(panid+sctn[i],panid+sctn[i]+"_"+id+"_id");if(!_obj){_obj=c._sections.get(sect,id);}if(!_obj){obj=$k(panid+sctn[i]+"_"+id+"_id");}else{return _obj;}_logger.debug("[$]<"+panid+"><"+sctn[i]+"><"+id+">");if(obj){objs.push(obj);}}if(objs.length==0){if(c._sections._ids[id]!=undefined&&!sect){sect=c._sections._ids[id];}obj=c._sections.get(sect,id);if(!obj){obj=$k(panid+id);}if(!obj){obj=$k(id);}if(obj){objs.push(obj);}}if(v&&objs.length==0&&!_obj){_logger.warn("[$]Nothing found <"+panid+"><"+sctn.join(";")+"><"+id+">");}if(v&&objs.length>1){_logger.warn("[$] found more than 1 object <"+id+">");}return _obj||objs[0];};$d=function(el){if(!el){return;}if(!!(typeof el.getDom==="function")){return el.getDom();}return el;};$k=(c.browser.isIE6||c.browser.isIE7)?(function(id){var el=document.getElementById(id);if(el){if(el.getAttribute("id")==id){return el;}else{for(var elem in document.all){if(elem.id==id){return elem;
}}}}return null;}):(function(id){return document.getElementById(id);});if(!util.dom){util.dom={};}util.dom._logger=util.log.getLogger("util.dom");util.dom.getElementById=function(obj,id){var obj=(typeof obj=="string")?$(obj):obj;if(obj==null){return null;}var childs=obj.childNodes;for(var i=0;i<childs.length;i++){if(childs[i].id==id){return childs[i];}else{var res=util.dom.getElementById(childs[i],id);if(res!=null){return res;}}}return null;};util.dom.getComputedStyle=function(element,attribute){element=$d(element);if(c.browser.isIE){if(attribute){return element.currentStyle[attribute];}else{return element.currentStyle;}}else{if(attribute){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(obj){obj=(typeof obj=="string")?$k(obj):obj;obj=$d(obj);return util.dom.isDisplayed(obj);};util.dom.isDisplayed=function(obj){return obj.offsetWidth!=0;},util.dom.initializer=function(componentId,callback,scope){this._logger.debug(componentId+" is invisible");var component;if(typeof componentId=="string"){component=$k(componentId);}else{component=componentId;}component=$d(component);scope=scope?scope:component;var ancestorNode=component.parentNode;var firstParent=ancestorNode;var widthAdjust=0;while(ancestorNode!=null&&!util.dom.isVisible(ancestorNode)){widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"marginLeft");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"marginRight");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"paddingLeft");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"paddingRight");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"borderLeftWidth");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"borderRightWidth");ancestorNode=ancestorNode.parentNode;}if(ancestorNode!=null){widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"paddingLeft");widthAdjust+=util.dom.getComputedFloatStyle(ancestorNode,"paddingRight");var el=document.createElement("div");el.className="uicInvisible";document.body.appendChild(el);var elWidth=ancestorNode.clientWidth-widthAdjust;if(isNaN(elWidth)||elWidth<10){el.style.width=util.dom.getViewportWidth()+"px";}else{el.style.width=elWidth+"px";}var where=component.nextSibling;el.appendChild(component);var forceShow=false;if(!util.dom.isVisible(component)){forceShow=true;util.dom.show(component);}if(util.dom.isVisible(component)){if(callback){callback.call(scope);}else{scope.init();}}if(forceShow){util.dom.hide(component);}if(where==null){firstParent.appendChild(component);}else{firstParent.insertBefore(component,where);}document.body.removeChild(el);delete el;}};util.dom.isInBorderLayout=function(el){var node=$d(el);var result=false;while(node.parentNode!=document.body){node=node.parentNode;if(c.hasClass(node,"ylayout-panel-body")&&node.borderLayoutRegion){result=node;break;}}return result;};util.dom.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;}delete domObj;}:function(){};util.dom.recForceLayout=(c.browser.isIE6||c.browser.isIE7)?function(obj){var domObj=$d(obj);var contStyle=util.dom.getComputedStyle(domObj,"display");var tagName=domObj.tagName.toLowerCase();if(contStyle=="block"){var childs=domObj.childNodes;util.dom.forceLayout(domObj);for(var i=0,l=childs.length;i<l;i++){if(childs[i].nodeType==1){util.dom.recForceLayout(childs[i]);}}}delete domObj;}:function(){};util.dom.debugObject=function(obj,sep,iter){this._logger.info("this function is deprecated");};function getPreviousSibling(n){var x=n.previousSibling;while(x.nodeType!=1){x=x.previousSibling;}return x;}util.dom.toggle_visibility=function(o,effect){if(o!=null){if(!util.dom.isVisible(o)){util.dom.show(o);}else{util.dom.hide(o);}}else{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){if(typeof inputText!="string"){return;}inputText=inputText.replace(/\n/g,"");inputText=inputText.replace(/\r/g,"");if(inputText==""||typeof inputText=="undefined"){return;}var srcExpression=/^([^<]*?)<script([^>]*?)src=(\"|\')((([^>]*)\/(.*?)\.js)|(([^\/]*)\.js))(\"|\')([^>]*?)(\/>|>([^<]*?)<\/script>)(.*)/;var srcResult=srcExpression.exec(inputText);if(srcResult!=null){util.dom.executeJS(srcResult[14]);}else{var scriptExpression=/^([\s\S]*?)<script(.*?)>([\s\S]*?)<\/script>([\s\S]*)/;var scriptResult=scriptExpression.exec(inputText);if(scriptResult!=null){eval(scriptResult[3]);util.dom.executeJS(scriptResult[4]);}}};util.dom.getElementsByAttribute=function(attr,attrVal,tag,root){tag=tag||"";var returnElms=[];if(typeof $$!="undefined"&&typeof $$=="function"){if(typeof attrVal!="undefined"){returnElms=$$(tag+"["+attr+"="+attrVal+"]",root);}else{returnElms=$$(tag+"["+attr+"]",root);}}else{var elms=((!tag||tag=="*")&&document.all)?document.all:document.getElementsByTagName(tag||"*");if(typeof attrVal!="undefined"){var attrVal=new RegExp("(^|\\s)"+attrVal+"(\\s|$)");}var current;
var currentAttr;for(var i=0;i<elms.length;i++){current=elms[i];currentAttr=current.getAttribute(attr);if(typeof currentAttr=="string"&&currentAttr.length>0){if(typeof attrVal=="undefined"||(attrVal&&attrVal.test(currentAttr))){returnElms.push(current);}}}}return returnElms;};util.dom.addClass=function(el,className){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){return YAHOO.util.Dom.hasClass($d(el),className);};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=["'](.*?)["']/ig,' id="e'+id+'$1"');}else{return pageContent;}};util.dom.oldPrefixIDs=function(pageContent,id,method){if(method==3){return pageContent.replace(/\sid=["'](.*?)["']/ig,' id="e'+id+'$1"');}var startPosition=0;var endPosition=0;if(pageContent==""||typeof pageContent=="undefined"){return"";}var pageReturn=pageContent;var s=' id="';endPosition=pageContent.indexOf(s,startPosition);if(endPosition==-1){return pageReturn;}else{pageReturn="";if(method==2){while(endPosition!=-1){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.addShim=function(box,o){if(o&&o.appendToParent){o.body=false;}box=$d(box);a.shimManager.check();a.shimManager.targets.push(box);a.shimManager.assignFrame(box,o);};util.dom.remShim=function(box){box=$d(box);a.shimManager.check();a.shimManager.removeTarget(box);a.shimManager.releaseFrame(box);};util.dom.updateShim=function(box,o){if(o&&o.appendToParent){o.body=false;}box=$d(box);a.shimManager.check();var frame=a.shimManager.getUsedFrame(box);if(frame){a.shimManager.displayShim(frame,box,o);}else{util.dom.addShim(box,o);}};util.dom.shimManager=function(){};util.dom.shimManager.prototype={targets:[],usedFrames:[],frames:[],bindings:[],deleteItem:function(el,ar){var i=ar.indexOf(el);if(i>=0){return ar.splice(i,1)[0];}},addFrame:function(){this.frames.push(this.createShim());},getFrame:function(){if(this.frames.length==0){this.addFrame();}return this.frames.pop();},assignFrame:function(box,o){var frame=this.getFrame();this.usedFrames.push(frame);this.displayShim(frame,box,o);this.bindings.push({box:box,frame:frame});},releaseFrame:function(box){var frame=this.getUsedFrame(box,true);if(frame){this.deleteItem(frame,this.usedFrames);this.hideShim(frame);this.frames.push(frame);}},getUsedFrame:function(box,removeBinding){for(var i=0;i<this.bindings.length;i++){if(this.bindings[i].box==box){if(removeBinding){var f=this.bindings.splice(i,1);return f[0].frame;}else{return this.bindings[i].frame;}}}},removeTarget:function(target){this.deleteItem(target,this.targets);},check:function(){for(var i=0;i<this.bindings.length;i++){if(!util.dom.isVisible(this.bindings[i].box)){this.removeTarget(this.bindings[i].box);this.releaseFrame(this.bindings[i].box);}else{this.checkIndex(this.bindings[i].frame,this.bindings[i].box);}}},checkIndex:function(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(!c.browser.isIE6){util.dom.addShim=util.dom.remShim=util.dom.updateShim=function(){};}else{a.shimManager=new util.dom.shimManager();}util.dom._getElementsByName_iefix=function(tag,name){var elem=document.getElementsByTagName(tag);var arr=new Array();for(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.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;while(array[i]&&(array[i].offsetWidth==0||array[i].disabled)){i++;}if(array[i]){return array[i];}else{return false;}};a._push=function(el){if(el){a.push(el);}};a._push(getFirstVisible($$("a",el)));a._push(getFirstVisible($$("input",el)));a._push(getFirstVisible($$("select",el)));a._push(getFirstVisible($$("textarea",el)));a._push(getFirstVisible($$("button",el)));while(a.length>1){var m=a[0],n=a[a.length-1];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)){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._isCSS1Compat=(function(){var compatMode=document.compatMode;if(compatMode=="CSS1Compat"){return true;}else{return false;}})();util.dom._documentScrollElement=(function(){return(!(util.browser.isSafari||util.browser.isChrome)&&util.dom._isCSS1Compat)?document.documentElement:document.body;})();util.dom._getDocumentScrollLeft=function(){return this._documentScrollElement.scrollLeft;};util.dom._getDocumentScrollTop=function(){return this._documentScrollElement.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";_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.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();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("&");}};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=(typeof options.language=="undefined"||options.language.length==0)?"GB":options.language;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.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=/^([\/\.: yMd])*$/;this.amPmPat=/^(a|p|am|pm|a\.m\.|p\.m\.)/i;var bundledate=new util.I18n({language:uic.p.SITE_LANGUAGE,bundleName:"date"});this.weekslong=[bundledate.get("uic.r.sunday"),bundledate.get("uic.r.monday"),bundledate.get("uic.r.tuesday"),bundledate.get("uic.r.wednesday"),bundledate.get("uic.r.thursday"),bundledate.get("uic.r.friday"),bundledate.get("uic.r.saturday")];this.monthlong=[bundledate.get("uic.r.january"),bundledate.get("uic.r.february"),bundledate.get("uic.r.march"),bundledate.get("uic.r.april"),bundledate.get("uic.r.may"),bundledate.get("uic.r.june"),bundledate.get("uic.r.july"),bundledate.get("uic.r.august"),bundledate.get("uic.r.september"),bundledate.get("uic.r.october"),bundledate.get("uic.r.november"),bundledate.get("uic.r.december")];this.monthshort=[bundledate.get("uic.r.jan"),bundledate.get("uic.r.feb"),bundledate.get("uic.r.mar"),bundledate.get("uic.r.apr"),bundledate.get("uic.r.may"),bundledate.get("uic.r.jun"),bundledate.get("uic.r.jul"),bundledate.get("uic.r.aug"),bundledate.get("uic.r.sep"),bundledate.get("uic.r.oct"),bundledate.get("uic.r.nov"),bundledate.get("uic.r.dec")];this.lowermonthshort=[bundledate.get("uic.r.jan").toLowerCase(),bundledate.get("uic.r.feb").toLowerCase(),bundledate.get("uic.r.mar").toLowerCase(),bundledate.get("uic.r.apr").toLowerCase(),bundledate.get("uic.r.may").toLowerCase(),bundledate.get("uic.r.jun").toLowerCase(),bundledate.get("uic.r.jul").toLowerCase(),bundledate.get("uic.r.aug").toLowerCase(),bundledate.get("uic.r.sep").toLowerCase(),bundledate.get("uic.r.oct").toLowerCase(),bundledate.get("uic.r.nov").toLowerCase(),bundledate.get("uic.r.dec").toLowerCase()];this.weeksshort=[bundledate.get("uic.r.sun"),bundledate.get("uic.r.mon"),bundledate.get("uic.r.tue"),bundledate.get("uic.r.wed"),bundledate.get("uic.r.thu"),bundledate.get("uic.r.fri"),bundledate.get("uic.r.sat")];this.cutoffYear=50;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;}this.monPatArr=[];this.monthPatArr=[];this.monPatArr.MMM=new RegExp(mon_regexp);this.monthPatArr.MMMMM=new RegExp(month_regexp);this.monthPatArr.MMMM=new RegExp(month_regexp);this.parsingError=null;};util.dateFormat.prototype._interprate=function(code,date){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":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.getDate=function(pattern,sdate,strict){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);if(dateTemp!==null){return dateTemp;}}}var tokArr=this._parseFormatString(pattern);var strInd=0;var tokInd=0;var ampm="";var intMonth,intDay,intYear,intHour,intMin,intSec,strOffset;var curdate=new Date();intMonth=curdate.getMonth()+1;intDay="noday";intYear=curdate.getFullYear();var yearAuto=true;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=parseInt(sdate.substr(strInd,2),10);if(intYear>=this.cutoffYear){intYear+=1900;}else{intYear+=2000;}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=parseInt(sdate.substr(strInd,2),10);if(intYear>=this.cutoffYear){intYear+=1900;}else{intYear+=2000;}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=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+".");}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"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)){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(yearAuto&&newDate.getTime()<curdate.getTime()){newDate=new Date(intYear+1,intMonth-1,intDay,intHour,intMin,intSec);}return newDate;};util.dateFormat.prototype._decodeDateShortcut=function(pattern,sdate){var today=new Date();var returned=sdate.trim();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=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 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;for(var i=0;i<12;i++){if(this.monthshort[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]<50){arDate[iYear]+=2000;}else{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]<50){arDate[iYear]+=2000;}else{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 resultDate=new Date(arDate[iYear],arDate[iMonth],arDate[iDay],23,59,59);if(noYear&&adjustYear&&util.date.before(resultDate,today)){arDate[iYear]++;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){if(pattern.length===0){return"";}var formatted="";var tokArr=this._parseFormatString(pattern);var tokInd=0;while(tokInd<tokArr.length){if(tokArr[tokInd].type=="literal"){formatted+=tokArr[tokInd++].token;}else{formatted+=this._interprate(tokArr[tokInd].token,jsdate);tokInd++;}}return formatted;};util.dateFormat.prototype._parseFormatString=function(formatStr){var tokArr=[];var tokInd=0;var strInd=0;var foundTok=0;while(strInd<formatStr.length){var matchArray=this.tokPat.exec(formatStr.substr(strInd));if(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=new util.dateFormat();c.loader.register("util.dateFormat");c.require("util.dateFormat");util.simpleDateFormat=function(){return util.dateFormat;};c.loader.register("util.simpleDateFormat");
