/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

(function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _8=_1[i];_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";_3+=(i==0?"":",")+_8[0];_4+=(i==0?"":",")+_8[1];_5[_8[0]]=_8[1];_6[_8[1]]=_8[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(!this["console"]){this.console={log:function(){}};}var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _c=tn+"";console[_c]=function(){var a=Array.apply({},arguments);a.unshift(_c+":");console.log(a.join(" "));};})();}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _f in djConfig){d.config[_f]=djConfig[_f];}}var _10=["Browser","Rhino","Spidermonkey","Mobile"];var t;while((t=_10.shift())){d["is"+t]=false;}dojo.locale=d.config.locale;var rev="$Rev: 13707 $".match(/\d+/);dojo.version={major:1,minor:1,patch:1,flag:"",revision:rev?+rev[0]:999999,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}dojo._mixin=function(obj,_14){var _15={};for(var x in _14){if(_15[x]===undefined||_15[x]!=_14[x]){obj[x]=_14[x];}}if(d["isIE"]&&_14){var p=_14.toString;if(typeof p=="function"&&p!=obj.toString&&p!=_15.toString&&p!="\nfunction toString() {\n    [native code]\n}\n"){obj.toString=_14.toString;}}return obj;};dojo.mixin=function(obj,_19){for(var i=1,l=arguments.length;i<l;i++){d._mixin(obj,arguments[i]);}return obj;};dojo._getProp=function(_1c,_1d,_1e){var obj=_1e||d.global;for(var i=0,p;obj&&(p=_1c[i]);i++){if(i==0&&this._scopeMap[p]){p=this._scopeMap[p];}obj=(p in obj?obj[p]:(_1d?obj[p]={}:undefined));}return obj;};dojo.setObject=function(_22,_23,_24){var _25=_22.split("."),p=_25.pop(),obj=d._getProp(_25,true,_24);return obj&&p?(obj[p]=_23):undefined;};dojo.getObject=function(_28,_29,_2a){return d._getProp(_28.split("."),_29,_2a);};dojo.exists=function(_2b,obj){return !!d.getObject(_2b,false,obj);};dojo["eval"]=function(_2d){return d.global.eval?d.global.eval(_2d):eval(_2d);};d.deprecated=d.experimental=function(){};})();(function(){var d=dojo;d.mixin(d,{_loadedModules:{},_inFlightCount:0,_hasResource:{},_modulePrefixes:{dojo:{name:"dojo",value:"."},doh:{name:"doh",value:"../util/doh"},tests:{name:"tests",value:"tests"}},_moduleHasPrefix:function(_2f){var mp=this._modulePrefixes;return !!(mp[_2f]&&mp[_2f].value);},_getModulePrefix:function(_31){var mp=this._modulePrefixes;if(this._moduleHasPrefix(_31)){return mp[_31].value;}return _31;},_loadedUrls:[],_postLoad:false,_loaders:[],_unloaders:[],_loadNotifying:false});dojo._loadUriAndCheck=function(uri,_34,cb){var ok=false;try{ok=this._loadUri(uri,cb);}catch(e){console.error("failed loading "+uri+" with error: "+e);}return !!(ok&&this._loadedModules[_34]);};dojo.loaded=function(){this._loadNotifying=true;this._postLoad=true;var mll=d._loaders;this._loaders=[];for(var x=0;x<mll.length;x++){try{mll[x]();}catch(e){throw e;console.error("dojo.addOnLoad callback failed: "+e,e);}}this._loadNotifying=false;if(d._postLoad&&d._inFlightCount==0&&mll.length){d._callLoaded();}};dojo.unloaded=function(){var mll=this._unloaders;while(mll.length){(mll.pop())();}};var _3a=function(arr,obj,fn){if(!fn){arr.push(obj);}else{if(fn){var _3e=(typeof fn=="string")?obj[fn]:fn;arr.push(function(){_3e.call(obj);});}}};dojo.addOnLoad=function(obj,_40){_3a(d._loaders,obj,_40);if(d._postLoad&&d._inFlightCount==0&&!d._loadNotifying){d._callLoaded();}};dojo.addOnUnload=function(obj,_42){_3a(d._unloaders,obj,_42);};dojo._modulesLoaded=function(){if(d._postLoad){return;}if(d._inFlightCount>0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}};dojo._getModuleSymbols=function(_43){var _44=_43.split(".");for(var i=_44.length;i>0;i--){var _46=_44.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_46)){_44[0]="../"+_44[0];}else{var _47=this._getModulePrefix(_46);if(_47!=_46){_44.splice(0,i,_47);break;}}}return _44;};dojo._global_omit_module_check=false;dojo._loadModule=dojo.require=function(_48,_49){_49=this._global_omit_module_check||_49;var _4a=this._loadedModules[_48];if(_4a){return _4a;}var _4b=this._getModuleSymbols(_48).join("/")+".js";var _4c=(!_49)?_48:null;var ok=this._loadPath(_4b,_4c);if(!ok&&!_49){throw new Error("Could not load '"+_48+"'; last tried '"+_4b+"'");}if(!_49&&!this._isXDomain){_4a=this._loadedModules[_48];if(!_4a){throw new Error("symbol '"+_48+"' is not defined after loading '"+_4b+"'");}}return _4a;};dojo.provide=function(_4e){_4e=_4e+"";return (d._loadedModules[_4e]=d.getObject(_4e,true));};dojo.platformRequire=function(_4f){var _50=_4f.common||[];var _51=_50.concat(_4f[d._name]||_4f["default"]||[]);for(var x=0;x<_51.length;x++){var _53=_51[x];if(_53.constructor==Array){d._loadModule.apply(d,_53);}else{d._loadModule(_53);}}};dojo.requireIf=function(_54,_55){if(_54===true){var _56=[];for(var i=1;i<arguments.length;i++){_56.push(arguments[i]);}d.require.apply(d,_56);}};dojo.requireAfterIf=d.requireIf;dojo.registerModulePath=function(_58,_59){d._modulePrefixes[_58]={name:_58,value:_59};};if(typeof dojo.config["useXDomain"]=="undefined"){dojo.config.useXDomain=true;}dojo.registerModulePath("dojo","http://o.aolcdn.com/dojo/1.1.1/dojo");dojo.registerModulePath("dijit","http://o.aolcdn.com/dojo/1.1.1/dijit");dojo.registerModulePath("dojox","http://o.aolcdn.com/dojo/1.1.1/dojox");dojo.requireLocalization=function(_5a,_5b,_5c,_5d){d.require("dojo.i18n");d.i18n._requireLocalization.apply(d.hostenv,arguments);};var ore=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$");var ire=new RegExp("^((([^:]+:)?([^@]+))@)?([^:]*)(:([0-9]+))?$");dojo._Url=function(){var n=null;var _a=arguments;var uri=[_a[0]];for(var i=1;i<_a.length;i++){if(!_a[i]){continue;}var _64=new d._Url(_a[i]+"");var _65=new d._Url(uri[0]+"");if(_64.path==""&&!_64.scheme&&!_64.authority&&!_64.query){if(_64.fragment!=n){_65.fragment=_64.fragment;}_64=_65;}else{if(!_64.scheme){_64.scheme=_65.scheme;if(!_64.authority){_64.authority=_65.authority;if(_64.path.charAt(0)!="/"){var _66=_65.path.substring(0,_65.path.lastIndexOf("/")+1)+_64.path;var _67=_66.split("/");for(var j=0;j<_67.length;j++){if(_67[j]=="."){if(j==_67.length-1){_67[j]="";}else{_67.splice(j,1);j--;}}else{if(j>0&&!(j==1&&_67[0]=="")&&_67[j]==".."&&_67[j-1]!=".."){if(j==(_67.length-1)){_67.splice(j,1);_67[j-1]="";}else{_67.splice(j-1,2);j-=2;}}}}_64.path=_67.join("/");}}}}uri=[];if(_64.scheme){uri.push(_64.scheme,":");}if(_64.authority){uri.push("//",_64.authority);}uri.push(_64.path);if(_64.query){uri.push("?",_64.query);}if(_64.fragment){uri.push("#",_64.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[5];this.port=r[7]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_6a,url){var loc=d._getModuleSymbols(_6a).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _6d=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_6d==-1||_6d>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();dojo.provide("dojo._base._loader.loader_xd");dojo._xdReset=function(){this._isXDomain=dojo.config.useXDomain||false;this._xdTimer=0;this._xdInFlight={};this._xdOrderedReqs=[];this._xdDepMap={};this._xdContents=[];this._xdDefList=[];};dojo._xdReset();dojo._xdCreateResource=function(_6e,_6f,_70){var _71=_6e.replace(/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,"");var _72=[];var _73=/dojo.(require|requireIf|provide|requireAfterIf|platformRequire|requireLocalization)\(([\w\W]*?)\)/mg;var _74;while((_74=_73.exec(_71))!=null){if(_74[1]=="requireLocalization"){eval(_74[0]);}else{_72.push("\""+_74[1]+"\", "+_74[2]);}}var _75=[];_75.push(dojo._scopeName+"._xdResourceLoaded({\n");if(_72.length>0){_75.push("depends: [");for(var i=0;i<_72.length;i++){if(i>0){_75.push(",\n");}_75.push("["+_72[i]+"]");}_75.push("],");}_75.push("\ndefineResource: function("+dojo._scopePrefixArgs+"){");if(!dojo.config["debugAtAllCosts"]||_6f=="dojo._base._loader.loader_debug"){_75.push(_6e);}_75.push("\n}, resourceName: '"+_6f+"', resourcePath: '"+_70+"'});");return _75.join("");};dojo._xdIsXDomainPath=function(_77){var _78=_77.indexOf(":");var _79=_77.indexOf("/");if(_78>0&&_78<_79){return true;}else{var url=this.baseUrl;_78=url.indexOf(":");_79=url.indexOf("/");if(_78>0&&_78<_79&&(!location.host||url.indexOf("http://"+location.host)!=0)){return true;}}return false;};dojo._loadPath=function(_7b,_7c,cb){var _7e=this._xdIsXDomainPath(_7b);this._isXDomain|=_7e;var uri=((_7b.charAt(0)=="/"||_7b.match(/^\w+:/))?"":this.baseUrl)+_7b;try{return ((!_7c||this._isXDomain)?this._loadUri(uri,cb,_7e,_7c):this._loadUriAndCheck(uri,_7c,cb));}catch(e){console.debug(e);return false;}};dojo._loadUri=function(uri,cb,_82,_83){if(this._loadedUrls[uri]){return 1;}if(this._isXDomain&&_83&&_83!="dojo.i18n"){this._xdOrderedReqs.push(_83);if(_82||uri.indexOf("/nls/")==-1){this._xdInFlight[_83]=true;this._inFlightCount++;}if(!this._xdTimer){if(dojo.isAIR){this._xdTimer=setInterval(function(){dojo._xdWatchInFlight();},100);}else{this._xdTimer=setInterval(dojo._scopeName+"._xdWatchInFlight();",100);}}this._xdStartTime=(new Date()).getTime();}if(_82){var _84=uri.lastIndexOf(".");if(_84<=0){_84=uri.length-1;}var _85=uri.substring(0,_84)+".xd";if(_84!=uri.length-1){_85+=uri.substring(_84,uri.length);}if(dojo.isAIR){_85=_85.replace("app:/","/");}var _86=document.createElement("script");_86.type="text/javascript";_86.src=_85;if(!this.headElement){this._headElement=document.getElementsByTagName("head")[0];if(!this._headElement){this._headElement=document.getElementsByTagName("html")[0];}}this._headElement.appendChild(_86);}else{var _87=this._getText(uri,null,true);if(_87==null){return 0;}if(this._isXDomain&&uri.indexOf("/nls/")==-1&&_83!="dojo.i18n"){var res=this._xdCreateResource(_87,_83,uri);dojo.eval(res);}else{if(cb){_87="("+_87+")";}else{_87=this._scopePrefix+_87+this._scopeSuffix;}var _89=dojo["eval"](_87+"\r\n//@ sourceURL="+uri);if(cb){cb(_89);}}}this._loadedUrls[uri]=true;this._loadedUrls.push(uri);return true;};dojo._xdResourceLoaded=function(res){var _8b=res.depends;var _8c=null;var _8d=null;var _8e=[];if(_8b&&_8b.length>0){var dep=null;var _90=0;var _91=false;for(var i=0;i<_8b.length;i++){dep=_8b[i];if(dep[0]=="provide"){_8e.push(dep[1]);}else{if(!_8c){_8c=[];}if(!_8d){_8d=[];}var _93=this._xdUnpackDependency(dep);if(_93.requires){_8c=_8c.concat(_93.requires);}if(_93.requiresAfter){_8d=_8d.concat(_93.requiresAfter);}}var _94=dep[0];var _95=_94.split(".");if(_95.length==2){dojo[_95[0]][_95[1]].apply(dojo[_95[0]],dep.slice(1));}else{dojo[_94].apply(dojo,dep.slice(1));}}if(_8e.length==1&&_8e[0]=="dojo._base._loader.loader_debug"){res.defineResource(dojo);}else{var _96=this._xdContents.push({content:res.defineResource,resourceName:res["resourceName"],resourcePath:res["resourcePath"],isDefined:false})-1;for(var i=0;i<_8e.length;i++){this._xdDepMap[_8e[i]]={requires:_8c,requiresAfter:_8d,contentIndex:_96};}}for(var i=0;i<_8e.length;i++){this._xdInFlight[_8e[i]]=false;}}};dojo._xdLoadFlattenedBundle=function(_97,_98,_99,_9a){_99=_99||"root";var _9b=dojo.i18n.normalizeLocale(_99).replace("-","_");var _9c=[_97,"nls",_98].join(".");var _9d=dojo["provide"](_9c);_9d[_9b]=_9a;var _9e=[_97,_9b,_98].join(".");var _9f=dojo._xdBundleMap[_9e];if(_9f){for(var _a0 in _9f){_9d[_a0]=_9a;}}};dojo._xdInitExtraLocales=function(){var _a1=dojo.config.extraLocale;if(_a1){if(!_a1 instanceof Array){_a1=[_a1];}dojo._xdReqLoc=dojo.xdRequireLocalization;dojo.xdRequireLocalization=function(m,b,_a4,_a5){dojo._xdReqLoc(m,b,_a4,_a5);if(_a4){return;}for(var i=0;i<_a1.length;i++){dojo._xdReqLoc(m,b,_a1[i],_a5);}};}};dojo._xdBundleMap={};dojo.xdRequireLocalization=function(_a7,_a8,_a9,_aa){if(dojo._xdInitExtraLocales){dojo._xdInitExtraLocales();dojo._xdInitExtraLocales=null;dojo.xdRequireLocalization.apply(dojo,arguments);return;}var _ab=_aa.split(",");var _ac=dojo.i18n.normalizeLocale(_a9);var _ad="";for(var i=0;i<_ab.length;i++){if(_ac.indexOf(_ab[i])==0){if(_ab[i].length>_ad.length){_ad=_ab[i];}}}var _af=_ad.replace("-","_");var _b0=dojo.getObject([_a7,"nls",_a8].join("."));if(_b0&&_b0[_af]){bundle[_ac.replace("-","_")]=_b0[_af];}else{var _b1=[_a7,(_af||"root"),_a8].join(".");var _b2=dojo._xdBundleMap[_b1];if(!_b2){_b2=dojo._xdBundleMap[_b1]={};}_b2[_ac.replace("-","_")]=true;dojo.require(_a7+".nls"+(_ad?"."+_ad:"")+"."+_a8);}};dojo._xdRealRequireLocalization=dojo.requireLocalization;dojo.requireLocalization=function(_b3,_b4,_b5,_b6){var _b7=this.moduleUrl(_b3).toString();if(this._xdIsXDomainPath(_b7)){return dojo.xdRequireLocalization.apply(dojo,arguments);}else{return dojo._xdRealRequireLocalization.apply(dojo,arguments);}};dojo._xdUnpackDependency=function(dep){var _b9=null;var _ba=null;switch(dep[0]){case "requireIf":case "requireAfterIf":if(dep[1]===true){_b9=[{name:dep[2],content:null}];}break;case "platformRequire":var _bb=dep[1];var _bc=_bb["common"]||[];var _b9=(_bb[dojo.hostenv.name_])?_bc.concat(_bb[dojo.hostenv.name_]||[]):_bc.concat(_bb["default"]||[]);if(_b9){for(var i=0;i<_b9.length;i++){if(_b9[i] instanceof Array){_b9[i]={name:_b9[i][0],content:null};}else{_b9[i]={name:_b9[i],content:null};}}}break;case "require":_b9=[{name:dep[1],content:null}];break;case "i18n._preloadLocalizations":dojo.i18n._preloadLocalizations.apply(dojo.i18n._preloadLocalizations,dep.slice(1));break;}if(dep[0]=="requireAfterIf"||dep[0]=="requireIf"){_ba=_b9;_b9=null;}return {requires:_b9,requiresAfter:_ba};};dojo._xdWalkReqs=function(){var _be=null;var req;for(var i=0;i<this._xdOrderedReqs.length;i++){req=this._xdOrderedReqs[i];if(this._xdDepMap[req]){_be=[req];_be[req]=true;this._xdEvalReqs(_be);}}};dojo._xdEvalReqs=function(_c1){while(_c1.length>0){var req=_c1[_c1.length-1];var res=this._xdDepMap[req];if(res){var _c4=res.requires;if(_c4&&_c4.length>0){var _c5;for(var i=0;i<_c4.length;i++){_c5=_c4[i].name;if(_c5&&!_c1[_c5]){_c1.push(_c5);_c1[_c5]=true;this._xdEvalReqs(_c1);}}}var _c7=this._xdContents[res.contentIndex];if(!_c7.isDefined){var _c8=_c7.content;_c8["resourceName"]=_c7["resourceName"];_c8["resourcePath"]=_c7["resourcePath"];this._xdDefList.push(_c8);_c7.isDefined=true;}this._xdDepMap[req]=null;var _c4=res.requiresAfter;if(_c4&&_c4.length>0){var _c5;for(var i=0;i<_c4.length;i++){_c5=_c4[i].name;if(_c5&&!_c1[_c5]){_c1.push(_c5);_c1[_c5]=true;this._xdEvalReqs(_c1);}}}}_c1.pop();}};dojo._xdClearInterval=function(){clearInterval(this._xdTimer);this._xdTimer=0;};dojo._xdWatchInFlight=function(){var _c9="";var _ca=(dojo.config.xdWaitSeconds||15)*1000;var _cb=(this._xdStartTime+_ca)<(new Date()).getTime();for(var _cc in this._xdInFlight){if(this._xdInFlight[_cc]===true){if(_cb){_c9+=_cc+" ";}else{return;}}}this._xdClearInterval();if(_cb){throw "Could not load cross-domain resources: "+_c9;}this._xdWalkReqs();var _cd=this._xdDefList.length;for(var i=0;i<_cd;i++){var _cf=dojo._xdDefList[i];if(dojo.config["debugAtAllCosts"]&&_cf["resourceName"]){if(!this["_xdDebugQueue"]){this._xdDebugQueue=[];}this._xdDebugQueue.push({resourceName:_cf.resourceName,resourcePath:_cf.resourcePath});}else{_cf.apply(dojo.global,dojo._scopeArgs);}}for(var i=0;i<this._xdContents.length;i++){var _d0=this._xdContents[i];if(_d0.content&&!_d0.isDefined){_d0.content.apply(dojo.global,dojo._scopeArgs);}}this._xdReset();if(this["_xdDebugQueue"]&&this._xdDebugQueue.length>0){this._xdDebugFileLoaded();}else{this._xdNotifyLoaded();}};dojo._xdNotifyLoaded=function(){this._inFlightCount=0;if(this._initFired&&!this._loadNotifying){this._callLoaded();}};if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _d2=document.getElementsByTagName("script");var _d3=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_d2.length;i++){var src=_d2[i].getAttribute("src");if(!src){continue;}var m=src.match(_d3);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_d2[i].getAttribute("djConfig");if(cfg){var _d8=eval("({ "+cfg+" })");for(var x in _d8){dojo.config[x]=_d8[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);d.isOpera=(dua.indexOf("Opera")>=0)?tv:0;var idx=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(idx){d.isSafari=parseFloat(dav.split("Version/")[1])||((parseFloat(dav.substr(idx+7))>=419.3)?3:2)||2;}d.isAIR=(dua.indexOf("AdobeAIR")>=0)?1:0;d.isKhtml=(dav.indexOf("Konqueror")>=0||d.isSafari)?tv:0;d.isMozilla=d.isMoz=(dua.indexOf("Gecko")>=0&&!d.isKhtml)?tv:0;d.isFF=d.isIE=0;if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1])||0;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||0;}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _e0=null;var _e1=null;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_e0=new XMLHttpRequest();}catch(e){}}if(!_e0){for(var i=0;i<3;++i){var _e3=d._XMLHTTP_PROGIDS[i];try{_e0=new ActiveXObject(_e3);}catch(e){_e1=e;}if(_e0){d._XMLHTTP_PROGIDS=[_e3];break;}}}if(!_e0){throw new Error("XMLHTTP not available: "+_e1);}return _e0;};d._isDocumentOk=function(_e4){var _e5=_e4.status||0;return (_e5>=200&&_e5<300)||_e5==304||_e5==1223||(!_e5&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _e6=window.location+"";var _e7=document.getElementsByTagName("base");var _e8=(_e7&&_e7.length>0);d._getText=function(uri,_ea){var _eb=this._xhrObj();if(!_e8&&dojo._Url){uri=(new dojo._Url(_e6,uri)).toString();}if(d.config.cacheBust){uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_eb.open("GET",uri,false);try{_eb.send(null);if(!d._isDocumentOk(_eb)){var err=Error("Unable to load "+uri+" status:"+_eb.status);err.status=_eb.status;err.responseText=_eb.responseText;throw err;}}catch(e){if(_ea){return null;}throw e;}return _eb.responseText;};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _ee=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_ee!="domcontentloaded"&&_ee!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer" in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};dojo._fakeLoadInit=function(){dojo._loadInit({type:"load"});};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if(/(WebKit|khtml)/i.test(navigator.userAgent)){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}(function(){var _w=window;var _f0=function(_f1,fp){var _f3=_w[_f1]||function(){};_w[_f1]=function(){fp.apply(_w,arguments);_f3.apply(_w,arguments);};};if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write("<scr"+"ipt defer src=\"//:\" "+"onreadystatechange=\"if(this.readyState=='complete'){"+dojo._scopeName+"._loadInit();}\">"+"</scr"+"ipt>");}var _f4=true;_f0("onbeforeunload",function(){_w.setTimeout(function(){_f4=false;},0);});_f0("onunload",function(){if(_f4){dojo.unloaded();}});try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}else{_f0("onbeforeunload",function(){dojo.unloaded();});}})();}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _f6 in mp){dojo.registerModulePath(_f6,mp[_f6]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=(function(){var _f9=function(it){return it&&(typeof it=="function"||it instanceof Function);};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _f9(it);}:_f9;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_100,_101){for(var i=1,l=arguments.length;i<l;i++){dojo._mixin(_100.prototype,arguments[i]);}return _100;};dojo._hitchArgs=function(_104,_105){var pre=dojo._toArray(arguments,2);var _107=dojo.isString(_105);return function(){var args=dojo._toArray(arguments);var f=_107?(_104||dojo.global)[_105]:_105;return f&&f.apply(_104||this,pre.concat(args));};};dojo.hitch=function(_10a,_10b){if(arguments.length>2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_10b){_10b=_10a;_10a=null;}if(dojo.isString(_10b)){_10a=_10a||dojo.global;if(!_10a[_10b]){throw (["dojo.hitch: scope[\"",_10b,"\"] is null (scope=\"",_10a,"\")"].join(""));}return function(){return _10a[_10b].apply(_10a,arguments||[]);};}return !_10a?_10b:function(){return _10b.apply(_10a,arguments||[]);};};dojo.delegate=dojo._delegate=function(obj,_10d){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_10d){dojo.mixin(tmp,_10d);}return tmp;};dojo.partial=function(_10f){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo._toArray=function(obj,_112,_113){var arr=_113||[];for(var x=_112||0;x<obj.length;x++){arr.push(obj[x]);}return arr;};dojo.clone=function(o){if(!o){return o;}if(dojo.isArray(o)){var r=[];for(var i=0;i<o.length;++i){r.push(dojo.clone(o[i]));}return r;}if(!dojo.isObject(o)){return o;}if(o.nodeType&&o.cloneNode){return o.cloneNode(true);}if(o instanceof Date){return new Date(o.getTime());}var r=new o.constructor();for(var i in o){if(!(i in r)||r[i]!=o[i]){r[i]=dojo.clone(o[i]);}}return r;};dojo.trim=function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");};}if(!dojo._hasResource["dojo._base.declare"]){dojo._hasResource["dojo._base.declare"]=true;dojo.provide("dojo._base.declare");dojo.declare=function(_11a,_11b,_11c){var dd=arguments.callee,_11e;if(dojo.isArray(_11b)){_11e=_11b;_11b=_11e.shift();}if(_11e){dojo.forEach(_11e,function(m){if(!m){throw (_11a+": mixin #"+i+" is null");}_11b=dd._delegate(_11b,m);});}var init=(_11c||0).constructor,ctor=dd._delegate(_11b),fn;for(var i in _11c){if(dojo.isFunction(fn=_11c[i])&&!0[i]){fn.nom=i;}}dojo.extend(ctor,{declaredClass:_11a,_constructor:init,preamble:null},_11c||0);ctor.prototype.constructor=ctor;return dojo.setObject(_11a,ctor);};dojo.mixin(dojo.declare,{_delegate:function(base,_125){var bp=(base||0).prototype,mp=(_125||0).prototype;var ctor=dojo.declare._makeCtor();dojo.mixin(ctor,{superclass:bp,mixin:mp,extend:dojo.declare._extend});if(base){ctor.prototype=dojo._delegate(bp);}dojo.extend(ctor,dojo.declare._core,mp||0,{_constructor:null,preamble:null});ctor.prototype.constructor=ctor;ctor.prototype.declaredClass=(bp||0).declaredClass+"_"+(mp||0).declaredClass;return ctor;},_extend:function(_129){for(var i in _129){if(dojo.isFunction(fn=_129[i])&&!0[i]){fn.nom=i;}}dojo.extend(this,_129);},_makeCtor:function(){return function(){this._construct(arguments);};},_core:{_construct:function(args){var c=args.callee,s=c.superclass,ct=s&&s.constructor,m=c.mixin,mct=m&&m.constructor,a=args,ii,fn;if(a[0]){if(((fn=a[0].preamble))){a=fn.apply(this,a)||a;}}if((fn=c.prototype.preamble)){a=fn.apply(this,a)||a;}if(ct&&ct.apply){ct.apply(this,a);}if(mct&&mct.apply){mct.apply(this,a);}if((ii=c.prototype._constructor)){ii.apply(this,args);}if(this.constructor.prototype==c.prototype&&(ct=this.postscript)){ct.apply(this,args);}},_findMixin:function(_134){var c=this.constructor,p,m;while(c){p=c.superclass;m=c.mixin;if(m==_134||(m instanceof _134.constructor)){return p;}if(m&&(m=m._findMixin(_134))){return m;}c=p&&p.constructor;}},_findMethod:function(name,_139,_13a,has){var p=_13a,c,m,f;do{c=p.constructor;m=c.mixin;if(m&&(m=this._findMethod(name,_139,m,has))){return m;}if((f=p[name])&&(has==(f==_139))){return p;}p=c.superclass;}while(p);return !has&&(p=this._findMixin(_13a))&&this._findMethod(name,_139,p,has);},inherited:function(name,args,_142){var a=arguments;if(!dojo.isString(a[0])){_142=args;args=name;name=args.callee.nom;}a=_142||args;var c=args.callee,p=this.constructor.prototype,fn,mp;if(this[name]!=c||p[name]==c){mp=this._findMethod(name,c,p,true);if(!mp){throw (this.declaredClass+": inherited method \""+name+"\" mismatch");}p=this._findMethod(name,c,mp,false);}fn=p&&p[name];if(!fn){throw (mp.declaredClass+": inherited method \""+name+"\" not found");}return fn.apply(this,a);}}});}if(!dojo._hasResource["dojo._base.connect"]){dojo._hasResource["dojo._base.connect"]=true;dojo.provide("dojo._base.connect");dojo._listener={getDispatcher:function(){return function(){var ap=Array.prototype,c=arguments.callee,ls=c._listeners,t=c.target;var r=t&&t.apply(this,arguments);for(var i in ls){if(!(i in ap)){ls[i].apply(this,arguments);}}return r;};},add:function(_14e,_14f,_150){_14e=_14e||dojo.global;var f=_14e[_14f];if(!f||!f._listeners){var d=dojo._listener.getDispatcher();d.target=f;d._listeners=[];f=_14e[_14f]=d;}return f._listeners.push(_150);},remove:function(_153,_154,_155){var f=(_153||dojo.global)[_154];if(f&&f._listeners&&_155--){delete f._listeners[_155];}}};dojo.connect=function(obj,_158,_159,_15a,_15b){var a=arguments,args=[],i=0;args.push(dojo.isString(a[0])?null:a[i++],a[i++]);var a1=a[i+1];args.push(dojo.isString(a1)||dojo.isFunction(a1)?a[i++]:null,a[i++]);for(var l=a.length;i<l;i++){args.push(a[i]);}return dojo._connect.apply(this,args);};dojo._connect=function(obj,_161,_162,_163){var l=dojo._listener,h=l.add(obj,_161,dojo.hitch(_162,_163));return [obj,_161,h,l];};dojo.disconnect=function(_166){if(_166&&_166[0]!==undefined){dojo._disconnect.apply(this,_166);delete _166[0];}};dojo._disconnect=function(obj,_168,_169,_16a){_16a.remove(obj,_168,_169);};dojo._topics={};dojo.subscribe=function(_16b,_16c,_16d){return [_16b,dojo._listener.add(dojo._topics,_16b,dojo.hitch(_16c,_16d))];};dojo.unsubscribe=function(_16e){if(_16e){dojo._listener.remove(dojo._topics,_16e[0],_16e[1]);}};dojo.publish=function(_16f,args){var f=dojo._topics[_16f];if(f){f.apply(this,args||[]);}};dojo.connectPublisher=function(_172,obj,_174){var pf=function(){dojo.publish(_172,arguments);};return (_174)?dojo.connect(obj,_174,pf):dojo.connect(obj,pf);};}if(!dojo._hasResource["dojo._base.Deferred"]){dojo._hasResource["dojo._base.Deferred"]=true;dojo.provide("dojo._base.Deferred");dojo.Deferred=function(_176){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=_176;this.silentlyCancelled=false;};dojo.extend(dojo.Deferred,{_nextId:(function(){var n=1;return function(){return n++;};})(),cancel:function(){var err;if(this.fired==-1){if(this.canceller){err=this.canceller(this);}else{this.silentlyCancelled=true;}if(this.fired==-1){if(!(err instanceof Error)){var res=err;err=new Error("Deferred Cancelled");err.dojoType="cancel";err.cancelResult=res;}this.errback(err);}}else{if((this.fired==0)&&(this.results[0] instanceof dojo.Deferred)){this.results[0].cancel();}}},_resback:function(res){this.fired=((res instanceof Error)?1:0);this.results[this.fired]=res;this._fire();},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled){throw new Error("already called!");}this.silentlyCancelled=false;return;}},callback:function(res){this._check();this._resback(res);},errback:function(res){this._check();if(!(res instanceof Error)){res=new Error(res);}this._resback(res);},addBoth:function(cb,cbfn){var _17f=dojo.hitch.apply(dojo,arguments);return this.addCallbacks(_17f,_17f);},addCallback:function(cb,cbfn){return this.addCallbacks(dojo.hitch.apply(dojo,arguments));},addErrback:function(cb,cbfn){return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));},addCallbacks:function(cb,eb){this.chain.push([cb,eb]);if(this.fired>=0){this._fire();}return this;},_fire:function(){var _186=this.chain;var _187=this.fired;var res=this.results[_187];var self=this;var cb=null;while((_186.length>0)&&(this.paused==0)){var f=_186.shift()[_187];if(!f){continue;}try{res=f(res);_187=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}};this.paused++;}}catch(err){console.debug(err);_187=1;res=err;}}this.fired=_187;this.results[_187]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_190,_191){if(it===undefined){return "undefined";}var _192=typeof it;if(_192=="number"||_192=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}if(it.nodeType&&it.cloneNode){return "";}var _193=arguments.callee;var _194;_191=_191||"";var _195=_190?_191+dojo.toJsonIndentStr:"";if(typeof it.__json__=="function"){_194=it.__json__();if(it!==_194){return _193(_194,_190,_195);}}if(typeof it.json=="function"){_194=it.json();if(it!==_194){return _193(_194,_190,_195);}}var sep=_190?" ":"";var _197=_190?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_193(obj,_190,_195);if(typeof val!="string"){val="undefined";}return _197+_195+val;});return "["+res.join(","+sep)+_197+_191+"]";}if(_192=="function"){return null;}var _19b=[];for(var key in it){var _19d;if(typeof key=="number"){_19d="\""+key+"\"";}else{if(typeof key=="string"){_19d=dojo._escapeString(key);}else{continue;}}val=_193(it[key],_190,_195);if(typeof val!="string"){continue;}_19b.push(_197+_195+_19d+":"+sep+val);}return "{"+_19b.join(","+sep)+_197+_191+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _19e=function(arr,obj,cb){return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(_1a2,_1a3,_1a4,_1a5){var step=1,end=_1a2.length||0,i=0;if(_1a5){i=end-1;step=end=-1;}if(_1a4!=undefined){i=_1a4;}if((_1a5&&i>end)||i<end){for(;i!=end;i+=step){if(_1a2[i]==_1a3){return i;}}}return -1;},lastIndexOf:function(_1a8,_1a9,_1aa){return dojo.indexOf(_1a8,_1a9,_1aa,true);},forEach:function(arr,_1ac,_1ad){if(!arr||!arr.length){return;}var _p=_19e(arr,_1ad,_1ac);arr=_p[0];for(var i=0,l=_p[0].length;i<l;i++){_p[2].call(_p[1],arr[i],i,arr);}},_everyOrSome:function(_1b1,arr,_1b3,_1b4){var _p=_19e(arr,_1b4,_1b3);arr=_p[0];for(var i=0,l=arr.length;i<l;i++){var _1b8=!!_p[2].call(_p[1],arr[i],i,arr);if(_1b1^_1b8){return _1b8;}}return _1b1;},every:function(arr,_1ba,_1bb){return this._everyOrSome(true,arr,_1ba,_1bb);},some:function(arr,_1bd,_1be){return this._everyOrSome(false,arr,_1bd,_1be);},map:function(arr,_1c0,_1c1){var _p=_19e(arr,_1c1,_1c0);arr=_p[0];var _1c3=(arguments[3]?(new arguments[3]()):[]);for(var i=0;i<arr.length;++i){_1c3.push(_p[2].call(_p[1],arr[i],i,arr));}return _1c3;},filter:function(arr,_1c6,_1c7){var _p=_19e(arr,_1c7,_1c6);arr=_p[0];var _1c9=[];for(var i=0;i<arr.length;i++){if(_p[2].call(_p[1],arr[i],i,arr)){_1c9.push(arr[i]);}}return _1c9;}});})();}if(!dojo._hasResource["dojo._base.Color"]){dojo._hasResource["dojo._base.Color"]=true;dojo.provide("dojo._base.Color");dojo.Color=function(_1cb){if(_1cb){this.setColor(_1cb);}};dojo.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]};dojo.extend(dojo.Color,{r:255,g:255,b:255,a:1,_set:function(r,g,b,a){var t=this;t.r=r;t.g=g;t.b=b;t.a=a;},setColor:function(_1d1){var d=dojo;if(d.isString(_1d1)){d.colorFromString(_1d1,this);}else{if(d.isArray(_1d1)){d.colorFromArray(_1d1,this);}else{this._set(_1d1.r,_1d1.g,_1d1.b,_1d1.a);if(!(_1d1 instanceof d.Color)){this.sanitize();}}}return this;},sanitize:function(){return this;},toRgb:function(){var t=this;return [t.r,t.g,t.b];},toRgba:function(){var t=this;return [t.r,t.g,t.b,t.a];},toHex:function(){var arr=dojo.map(["r","g","b"],function(x){var s=this[x].toString(16);return s.length<2?"0"+s:s;},this);return "#"+arr.join("");},toCss:function(_1d8){var t=this,rgb=t.r+", "+t.g+", "+t.b;return (_1d8?"rgba("+rgb+", "+t.a:"rgb("+rgb)+")";},toString:function(){return this.toCss(true);}});dojo.blendColors=function(_1db,end,_1dd,obj){var d=dojo,t=obj||new dojo.Color();d.forEach(["r","g","b","a"],function(x){t[x]=_1db[x]+(end[x]-_1db[x])*_1dd;if(x!="a"){t[x]=Math.round(t[x]);}});return t.sanitize();};dojo.colorFromRgb=function(_1e2,obj){var m=_1e2.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return m&&dojo.colorFromArray(m[1].split(/\s*,\s*/),obj);};dojo.colorFromHex=function(_1e5,obj){var d=dojo,t=obj||new d.Color(),bits=(_1e5.length==4)?4:8,mask=(1<<bits)-1;_1e5=Number("0x"+_1e5.substr(1));if(isNaN(_1e5)){return null;}d.forEach(["b","g","r"],function(x){var c=_1e5&mask;_1e5>>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new dojo.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=dojo.Color.named[str];return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);};}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo._gearsObject=function(){var _1f3;var _1f4;var _1f5=dojo.getObject("google.gears");if(_1f5){return _1f5;}if(typeof GearsFactory!="undefined"){_1f3=new GearsFactory();}else{if(dojo.isIE){try{_1f3=new ActiveXObject("Gears.Factory");}catch(e){}}else{if(navigator.mimeTypes["application/x-googlegears"]){_1f3=document.createElement("object");_1f3.setAttribute("type","application/x-googlegears");_1f3.setAttribute("width",0);_1f3.setAttribute("height",0);_1f3.style.display="none";document.documentElement.appendChild(_1f3);}}}if(!_1f3){return null;}dojo.setObject("google.gears.factory",_1f3);return dojo.getObject("google.gears");};dojo.isGears=(!!dojo._gearsObject())||0;dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_1f6,_1f7){dojo.global=_1f6;dojo.doc=_1f7;};dojo._fireCallback=function(_1f8,_1f9,_1fa){if(_1f9&&dojo.isString(_1f8)){_1f8=_1f9[_1f8];}return _1f8.apply(_1f9,_1fa||[]);};dojo.withGlobal=function(_1fb,_1fc,_1fd,_1fe){var rval;var _200=dojo.global;var _201=dojo.doc;try{dojo.setContext(_1fb,_1fb.document);rval=dojo._fireCallback(_1fc,_1fd,_1fe);}finally{dojo.setContext(_200,_201);}return rval;};dojo.withDoc=function(_202,_203,_204,_205){var rval;var _207=dojo.doc;try{dojo.doc=_202;rval=dojo._fireCallback(_203,_204,_205);}finally{dojo.doc=_207;}return rval;};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _20c=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_210,_211){if(node){node.removeEventListener(del._normalizeEventName(_210),_211,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_217){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";}});dojo.fixEvent=function(evt,_21a){return del._fixEvent(evt,_21a);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _21c=dojo._listener;dojo._connect=function(obj,_21e,_21f,_220,_221){var _222=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_222?0:(!_221?1:2),l=[dojo._listener,del,_21c][lid];var h=l.add(obj,_21e,dojo.hitch(_21f,_220));return [obj,_21e,h,lid];};dojo._disconnect=function(obj,_227,_228,_229){([dojo._listener,del,_21c][_229]).remove(obj,_227,_228);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};if(dojo.isIE){var _22a=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;if(!dojo.config._allow_leaks){_21c=iel=dojo._ie_listener={handlers:[],add:function(_22e,_22f,_230){_22e=_22e||dojo.global;var f=_22e[_22f];if(!f||!f._listeners){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d._listeners=[];f=_22e[_22f]=d;}return f._listeners.push(ieh.push(_230)-1);},remove:function(_234,_235,_236){var f=(_234||dojo.global)[_235],l=f&&f._listeners;if(f&&l&&_236--){delete ieh[l[_236]];delete l[_236];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_23a,fp){if(!node){return;}_23a=del._normalizeEventName(_23a);if(_23a=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd._listeners||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_23a,del._fixCallback(fp));},remove:function(node,_23f,_240){_23f=del._normalizeEventName(_23f);iel.remove(node,_23f,_240);if(_23f=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_242){return _242.slice(0,2)!="on"?"on"+_242:_242;},_nop:function(){},_fixEvent:function(evt,_244){if(!evt){var w=_244&&(_244.ownerDocument||_244.document||_244).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_244||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _248=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _249=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_248.scrollLeft||0)-_249.x;evt.pageY=evt.clientY+(_248.scrollTop||0)-_249.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp._listeners){return;}var k=evt.keyCode;var _24f=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_24f||evt.ctrlKey){var c=_24f?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_22a(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_22a(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_254){var faux=dojo.mixin({},evt,_254);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_257){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=((c<41)&&(!evt.shiftKey)?0:c);if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isSafari){dojo.mixin(del,{_fixEvent:function(evt,_25a){switch(evt.type){case "keypress":var c=evt.charCode,s=evt.shiftKey,k=evt.keyCode;k=k||_25e[evt.keyIdentifier]||0;if(evt.keyIdentifier=="Enter"){c=0;}else{if((evt.ctrlKey)&&(c>0)&&(c<27)){c+=96;}else{if(c==dojo.keys.SHIFT_TAB){c=dojo.keys.TAB;s=true;}else{c=(c>=32&&c<63232?c:0);}}}return del._synthesizeEvent(evt,{charCode:c,shiftKey:s,keyCode:k});}return evt;}});dojo.mixin(dojo.keys,{SHIFT_TAB:25,UP_ARROW:63232,DOWN_ARROW:63233,LEFT_ARROW:63234,RIGHT_ARROW:63235,F1:63236,F2:63237,F3:63238,F4:63239,F5:63240,F6:63241,F7:63242,F8:63243,F9:63244,F10:63245,F11:63246,F12:63247,PAUSE:63250,DELETE:63272,HOME:63273,END:63275,PAGE_UP:63276,PAGE_DOWN:63277,INSERT:63302,PRINT_SCREEN:63248,SCROLL_LOCK:63249,NUM_LOCK:63289});var dk=dojo.keys,_25e={"Up":dk.UP_ARROW,"Down":dk.DOWN_ARROW,"Left":dk.LEFT_ARROW,"Right":dk.RIGHT_ARROW,"PageUp":dk.PAGE_UP,"PageDown":dk.PAGE_DOWN};}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_261){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c._listeners,t=h[c.target];var r=t&&t.apply(_261,args);for(var i in ls){if(!(i in ap)){h[ls[i]].apply(_261,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&te.attributes.id.value==id){return te;}else{var eles=_d.all[id];if(!eles||!eles.length){return eles;}var i=0;while((te=eles[i++])){if(te.attributes.id.value==id){return te;}}}}else{return id;}};}else{dojo.byId=function(id,doc){return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var _275=null;dojo.addOnUnload(function(){_275=null;});dojo._destroyElement=function(node){node=d.byId(node);try{if(!_275){_275=document.createElement("div");}_275.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_275.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_278){try{node=d.byId(node);_278=d.byId(_278);while(node){if(node===_278){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_27a){node=d.byId(node);if(d.isMozilla){node.style.MozUserSelect=_27a?"":"none";}else{if(d.isKhtml){node.style.KhtmlUserSelect=_27a?"auto":"none";}else{if(d.isIE){node.unselectable=_27a?"":"on";d.query("*",node).forEach(function(_27b){_27b.unselectable=_27a?"":"on";});}}}};var _27c=function(node,ref){ref.parentNode.insertBefore(node,ref);return true;};var _27f=function(node,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(node);}else{return _27c(node,ref.nextSibling);}return true;};dojo.place=function(node,_284,_285){if(!node||!_284||_285===undefined){return false;}node=d.byId(node);_284=d.byId(_284);if(typeof _285=="number"){var cn=_284.childNodes;if((_285==0&&cn.length==0)||cn.length==_285){_284.appendChild(node);return true;}if(_285==0){return _27c(node,_284.firstChild);}return _27f(node,cn[_285-1]);}switch(_285.toLowerCase()){case "before":return _27c(node,_284);case "after":return _27f(node,_284);case "first":if(_284.firstChild){return _27c(node,_284.firstChild);}default:_284.appendChild(node);return true;}};dojo.boxModel="content-box";if(d.isIE){var _dcm=document.compatMode;d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";}var gcs,dv=document.defaultView;if(d.isSafari){gcs=function(node){var s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}return s||{};};}else{if(d.isIE){gcs=function(node){return node.currentStyle;};}else{gcs=function(node){return dv.getComputedStyle(node,null);};}}dojo.getComputedStyle=gcs;if(!d.isIE){dojo._toPixelValue=function(_28e,_28f){return parseFloat(_28f)||0;};}else{dojo._toPixelValue=function(_290,_291){if(!_291){return 0;}if(_291=="medium"){return 4;}if(_291.slice&&(_291.slice(-2)=="px")){return parseFloat(_291);}with(_290){var _292=style.left;var _293=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_291;_291=style.pixelLeft;}catch(e){_291=0;}style.left=_292;runtimeStyle.left=_293;}return _291;};}var px=d._toPixelValue;dojo._getOpacity=d.isIE?function(node){try{return node.filters.alpha.opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_298){if(_298==1){var _299=/FILTER:[^;]*;?/i;node.style.cssText=node.style.cssText.replace(_299,"");if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.cssText=i.style.cssText.replace(_299,"");});}}else{var o="Alpha(Opacity="+_298*100+")";node.style.filter=o;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.filter=o;});}return _298;}:function(node,_29e){return node.style.opacity=_29e;};var _29f={left:true,top:true};var _2a0=/margin|padding|width|height|max|min|offset/;var _2a1=function(node,type,_2a4){type=type.toLowerCase();if(d.isIE&&_2a4=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(!(type in _29f)){_29f[type]=_2a0.test(type);}return _29f[type]?px(node,_2a4):_2a4;};var _2a5=d.isIE?"styleFloat":"cssFloat";var _2a6={"cssFloat":_2a5,"styleFloat":_2a5,"float":_2a5};dojo.style=function(node,_2a8,_2a9){var n=d.byId(node),args=arguments.length,op=(_2a8=="opacity");_2a8=_2a6[_2a8]||_2a8;if(args==3){return op?d._setOpacity(n,_2a9):n.style[_2a8]=_2a9;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&!d.isString(_2a8)){for(var x in _2a8){d.style(node,x,_2a8[x]);}return s;}return (args==1)?s:_2a1(n,_2a8,s[_2a8]);};dojo._getPadExtents=function(n,_2b0){var s=_2b0||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_2b5){var ne="none",s=_2b5||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_2bb){var s=_2bb||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_2c0){var s=_2c0||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isSafari&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_2c7){var s=_2c7||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{var p=node.parentNode;if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera){var p=node.parentNode;if(p){var be=d._getBorderExtents(p);l-=be.l,t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getContentBox=function(node,_2d2){var s=_2d2||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_2d9){var s=_2d9||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||n=="BUTTON";};dojo._setContentSize=function(node,_2e7,_2e8,_2e9){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_2e9);if(_2e7>=0){_2e7+=pb.w;}if(_2e8>=0){_2e8+=pb.h;}}d._setBox(node,NaN,NaN,_2e7,_2e8);};dojo._setMarginBox=function(node,_2ec,_2ed,_2ee,_2ef,_2f0){var s=_2f0||gcs(node);var bb=d._usesBorderBox(node),pb=bb?_2f4:d._getPadBorderExtents(node,s),mb=d._getMarginExtents(node,s);if(_2ee>=0){_2ee=Math.max(_2ee-pb.w-mb.w,0);}if(_2ef>=0){_2ef=Math.max(_2ef-pb.h-mb.h,0);}d._setBox(node,_2ec,_2ed,_2ee,_2ef);};var _2f4={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=d.byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=dojo.byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _300=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_304=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_304+=val-0;if(node==_b){break;}}node=node.parentNode;}return _304;};dojo._docScroll=function(){var _b=d.body(),_w=d.global,de=d.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};};dojo._fixIeBiDiScrollLeft=function(_30a){var dd=d.doc;if(d.isIE&&!dojo._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _30a+de.clientWidth-de.scrollWidth;}return _30a;};dojo._abs=function(node,_30e){var _30f=node.ownerDocument;var ret={x:0,y:0};var db=d.body();if(d.isIE||(d.isFF>=3)){var _312=node.getBoundingClientRect();var _313=(d.isIE)?d._getIeDocumentElementOffset():{x:0,y:0};ret.x=_312.left-_313.x;ret.y=_312.top-_313.y;}else{if(_30f["getBoxObjectFor"]){var bo=_30f.getBoxObjectFor(node),b=d._getBorderExtents(node);ret.x=bo.x-b.l-_300(node,"scrollLeft");ret.y=bo.y-b.t-_300(node,"scrollTop");}else{if(node["offsetParent"]){var _316;if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){_316=db;}else{_316=db.parentNode;}if(node.parentNode!=db){var nd=node;if(d.isOpera){nd=db;}ret.x-=_300(nd,"scrollLeft");ret.y-=_300(nd,"scrollTop");}var _318=node;do{var n=_318.offsetLeft;if(!d.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var t=_318.offsetTop;ret.y+=isNaN(t)?0:t;if(d.isSafari&&_318!=node){var cs=gcs(_318);ret.x+=px(_318,cs.borderLeftWidth);ret.y+=px(_318,cs.borderTopWidth);}_318=_318.offsetParent;}while((_318!=_316)&&_318);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_30e){var _31c=d._docScroll();ret.y+=_31c.y;ret.x+=_31c.x;}return ret;};dojo.coords=function(node,_31e){var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_31e);mb.x=abs.x;mb.y=abs.y;return mb;};var _323=function(name){switch(name.toLowerCase()){case "tabindex":return (d.isIE&&d.isIE<8)?"tabIndex":"tabindex";default:return name;}};var _325={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};dojo.hasAttr=function(node,name){var attr=d.byId(node).getAttributeNode(_323(name));return attr?attr.specified:false;};var _329={};var _ctr=0;var _32b=dojo._scopeName+"attrid";dojo.attr=function(node,name,_32e){var args=arguments.length;if(args==2&&!d.isString(name)){for(var x in name){d.attr(node,x,name[x]);}return;}node=d.byId(node);name=_323(name);if(args==3){if(d.isFunction(_32e)){var _331=d.attr(node,_32b);if(!_331){_331=_ctr++;d.attr(node,_32b,_331);}if(!_329[_331]){_329[_331]={};}var h=_329[_331][name];if(h){d.disconnect(h);}else{try{delete node[name];}catch(e){}}_329[_331][name]=d.connect(node,name,_32e);}else{if(typeof _32e=="boolean"){node[name]=_32e;}else{node.setAttribute(name,_32e);}}return;}else{var prop=_325[name.toLowerCase()];if(prop){return node[prop];}else{var _32e=node[name];return (typeof _32e=="boolean"||typeof _32e=="function")?_32e:(d.hasAttr(node,name)?node.getAttribute(name):null);}}};dojo.removeAttr=function(node,name){d.byId(node).removeAttribute(_323(name));};})();dojo.hasClass=function(node,_337){return ((" "+dojo.byId(node).className+" ").indexOf(" "+_337+" ")>=0);};dojo.addClass=function(node,_339){node=dojo.byId(node);var cls=node.className;if((" "+cls+" ").indexOf(" "+_339+" ")<0){node.className=cls+(cls?" ":"")+_339;}};dojo.removeClass=function(node,_33c){node=dojo.byId(node);var t=dojo.trim((" "+node.className+" ").replace(" "+_33c+" "," "));if(node.className!=t){node.className=t;}};dojo.toggleClass=function(node,_33f,_340){if(_340===undefined){_340=!dojo.hasClass(node,_33f);}dojo[_340?"addClass":"removeClass"](node,_33f);};}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var tnl=function(arr){arr.constructor=dojo.NodeList;dojo._mixin(arr,dojo.NodeList.prototype);return arr;};var _344=function(func,_346){return function(){var _a=arguments;var aa=d._toArray(_a,0,[null]);var s=this.map(function(i){aa[0]=i;return d[func].apply(d,aa);});return (_346||((_a.length>1)||!d.isString(_a[0])))?this:s;};};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};dojo.NodeList._wrap=tnl;dojo.extend(dojo.NodeList,{slice:function(){var a=dojo._toArray(arguments);return tnl(a.slice.apply(this,a));},splice:function(){var a=dojo._toArray(arguments);return tnl(a.splice.apply(this,a));},concat:function(){var a=dojo._toArray(arguments,0,[this]);return tnl(a.concat.apply([],a));},indexOf:function(_34e,_34f){return d.indexOf(this,_34e,_34f);},lastIndexOf:function(){return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));},every:function(_350,_351){return d.every(this,_350,_351);},some:function(_352,_353){return d.some(this,_352,_353);},map:function(func,obj){return d.map(this,func,obj,d.NodeList);},forEach:function(_356,_357){d.forEach(this,_356,_357);return this;},coords:function(){return d.map(this,d.coords);},attr:_344("attr"),style:_344("style"),addClass:_344("addClass",true),removeClass:_344("removeClass",true),toggleClass:_344("toggleClass",true),connect:_344("connect",true),place:function(_358,_359){var item=d.query(_358)[0];return this.forEach(function(i){d.place(i,item,(_359||"last"));});},orphan:function(_35c){var _35d=_35c?d._filterQueryResult(this,_35c):this;_35d.forEach(function(item){if(item.parentNode){item.parentNode.removeChild(item);}});return _35d;},adopt:function(_35f,_360){var item=this[0];return d.query(_35f).forEach(function(ai){d.place(ai,item,_360||"last");});},query:function(_363){if(!_363){return this;}var ret=d.NodeList();this.forEach(function(item){d.query(_363,item).forEach(function(_366){if(_366!==undefined){ret.push(_366);}});});return ret;},filter:function(_367){var _368=this;var _a=arguments;var r=d.NodeList();var rp=function(t){if(t!==undefined){r.push(t);}};if(d.isString(_367)){_368=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _368;}_a.shift();}d.forEach(d.filter(_368,_a[0],_a[1]),rp);return r;},addContent:function(_36d,_36e){var ta=d.doc.createElement("span");if(d.isString(_36d)){ta.innerHTML=_36d;}else{ta.appendChild(_36d);}if(_36e===undefined){_36e="last";}var ct=(_36e=="first"||_36e=="after")?"lastChild":"firstChild";this.forEach(function(item){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],item,_36e);}});return this;},empty:function(){return this.forEach("item.innerHTML='';");},instantiate:function(_373,_374){var c=d.isFunction(_373)?_373:d.getObject(_373);return this.forEach(function(i){new c(_374||{},i);});}});d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],function(evt){var _oe="on"+evt;dojo.NodeList.prototype[_oe]=function(a,b){return this.connect(_oe,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;dojo.provide("dojo._base.query");(function(){var d=dojo;var _37c=dojo.isIE?"children":"childNodes";var _37d=false;var _37e=function(_37f){if(">~+".indexOf(_37f.charAt(_37f.length-1))>=0){_37f+=" *";}_37f+=" ";var ts=function(s,e){return d.trim(_37f.slice(s,e));};var _383=[];var _384=-1;var _385=-1;var _386=-1;var _387=-1;var _388=-1;var inId=-1;var _38a=-1;var lc="";var cc="";var _38d;var x=0;var ql=_37f.length;var _390=null;var _cp=null;var _392=function(){if(_38a>=0){var tv=(_38a==x)?null:ts(_38a,x).toLowerCase();_390[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;_38a=-1;}};var _394=function(){if(inId>=0){_390.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _395=function(){if(_388>=0){_390.classes.push(ts(_388+1,x).replace(/\\/g,""));_388=-1;}};var _396=function(){_394();_392();_395();};for(;lc=cc,cc=_37f.charAt(x),x<ql;x++){if(lc=="\\"){continue;}if(!_390){_38d=x;_390={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null};_38a=x;}if(_384>=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(_384+1,x);}else{_cp.matchFor=ts((_386||_384+1),x);}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.substring(1,cmf.length-1);}}_390.attrs.push(_cp);_cp=null;_384=_386=-1;}else{if(cc=="="){var _398=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=_398+cc;_cp.attr=ts(_384+1,x-_398.length);_386=x+1;}}}else{if(_385>=0){if(cc==")"){if(_387>=0){_cp.value=ts(_385+1,x);}_387=_385=-1;}}else{if(cc=="#"){_396();inId=x+1;}else{if(cc=="."){_396();_388=x;}else{if(cc==":"){_396();_387=x;}else{if(cc=="["){_396();_384=x;_cp={};}else{if(cc=="("){if(_387>=0){_cp={name:ts(_387+1,x),value:null};_390.pseudos.push(_cp);}_385=x;}else{if(cc==" "&&lc!=cc){_396();if(_387>=0){_390.pseudos.push({name:ts(_387+1,x)});}_390.hasLoops=(_390.pseudos.length||_390.attrs.length||_390.classes.length);_390.query=ts(_38d,x);_390.tag=(_390["oper"])?null:(_390.tag||"*");_383.push(_390);_390=null;}}}}}}}}}return _383;};var _399={"*=":function(attr,_39b){return "[contains(@"+attr+", '"+_39b+"')]";},"^=":function(attr,_39d){return "[starts-with(@"+attr+", '"+_39d+"')]";},"$=":function(attr,_39f){return "[substring(@"+attr+", string-length(@"+attr+")-"+(_39f.length-1)+")='"+_39f+"']";},"~=":function(attr,_3a1){return "[contains(concat(' ',@"+attr+",' '), ' "+_3a1+" ')]";},"|=":function(attr,_3a3){return "[contains(concat(' ',@"+attr+",' '), ' "+_3a3+"-')]";},"=":function(attr,_3a5){return "[@"+attr+"='"+_3a5+"']";}};var _3a6=function(_3a7,_3a8,_3a9,_3aa){d.forEach(_3a8.attrs,function(attr){var _3ac;if(attr.type&&_3a7[attr.type]){_3ac=_3a7[attr.type](attr.attr,attr.matchFor);}else{if(attr.attr.length){_3ac=_3a9(attr.attr);}}if(_3ac){_3aa(_3ac);}});};var _3ad=function(_3ae){var _3af=".";var _3b0=_37e(d.trim(_3ae));while(_3b0.length){var tqp=_3b0.shift();var _3b2;var _3b3="";if(tqp.oper==">"){_3b2="/";tqp=_3b0.shift();}else{if(tqp.oper=="~"){_3b2="/following-sibling::";tqp=_3b0.shift();}else{if(tqp.oper=="+"){_3b2="/following-sibling::";_3b3="[position()=1]";tqp=_3b0.shift();}else{_3b2="//";}}}_3af+=_3b2+tqp.tag+_3b3;if(tqp.id){_3af+="[@id='"+tqp.id+"'][1]";}d.forEach(tqp.classes,function(cn){var cnl=cn.length;var _3b6=" ";if(cn.charAt(cnl-1)=="*"){_3b6="";cn=cn.substr(0,cnl-1);}_3af+="[contains(concat(' ',@class,' '), ' "+cn+_3b6+"')]";});_3a6(_399,tqp,function(_3b7){return "[@"+_3b7+"]";},function(_3b8){_3af+=_3b8;});}return _3af;};var _3b9={};var _3ba=function(path){if(_3b9[path]){return _3b9[path];}var doc=d.doc;var _3bd=_3ad(path);var tf=function(_3bf){var ret=[];var _3c1;try{_3c1=doc.evaluate(_3bd,_3bf,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_3bd,"under:",_3bf);console.debug(e);}var _3c2=_3c1.iterateNext();while(_3c2){ret.push(_3c2);_3c2=_3c1.iterateNext();}return ret;};return _3b9[path]=tf;};var _3c3={};var _3c4={};var _3c5=function(_3c6,_3c7){if(!_3c6){return _3c7;}if(!_3c7){return _3c6;}return function(){return _3c6.apply(window,arguments)&&_3c7.apply(window,arguments);};};var _3c8=function(root){var ret=[];var te,x=0,tret=root[_37c];while(te=tret[x++]){if(te.nodeType==1){ret.push(te);}}return ret;};var _3ce=function(root,_3d0){var ret=[];var te=root;while(te=te.nextSibling){if(te.nodeType==1){ret.push(te);if(_3d0){break;}}}return ret;};var _3d3=function(_3d4,_3d5,_3d6,idx){var nidx=idx+1;var _3d9=(_3d5.length==nidx);var tqp=_3d5[idx];if(tqp.oper){var ecn=(tqp.oper==">")?_3c8(_3d4):_3ce(_3d4,(tqp.oper=="+"));if(!ecn||!ecn.length){return;}nidx++;_3d9=(_3d5.length==nidx);var tf=_3dd(_3d5[idx+1]);for(var x=0,ecnl=ecn.length,te;x<ecnl,te=ecn[x];x++){if(tf(te)){if(_3d9){_3d6.push(te);}else{_3d3(te,_3d5,_3d6,nidx);}}}}var _3e1=_3e2(tqp)(_3d4);if(_3d9){while(_3e1.length){_3d6.push(_3e1.shift());}}else{while(_3e1.length){_3d3(_3e1.shift(),_3d5,_3d6,nidx);}}};var _3e3=function(_3e4,_3e5){var ret=[];var x=_3e4.length-1,te;while(te=_3e4[x--]){_3d3(te,_3e5,ret,0);}return ret;};var _3dd=function(q){if(_3c3[q.query]){return _3c3[q.query];}var ff=null;if(q.tag){if(q.tag=="*"){ff=_3c5(ff,function(elem){return (elem.nodeType==1);});}else{ff=_3c5(ff,function(elem){return ((elem.nodeType==1)&&(q.tag==elem.tagName.toLowerCase()));});}}if(q.id){ff=_3c5(ff,function(elem){return ((elem.nodeType==1)&&(elem.id==q.id));});}if(q.hasLoops){ff=_3c5(ff,_3ee(q));}return _3c3[q.query]=ff;};var _3ef=function(node){var pn=node.parentNode;var pnc=pn.childNodes;var nidx=-1;var _3f4=pn.firstChild;if(!_3f4){return nidx;}var ci=node["__cachedIndex"];var cl=pn["__cachedLength"];if(((typeof cl=="number")&&(cl!=pnc.length))||(typeof ci!="number")){pn["__cachedLength"]=pnc.length;var idx=1;do{if(_3f4===node){nidx=idx;}if(_3f4.nodeType==1){_3f4["__cachedIndex"]=idx;idx++;}_3f4=_3f4.nextSibling;}while(_3f4);}else{nidx=ci;}return nidx;};var _3f8=0;var _3f9="";var _3fa=function(elem,attr){if(attr=="class"){return elem.className||_3f9;}if(attr=="for"){return elem.htmlFor||_3f9;}return elem.getAttribute(attr,2)||_3f9;};var _3fd={"*=":function(attr,_3ff){return function(elem){return (_3fa(elem,attr).indexOf(_3ff)>=0);};},"^=":function(attr,_402){return function(elem){return (_3fa(elem,attr).indexOf(_402)==0);};},"$=":function(attr,_405){var tval=" "+_405;return function(elem){var ea=" "+_3fa(elem,attr);return (ea.lastIndexOf(_405)==(ea.length-_405.length));};},"~=":function(attr,_40a){var tval=" "+_40a+" ";return function(elem){var ea=" "+_3fa(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_40f){var _410=" "+_40f+"-";return function(elem){var ea=" "+(elem.getAttribute(attr,2)||"");return ((ea==_40f)||(ea.indexOf(_410)==0));};},"=":function(attr,_414){return function(elem){return (_3fa(elem,attr)==_414);};}};var _416={"first-child":function(name,_418){return function(elem){if(elem.nodeType!=1){return false;}var fc=elem.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};},"last-child":function(name,_41c){return function(elem){if(elem.nodeType!=1){return false;}var nc=elem.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};},"empty":function(name,_420){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt==1)||(nt==3)){return false;}}return true;};},"contains":function(name,_427){return function(elem){return (elem.innerHTML.indexOf(_427)>=0);};},"not":function(name,_42a){var ntf=_3dd(_37e(_42a)[0]);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_42e){var pi=parseInt;if(_42e=="odd"){return function(elem){return (((_3ef(elem))%2)==1);};}else{if((_42e=="2n")||(_42e=="even")){return function(elem){return ((_3ef(elem)%2)==0);};}else{if(_42e.indexOf("0n+")==0){var _432=pi(_42e.substr(3));return function(elem){return (elem.parentNode[_37c][_432-1]===elem);};}else{if((_42e.indexOf("n+")>0)&&(_42e.length>3)){var _434=_42e.split("n+",2);var pred=pi(_434[0]);var idx=pi(_434[1]);return function(elem){return ((_3ef(elem)%pred)==idx);};}else{if(_42e.indexOf("n")==-1){var _432=pi(_42e);return function(elem){return (_3ef(elem)==_432);};}}}}}}};var _439=(d.isIE)?function(cond){var clc=cond.toLowerCase();return function(elem){return elem[cond]||elem[clc];};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _3ee=function(_43f){var _440=(_3c4[_43f.query]||_3c3[_43f.query]);if(_440){return _440;}var ff=null;if(_43f.id){if(_43f.tag!="*"){ff=_3c5(ff,function(elem){return (elem.tagName.toLowerCase()==_43f.tag);});}}d.forEach(_43f.classes,function(_443,idx,arr){var _446=_443.charAt(_443.length-1)=="*";if(_446){_443=_443.substr(0,_443.length-1);}var re=new RegExp("(?:^|\\s)"+_443+(_446?".*":"")+"(?:\\s|$)");ff=_3c5(ff,function(elem){return re.test(elem.className);});ff.count=idx;});d.forEach(_43f.pseudos,function(_449){if(_416[_449.name]){ff=_3c5(ff,_416[_449.name](_449.name,_449.value));}});_3a6(_3fd,_43f,_439,function(_44a){ff=_3c5(ff,_44a);});if(!ff){ff=function(){return true;};}return _3c4[_43f.query]=ff;};var _44b={};var _3e2=function(_44c,root){var fHit=_44b[_44c.query];if(fHit){return fHit;}if(_44c.id&&!_44c.hasLoops&&!_44c.tag){return _44b[_44c.query]=function(root){return [d.byId(_44c.id)];};}var _450=_3ee(_44c);var _451;if(_44c.tag&&_44c.id&&!_44c.hasLoops){_451=function(root){var te=d.byId(_44c.id);if(_450(te)){return [te];}};}else{var tret;if(!_44c.hasLoops){_451=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_44c.tag);while(te=tret[x++]){ret.push(te);}return ret;};}else{_451=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_44c.tag);while(te=tret[x++]){if(_450(te)){ret.push(te);}}return ret;};}}return _44b[_44c.query]=_451;};var _45d={};var _45e={"*":d.isIE?function(root){return root.all;}:function(root){return root.getElementsByTagName("*");},"~":_3ce,"+":function(root){return _3ce(root,true);},">":_3c8};var _462=function(_463){var _464=_37e(d.trim(_463));if(_464.length==1){var tt=_3e2(_464[0]);tt.nozip=true;return tt;}var sqf=function(root){var _468=_464.slice(0);var _469;if(_468[0].oper==">"){_469=[root];}else{_469=_3e2(_468.shift())(root);}return _3e3(_469,_468);};return sqf;};var _46a=((document["evaluate"]&&!d.isSafari)?function(_46b){var _46c=_46b.split(" ");if((document["evaluate"])&&(_46b.indexOf(":")==-1)&&(_46b.indexOf("+")==-1)){if(((_46c.length>2)&&(_46b.indexOf(">")==-1))||(_46c.length>3)||(_46b.indexOf("[")>=0)||((1==_46c.length)&&(0<=_46b.indexOf(".")))){return _3ba(_46b);}}return _462(_46b);}:_462);var _46d=function(_46e){var qcz=_46e.charAt(0);if(d.doc["querySelectorAll"]&&((!d.isSafari)||(d.isSafari>3.1))&&(">+~".indexOf(qcz)==-1)){return function(root){var r=root.querySelectorAll(_46e);r.nozip=true;return r;};}if(_45e[_46e]){return _45e[_46e];}if(0>_46e.indexOf(",")){return _45e[_46e]=_46a(_46e);}else{var _472=_46e.split(/\s*,\s*/);var tf=function(root){var _475=0;var ret=[];var tp;while(tp=_472[_475++]){ret=ret.concat(_46a(tp,tp.indexOf(" "))(root));}return ret;};return _45e[_46e]=tf;}};var _478=0;var _zip=function(arr){if(arr&&arr.nozip){return d.NodeList._wrap(arr);}var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_478++;arr[0]["_zipIdx"]=_478;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_478){ret.push(te);}te["_zipIdx"]=_478;}return ret;};d.query=function(_47e,root){if(_47e.constructor==d.NodeList){return _47e;}if(!d.isString(_47e)){return new d.NodeList(_47e);}if(d.isString(root)){root=d.byId(root);}return _zip(_46d(_47e)(root||d.doc));};d.query.pseudos=_416;d._filterQueryResult=function(_480,_481){var tnl=new d.NodeList();var ff=(_481)?_3dd(_37e(_481)[0]):function(){return true;};for(var x=0,te;te=_480[x];x++){if(ff(te)){tnl.push(te);}}return tnl;};})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _d=dojo;function setValue(obj,name,_489){var val=obj[name];if(_d.isString(val)){obj[name]=[val,_489];}else{if(_d.isArray(val)){val.push(_489);}else{obj[name]=_489;}}};dojo.formToObject=function(_48b){var ret={};var iq="input:not([type=file]):not([type=submit]):not([type=image]):not([type=reset]):not([type=button]), select, textarea";_d.query(iq,_48b).filter(function(node){return !node.disabled&&node.name;}).forEach(function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(type=="radio"||type=="checkbox"){if(item.checked){setValue(ret,_in,item.value);}}else{if(item.multiple){ret[_in]=[];_d.query("option",item).forEach(function(opt){if(opt.selected){setValue(ret,_in,opt.value);}});}else{setValue(ret,_in,item.value);if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;}}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _495=[];var _496={};for(var name in map){var _498=map[name];if(_498!=_496[name]){var _499=enc(name)+"=";if(_d.isArray(_498)){for(var i=0;i<_498.length;i++){_495.push(_499+enc(_498[i]));}}else{_495.push(_499+enc(_498));}}}return _495.join("&");};dojo.formToQuery=function(_49b){return _d.objectToQuery(_d.formToObject(_49b));};dojo.formToJson=function(_49c,_49d){return _d.toJson(_d.formToObject(_49c),_49d);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(item){if(item.length){var _4a3=item.split("=");var name=dec(_4a3.shift());var val=dec(_4a3.join("="));if(_d.isString(ret[name])){ret[name]=[ret[name]];}if(_d.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;dojo._contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){if(!dojo.config.usePlainJson){console.warn("Consider using mimetype:text/json-comment-filtered"+" to avoid potential security issues with JSON endpoints"+" (use djConfig.usePlainJson=true to turn off this message)");}return (xhr.status==204)?undefined:_d.fromJson(xhr.responseText);},"json-comment-filtered":function(xhr){var _4a9=xhr.responseText;var _4aa=_4a9.indexOf("/*");var _4ab=_4a9.lastIndexOf("*/");if(_4aa==-1||_4ab==-1){throw new Error("JSON was not comment filtered");}return (xhr.status==204)?undefined:_d.fromJson(_4a9.substring(_4aa+2,_4ab));},"javascript":function(xhr){return _d.eval(xhr.responseText);},"xml":function(xhr){var _4ae=xhr.responseXML;if(_d.isIE&&(!_4ae||window.location.protocol=="file:")){_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_4af){try{var dom=new ActiveXObject(_4af+".XMLDOM");dom.async=false;dom.loadXML(xhr.responseText);_4ae=dom;}catch(e){}});}return _4ae;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _4b2=_d._contentHandlers;try{return _4b2["json-comment-filtered"](xhr);}catch(e){return _4b2["json"](xhr);}};dojo._ioSetArgs=function(args,_4b4,_4b5,_4b6){var _4b7={args:args,url:args.url};var _4b8=null;if(args.form){var form=_d.byId(args.form);var _4ba=form.getAttributeNode("action");_4b7.url=_4b7.url||(_4ba?_4ba.value:null);_4b8=_d.formToObject(form);}var _4bb=[{}];if(_4b8){_4bb.push(_4b8);}if(args.content){_4bb.push(args.content);}if(args.preventCache){_4bb.push({"dojo.preventCache":new Date().valueOf()});}_4b7.query=_d.objectToQuery(_d.mixin.apply(null,_4bb));_4b7.handleAs=args.handleAs||"text";var d=new _d.Deferred(_4b4);d.addCallbacks(_4b5,function(_4bd){return _4b6(_4bd,d);});var ld=args.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(_4bf){return ld.call(args,_4bf,_4b7);});}var err=args.error;if(err&&_d.isFunction(err)){d.addErrback(function(_4c1){return err.call(args,_4c1,_4b7);});}var _4c2=args.handle;if(_4c2&&_d.isFunction(_4c2)){d.addBoth(function(_4c3){return _4c2.call(args,_4c3,_4b7);});}d.ioArgs=_4b7;return d;};var _4c4=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="unknown"){xhr.abort();}var err=new Error("xhr cancelled");err.dojoType="cancel";return err;};var _4c9=function(dfd){return _d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);};var _4cb=function(_4cc,dfd){console.debug(_4cc);return _4cc;};var _4ce=function(args){var dfd=_d._ioSetArgs(args,_4c4,_4c9,_4cb);dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);return dfd;};var _4d1=null;var _4d2=[];var _4d3=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_4d2.length&&(tif=_4d2[i]);i++){var dfd=tif.dfd;try{if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_4d2.splice(i--,1);}else{if(tif.ioCheck(dfd)){_4d2.splice(i--,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)<now){_4d2.splice(i--,1);var err=new Error("timeout exceeded");err.dojoType="timeout";dfd.errback(err);dfd.cancel();}}}}}catch(e){console.debug(e);dfd.errback(new Error("_watchInFlightError!"));}}}if(!_4d2.length){clearInterval(_4d1);_4d1=null;return;}};dojo._ioCancelAll=function(){try{_d.forEach(_4d2,function(i){i.dfd.cancel();});}catch(e){}};if(_d.isIE){_d.addOnUnload(_d._ioCancelAll);}_d._ioWatch=function(dfd,_4db,_4dc,_4dd){if(dfd.ioArgs.args.timeout){dfd.startTime=(new Date()).getTime();}_4d2.push({dfd:dfd,validCheck:_4db,ioCheck:_4dc,resHandle:_4dd});if(!_4d1){_4d1=setInterval(_4d3,50);}_4d3();};var _4de="application/x-www-form-urlencoded";var _4df=function(dfd){return dfd.ioArgs.xhr.readyState;};var _4e1=function(dfd){return 4==dfd.ioArgs.xhr.readyState;};var _4e3=function(dfd){var xhr=dfd.ioArgs.xhr;if(_d._isDocumentOk(xhr)){dfd.callback(dfd);}else{var err=new Error("Unable to load "+dfd.ioArgs.url+" status:"+xhr.status);err.status=xhr.status;err.responseText=xhr.responseText;dfd.errback(err);}};var _4e7=function(type,dfd){var _4ea=dfd.ioArgs;var args=_4ea.args;var xhr=_4ea.xhr;xhr.open(type,_4ea.url,args.sync!==true,args.user||undefined,args.password||undefined);if(args.headers){for(var hdr in args.headers){if(hdr.toLowerCase()==="content-type"&&!args.contentType){args.contentType=args.headers[hdr];}else{xhr.setRequestHeader(hdr,args.headers[hdr]);}}}xhr.setRequestHeader("Content-Type",args.contentType||_4de);if(!args.headers||!args.headers["X-Requested-With"]){xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");}try{xhr.send(_4ea.query);}catch(e){dfd.cancel();}_d._ioWatch(dfd,_4df,_4e1,_4e3);xhr=null;return dfd;};dojo._ioAddQueryToUrl=function(_4ee){if(_4ee.query.length){_4ee.url+=(_4ee.url.indexOf("?")==-1?"?":"&")+_4ee.query;_4ee.query=null;}};dojo.xhr=function(_4ef,args,_4f1){var dfd=_4ce(args);if(!_4f1){_d._ioAddQueryToUrl(dfd.ioArgs);}return _4e7(_4ef,dfd);};dojo.xhrGet=function(args){return _d.xhr("GET",args);};dojo.xhrPost=function(args){return _d.xhr("POST",args,true);};dojo.rawXhrPost=function(args){var dfd=_4ce(args);dfd.ioArgs.query=args.postData;return _4e7("POST",dfd);};dojo.xhrPut=function(args){return _d.xhr("PUT",args,true);};dojo.rawXhrPut=function(args){var dfd=_4ce(args);var _4fa=dfd.ioArgs;if(args.putData){_4fa.query=args.putData;args.putData=null;}return _4e7("PUT",dfd);};dojo.xhrDelete=function(args){return _d.xhr("DELETE",args);};})();}if(!dojo._hasResource["dojo._base.fx"]){dojo._hasResource["dojo._base.fx"]=true;dojo.provide("dojo._base.fx");(function(){var d=dojo;dojo._Line=function(_4fd,end){this.start=_4fd;this.end=end;this.getValue=function(n){return ((this.end-this.start)*n)+this.start;};};d.declare("dojo._Animation",null,{constructor:function(args){d.mixin(this,args);if(d.isArray(this.curve)){this.curve=new d._Line(this.curve[0],this.curve[1]);}},duration:350,repeat:0,rate:10,_percent:0,_startRepeatCount:0,_fire:function(evt,args){try{if(this[evt]){this[evt].apply(this,args||[]);}}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}return this;},play:function(_503,_504){var _t=this;if(_504){_t._stopTimer();_t._active=_t._paused=false;_t._percent=0;}else{if(_t._active&&!_t._paused){return _t;}}_t._fire("beforeBegin");var de=_503||_t.delay;var _p=dojo.hitch(_t,"_play",_504);if(de>0){setTimeout(_p,de);return _t;}_p();return _t;},_play:function(_508){var _t=this;_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent;}_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var _50a=_t.curve.getValue(_t._percent);if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat;}_t._fire("onBegin",[_50a]);}_t._fire("onPlay",[_50a]);_t._cycle();return _t;},pause:function(){this._stopTimer();if(!this._active){return this;}this._paused=true;this._fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(_50b,_50c){this._stopTimer();this._active=this._paused=true;this._percent=_50b;if(_50c){this.play();}return this;},stop:function(_50d){if(!this._timer){return this;}this._stopTimer();if(_50d){this._percent=1;}this._fire("onStop",[this.curve.getValue(this._percent)]);this._active=this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _t=this;if(_t._active){var curr=new Date().valueOf();var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);if(step>=1){step=1;}_t._percent=step;if(_t.easing){step=_t.easing(step);}_t._fire("onAnimate",[_t.curve.getValue(step)]);if(_t._percent<1){_t._startTimer();}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true);}else{if(_t.repeat==-1){_t.play(null,true);}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0;}}}_t._percent=0;_t._fire("onEnd");_t._stopTimer();}}return _t;}});var ctr=0;var _512=[];var _513={run:function(){}};var _514=null;dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=d.connect(_513,"run",this,"_cycle");ctr++;}if(!_514){_514=setInterval(d.hitch(_513,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_514);_514=null;ctr=0;}};var _515=(d.isIE)?function(node){var ns=node.style;if(!ns.zoom.length&&d.style(node,"zoom")=="normal"){ns.zoom="1";}if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _519=d.mixin({properties:{}},args);var _51a=(_519.properties.opacity={});_51a.start=!("start" in _519)?function(){return Number(d.style(_519.node,"opacity"));}:_519.start;_51a.end=_519.end;var anim=d.animateProperty(_519);d.connect(anim,"beforeBegin",d.partial(_515,_519.node));return anim;};dojo.fadeIn=function(args){return d._fade(d.mixin({end:1},args));};dojo.fadeOut=function(args){return d._fade(d.mixin({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _51f=function(_520){this._properties=_520;for(var p in _520){var prop=_520[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p];var _527=prop.start;if(_527 instanceof d.Color){ret[p]=d.blendColors(_527,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_527)){ret[p]=((prop.end-_527)*r)+_527+(p!="opacity"?prop.units||"px":"");}}}return ret;};};dojo.animateProperty=function(args){args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start();}if(d.isFunction(prop.end)){prop.end=prop.end();}var _52d=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v=({height:node.offsetHeight,width:node.offsetWidth})[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?Number(v):(_52d?v:parseFloat(v));};if(!("end" in prop)){prop.end=getStyle(this.node,p);}else{if(!("start" in prop)){prop.start=getStyle(this.node,p);}}if(_52d){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);}}this.curve=new _51f(pm);});d.connect(anim,"onAnimate",anim,function(_531){for(var s in _531){d.style(this.node,s,_531[s]);}});return anim;};dojo.anim=function(node,_534,_535,_536,_537,_538){return d.animateProperty({node:node,duration:_535||d._Animation.prototype.duration,properties:_534,easing:_536,onEnd:_537}).play(_538||0);};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_539,_53a,_53b){_53b=dojo.i18n.normalizeLocale(_53b);var _53c=_53b.split("-");var _53d=[_539,"nls",_53a].join(".");var _53e=dojo._loadedModules[_53d];if(_53e){var _53f;for(var i=_53c.length;i>0;i--){var loc=_53c.slice(0,i).join("_");if(_53e[loc]){_53f=_53e[loc];break;}}if(!_53f){_53f=_53e.ROOT;}if(_53f){var _542=function(){};_542.prototype=_53f;return new _542();}}throw new Error("Bundle not found: "+_53a+" in "+_539+" , locale="+_53b);};dojo.i18n.normalizeLocale=function(_543){var _544=_543?_543.toLowerCase():dojo.locale;if(_544=="root"){_544="ROOT";}return _544;};dojo.i18n._requireLocalization=function(_545,_546,_547,_548){var _549=dojo.i18n.normalizeLocale(_547);var _54a=[_545,"nls",_546].join(".");var _54b="";if(_548){var _54c=_548.split(",");for(var i=0;i<_54c.length;i++){if(_549.indexOf(_54c[i])==0){if(_54c[i].length>_54b.length){_54b=_54c[i];}}}if(!_54b){_54b="ROOT";}}var _54e=_548?_54b:_549;var _54f=dojo._loadedModules[_54a];var _550=null;if(_54f){if(dojo.config.localizationComplete&&_54f._built){return;}var _551=_54e.replace(/-/g,"_");var _552=_54a+"."+_551;_550=dojo._loadedModules[_552];}if(!_550){_54f=dojo["provide"](_54a);var syms=dojo._getModuleSymbols(_545);var _554=syms.concat("nls").join("/");var _555;dojo.i18n._searchLocalePath(_54e,_548,function(loc){var _557=loc.replace(/-/g,"_");var _558=_54a+"."+_557;var _559=false;if(!dojo._loadedModules[_558]){dojo["provide"](_558);var _55a=[_554];if(loc!="ROOT"){_55a.push(loc);}_55a.push(_546);var _55b=_55a.join("/")+".js";_559=dojo._loadPath(_55b,null,function(hash){var _55d=function(){};_55d.prototype=_555;_54f[_557]=new _55d();for(var j in hash){_54f[_557][j]=hash[j];}});}else{_559=true;}if(_559&&_54f[_557]){_555=_54f[_557];}else{_54f[_557]=_555;}if(_548){return true;}});}if(_548&&_549!=_54b){_54f[_549.replace(/-/g,"_")]=_54f[_54b.replace(/-/g,"_")];}};(function(){var _55f=dojo.config.extraLocale;if(_55f){if(!_55f instanceof Array){_55f=[_55f];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_563,_564){req(m,b,_563,_564);if(_563){return;}for(var i=0;i<_55f.length;i++){req(m,b,_55f[i],_564);}};}})();dojo.i18n._searchLocalePath=function(_566,down,_568){_566=dojo.i18n.normalizeLocale(_566);var _569=_566.split("-");var _56a=[];for(var i=_569.length;i>0;i--){_56a.push(_569.slice(0,i).join("-"));}_56a.push(false);if(down){_56a.reverse();}for(var j=_56a.length-1;j>=0;j--){var loc=_56a[j]||"ROOT";var stop=_568(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_56f,_570){function preload(_571){_571=dojo.i18n.normalizeLocale(_571);dojo.i18n._searchLocalePath(_571,true,function(loc){for(var i=0;i<_570.length;i++){if(_570[i]==loc){dojo["require"](_56f+"_"+loc);return true;}}return false;});};preload();var _574=dojo.config.extraLocale||[];for(var i=0;i<_574.length;i++){preload(_574[i]);}};}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");if(dojo.config.require){dojo.forEach(dojo.config.require,"dojo['require'](item);");}}if(!dojo._hasResource["dojo.io.script"]){dojo._hasResource["dojo.io.script"]=true;dojo.provide("dojo.io.script");dojo.io.script={get:function(args){var dfd=this._makeScriptDeferred(args);var _578=dfd.ioArgs;dojo._ioAddQueryToUrl(_578);this.attach(_578.id,_578.url,args.frameDoc);dojo._ioWatch(dfd,this._validCheck,this._ioCheck,this._resHandle);return dfd;},attach:function(id,url,_57b){var doc=(_57b||dojo.doc);var _57d=doc.createElement("script");_57d.type="text/javascript";_57d.src=url;_57d.id=id;doc.getElementsByTagName("head")[0].appendChild(_57d);},remove:function(id){dojo._destroyElement(dojo.byId(id));if(this["jsonp_"+id]){delete this["jsonp_"+id];}},_makeScriptDeferred:function(args){var dfd=dojo._ioSetArgs(args,this._deferredCancel,this._deferredOk,this._deferredError);var _581=dfd.ioArgs;_581.id=dojo._scopeName+"IoScript"+(this._counter++);_581.canDelete=false;if(args.callbackParamName){_581.query=_581.query||"";if(_581.query.length>0){_581.query+="&";}_581.query+=args.callbackParamName+"="+(args.frameDoc?"parent.":"")+"dojo.io.script.jsonp_"+_581.id+"._jsonpCallback";_581.canDelete=true;dfd._jsonpCallback=this._jsonpCallback;this["jsonp_"+_581.id]=dfd;}return dfd;},_deferredCancel:function(dfd){dfd.canceled=true;if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}},_deferredOk:function(dfd){if(dfd.ioArgs.canDelete){dojo.io.script._deadScripts.push(dfd.ioArgs.id);}if(dfd.ioArgs.json){return dfd.ioArgs.json;}else{return dfd.ioArgs;}},_deferredError:function(_584,dfd){if(dfd.ioArgs.canDelete){if(_584.dojoType=="timeout"){dojo.io.script.remove(dfd.ioArgs.id);}else{dojo.io.script._deadScripts.push(dfd.ioArgs.id);}}console.debug("dojo.io.script error",_584);return _584;},_deadScripts:[],_counter:1,_validCheck:function(dfd){var _587=dojo.io.script;var _588=_587._deadScripts;if(_588&&_588.length>0){for(var i=0;i<_588.length;i++){_587.remove(_588[i]);}dojo.io.script._deadScripts=[];}return true;},_ioCheck:function(dfd){if(dfd.ioArgs.json){return true;}var _58b=dfd.ioArgs.args.checkString;if(_58b&&eval("typeof("+_58b+") != 'undefined'")){return true;}return false;},_resHandle:function(dfd){if(dojo.io.script._ioCheck(dfd)){dfd.callback(dfd);}else{dfd.errback(new Error("inconceivable dojo.io.script._resHandle error"));}},_jsonpCallback:function(json){this.ioArgs.json=json;}};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_58f){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_58f&&_58f.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_593){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_593);};dojo.regexp.group=function(_596,_597){return "("+(_597?"?:":"")+_596+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_599,_59a){var c=document.cookie;if(arguments.length==1){var _59c=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _59c?decodeURIComponent(_59c[1]):undefined;}else{_59a=_59a||{};var exp=_59a.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_59a.expires=d;}if(exp&&exp.toUTCString){_59a.expires=exp.toUTCString();}_599=encodeURIComponent(_599);var _59f=name+"="+_599;for(propName in _59a){_59f+="; "+propName;var _5a0=_59a[propName];if(_5a0!==true){_59f+="="+_5a0;}}document.cookie=_59f;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _5a1=dojo.global;var _5a2=dojo.doc;var w=0,h=0;var de=_5a2.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var minw,minh,maxw,maxh;var dbw=_5a2.body.clientWidth;if(dbw>dew){minw=dew;maxw=dbw;}else{maxw=dew;minw=dbw;}var dbh=_5a2.body.clientHeight;if(dbh>deh){minh=deh;maxh=dbh;}else{maxh=deh;minh=dbh;}w=(maxw>_5a1.innerWidth)?minw:maxw;h=(maxh>_5a1.innerHeight)?minh:maxh;}else{if(!dojo.isOpera&&_5a1.innerWidth){w=_5a1.innerWidth;h=_5a1.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _5ae=dojo._docScroll();return {w:w,h:h,l:_5ae.x,t:_5ae.y};};dijit.placeOnScreen=function(node,pos,_5b1,_5b2){var _5b3=dojo.map(_5b1,function(_5b4){return {corner:_5b4,pos:pos};});return dijit._place(node,_5b3);};dijit._place=function(node,_5b6,_5b7){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_5b6,function(_5ba){var _5bb=_5ba.corner;var pos=_5ba.pos;if(_5b7){_5b7(node,_5ba.aroundCorner,_5bb);}var _5bd=node.style;var _5be=_5bd.display;var _5bf=_5bd.visibility;_5bd.visibility="hidden";_5bd.display="";var mb=dojo.marginBox(node);_5bd.display=_5be;_5bd.visibility=_5bf;var _5c1=(_5bb.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_5c2=(_5bb.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_5bb.charAt(1)=="L"?Math.min(view.l+view.w,_5c1+mb.w):pos.x),endY=(_5bb.charAt(0)=="T"?Math.min(view.t+view.h,_5c2+mb.h):pos.y),_5c5=endX-_5c1,_5c6=endY-_5c2,_5c7=(mb.w-_5c5)+(mb.h-_5c6);if(best==null||_5c7<best.overflow){best={corner:_5bb,aroundCorner:_5ba.aroundCorner,x:_5c1,y:_5c2,w:_5c5,h:_5c6,overflow:_5c7};}return !_5c7;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_5b7){_5b7(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundElement=function(node,_5c9,_5ca,_5cb){_5c9=dojo.byId(_5c9);var _5cc=_5c9.style.display;_5c9.style.display="";var _5cd=_5c9.offsetWidth;var _5ce=_5c9.offsetHeight;var _5cf=dojo.coords(_5c9,true);_5c9.style.display=_5cc;var _5d0=[];for(var _5d1 in _5ca){_5d0.push({aroundCorner:_5d1,corner:_5ca[_5d1],pos:{x:_5cf.x+(_5d1.charAt(1)=="L"?0:_5cd),y:_5cf.y+(_5d1.charAt(0)=="T"?0:_5ce)}});}return dijit._place(node,_5d0,_5cb);};}if(!dojo._hasResource["aol.common.GeoServerAPI"]){dojo._hasResource["aol.common.GeoServerAPI"]=true;dojo.provide("aol.common.GeoServerAPI");aol.common.GeoServerAPI=function(_5d2,_5d3){var _5d4="/iProxy?svc=aolGeoServer&cmd=%1&devId=%2&h=%3&f=%4";var _5d5="xml";var cmd={getWeather:"getWeather",citySearch:"citySearch",geoCode:"geoCode",reverseGeoCode:"reverseGeoCode",gasPrices:"gasPrices",getTraffic:"getTraffic"};var _5d7=function(_5d8,cmd,args,_5db){var url=aol.common.Util.replaceArgs(_5d4,[cmd,_5d2,_5d3,_5d5]);url+=args;console.debug("url: ",url);var _5dd={url:url,handleAs:"xml",error:function(data,_5df){try{_5db(_5d8,"error",data,_5df);}catch(ex){throw new Error(ex);}},load:function(data,_5e1){try{_5db(_5d8,"load",data,_5e1);}catch(ex){throw new Error(ex);}}};dojo.xhrGet(_5dd);};this.getWeather=function(_5e2,data,_5e4){if(typeof (data.countryCode)=="undefined"){throw new Error("missing countryCode");}var _5e5=false;var args="&countryCode="+data.countryCode;if(data.postalCode){_5e5=true;args+="&postalCode="+data.postalCode;}if(data.city){_5e5=true;args+="&city="+data.city;}if(data.state){_5e5=true;args+="&state="+data.state;}if(data.locationId){_5e5=true;args+="&locationId="+data.locationId;}if(!_5e5){throw new Error("insufficient arguments in getWeather");}if(_5e5){if(data.langLoc){args+="&langLoc="+data.langLoc;}if(data.r){args+="&r="+data.r;}if(data.weatherType){args+="&weatherType="+data.weatherType;}else{args+="&weatherType=FCST";}if(data.numFcstDays){args+="&numFcstDays="+data.numFcstDays;}else{args+="&numFcstDays=5";}}_5d7(_5e2,cmd.getWeather,args,_5e4);};this.citySearch=function(_5e7,data,_5e9){if(typeof (data.countryCode)=="undefined"){throw new Error("missing countryCode");}if(typeof (data.city)=="undefined"){throw new Error("missing city");}var args="&countryCode="+data.countryCode;args+="&city="+data.city;if(data.state){args+="&state="+data.state;}if(data.langLoc){args+="&langLoc="+data.langLoc;}_5d7(_5e7,cmd.citySearch,args,_5e9);};this.geoCode=function(_5eb,data,_5ed){if(typeof (data.countryCode)=="undefined"){throw new Error("missing countryCode");}var _5ee=false;var args="&countryCode="+data.countryCode;if(data.postalCode){_5ee=true;args+="&postalCode="+data.postalCode;}if(data.cityState){_5ee=true;args+="&cityState="+data.cityState;}if(!_5ee){throw new Error("insufficient arguments in geoCode");}if(data.langLoc){args+="&langLoc="+data.langLoc;}_5d7(_5eb,cmd.geoCode,args,_5ed);};this.reverseGeoCode=function(_5f0,data,_5f2){if(typeof (data.latitude)=="undefined"){throw new Error("missing latitude");}if(typeof (data.longitude)=="undefined"){throw new Error("missing longitude");}var args="&latitude="+data.latitude;args+="&longitude="+data.longitude;_5d7(_5f0,cmd.reverseGeoCode,args,_5f2);};this.gasPrices=function(_5f4,data,_5f6){var _5f7=false;var args="";if(data.postalCode){_5f7=true;args+="&postalCode="+data.postalCode;}if(data.latitude){_5f7=true;args+="&latitude="+data.latitude;}if(data.longitude){_5f7=true;args+="&longitude="+data.longitude;}if(data.stationId){_5f7=true;args+="&stationId="+data.stationId;}if(!_5f7){throw new Error("insufficient arguments in gasPrices");}if(_5f7){if(data.gasType){args+="&gasType="+data.gasType;}if(data.totalGasStationCount){args+="&totalGasStationCount="+data.totalGasStationCount;}if(data.radius){args+="&radius="+data.radius;}}_5d7(_5f4,cmd.gasPrices,args,_5f6);};this.getTraffic=function(_5f9,data,_5fb){if(typeof (data.postalCode)=="undefined"){throw new Error("missing postalCode");}var args="&postalCode="+data.postalCode;if(data.max){args+="&max="+data.max;}_5d7(_5f9,cmd.getTraffic,args,_5fb);};};}if(!dojo._hasResource["modulet.api"]){dojo._hasResource["modulet.api"]=true;dojo.provide("modulet.api");modulet={};modulet.api=function(){var _5fd=null;var _5fe=false;var _5ff=function(_600){var _601=_600.substr("content_".length);var _602=aol.my.ModuleManager.getModuleInstance(_601);if(_602==undefined){throw new Error("No module found by that instance, invalid instance? "+_600);}return _602;};var _603=function(_604,_605){if(_5fe){console.debug("WARNING: ",_604,"is scheduled to be deprecated: ",_605);}};var _606=function(_607,_608){if(_5fe){console.debug("WARNING: ",_607,"implementation is incomplete: ",_608);}};var _609=function(_60a){if(_5fe){console.debug("WARNING: ",_60a,"is not yet implemented. This is a STUB.");}};var _60b=function(url,_60d,_60e){var _60f="&format=";var _610="&devId="+g_HeadlineServerDevId;switch(_60d){case "rss":_60f+="rss-json";break;case "atom":_60f+="atom-json";break;case "xml":_60f="";break;default:alert("Error: Invalid format!");return;}var path=aol.my.Constants.FEED_PROXY_PREFIX+"?url=";var _612=path+escape(url)+_60f+_610;if(_60e){_612+="&modules=html&html.imageFilter=strict";}return _612;};var _613=function(url){return aol.my.Constants.PROXY_PREFIX+"?url="+escape(url);};this.data={};this.data.ERROR="error";this.data.SUCCESS="load";this.l10n={};this.data.getText=function(_615,url,_617){if(typeof (_617)!="function"){throw new TypeError("callback must be of type 'function'");}url=_613(url);var _618={url:url,handleAs:"text",error:function(data,_61a){_617("error",data,_61a.xhr);},load:function(data,_61c){try{_617("load",data,_61c.xhr);}catch(ex){throw new Error(ex);}}};dojo.xhrGet(_618);};this.data.getJson=function(_61d,url,_61f){if(typeof (_61f)!="function"){throw new TypeError("callback must be of type 'function'");}url=_613(url);var _620={url:url,handleAs:"javascript",error:function(data,_622){_61f("error",data,_622.xhr);},load:function(data,_624){try{_61f("load",data,_624.xhr);}catch(ex){throw new Error(ex);}}};dojo.xhrGet(_620);};this.data.getXml=function(_625,url,_627){if(typeof (_627)!="function"){throw new TypeError("callback must be of type 'function'");}url=_613(url);var _628={url:url,handleAs:"xml",error:function(data,_62a){_627("error",data,_62a.xhr);},load:function(data,_62c){try{_627("load",data,_62c.xhr);}catch(ex){throw new Error(ex);}}};dojo.xhrGet(_628);};this.data.getFeed=function(_62d,url,_62f,_630,_631){if(typeof (_62f)!="function"){throw new TypeError("callback must be of type 'function'");}url=_60b(url,_630,_631);var _632="xml";if(_630=="rss"||_630=="atom"){_632="json";}var _633={url:url,handleAs:_632,error:function(data,_635){_62f("error",data,_635.xhr);},load:function(data,_637){try{_62f("load",data,_637.xhr);}catch(ex){throw new Error(ex);}}};dojo.xhrGet(_633);};this.geo=new aol.common.GeoServerAPI("ms121_Vc5rId7THQ","myaol");this.getProxiedFeedUrl=function(url,_639,_63a){_603("ModuleT.getProxiedFeedUrl",url);return _60b(url,_639,_63a);};this.getProxiedUrl=function(url){_603("ModuleT.getProxiedUrl",url);return _613(url);};this.l10n.getString=function(_63c,str,subs){var _63f=_5ff(_63c);var dict=aol.my.ModuleManager.getDictionary(_63f.moduleType);if(dict!=null&&typeof (dict[str])!="undefined"){return aol.common.Util.replaceArgs(dict[str],subs);}return aol.my.App.getLocalizedString(str,subs);};this.setData=function(_641,data,_643,_644){_606("ModuleT.setData","clobber arg");if(typeof (data)!="object"){throw new TypeError("ModuleT.setData - 'data' has invalid type '"+typeof (data)+"', 'object' expected");}if(typeof (_643)!="undefined"&&typeof (_643)!="function"){throw new TypeError("callback must be of type 'function'");}var _645=_5ff(_641);_645.setData(data,(arguments.length==3?_643:function(){}));};this.setSecureData=function(_646,data,_648){if(typeof (data)!="object"){throw new TypeError("ModuleT.setSecureData - 'data' has invalid type '"+typeof (data)+"', 'object' expected");}if(typeof (_648)!="undefined"&&typeof (_648)!="function"){throw new TypeError("callback must be of type 'function'");}var _649=_5ff(_646);_649.setSecureData(data,(arguments.length==3?_648:function(){}));};this.appendData=function(){_609("ModuleT.appendData");};this.clearData=function(){_609("ModuleT.clearData");};this.getData=function(_64a){_606("ModuleT.getData","key optional arg");var _64b=_5ff(_64a);return _64b.getData();};this.setTransientData=function(_64c,data){if(typeof (data)!="object"){throw new TypeError("ModuleT.setTransientData - 'data' has invalid type '"+typeof (data)+"', 'object' expected");}var _64e=_5ff(_64c);_64e.setTransientData(data);};this.getTransientData=function(_64f){var _650=_5ff(_64f);return _650.getTransientData();};this.getModuleBasePath=function(_651){var _652=_5ff(_651);return _652.getPath();};this.getPageLocation=function(){_603("ModuleT.getPageLocation","");return aol.my.App.user.getLocationCode();};this.getUserLocation=function(){_609("ModuleT.getUserLocation");};this.getUser=function(){_609("ModuleT.getUser");};this.setTitle=function(_653,_654){var _655=_5ff(_653);_655.setTitle(_654);};this.getViewNode=function(_656){var _657=dojo.byId(_656);return dojo.query(".view",_657)[0];};this.getEditNode=function(_658){var _659=dojo.byId(_658);var _65a=dojo.query(".edit",_659);if(_65a.length>0){return _65a[0];}else{if(_5fe){console.debug("WARNING: no edit node found for ",_658);}return null;}};this.showView=function(_65b){var _65c=_5ff(_65b);_65c.closeEdit();};this.showEdit=function(_65d){var _65e=_5ff(_65d);_65e.openEdit();};this.showLoading=function(_65f){_609("ModuleT.showLoading");};this.resetModule=function(_660){_603("ModuleT.resetModule",_660);var _661=_5ff(_660);_661.reset();};this.registerEditHandler=function(_662,_663){if(typeof (_663)!="function"){throw new TypeError("callback must be of type 'function'");}_609("ModuleT.registerEditHandler");};this.registerPageReadyHandler=function(_664,_665){if(typeof (_665)!="function"){throw new TypeError("callback must be of type 'function'");}_609("ModuleT.registerPageReadyHandler - this addition is not yet confirmed");};this.registerSaveHandler=function(_666,_667){if(typeof (_667)!="function"){throw new TypeError("callback must be of type 'function'");}var _668=_5ff(_666);_668.registerHandler("save",_667);};this.registerCancelHandler=function(_669,_66a){if(typeof (_66a)!="function"){throw new TypeError("callback must be of type 'function'");}var _66b=_5ff(_669);_66b.registerHandler("cancel",_66a);};this.registerZipCodeChange=function(_66c,_66d){if(typeof (_66d)!="function"){throw new TypeError("callback must be of type 'function'");}aol.my.ModuleManager.addZipCodeListener(_66c,_66d);};this.registerRefresh=function(_66e,_66f,_670){if(typeof (_670)!="undefined"&&typeof (_670)!="function"){throw new TypeError("callback must be of type 'function'");}var _671=_5ff(_66e);aol.my.ModuleManager.addModuleToRefreshQueue(_671,_66f,_670);};this.registerDeleteNotification=function(_672,_673){if(typeof (_673)!="function"){throw new TypeError("callback must be of type 'function'");}var _674=_5ff(_672);_609("ModuleT.registerDeleteNotification");};var _675={initialized:false,clients:{},init:function(){this.initialized=true;dojo.subscribe("/aol.event.drag.HtmlDragSource.start",_676);dojo.subscribe("/aol.event.drag.HtmlDragSource.end",_676);this.clients.start={};this.clients.stop={};}};var _676=function(evt){if(!_675.clients[evt.type][evt.source.dragObject.id]){return;}var _678=aol.my.ModuleManager.getModuleInstance(evt.source.dragObject.id);_675.clients[evt.type][evt.source.dragObject.id](_678);};this.registerDragStartNotification=function(_679,_67a){if(typeof (_67a)!="function"){throw new TypeError("callback must be of type 'function'");}if(!_675.initialized){_675.init();}_675.clients["start"][_679.substr("content_".length)]=_67a;};this.registerDragStopNotification=function(_67b,_67c){if(typeof (_67c)!="function"){throw new TypeError("callback must be of type 'function'");}if(!_675.initialized){_675.init();}_675.clients["stop"][_67b.substr("content_".length)]=_67c;};this.registerResizeHandler=function(_67d,_67e){if(typeof (_67e)!="function"){throw new TypeError("callback must be of type 'function'");}var _67f=_5ff(_67d);_609("ModuleT.registerResizeHandler");};this.disableSaveButton=function(_680){var _681=_5ff(_680);_681.disableButton("save");};this.enableSaveButton=function(_682){var _683=_5ff(_682);_683.enableButton("save");};this.disableCancelButton=function(_684){var _685=_5ff(_684);_685.disableButton("cancel");};this.enableCancelButton=function(_686){var _687=_5ff(_686);_687.enableButton("cancel");};this.setInitComplete=function(_688){_603("ModuleT.setModuleLoading",_688);var _689=_5ff(_688);_689.setInitComplete();};this.setModuleLoading=function(_68a){_603("ModuleT.setModuleLoading",_68a);var _68b=_5ff(_68a);_68b.setLoading();};this.clearModuleLoading=function(_68c){_603("ModuleT.clearModuleLoading",_68c);var _68d=_5ff(_68c);_68d.clearLoading();};this.tooltip=function(_68e,node,_690,_691,_692){if(typeof (node)!="object"){throw new TypeError("node must be of type 'object'");}if(typeof (_690)!="function"){throw new TypeError("callback must be of type 'function'");}if(typeof (_691)!="number"){throw new TypeError("delayMs must be of type 'number'");}var _693=_5ff(_68e);try{if(_5fd==null){_5fd=document.createElement("div");_5fd.id="mTooltip";dojo.body().appendChild(_5fd);dojo.connect(document.body,"onclick",function(){dojo.removeClass(_5fd,"display");});}var cb=function(_695){var _696=_690(_5fd,_695.node);if(typeof (_696)=="undefined"||_696){var _697=_695.module.moduleType;dojo.addClass(_5fd,_697);_692=(_692)?_692:{x:4,y:4};aol.common.Util.placeHoverBubble(_5fd,_695.node,_692);dojo.addClass(_5fd,"display");}};var _698=new aol.common.Util.HoverTimer(_691,cb,{node:node,module:_693});_698.connect(node);dojo.connect(node,"onmouseout",function(evt){var _69a=evt.toElement||evt.relatedTarget;var _69b=false;if(_69a==null||!(dojo.isDescendant(_69a,document.body))){_69b=true;}if(!_69b&&dojo.isDescendant(_69a,node)){return;}_698.cancelTimer();_5fd.className="";});}catch(ex){console.debug(ex);}};this._getTooltip=function(){return _5fd;};this.addModule=function(_69c){aol.my.ModuleManager.createModule(_69c);};this.getImgAd=function(_69d,_69e,_69f,_6a0){if(typeof (_69d)=="undefined"||typeof (_69e)=="undefined"||typeof (_69f)=="undefined"||typeof (_6a0)=="undefined"){console.debug("magicNumber, width, height and adDivId are mandatory");return;}if(typeof (_69d)!="number"){console.debug("magicNumber must be of type number");return;}if(typeof (_69e)!="number"){console.debug("width must be of type number");return;}if(typeof (_69f)!="number"){console.debug("height must be of type number");return;}if(g_locale!="en_US"){return;}var ads=aol.my.adsWrapper;ads.htmlAdWH(_69d,_69e,_69f,"AJAX",_6a0);};this.getOpenAuthToken=function(_6a2){aol.startpage.ServerAPI.getAuthToken(_6a2);};this.getAd=function(_6a3,_6a4,_6a5,_6a6){if(typeof (_6a3)=="undefined"||typeof (_6a4)=="undefined"||typeof (_6a5)=="undefined"||typeof (_6a6)=="undefined"){console.debug("magicNumber, width, height and adDivWithId are mandatory");return;}if(typeof (_6a3)!="number"){console.debug("magicNumber must be of type number");return;}if(typeof (_6a4)!="number"){console.debug("width must be of type number");return;}if(typeof (_6a5)!="number"){console.debug("height must be of type number");return;}if(g_locale!="en_US"){return;}var ads=aol.my.adsWrapper;ads.htmlAdWH(_6a3,_6a4,_6a5,"AJAX",_6a6);};this.reloadAd=function(_6a8){if(typeof (_6a8)=="undefined"){console.debug("adDivWithId is mandatory");return;}var ads=aol.my.adsWrapper;ads.adsReloadAd(_6a8);};};}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _6aa={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _6ad=function(_6ae){this._index=-1;this._animations=_6ae||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_6ad,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_6b0,_6b1){if(!this._current){this._current=this._animations[this._index=0];}if(!_6b1&&this._current.status()=="playing"){return this;}var _6b2=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_6b3=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_6b5=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_6b2);dojo.disconnect(_6b3);dojo.disconnect(_6b5);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_6b9,_6ba){this.pause();var _6bb=this.duration*_6b9;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_6bb){this._current=a;return true;}_6bb-=a.duration;return false;});if(this._current){this._current.gotoPercent(_6bb/_current.duration,_6ba);}return this;},stop:function(_6bd){if(this._current){if(_6bd){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_6ad,_6aa);dojo.fx.chain=function(_6c0){return new _6ad(_6c0);};var _6c1=function(_6c2){this._animations=_6c2||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_6c2,function(a){var _6c4=a.duration;if(a.delay){_6c4+=a.delay;}if(this.duration<_6c4){this.duration=_6c4;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_6c1,{_doAction:function(_6c6,args){dojo.forEach(this._animations,function(a){a[_6c6].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_6c9,args){var t=this._pseudoAnimation;t[_6c9].apply(t,args);},play:function(_6cc,_6cd){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_6ce,_6cf){var ms=this.duration*_6ce;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_6cf);});this._call("gotoProcent",arguments);return this;},stop:function(_6d2){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_6c1,_6aa);dojo.fx.combine=function(_6d3){return new _6c1(_6d3);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_6d6){return this.showAnim.play(_6d6||0);},hide:function(_6d7){return this.hideAnim.play(_6d7||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _6dc=dojo.style(node,"height");return Math.max(_6dc,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["aol.common.GadgetUserPrefsStore"]){dojo._hasResource["aol.common.GadgetUserPrefsStore"]=true;dojo.provide("aol.common.GadgetUserPrefsStore");aol.common.GadgetUserPrefsStore=function(_6eb,_6ec){var _6ed=[];var _6ee={};var _6ef=false;_init(_6eb,_6ec);delete _6eb;delete _6ec;function _init(_6f0,_6f1){for(var i in _6f1["up"]){var _6f3=_6f1["up"][i];var _6f4={};_6f4.type=_6f3["datatype"].toLowerCase();_6f4.name=_6f3["name"];_6f4.displayName=_6f3["display_name"];_6f4.required=_6f3["required"];if(_6f0[_6f4.name]!=null){_6f4.value=_6f0[_6f4.name];}else{if(typeof (_6f3["default_value"])!="undefined"){_6f4.value=_6f3["default_value"];}}_6f4.options=[];_6f4.values=[];var _6f5=(_6f3["enumlist"]||[]).length;for(var j=0;j<_6f5;j++){var _6f7=_6f3["enumlist"][j];_6f4.values.push(_6f7);_6f4.options.push((_6f3["enumvalues"])[_6f7]);}_6ee[_6f4.name]=_6f4;_6ed.push(_6f4.name);if(_6f3["datatype"].toLowerCase()!="hidden"){_6ef=true;}}};return {getSerializedUserPrefs:function(){var _6f8={};for(var i in _6ee){_6f8[i]=_6ee[i].value;}return _6f8;},getUserPrefs:function(){return _6ee;},getUserPrefsArray:function(){return _6ed;},getUserPref:function(name){if(typeof (name)!="string"){throw new Error("aol.common.GadgetUserPrefsStore.getUserPref() type error");}if(typeof (_6ee[name])=="undefined"){return "";}return _6ee[name];},setUserPrefs:function(_6fb){_6ee=_6fb;},setUserPref:function(name,_6fd){_6ee[name].value=_6fd;},hasVisiblePrefs:function(){return _6ef;},validate:function(){for(var x=0;x<_6ed.length;x++){var _6ff=this.getUserPref(_6ed[x]);if(_6ff.type=="string"){if(_6ff.required){if(_6ff.value==null||_6ff.value.length==0){return false;}}}else{if(_6ff.type=="bool"){if(_6ff.required){if(_6ff.value==null){return false;}}}else{if(_6ff.type=="enum"){if(_6ff.required){if(_6ff.value==null||_6ff.value.length==0){return false;}}}else{if(_6ff.type=="list"){if(_6ff.required){if(_6ff.value==null||_6ff.value.length==0){return false;}}}}}}}return true;}};};}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_705,map,_707,_708){return _705.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_709,key,_70b){var _70c=dojo.getObject(key,false,map);if(_70b){_70c=dojo.getObject(_70b,false,_708)(_70c);}if(_707){_70c=_707(_70c,key);}return _70c.toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.io.iframe"]){dojo._hasResource["dojo.io.iframe"]=true;dojo.provide("dojo.io.iframe");dojo.io.iframe={create:function(_70f,_710,uri){if(window[_70f]){return window[_70f];}if(window.frames[_70f]){return window.frames[_70f];}var _712=null;var turi=uri;if(!turi){if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){console.debug("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");}turi=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));}var _714=dojo.isIE?"<iframe name=\""+_70f+"\" src=\""+turi+"\" onload=\""+_710+"\">":"iframe";_712=dojo.doc.createElement(_714);with(_712){name=_70f;setAttribute("name",_70f);id=_70f;}dojo.body().appendChild(_712);window[_70f]=_712;with(_712.style){if(dojo.isSafari<3){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!dojo.isIE){this.setSrc(_712,turi,true);_712.onload=new Function(_710);}return _712;},setSrc:function(_715,src,_717){try{if(!_717){if(dojo.isSafari){_715.location=src;}else{frames[_715.name].location=src;}}else{var idoc;if(dojo.isIE||dojo.isSafari>2){idoc=_715.contentWindow.document;}else{if(dojo.isSafari){idoc=_715.document;}else{idoc=_715.contentWindow;}}if(!idoc){_715.location=src;return;}else{idoc.location.replace(src);}}}catch(e){console.debug("dojo.io.iframe.setSrc: ",e);}},doc:function(_719){var doc=_719.contentDocument||(((_719.name)&&(_719.document)&&(document.getElementsByTagName("iframe")[_719.name].contentWindow)&&(document.getElementsByTagName("iframe")[_719.name].contentWindow.document)))||((_719.name)&&(document.frames[_719.name])&&(document.frames[_719.name].document))||null;return doc;},send:function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");}var dfd=dojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _71f=null;try{var _720=dfd.ioArgs;var dii=dojo.io.iframe;var ifd=dii.doc(dii._frame);var _723=_720.handleAs;_71f=ifd;if(_723!="html"){_71f=ifd.getElementsByTagName("textarea")[0].value;if(_723=="json"){_71f=dojo.fromJson(_71f);}else{if(_723=="javascript"){_71f=dojo.eval(_71f);}}}}catch(e){_71f=e;}finally{_720._callNext();}return _71f;},function(_724,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _724;});dfd.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;dojo.io.iframe._currentDfd=null;dojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(dfd);this._fireNextRequest();dojo._ioWatch(dfd,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid dojo.io.iframe request state"));}});return dfd;},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}var dfd=this._currentDfd=this._dfdQueue.shift();var _72a=dfd.ioArgs;var args=_72a.args;_72a._contentToClean=[];var fn=dojo.byId(args["form"]);var _72d=args["content"]||{};if(fn){if(_72d){for(var x in _72d){if(!fn[x]){var tn;if(dojo.isIE){tn=dojo.doc.createElement("<input type='hidden' name='"+x+"'>");}else{tn=dojo.doc.createElement("input");tn.type="hidden";tn.name=x;}tn.value=_72d[x];fn.appendChild(tn);_72a._contentToClean.push(x);}else{fn[x].value=_72d[x];}}}var _730=fn.getAttributeNode("action");var _731=fn.getAttributeNode("method");var _732=fn.getAttributeNode("target");if(args["url"]){_72a._originalAction=_730?_730.value:null;if(_730){_730.value=args.url;}else{fn.setAttribute("action",args.url);}}if(!_731||!_731.value){if(_731){_731.value=(args["method"])?args["method"]:"post";}else{fn.setAttribute("method",(args["method"])?args["method"]:"post");}}_72a._originalTarget=_732?_732.value:null;if(_732){_732.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;fn.submit();}else{var _733=args.url+(args.url.indexOf("?")>-1?"&":"?")+_72a.query;this.setSrc(this._frame,_733,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _735=dfd.ioArgs;var args=_735.args;var _737=dojo.byId(args.form);if(_737){var _738=_735._contentToClean;for(var i=0;i<_738.length;i++){var key=_738[i];if(dojo.isSafari<3){for(var j=0;j<_737.childNodes.length;j++){var _73c=_737.childNodes[j];if(_73c.name==key){dojo._destroyElement(_73c);break;}}}else{dojo._destroyElement(_737[key]);_737[key]=null;}}if(_735["_originalAction"]){_737.setAttribute("action",_735._originalAction);}if(_735["_originalTarget"]){_737.setAttribute("target",_735._originalTarget);_737.target=_735._originalTarget;}}_735._finished=true;}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _73d=dojo.global;var _73e=dojo.doc;if(_73e.selection){return !_73e.selection.createRange().text;}else{var _73f=_73d.getSelection();if(dojo.isString(_73f)){return !_73f;}else{return _73f.isCollapsed||!_73f.toString();}}},getBookmark:function(){var _740,_741=dojo.doc.selection;if(_741){var _742=_741.createRange();if(_741.type.toUpperCase()=="CONTROL"){if(_742.length){_740=[];var i=0,len=_742.length;while(i<len){_740.push(_742.item(i++));}}else{_740=null;}}else{_740=_742.getBookmark();}}else{if(window.getSelection){_741=dojo.global.getSelection();if(_741){_742=_741.getRangeAt(0);_740=_742.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _740;},moveToBookmark:function(_745){var _746=dojo.doc;if(_746.selection){var _747;if(dojo.isArray(_745)){_747=_746.body.createControlRange();dojo.forEach(_745,"range.addElement(item)");}else{_747=_746.selection.createRange();_747.moveToBookmark(_745);}_747.select();}else{var _748=dojo.global.getSelection&&dojo.global.getSelection();if(_748&&_748.removeAllRanges){_748.removeAllRanges();_748.addRange(_745);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_74a){return {node:menu&&dojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_74a||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_74a||dojo.global,dijit.getBookmark):null,openedForWindow:_74a};},focus:function(_74b){if(!_74b){return;}var node="node" in _74b?_74b.node:_74b,_74d=_74b.bookmark,_74e=_74b.openedForWindow;if(node){var _74f=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_74f&&_74f.focus){try{_74f.focus();}catch(e){}}dijit._onFocusNode(node);}if(_74d&&dojo.withGlobal(_74e||dojo.global,dijit.isCollapsed)){if(_74e){_74e.focus();}try{dojo.withGlobal(_74e||dojo.global,dijit.moveToBookmark,null,[_74d]);}catch(e){}}},_activeStack:[],registerWin:function(_750){if(!_750){_750=window;}dojo.connect(_750.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var body=_750.document.body||_750.document.getElementsByTagName("body")[0];if(body){if(dojo.isIE){body.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});body.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{body.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);body.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}body=null;},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _759=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_759.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_759);},_onFocusNode:function(node){if(node&&node.tagName&&node.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_75c){var _75d=dijit._activeStack;dijit._activeStack=_75c;for(var _75e=0;_75e<Math.min(_75d.length,_75c.length);_75e++){if(_75d[_75e]!=_75c[_75e]){break;}}for(var i=_75d.length-1;i>=_75e;i--){var _760=dijit.byId(_75d[i]);if(_760){_760._focused=false;_760._hasBeenBlurred=true;if(_760._onBlur){_760._onBlur();}if(_760._setStateClass){_760._setStateClass();}dojo.publish("widgetBlur",[_760]);}}for(i=_75e;i<_75c.length;i++){_760=dijit.byId(_75c[i]);if(_760){_760._focused=true;if(_760._onFocus){_760._onFocus();}if(_760._setStateClass){_760._setStateClass();}dojo.publish("widgetFocus",[_760]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_761){if(this._hash[_761.id]){throw new Error("Tried to register widget with id=="+_761.id+" but that id is already registered");}this._hash[_761.id]=_761;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_765){var res=new dijit.WidgetSet();this.forEach(function(_767){if(_765(_767)){res.add(_767);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_76a){return _76a.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_76b){var id;do{id=_76b+"_"+(_76b in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_76b]:dijit._widgetTypeCtr[_76b]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_76d){_76d.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _772=dojo.style(elem);return (_772.visibility!="hidden")&&(_772.visibility!="collapsed")&&(_772.display!="none");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _774=dojo.hasAttr(elem,"tabindex");var _775=dojo.attr(elem,"tabindex");if(_774&&_775>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_774||_775>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _778,last,_77a,_77b,_77c,_77d;var _77e=function(_77f){dojo.query("> *",_77f).forEach(function(_780){var _781=dijit._isElementShown(_780);if(_781&&dijit.isTabNavigable(_780)){var _782=dojo.attr(_780,"tabindex");if(!dojo.hasAttr(_780,"tabindex")||_782==0){if(!_778){_778=_780;}last=_780;}else{if(_782>0){if(!_77a||_782<_77b){_77b=_782;_77a=_780;}if(!_77c||_782>=_77d){_77d=_782;_77c=_780;}}}}if(_781){_77e(_780);}});};if(dijit._isElementShown(root)){_77e(root);}return {first:_778,last:last,lowest:_77a,highest:_77c};};dijit.getFirstInTabbingOrder=function(root){var _784=dijit._getTabNavigable(dojo.byId(root));return _784.lowest?_784.lowest:_784.first;};dijit.getLastInTabbingOrder=function(root){var _786=dijit._getTabNavigable(dojo.byId(root));return _786.last?_786.last:_786.highest;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _78c=[],_78d=1000,_78e=1;this.prepare=function(node){dojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _792=args.popup,_793=args.orient||{"BL":"TL","TL":"BL"},_794=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_78e++);var _796=dojo.doc.createElement("div");dijit.setWaiRole(_796,"presentation");_796.id=id;_796.className="dijitPopup";_796.style.zIndex=_78d+_78c.length;_796.style.visibility="hidden";if(args.parent){_796.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_796);var s=_792.domNode.style;s.display="";s.visibility="";s.position="";_796.appendChild(_792.domNode);var _798=new dijit.BackgroundIframe(_796);var best=_794?dijit.placeOnScreenAroundElement(_796,_794,_793,_792.orient?dojo.hitch(_792,"orient"):null):dijit.placeOnScreen(_796,args,_793=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_796.style.visibility="visible";var _79a=[];var _79b=function(){for(var pi=_78c.length-1;pi>0&&_78c[pi].parent===_78c[pi-1].widget;pi--){}return _78c[pi];};_79a.push(dojo.connect(_796,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _79e=_79b();if(_79e&&_79e.onCancel){_79e.onCancel();}}}}));if(_792.onCancel){_79a.push(dojo.connect(_792,"onCancel",null,args.onCancel));}_79a.push(dojo.connect(_792,_792.onExecute?"onExecute":"onChange",null,function(){var _79f=_79b();if(_79f&&_79f.onExecute){_79f.onExecute();}}));_78c.push({wrapper:_796,iframe:_798,widget:_792,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_79a});if(_792.onOpen){_792.onOpen(best);}return best;};this.close=function(_7a0){while(dojo.some(_78c,function(elem){return elem.widget==_7a0;})){var top=_78c.pop(),_7a3=top.wrapper,_7a4=top.iframe,_7a5=top.widget,_7a6=top.onClose;if(_7a5.onClose){_7a5.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_7a5||!_7a5.domNode){return;}this.prepare(_7a5.domNode);_7a4.destroy();dojo._destroyElement(_7a3);if(_7a6){_7a6();}}};}();dijit._frames=new function(){var _7a7=[];this.pop=function(){var _7a8;if(_7a7.length){_7a8=_7a7.pop();_7a8.style.display="";}else{if(dojo.isIE){var html="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_7a8=dojo.doc.createElement(html);}else{_7a8=dojo.doc.createElement("iframe");_7a8.src="javascript:\"\"";_7a8.className="dijitBackgroundIframe";}_7a8.tabIndex=-1;dojo.body().appendChild(_7a8);}return _7a8;};this.push=function(_7aa){_7aa.style.display="";if(dojo.isIE){_7aa.style.removeExpression("width");_7aa.style.removeExpression("height");}_7a7.push(_7aa);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _7ad=dijit._frames.pop();node.appendChild(_7ad);if(dojo.isIE){_7ad.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_7ad.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_7ad;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){var _7af=node.parentNode;var _7b0=_7af.scrollTop+dojo.marginBox(_7af).h;var _7b1=node.offsetTop+dojo.marginBox(node).h;if(_7b0<_7b1){_7af.scrollTop+=(_7b1-_7b0);}else{if(_7af.scrollTop>node.offsetTop){_7af.scrollTop-=(_7af.scrollTop-node.offsetTop);}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _7b4=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _7b7={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_7b4,dj_opera8:maj(_7b4)==8,dj_opera9:maj(_7b4)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};for(var p in _7b7){if(_7b7[p]){var html=dojo.doc.documentElement;if(html.className){html.className+=" "+p;}else{html.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_7bb,node,_7bd,obj,_7bf,_7c0){if(obj!=this._obj){this.stop();this._initialDelay=_7c0||500;this._subsequentDelay=_7bf||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_7bb,_7bd);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_7c2,_7c3,_7c4,_7c5,_7c6){return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.keyCode==_7c2.keyCode&&(!_7c2.charCode||_7c2.charCode==evt.charCode)&&(_7c2.ctrlKey===undefined||_7c2.ctrlKey==evt.ctrlKey)&&(_7c2.altKey===undefined||_7c2.altKey==evt.ctrlKey)&&(_7c2.shiftKey===undefined||_7c2.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_7c2,_7c3,node,_7c4,_7c2,_7c5,_7c6);}else{if(dijit.typematic._obj==_7c2){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_7c2){dijit.typematic.stop();}})];},addMouseListener:function(node,_7ca,_7cb,_7cc,_7cd){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_7ca,node,_7cb,node,_7cc,_7cd);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_7ca,node,_7cb,node,_7cc,_7cd);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_7d4,_7d5,_7d6,_7d7,_7d8,_7d9,_7da){return this.addKeyListener(_7d5,_7d6,_7d7,_7d8,_7d9,_7da).concat(this.addMouseListener(_7d4,_7d7,_7d8,_7d9,_7da));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dojo","resources/blank.gif")+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _7dd=cs.backgroundImage;var _7de=(cs.borderTopColor==cs.borderRightColor)||(_7dd!=null&&(_7dd=="none"||_7dd=="url(invalid-url:)"));dojo[_7de?"addClass":"removeClass"](dojo.body(),"dijit_a11y");dojo.body().removeChild(div);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem){return elem.hasAttribute?elem.hasAttribute("role"):!!elem.getAttribute("role");},getWaiRole:function(elem){var _7e1=elem.getAttribute("role");if(_7e1){var _7e2=_7e1.indexOf(":");return _7e2==-1?_7e1:_7e1.substring(_7e2+1);}else{return "";}},setWaiRole:function(elem,role){elem.setAttribute("role",(dojo.isFF&&dojo.isFF<3)?"wairole:"+role:role);},removeWaiRole:function(elem){elem.removeAttribute("role");},hasWaiState:function(elem,_7e7){if(dojo.isFF&&dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_7e7);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_7e7):!!elem.getAttribute("aria-"+_7e7);}},getWaiState:function(elem,_7e9){if(dojo.isFF&&dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_7e9);}else{var _7ea=elem.getAttribute("aria-"+_7e9);return _7ea?_7ea:"";}},setWaiState:function(elem,_7ec,_7ed){if(dojo.isFF&&dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_7ec,_7ed);}else{elem.setAttribute("aria-"+_7ec,_7ed);}},removeWaiState:function(elem,_7ef){if(dojo.isFF&&dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_7ef);}else{elem.removeAttribute("aria-"+_7ef);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");if(dojo.isSafari){dojo.connect(window,"load",function(){window.resizeBy(1,0);setTimeout(function(){window.resizeBy(-1,0);},10);});}}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_7f0,_7f1){this.create(_7f0,_7f1);},create:function(_7f2,_7f3){this.srcNodeRef=dojo.byId(_7f3);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_7f2){this.params=_7f2;dojo.mixin(this,_7f2);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _7f5=this[attr];if(typeof _7f5!="object"&&((_7f5!==""&&_7f5!==false)||(_7f2&&_7f2[attr]))){this.setAttribute(attr,_7f5);}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_7f6){this.destroyDescendants();this.destroy();},destroy:function(_7f7){this.uninitialize();dojo.forEach(this._connects,function(_7f8){dojo.forEach(_7f8,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){w.destroy();});this.destroyRendering(_7f7);dijit.registry.remove(this.id);},destroyRendering:function(_7fa){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_7fb){_7fb.destroy();});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_7fe){var _7ff=this[this.attributeMap[attr]||"domNode"];this[attr]=_7fe;switch(attr){case "class":dojo.addClass(_7ff,_7fe);break;case "style":if(_7ff.style.cssText){_7ff.style.cssText+="; "+_7fe;}else{_7ff.style.cssText=_7fe;}break;default:if(/^on[A-Z]/.test(attr)){attr=attr.toLowerCase();}if(typeof _7fe=="function"){_7fe=dojo.hitch(this,_7fe);}dojo.attr(_7ff,attr,_7fe);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_802,_803){var _804=[];if(_802=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){_804.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_803))?this[_803](e):_803.call(this,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_804.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_803)?this[_803](e):_803.call(this,e);}}));}_802="onclick";}_804.push(dojo.connect(obj,_802,this,_803));this._connects.push(_804);return _804;},disconnect:function(_807){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_807){dojo.forEach(_807,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(!("_ltr" in this)){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_809,_80a){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _80b=dojo.date.stamp._isoRegExp.exec(_809);var _80c=null;if(_80b){_80b.shift();if(_80b[1]){_80b[1]--;}if(_80b[6]){_80b[6]*=1000;}if(_80a){_80a=new Date(_80a);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _80a["get"+prop]();}).forEach(function(_80e,_80f){if(_80b[_80f]===undefined){_80b[_80f]=_80e;}});}_80c=new Date(_80b[0]||1970,_80b[1]||0,_80b[2]||1,_80b[3]||0,_80b[4]||0,_80b[5]||0,_80b[6]||0);var _810=0;var _811=_80b[7]&&_80b[7].charAt(0);if(_811!="Z"){_810=((_80b[8]||0)*60)+(Number(_80b[9])||0);if(_811!="-"){_810*=-1;}}if(_811){_810-=_80c.getTimezoneOffset();}if(_810){_80c.setTime(_80c.getTime()+_810*60000);}}return _80c;};dojo.date.stamp.toISOString=function(_812,_813){var _=function(n){return (n<10)?"0"+n:n;};_813=_813||{};var _816=[];var _817=_813.zulu?"getUTC":"get";var date="";if(_813.selector!="time"){var year=_812[_817+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_812[_817+"Month"]()+1),_(_812[_817+"Date"]())].join("-");}_816.push(date);if(_813.selector!="date"){var time=[_(_812[_817+"Hours"]()),_(_812[_817+"Minutes"]()),_(_812[_817+"Seconds"]())].join(":");var _81b=_812[_817+"Milliseconds"]();if(_813.milliseconds){time+="."+(_81b<100?"0":"")+_(_81b);}if(_813.zulu){time+="Z";}else{if(_813.selector!="time"){var _81c=_812.getTimezoneOffset();var _81d=Math.abs(_81c);time+=(_81c>0?"-":"+")+_(Math.floor(_81d/60))+":"+_(_81d%60);}}_816.push(time);}return _816.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _81f=d._scopeName+"Type";var qry="["+_81f+"]";function val2type(_821){if(d.isString(_821)){return "string";}if(typeof _821=="number"){return "number";}if(typeof _821=="boolean"){return "boolean";}if(d.isFunction(_821)){return "function";}if(d.isArray(_821)){return "array";}if(_821 instanceof Date){return "date";}if(_821 instanceof d._Url){return "url";}return "object";};function str2obj(_822,type){switch(type){case "string":return _822;case "number":return _822.length?Number(_822):NaN;case "boolean":return typeof _822=="boolean"?_822:!(_822.toLowerCase()=="false");case "function":if(d.isFunction(_822)){_822=_822.toString();_822=d.trim(_822.substring(_822.indexOf("{")+1,_822.length-1));}try{if(_822.search(/[^\w\.]+/i)!=-1){_822=d.parser._nameAnonFunc(new Function(_822),this);}return d.getObject(_822,false);}catch(e){return new Function();}case "array":return _822.split(/\s*,\s*/);case "date":switch(_822){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_822);}case "url":return d.baseUrl+_822;default:return d.fromJson(_822);}};var _824={};function getClassInfo(_825){if(!_824[_825]){var cls=d.getObject(_825);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_825+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _827=cls.prototype;var _828={};for(var name in _827){if(name.charAt(0)=="_"){continue;}var _82a=_827[name];_828[name]=val2type(_82a);}_824[_825]={cls:cls,params:_828};}return _824[_825];};this._functionFromScript=function(_82b){var _82c="";var _82d="";var _82e=_82b.getAttribute("args");if(_82e){d.forEach(_82e.split(/\s*,\s*/),function(part,idx){_82c+="var "+part+" = arguments["+idx+"]; ";});}var _831=_82b.getAttribute("with");if(_831&&_831.length){d.forEach(_831.split(/\s*,\s*/),function(part){_82c+="with("+part+"){";_82d+="}";});}return new Function(_82c+_82b.innerHTML+_82d);};this.instantiate=function(_833){var _834=[];d.forEach(_833,function(node){if(!node){return;}var type=node.getAttribute(_81f);if((!type)||(!type.length)){return;}var _837=getClassInfo(type);var _838=_837.cls;var ps=_838._noScript||_838.prototype._noScript;var _83a={};var _83b=node.attributes;for(var name in _837.params){var item=_83b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _83e=item.value;switch(name){case "class":_83e=node.className;break;case "style":_83e=node.style&&node.style.cssText;}var _83f=_837.params[name];_83a[name]=str2obj(_83e,_83f);}if(!ps){var _840=[],_841=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_842){var _843=_842.getAttribute("event"),type=_842.getAttribute("type"),nf=d.parser._functionFromScript(_842);if(_843){if(type=="dojo/connect"){_840.push({event:_843,func:nf});}else{_83a[_843]=nf;}}else{_841.push(nf);}});}var _845=_838["markupFactory"];if(!_845&&_838["prototype"]){_845=_838.prototype["markupFactory"];}var _846=_845?_845(_83a,node,_838):new _838(_83a,node);_834.push(_846);var _847=node.getAttribute("jsId");if(_847){d.setObject(_847,_846);}if(!ps){d.forEach(_840,function(_848){d.connect(_846,_848.event,null,_848.func);});d.forEach(_841,function(func){func.call(_846);});}});d.forEach(_834,function(_84a){if(_84a&&_84a.startup&&!_84a._started&&(!_84a.getParent||!_84a.getParent())){_84a.startup();}});return _834;};this.parse=function(_84b){var list=d.query(qry,_84b);var _84d=this.instantiate(list);return _84d;};}();(function(){var _84e=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_84e);}else{dojo._loaders.unshift(_84e);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_84f,_850){var jpn="$joinpoint";var nso=(_850||dojo.parser._anon);if(dojo.isIE){var cn=_84f["__dojoNameCache"];if(cn&&nso[cn]===_84f){return _84f["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_84f;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){var _856=this.declaredClass,_857=this;return dojo.string.substitute(tmpl,this,function(_858,key){if(key.charAt(0)=="!"){_858=_857[key.substr(1)];}if(typeof _858=="undefined"){throw new Error(_856+" template:"+key);}if(!_858){return "";}return key.charAt(0)=="!"?_858:_858.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _85a=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_85a)){node=dijit._Templated._createNodesFromText(this._stringRepl(_85a))[0];}else{node=_85a.cloneNode(true);}this._attachTemplateNodes(node);var _85c=this.srcNodeRef;if(_85c&&_85c.parentNode){_85c.parentNode.replaceChild(node,_85c);}this.domNode=node;if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_85c);},_fillContent:function(_860){var dest=this.containerNode;if(_860&&dest){while(_860.hasChildNodes()){dest.appendChild(_860.firstChild);}}},_attachTemplateNodes:function(_862,_863){_863=_863||function(n,p){return n.getAttribute(p);};var _866=dojo.isArray(_862)?_862:(_862.all||_862.getElementsByTagName("*"));var x=dojo.isArray(_862)?0:-1;for(;x<_866.length;x++){var _868=(x==-1)?_862:_866[x];if(this.widgetsInTemplate&&_863(_868,"dojoType")){continue;}var _869=_863(_868,"dojoAttachPoint");if(_869){var _86a,_86b=_869.split(/\s*,\s*/);while((_86a=_86b.shift())){if(dojo.isArray(this[_86a])){this[_86a].push(_868);}else{this[_86a]=_868;}}}var _86c=_863(_868,"dojoAttachEvent");if(_86c){var _86d,_86e=_86c.split(/\s*,\s*/);var trim=dojo.trim;while((_86d=_86e.shift())){if(_86d){var _870=null;if(_86d.indexOf(":")!=-1){var _871=_86d.split(":");_86d=trim(_871[0]);_870=trim(_871[1]);}else{_86d=trim(_86d);}if(!_870){_870=_86d;}this.connect(_868,_86d,_870);}}}var role=_863(_868,"waiRole");if(role){dijit.setWaiRole(_868,role);}var _873=_863(_868,"waiState");if(_873){dojo.forEach(_873.split(/\s*,\s*/),function(_874){if(_874.indexOf("-")!=-1){var pair=_874.split("-");dijit.setWaiState(_868,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_876,_877,_878){var _879=dijit._Templated._templateCache;var key=_877||_876;var _87b=_879[key];if(_87b){return _87b;}if(!_877){_877=dijit._Templated._sanitizeTemplateString(dojo._getText(_876));}_877=dojo.string.trim(_877);if(_878||_877.match(/\$\{([^\}]+)\}/g)){return (_879[key]=_877);}else{return (_879[key]=dijit._Templated._createNodesFromText(_877)[0]);}};dijit._Templated._sanitizeTemplateString=function(_87c){if(_87c){_87c=_87c.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _87d=_87c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_87d){_87c=_87d[1];}}else{_87c="";}return _87c;};if(dojo.isIE){dojo.addOnUnload(function(){var _87e=dijit._Templated._templateCache;for(var key in _87e){var _880=_87e[key];if(!isNaN(_880.nodeType)){dojo._destroyElement(_880);}delete _87e[key];}});}(function(){var _881={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _884="none";var _885=text.replace(/^\s+/,"");for(var type in _881){var map=_881[type];if(map.re.test(_885)){_884=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_884];var _889=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _88a=[];while(_889.firstChild){_88a.push(_889.removeChild(_889.firstChild));}tn.innerHTML="";return _88a;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["aol.common.d4"]){dojo._hasResource["aol.common.d4"]=true;dojo.provide("aol.common.d4");(function(){if(!dojo.isMoz){var _88b=console.debug;console.debug=function(){var text="";for(var i=0;i<arguments.length;i++){text+=arguments[i]+",";}return _88b.call(console,text);};}})();aol.common.d4.load043Resource=function(_88e,_88f){this.waiting043Resource=_88e;this.waiting043OnLoad=_88f;if(!this.started043){this.started043=true;dojo.io.script.attach("dojo043",dojo.config.dojo043Url);}else{aol.common.d4.on043Load();}};aol.common.d4.on043Load=function(){setTimeout(aol.common.d4.require043,100);};aol.common.d4.require043=function(){var _890=window.dojo;_890.require(aol.common.d4.waiting043Resource);_890.addOnLoad(aol.common.d4.waiting043OnLoad);_890.addOnLoad(function(){var c=aol.my.Environment.getPageConfig();_890.event.topic.subscribe("/aol.event.LoginRequired",function(){location.href=c.loginUrl;});_890.event.topic.subscribe("/aol.event.SignUpRequired",function(){location.href=c.signUpUrl;});_890.event.topic.subscribe("/aol.event.Logout",function(){location.href=c.logoutUrl;});});aol.common.d4.waiting043OnLoad=null;};aol.common.d4.setTimeout=function(func,_893){var _894=window,_895=2;if(!dojo.isFunction(func)){_894=func;func=_893;_893=arguments[2];_895++;}if(dojo.isString(func)){func=_894[func];}var args=[];for(var i=_895;i<arguments.length;i++){args.push(arguments[i]);}return dojo.global.setTimeout(function(){func.apply(_894,args);},_893);};aol.common.d4.textContent=function(node,text){if(arguments.length>1){var _89a=dojo.doc;aol.common.d4.replaceChildren(node,_89a.createTextNode(text));return text;}else{if(node.textContent!=undefined){return node.textContent;}var _89b="";if(node==null){return _89b;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_89b+=aol.common.d4.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_89b+=node.childNodes[i].nodeValue;break;default:break;}}return _89b;}};aol.common.d4.replaceChildren=function(node,_89e){var _89f=[];if(dojo.isIE){for(var i=0;i<node.childNodes.length;i++){_89f.push(node.childNodes[i]);}}aol.common.d4.removeChildren(node);node.appendChild(_89e);for(var i=0;i<_89f.length;i++){dojo._destroyElement(_89f[i]);}};aol.common.d4.removeChildren=function(node){var _8a2=node.childNodes.length;while(node.hasChildNodes()){dojo._destroyElement(node.firstChild);}return _8a2;};aol.common.d4.insertCssText=function(_8a3,doc,URI){if(!_8a3){return;}if(!doc){doc=document;}if(URI){_8a3=aol.common.d4.fixPathsInCssText(_8a3,URI);}var _8a6=doc.createElement("style");_8a6.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){console.debug("No head tag in document, aborting styles");return;}else{head.appendChild(_8a6);}if(_8a6.styleSheet){var _8a8=function(){try{_8a6.styleSheet.cssText=_8a3;}catch(e){console.debug(e);}};if(_8a6.styleSheet.disabled){setTimeout(_8a8,10);}else{_8a8();}}else{var _8a9=doc.createTextNode(_8a3);_8a6.appendChild(_8a9);}return _8a6;};aol.common.d4.fixPathsInCssText=function(_8aa,URI){if(!_8aa||!URI){return;}var _8ac,str="",url="",_8af="[\\t\\s\\w\\(\\)\\/\\.\\\\'\"-:#=&?~]+";var _8b0=new RegExp("url\\(\\s*("+_8af+")\\s*\\)");var _8b1=/(file|https?|ftps?):\/\//;regexTrim=new RegExp("^[\\s]*(['\"]?)("+_8af+")\\1[\\s]*?$");if(dojo.isIE){var _8b2=new RegExp("AlphaImageLoader\\((.*)src=['\"]("+_8af+")['\"]");while(_8ac=_8b2.exec(_8aa)){url=_8ac[2].replace(regexTrim,"$2");if(!_8b1.exec(url)){url=(new dojo._Url(URI,url).toString());}str+=_8aa.substring(0,_8ac.index)+"AlphaImageLoader("+_8ac[1]+"src='"+url+"'";_8aa=_8aa.substr(_8ac.index+_8ac[0].length);}_8aa=str+_8aa;str="";}while(_8ac=_8b0.exec(_8aa)){url=_8ac[1].replace(regexTrim,"$2");if(!_8b1.exec(url)){url=(new dojo._Url(URI,url).toString());}str+=_8aa.substring(0,_8ac.index)+"url("+url+")";_8aa=_8aa.substr(_8ac.index+_8ac[0].length);}return str+_8aa;};aol.common.d4.ELEMENT_NODE=1;aol.common.d4.firstElement=aol.common.d4.getFirstChildElement=function(_8b3,_8b4){var node=_8b3.firstChild;while(node&&node.nodeType!=aol.common.d4.ELEMENT_NODE){node=node.nextSibling;}if(_8b4&&node&&node.tagName&&node.tagName.toLowerCase()!=_8b4.toLowerCase()){node=aol.common.d4.nextElement(node,_8b4);}return node;};aol.common.d4.lastElement=aol.common.d4.getLastChildElement=function(_8b6,_8b7){var node=_8b6.lastChild;while(node&&node.nodeType!=aol.common.d4.ELEMENT_NODE){node=node.previousSibling;}if(_8b7&&node&&node.tagName&&node.tagName.toLowerCase()!=_8b7.toLowerCase()){node=aol.common.d4.prevElement(node,_8b7);}return node;};aol.common.d4.prevElement=aol.common.d4.getPreviousSiblingElement=function(node,_8ba){if(!node){return null;}if(_8ba){_8ba=_8ba.toLowerCase();}do{node=node.previousSibling;}while(node&&node.nodeType!=aol.common.d4.ELEMENT_NODE);if(node&&_8ba&&_8ba.toLowerCase()!=node.tagName.toLowerCase()){return aol.common.d4.prevElement(node,_8ba);}return node;};aol.common.d4.nextElement=aol.common.d4.getNextSiblingElement=function(node,_8bc){if(!node){return null;}do{node=node.nextSibling;}while(node&&node.nodeType!=aol.common.d4.ELEMENT_NODE);if(node&&_8bc&&_8bc.toLowerCase()!=node.tagName.toLowerCase()){return aol.common.d4.nextElement(node,_8bc);}return node;};aol.common.d4.iframeContentWindow=function(_8bd){var win=aol.common.d4.getDocumentWindow(aol.common.d4.iframeContentDocument(_8bd))||aol.common.d4.iframeContentDocument(_8bd).__parent__||(_8bd.name&&document.frames[_8bd.name])||null;return win;};aol.common.d4.iframeContentDocument=function(_8bf){var doc=_8bf.contentDocument||((_8bf.contentWindow)&&(_8bf.contentWindow.document))||((_8bf.name)&&(document.frames[_8bf.name])&&(document.frames[_8bf.name].document))||null;return doc;};aol.common.d4.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};(function(){var d4=aol.common.d4;dojo.render={html:{mozilla:dojo.isMoz,safari:dojo.isSafari}};dojo.debug=function(){console.debug.apply(console,arguments);};dojo.lang={hitch:function(){return dojo.hitch.apply(dojo,arguments);},forEach:function(){return dojo.forEach.apply(dojo,arguments);},isUndefined:function(it){return ((typeof (it)=="undefined")&&(it==undefined));}};dojo.event={browser:{stopEvent:function(e){return dojo.stopEvent(e);}},connect:function(){return dojo.connect.apply(dojo,arguments);},topic:{subscribe:function(){return dojo.subscribe.apply(dojo,arguments);},publish:function(){var _8c6=arguments[0];var _8c7=Array.prototype.slice.call(arguments,1);return dojo.publish.call(dojo,_8c6,_8c7);}}};dojo.dom={destroyNode:function(node){return dojo._destroyElement(node);},getFirstChildElement:function(){return d4.getFirstChildElement(parentNode,tagName);},isDescendantOf:function(){return dojo.isDescendant.apply(dojo,arguments);},prependChild:function(node,_8ca){return dojo.place(node,_8ca,"first");},textContent:function(node,text){return d4.textContent(node,text);}};dojo.html={addClass:function(node,_8ce){return dojo.addClass(node,_8ce);},removeClass:function(node,_8d0){return dojo.removeClass(node,_8d0);},setClass:function(node,_8d2){return node.className=_8d2;},hasClass:function(node,_8d4){return dojo.hasClass(node,_8d4);},show:function(node){return dojo.style(node,"display","");},hide:function(node){return dojo.style(node,"display","none");},setVisibility:function(node,_8d8){dojo.style(node,"visibility",(_8d8?"visible":"hidden"));},isDisplayed:function(node){return (dojo.getComputedStyle(node).display!="none");},setStyle:function(node,_8db,_8dc){if(_8db=="background-image"){return dojo.style(node,"backgroundImage",_8dc);}else{if(_8db=="background-position"){return dojo.style(node,"backgroundPosition",_8dc);}else{throw "Unsupported dojo.html.setStyle call for style: "+_8db;}}},createNodesFromText:function(text){return dijit._Templated._createNodesFromText(text);},getElementsByClass:function(_8de,node,_8e0){var _8e1="."+_8de;if(_8e0){_8e1=_8e0+_8e1;}return dojo.query(_8e1,node);},getInnerWidth:function(node){return dojo._getBorderBox(node).w;},textContent:function(node,text){return d4.textContent(node,text);}};dojo.json={serialize:function(obj){return dojo.toJson(obj);}};dojo.validate={isEmailAddress:function(_8e6,_8e7){var re=new RegExp("^.+@([0-9a-zA-Z])+\\.[0-9a-zA-Z\\.]+$","i");return re.test(_8e6);}};dojo.string.escape=function(type,str,_8eb){if(type=="xml"||type=="html"){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_8eb){str=str.replace(/'/gm,"&#39;");}return str;}else{throw "Unsupported type for dojo.string.escape: "+type;}};dojo.io.bind=function(args){if(args.postContent){args.postData=args.postContent;}if(args.mimetype){var mt=args.mimetype;var _8ee=null;if(mt=="text/xml"){_8ee="xml";}else{if(mt=="application/json"||mt=="text/json"){_8ee="json";}}args.handleAs=_8ee;}if(args.timeoutSeconds){args.timeout=args.timeoutSeconds*1000;}if(args.jsonParamName){args.callbackParamName=args.jsonParamName;}if(args.error){var _8ef=args.error;args.error=function(data,_8f1){_8ef("error",data,_8f1.xhr);};}if(args.load){var _8f2=args.load;args.load=function(data,_8f4){_8f2("load",data,_8f4.xhr);};}if(args.handle){var _8f5=args.handle;args.handle=function(data,_8f7){var type="load";if(data instanceof Error){type="error";if(data.dojoType=="timeout"){type="timeout";}}_8f5(type,data,_8f7.xhr);};}if(args.transport=="ScriptSrcTransport"){return dojo.io.script.get(args);}else{if(args.postData){return dojo.rawXhrPost(args);}else{if(args.method&&args.method.toLowerCase()=="post"){return dojo.xhrPost(args);}else{return dojo.xhrGet(args);}}}};d4.oldRequire=dojo.require;var _8f9="dojo.io.*|dojo.lang.*|dojo.dom.*|dojo.widget.*|dojo.widget.Slider|dojo.json|dojo.io.ScriptSrcIO|dojo.validate.*|dojo.widget.FloatingPane|";dojo.require=function(){if(_8f9.indexOf(arguments[0]+"|")==-1){return d4.oldRequire.apply(dojo,arguments);}else{console.warn("WARNING: Trying to load invalid resource: "+arguments[0]);}};})();}if(!dojo._hasResource["aol.common.Util"]){dojo._hasResource["aol.common.Util"]=true;dojo.provide("aol.common.Util");aol.common.Util={};dojo.declare("aol.common.Util.HoverTimer",null,{constructor:function(_8fa,_8fb,_8fc){this.hoverDelay=_8fa;this.callback=_8fb;this.state=_8fc;},connect:function(_8fd){this.triggerNode=_8fd;this.mouseOverConnect=dojo.connect(_8fd,"onmouseover",this,"onTriggerMouseOver");},disconnect:function(){this.cancelTimer();dojo.disconnect(this.mouseMoveConnect);dojo.disconnect(this.mouseOverConnect);},onTriggerMouseOver:function(evt){if(this.completionTimer==null){this.mouseMoveConnect=dojo.connect(dojo.body(),"onmousemove",this,"onMouseMove");this.completionTimer=aol.common.d4.setTimeout(this,"onTimer",this.hoverDelay);}},onMouseMove:function(evt){if(!dojo.isDescendant(evt.target,this.triggerNode)){this.cancelTimer();dojo.disconnect(this.mouseMoveConnect);}},onTimer:function(){dojo.disconnect(this.mouseMoveConnect);this.completionTimer=null;this.callback(this.state);},cancelTimer:function(){if(this.completionTimer){clearTimeout(this.completionTimer);this.completionTimer=null;}}});aol.common.Util.addHoverClass=function(elem,_901,_902){if(!this.hoverHandler){this.hoverHandler=new this.HoverHandler((_901||"hover"),arguments.length==3?_902:null);}dojo.connect(elem,"onmouseover",this.hoverHandler,"mouseOver");dojo.connect(elem,"onmouseout",this.hoverHandler,"mouseOut");};aol.common.Util.HoverHandler=function(_903,_904){this.className=_903;this.callBack=_904;this.mouseOver=function(evt){var _906=evt.fromElement||evt.relatedTarget;var elem=evt.currentTarget;if(dojo.isDescendant(_906,elem)){return;}dojo.addClass(elem,this.className);if(this.callBack){this.callback("mouseover");}};this.mouseOut=function(evt){var _909=evt.toElement||evt.relatedTarget;var elem=evt.currentTarget;if(dojo.isDescendant(_909,elem)){return;}dojo.removeClass(elem,this.className);if(this.callBack){this.callback("mouseout");}};};aol.common.Util.placeHoverBubble=function(_90b,_90c,_90d){var _90e=dojo._docScroll();var view=dijit.getViewport();var _910=dojo.coords(_90c);var _911=dojo._getBorderBox(_90c);var _912=dojo._getBorderBox(_90b);var _913=_910.y+_911.h+_90d.y;var _914=(_913<view.h-_912.h);if(!_914){_913=_910.y-_90d.y-_912.h;}var _915=_910.x+_90d.x;var _916=(_915<view.w-_912.w);_913+=_90e.y;_90b.style.top=_913+"px";_90b.style.left=_915+"px";};aol.common.Util.scriptLoader=function(url,_918,_919){dojo.io.script.get({url:url,handleAs:"javascript",checkString:"dojo.getObject('"+_918+"')",load:function(data,_91b){_919("load");},error:function(data,_91d){if(data instanceof Error&&data.dojoType=="timeout"){_919("timeout");}else{_919("error");}},timeout:30000});};aol.common.Util.styleLoader=function(url){var node=document.createElement("link");node.type="text/css";node.rel="stylesheet";node.href=url;document.getElementsByTagName("head")[0].appendChild(node);return node;};aol.common.Util.getCssPath=function(file){return aol.my.Environment.getCdnPath()+"/locale/"+aol.my.Environment.getLocale()+"/"+aol.my.Environment.getBrand()+"/css/"+file+".css";};aol.common.Util.escapeXmlChars=function(str){return str.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");};aol.common.Util.unescapeXmlChars=function(str){str=str.replace(/\&amp\;/g,"&");str=str.replace(/\&gt\;/g,">");str=str.replace(/\&lt\;/g,"<");str=str.replace(/\&apos\;/g,"'");str=str.replace(/\&quot\;/g,"\"");return str;};aol.common.Util.replaceArgs=function(str,_924){if(typeof (_924)=="undefined"){_924=[];}if(typeof (_924)!="object"||_924.constructor!=Array){throw new Error("aol.common.Util.replaceArgs: aReplace must be an Array");}if(_924.length>9){throw new Error("replace array is too long -- cannot exceed 9 elements");}if(_924.length>0){var _925=[];var _926=0,end=0,_928=0;while((end=str.indexOf("%",_926))!=-1){end++;var _929=parseInt(str.charAt(end));if(isNaN(_929)){_925.push(str.substring(_926,++end));}else{if(_929>_924.length){_928=_929>_928?_929:_928;_925.push(str.substring(_926,++end));console.debug("WARNING: replaceArgs - \""+str+"\" - token \"%"+_929+"\" found, no matching elem in aReplace:",_924);}else{_928=_929>_928?_929:_928;_925.push(str.substring(_926,end-1));_925.push(_924[_929-1]);end++;}}_926=end;}if(_926<str.length){_925.push(str.substr(_926));}if(_928<_924.length){console.debug("WARNING: replaceArgs - \""+str+"\" - contains fewer tokens than elems in aReplace:",_924);}return _925.join("");}return str;};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"");};aol.common.Util.getUrlParam=function(name){var _92b=location.search.substring(1);var _92c=_92b.split("&");var _92d;for(var i=0;i<_92c.length;i++){_92d=_92c[i].split("=");if(_92d[0]==name){return unescape(_92d[1]);}}return null;};aol.common.Util.buildUrlFromParams=function(_92f,base){var a=[];for(var i in _92f){a.push("&amp;");a.push(i);a.push("=");a.push(_92f[i]);}a.shift();a.unshift("?");if(typeof (base)=="string"){a.unshift(base);}return a.join("");};aol.common.Util.buildHtmlFromObj=function(tag,obj,_935){var a=[];a.push(tag);for(var i in obj){var tmp=[];tmp.push(i);tmp.push("=\"");tmp.push(obj[i]);tmp.push("\"");a.push(tmp.join(""));}return "<"+a.join(" ")+((_935)?"/>":">");};aol.common.Util.hideSelects=function(){if(dojo.isIE==6){dojo.forEach(document.getElementsByTagName("select"),function(_939){_939.style.visibility="hidden";});}};aol.common.Util.showSelects=function(){if(dojo.isIE==6){dojo.forEach(document.getElementsByTagName("select"),function(_93a){_93a.style.visibility="visible";});}};aol.common.Util.getAdsObjectTagWMode=function(_93b){var _93c=_93b.getElementsByTagName("iframe");if(_93c.length!=1){return 0;}var _93d=_93c[0].contentWindow.document;var obj=_93d.getElementsByTagName("object");if(obj.length!=1){return 0;}var _93f=obj[0].getElementsByTagName("param");for(var i=0;i<_93f.length;i++){if(_93f[i].name&&_93f[i].value&&_93f[i].name.toLowerCase()=="wmode"){if(_93f[i].value.toLowerCase()=="window"){return 1;}else{return 0;}}}return 1;};aol.common.Util.timer=function(msg){var init=new Date();this.stop=function(){var _943=(new Date()).getTime()-init.getTime();console.debug("dumping time (ms):",_943,msg);return _943;};};aol.common.Util.lazyLoad=function(){if(!g_hasCssCookie){var url=aol.common.Util.getCssPath("default");aol.common.Util.styleLoader(url);g_currentTheme=aol.my.ThemeManager.getCurrentTheme();url=aol.common.Util.getCssPath(g_currentTheme);var node=aol.common.Util.styleLoader(url);node.title=g_currentTheme;dojo.cookie("MYAOL_CSS","true",{expires:365});}};aol.common.Util.getDomain=function(_946,_947){_946=_946||aol.my.Environment.getLocale();_947=_947||aol.my.Environment.getBrand();if(_947=="aol"){_947="hp-consumer";}location.href="http://"+_947+"."+aol.my.Constants.domainMap[_946+"_domain"];};aol.common.Util.ClickHandler={handlers:[],init:function(){var ctx=this;dojo.event.connect(document,"onclick",function(evt){for(var i=0;i<ctx.handlers.length;i++){(ctx.handlers[i])(evt);}});},addHandler:function(cb){this.handlers.push(cb);}};aol.common.Util.ClickHandler.init();aol.common.Util.isEmptyObj=function(obj){for(var i in obj){if(obj.hasOwnProperty(i)){return false;}}return true;};}if(!dojo._hasResource["aol.my.ad.Quigo"]){dojo._hasResource["aol.my.ad.Quigo"]=true;dojo.provide("aol.my.ad.Quigo");aol.my.ad.quigoCBs={};dojo.declare("aol.my.ad.Quigo",null,{maxNumOfAds:5,constructor:function(node,_94f,_950){this.containerNode=node;this.callbackFuncId=_94f;dojo.io.script.get({url:g_quigoAds.jsonpUrl+"?c=aol.my.ad.quigoCBs['cb"+this.callbackFuncId+"']&k=my.aol.com&type=0&ps=-1&nb=1&pid="+g_quigoAds.pid+"&placementId="+_950+"&referrer="+location.host,preventCache:true});aol.my.ad.quigoCBs["cb"+this.callbackFuncId]=dojo.hitch(this,"callback");},callback:function(_951){delete aol.my.ad.quigoCBs["cb"+this.callbackFuncId];var _952=_951.response;if(_952.statusCode=="200"&&_952.data){for(var i=0;i<_952.data.numResults;i++){this.insert(_952.data.listing[i].title,_952.data.listing[i].description,_952.data.listing[i].targetUrl);}}},insert:function(_954,desc,url){this.quigoNode=document.createElement("div");dojo.addClass(this.quigoNode,"quigoAdsGadget");this.quigoNode.innerHTML="<div>"+"<span style='font-weight:bold;'>"+aol.my.App.getLocalizedString("Sponsored Links GADGET")+"</span><p class='p'/><a target='_blank' href='"+url+"'>"+_954+"</a><br /><span onClick='window.open(\""+url+"\");' class='descLink'>"+desc+"</span>"+"</div>";this.containerNode.appendChild(this.quigoNode);dojo.publish("/aol.event.ad.quigo.gadget",[this.quigoNode]);}});}if(!dojo._hasResource["aol.my.ad.Canvas"]){dojo._hasResource["aol.my.ad.Canvas"]=true;dojo.provide("aol.my.ad.Canvas");dojo.declare("aol.my.ad.Canvas",null,{constructor:function(_957,_958){var _959=Math.floor(Math.random()*1000000);var url=decodeURIComponent(this.gup(_958,"url"));url=url.replace(/[^\/]*\.xml/,"ad.html?"+"noCache="+_959.toString());_957.innerHTML="<iframe width=\"304\" height=\"450\" frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\" src=\""+url+"\"></iframe>";},gup:function(url,name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var _95d="[\\?&]"+name+"=([^&#]*)";var _95e=new RegExp(_95d);var _95f=_95e.exec(url);if(_95f==null){return "";}return _95f[1];}});}if(!dojo._hasResource["aol.common.Gadget"]){dojo._hasResource["aol.common.Gadget"]=true;dojo.provide("aol.common.Gadget");dojo.declare("aol.common.Gadget",null,{IFRAME_PREFIX:"ifr",SUPPORTED_VIEWS:{"default":null,"profile":null,"canvas":null,"flyout":null},TYPE:"gadget",constructor:function(_960){if(typeof (_960)=="object"){var _961=aol.my.ModuleManager.getModuleInstance(_960.id);if(_961!=undefined){_961.refreshGadget();return null;}for(var name in _960){if(_960.hasOwnProperty(name)){this[name]=_960[name];}}}else{throw new Error("object expected - \"params\" is of bad type: "+typeof (_960));}if(!_960.id||typeof (_960.id)!="string"){throw new Error("string expected - \"params.id\" is of bad type: "+typeof (_960.id));}if(!_960.specUrl||typeof (_960.specUrl)!="string"){dojo.debug("string expected - \"params.specUrl\" is of bad type: "+typeof (_960.specUrl));this.widgetError=aol.my.Constants.GADGET_STATUS_UNAVAILABLE;return;}if(!_960.metaData||typeof (_960.metaData)!="object"){this.widgetError=aol.my.Constants.GADGET_STATUS_UNAVAILABLE;return;}this.adminData=this.metaData.gadgetAdminData;this.statusCode=aol.my.Environment.getGadgetStatus(this.id);if(this.statusCode==aol.my.Constants.GADGET_STATUS_SUSPENDED||this.statusCode==aol.my.Constants.GADGET_STATUS_SOFT_DELETED){this.widgetError=this.statusCode;return;}this.userPrefs=new aol.common.GadgetUserPrefsStore(this.userPrefs,this.metaData);this.title=this._getTitle();this.moduleName=this.id;this.gadgetId=this.id;this.lockedDomain=this._getLockedDomain();this.specVersion=1;this.rpcRelay=aol.my.Environment.getRpcRelay();this.serverBase=aol.my.Environment.getGrsBaseUrl(this.lockedDomain);this.noCache=typeof (this.noCache)=="undefined"?aol.my.Environment.getNoCache():this.noCache;this.country=typeof (this.country)=="undefined"?aol.my.Environment.getCountry().toLowerCase():this.country;this.lang=typeof (this.lang)=="undefined"?aol.my.Environment.getLang().toLowerCase():this.lang;this.brand=aol.my.Environment.getBrand();this.locale=aol.my.Environment.getLocale();this.gadgetType=null;this.gadgetData=null;this.mainNode=dojo.byId(this.gadgetId);this.headerNode=dojo.query(".mHeader",this.mainNode)[0];this.titleNode=dojo.query(".mTitle",this.headerNode)[0];this.toggleNode=dojo.query(".mToggle",this.headerNode)[0];this.contentNode=dojo.query(".mContent",this.mainNode)[0];this.viewNode=dojo.query(".view",this.contentNode)[0];if(this.title){this.setTitle(this.title);}var _963=this.initIframe();this.contentId="content_"+this.gadgetId;this.contentNode.id=this.contentId;this.loadedAsMinimized=false;this.isDisplayed=true;if(dojo.hasClass(this.toggleNode,"min")){this.loadedAsMinimized=true;this.collapse(false);}this.isCanvasSupported=this._hasView("canvas");this.refreshNode=document.createElement("div");this.refreshNode.className="mRefresh";this.refreshIconNode=document.createElement("div");this.refreshIconNode.title=aol.my.App.getLocalizedString("refresh");this.refreshIconNode.className="refreshIcon";this.headerNode.appendChild(this.refreshNode);this.refreshNode.appendChild(this.refreshIconNode);if(!_963){this.refreshNode.className="mRefresh disable";}else{var _964=dojo.connect(this.refreshNode,"onclick",this,"refreshGadget");var _965=dojo.connect(this.refreshNode,"onmouseover",this,"refreshOver");var _966=dojo.connect(this.refreshNode,"onmouseout",this,"refreshOut");}this.optionNode=document.createElement("div");this.optionNode.className="mOption";this.optionIconNode=document.createElement("div");this.optionIconNode.title=aol.my.App.getLocalizedString("options");this.optionIconNode.className="optionIcon";this.headerNode.appendChild(this.optionNode);this.optionNode.appendChild(this.optionIconNode);if(!this.userPrefs.hasVisiblePrefs()){this.optionNode.className="mOption disable";}else{dojo.connect(this.optionNode,"onclick",this,"editHandler");dojo.connect(this.optionNode,"onmouseover",this,"editOver");dojo.connect(this.optionNode,"onmouseout",this,"editOut");}this.fullViewNode=document.createElement("div");this.fullViewNode.className="mFullView";this.fullViewIconNode=document.createElement("div");this.fullViewIconNode.title=aol.my.App.getLocalizedString("maximize");this.fullViewIconNode.className="fullViewIcon";this.headerNode.appendChild(this.fullViewNode);this.fullViewNode.appendChild(this.fullViewIconNode);if(this.isCanvasSupported&&this.adminData.adminFlags.enableCanvas){var _967=dojo.connect(this.fullViewNode,"onclick",this,"openFullView");var _968=dojo.connect(this.fullViewNode,"onmouseover",this,"fullViewOver");var _969=dojo.connect(this.fullViewNode,"onmouseout",this,"fullViewOut");this.isFullViewEnabled=true;}else{this.fullViewNode.className="mFullView disable";this.isFullViewEnabled=false;}this.closeNode=document.createElement("div");var _96a="<div class=\"ModuleT_closeIcon\" title=\""+aol.my.App.getLocalizedString("Delete")+"\" ></div>";this.closeNode.innerHTML=_96a;dojo.addClass(this.closeNode,"mClose");this.headerNode.appendChild(this.closeNode);dojo.connect(this.closeNode,"onclick",this,"close");dojo.connect(this.closeNode,"onmouseover",this,"closeMOver");dojo.connect(this.closeNode,"onmouseout",this,"closeMOut");dojo.connect(this.toggleNode,"onclick",this,"toggle");this.SUPPORTED_VIEWS["default"]=this.openDefaultView;this.SUPPORTED_VIEWS["profile"]=this.openDefaultView;this.SUPPORTED_VIEWS["canvas"]=this.openCanvasView;this.SUPPORTED_VIEWS["flyout"]=this.openFlyoutView;if(!this.adminData.adminFlags.enableQuigo&&!myaolcfg.disableAds&&this.adminData.placementID!=""){this.quigo=new aol.my.ad.Quigo(aol.common.d4.getFirstChildElement(this.mainNode),this.mainNode.id,this.adminData.placementID);}},refreshGadget:function(){dojo.publish("/aol.event.gadget.refresh",[this.title,(arguments&&arguments.length==1)]);if(typeof (this.iframeNode)!="undefined"){this.contentNode.removeChild(this.iframeNode);this.iframeNode=undefined;}this.initIframe();},render:function(){},refreshOver:function(){dojo.addClass(this.refreshNode,"over");},refreshOut:function(){dojo.removeClass(this.refreshNode,"over");},editOver:function(){dojo.addClass(this.optionNode,"over");},editOut:function(){dojo.removeClass(this.optionNode,"over");},fullViewOver:function(){dojo.addClass(this.fullViewNode,"over");},fullViewOut:function(){dojo.removeClass(this.fullViewNode,"over");},closeMOver:function(){dojo.addClass(this.closeNode,"over");},closeMOut:function(){dojo.removeClass(this.closeNode,"over");},handleLogin:function(){dojo.publish("/aol.event.LoginRequired");},openDefaultView:function(){this.closeFullView();},openFlyoutView:function(){alert("hi there, fancy yourself here in flyout view. cheerio for now!");},openCanvasView:function(){if(this.adminData.adminFlags.enableCanvas){this.openFullView();}},openFullView:function(){this.nodes={};if(!this.userPrefs.validate()){console.debug("Debug: Gadget cannot be displayed until all required settings are provided: "+this.specUrl);return;}var _96b=dijit.getViewport();var _96c=dojo.query("select",this.contentNode);for(var x=0;x<_96c.length;x++){_96c[x].style.visibility="hidden";}dojo.publish("/aol.event.gadget.CanvasView",[this.title]);document.body.scroll="no";document.body.style.height=_96b.h+"px";document.body.style.width=_96b.w+"px";document.body.style.overflow="hidden";var _96e=this.titleNode.innerHTML;var _96f=_96b.w;var _970=_96b.h;dojo.query("#uberTabContainer",document.body)[0].style.display="none";var _971=document.createElement("div");_971.style.position="absolute";_971.style.top="0px";_971.style.left="0px";_971.style.width="100%";_971.style.height="100%";_971.className="fullViewBlocker";document.body.appendChild(_971);var _972=document.createElement("div");_972.style.position="absolute";_972.style.top="0px";_972.style.left="0px";_972.style.width="100%";_972.style.height="100%";_972.className="fullView module";document.body.appendChild(_972);var _973=document.createElement("div");_973.className="inner";_973.style.width=(_96f-30).toString()+"px";_973.style.height=(_970-30).toString()+"px";_972.appendChild(_973);var _974=document.getElementById("moduleTemplate").cloneNode(true);_973.appendChild(_974);var _975=dojo.query(".mTitle",_974)[0];_975.innerHTML=_96e;var _976=dojo.query(".mContent",_974)[0];var _96b=dijit.getViewport();var _977=dojo.query(".mHeader",_974)[0];var _978=document.createElement("div");var _979="<div class=\"ModuleT_closeIcon\" title=\""+aol.my.App.getLocalizedString("minimize")+"\" ></div>";_978.innerHTML=_979;dojo.addClass(_978,"mClose");_977.appendChild(_978);dojo.connect(_978,"onclick",this,"closeFullView");dojo.connect(_978,"onmouseover",this,"closeMOver");dojo.connect(_978,"onmouseout",this,"closeMOut");_976.innerHTML=aol.common.Util.buildHtmlFromObj("iframe",{"frameborder":"no","src":this.getIframeUrl("canvas"),"class":"view","name":this.getIframeDomId(),"id":this.getIframeDomId(),"width":(_96f-46).toString(),"height":(_970-76).toString()},true);if(this.specUrl.indexOf("gd/feedReader")!=-1&&this.adminData.adminFlags.enableAdInCanvas){var _97a=document.createElement("div");_97a.className="canvasAdDiv";_976.appendChild(_97a);var _97b=document.createElement("div");_97b.className="adTitle";_97b.innerHTML=aol.my.App.getLocalizedString("ADVERTISEMENT");_97a.appendChild(_97b);var _97c=document.createElement("div");_97a.appendChild(_97c);var _97d=dojo.query("iframe",_976)[0];_97d.style.width=(_96f-380)+"px";_97d.width=(_96f-380);if(dojo.isIE){_97d.style.styleFloat="left";}else{_97d.style.cssFloat="left";}if((_970-76)<480){document.body.scroll="";document.body.style.height="";document.body.style.width="";document.body.style.overflow="";_97d.style.height="480px";_97d.height=480;_973.style.height="540px";_972.style.height="570px";_971.style.height="570px";}new aol.my.ad.Canvas(_97c,this.getIframeUrl("canvas"));}window.scrollTo(0,0);},resizeView:function(){var _97e=dijit.getViewport();var _97f=_97e.w;var _980=_97e.h;var _981=dojo.query(".fullView .inner",document.body)[0];_981.style.width=(_97f-30).toString()+"px";_981.style.height=(_980-30).toString()+"px";var _982=dojo.query(".fullView .inner iframe",document.body)[0];_982.width=(_97f-46);_982.style.width=(_97f-46).toString()+"px";_982.height=(_980-70);_982.style.height=(_980-70).toString()+"px";_982.style.overflowX="hidden";_982.border="1";},closeFullView:function(){var _983=dojo.query("select",this.contentNode);for(var x=0;x<_983.length;x++){_983[x].style.visibility="visible";}var _985=dojo.query(".fullViewBlocker",document.body)[0];_985.parentNode.removeChild(_985);var _986=dojo.query(".fullView",document.body)[0];_986.parentNode.removeChild(_986);window.onresize=null;document.body.scroll="";document.body.style.height="";document.body.style.width="";document.body.style.overflow="";this.refreshGadget();dojo.query("#uberTabContainer",document.body)[0].style.display="";},collapse:function(_987){this.isDisplayed=false;var anim=dojo.fx.wipeOut({node:this.contentNode,duration:300});anim.play();dojo.addClass(this.toggleNode,"min");if(_987){aol.startpage.ServerAPI.toggleWidget(this.gadgetId,true,function(_989){return {code:0};});}},expand:function(_98a,_98b){this.isDisplayed=true;var anim=dojo.fx.wipeIn({node:this.contentNode,duration:300});anim.play();dojo.removeClass(this.toggleNode,"min");if(this.loadedAsMinimized&&!this.isLoaded){this.refreshGadget();this.isLoaded=true;}dojo.publish("/aol.event.ModuleMaximized",[this.gadgetId]);if(_98a){aol.startpage.ServerAPI.toggleWidget(this.gadgetId,false,function(_98d){return {code:0};});}},toggle:function(_98e){this.isDisplayed=(dojo.getComputedStyle(this.contentNode).display!="none");var anim;if(typeof (_98e)=="boolean"){if((_98e&&!this.isDisplayed)||(!_98e&&this.isDisplayed)){return;}if(_98e){this.collapse(true);}else{this.expand(true);}}else{if(this.isDisplayed){this.collapse(true);}else{this.expand(true);}}},close:function(evt){dojo.publish("/aol.event.module.delete",[{type:this.gadgetType,id:this.gadgetId}]);var ctx=this;if(!dojo.isIE){var anim=dojo.fx.wipeOut({node:this.mainNode,duration:300,onEnd:function(){dojo._destroyElement(ctx.mainNode);aol.my.ModuleManager.removeModule(ctx);}});anim.play();}else{dojo._destroyElement(ctx.mainNode);aol.my.ModuleManager.removeModule(ctx);}aol.startpage.ServerAPI.deleteWidget(this.gadgetId,function(_993){if(_993=="success"){return {code:0};}else{console.debug("ERROR deleting module");return {code:-2};}});},edit:function(evt){},prepareEdit:function(){if(!this.editControlsNode){this.saveNode=document.createElement("input");this.saveNode.type="button";this.saveNode.value=aol.my.App.getLocalizedString("Save");dojo.addClass(this.saveNode,"save");this.cancelNode=document.createElement("input");this.cancelNode.type="button";this.cancelNode.value=aol.my.App.getLocalizedString("Cancel");dojo.addClass(this.cancelNode,"cancel");this.editControlsNode=document.createElement("div");dojo.addClass(this.editControlsNode,"mEditControls");this.editControlsNode.appendChild(this.saveNode);this.editControlsNode.appendChild(this.cancelNode);this.contentNode.appendChild(this.editControlsNode);dojo.connect(this.saveNode,"onclick",this,"handleSave");dojo.connect(this.cancelNode,"onclick",this,"handleCancel");}},openEdit:function(){this.prepareEdit();dojo.addClass(this.viewNode,"mViewHide");dojo.addClass(this.editNode,"mEditOpen");dojo.addClass(this.editControlsNode,"mEditControlsOpen");dojo.publish("/aol.event.module.edit",[this.gadgetType]);},closeEdit:function(){dojo.removeClass(this.editNode,"mEditOpen");dojo.removeClass(this.viewNode,"mViewHide");dojo.removeClass(this.editControlsNode,"mEditControlsOpen");},registerHandler:function(_995,_996){if("save"==_995){this.saveHandler=_996;}else{if("cancel"==_995){this.cancelHandler=_996;}}},handleSave:function(evt){if(this.saveHandler){try{var _998=this.saveHandler(this.contentId);if(_998){this.closeEdit();}else{console.debug("do nothing, the handler canceled the action");}}catch(ex){console.debug("ERROR: problem with module saveHandler",ex);}}},handleCancel:function(evt){if(this.cancelHandler){try{var _99a=this.cancelHandler(this.contentId);if(_99a){this.closeEdit();}else{console.debug("do nothing, the handler canceled the action");}}catch(ex){console.debug("ERROR: problem with module cancelHandler",ex);}}},disableButton:function(_99b){if(_99b=="save"){this.saveNode.disabled=true;}else{this.cancelNode.disabled=true;}},enableButton:function(_99c){if(_99c=="save"){this.saveNode.disabled=false;}else{this.cancelNode.disabled=false;}},setTitle:function(_99d){_99d=aol.common.Util.escapeXmlChars(_99d);dojo.query(".mTitle",this.headerNode)[0].innerHTML=_99d;},editHandler:function(evt){dojo.publish("/aol.event.gadget.manualEdit",[this]);var _99f=document.createElement("div");this.editContainerNode=_99f;_99f.className="mEdit";this._cancelEditMode();if(this.contentNode.firstChild!=null){this.contentNode.insertBefore(_99f,this.contentNode.firstChild);}else{this.contentNode.appendChild(_99f);}this._populateEditMode();var _9a0=document.createElement("div");_9a0.className="buttonBlock";_99f.appendChild(_9a0);var _9a1=document.createElement("input");_9a1.type="button";_9a1.title=aol.my.App.getLocalizedString("Save");_9a1.value=aol.my.App.getLocalizedString("Save");dojo.connect(_9a1,"onclick",this,"_saveEditMode");_9a0.appendChild(_9a1);var _9a2=document.createElement("input");this.editModeCancelButton=_9a2;_9a2.type="button";_9a2.title=aol.my.App.getLocalizedString("Cancel");_9a2.value=aol.my.App.getLocalizedString("Cancel");dojo.connect(_9a2,"onclick",this,"_cancelEditMode");_9a0.appendChild(_9a2);if(!this.userPrefs.validate()){this.editModeCancelButton.style.display="none";}if(typeof (this.iframeNode)!="undefined"){this.iframeNode.style.display="none";}},_populateEditMode:function(){var _9a3=this.userPrefs.getUserPrefsArray();for(var x=0;x<_9a3.length;x++){var _9a5=this.userPrefs.getUserPref(_9a3[x]);if(_9a5.type=="string"){this.editContainerNode.appendChild(this._createStringInputNode(_9a5.name,_9a5.displayName,_9a5.required,_9a5.value));}else{if(_9a5.type=="bool"){this.editContainerNode.appendChild(this._createBooleanInputNode(_9a5.name,_9a5.displayName,_9a5.required,_9a5.value));}else{if(_9a5.type=="enum"){this.editContainerNode.appendChild(this._createEnumInputNode(_9a5.name,_9a5.displayName,_9a5.required,_9a5.options,_9a5.values,_9a5.value));}else{if(_9a5.type=="list"){this.editContainerNode.appendChild(this._createListInputNode(_9a5.name,_9a5.displayName,_9a5.required,_9a5.value));}}}}}},_saveEditMode:function(){dojo.publish("/aol.event.module.save",[this.title]);var _9a6=dojo.query(".userPref",this.editContainerNode);for(var x=0;x<_9a6.length;x++){var _9a8=_9a6[x];var name=_9a8.getAttribute("name");var _9aa=this.userPrefs.getUserPref(name);if(_9a8.className.indexOf("string")>=0){_9aa.value=_9a8.getElementsByTagName("input")[0].value;}else{if(_9a8.className.indexOf("boolean")>=0){var _9ab=_9a8.getElementsByTagName("input")[0];_9aa.value=_9ab.checked;}else{if(_9a8.className.indexOf("enum")>=0){var _9ac=_9a8.getElementsByTagName("select")[0];_9aa.value=_9ac.options[_9ac.selectedIndex].value;}else{if(_9a8.className.indexOf("list")>=0){var _9ad=dojo.query(".entry span",_9a8);var _9ae=[];for(var z=0;z<_9ad.length;z++){var _9b0=_9ad[z].innerHTML;_9ae.push(_9b0);}_9aa.value=_9ae;}}}}}this.saveUserPrefsToServer(true);},_cancelEditMode:function(){if(typeof (this.iframeNode)!="undefined"){this.iframeNode.style.display="";}if(dojo.query(".mEdit",this.contentNode).length>0){var _9b1=dojo.query(".mEdit",this.contentNode)[0];_9b1.parentNode.removeChild(_9b1);}},_createStringInputNode:function(name,_9b3,_9b4,_9b5){if(_9b3==null||_9b3.length==0){_9b3=name;}var _9b6=document.createElement("div");_9b6.className="userPref string";_9b6.setAttribute("name",name);var _9b7=document.createElement("span");_9b7.className="name";_9b7.appendChild(document.createTextNode(_9b3));_9b6.appendChild(_9b7);if(_9b4){var _9b8=document.createElement("span");_9b8.className="required";_9b8.appendChild(document.createTextNode("*"));_9b7.appendChild(_9b8);}var _9b9=document.createElement("input");_9b9.className="string";if(_9b5==null){_9b9.value="";}else{_9b9.value=_9b5;}_9b6.appendChild(_9b9);return _9b6;},_createBooleanInputNode:function(name,_9bb,_9bc,_9bd){if(_9bb==null||_9bb.length==0){_9bb=name;}if(_9bd==null){_9bd=false;}var _9be=document.createElement("div");_9be.className="userPref boolean";_9be.setAttribute("name",name);var _9bf=document.createElement("span");_9bf.className="name";_9bf.appendChild(document.createTextNode(_9bb));_9be.appendChild(_9bf);if(_9bc){var _9c0=document.createElement("span");_9c0.className="required";_9c0.appendChild(document.createTextNode("*"));_9bf.appendChild(_9c0);}var _9c1=document.createElement("input");_9c1.type="checkbox";_9c1.className="boolean";if(_9bd==true){_9c1.checked=true;}else{_9c1.checked=false;}_9be.appendChild(_9c1);return _9be;},_createEnumInputNode:function(name,_9c3,_9c4,_9c5,_9c6,_9c7){if(_9c3==null||_9c3.length==0){_9c3=name;}var _9c8=document.createElement("div");_9c8.className="userPref enum";_9c8.setAttribute("name",name);var _9c9=document.createElement("span");_9c9.className="name";_9c9.appendChild(document.createTextNode(_9c3));_9c8.appendChild(_9c9);if(_9c4){var _9ca=document.createElement("span");_9ca.className="required";_9ca.appendChild(document.createTextNode("*"));_9c9.appendChild(_9ca);}var _9cb=document.createElement("select");for(var x=0;x<_9c5.length;x++){var _9cd=_9c5[x].toString();if(/^\s*$/.test(_9cd)){continue;}var _9ce=document.createElement("option");_9ce.value=_9c6[x];_9ce.appendChild(document.createTextNode(_9c5[x]));if(_9c7!=null&&_9c7.length>0){if(_9c6[x]==_9c7){_9ce.selected=true;}}else{if(x==0){_9ce.selected=true;}}_9cb.appendChild(_9ce);}_9c8.appendChild(_9cb);return _9c8;},_createListInputNode:function(name,_9d0,_9d1,_9d2){if(_9d0==null||_9d0.length==0){_9d0=name;}var _9d3=document.createElement("div");_9d3.className="userPref list";_9d3.setAttribute("name",name);var _9d4=document.createElement("span");_9d4.className="name";_9d4.appendChild(document.createTextNode(_9d0));_9d3.appendChild(_9d4);if(_9d1){var _9d5=document.createElement("span");_9d5.className="required";_9d5.appendChild(document.createTextNode("*"));_9d4.appendChild(_9d5);}var _9d6=document.createElement("input");_9d6.type="text";_9d3.appendChild(_9d6);this.listInputNode=_9d6;var _9d7=document.createElement("input");_9d7.type="button";_9d7.className="button";_9d7.title="Add";_9d7.value="Add";dojo.connect(_9d7,"onclick",this,"_addToList");_9d3.appendChild(_9d7);var _9d8=document.createElement("div");_9d8.className="insertion";_9d3.appendChild(_9d8);this.listInsertionNode=_9d8;if(_9d2!=null){for(var x=0;x<_9d2.length;x++){if(_9d2[x]==null||_9d2[x].length==0){continue;}this._addToListCallback(_9d2[x]);}}return _9d3;},_addToList:function(){var _9da=this.listInputNode.value;this._addToListCallback(_9da);},_addToListCallback:function(_9db){if(_9db==null||_9db.length==0){return;}var _9dc=document.createElement("div");_9dc.className="entry";var _9dd=document.createElement("a");_9dd.className="delete ModuleT_closeIcon";_9dd.title="Delete";_9dd.innerHTML="&nbsp;";this.inputContainerNode=_9dc;dojo.connect(_9dd,"onclick",this,"_deleteFromList");_9dc.appendChild(_9dd);var _9de=document.createElement("span");_9de.innerHTML=_9db;_9dc.appendChild(_9de);this.listInsertionNode.appendChild(_9dc);},_deleteFromList:function(){this.inputContainerNode.parentNode.removeChild(this.inputContainerNode);},getNode:function(){return this.mainNode;},getIframeDomId:function(){return this.IFRAME_PREFIX+this.id;},getAdminData:function(){var d=this.adminData.adminFlags;return ((d.enableQuigo?1:0)+","+(d.enableCanvas?1:0)+","+(d.enableAdInCanvas?1:0));},getIframeUrl:function(view){view=(typeof (view)=="undefined")?this.getView():view;return this.serverBase+"?"+"container="+aol.my.Environment.getContainerName()+"&mid=0"+"&nocache="+this.noCache+"&country="+this.country+"&lang="+this.lang+"&view="+view+(this.specVersion?"&v="+this.specVersion:"")+"&view-params="+this._getAdditionalParamsString()+(aol.my.Environment.getEnvironmentUrl()?"&parent="+encodeURIComponent(aol.my.Environment.getEnvironmentUrl()):"")+(this.debug?"&debug=1":"")+this.getUserPrefsParams()+"&url="+encodeURIComponent(this.specUrl)+"&adminflags="+encodeURIComponent(this.getAdminData())+"#rpctoken="+this.rpcToken+"&st="+this.secureToken+(this.hashData?"&"+this.hashData:"");},getIframeMarkup:function(){return aol.common.Util.buildHtmlFromObj("iframe",{"scrolling":"no","frameborder":"no","src":this.getIframeUrl(),"class":"gadget","name":this.getIframeDomId(),"id":this.getIframeDomId()},true);},initIframe:function(){if(this.userPrefs.validate()){if(!this._iframeExists()){this.contentNode.innerHTML=this.getIframeMarkup();}this.iframeNode=dojo.query("iframe",this.contentNode)[0];this.setHeight(this._getPreferredHeight());this._bindRpc();return true;}else{this.editHandler();}return false;},getCountry:function(){return (this.locale.indexOf("_")==2?this.locale.substr(2):"");},getLang:function(){return (this.locale.indexOf("_")==2?this.locale.substr(0,2):"");},getView:function(){return "default";},getUserPrefsParams:function(){var _9e1="";var _9e2=this.userPrefs.getUserPrefs();for(var name in _9e2){var _9e4=this.userPrefs.getUserPref(name).value;if(typeof (_9e4)!="undefined"){_9e1+="&up_"+encodeURIComponent(name)+"="+encodeURIComponent(_9e4);}}return _9e1;},getUserPrefs:function(){return this.userPrefs.getUserPrefs();},getUserPref:function(name){return this.userPrefs.getUserPref(name);},setUserPref:function(name,_9e7){this.userPrefs.setUserPref(name,_9e7);this.saveUserPrefsToServer();},saveUserPrefsToServer:function(_9e8){_9e8=_9e8?true:false;var ctx=this;var _9ea=this.userPrefs.getSerializedUserPrefs();aol.startpage.ServerAPI.setModuleData(this.moduleName,_9ea,function(_9eb){if(_9eb=="success"){if(_9e8){if(window.location.href.indexOf("becool=1")>0){ctx.refreshGadget();}else{location.href=location.href;}}}else{alert(aol.my.App.getLocalizedString("There was an error saving your prefs, please try again."));}});},setHeight:function(_9ec){if(typeof (this.iframeNode)!="undefined"){this.iframeNode.style.height=_9ec+"px";}},requestNavigateTo:function(view,_9ee){this._setAdditionalParams(_9ee);if(this.SUPPORTED_VIEWS[view]){this.SUPPORTED_VIEWS[view].call(this);}else{throw new Error("Gadget "+this.id+", unsupported view: "+view);}},_setAdditionalParams:function(_9ef){this.additionalParams=_9ef;},_getAdditionalParams:function(){return this.additionalParams;},_getAdditionalParamsString:function(){if(this.additionalParams!=null){var str=dojo.toJson(this.additionalParams,true);if(str==null){return "";}else{return encodeURIComponent(str);}}else{return "";}},_iframeExists:function(){var ifr=dojo.query("iframe",this.contentNode)[0];return (ifr!=null);},_getTitle:function(){if(this.metaData["mp"]&&this.metaData["mp"]["title"]!=""){return this.metaData["mp"]["title"];}return " ";},_getPreferredHeight:function(){var _9f2=0;var _9f3=0;if(this.metaData["vp"]){for(var i in this.metaData["vp"]){if(i!="home"&&this.metaData["vp"][i]["preferredHeight"]>0){_9f3=this.metaData["vp"][i]["preferredHeight"];}}}if(this.metaData["mp"]&&this.metaData["mp"]["height"]>0){_9f2=this.metaData["mp"]["height"];}if(_9f3>0){return _9f3;}if(_9f2>0){return _9f2;}return aol.my.Environment.getGadgetDefaultIframeHeight();},_getLockedDomain:function(){if(this.metaData["ld"]&&typeof (this.metaData["ld"]["domain"])=="string"){return this.metaData["ld"]["domain"];}return undefined;},_hasView:function(view){if(this.metaData["vp"]){for(var i in this.metaData["vp"]){if(i.toLowerCase()==view){return true;}}}return false;},_bindRpc:function(){gadgets.Rpc.setRelayUrl(this.getIframeDomId(),this.rpcRelay);gadgets.Rpc.setAuthToken(this.getIframeDomId(),this.rpcToken);}});}if(!dojo._hasResource["aol.common.Module"]){dojo._hasResource["aol.common.Module"]=true;dojo.provide("aol.common.Module");dojo.declare("aol.common.Module",null,{TYPE:"modulet",refreshHandler:null,constructor:function(_9f7,_9f8,data){_9f7=(typeof (_9f7)=="undefined")?{}:_9f7;this.brand=aol.my.Environment.getBrand();this.locale=aol.my.Environment.getLocale();this.mainNode=dojo.byId(_9f8);this.moduleName=_9f8;this.moduleType=aol.my.Environment.getModuleType(_9f8);this.moduleData=this._unescapeData(data);this.transientData=null;this.moduleRef=null;this.runMethod=null;this.moduleSetInitComplete=false;this.basepath=_9f7.basepath;this.celeritas=_9f7.celeritas;this.moduleInit=this.mainNode.getAttribute("modulet:onload");if(this.moduleInit==null&&dojo.isSafari){this.moduleInit=this.mainNode.getAttribute("onload");}try{this.headerNode=dojo.query(".mHeader",this.mainNode)[0];this.titleNode=dojo.query(".mTitle",this.headerNode)[0];this.toggleNode=dojo.query(".mToggle",this.headerNode)[0];this.contentNode=dojo.query(".mContent",this.mainNode)[0];this.viewNode=dojo.query(".view",this.contentNode)[0];var _9fa=dojo.byId(_9f8+"-NeedAuth");if(_9fa!=undefined){dojo.addClass(this.viewNode,"mViewHide");_9fa.innerHTML=aol.my.App.getLocalizedString("In order to access your %1, you must sign in first, or sign up if you do not have an AOL screen name.",new Array(this.titleNode.innerHTML));var _9fb=document.createElement("div");dojo.addClass(_9fb,"button");var _9fc=document.createElement("button");_9fc.setAttribute("id","btn-"+_9f8);_9fc.innerHTML="Sign In";_9fb.appendChild(_9fc);_9fa.appendChild(_9fb);dojo.connect(_9fc,"onclick",this,"handleLogin");}this.editNode=dojo.query(".edit",this.contentNode)[0];this.contentId="content_"+this.moduleName;this.contentNode.id=this.contentId;this.loadedAsMinimized=false;this.isDisplayed=true;if(dojo.hasClass(this.toggleNode,"min")){this.loadedAsMinimized=true;this.collapse(false);}if(this.editNode){this.optionsNode=document.createElement("a");this.optionsNode.href="#";this.optionsNode.innerHTML=aol.my.App.getLocalizedString("options");dojo.addClass(this.optionsNode,"mOptions");this.headerNode.appendChild(this.optionsNode);dojo.connect(this.optionsNode,"onclick",this,"editHandler");}}catch(e){console.debug("Module does not exist.");}this.closeNode=document.createElement("div");var _9fd="<div class=\"ModuleT_closeIcon\" title=\""+aol.my.App.getLocalizedString("Delete")+"\" ></div>";this.closeNode.innerHTML=_9fd;dojo.addClass(this.closeNode,"mClose");this.headerNode.appendChild(this.closeNode);dojo.connect(this.closeNode,"onclick",this,"close");dojo.connect(this.closeNode,"onmouseover",this,"closeMOver");dojo.connect(this.closeNode,"onmouseout",this,"closeMOut");dojo.connect(this.toggleNode,"onclick",this,"toggle");},init:function(_9fe,_9ff){if(this.isInitialized){return;}this.isInitialized=true;this.moduleRef=_9fe;try{if(!this.moduleRef.isInitialized){var _a00=this.moduleRef.init(this.getModuleInitStr());this.runMethod=_a00.method;aol.my.ModuleManager.setDictionary(this.moduleType,_a00.dictionary);}}catch(ex){console.debug("WARNING: Module failed to load",ex);}if(!_9ff){if(myaolcfg.enableTimers){var TT=new aol.common.Util.timer(this.moduleName);}this.run("view");if(myaolcfg.enableTimers){TT.stop();}}},getModuleInitStr:function(){var init=this.moduleInit;return init.substr(0,init.indexOf("("));},isScriptless:function(){return (this.moduleInit=="");},run:function(_a03){_a03=(_a03)?_a03:"view";if(this.runMethod!=null){try{this.runMethod(this.contentId,_a03);}catch(ex){console.debug("WARNING: Module failed to load",ex);}}},setInitComplete:function(){this.moduleSetInitComplete=true;},getInitComplete:function(){return this.moduleSetInitComplete;},closeMOver:function(){dojo.addClass(this.closeNode,"closeOver");},closeMOut:function(){dojo.removeClass(this.closeNode,"closeOver");},handleLogin:function(){dojo.publish("/aol.event.LoginRequired");},_getNode:function(type){var node;if(!type){node=dojo.query(".body",this.viewNode)[0];}else{node=typeof (type)=="string"?dojo.query("."+type,this.viewNode)[0]:type;}return node;},setLoading:function(type){var node=this._getNode(type);var _a08=aol.my.Environment.getCdnPath();var _a09=_a08+"/"+"locale/"+this.locale+"/"+this.brand+"/images/loading.gif";node.innerHTML="<img src=\""+_a09+"\" alt=\"\" />";},clearLoading:function(type){var node=this._getNode(type);node.innerHTML="";},collapse:function(_a0c){this.isDisplayed=false;var anim=dojo.fx.wipeOut({node:this.contentNode,duration:300});anim.play();dojo.addClass(this.toggleNode,"min");if(_a0c){aol.startpage.ServerAPI.toggleWidget(this.moduleName,true,function(_a0e){return {code:0};});}},expand:function(_a0f,_a10){this.isDisplayed=true;var anim=dojo.fx.wipeIn({node:this.contentNode,duration:300});anim.play();dojo.removeClass(this.toggleNode,"min");if(this.loadedAsMinimized&&!this.isLoaded){if(arguments.length==2){this.run(_a10);}else{this.run("view");}this.isLoaded=true;}dojo.publish("/aol.event.ModuleMaximized",[this.moduleName]);if(_a0f){aol.startpage.ServerAPI.toggleWidget(this.moduleName,false,function(_a12){return {code:0};});}},toggle:function(_a13){this.isDisplayed=(dojo.getComputedStyle(this.contentNode).display!="none");var anim;if(typeof (_a13)=="boolean"){if((_a13&&!this.isDisplayed)||(!_a13&&this.isDisplayed)){return;}if(_a13){this.collapse(true);}else{this.expand(true);}}else{if(this.isDisplayed){this.collapse(true);}else{this.expand(true);}}},getPath:function(){return this.basepath;},getData:function(){return this.moduleData;},setData:function(data,cb){this.moduleData=data;aol.startpage.ServerAPI.setModuleData(this.moduleName,this._escapeData(data),function(_a17){cb({code:(_a17!="success"?-2:0),status:_a17});});},setSecureData:function(data,cb){this.moduleData=data;aol.startpage.ServerAPI.setSecureModuleData(this.moduleName,this._escapeData(data),function(_a1a){cb({code:(_a1a!="success"?-2:0),status:_a1a});});},getTransientData:function(){return this.transientData;},setTransientData:function(data){this.transientData=data;},reset:function(){console.debug("deprecated");this.run("view");},close:function(evt){var ctx=this;dojo.publish("/aol.event.module.delete",[{type:this.moduleType,id:this.moduleName}]);if(!dojo.isIE){var anim=dojo.fx.wipeOut({node:this.mainNode,duration:300,onEnd:function(){dojo._destroyElement(ctx.mainNode);aol.my.ModuleManager.removeModule(ctx);}});anim.play();}else{dojo._destroyElement(ctx.mainNode);aol.my.ModuleManager.removeModule(ctx);}aol.startpage.ServerAPI.deleteWidget(this.moduleName,function(_a1f){if(_a1f=="success"){return {code:0};}else{console.debug("ERROR deleting module");return {code:-2};}});},edit:function(evt){this.run("edit");},prepareEdit:function(){if(!this.editControlsNode){this.saveNode=document.createElement("input");this.saveNode.type="button";this.saveNode.value=aol.my.App.getLocalizedString("Save");dojo.addClass(this.saveNode,"save");this.cancelNode=document.createElement("input");this.cancelNode.type="button";this.cancelNode.value=aol.my.App.getLocalizedString("Cancel");dojo.addClass(this.cancelNode,"cancel");this.editControlsNode=document.createElement("div");dojo.addClass(this.editControlsNode,"mEditControls");this.editControlsNode.appendChild(this.saveNode);this.editControlsNode.appendChild(this.cancelNode);this.contentNode.appendChild(this.editControlsNode);dojo.connect(this.saveNode,"onclick",this,"handleSave");dojo.connect(this.cancelNode,"onclick",this,"handleCancel");}},openEdit:function(){this.prepareEdit();dojo.addClass(this.viewNode,"mViewHide");dojo.addClass(this.editNode,"mEditOpen");dojo.addClass(this.editControlsNode,"mEditControlsOpen");dojo.publish("/aol.event.module.edit",[this.moduleType]);},closeEdit:function(){dojo.removeClass(this.editNode,"mEditOpen");dojo.removeClass(this.viewNode,"mViewHide");dojo.removeClass(this.editControlsNode,"mEditControlsOpen");},registerHandler:function(_a21,_a22){if("save"==_a21){this.saveHandler=_a22;}else{if("cancel"==_a21){this.cancelHandler=_a22;}}},registerRefreshHandler:function(_a23){if(_a23){this.refreshHandler=_a23;}},refresh:function(){if(this.refreshHandler){this.refreshHandler(this.contentId);}else{this.run("view");}},handleSave:function(evt){dojo.publish("/aol.event.module.save",[this.moduleType]);if(this.saveHandler){try{var _a25=this.saveHandler(this.contentId);if(_a25){this.closeEdit();}else{console.debug("do nothing, the handler canceled the action");}}catch(ex){console.debug("ERROR: problem with module saveHandler",ex);}}},handleCancel:function(evt){if(this.cancelHandler){try{var _a27=this.cancelHandler(this.contentId);if(_a27){this.closeEdit();}else{console.debug("do nothing, the handler canceled the action");}}catch(ex){console.debug("ERROR: problem with module cancelHandler",ex);}}},disableButton:function(_a28){if(_a28=="save"){this.saveNode.disabled=true;}else{this.cancelNode.disabled=true;}},enableButton:function(_a29){if(_a29=="save"){this.saveNode.disabled=false;}else{this.cancelNode.disabled=false;}},setTitle:function(_a2a){_a2a.replace(/</g,"&lt;");_a2a.replace(/>/g,"&gt;");this.titleNode.innerHTML=_a2a;},editHandler:function(evt){dojo.publish("/aol.event.module.manualEdit",[this.moduleType]);evt.preventDefault();if(!this.isDisplayed){this.expand(true,"edit");}if(!dojo.hasClass(this.editNode,"mEditOpen")){this.run("edit");}else{console.debug("already in edit mode, do nothing");}},getNode:function(){return this.mainNode;},_escapeData:function(obj){if(typeof (obj)!="object"){console.debug("ERROR: module data must be an object!",typeof (obj),obj);return;}var _a2d={};for(var i in obj){if(typeof (obj[i])=="string"||typeof (obj[i])=="number"){_a2d[i]=escape(obj[i]);}else{console.debug("ERROR: module data can only be 1 level deep!",obj);return;}}return _a2d;},_unescapeData:function(obj){var _a30={};for(var i in obj){if(typeof (obj[i])=="string"){_a30[i]=unescape(obj[i]);}}return _a30;}});}if(!dojo._hasResource["aol.common.ErrorWidget"]){dojo._hasResource["aol.common.ErrorWidget"]=true;dojo.provide("aol.common.ErrorWidget");dojo.declare("aol.common.ErrorWidget",null,{TYPE:"error",constructor:function(_a32,_a33){if(typeof (_a32)=="object"){for(var name in _a32){if(_a32.hasOwnProperty(name)){this[name]=_a32[name];}}}else{throw new Error("object expected - \"params\" is of bad type: "+typeof (_a32));}if(!_a32.id||typeof (_a32.id)!="string"){throw new Error("string expected - \"params.id\" is of bad type: "+typeof (_a32.id));}if(_a33){this.statusCode=_a33;}else{this.statusCode=aol.my.Environment.getGadgetStatus(this.id);}this.moduleName=this.id;this.gadgetId=this.id;this.mainNode=dojo.byId(this.gadgetId);this.headerNode=dojo.query(".mHeader",this.mainNode)[0];this.titleNode=dojo.query(".mTitle",this.headerNode)[0];this.toggleNode=dojo.query(".mToggle",this.headerNode)[0];this.contentNode=dojo.query(".mContent",this.mainNode)[0];this.title=this._getTitle();this.message=this._getErrorForStatus();this.setHeader();this.setTitle(this.title);this.setView(this.message);},setTitle:function(_a35){if(!_a35){_a35=aol.my.App.getLocalizedString("An error occurred");}_a35=aol.common.Util.escapeXmlChars(_a35);this.titleNode.innerHTML=_a35;},setView:function(_a36){this.contentNode.innerHTML="";var _a37=document.createElement("div");dojo.addClass(_a37,"mErrorContent");var _a38=document.createElement("div");dojo.addClass(_a37,"mErrorMsg");_a38.innerHTML=_a36.shift();_a37.appendChild(_a38);for(var i in _a36){var _a3a=document.createElement("div");dojo.addClass(_a3a,"mErrorDetail");_a3a.innerHTML=_a36[i];_a37.appendChild(_a3a);}this.contentNode.appendChild(_a37);},setHeader:function(){this.refreshNode=document.createElement("div");this.refreshNode.className="mRefresh";this.refreshIconNode=document.createElement("div");this.refreshIconNode.title=aol.my.App.getLocalizedString("refresh");this.refreshIconNode.className="refreshIcon";this.headerNode.appendChild(this.refreshNode);this.refreshNode.appendChild(this.refreshIconNode);this.refreshNode.className="mRefresh disable";this.optionNode=document.createElement("div");this.optionNode.className="mOption";this.optionIconNode=document.createElement("div");this.optionIconNode.title=aol.my.App.getLocalizedString("options");this.optionIconNode.className="optionIcon";this.headerNode.appendChild(this.optionNode);this.optionNode.appendChild(this.optionIconNode);this.optionNode.className="mOption disable";this.fullViewNode=document.createElement("div");this.fullViewNode.className="mFullView";this.fullViewIconNode=document.createElement("div");this.fullViewIconNode.title=aol.my.App.getLocalizedString("maximize");this.fullViewIconNode.className="fullViewIcon";this.headerNode.appendChild(this.fullViewNode);this.fullViewNode.appendChild(this.fullViewIconNode);this.fullViewNode.className="mFullView disable";this.isFullViewEnabled=false;this.closeNode=document.createElement("div");var _a3b="<div class=\"ModuleT_closeIcon\" title=\""+aol.my.App.getLocalizedString("Delete")+"\" ></div>";this.closeNode.innerHTML=_a3b;dojo.addClass(this.closeNode,"mClose");this.headerNode.appendChild(this.closeNode);dojo.connect(this.closeNode,"onclick",this,"close");dojo.connect(this.closeNode,"onmouseover",this,"closeMOver");dojo.connect(this.closeNode,"onmouseout",this,"closeMOut");dojo.addClass(this.toggleNode,"disable");},closeMOver:function(){dojo.addClass(this.closeNode,"over");},closeMOut:function(){dojo.removeClass(this.closeNode,"over");},close:function(evt){var ctx=this;var anim=dojo.fx.wipeOut({node:this.mainNode,duration:300,onEnd:function(){dojo._destroyElement(ctx.mainNode);aol.my.ModuleManager.removeModule(ctx);}});anim.play();dojo.publish("/aol.event.module.delete",[{type:this.gadgetType,id:this.gadgetId}]);aol.startpage.ServerAPI.deleteWidget(this.gadgetId,function(_a3f){if(_a3f=="success"){return {code:0};}else{console.debug("ERROR deleting module");return {code:-2};}});},_getTitle:function(){if(this.metaData&&this.metaData["mp"]&&this.metaData["mp"]["title"]!=""){if(this.specUrl.indexOf("gd/feedReader")!=-1){return aol.common.d4.firstElement(this.headerNode).innerHTML;}return this.metaData["mp"]["title"];}return undefined;},_getErrorForStatus:function(){var _a40=[];if(this.statusCode==aol.my.Constants.GADGET_STATUS_SUSPENDED||this.statusCode==aol.my.Constants.GADGET_STATUS_SOFT_DELETED){if(!this.title){this.title=aol.my.App.getLocalizedString("Gadget Unavailable");_a40.push(aol.my.App.getLocalizedString("This gadget is no longer available in our system."));}else{_a40.push(aol.my.App.getLocalizedString("%1 is no longer available in our system.",[this.title]));}_a40.push(aol.my.App.getLocalizedString("You can remove it from your page by clicking the 'X' in the upper right corner."));_a40.push(aol.my.App.getLocalizedString("Visit our %1Gallery%2 to find new stuff to add to your page.",["<a href='/gallery/'>","</a>"]));}else{if(this.statusCode==aol.my.Constants.GADGET_STATUS_UNAVAILABLE){this.title=aol.my.App.getLocalizedString("Gadget Unavailable");_a40.push(aol.my.App.getLocalizedString("Oops! This gadget is temporarily unavailable. Please try again later."));_a40.push(aol.my.App.getLocalizedString("If you continue to see this message, it may mean that gadget is permanently unavailable. In that case we recommend you remove it from your page by clicking the 'X' in the upper right corner."));_a40.push(aol.my.App.getLocalizedString("This gadget has the following URL: %1",[this.specUrl]));_a40.push(aol.my.App.getLocalizedString("Visit our %1Gallery%2 to find new stuff to add to your page.",["<a href='/gallery/'>","</a>"]));}else{if(!this.title){_a40.push(aol.my.App.getLocalizedString("There was a problem rendering this gadget. Please try again later."));_a40.push(aol.my.App.getLocalizedString("Visit our %1Gallery%2 to find new stuff to add to your page.",["<a href='/gallery/'>","</a>"]));}else{_a40.push(aol.my.App.getLocalizedString("There was a problem rendering %1. Please try again later.",[this.title]));_a40.push(aol.my.App.getLocalizedString("Visit our %1Gallery%2 to find new stuff to add to your page.",["<a href='/gallery/'>","</a>"]));}}}return _a40;}});}if(!dojo._hasResource["aol.common.User"]){dojo._hasResource["aol.common.User"]=true;dojo.provide("aol.common.User");dojo.declare("aol.common.User",null,{constructor:function(user){this.userId=user.userId;this.displayName=user.displayName;this.authLevel=user.authLevel;this.firstTimeUser=user.firstTimeUser;this.isAnonymous=user.isAnonymous;this.locationCode=user.locationCode;this.locale=user.locale;this.brand=user.brand;this.buddyFeed=user.buddyFeed;dojo.subscribe("/aol.event.settings.ZipCodeChanged",this,"_setLocationCode");dojo.subscribe("/aol.event.AuthLevelChanged",this,"_setAuthLevel");},getUserId:function(){return this.userId;},getDisplayName:function(){return this.displayName;},getAuthLevel:function(){return this.authLevel;},isAuthenticatedUser:function(){if(this.isAnonymous){return false;}return true;},isFirstTimeUser:function(){return this.firstTimeUser;},getBuddyFeed:function(){return this.buddyFeed;},getLocationCode:function(){return this.locationCode;},getLocale:function(){return this.locale;},getBrand:function(){return this.brand;},setFirstTimeUser:function(_a42){this.firstTimeUser=_a42;},setBuddyFeed:function(_a43){this.buddyFeed=_a43;},_setAuthLevel:function(al){this.authLevel=al;},_setLocationCode:function(_a45){this.locationCode=_a45.zip;if(_a45.changed){dojo.publish("/aol.event.LocationCodeChanged");}}});}if(!dojo._hasResource["aol.my.Constants"]){dojo._hasResource["aol.my.Constants"]=true;dojo.provide("aol.my.Constants");aol.my.Constants={lazyLoadTabDelay:1000,defaultTabType:"my",favsTabType:"favs",magnetTabType:"magnet",WIDGET_TYPE_GADGET:"gadget",WIDGET_TYPE_MODULET:"modulet",GADGET_RPC_PATH:"/html/rpc_relay.html",GADGET_DEBUG_RPC_PATH:"/html/rpc_relay.uncompressed.html",SUCCESS:"success",ERROR:"error",FEED_PROXY_PREFIX:"/feedProxy",PROXY_PREFIX:"/proxy",MODULE_REFRESH_QUEUE_INTERVAL:1,LAZY_LOAD_DELAY:10000,MAX_CITY_NAME:30,GADGET_STATUS_NONE:0,GADGET_STATUS_SUBMITTED:1,GADGET_STATUS_IN_APPROVAL_PROCESS:2,GADGET_STATUS_APPROVED:3,GADGET_STATUS_SUSPENDED:4,GADGET_STATUS_SOFT_DELETED:5,GADGET_STATUS_PRIVATE:6,GADGET_STATUS_HARD_DELETED:7,GADGET_STATUS_REINSTATED:8,GADGET_STATUS_RESUBMITTED:9,GADGET_STATUS_UNAVAILABLE:10,domainMap:{en_US_domain:"my.aol.com",en_CA_domain:"my.aol.ca",en_GB_domain:"my.aol.co.uk",fr_FR_domain:"my.aol.fr",de_DE_domain:"my.aol.de",it_IT_domain:"my.aol.it",es_ES_domain:"my.aol.es",nl_NL_domain:"my.aol.nl",fr_CA_domain:"my.aol.qc.ca",pl_PL_domain:"my.aol.pl",sv_SE_domain:"my.aol.se",es_MX_domain:"my.aol.com.mx",de_AT_domain:"my.at.aol.de",de_CH_domain:"my.aol.ch",da_DK_domain:"my.aol.dk",nb_NO_domain:"my.aolnorge.no",nl_BE_domain:"my.nl.aol.be",fr_BE_domain:"my.fr.aol.be",ja_JP_domain:"myaol.jp",ko_KR_domain:"my.aol.kr",fi_FI_domain:"my.aol.fi",en_IE_domain:"my.aol.ie",ru_RU_domain:"my.aol.ru",cs_CZ_domain:"my.aol.cz",tr_TR_domain:"my.aol.com.tr",pt_BR_domain:"my.aol.com.br"}};}if(!dojo._hasResource["aol.my.Environment"]){dojo._hasResource["aol.my.Environment"]=true;dojo.provide("aol.my.Environment");aol.my.Environment=function(){var _a46=null;return {getUser:function(){var user=_defaultUserData.user;user.brand=this.getBrand();user.locale=this.getLocale();return user;},getPageConfig:function(){return _defaultUserData.pageConfig;},getCdnPath:function(){return g_startpageCdnPath;},getVersion:function(){return g_startpageVersion;},getUserData:function(){return _defaultUserData;},getTabThemes:function(){return _defaultUserData.tabThemes;},getAllAppTabs:function(){return g_allAppTabs;},getTabConfig:function(type){var cfg=_defaultUserData.tabConfig[type];cfg.emptyHtmlPageUrl=g_emptyHtmlPageUrl;return cfg;},getModuleDef:function(type){return _defaultUserData.modules[type];},getModuleData:function(_a4b){return _defaultUserData.moduleData[_a4b];},getSecureToken:function(id){var _a4d=_defaultUserData.gadgetTokenData[id].security;if(!_a4d){throw new Error("Secure token missing for gadget: "+id);}return _a4d;},getRpcToken:function(id){var _a4f=_defaultUserData.gadgetTokenData[id].rpc;if(!_a4f){throw new Error("RPC token missing for gadget: "+id);}return _a4f;},getGadgetMetaData:function(id){var url=this.getGadgetSpec(id);if(this.getWidgetFormat(id)==aol.my.Constants.WIDGET_TYPE_GADGET){try{var _a52=_defaultUserData.gadgetMetaData[id];if(typeof (_a52)=="object"&&!aol.common.Util.isEmptyObj(_a52)){return _a52;}}catch(e){}}dojo.debug("Error: no meta data for: "+id+" : "+url);return null;},cloneModuleTemplate:function(_a53){var _a54=dojo.byId("moduleTemplate").cloneNode(true);_a54.removeAttribute("id");if(_a53){dojo.addClass(_a54,"noDnd");}return _a54;},getWidgetFormat:function(id){var node=dojo.byId(id);return (node)?node.getAttribute("widget:format"):node.substr(0,id.indexOf("-"));},getModuleType:function(id){var node=dojo.byId(id);return (node)?node.getAttribute("modulet:type"):node.substr(0,id.indexOf("-"));},getGadgetSpec:function(id){var node=dojo.byId(id);if(node){return node.getAttribute("gadget:spec");}else{console.debug("FAILED to get gadget spec URL for: "+id,node);throw new Error("FAILED to get gadget spec URL for: "+id);}},getGadgetStatus:function(id){var node=dojo.byId(id);if(node){var _a5d=parseInt(node.getAttribute("gadget:status"));if(_a5d!=NaN){return _a5d;}}return aol.my.Constants.GADGET_STATUS_NONE;},getLang:function(){return (g_locale.indexOf("_")==2?g_locale.substr(0,2):"");},getCountry:function(){return (g_locale.indexOf("_")==2?g_locale.substr(3):"");},getLocale:function(){return g_locale;},getBrand:function(){return g_brand;},getEnvironmentUrl:function(){if(_a46==null){var env=[];env.push(window.location.protocol);env.push("//");env.push(window.location.hostname);if(window.location.port!=""){env.push(":");env.push(window.location.port);}_a46=env.join("");}return _a46;},getNoCache:function(){return g_env.gadgetNoCache;},getGadgetDebug:function(){return g_env.gadgetDebug;},getGadgetDefaultIframeHeight:function(){return g_env.gadgetDefaultIframeHeight;},getRpcRelay:function(){return (myaolcfg.dev)?aol.my.Constants.GADGET_DEBUG_RPC_PATH:aol.my.Constants.GADGET_RPC_PATH;},getGrsBaseUrl:function(_a5f){if(typeof (_a5f)=="string"){var path="/grs/gadgets/ifr";var grs=[];grs.push("http://");grs.push(_a5f);grs.push(path);return grs.join("");}return g_env.grsBaseUrl;},getFeedGadgetSpec:function(){return g_env.feedGadgetSpec;},getContainerName:function(){return g_env.gadgetContainerName;},isGadgetsEnabled:function(){return true;},buildModulesFromDom:function(tab){if(myaolcfg.enableTimers){var TT=new aol.common.Util.timer("buildModulesFromDom");}dojo.query(".module",tab).forEach(dojo.hitch(this,function(_a64){try{if(dojo.hasClass(_a64,"gadget")){return;}var _a65=_a64.id;var _a66=this.getModuleType(_a65);var _a67=this.getModuleDef(_a66);var data=this.getModuleData(_a65);var _a69=new aol.common.Module(_a67,_a65,data);aol.my.ModuleManager.addModule(_a69);}catch(ex){dojo.debug("failed to instantiate module: ",_a66,ex);}}));dojo.query("div.gadget",tab).forEach(dojo.hitch(this,function(_a6a){try{var _a6b=_a6a.id;var _a6c={"id":_a6b,"specUrl":this.getGadgetSpec(_a6b),"metaData":this.getGadgetMetaData(_a6b),"userPrefs":this.getModuleData(_a6b),"secureToken":this.getSecureToken(_a6b),"rpcToken":this.getRpcToken(_a6b),"debug":this.getGadgetDebug()};var _a6d=new aol.common.Gadget(_a6c);if(_a6d.widgetError){_a6d=new aol.common.ErrorWidget(_a6c,_a6d.widgetError);}aol.my.ModuleManager.addModule(_a6d);}catch(ex){dojo.debug("failed to instantiate gadget: ",this.getGadgetSpec(_a6b),ex);}}));dojo.dnd.manager().moduleContainerManager.addContainer(tab);if(myaolcfg.enableTimers){TT.stop();}}};}();}if(!dojo._hasResource["aol.util.GlobalModuleQueue"]){dojo._hasResource["aol.util.GlobalModuleQueue"]=true;dojo.provide("aol.util.GlobalModuleQueue");dojo.declare("aol.util.GlobalModuleQueue",null,{_queue:[],_delay:100,_firstOne:true,constructor:function(){if(!dojo.render.html.ie60){this._delay=10;}},push:function(_a6e,_a6f){this._queue.push([_a6e,_a6f]);if(this._firstOne){this._firstOne=false;aol.common.d4.setTimeout(this,"_initNext",this._delay);}},_initNext:function(){var _a70,_a71,_a72,_a73;var _a74=1;while(this._queue.length!=0){_a70=this._queue.shift();_a71=_a70[0];_a72=_a70[1];_a73=_a71.loadedAsMinimized;aol.common.d4.setTimeout(_a71,"init",(_a74*this._delay),_a72,_a73);_a74++;}this._firstOne=true;}});}if(!dojo._hasResource["gadgets.Rpc"]){dojo._hasResource["gadgets.Rpc"]=true;dojo.provide("gadgets.Rpc");gadgets.Rpc=function(){var _a75={};var _a76=[];var _a77={};var _a78={};var _a79={};var _a7a=0;var _a7b={};var _a7c=typeof document.postMessage==="function"?"dpm":typeof window.postMessage==="function"?"wpm":"ifpc";if(_a7c==="dpm"||_a7c==="wpm"){window.addEventListener("message",function(_a7d){process(dojo.fromJson(_a7d.data));},false);}_a75[""]=function(){throw new Error("Unknown RPC service: "+this.s);};_a75["__cb"]=function(_a7e,_a7f){var _a80=_a7b[_a7e];if(_a80){delete _a7b[_a7e];_a80(_a7f);}};function encodeLegacyData(args){var _a82=[];for(var i=0,j=args.length;i<j;++i){_a82.push(encodeURIComponent(dojo.toJson(args[i])));}return _a82.join("&");};function process(rpc){if(rpc&&typeof rpc.s==="string"&&typeof rpc.f==="string"&&rpc.a instanceof Array){if(_a79[rpc.f]){if(_a79[rpc.f]!=rpc.t){throw new Error("Invalid auth token.");}}if(_a7c==="ifpc"){if(rpc.f===".."){try{var fel=window.frameElement;if(typeof fel.__g2c_rpc==="function"&&typeof fel.__g2c_rpc.__c2g_rpc!="function"){fel.__g2c_rpc.__c2g_rpc=function(args){process(dojo.fromJson(args));};}}catch(e){}}else{var _a88=document.getElementById(rpc.f);if(_a88&&typeof _a88.__g2c_rpc!="function"){_a88.__g2c_rpc=function(args){process(dojo.fromJson(args));};}}}var _a8a=(_a75[rpc.s]||_a75[""]).apply(rpc,rpc.a);if(rpc.c){gadgets.Rpc.call(rpc.f,"__cb",null,rpc.c,_a8a);}}};function emitInvisibleIframe(src){var _a8c;for(var i=_a76.length-1;i>=0;--i){var ifr=_a76[i];try{if(ifr&&(ifr.recyclable||ifr.readyState==="complete")){ifr.parentNode.removeChild(ifr);if(window.ActiveXObject){_a76[i]=ifr=null;_a76.splice(i,1);}else{ifr.recyclable=false;_a8c=ifr;break;}}}catch(e){}}if(!_a8c){_a8c=document.createElement("iframe");_a8c.style.border=_a8c.style.width=_a8c.style.height="0px";_a8c.style.visibility="hidden";_a8c.style.position="absolute";_a8c.onload=function(){this.recyclable=true;};_a76.push(_a8c);}_a8c.src=src;setTimeout(function(){document.body.appendChild(_a8c);},0);};if(gadgets.config){function init(_a8f){if(_a8f.rpc.parentRelayUrl.substring(0,7)==="http://"){_a77[".."]=_a8f.rpc.parentRelayUrl;}else{var _a90=document.location.search.substring(0).split("&");var _a91="";for(var i=0,_a93;_a93=_a90[i];++i){if(_a93.indexOf("parent=")===0){_a91=decodeURIComponent(_a93.substring(7));break;}}_a77[".."]=_a91+_a8f.rpc.parentRelayUrl;}_a78[".."]=!!_a8f.rpc.useLegacyProtocol;};var _a94={parentRelayUrl:gadgets.config.NonEmptyStringValidator};gadgets.config.register("rpc",_a94,init);}return {register:function(_a95,_a96){_a75[_a95]=_a96;},unregister:function(_a97){delete _a75[_a97];},registerDefault:function(_a98){_a75[""]=_a98;},unregisterDefault:function(){delete _a75[""];},call:function(_a99,_a9a,_a9b,_a9c){++_a7a;_a99=_a99||"..";if(_a9b){_a7b[_a7a]=_a9b;}var from;if(_a99===".."){from=window.name;}else{from="..";}var _a9e=dojo.toJson({s:_a9a,f:from,c:_a9b?_a7a:0,a:Array.prototype.slice.call(arguments,3),t:_a79[_a99]});if(_a78[_a99]){_a7c="ifpc";}switch(_a7c){case "dpm":var _a9f=_a99===".."?parent.document:frames[_a99].document;_a9f.postMessage(_a9e);break;case "wpm":var _aa0=_a99===".."?parent:frames[_a99];_aa0.postMessage(_a9e,"*");break;default:var _aa1=gadgets.rpc.getRelayUrl(_a99);var src;if(_a78[_a99]){src=[_aa1,"#",encodeLegacyData([from,_a7a,1,0,encodeLegacyData([from,_a9a,"","",from].concat(Array.prototype.slice.call(arguments,3)))])].join("");}else{try{if(from===".."){var _aa3=document.getElementById(_a99);if(typeof _aa3.__g2c_rpc.__c2g_rpc==="function"){_aa3.__g2c_rpc.__c2g_rpc(_a9e);return;}}else{if(typeof window.frameElement.__g2c_rpc==="function"){window.frameElement.__g2c_rpc(_a9e);return;}}}catch(e){}src=[_aa1,"#",_a99,"&",from,"@",_a7a,"&1&0&",encodeURIComponent(_a9e)].join("");}emitInvisibleIframe(src);}},getRelayUrl:function(_aa4){return _a77[_aa4];},setRelayUrl:function(_aa5,url,_aa7){_a77[_aa5]=url;_a78[_aa5]=!!_aa7;},setAuthToken:function(_aa8,_aa9){_a79[_aa8]=_aa9;},getRelayChannel:function(){return _a7c;},receive:function(_aaa){if(_aaa.length>4){process(dojo.fromJson(decodeURIComponent(_aaa[_aaa.length-1])));}}};}();}if(!dojo._hasResource["aol.util.GadgetRpcHandler"]){dojo._hasResource["aol.util.GadgetRpcHandler"]=true;dojo.provide("aol.util.GadgetRpcHandler");aol.util.GadgetRpcHandler=function(){var _aab=[];function _areGadgetsLoaded(){if(!aol.my.App.loaded){return false;}else{var _aac=aol.my.App.tabManager.getCurrentTab();return _aac.preloaded;}};function _addRpcCallToQueue(_aad){if(typeof (_aad)!="function"){throw new TypeError("rpcFunc must be a function");}var args=[];for(var i=1;i<arguments.length;i++){args.push(arguments[i]);}var _ab0={};_ab0.func=_aad;_ab0.args=args;_aab.push(_ab0);};function _handleTabLoaded(){var _ab1;while(_ab1=_aab.shift()){if(_ab1){_ab1.func.apply(this,_ab1.args);}}};function _setHeight(_ab2){if(_areGadgetsLoaded()){aol.my.ModuleManager.setHeight(_ab2,this.f);}else{_addRpcCallToQueue(aol.my.ModuleManager.setHeight,_ab2,this.f);}};function _setUserPref(_ab3,name,_ab5){if(_areGadgetsLoaded()){aol.my.ModuleManager.setUserPref(name,_ab5,this.f);}else{_addRpcCallToQueue(aol.my.ModuleManager.setUserPref,name,_ab5,this.f);}};function _setTitle(_ab6){if(_areGadgetsLoaded()){aol.my.ModuleManager.setTitle(_ab6,this.f);}else{_addRpcCallToQueue(aol.my.ModuleManager.setTitle,_ab6,this.f);}};function _requestNavigateTo(view,_ab8){if(_areGadgetsLoaded()){aol.my.ModuleManager.requestNavigateTo(view,this.f,_ab8);}else{_addRpcCallToQueue(aol.my.ModuleManager.requestNavigateTo,view,this.f,_ab8);}};gadgets.Rpc.register("resize_iframe",_setHeight);gadgets.Rpc.register("set_pref",_setUserPref);gadgets.Rpc.register("set_title",_setTitle);gadgets.Rpc.register("requestNavigateTo",_requestNavigateTo);dojo.subscribe("/aol.event.TabLoaded",_handleTabLoaded);return {};}();}if(!dojo._hasResource["aol.util.MinWidthHandler"]){dojo._hasResource["aol.util.MinWidthHandler"]=true;dojo.provide("aol.util.MinWidthHandler");aol.util.MinWidthHandler=(function(){window.minWidthHandlerCC=0;function _handleIE6(_ab9){var _aba=document.documentElement.clientWidth;if(_aba<=955){if("955px"==document.body.style.width&&!_ab9){return;}document.body.style.width="955px";dojo.query(".mContent").forEach(function(m){var _abc=298;_abc-=parseInt(m.currentStyle.paddingLeft);_abc-=parseInt(m.currentStyle.paddingRight);m.style.width=_abc+"px";});}else{if("auto"==document.body.style.width&&!_ab9){return;}document.body.style.width="auto";dojo.query(".mContent").style("width","100%");dojo.query(".gadget .mContent").style("width","auto");}};function _handleWideAd(_abd){var _abe=document.documentElement.clientWidth;var body=document.body;var ctx=dojo.byId("uberTabContainer")||document;var _ac1=350+8;var _ac2=10*4;if(_abe>1114){if("auto"==body.style.width&&!_abd){return;}dojo.query(body).style("width","auto").style("minWidth","1114px");dojo.query(".leftcolumn, .middlecolumn",ctx).style("width","32%");dojo.query(".rightcolumn",ctx).style("width","32%");if(dojo.isIE==6){dojo.query(".mContent").style("width","100%");dojo.query(".gadget .mContent").style("width","auto");}}else{if(_abe>1006){dojo.query(body).style("width",_abe+"px").style("minWidth","1006px");var w=Math.floor((_abe-_ac1-_ac2)/2);dojo.query(".leftcolumn, .middlecolumn",ctx).style("width",w+"px");dojo.query(".rightcolumn",ctx).style("width",_ac1+"px");if(dojo.isIE==6){dojo.query(".mContent").style("width","95%");}}else{if("1006px"==body.style.width&&!_abd){return;}dojo.query(body).style("width","1006px").style("minWidth","1006px");var w=Math.floor((1006-_ac1-_ac2)/2);dojo.query(".leftcolumn, .middlecolumn",ctx).style("width",w+"px");dojo.query(".rightcolumn",ctx).style("width",_ac1+"px");if(dojo.isIE==6){dojo.query(".mContent").style("width","95%");}}}};return {handle:function(_ac4,_ac5){window.minWidthHandlerCC++;if(_ac4==350){_handleWideAd(_ac5);}else{if(dojo.isIE==6){_handleIE6(_ac5);}}}};})();}if(!dojo._hasResource["aol.my.ModuleManager"]){dojo._hasResource["aol.my.ModuleManager"]=true;dojo.provide("aol.my.ModuleManager");aol.my.ModuleManager=function(){var _ac6=[];var _ac7={};var _ac8={};var _ac9={};var _aca=null;var _acb="feedModule";function _refreshTab(){var ct=aol.my.App.tabManager.getCurrentTab().getTabContentObj().domNode;var qq=[];for(var z in _ac9){var m=_ac9[z].module;var i=_ac9[z].interval;var r=_ac9[z].remaining--;if(dojo.isDescendant(m.mainNode,ct)){if(r<1){_ac9[z].remaining=i;qq.push(dojo.hitch(m,function(){this.refresh();}));}}}while(qq.length>0){setTimeout(qq.pop(),(qq.length+1)*3000);}};function _getIdFromIframeId(id){return id.substr("ifr".length);};function _getMetaDataFromResponse(_ad3){try{if(typeof _ad3!="object"){return dojo.fromJson(_ad3.gadget.metaData);}else{return _ad3.gadget.metaData;}}catch(e){dojo.debug("Error getting metaData from response: ",_ad3,e);}};return {addModule:function(_ad4){_ac8[_ad4.moduleName]=_ad4;if(_ad4.TYPE=="modulet"){this.ClassLoader.getConsolidatedModule(_ad4);}if(typeof (aol.my.App.dndModuleManager)!="undefined"){aol.my.App.dndModuleManager.makeModuleDraggable(_ad4);}},insertGadget:function(url,_ad6,_ad7){this.createGadget(url,0,function(_ad8){if("failure"==_ad8&&_ad7){_ad7();}if("success"==_ad8&&_ad6){_ad6();}});},insertFeed:function(url,_ada,_adb){this.addFeedWidget(url,function(_adc){if("failure"==_adc&&_adb){_adb();}if("success"==_adc&&_ada){_ada();}});},addFeedWidget:function(url,cb){if(aol.my.Environment.isGadgetsEnabled()){var spec=aol.my.Environment.getFeedGadgetSpec();this.createGadget(spec,undefined,cb,{"feedUrl":url});}else{var _ae0={version:"0.1",url:url,title:"",num:"5"};this.createModule(_acb,undefined,cb,_ae0);}},createModule:function(_ae1,_ae2,_ae3,_ae4){_ae2=!_ae2?0:_ae2;var _ae5=(typeof (_ae3)!="undefined")?_ae3:function(){};var tab=aol.my.App.tabManager.getCurrentTab();var _ae7=tab.getTabContentObj().getColumn(_ae2);if(g_allowBuddyFeeds=="true"&&aol.my.App.user.isAuthenticatedUser()&&aol.my.App.user.getBuddyFeed()=="PROMPT"){var ctx=this;var d=new aol.widget.Dialog({id:"buddyFeedConfirm",bgColor:"white",followScroll:true,toggle:"fade",toggleDuration:150,href:"/widget/BuddyFeedConfirm.jsp",onLoad:function(){aol.widget.Dialog.superclass.onLoad.call(this);dojo.connect(dojo.byId("buddySaveButton"),"onclick",function(){aol.my.ModuleManager.setBuddyFeed();var bf=(g_allowBuddyFeeds=="true"&&aol.my.App.user.isAuthenticatedUser()&&aol.my.App.user.getBuddyFeed()=="ON");this.sendWidgetToServer(_ae1,null,tab.getId(),_ae2,null,null,bf,undefined,_ae7,_ae4,_ae5);});dojo.connect(dojo.byId("bf"),"onclick",aol.my.ModuleManager,"showMoreBuddy");d.show("forceClick");}});dojo.body().appendChild(d.domNode);d.startup();aol.my.ModuleManager.buddyFeedConfirm=d;}else{var bf=g_allowBuddyFeeds=="true"&&aol.my.App.user.isAuthenticatedUser()&&aol.my.App.user.getBuddyFeed()=="ON";console.debug("adding widget with buddyfeed="+bf);this.sendWidgetToServer(_ae1,null,tab.getId(),_ae2,null,null,bf,undefined,_ae7,_ae4,_ae5);}},sendWidgetToServer:function(_aec,_aed,_aee,_aef,toId,_af1,_af2,_af3,_af4,_af5,cb){aol.startpage.ServerAPI.addWidget(_aec,_aed,_aee,_aef,toId,_af1,_af2,function(_af7,data){if(_af7=="success"){if(data.module==null){cb("failure",null);}else{var _af9=aol.my.ModuleManager.addModuleFromServer(data.module,_af4,false);if(!_af9){return {code:0};}if(typeof (_af5)=="object"){ModuleT.setData(_af9.contentId,_af5,function(){_af9.run("view");aol.common.d4.setTimeout(cb,500,"success",_af9);});}else{aol.common.d4.setTimeout(cb,500,"success",_af9);}}}else{cb("failure",null);}});},addModuleFromServer:function(_afa,_afb,_afc,_afd){var _afe=aol.my.Environment.cloneModuleTemplate(false);_afe.id=_afa.id;_afe.setAttribute("widget:format","modulet");_afe.setAttribute("modulet:onload",_afa.onload);_afe.setAttribute("modulet:type",_afa.type);dojo.addClass(_afe,_afa.type);var _aff=dojo.query(".mContent",_afe)[0];var _b00=dojo.query(".mTitle",_afe)[0];if(_afa.data["title"]){_b00.innerHTML=_afa.data["title"];}else{if(_afa["title"]){_b00.innerHTML=_afa["title"];}}if(!_afa.isVisible){_aff.style.display="none";var _b01=document.createElement("div");_b01.setAttribute("id",_afa.id+"-NeedAuth");dojo.addClass(_b01,"needAuth");_aff.appendChild(_b01);}_aff.innerHTML+=_afa.view;if(_afa.edit!=null){_aff.innerHTML+=_afa.edit;}if(_afa.type=="feedModule"){var _b02=_afa.data["title"];if(_b02!=null){_b02=_b02.replace(/</g,"&lt;");_b02=_b02.replace(/>/g,"&gt;");var _b03=document.createElement("div");_b03.innerHTML=_b02;_afa.data["title"]=_b03.innerHTML;_b03=null;}}_afd=(typeof (_afd)=="undefined");dojo.dnd.manager().moduleContainerManager.insertModule(_afe,_afb,_afd,_afc);var _b04;if(_afd){_b04=new aol.common.Module({basepath:_afa.basepath,celeritas:_afa.celeritas},_afe.id,_afa.data);this.addModule(_b04);_b04.setTitle(_afa.title);dojo.publish("/aol.event.widget.add",[this]);}else{if(!_defaultUserData.modules[_afa.type]){_defaultUserData.modules[_afa.type]={celeritas:_afa.celeritas,basepath:_afa.basepath};}_defaultUserData.moduleData[_afa.id]=_afa.data;}if(!_afa.isVisible){_aff.style.display="block";}return _b04;},createGadget:function(_b05,_b06,_b07,_b08){_b06=!_b06?0:_b06;var _b09=(typeof (_b07)!="undefined"?_b07:function(){});var tab=aol.my.App.tabManager.getCurrentTab();var _b0b=tab.getTabContentObj().getColumn(_b06);if(g_allowBuddyFeeds=="true"&&aol.my.App.user.isAuthenticatedUser()&&aol.my.App.user.getBuddyFeed()=="PROMPT"){dojo["require"]("aol.widget.Dialog");var ctx=this;dojo.addOnLoad(function(){var d=new aol.widget.Dialog({id:"buddyFeedConfirm",bgColor:"white",followScroll:true,toggle:"fade",toggleDuration:150,href:"/widget/BuddyFeedConfirm.jsp",onLoad:function(){aol.widget.Dialog.superclass.onLoad.call(this);dojo.connect(dojo.byId("buddySaveButton"),"onclick",aol.my.ModuleManager,"setBuddyFeed");dojo.connect(dojo.byId("buddySaveButton"),"onclick",dojo.lang.hitch(ctx,function(){this.sendGadgetToServer(_b05,null,tab.getId(),_b06,null,null,_b09,_b0b,false,_b08);}));dojo.connect(dojo.byId("bf"),"onclick",aol.my.ModuleManager,"showMoreBuddy");d.show("forceClick");}});dojo.body().appendChild(d.domNode);d.startup();aol.my.ModuleManager.buddyFeedConfirm=d;});}else{this.sendGadgetToServer(_b05,null,tab.getId(),_b06,null,null,_b09,_b0b,false,_b08);}},sendGadgetToServer:function(url,_b0f,_b10,_b11,toId,_b13,cb,_b15,_b16,_b17){var bf=g_allowBuddyFeeds=="true"&&aol.my.App.user.isAuthenticatedUser()&&aol.my.App.user.getBuddyFeed()=="ON";aol.startpage.ServerAPI.addGadget(url,_b0f,_b10,_b11,toId,_b13,function(_b19,_b1a){if(_b19=="success"){try{var _b1b=aol.my.ModuleManager.addGadgetFromServer(url,_b1a,_b15,_b16,_b17,true);aol.common.d4.setTimeout(cb,500,"success",_b1b);}catch(e){cb("failure",null);}}else{cb("failure",null);}},bf);},addGadgetFromServer:function(_b1c,_b1d,_b1e,_b1f,_b20,_b21){_b1c=_b1d.gadget.specUrl;var _b22=_getMetaDataFromResponse(_b1d);var _b23=_b1d.gadget.securityToken;var _b24=_b1d.gadget.rpcToken;var _b25=_b1d.gadget.gadgetStatus;var _b26=true;if(typeof (_b20)=="undefined"){_b20={};_b26=false;}var _b27=aol.my.Environment.cloneModuleTemplate();_b27.setAttribute("id",_b1d.id);_b27.setAttribute("widget:format","gadget");_b27.setAttribute("gadget:spec",_b1c);_b27.setAttribute("gadget:status",_b25);dojo.addClass(_b27,"gadget");dojo.dnd.manager().moduleContainerManager.insertModule(_b27,_b1e,true,_b1f);_b21=(typeof (_b21)=="undefined")?true:_b21;var _b28;if(_b21){var _b29={"id":_b1d.id,"specUrl":_b1c,"metaData":_b22,"userPrefs":_b20,"secureToken":_b23,"rpcToken":_b24,"debug":aol.my.Environment.getGadgetDebug()};_b28=new aol.common.Gadget(_b29);if(_b28.widgetError){_b28=new aol.common.ErrorWidget(_b29,_b28.widgetError);}this.addModule(_b28);if(_b26){_b28.saveUserPrefsToServer(false);}aol.util.MinWidthHandler.handle(g_adWidth,true);dojo.publish("/aol.event.widget.add",[this]);}else{this.setGadgetUserData(_b1d.id,_b22,_b20,_b23,_b24);}return _b28;},setGadgetUserData:function(_b2a,_b2b,_b2c,_b2d,_b2e){var d=_defaultUserData;d.gadgetMetaData[_b2a]=_b2b;d.moduleData[_b2a]=_b2c;d.gadgetTokenData[_b2a]={security:_b2d,rpc:_b2e};},removeModule:function(_b30){delete _ac8[_b30.moduleName];if(_ac9[_b30.moduleName]){delete _ac9[_b30.moduleName];}},getModuleInstance:function(_b31){return _ac8[_b31];},getModuleFromNode:function(_b32){return _ac8[_b32.id];},getModulesFromTab:function(_b33){return dojo.query(".module",_b33);},getModules:function(){return _ac8;},setHeight:function(_b34,id){try{var _b36=_ac8[_getIdFromIframeId(id)];_b36.setHeight(_b34);}catch(ex){console.debug("Temporary exception catch: ",ex);}},setUserPref:function(name,_b38,id){try{var _b3a=_ac8[_getIdFromIframeId(id)];_b3a.setUserPref(name,_b38);}catch(ex){console.debug("Temporary exception catch: ",ex);}},setTitle:function(_b3b,id){try{var _b3d=_ac8[_getIdFromIframeId(id)];_b3d.setTitle(_b3b);}catch(ex){console.debug("Temporary exception catch: ",ex);}},requestNavigateTo:function(view,id,_b40){try{var _b41=_ac8[_getIdFromIframeId(id)];_b41.requestNavigateTo(view,_b40);}catch(ex){console.debug("Temporary exception catch: ",ex);}},insertCss:function(type,css){if(css==""){return;}for(var i=0;i<_ac6.length;i++){if(_ac6[i]==type){return;}}_ac6.push(type);var node=aol.common.d4.insertCssText(css);node.id="mccs_"+type;},getDictionary:function(type){var dict=_ac7[type];return (typeof (dict)=="undefined")?null:dict;},setDictionary:function(type,_b49){_ac7[type]=_b49;},showMoreBuddy:function(){var desc=dojo.byId("bottom").style;if(desc.display=="block"){desc.display="none";}else{desc.display="block";}},setBuddyFeed:function(){var bf=dojo.byId("buddyCB").checked?"ON":"OFF";aol.my.App.user.setBuddyFeed(bf);aol.startpage.ServerAPI.setBuddyFeed(bf,dojo.hitch(this,function(_b4c,data){if(_b4c!="success"){}}));aol.my.ModuleManager.buddyFeedConfirm.hide();},addModuleToRefreshQueue:function(_b4e,_b4f,_b50){if(_aca==null){_aca=setInterval(_refreshTab,aol.my.Constants.MODULE_REFRESH_QUEUE_INTERVAL*1000*60);}if(_b50){_b4e.registerRefreshHandler(_b50);}_ac9[_b4e.moduleName]={module:_b4e,interval:_b4f,remaining:_b4f};},zipCodeInfo:function(){this.listeners=[];this.notify=dojo.hitch(this,function(evt){var li;for(var i=0;i<this.listeners.length;i++){li=this.listeners[i];if(li!=undefined){(li[1])(li[0],evt.zip,evt.changed);}}});this.removeModule=dojo.hitch(this,function(evt){var li;for(var i=0;i<this.listeners.length;i++){li=this.listeners[i];if(li!=undefined&&((li[0])==("content_"+evt.id))){delete this.listeners[i];return;}}});dojo.subscribe("/aol.event.settings.ZipCodeChanged",this.notify);dojo.subscribe("/aol.event.module.delete",this.removeModule);},addZipCodeListener:function(_b57,_b58){if(!this.zipCodeObj){this.zipCodeObj=new this.zipCodeInfo();}this.zipCodeObj.listeners.push([_b57,_b58]);},isFeedGadget:function(_b59){return (aol.my.Environment.getFeedGadgetSpec().indexOf("/gd/feedReader/")!=-1);}};}();aol.my.ModuleManager.ClassLoader={_iAmBackwards:{},_js:{},_closure:{},_loadQueue:{},manager:aol.my.ModuleManager,setModuleQueue:function(_b5a,_b5b){this._js[_b5a]={state:"downloading"};this._loadQueue[_b5a]=[];},getJs:function(uri,id){var node=document.createElement("script");node.type="text/javascript";node.src=uri;node.id=id;this._headNode.appendChild(node);},init:function(_b5f){this._headNode=document.getElementsByTagName("head")[0];this.globalModuleQueue=new aol.util.GlobalModuleQueue();if(_b5f.uriSig=="0"){return;}var _b60=_b5f.classes;for(var i=0;i<_b60.length;i++){this.setModuleQueue(_b60[i],null);}var uri=g_startpageBasePath+"/celeritas/get.js?locale="+aol.my.Environment.getLocale()+"&sig="+_b5f.uriSig+"&classes="+(_b5f.classes.join(","));this.getJs(uri,"allModulesJs");},modulesLoaded:function(_b63){var _b64=_b63.moduleClasses;var _b65;for(var _b66 in _b64){_b65=_b64[_b66];this._js[_b66]={state:"ready"};this._closure[_b66]=_b65;this.initQueuedModules(_b66);}},getConsolidatedModule:function(_b67){var type=_b67.moduleType;if(typeof (_b67.celeritas)=="undefined"){console.debug("WARNING: celeritas is undefined for: ",_b67.moduleName);return;}if(typeof (this._js[type])=="undefined"){this.setModuleQueue(type);this._loadQueue[type].push(_b67);this.getJs(_b67.celeritas,"mjs_"+type);}else{this._loadQueue[type].push(_b67);if(this._js[type].state=="ready"){this.initQueuedModules(type);}}},initQueuedModules:function(type){var _b6a=this._closure[type];this.manager.insertCss(type,_b6a.css);while(this._loadQueue[type].length>0){var _b6b=this._loadQueue[type].shift();if(!_b6b.isScriptless()){var _b6c=new _b6a.module(_b6b.contentId,dojo,dijit,dojox);aol.my.ModuleManager.ClassLoader.globalModuleQueue.push(_b6b,_b6c);var _b6d=_b6b.getModuleInitStr();this.iAmBackwards(type,_b6d);}else{console.debug(type,": I lost my script on the way to rehersal. Can I improvise? director: No! You're fired!");}}},iAmBackwards:function(type,_b6f){if(typeof (this._iAmBackwards[type])=="undefined"){this._iAmBackwards[type]=true;var c=this._closure[type];var i=new c.module(undefined,dojo,dijit,dojox);var m=i.init(_b6f);window[m.topNs]=m.top;}}};}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _b75=dijit.byId(id);return _b75.isContainer?_b75:null;}}return null;},_getSibling:function(_b76){var node=this.domNode;do{node=node[_b76+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_b79,_b7a){if(_b7a===undefined){_b7a="last";}var _b7b=this.containerNode||this.domNode;if(_b7a&&typeof _b7a=="number"){var _b7c=dojo.query("> [widgetid]",_b7b);if(_b7c&&_b7c.length>=_b7a){_b7b=_b7c[_b7a-1];_b7a="after";}}dojo.place(_b79.domNode,_b7b,_b7a);if(this._started&&!_b79._started){_b79.startup();}},removeChild:function(_b7d){var node=_b7d.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_b82,dir){var node=_b82.domNode;var _b85=(dir>0?"nextSibling":"previousSibling");do{node=node[_b85];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_b86,_b87){var _b88=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_b86,function(code){_b88[code]=prev;});dojo.forEach(_b87,function(code){_b88[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_b8d,_b8e){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_b8d);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _b8f=this._getNextFocusableChild(this.focusedChild,1);if(_b8f.getFocalNodes){this.focusChild(_b8f,_b8f.getFocalNodes()[0]);}else{this.focusChild(_b8f);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _b90=this._getNextFocusableChild(this.focusedChild,-1);if(_b90.getFocalNodes){var _b91=_b90.getFocalNodes();this.focusChild(_b90,_b91[_b91.length-1]);}else{this.focusChild(_b90);}},focusChild:function(_b92,node){if(_b92){if(this.focusedChild&&_b92!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_b92;if(node&&_b92.focusFocalNode){_b92.focusFocalNode(node);}else{_b92.focus();}}},_startupChild:function(_b94){if(_b94.getFocalNodes){dojo.forEach(_b94.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_b94.focusNode||_b94.domNode;if(_b94.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _b9c=dijit.getEnclosingWidget(evt.target);if(_b9c&&_b9c.isFocusable()){this.focusedChild=_b9c;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_b9e){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_b9f,dir){if(_b9f){_b9f=this._getSiblingOfChild(_b9f,dir);}var _ba1=this.getChildren();for(var i=0;i<_ba1.length;i++){if(!_b9f){_b9f=_ba1[(dir>0)?0:(_ba1.length-1)];}if(_b9f.isFocusable()){return _b9f;}_b9f=this._getSiblingOfChild(_b9f,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_ba3){_ba3.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _bac=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_baf,dim){_baf.resize?_baf.resize(dim):dojo.marginBox(_baf.domNode,dim);dojo.mixin(_baf,dojo.marginBox(_baf.domNode));dojo.mixin(_baf,dim);};dijit.layout.layoutChildren=function(_bb1,dim,_bb3){dim=dojo.mixin({},dim);dojo.addClass(_bb1,"dijitLayoutContainer");_bb3=dojo.filter(_bb3,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_bb3,function(item){return item.layoutAlign=="client";}));dojo.forEach(_bb3,function(_bb6){var elm=_bb6.domNode,pos=_bb6.layoutAlign;var _bb9=elm.style;_bb9.left=dim.l+"px";_bb9.top=dim.t+"px";_bb9.bottom=_bb9.right="auto";dojo.addClass(elm,"dijitAlign"+_bac(pos));if(pos=="top"||pos=="bottom"){size(_bb6,{w:dim.w});dim.h-=_bb6.h;if(pos=="top"){dim.t+=_bb6.h;}else{_bb9.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_bb6,{h:dim.h});dim.w-=_bb6.w;if(pos=="left"){dim.l+=_bb6.w;}else{_bb9.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_bb6,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",doLayout:"auto",postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}var _bba={loadingState:"",errorState:""};this.loadingMessage=dojo.string.substitute(this.loadingMessage,_bba);this.errorMessage=dojo.string.substitute(this.errorMessage,_bba);var _bbb=dijit.getWaiRole(this.domNode);if(!_bbb){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _bbc=dojo.query(">",this.containerNode||this.domNode),_bbd=_bbc.filter("[widgetId]");if(_bbc.length==1&&_bbd.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_bbd[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();this._singleChild.resize(this._contentBox||dojo.contentBox(this.containerNode||this.domNode));}}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_bc3){this.cancel();this.isLoaded=false;this._loadCheck(_bc3);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_bc5){var _bc6=this._isShown();if(this.href&&(_bc5||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_bc6&&!this._xhrDfd)||(!this.isLoaded&&_bc6&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _bc8={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_bc8,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_bc8);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _bcf=this.onContentError(e);try{node.innerHTML=_bcf;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_bd2){var _bd3=this["on"+type+"Error"].call(this,err);if(_bd2){console.error(_bd2,err);}else{if(_bd3){this._setContent.call(this,_bd3);}}},_createSubWidgets:function(){var _bd4=this.containerNode||this.domNode;try{dojo.parser.parse(_bd4,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_bd7){},onDownloadError:function(_bd8){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["aol.widget.Dialog"]){dojo._hasResource["aol.widget.Dialog"]=true;dojo.provide("aol.widget.Dialog");dojo.declare("aol.widget.ModalDialogBase",null,{isContainer:true,focusElement:"",bgColor:"black",bgOpacity:0.4,followScroll:true,closeOnBackgroundClick:false,width:0,height:0,position:"absolute",trapTabs:function(e){if(e.target==this.tabStartOuter){if(this._fromTrap){this.tabStart.focus();this._fromTrap=false;}else{this._fromTrap=true;this.tabEnd.focus();}}else{if(e.target==this.tabStart){if(this._fromTrap){this._fromTrap=false;}else{this._fromTrap=true;this.tabEnd.focus();}}else{if(e.target==this.tabEndOuter){if(this._fromTrap){this.tabEnd.focus();this._fromTrap=false;}else{this._fromTrap=true;this.tabStart.focus();}}else{if(e.target==this.tabEnd){if(this._fromTrap){this._fromTrap=false;}else{this._fromTrap=true;this.tabStart.focus();}}}}}},clearTrap:function(e){var _bdb=this;setTimeout(function(){_bdb._fromTrap=false;},100);},postCreate:function(){with(this.domNode.style){position="absolute";zIndex=999;display="none";overflow="visible";}var b=dojo.body();b.appendChild(this.domNode);this.bg=document.createElement("div");this.bg.id=dijit.getUniqueId("myAolDialogBg");this.bg.className="dialogUnderlay";with(this.bg.style){position="absolute";left=top="0px";zIndex=998;display="none";}b.appendChild(this.bg);this.setBackgroundColor(this.bgColor);this.bgIframe=new dijit.BackgroundIframe(this.bg);if(this.closeOnBackgroundClick){this.bgClickConnect=dojo.connect(this.bg,"onclick",this,"onBackgroundClick");}},uninitialize:function(){this.bgIframe.destroy();dojo._destroyElement(this.bg,true);},setBackgroundColor:function(_bdd){if(arguments.length>=3){_bdd=new dojo.Color(arguments[0],arguments[1],arguments[2]);}else{_bdd=new dojo.Color(_bdd);}this.bg.style.backgroundColor=_bdd.toHex();return this.bgColor=_bdd;},setBackgroundOpacity:function(op){if(arguments.length==0){op=this.bgOpacity;}dojo.style(this.bg,"opacity",op);try{this.bgOpacity=dojo.style(this.bg,"opacity");}catch(e){this.bgOpacity=op;}return this.bgOpacity;},_sizeBackground:function(){if(this.bgOpacity>0){var _bdf=dijit.getViewport();var h=_bdf.h;var w=_bdf.w;with(this.bg.style){width=w+"px";height=h+"px";}var _be2=dojo._docScroll();this.bg.style.top=_be2.y+"px";this.bg.style.left=_be2.x+"px";var _bdf=dijit.getViewport();if(_bdf.w!=w){this.bg.style.width=_bdf.w+"px";}if(_bdf.h!=h){this.bg.style.height=_bdf.h+"px";}}},_showBackground:function(){if(this.bgOpacity>0){this.bg.style.display="block";}},placeModalDialog:function(e){var _be4=dojo._docScroll();if(this.width!=0){this.domNode.style.width=this.width+"px";}if(this.height!=0){this.domNode.style.height=this.height+"px";}if(e&&e.type=="forceClick"){var _be5=dijit.getViewport();var mb;var _be7;if(this.isShowing()){mb=dojo.marginBox(this.domNode);_be7=dojo._getPadBorderExtents(this.domNode);}else{dojo.style(this.domNode,"visibility","hidden");dojo.style(this.domNode,"display","");mb=dojo.marginBox(this.domNode);_be7=dojo._getPadBorderExtents(this.domNode);}var x=_be4.x+(_be5.w-mb.w)/2;var y=_be4.y+(_be5.h-mb.h)/2;var _bea=_be5.h-_be7.h;if(_be5.h<mb.h){this._scrollConnected=false;dojo.disconnect(this.scrollConnect);y=0;}else{if(this.containerNode.scrollHeight){var _beb=this.containerNode.scrollHeight+_be7.h;if(_beb>mb.h&&_beb<_bea){this._scrollConnected=false;dojo.disconnect(this.scrollConnect);}}}this.initialLeft=x;this.initialTop=y;with(this.domNode.style){left=x+"px";top=y+"px";}this.domNode.style.visibility="visible";return;}if(typeof (e)!="undefined"&&arguments.length!=0){var _bec=dijit.getViewport();var _bed;if(this.isShowing()){_bed=this.width;}else{dojo.style(this.domNode,"visibility","hidden");dojo.style(this.domNode,"display","");_bed=dojo.marginBox(this.domNode).w;}if((e.pageX+_bed-_be4.x)>_bec.w){this.initialLeft=(_bec.w-_bed+_be4.x)-10;}else{this.initialLeft=e.pageX;}with(this.domNode.style){left=this.initialLeft+"px";top=e.pageY+"px";}this.initialTop=e.pageY-_be4.y;}else{var x=this.initialLeft;var y=_be4.y+this.initialTop;with(this.domNode.style){left=x+"px";top=y+"px";}}this.domNode.style.visibility="visible";},_onKey:function(evt){if(evt.key){var node=evt.target;while(node!=null){if(node==this.domNode){return;}node=node.parentNode;}if(evt.key!=evt.KEY_TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this.tabStart.focus();}catch(e){}}}}},showModalDialog:function(e){if(this.followScroll&&!this._scrollConnected){this._scrollConnected=true;this.scrollConnect=dojo.connect(window,"onscroll",this,"_onScroll");}this.keyConnect=dojo.connect(document.documentElement,"onkey",this,"_onKey");this.placeModalDialog(e);this.setBackgroundOpacity();this._sizeBackground();this._showBackground();this._fromTrap=true;setTimeout(dojo.hitch(this,function(){try{this.tabStart.focus();}catch(evt){}}),50);},hideModalDialog:function(){if(this.focusElement){dojo.byId(this.focusElement).focus();dojo.byId(this.focusElement).blur();}this.bg.style.display="none";this.bg.style.width=this.bg.style.height="1px";dojo.disconnect(this.keyConnect);if(this._scrollConnected){this._scrollConnected=false;dojo.disconnect(this.scrollConnect);}},isShowing:function(){return dojo.style(this.domNode,"display")!="none";},_onScroll:function(){var _bf1=dojo._docScroll();this.bg.style.top=_bf1.y+"px";this.bg.style.left=_bf1.x+"px";this.placeModalDialog();},checkSize:function(){if(this.isShowing()){this._sizeBackground();this.placeModalDialog();this.onResized();}},onBackgroundClick:function(){if(this.bgClickConnect){dojo.disconnect(this.bgClickConnect);}if(this.lifetime-this.timeRemaining>=this.blockDuration){return;}this.hide();}});dojo.declare("aol.widget.Dialog",[dijit.layout.ContentPane,aol.widget.ModalDialogBase,dijit._Templated],{templateString:"<div class=\"${className}\" dojoattachpoint=\"wrapper\"><span dojoattachpoint=\"tabStartOuter\" dojoAttachEvent=\"onfocus: trapTabs, onblur: clearTrap\" tabindex=\"0\"></span><span dojoattachpoint=\"tabStart\" dojoAttachEvent=\"onfocus: trapTabs, onblur: clearTrap\" tabindex=\"0\"></span><div dojoattachpoint=\"containerNode\" style=\"position: relative; z-index: 2;\"></div><span dojoattachpoint=\"tabEnd\" dojoAttachEvent=\"onfocus: trapTabs, onblur: clearTrap\" tabindex=\"0\"></span><span dojoattachpoint=\"tabEndOuter\" dojoAttachEvent=\"onfocus: trapTabs, onblur: clearTrap\" tabindex=\"0\"></span></div>",preload:true,className:"",blockDuration:0,lifetime:0,closeNode:"",postMixInProperties:function(){this.inherited("postMixInProperties",arguments);if(this.closeNode){this.setCloseControl(this.closeNode);}},postCreate:function(){this.inherited("postCreate",arguments);aol.widget.ModalDialogBase.prototype.postCreate.apply(this,arguments);},show:function(e){if(e&&e=="forceClick"){e={type:"forceClick"};}if(this.lifetime){this.timeRemaining=this.lifetime;if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);}if(this.blockDuration&&this.closeNode){if(this.lifetime>this.blockDuration){this.closeNode.style.visibility="hidden";}else{this.closeNode.style.display="none";}}if(this.timer){clearInterval(this.timer);}this.timer=setInterval(dojo.hitch(this,"_onTick"),100);}this.showModalDialog(e);},onLoad:function(){this.placeModalDialog();this.inherited("onLoad",arguments);},fillInTemplate:function(){},hide:function(){this.hideModalDialog();if(this.timer){clearInterval(this.timer);}this.domNode.style.display="none";},setTimerNode:function(node){this.timerNode=node;},setCloseControl:function(node){this.closeNode=dojo.byId(node);dojo.connect(this.closeNode,"onclick",this,"hide");},setShowControl:function(node){node=dojo.byId(node);dojo.connect(node,"onclick",this,"show");},_onTick:function(){if(this.timer){this.timeRemaining-=100;if(this.lifetime-this.timeRemaining>=this.blockDuration){if(this.closeNode){this.closeNode.style.visibility="visible";}}if(!this.timeRemaining){clearInterval(this.timer);this.hide();}else{if(this.timerNode){this.timerNode.innerHTML=Math.ceil(this.timeRemaining/1000);}}}}});}if(!dojo._hasResource["aol.my.tray.Manager"]){dojo._hasResource["aol.my.tray.Manager"]=true;dojo.provide("aol.my.tray.Manager");dojo.declare("aol.my.tray.Manager",null,{init:function(){this.tray=null;this.showing=null;dojo.connect(dojo.byId("newHere"),"onclick",this,"fetchFtux");dojo.subscribe("/aol.event.TabChanged",this,"tabChanged");dojo.subscribe("/aol.event.NewTabAdded",this,"newTab");dojo.subscribe("/aol.event.FavsTabDestroy",this,"enableFavs");dojo.subscribe("/aol.event.MagnetTabDestroy",this,"enableMagnet");aol.common.ReportingManager.initTray(this);},hideTray:function(evt){if(g_trayAsDialog=="true"){aol.my.App.trayManager.widget.hide();}else{if(dojo.byId("tray")!=null){dojo.byId("tray").style.display="none";dojo.byId("itray").style.display="none";}}},openTrayWithThemes:function(evt){if(dojo.byId("ftux")){dojo.byId("ftux").style.display="none";}if(dojo.byId("ftuxDone")){dojo.byId("ftuxDone").style.display="none";}this.currentTheme=aol.my.ThemeManager.getCurrentTheme();this.themeChanged=false;if(this.itray!=null){this.tray.style.display="block";this.showThemes0("fromHat");}else{dojo.xhrPost({url:"/tray.jsp",content:{begin:"0",data:"themes",view:"tray"},handleAs:"text",preventCache:true,error:function(data,_bf9){alert("Error: cannot fetch tray ");},load:dojo.hitch(this,function(data,_bfb){if(dojo.byId("ftux")){aol.my.App.ftuxManager.hideFtux();}this.tray=dojo.byId("itray");this.tray.innerHTML=data;this.tray.style.display="block";this.trayInit();dojo.byId("showThemes").style.background="#d4e6f3";this.showing=dojo.byId("showThemes");})});}},openTray:function(evt){dojo.byId("ftux").style.display="none";if(dojo.byId("ftuxDone")){dojo.byId("ftuxDone").style.display="none";}if(this.itray!=null){this.showModules0("force");}else{dojo.xhrPost({url:"/tray.jsp",content:{begin:"0",category:"featured",data:"modules",view:"tray"},handleAs:"text",preventCache:true,error:function(data,_bfe){alert("Error: cannot fetch tray ");},load:dojo.hitch(this,function(data,_c00){this.tray=dojo.byId("itray");this.tray.innerHTML=data;this.tray.style.display="block";this.trayInit();dojo.byId("showModules").style.background="#d4e6f3";this.showing=dojo.byId("showModules");})});}},showTrayAsDialog:function(){this.showing=dojo.byId("showModules");if(this.tray!=null){}else{this.tray=dojo.byId("dtray");this.trayInit();}this._updateHilite("showModules");},showModules0:function(evt){this.showModules("0");this._updateHilite("showModules");},showModules:function(_c02){dojo.xhrPost({url:"/trayRHS.jsp",content:{begin:_c02,category:"featured",data:"modules",view:"trayRHS"},handleAs:"text",preventCache:true,error:function(data,_c04){alert("Error: cannot fetch tray modules");},load:dojo.hitch(this,function(data,_c06){var _c07=document.createElement("div");_c07.id="trayrhs";_c07.innerHTML=data;var tray=dojo.byId("trayrhs");var _c09=tray.parentNode.replaceChild(_c07,tray);dojo._destroyElement(_c09);this.tray.style.display="block";})});},prevModules:function(_c0a){this.showModules(_c0a-g_modulesPerPage);},nextModules:function(_c0b){this.showModules(++_c0b);},showThemes0:function(evt){this.showThemes("0");this._updateHilite("showThemes");},showThemes:function(_c0d){this.currentTheme=aol.my.ThemeManager.getCurrentTheme();this.themeChanged=false;if(this.trayThemes==null){dojo.xhrPost({url:"/trayRHS.jsp",content:{begin:_c0d,data:"themes",view:"trayRHS"},handleAs:"text",preventCache:true,error:function(data,_c0f){alert("Error: cannot fetch themes");},load:dojo.hitch(this,function(data,_c11){var _c12=document.createElement("div");_c12.id="trayrhs";_c12.innerHTML=data;var tray=dojo.byId("trayrhs");var _c14=tray.parentNode.replaceChild(_c12,tray);dojo._destroyElement(_c14);if(this.themeChanged==true){dojo.byId("undoDiv").style.display="block";}})});}},nextThemes:function(_c15){this.showThemes(++_c15);},prevThemes:function(_c16){this.showThemes(_c16-g_themesPerPage);},undoTheme:function(){aol.my.ThemeManager.update(this.currentTheme);},updateTheme:function(_c17){dojo.byId("undoDiv").style.display="block";aol.my.ThemeManager.update(_c17);this.themeChanged=true;},showRMPages0:function(evt){this.showRMPages("0");this._updateHilite("showRMPages");},showRMPages:function(_c19){if(this.trayReadyMadePages==null){dojo.xhrPost({url:"/trayRHS.jsp",content:{begin:_c19,data:"readyMadePages",view:"trayRHS"},handleAs:"text",preventCache:true,error:function(data,_c1b){alert("Error: cannot fetch ready made pages");},load:dojo.hitch(this,function(data,_c1d){var _c1e=document.createElement("div");_c1e.id="trayrhs";_c1e.innerHTML=data;var tray=dojo.byId("trayrhs");var _c20=tray.parentNode.replaceChild(_c1e,tray);this._checkMagFavs();dojo._destroyElement(_c20);})});}},nextRMPages:function(_c21){this.showRMPages(++_c21);},prevRMPages:function(_c22){this.showRMPages(_c22-g_rmpPerPage);},showGadgets:function(){if(this.trayFeeds==null){dojo.xhrPost({url:"/trayRHS.jsp",content:{data:"gadgets",view:"trayRHS"},handleAs:"text",preventCache:true,error:function(data,_c24){alert("Error: cannot fetch gadgets page");},load:dojo.hitch(this,function(data,_c26){var div=document.createElement("div");div.id="trayrhs";div.innerHTML=data;var tray=dojo.byId("trayrhs");var _c29=tray.parentNode.replaceChild(div,tray);dojo._destroyElement(_c29);this._updateHilite("showGadgets");var _c2a=dojo.byId("inputUrlSuccess");dojo.connect(dojo.byId("addToPageBtn"),"onclick",aol.my.App.trayManager,"insertGadget");dojo.connect(dojo.byId("gadgetUrl"),"onkeydown",function(e){if(_c2a==null){_c2a=dojo.byId("inputUrlSuccess");}if(_c2a&&_c2a.style.display=="inline"){_c2a.style.display="none";}if(e.keyCode==dojo.keys.ENTER){aol.my.App.trayManager.insertGadget(e);}if(e.keyCode==dojo.keys.ESCAPE){setTimeout(function(){e.target.value="";},0);}});setTimeout(function(){try{dojo.byId("gadgetUrl").focus();}catch(e){}},10);})});}},insertGadget:function(evt){var gls=aol.my.App.getLocalizedString;var _c2e=function(on){var icon=dojo.byId("inputUrlBusy");icon.style.display=on?"inline":"none";};var _c31=function(on){var icon=dojo.byId("inputUrlSuccess");icon.style.display=on?"inline":"none";};var _c34=function(){var _c35=dojo.byId("gadgetUrl");var _c36=_c35.cloneNode(true);_c35.parentNode.replaceChild(_c36,_c35);var _c37=dojo.byId("inputUrlSuccess");dojo.connect(_c36,"onkeydown",function(e){if(_c37==null){_c37=dojo.byId("inputUrlSuccess");}if(_c37&&_c37.style.display=="inline"){_c37.style.display="none";}if(e.keyCode==dojo.keys.ENTER){aol.my.App.trayManager.insertGadget(e);}if(e.keyCode==dojo.keys.ESCAPE){setTimeout(function(){e.target.value="";},0);}});};var _c39=function(){_c3a(true);if(dojo.isFF){_c34();}try{dojo.byId("gadgetUrl").select();dojo.byId("gadgetUrl").focus();}catch(e){}};var _c3b=function(){_c3a();alert(gls("Operation failed, please try later"));if(dojo.isFF){_c34();}try{dojo.byId("gadgetUrl").focus();}catch(e){}};var _c3c=function(){dojo.byId("trayrhs").style.cursor="wait";dojo.byId("gadgetUrl").disabled=true;dojo.byId("addToPageBtn").disabled=true;_c2e(true);_c31(false);};var _c3a=function(_c3d){dojo.byId("trayrhs").style.cursor="default";dojo.byId("gadgetUrl").disabled=false;dojo.byId("addToPageBtn").disabled=false;_c2e(false);if(_c3d){_c31(true);}};var url=dojo.trim(dojo.byId("gadgetUrl").value);if(url.toLowerCase().indexOf("http://")!=0){alert(gls("Please enter a valid URL!"));return;}_c3c();aol.startpage.ServerAPI.resolveDoc(url,function(res){if(!res){_c3a();alert(gls("Error: cannot process URL"));}else{var _c40="\n\n"+gls("Please make sure the URL is correct.")+"\n";if("GADGET"==res.docStatus){aol.my.ModuleManager.insertGadget(url,_c39,_c3b);}else{if("FEED"==res.docStatus){aol.my.ModuleManager.insertFeed(url,_c39,_c3b);}else{if("READ_ERR"==res.docStatus){alert(gls("URL read error!")+_c40);_c3a();}else{if("INVALID"==res.docStatus){alert(gls("The specified URL is neither a gadget not a feed!")+_c40);_c3a();}else{alert(gls("Error: cannot process URL")+", "+res.docStatus);_c3a();}}}}}});},showFeeds:function(){if(this.trayFeeds==null){dojo.xhrPost({url:"/trayRHS.jsp",content:{data:"feeds",view:"trayRHS"},handleAs:"text",preventCache:true,error:function(data,_c42){alert("Error: cannot fetch feed page");},load:dojo.hitch(this,function(data,_c44){var _c45=document.createElement("div");_c45.id="trayrhs";_c45.innerHTML=data;var tray=dojo.byId("trayrhs");var _c47=tray.parentNode.replaceChild(_c45,tray);dojo._destroyElement(_c47);this._updateHilite("showFeeds");dojo.connect(dojo.byId("addToPageBtn"),"onclick",this,"addRSSFeed");})});}},addRSSFeed:function(evt){var url=dojo.byId("rssUrl").value;if(dojo.trim(url)==""){alert(aol.my.App.getLocalizedString("Please enter a feed URL"));return;}aol.my.ModuleManager.addFeedWidget(url);},_checkMagFavs:function(){if(dojo.byId("tab-favs")!=null&&dojo.byId("rmp_favs")!=null){dojo.byId("rmp_favs").className="imagesDiv2 disable";}if(dojo.byId("tab-magnet")!=null&&dojo.byId("rmp_magnet")!=null){dojo.byId("rmp_magnet").className="imagesDiv2 disable";}},gotoGallery:function(evt){if(evt&&typeof evt=="object"){dojo.stopEvent(evt);}var _c4b="&tabId="+aol.my.App.tabManager.getCurrentTab().getId()+"&locale="+g_locale+"&brand="+g_brand+"&from=gallery";var url;if(evt&&typeof evt=="string"){url=g_moduleGalleryUrl.substring(0,g_moduleGalleryUrl.indexOf("category"))+"detail?id="+evt+_c4b;}else{url=g_moduleGalleryUrl+_c4b;}window.location=url;},addModule:function(id,_c4e,_c4f){if(_c4e!=null&&_c4e!=""){aol.my.ModuleManager.createGadget(_c4e,0,function(){dojo.byId("add_"+id).className="addedBtn";});}else{aol.my.ModuleManager.createModule(id,0,function(){dojo.byId("add_"+id).className="addedBtn";});}dojo.publish("/aol.event.tray.addModules",[{ids:id}]);},addReadyMadePage:function(id){var _c51=aol.my.Constants.defaultTabType;var _c52=id;if(id=="magnet"){if(dojo.byId("tab-magnet")!=null){alert(aol.my.App.getLocalizedString("Only one Recommendations page is allowed and you already have one."));return false;}_c51="magnet";_c52="";}else{if(id=="favs"){if(dojo.byId("tab-favs")!=null){alert(aol.my.App.getLocalizedString("Only one Bookmarks & Feeds page is allowed and you already have one."));return false;}_c51="favs";_c52="";}}aol.my.App.tabManager.addPreconfiguredTab(_c51,_c52,null,function(_c53){if(_c53=="success"){dojo.publish("/aol.event.tray.addPage",[_c52]);if(id=="favs"&&dojo.byId("rmp_favs")!=null){dojo.byId("rmp_favs").className="imagesDiv2 disable";}if(id=="magnet"&&dojo.byId("rmp_magnet")!=null){dojo.byId("rmp_magnet").className="imagesDiv2 disable";}dojo.byId("add_"+id).className="addedBtn";}return true;});},trayInit:function(){dojo.connect(dojo.byId("showModules"),"onclick",this,"showModules0");dojo.connect(dojo.byId("showThemes"),"onclick",this,"showThemes0");if(dojo.byId("showRMPages")){dojo.connect(dojo.byId("showRMPages"),"onclick",this,"showRMPages0");}if(dojo.byId("showGadgets")){dojo.event.connect(dojo.byId("showGadgets"),"onclick",this,"showGadgets");}if(dojo.byId("showFeeds")){dojo.event.connect(dojo.byId("showFeeds"),"onclick",this,"showFeeds");}dojo.event.connect(dojo.byId("closeDiv"),"onclick",this,"hideTray");dojo.event.connect(dojo.byId("traydoneBtn"),"onclick",this,"hideTray");dojo.event.connect(dojo.byId("trayClose"),"onclick",this,"hideTray");var _c54=this;dojo.query("li",dojo.byId("tray")).forEach(function(tab){if(tab.scrollWidth>tab.offsetWidth){_c54._handleTextOverflow(tab);}});},_handleTextOverflow:function(tab){var _c57=tab.getElementsByTagName("a")[0];var _c58=this;if(dojo.isFF){tab.short_text=tab.full_text=_c57.innerHTML;while(tab.offsetWidth<tab.scrollWidth){tab.short_text=tab.short_text.substring(0,tab.short_text.length-1);_c57.innerHTML=tab.short_text+"&hellip;";}}dojo.event.connect(_c57,"onmouseover",function(e){if(_c58.showing==tab){return;}if(dojo.isFF){_c57.innerHTML=tab.full_text;}tab.style.overflow="visible";tab.style.position="relative";tab.style.zIndex="10";var _c5a=dojo.getComputedStyle(tab).backgroundColor;_c57.style.backgroundColor=_c5a;});dojo.event.connect(_c57,"onmouseout",function(e){if(_c58.showing==tab){return;}if(dojo.isFF){_c57.innerHTML=tab.short_text+"&hellip;";}tab.style.overflow="hidden";_c57.style.backgroundColor="transparent";});dojo.event.connect(_c57,"onclick",function(e){if(_c58.showing==tab){return;}if(dojo.isFF){_c57.innerHTML=tab.short_text+"&hellip;";}tab.style.overflow="hidden";_c57.style.backgroundColor="transparent";});},_updateHilite:function(_c5d){this.showing.style.background="#FFF";dojo.byId(_c5d).style.background="#d4e6f3";this.showing=dojo.byId(_c5d);},tabChanged:function(tab){var _c5f=tab.domNode.id.substring(4);if(_c5f=="favs"||_c5f=="magnet"){if(aol.my.App.user.isFirstTimeUser()){aol.my.App.ftuxManager.hideFtux();}else{aol.my.App.ftuxManager.hideFtuxDone("tabChanged");this.hideTray();}}else{if(aol.my.App.user.isFirstTimeUser()&&dojo.byId("ftux")==null){this.fetchFtux();}else{if(this.tray!=null){this.hideTray();}}}},newTab:function(evt){if(aol.my.App.ftuxManager&&dojo.byId("ftux")){aol.my.App.ftuxManager.hideFtux();}if(g_trayAsDialog=="false"){this.openTray();}else{aol.my.App.loadTray(evt);}},enableFavs:function(){var n=dojo.byId("rmp_favs");if(!n){return;}n.className="imagesDiv2";},enableMagnet:function(){var n=dojo.byId("rmp_magnet");if(!n){return;}n.className="imagesDiv2";},fetchFtux:function(){if(this.tray!=null){this.tray.style.display="none";}dojo.byId("ftuxDone").style.display="none";aol.my.App.ftuxManager.showFtux();}});}if(!dojo._hasResource["aol.my.tabs.Scroller"]){dojo._hasResource["aol.my.tabs.Scroller"]=true;dojo.provide("aol.my.tabs.Scroller");(function(){var s={curLeftIdx:0,curRightIdx:-1,tabsOffsetLeft:[],tabsOffsetRight:[],tabbarOffset:undefined,calcTabsWidth:0,calcViewportWidth:0,selectedTab:-1,needScrollTabs:false,rightGap:0,leftGap:0,logLevel:0,toString:function(){var str="{";for(prop in this){if(prop=="toString"){continue;}if(!this.hasOwnProperty(prop)){continue;}str+=prop+":"+this[prop]+" ";}return str+"}";}};function logLevel(_c65){if(arguments.length==0){return s.logLevel;}return s.logLevel=parseInt(_c65);};function log(){if(s.logLevel<1){return;}var _c66=arguments[0];if(s.logLevel>=_c66){var args=[].slice.call(arguments,1);if(console&&typeof console.debug=="function"){console.debug.apply(console,args);}else{if(console&&typeof console.log=="function"){console.log.apply(console,args);}}}};function scanTabs(){try{var _c68=dojo.byId("tabsWrap").offsetWidth;var _c69=0;s.tabsOffsetLeft.length=0;s.tabsOffsetRight.length=0;s.curLeftIdx=0;s.curRightIdx=-1;s.tabbarOffset=parseInt(dojo.getComputedStyle(dojo.byId("tabs")).left);s.selectedTab=-1;s.calcTabsWidth=0;dojo.query("li",dojo.byId("tabs")).forEach(function(tab,idx){s.tabsOffsetLeft.push(tab.offsetLeft);if(tab.offsetLeft+s.tabbarOffset<0){s.curLeftIdx++;}var _c6c=tab.offsetLeft+tab.offsetWidth;s.tabsOffsetRight.push(_c6c);if(_c6c<=_c68-s.tabbarOffset){s.curRightIdx++;}if(dojo.hasClass(tab,"selected")){s.selectedTab=idx;}s.calcTabsWidth+=tab.offsetWidth+parseInt(dojo.getComputedStyle(tab).marginLeft)+(_c69=parseInt(dojo.getComputedStyle(tab).marginRight));});s.calcTabsWidth-=_c69;var _c6d=!dojo.hasClass(dojo.byId("scrollTabs"),"noscroll");var _c6e=dojo.byId("tabbar").offsetWidth;var _c6f=dojo.byId("tabBtnBay").offsetWidth+parseInt(dojo.query("#tabBtnBay").style("right"));var _c70=_c6e-_c6f;s.needScrollTabs=s.calcTabsWidth>_c70;if(_c6d){if(!s.needScrollTabs){dojo.byId("tabsWrap").style.width="auto";dojo.byId("tabs").style.left="auto";dojo.query("#scrollTabs").addClass("noscroll");return;}s.calcViewportWidth=_c70-parseInt(dojo.query("#tabsWrap").style("marginRight"))-parseInt(dojo.query("#tabsWrap").style("marginLeft"));s.leftGap=s.tabbarOffset>0?s.tabbarOffset:0;s.rightGap=s.calcViewportWidth-s.calcTabsWidth-s.tabbarOffset;s.rightGap=s.rightGap>0?s.rightGap:0;if(s.calcViewportWidth!=_c68){dojo.query("#tabsWrap").style("width",s.calcViewportWidth+"px");setTimeout(function(){scrollToSelectedTab("resizeViewport");},100);return;}}else{if(s.needScrollTabs){dojo.query("#scrollTabs").removeClass("noscroll");setTimeout(function(){scrollToSelectedTab("scrollOn");},100);return;}}if(s.curLeftIdx==0){dojo.addClass(dojo.byId("scrollLeft"),"disabled");}else{dojo.removeClass(dojo.byId("scrollLeft"),"disabled");}if(s.curRightIdx==s.tabsOffsetRight.length-1){dojo.addClass(dojo.byId("scrollRight"),"disabled");}else{dojo.removeClass(dojo.byId("scrollRight"),"disabled");}}finally{log(2,s);}};function moveTabs(_c71,cb){dojo.animateProperty({node:"tabs",duration:400,properties:{left:_c71},onEnd:cb||scanTabs}).play(0);};function scrollTabsLeft(){log(1,"scrollTabsLeft");scanTabs();if(s.curLeftIdx==0){return;}var _c73=0-s.tabsOffsetLeft[--s.curLeftIdx];moveTabs(_c73);};function scrollLeftToTab(idx){log(1,"scrollLeftToTab",idx);scanTabs();idx=idx||0;var _c75=0-s.tabsOffsetLeft[idx];moveTabs(_c75);};function scrollTabsRight(){log(1,"scrollTabsRight");scanTabs();var _c76=dojo.byId("tabsWrap");var _c77=_c76.offsetWidth;if(s.curRightIdx==s.tabsOffsetRight.length-1){return;}var _c78=_c77-s.tabsOffsetRight[++s.curRightIdx];moveTabs(_c78);};function scrollRightToTab(idx){log(1,"scrollRightToTab",idx);scanTabs();idx=idx||(s.tabsOffsetRight.length-1);var _c7a=dojo.byId("tabsWrap").offsetWidth;var _c7b=_c7a-s.tabsOffsetRight[s.curRightIdx=idx];moveTabs(_c7b,function(){scanTabs();_c7a=dojo.byId("tabsWrap").offsetWidth;_c7b=_c7a-s.tabsOffsetRight[idx];dojo.query("#tabs").style("left",_c7b+"px");});};function scrollToTab(idx){if(idx>=s.curLeftIdx&&idx<=s.curRightIdx){return;}if(idx<s.curLeftIdx){scrollLeftToTab(idx);}else{if(idx>s.curRightIdx){scrollRightToTab(idx);}}};function scrollCloseGaps(){if(s.rightGap){moveTabs(s.tabbarOffset+s.rightGap);}if(s.leftGap){moveTabs(0);}};function scrollToSelectedTab(text){var _c7e=s.tabsOffsetLeft.length;log(1,"scrollToSelectedTab "+text);scanTabs();if(!s.needScrollTabs){return;}var _c7f=s.tabsOffsetLeft.length;if(_c7e>0&&_c7f!=_c7e){if(_c7f>_c7e){scrollRightToTab(s.selectedTab);}else{if(_c7f<_c7e){if(s.selectedTab<0){}else{if(s.curLeftIdx==0){scrollLeftToTab(0);}else{if(s.selectedTab<s.curLeftIdx){scrollLeftToTab(s.selectedTab);}else{if(s.curRightIdx==_c7f-1){scrollRightToTab(_c7f-1);}else{if(s.selectedTab>s.curRightIdx){scrollRightToTab(s.selectedTab);}}}}}}}return;}if(s.selectedTab>=0&&s.selectedTab==s.curLeftIdx-1){scrollTabsLeft();}else{if(s.selectedTab>=0&&s.selectedTab<s.curLeftIdx){scrollLeftToTab(s.selectedTab);}else{if(s.selectedTab>=0&&s.selectedTab==s.curRightIdx+1){scrollTabsRight();}else{if(s.selectedTab>=0&&s.selectedTab>s.curRightIdx){scrollRightToTab(s.selectedTab);}else{if(s.leftGap+s.rightGap>0){scrollCloseGaps();}}}}}};function hideTabList(e){dojo.style(dojo.byId("tabList"),"display","none");if(hideTabList.handle){dojo.disconnect(hideTabList.handle);hideTabList.handle=null;}};function toggleTabList(e){var _c82=getTabList();if(dojo.style(_c82,"display")=="none"){scrollToSelectedTab("tabList");fillTabList(_c82);dojo.style(_c82,"display","block");hideTabList.handle=dojo.connect(document.body,"onclick",hideTabList);}else{dojo.style(_c82,"display","none");}};function fillTabList(_c83){var tabs=dojo.byId("tabs");var list=document.createElement("ul");dojo.forEach(tabs.getElementsByTagName("a"),function(cA,idx){var li=document.createElement("li");var cLI=util_getAncestorNodeByTag(cA,"li");if(dojo.hasClass(cLI,"selected")){dojo.addClass(li,"selected");}else{var _c8a=dojo.getComputedStyle(cLI).borderTopColor;var _c8b=dojo.getComputedStyle(cLI).backgroundColor;dojo.style(_c83,{"borderTopColor":_c8a,"borderLeftColor":_c8a,"borderRightColor":_c8a,"borderBottomColor":_c8a,"backgroundColor":_c8b});}var a=document.createElement("a");a.innerHTML=cA.innerHTML;dojo.attr(a,"href","javascript:void(0)");dojo.style(a,"color",dojo.getComputedStyle(cA).color);li.appendChild(a);dojo.place(li,list,"last");});_c83.innerHTML="";_c83.appendChild(list);};function getTabList(){var _c8d=dojo.byId("tabList");if(_c8d==null){_c8d=document.createElement("div");_c8d.id="tabList";_c8d.style.display="none";dojo.byId("scrollTabs").appendChild(_c8d);dojo.connect(_c8d,"onclick",function(e){if(e.target.tagName=="A"){var _c8f=util_getAncestorNodeByTag(e.target,"li");if(!_c8f||dojo.hasClass(_c8f,"selected")){return;}var idx=util_elIdx(_c8f);scrollToTab(idx);var _c91=aol.my.App.tabManager;var node=util_getChildNodesByTag(dojo.byId("tabs"),"li")[idx];setTimeout(function(){if(!_c91||!node||!_c91.currentTab){return;}_c91.currentTab.blur();_c91.changeTab(node);},750);}});}return _c8d;};function util_elIdx(el){var idx=0;var tag=el.tagName;while(el.previousSibling){el=el.previousSibling;if(el.tagName==tag){idx++;}}return idx;};function util_getAncestorNodeByTag(el,tag){tag=tag&&tag.toUpperCase();el=el&&el.parentNode;while(el&&tag&&el.nodeName.toUpperCase()!=tag){el=el.parentNode;}return (el&&el.nodeName.toUpperCase()==tag)?el:null;};function util_getChildNodesByTag(el,tag){var _c9a=[];tag=tag&&tag.toUpperCase();for(var i=0,len=el?el.childNodes.length:0;i<len;i++){var node=el.childNodes[i];if(node.nodeName.toUpperCase()==tag){_c9a.push(node);}}return _c9a;};function util_monitorFontSize(){var mon=document.createElement("div");mon.id="fontSizeMon";mon.innerHTML="X";document.body.appendChild(mon);var _c9f=-1,_ca0=-1;setTimeout(function(){var w=mon.offsetWidth,h=mon.offsetHeight;if(_c9f!=-1){if(_c9f!=w||_ca0!=h){scrollToSelectedTab("fontSize");}}_c9f=w;_ca0=h;setTimeout(arguments.callee,500);},5000);};function initScrollTabs(){if(!dojo.byId("scrollTabs")){return;}var _ca3=/tabs.Scroller.logLevel=(\d+)/i.exec(location.search);if(_ca3){s.logLevel=parseInt(_ca3[1]);}if(!dojo.hasClass(dojo.byId("scrollTabs"),"noinit")){return;}dojo.removeClass(dojo.byId("scrollTabs"),"noinit");if(navigator.userAgent.indexOf("Opera")!=-1){dojo.addClass(document.body,"opera");}dojo.connect(dojo.byId("tabListBtn"),"onclick",function(e){toggleTabList(e);e.stopPropagation();});dojo.connect(dojo.byId("scrollLeft"),"onclick",function(e){scrollTabsLeft();});dojo.connect(dojo.byId("scrollRight"),"onclick",function(e){scrollTabsRight();});dojo.subscribe("/aol.event.TabChanged",null,function(){setTimeout(function(){scrollToSelectedTab("TabChanged");},100);});dojo.connect(window,"onresize",function(){var w=document.documentElement.clientWidth;var h=document.documentElement.clientHeight;if(s.winWidth==w&&s.winHeight==h){log(1,"reject window resize event - no size change");return;}else{log(1,"winResize curSize=",s.winWidth+"x"+s.winHeight,"newSize=",w+"x"+h);}s.winWidth=w;s.winHeight=h;var size=w+"x"+h;setTimeout(function(){scrollToSelectedTab("winResize");},100);});s.winWidth=document.documentElement.clientWidth;s.winHeight=document.documentElement.clientHeight;scrollToSelectedTab("init");if(dojo.isFF&&dojo.isFF<3){util_monitorFontSize();}};aol.my.tabs.Scroller={update:function(text){if(!dojo.byId("scrollTabs")){return;}setTimeout(function(){scrollToSelectedTab(text);},100);},logLevel:logLevel,_moveTabs:moveTabs,_scrollToSelectedTab:scrollToSelectedTab,_s:s};dojo.addOnLoad(function(){initScrollTabs();});})();}if(!dojo._hasResource["aol.my.tabs.Manager"]){dojo._hasResource["aol.my.tabs.Manager"]=true;dojo.provide("aol.my.tabs.Manager");aol.my.tabs.quigoCBs={};dojo.declare("aol.my.tabs.Manager",null,{constructor:function(_cab){this._tabs={};this._userAppTabs=[];var _cac="";dojo.subscribe("/aol.event.ThemeChanged",this,"themeChanged");var _cad=false;for(var i=0,cTab;i<this.getTabNodes().length;i++){var _cb0;var type;var _cb2=this.getTabNodes();switch(_cb2[i].id.substring(4)){case "magnet":type="magnet";_cb0=true;break;case "favs":type="favs";_cb0=true;break;default:type="my";_cb0=false;}cTab=new aol.my.tabs.Tab(_cb2[i],_cb0,type,_cab[i]);if(_cb0){this._userAppTabs.push(type);}this._tabs[_cb2[i].id]=cTab;if(this.isInFocus(_cb2[i])||(i==(this.getTabNodes().length-1)&&!_cad)){this.currentTab=cTab;this.initialTab=cTab;cTab.preload();cTab.focus();_cad=true;}dojo.connect(_cb2[i],"onclick",this,"clickHandler");dojo.connect(_cb2[i],"onmouseover",this,"_onMouseover");dojo.connect(_cb2[i],"onmouseout",this,"_onMouseout");}dojo.connect(dojo.byId("addTab"),"onclick",this,"addTab");dojo.subscribe("/aol.event.MagnetSearch2",this,"magnetBroker");dojo.subscribe("/aol.event.MagnetReady",this,"magnetBroker");dojo.subscribe("dragEnd",this,"doDropTargetCleanup");aol.my.tabs.deleteGoToTabCookie();this.initDnd();},toggleModules:function(e){var _cb4;if(dojo.hasClass(e.target,"min")){_cb4=true;}else{if(dojo.hasClass(e.target,"max")){_cb4=false;}else{return;}}if(_cb4){this.getCurrentTab().toggleState="expand";dojo.byId("expandAll").style.display="block";dojo.byId("collapseAll").style.display="none";}else{this.getCurrentTab().toggleState="collapse";dojo.byId("expandAll").style.display="none";dojo.byId("collapseAll").style.display="block";}var _cb5=dojo.query(".module",this.getCurrentTab().getTabContentObj().domNode);var _cb6;dojo.forEach(_cb5,function(node){_cb6=aol.my.ModuleManager.getModuleFromNode(node);_cb6.toggle(_cb4);});dojo.publish("/aol.event.CollapseAll",[{"state":_cb4,"tab":this.getCurrentTab()}]);},getTabNodes:function(){return dojo.query(".tab",dojo.byId("tabs"));},getTabObjectById:function(id){return this._tabs[id];},getTabObjects:function(){return this._tabs;},isDeleteBtn:function(e){return e.target&&(dojo.hasClass(e.target,"dBtn")||dojo.hasClass(e.target.parentNode,"dBtn"));},clickHandler:function(evt){evt.preventDefault();var node=evt.currentTarget;if(this.isDeleteBtn(evt)){if(!this.currentTab.applicationTab){this._hideVisibleAd();}if(typeof (aol.my.App.deleteTabConfirm)=="undefined"){dojo["require"]("aol.widget.Dialog");var _cbc=this;this.tmpMouseEvt={type:"click",clientX:evt.clientX,clientY:evt.clientY,pageX:evt.pageX,pageY:evt.pageY};dojo.addOnLoad(function(){this.deleteLibDownloaded=false;var d=new aol.widget.Dialog({id:"deleteTabConfirm",bgColor:"white",followScroll:true,toggle:"fade",toggleDuration:150,href:"/widget/DeleteTabConfirm.jsp",onLoad:function(){aol.widget.Dialog.superclass.onLoad.call(this);if(_cbc.deleteLibDownloaded){return;}dojo.connect(dojo.byId("noDelete"),"onclick",aol.my.App.tabManager,"_showAd");dojo.connect(dojo.byId("closeTabConfirm"),"onclick",aol.my.App.tabManager,"_showAd");dojo.connect(dojo.byId("yesDelete"),"onclick",aol.my.App.tabManager,"deleteTab");d.show(_cbc.tmpMouseEvt);aol.my.App.deleteTabConfirm=d;}});dojo.body().appendChild(d.domNode);d.startup();});}else{aol.my.App.deleteTabConfirm.show(evt);}}else{if(node==this.currentTab.domNode){if(!this.currentTab.applicationTab){if(this.currentTab.creatingInlineWidget){return;}else{if(!this.currentTab.inlineWidget){this.currentTab.creatingInlineWidget=true;this.currentTab.makeTabEditable();}}}}else{if(!this.isDeleteBtn(evt)){this.currentTab.blur();this.changeTab(node);}}}},changeTab:function(node){var id=node;if(typeof (node)=="object"){id=node.id;}if(aol.my.Environment.getLocale()=="en_US"){if(this._tabs[id].getId()=="magnet"||this._tabs[id].getId()=="favs"){this._tabs[id]._clearAd();aol.my.App.tabManager.setLastAdId("");}else{if(this._tabs[id].preloaded){this._tabs[id]._resetAd(this.currentTab.getId());}}}this._tabs[id].focus();this.currentTab=this._tabs[id];dojo.publish("/aol.event.TabChanged",[this.currentTab]);},_showAd:function(){if(this.currentTab.applicationTab||!_cc0){aol.my.App.deleteTabConfirm.hide();return;}if(aol.my.Environment.getLocale()=="en_US"){var ad="adCodeDiv-"+this.currentTab.getId();aol.my.adsWrapper.adsClrAd(ad);var _cc0=dojo.byId(ad);aol.my.adsWrapper.adsReloadAd(_cc0.id);}else{dojo.byId("ad-"+this.currentTab.getId()).style.visibility="visible";}aol.my.App.deleteTabConfirm.hide();},_hideVisibleAd:function(){if(!myaolcfg.disableAds){if(aol.my.Environment.getLocale()=="en_US"){aol.my.adsWrapper.adsClrAd("adCodeDiv-"+this.currentTab.getId());}else{dojo.byId("ad-"+this.currentTab.getId()).style.visibility="hidden";}}},deleteTab:function(){this._showAd();var node=this.currentDeleteNode.parentNode.parentNode;this._tabs[node.id].destroy();delete this._tabs[node.id];aol.my.App.tabManager.setLastAdId("");if(this.currentTab.domNode==node){var _cc3=this.getTabNodes()[0];this.changeTab(_cc3);}aol.my.tabs.Scroller.update("tabDeleted");},addTab:function(evt,_cc5,type,_cc7,_cc8){if(!this.allowTabCreation()){alert(aol.my.App.getLocalizedString("Sorry, you have reached the maximum number of tabs."));return;}if(typeof (_cc7)=="undefined"){_cc7=true;}if(typeof (_cc8)=="undefined"||_cc8==null){_cc8=g_defaultTheme;}var _cc9=new aol.my.tabs.Tab(null,null,type,_cc8,_cc7);if(_cc5==true){_cc9.isNew=false;_cc9.isReadyMade=true;}this._tabs[_cc9.domNode.id]=_cc9;dojo.connect(_cc9.domNode,"onclick",this,"clickHandler");dojo.connect(_cc9.domNode,"onmouseover",this,"_onMouseover");dojo.connect(_cc9.domNode,"onmouseout",this,"_onMouseout");if(_cc7){_cc9.focus();this.currentTab.blur();this.currentTab=_cc9;aol.my.ThemeManager._swap(g_defaultTheme);}_cc9.setTitle();if(_cc9.isReadyMade&&type!="magnet"&&type!="favs"){if(_cc7){this._showReadyMadeBubble(_cc9);}}else{if(type!="magnet"&&type!="favs"){_cc9.saveNewTab(_cc7);}else{this._userAppTabs.push(type);}}if(_cc5!=true){dojo.publish("/aol.event.NewTabAdded",[_cc9]);}aol.my.tabs.Scroller.update("tabAdded");return _cc9;},allowTabCreation:function(){return this.getTabNodes().length<g_numOfTabs;},addPreconfiguredTab:function(_cca,_ccb,_ccc,_ccd){if(!this.allowTabCreation()){alert(aol.my.App.getLocalizedString("Sorry, you have reached the maximum number of tabs."));return;}var tabs=this.getTabNodes();var _ccf=tabs[tabs.length-1].id.substring(4);var _cd0=(typeof (_ccd)!="undefined"?_ccd:function(){});aol.startpage.ServerAPI.addTab(_ccc,_cca,_ccb,_ccf,null,dojo.lang.hitch(this,function(_cd1,data){if(_cd1=="success"){var _cd3=this.addTab(null,true,_cca,false,data.tab.theme);this.changeNodeIds(_cd3,data.tab.id,false);dojo.dnd.manager().tabContainerManager.makeDraggable(_cd3.domNode);_cd3.setNewTitle(data.tab.title);if(_cca!="magnet"&&_cca!="favs"){for(var i=0;i<data.tab.cells.length;i++){var cell=data.tab.cells[i];for(var j=0;j<cell.modules.length;j++){var _cd7=cell.modules[j];var _cd8=_cd3.getTabContentObj().getColumn(i);if(_cd7.format=="gadget"){aol.my.ModuleManager.addGadgetFromServer(_cd7.specUrl,{"gadget":_cd7,"id":_cd7.id},_cd8,true,false,false);}else{aol.my.ModuleManager.addModuleFromServer(_cd7,_cd8,true,false);}}}if(_cd0!=null){_cd0("success");}}}else{aol.common.d4.setTimeout(_cd0,500,"failure");}}));},isCurrentTab:function(){return dojo.hasClass(this.domNode,"selected");},getCurrentTab:function(){return this.currentTab;},initDnd:function(){dojo.query("#tabs .tab").forEach(function(_cd9){dojo.addClass(_cd9,"dojoDndItem");_cd9.setAttribute("dndType","tab");});this.dndContainer=new aol.my.dnd.TabContainer(dojo.query("#tabs")[0],{withHandles:false,horizontal:true});},themeChanged:function(_cda){if(g_oneThemeAllowed=="true"){aol.startpage.ServerAPI.setTabsTheme(_cda,dojo.lang.hitch(this,function(_cdb,data){if(_cdb=="success"){var _cdd=this.getTabNodes();for(var i=0;i<_cdd.length;i++){this._tabs[_cdd[i].id].theme=_cda;}return {code:0};}else{dojo.debug("Failed to set theme");return {code:-2};}}));}else{aol.startpage.ServerAPI.setTabTheme(this.currentTab.getId(),_cda,dojo.lang.hitch(this,function(_cdf,data){if(_cdf=="success"){this.getCurrentTab().theme=_cda;return {code:0};}else{dojo.debug("Failed to set theme");return {code:-2};}}));}},getInitialTab:function(){return this.initialTab;},changeNodeIds:function(_ce1,_ce2,_ce3){this._tabs["tab-"+_ce2]=this._tabs[_ce1.domNode.id];delete this._tabs[_ce1.domNode.id];_ce1.domNode.id="tab-"+_ce2;_ce1.getTabContentObj().domNode.id="tabContent-"+_ce2;_ce1.getTabContentObj().adNode.id="adHere-"+_ce2;if(_ce3){aol.my.tabs.setLastTabCookie(_ce2,false);}},_showReadyMadeBubble:function(tab){var pos=dojo.coords(tab.domNode,true);aol.my.App.readyMadeBubble.className="readyMadeBubble";if(pos.x<120){pos.x=120;aol.my.App.readyMadeBubble.className="readyMadeBubble2";aol.my.App.readyMadeBubble.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+aol.my.Environment.getCdnPath()+"/locale/"+aol.my.Environment.getLocale()+"/"+aol.my.Environment.getBrand()+"/images/ready_page_bubble2.png')";}aol.my.App.readyMadeBubble.style.top=pos.y+"px";aol.my.App.readyMadeBubble.style.left=pos.x-120+"px";aol.my.App.readyMadeBubble.style.display="block";aol.my.App.readyMadeBubble.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+aol.my.Environment.getCdnPath()+"/locale/"+aol.my.Environment.getLocale()+"/"+aol.my.Environment.getBrand()+"/images/ready_page_bubble.png')";aol.common.d4.setTimeout(function(){aol.my.App.readyMadeBubble.style.display="none";aol.my.App.readyMadeBubble.className="readyMadeBubble";},7000,this);},_getTabNode:function(e){var tab=e.target;while(tab.id.indexOf("tab-")==-1){tab=tab.parentNode;}return tab;},_getDeleteBtn:function(e){return aol.common.d4.getFirstChildElement(aol.common.d4.getFirstChildElement(this._getTabNode(e),"span"),"span");},_onMouseover:function(e){var iW=this.currentTab.inlineWidget;if(iW&&iW.editing){return;}if(this.getTabNodes().length==1){return;}var _ceb=this._getDeleteBtn(e);dojo.style(_ceb,"visibility","visible");this.currentDeleteNode=_ceb;},_onMouseout:function(e){dojo.style(this._getDeleteBtn(e),"visibility","hidden");},closeReadyMadeBubble:function(){aol.my.App.readyMadeBubble.style.display="none";},setDontShowReadyBubble:function(){aol.startpage.ServerAPI.setDontShowReadyBubble("true",dojo.hitch(this,function(_ced,data){if(_ced=="success"){aol.my.App.user.setDontShowReadyBubble(true);}else{console.debug("Failed to set property");return {code:-2};}}));},isInFocus:function(tab){return dojo.hasClass(tab,"selected");},magnetKeywords:"",magnetBroker:function(evt){var tab=aol.my.App.tabManager.getTabObjectById("tab-magnet");if(evt&&evt.keyWords){this.magnetKeywords=evt.keyWords;}else{if(tab){tab.isInitialized=true;}}if(this._tabs["tab-magnet"]==null){this.addPreconfiguredTab("magnet","",null);}else{if(this.currentTab.type!="magnet"){this.currentTab.blur();this.changeTab("tab-magnet");}if(tab.isInitialized&&this.magnetKeywords&&this.magnetKeywords!=""){dojo.publish("/aol.event.MagnetSearch",[this.magnetKeywords]);this.magnetKeywords="";}}},doDropTargetCleanup:function(e){var c=this.getCurrentTab().getTabContentObj().getColumns();for(var i=0;i<c.length;i++){c[i].style.height=null;}},setLastAdId:function(id){if(id=="magnet"||id=="favs"){this.lastAdId="";return;}this.lastAdId=id;},getLastAdId:function(){return this.lastAdId;},getUserAppTabs:function(){return this._userAppTabs;},hasAppTab:function(type){for(var i=0;i<this._userAppTabs.length;i++){if(this._userAppTabs[i]==type){return true;}}return false;}});dojo.declare("aol.my.tabs.Tab",null,{isInitialized:false,inlineWidget:null,isNew:false,isReadyMade:false,applicationTab:false,toggleState:"collapse",firstTimeView:true,constructor:function(_cf8,_cf9,type,_cfb,_cfc){if(typeof (_cfc)=="undefined"){_cfc=true;}if(_cf8==null){var id=(new Date()).getTime();if(_cfb==null){_cfb=g_defaultTheme;}this.isNew=true;this.isReadyMade=false;_cf8=dojo.byId("tabClone").cloneNode(true);_cf8.id="tab-"+id;if(!_cfc){dojo.removeClass(_cf8,"selected");}dojo.addClass(_cf8,"tab");dojo.addClass(_cf8,_cfb);if(type==null||typeof (type)=="undefined"||type==aol.my.Constants.defaultTabType){type="my";_cf9=false;}else{_cf9=true;}dojo.byId("tabs").appendChild(_cf8);}this.domNode=_cf8;this.type=type;this.applicationTab=_cf9;this.tabConfig=aol.my.Environment.getTabConfig(this.type);this.theme=_cfb;this.preloaded=false;if(this.isNew){this.tabContentObj=new aol.my.tabs.TabContent(this,id,_cfc);}else{this.tabContentObj=new aol.my.tabs.TabContent(this.domNode,null,_cfc);}},getId:function(){return this.domNode.id.substring(4);},preload:function(){if(!this.loaded&&this.type=="my"){aol.my.Environment.buildModulesFromDom(this.tabContentObj.domNode);this.tabContentObj.emptyQuigoQueue();if(!myaolcfg.disableAds){var _cfe=dojo.byId("adHere-"+this.getId());if(_cfe!=null){var ad=this._createAd();_cfe.appendChild(ad);if(aol.my.Environment.getLocale()=="en_US"){this._setAd();}}}}this.preloaded=true;dojo.publish("/aol.event.TabLoaded",[this]);},focus:function(){this.tabContentObj.focus(this.preloaded);if(!this.preloaded){this.preload();}else{if(!dojo.isIE){dojo.query("iframe.gadget",this.tabContentObj.domNode).forEach(function(_d00){if(_d00.style.height=="0px"){_d00.src=_d00.src;}});}}dojo.addClass(this.domNode,"selected");if(!this.applicationTab){if(!aol.my.App.user.isFirstTimeUser()){aol.my.App.showThemesLink(true);dojo.byId("addStuff").style.visibility="visible";dojo.byId("addTab").style.visibility="visible";dojo.byId("seeGadget").style.visibility="visible";if(!aol.my.App.user.isAuthenticatedUser()&&g_hasFTUX=="true"){dojo.byId("newHere").style.display="block";}}else{if(aol.my.App.ftuxManager&&g_hasFTUX=="true"){aol.my.App.ftuxManager.showFtux();}}}else{dojo.addClass(this.domNode.getElementsByTagName("a")[0],"appTab");aol.my.App.showThemesLink(false);dojo.byId("addStuff").style.visibility="hidden";dojo.byId("seeGadget").style.visibility="hidden";dojo.byId("newHere").style.display="none";dojo.byId("addTab").style.visibility="visible";if(dojo.byId("ftux")!=null){dojo.byId("ftux").style.display="none";}}if(this.applicationTab){var _d01=this.tabConfig.require;var _d02=dojo.hitch(this,"displayApplicationTab");if(_d01=="aol.favs.*"||_d01=="aol.magnet.app"){aol.common.d4.load043Resource(_d01,_d02);}else{dojo["require"](_d01);dojo.addOnLoad(_d02);}}else{dojo.publish(this.tabConfig.focusEvent,[this]);this.firstTimeView=false;}aol.my.tabs.setLastTabCookie(this.domNode.id,true);},blur:function(){dojo.removeClass(this.domNode,"selected");this.tabContentObj.blur();if(!this.applicationTab&&this.inlineWidget){var _d03=aol.common.d4.getFirstChildElement(aol.common.d4.getFirstChildElement(this.domNode));if(!(_d03.style.display=="none")){_d03.blur();}}dojo.publish(this.tabConfig.blurEvent);},destroy:function(){dojo.publish("/aol.event.TabDeleted",[this]);var id=this.getId();if(this.inlineWidget&&aol.my.App.tabManager.getCurrentTab()==this){this.inlineWidget.destroy();}dojo._destroyElement(this.domNode);this.tabContentObj.destroy();dojo.publish(this.tabConfig.blurEvent);aol.startpage.ServerAPI.deleteTab(id,dojo.hitch(this,function(_d05,data){if(_d05.toLowerCase()=="success"){dojo.publish(this.tabConfig.destroyEvent);return {code:0};}else{return {code:-1,err:"Sorry, the tab could not be deleted. Please try again later."};}}));},makeTabEditable:function(){var _d07=this;dojo["require"]("aol.widget.InlineEditBox");dojo.addOnLoad(function(){_d07.inlineWidget=new aol.widget.InlineEditBox({_onBeginEdit:function(e){aol.my.tabs.Scroller.update("startTabEdit");},_onFinishEdit:function(e){if(!this.cancelEdit(e)){return;}_d07.setTitle();_d07.saveTitle();_d07.inlineWidget.remove();_d07.inlineWidget=null;aol.my.tabs.Scroller.update("finishTabEdit");}},_d07.domNode.getElementsByTagName("a")[0]);_d07.inlineWidget._beginEdit();_d07.creatingInlineWidget=false;});},getType:function(){return this.type;},setType:function(type){this.type=type;},setNewTitle:function(_d0b){this.domNode.getElementsByTagName("a")[0].innerHTML=_d0b;},setTitle:function(){this.tabTitle=this.domNode.getElementsByTagName("a")[0].innerHTML;},getTitle:function(){return this.tabTitle;},saveNewTab:function(_d0c){var tabs=aol.my.App.tabManager.getTabNodes();var _d0e=tabs[tabs.length-2].id.substring(4);var _d0f=this.domNode.id.substring(4);aol.startpage.ServerAPI.addTab(this.getTitle(),aol.my.Constants.defaultTabType,null,_d0e,_d0f,dojo.hitch(this,function(_d10,data){if(_d10=="success"){var _d12=this.domNode.id;aol.my.App.tabManager.changeNodeIds(this,data.id,_d0c);dojo.dnd.manager().tabContainerManager.makeDraggable(this.domNode,_d12);var ad=this._createAd();dojo.place(ad,this.getTabContentObj().getColumn(2),"first");if(aol.my.Environment.getLocale()=="en_US"){this._setAd();}return {code:0};}else{return {code:-1,err:aol.my.App.getLocalizedString("Sorry, the tab could not be added. Please try again later.")};}}));},saveTitle:function(){var id=this.domNode.id.substring(4);aol.startpage.ServerAPI.renameTab(id,this.getTitle(),dojo.hitch(this,function(_d15,data){if(_d15=="success"){return {code:0};}else{return {code:-2,err:aol.my.App.getLocalizedString("Sorry, the tab's title could not be changed. Please try again later.")};}}));},getTabContentObj:function(){return this.tabContentObj;},_createAd:function(){if(myaolcfg.disableAds){return;}if(aol.my.Environment.getLocale()=="en_US"){if(typeof (aol.my.App.tabManager)!="undefined"){this._clearAd();}}var ad=dojo.byId("ad-"+this.getId());if(ad!=null){if(aol.my.Environment.getLocale()!="en_US"){var _d18=ad.getElementsByTagName("iframe")[0];_d18.src="/ad.jsp";}return ad;}var _d19=dojo.byId("adTemplate").cloneNode(true);_d19.id="ad-"+this.getId();if(aol.my.Environment.getLocale()=="en_US"){var _d1a=dojo.query(".adCodeDiv",_d19);_d1a[0].id="adCodeDiv-"+this.getId();}else{var _d18=_d19.getElementsByTagName("iframe")[0];_d18.src="/ad.jsp";}return _d19;},_setAd:function(){if(myaolcfg.disableAds){return;}var ad=dojo.byId("adCodeDiv-"+this.getId());if(ad.getElementsByTagName("img").length!=0){if(g_adHtmlAdAfter>0){aol.my.imgAdSwitcher.imgToHtml(ad.id);}return;}aol.my.adsWrapper.htmlAdWH(g_adMagicNum,g_adWidth,g_adHeight,"AJAX",ad.id);if(typeof (aol.my.App.tabManager)!="undefined"){aol.my.App.tabManager.setLastAdId(this.getId());}},_resetAd:function(){if(myaolcfg.disableAds){return;}this._clearAd();aol.my.App.tabManager.setLastAdId(this.getId());var ad=dojo.byId("adCodeDiv-"+this.getId());if(ad.getElementsByTagName("img").length!=0){aol.my.adsWrapper.htmlAdWH(g_adMagicNum,g_adWidth,g_adHeight,"AJAX",ad.id);}else{aol.my.adsWrapper.adsReloadAd(ad.id);}},_clearAd:function(){if(myaolcfg.disableAds){return;}aol.my.imgAdSwitcher.cancel();if(aol.my.App.tabManager.getLastAdId()!=""){var _d1d="adCodeDiv-"+aol.my.App.tabManager.getLastAdId();aol.my.adsWrapper.adsClrAd(_d1d);aol.my.adsWrapper.adsResetPg();}},displayApplicationTab:function(){var _d1e=this.getTabContentObj().domNode;var _d1f={"domNode":_d1e,"user":aol.my.App.user,"config":this.tabConfig,"viewPort":{width:dojo.contentBox(dojo.byId("uberTabContainer")).w,height:dijit.getViewport().h-dojo.coords(dojo.byId("uberTabContainer"),true).y},"reporting":aol.common.Reporting,"ie":dojo.isIE};if(!this.appHandle&&this.tabConfig.init!=""){try{var _d20=dojo.getObject(this.tabConfig.init);this.appHandle=new _d20(_d1f);this.firstTimeView=true;}catch(e){console.debug("ERROR loading tab of type: "+this.type,e);}}else{this.firstTimeView=false;}dojo.publish(this.tabConfig.focusEvent,[this]);var _d21=window.dojo;if(_d21){_d21.event.topic.publish(this.tabConfig.focusEvent,this);}}});dojo.declare("aol.my.tabs.TabContent",null,{Quigo:dojo.declare("aol.my.tabs.TabContent.Quigo",null,{constructor:function(_d22,ad){this.tabContentObj=_d22;this.column=ad.column;this.widget=ad.widget;this.cbRand=(new Date().getTime())+this.column+this.widget;dojo.io.script.get({url:g_quigoAds.jsonpUrl+"?c=aol.my.tabs.quigoCBs.cb"+this.cbRand+"&k=my.aol.com&type=0&ps=-1&nb=1&pid="+g_quigoAds.pid+"&placementId="+ad.placementID+"&referrer="+location.host,preventCache:true});aol.my.tabs.quigoCBs["cb"+this.cbRand]=dojo.hitch(this,this.callback);this.subscribers=[dojo.subscribe("/aol.event.widget.add",this,"place"),dojo.subscribe("/aol.event.module.delete",this,"verifyPlacement"),dojo.subscribe("/dnd/drop",this,"delayedPlace"),dojo.subscribe("/aol.event.ad.quigo.gadget",this,"checkIfValid")];this.hiddenNode=dojo.byId("nodeTemplates");},checkIfValid:function(node){if(this.quigoNode&&node.parentNode==this.quigoNode.parentNode){this.hide();}},verifyPlacement:function(){this.hide();var _d25=20;if(!dojo.isIE){_d25=500;}window.setTimeout(dojo.hitch(this,"place"),_d25);},delayedPlace:function(){window.setTimeout(dojo.hitch(this,"place"),100,arguments);},place:function(){var col=this.tabContentObj.getColumn(this.column-1);var _d27=dojo.query(".module",col);if(this.widget>_d27.length&&_d27.length!=0){this.renderIfOk(_d27[_d27.length-1]);}else{if(_d27.length>=this.widget){this.renderIfOk(_d27[this.widget-1]);}else{if(_d27.length==1){this.renderIfOk(_d27[0]);}else{this.hide();}}}},renderIfOk:function(node){var _d29=dojo.query(".mContainer",node)[0];if(!this.hasAd(_d29)){_d29.appendChild(this.quigoNode);}else{this.hide();}},hasAd:function(node){var ads=dojo.query(".quigoAdsGadget",node);return ads&&ads.length!=0;},hide:function(){this.hiddenNode.appendChild(this.quigoNode);},callback:function(_d2c){delete aol.my.tabs.quigoCBs["cb"+this.cbRand];var _d2d=_d2c.response;if(_d2d.statusCode=="200"&&_d2d.data){for(var i=0;i<_d2d.data.numResults;i++){this.insert(_d2d.data.listing[i].title,_d2d.data.listing[i].description,_d2d.data.listing[i].targetUrl);}}},insert:function(_d2f,desc,url){this.quigoNode=document.createElement("div");dojo.addClass(this.quigoNode,"quigoAdsApp");this.quigoNode.innerHTML="<div>"+"<span style='font-weight:bold;'>"+aol.my.App.getLocalizedString("Sponsored Links")+"</span><p class='p'/><a target='_blank' href='"+url+"'>"+_d2f+"</a><br /><span onClick='window.open(\""+url+"\");' class='descLink'>"+desc+"</span>"+"</div>";this.place();},destroy:function(){dojo._destroyElement(this.quigoNode);while(this.subscribers.length!=0){dojo.unsubscribe(this.subscribers.pop());}}}),constructor:function(_d32,id,_d34){this.quigoAds=[];this.quigoAdsQueued=[];if(id!=null){var _d35=dojo.byId("tabContentClone").cloneNode(true);_d35.id="tabContent-"+id;dojo.place(_d35,aol.common.d4.getLastChildElement(dojo.byId("uberTabContainer")),"before");this.domNode=_d35;var _d36=dojo.query(".column",_d35);this.adNode=_d36[2].firstChild;if(typeof (_d34)=="undefined"){_d34=true;}if(_d34){this.focus();}else{this.blur();}}else{this.domNode=dojo.byId("tabContent-"+_d32.id.substring(4));this.adNode=dojo.byId("adHere-"+_d32.id.substring(4));}},addQuigoAds:function(_d37){if(this.quigoAds.length!=0){return;}if(!myaolcfg.disableAds&&typeof g_quigoAds!="undefined"&&g_quigoAds.pid){var i;if(_d37){for(i=0;i<g_quigoAds.ids.length;i++){this.quigoAds.push(new this.Quigo(this,g_quigoAds.ids[i]));}}else{for(i=0;i<g_quigoAds.ids.length;i++){this.quigoAdsQueued.push(g_quigoAds.ids[i]);}}}},emptyQuigoQueue:function(){while(this.quigoAdsQueued.length!=0){this.quigoAds.push(new this.Quigo(this,this.quigoAdsQueued.pop()));}},deleteQuigoAds:function(){if(!this.quigoAds){return;}while(this.quigoAds.length>0){this.quigoAds.pop().destroy();}},focus:function(_d39){if(_d39==undefined){return;}this.domNode.style.display="block";this.addQuigoAds(_d39);},blur:function(){this.domNode.style.display="none";this.deleteQuigoAds();},destroy:function(){dojo._destroyElement(this.domNode);this.deleteQuigoAds();},getColumn:function(_d3a){return dojo.query(".column",this.domNode)[_d3a];},getColumns:function(){return dojo.query(".column",this.domNode);}});aol.my.tabs.deleteGoToTabCookie=function(){var _d3b=new Date();_d3b.setTime(_d3b.getTime()-1);document.cookie="MYAOL_GOTO_TAB_INFO=goToTab; expires="+_d3b.toGMTString();};aol.my.tabs.setLastTabCookie=function(id,trim){var _d3e="";if(!g_lastSelectedTabSessionOnly){var d=new Date();d.setUTCFullYear(d.getUTCFullYear()+2);_d3e="expires="+d.toGMTString()+"; ";}var _d40="MYAOL_INFO=lastSelectedTab="+(trim?id.substring(4):id)+"; "+_d3e+"path=/";document.cookie=_d40;};aol.my.adsWrapper={htmlAdWH:function(){if(this.isLoaded()){window.htmlAdWH.apply(window,arguments);}else{var args=arguments;this.load(function(){window.htmlAdWH.apply(window,args);});}},adsClrAd:function(){if(this.isLoaded()){window.adsClrAd.apply(window,arguments);}},adsResetPg:function(){if(this.isLoaded()){window.adsResetPg.apply(window,arguments);}},adsReloadAd:function(){if(this.isLoaded()){window.adsReloadAd.apply(window,arguments);}},isLoaded:function(){return (typeof window.htmlAdWH=="function");},load:function(_d42){if(this.isLoaded()){if(typeof _d42=="function"){_d42();}return;}if(!this._loading){this._loading=true;var _d43=document.createElement("script");_d43.type="text/javascript";_d43.src=g_adScriptSrc;headEl=document.getElementsByTagName("head")[0];headEl.appendChild(_d43);this._pollLoaded();}if(typeof _d42=="function"){this._onLoad.push(_d42);}},_loading:false,_onLoad:[],_pollInterval:null,_pollLoaded:function(){var self=this;self._pollInterval=setInterval(function(){if(!self.isLoaded()){return;}clearInterval(self._pollInterval);self._pollInterval=null;console.debug("adsWrapper.js loaded!");self._setup();while(self._onLoad.length>0){var cb=self._onLoad.shift();cb();}},250);},_setup:function(){window.adSetType("F");window.adSetAdURL("/html/adPage.html");}};aol.my.imgAdSwitcher={cancel:function(){},imgToHtml:function(_d46){var _d47=null;var _d48=null;var _d49=document.getElementById(_d46);var _d4a=_d49;function setHtmlAd(){if("none"!=window.g_adSwitchFx){var _d4b=document.getElementById(_d46).parentNode;_d4b.style.cssText="position: relative; z-index: 0; overflow: hidden;";_d49.id="_imgAdDiv";_d49.style.cssText="position: absolute; z-index: 2; top:0; left:0;";_d4a=document.createElement("div");_d4a.id=_d46;_d4a.style.cssText="position: absolute; z-index: 1; top:0; left:0;";_d4b.appendChild(_d4a);}var ads=aol.my.adsWrapper;ads.htmlAdWH(g_adMagicNum,g_adWidth,g_adHeight,"AJAX",_d4a.id);if(typeof window.g_adSwitchFx=="string"&&/slideDown:\d+/.test(g_adSwitchFx)){var _d4d=parseInt(/slideDown:(\d+)/.exec(g_adSwitchFx)[1]);console.debug(g_adSwitchFx+" delay="+_d4d);if(_d4d>0){_d48=setTimeout(function(){_d48=null;slideDown(_d49);},_d4d*1000);console.debug("adsSwitchTimer="+_d48);}}};function slideDown(el,posY,_d50){if(typeof posY=="undefined"){posY=0;_d50=el.offsetHeight;}el.style.left="0px";el.style.height=(_d50>0?_d50:0)+"px";el.style.top=posY+"px";if(_d50>0){var inc=20;posY+=inc;_d50-=inc;setTimeout(function(){slideDown(el,posY,_d50);},50);}};this.cancel=function(){if(_d47!=null){console.debug("htmlAdSwitcher clear adsScriptTimer");clearTimeout(_d47);_d47=null;}else{if(_d48!=null){console.debug("htmlAdSwitcher clear adsSwitchTimer");clearTimeout(_d48);_d48=null;_d49.style.display="none";}}};if(typeof window.g_adHtmlAdAfter=="number"&&g_adHtmlAdAfter>0){_d47=setTimeout(function(){_d47=null;aol.my.adsWrapper.load(setHtmlAd);},g_adHtmlAdAfter*1000);}}};}if(!dojo._hasResource["aol.my.ftux.Manager"]){dojo._hasResource["aol.my.ftux.Manager"]=true;dojo.provide("aol.my.ftux.Manager");dojo.declare("aol.my.ftux.Manager",null,{constructor:function(){this.numOfModulesSelected=0;this.readyMadeTabsSelected=0;this.selectedTheme=false;if(dojo.byId("ftuxDisplayed")){dojo.byId("ftux").style.display="block";this.init();}aol.common.ReportingManager.initFTUX(this);},_numPagesAllowed:function(_d52){var _d53=g_numOfTabs-aol.my.App.tabManager.getTabNodes().length;return (_d53<_d52.length?_d53:_d52.length);},addReadyMadeTabs:function(evt){var _d55=dojo.byId("rmp").getElementsByTagName("input");var _d56=this._numPagesAllowed(_d55);this.readyMadeTabsSelected=0;for(var i=0;i<_d55.length;i++){if(_d55[i].checked){var _d58=_d55[i].value;var _d59=aol.my.Constants.defaultTabType;if(_d55[i].value=="magnet"){_d59="magnet";_d58="";}else{if(_d55[i].value=="favs"){_d59="favs";_d58="";}}aol.my.App.tabManager.addPreconfiguredTab(_d59,_d58,null);dojo.publish("/aol.event.tray.addPage",[_d58]);if(++this.readyMadeTabsSelected>_d56){break;}}}},addModules:function(evt){var _d5b=dojo.byId("modules").getElementsByTagName("input");var _d5c=[];for(var i=0;i<_d5b.length;i++){if(_d5b[i].checked){aol.my.ModuleManager.createModule(_d5b[i].id);_d5b[i].checked=false;_d5c.push(_d5b[i].id);}}this.numOfModulesSelected=_d5c.length;},showDone:function(evt){if(!this.validateZip()){alert(aol.my.App.getLocalizedString("Invalid zipcode."));return false;}this.setFTUXSeen();dojo.xhrGet({url:"/ftuxDone.jsp",handleAs:"text",preventCache:true,error:function(data,_d60){alert("Error: cannot fetch page");},load:dojo.hitch(this,function(data,_d62){dojo.byId("ftux").style.display="none";dojo.byId("ftuxDone").innerHTML=data;dojo.byId("ftuxDone").style.display="block";dojo.connect(dojo.byId("closeDivDone"),"onclick",this,"hideFtuxDone");dojo.connect(dojo.byId("ftuxDoneClose"),"onclick",this,"hideFtuxDone");dojo.connect(dojo.byId("findmore"),"onclick",this,"showTray");if(!aol.my.App.user.isAuthenticatedUser()){dojo.connect(dojo.byId("startpage-ftux-done-signin"),"onclick",this,"handleLogin");}this.setZip();if(dojo.byId("rmp")){this.addReadyMadeTabs();}else{this.addModules();}if(this.selectedTheme){this.saveTheme();}})});},saveTheme:function(){aol.my.ThemeManager.update();},showTheme:function(_d63){this.selectedTheme=true;aol.my.ThemeManager._swap(_d63);},showTray:function(){var ftux=dojo.byId("ftuxDone");ftux.style.display="none";aol.my.App.trayManager.openTray("ftuxDone");},validateZip:function(){var zip=dojo.byId("ftuxZip");if(zip==null){return true;}zip=dojo.trim(zip.value);if(zip!=""){return !(isNaN(zip)||zip.length<5);}else{return true;}},setZip:function(){var ctx=this;ctx.zipModified=false;var zip=dojo.byId("ftuxZip");if(zip==null){return true;}zip=dojo.trim(zip.value);this.zip=zip;if(this.zip!=""){if(isNaN(this.zip)||zip.length<5){alert(aol.my.App.getLocalizedString("Invalid zipcode."));return false;}}else{return true;}var _d68=(zip!="");aol.startpage.ServerAPI.setZipCode(zip,dojo.hitch(this,function(_d69,data){try{if(_d69=="success"){dojo.publish("/aol.event.settings.ZipCodeChanged",[{zip:zip,changed:_d68}]);return {code:0};}else{dojo.publish("/aol.event.settings.ZipCodeChanged",[{zip:zip,changed:false}]);return {code:-2,err:aol.my.App.getLocalizedString("Sorry, the zip code could not be set. Please try again later.")};}}catch(e){}}));ctx.zipModified=true;return true;},showFtux:function(evt){dojo.xhrPost({url:"/ftux.jsp",handleAs:"text",preventCache:true,error:function(data,_d6d){alert("Error: cannot fetch page");},load:dojo.hitch(this,function(data,_d6f){dojo.byId("newHere").style.display="none";dojo.byId("addStuff").style.visibility="hidden";dojo.byId("addTab").style.visibility="hidden";dojo.byId("seeGadget").style.visibility="hidden";aol.my.App.showThemesLink(false);var ftux=dojo.byId("ftux");ftux.innerHTML=data;ftux.style.display="block";this.init();})});},handleLogin:function(evt){dojo.publish("/aol.event.LoginRequired",[evt]);dojo.stopEvent(evt);},setFTUXSeen:function(){aol.my.App.user.setFirstTimeUser(false);var _d72=aol.my.App.tabManager.getCurrentTab().getId();if(_d72!="favs"&&_d72!="magnet"){dojo.byId("addStuff").style.visibility="visible";dojo.byId("addTab").style.visibility="visible";dojo.byId("seeGadget").style.visibility="visible";aol.my.App.showThemesLink(true);if(!aol.my.App.user.isAuthenticatedUser()&&g_hasFTUX=="true"){dojo.byId("newHere").style.display="block";}}},hideFtux:function(evt){dojo.byId("ftux").style.display="none";if(evt!=null){if(aol.my.ThemeManager.getDefaultTheme()!=aol.my.ThemeManager.getCurrentTheme()){aol.my.ThemeManager.update(this.currentTabTheme);}}this.setFTUXSeen();},hideFtuxDone:function(evt){dojo.byId("ftuxDone").style.display="none";},init:function(){this.currentTabTheme=aol.my.ThemeManager.getCurrentTheme();this.ftuxNode=dojo.byId("ftux");dojo.byId("newHere").style.display="none";if(g_hasFTUX=="false"){return;}if(!aol.my.App.user.isAuthenticatedUser()){dojo.byId("notSignedIn").style.display="inline";}dojo.connect(dojo.byId("doneBtn"),"onclick",this,"showDone");dojo.connect(dojo.byId("closeDivFtux"),"onclick",this,"hideFtux");dojo.connect(dojo.byId("ftuxClose"),"onclick",this,"hideFtux");}});}if(!dojo._hasResource["aol.my.ThemeManager"]){dojo._hasResource["aol.my.ThemeManager"]=true;dojo.provide("aol.my.ThemeManager");aol.my.ThemeManager={};aol.my.ThemeManager.init=function(){this.currentTheme=g_currentTheme;dojo.subscribe("/aol.event.TabChanged",aol.my.ThemeManager,"tabChanged");var t=dojo.byId("themePalette");if(t){dojo.connect(t,"onclick",aol.my.ThemeManager,"updateHandler");}aol.my.ThemeManager._checkIE6(g_currentTheme);};aol.my.ThemeManager._swap=function(_d76){var _d77=[];var _d78=null;if(this.currentTheme==_d76){return;}var _d79=this.currentTheme;this.currentTheme=_d76;for(var i=0;(linkNode=document.getElementsByTagName("link")[i]);i++){if(linkNode.getAttribute("rel").indexOf("style")!=-1&&linkNode.getAttribute("title")){if(linkNode.getAttribute("title")==_d76){_d78=linkNode;}else{_d77.push(linkNode);}}}if(_d78){for(var i=0;i<_d77.length;i++){_d77[i].disabled=true;}_d78.disabled=false;}else{if(_d77.length>5){for(var i=0;i<_d77.length;i++){if(_d77[i].getAttribute("title")!=_d79){_d77[i].parentNode.removeChild(_d77[i]);}}}aol.my.ThemeManager._getRequestedStyle(_d76);}aol.my.ThemeManager._checkIE6(_d76);};aol.my.ThemeManager._getRequestedStyle=function(_d7b){var url=aol.my.Environment.getCdnPath()+"/locale/"+aol.my.Environment.getLocale()+"/"+aol.my.Environment.getBrand()+"/css/"+_d7b+".css";var node=aol.common.Util.styleLoader(url);node.title=_d7b;node.disabled=true;setTimeout(function(){node.disabled=false;},10);};aol.my.ThemeManager._checkIE6=function(_d7e){if(dojo.isIE==6){var _d7f="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+aol.my.Environment.getCdnPath()+"/locale/"+aol.my.Environment.getLocale()+"/"+aol.my.Environment.getBrand()+"/images/FILE')";if(new RegExp("\\b"+_d7e+"\\b").test(g_darkThemes)){_d7f=_d7f.replace("FILE","header_sprite_white.png");}else{_d7f=_d7f.replace("FILE","header_sprite.png");}dojo.byId("inlogo").style.filter=_d7f;dojo.byId("ingoogle").style.filter=_d7f;}};aol.my.ThemeManager.tabChanged=function(tab){aol.my.ThemeManager._swap(tab.theme);};aol.my.ThemeManager.update=function(_d81){if(_d81==undefined){_d81=this.currentTheme;}aol.my.ThemeManager._swap(_d81);dojo.publish("/aol.event.ThemeChanged",[_d81]);};aol.my.ThemeManager.updateHandler=function(evt){var _d83=evt.target.className.trim();aol.my.ThemeManager.update(_d83);};aol.my.ThemeManager.changeToDefault=function(evt){aol.my.ThemeManager._swap(g_defaultTheme);dojo.publish("/aol.event.ThemeChanged",[g_defaultTheme]);};aol.my.ThemeManager.getDefaultTheme=function(evt){return g_defaultTheme;};aol.my.ThemeManager.getCurrentTheme=function(){return this.currentTheme;};}if(!dojo._hasResource["aol.my.Hat"]){dojo._hasResource["aol.my.Hat"]=true;dojo.provide("aol.my.Hat");aol.my.Hat={};aol.my.Hat.init=function(_d86,_d87,_d88){this.searchData=_d86;this.type=dojo.cookie("MYAOL_ICID");this.type=this.type?this.type.toLowerCase():"desktop";this.locale=_d88;this.market=_d87.getConfig("market");this.brand=_d87.getConfig("brand");this.map={desktop:"dt",notebook:"nb",laptop:"nb",workstation:"ws",na:"na",consumer:"cn",commercial:"cm",Compaq:"cp",HP:"hp"};dojo.connect(dojo.byId("om_srchtab"),"onclick",this,"srchSub");aol.common.Util.ClickHandler.addHandler(function(){aol.my.Hat.togMore(0);});};aol.my.Hat.getInvocationType=function(id){var d="-";var b=this.map[this.brand];b=b!=null?b:"aol";var m=this.map[this.market];m=m!=null?m:"na";var f=this.searchData[id].fn;f=f!=null?f:"na";var t=this.map[this.type];t=t!=null?t:"dt";var l=(this.locale.replace("_","")).toLowerCase();if(l=="engb"){l="enuk";}else{if(l=="nbno"){l="nono";}}return (l+d+"mh"+d+"1_"+d+b+d+f+d+m+d+t);};aol.my.Hat.changeSearchBox=function(_d90){var _d91=dojo.query(".selected_cat",dojo.byId("om_srchtab"))[0];if(!dojo.byId("web")){return;}};aol.my.Hat.mre=0;aol.my.Hat.s_account="aolcomqadev";aol.my.Hat.p_o=function(o){return document.getElementById(o);};aol.my.Hat.cb=function(e){if(!e){var e=window.event;}e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}};aol.my.Hat.omcl=function(obj,id,typ){if(!typ){typ="o";}var s=s_gi(s_account);var f=function(){s.tl(1,typ,id);};setTimeout(f,0);};aol.my.Hat.togMore=function(_d99){var oDiv=aol.my.Hat.p_o("smore");if(!oDiv){return;}if(_d99==null){_d99=Math.abs(aol.my.Hat.mre-1);}if(_d99){aol.my.Hat.positionMorePopup();oDiv.style.zIndex="22";oDiv.style.display="block";}else{oDiv.style.display="none";}aol.my.Hat.mre=_d99;};aol.my.Hat.positionMorePopup=function(){var _d9b=dojo.coords(dojo.byId("stopam"),true);var _d9c=dojo.byId("smore");if(_d9c.parentNode!=document.body){document.body.appendChild(_d9c);}_d9c.style.top=_d9b.y+_d9b.h+2+"px";_d9c.style.left=_d9b.x+"px";};aol.my.Hat.determineTab=function(){var _d9d=dojo.query(".selected_cat",dojo.byId("om_srchtab"))[0].id;aol.my.Hat.srchSub(_d9d);return false;};aol.my.Hat.srchSub=function(evt,_d9f){if(typeof (evt)!="object"&&evt=="web"&&typeof (_d9f)!="undefined"){return true;}var _da0;var id=evt;if(typeof (evt)=="object"){evt.preventDefault();id=evt.target.id;}_da0=this.searchData[id];if(!_da0){return;}var _da2=(dojo.byId("searchField")!=null)?encodeURIComponent(((dojo.byId("searchField")).value).trim()):"";var loc;if(_da2==""){if(_da0.nkAction!=""){loc=_da0.nkAction;}else{loc=_da0.host;}}else{loc=_da0.host;}var qArg=_da0.queryName;if(qArg!=""){if(_da0.nonstandardURI!="1"){loc+=loc.indexOf("?")!=-1?"&":"?";}loc+="invocationType="+this.getInvocationType(id)+"&sourceType="+((typeof (_d9f)!="undefined")?_d9f:"150");loc+=(_da2!=""?"&"+qArg+"="+_da2:"");}else{loc+=(_da2+"/?invocationType="+this.getInvocationType(id));}top.location.href=loc;return false;};aol.my.Hat.trimQ=function(q){q.value=q.value.trim();};aol.my.Hat.loginHandler=function(){dojo.publish("/aol.event.LoginRequired");};aol.my.Hat.noop=function(){return;};}if(!dojo._hasResource["aol.startpage.ServerAPI"]){dojo._hasResource["aol.startpage.ServerAPI"]=true;dojo.provide("aol.startpage.ServerAPI");aol.startpage.ServerAPI={};aol.startpage.ServerAPI.resolveDoc=function(url,cb){dojo.xhrPost({url:"/rest/s/resolveDoc",content:{"url":url},handleAs:"json",timeout:30*1000,load:function(data){cb(data);},error:function(){cb(null);}});};aol.startpage.ServerAPI.moveTab=function(_da9,toId,_dab,cb){var _dad=["<moveTab id='"+_da9+"'>"];_dad.push("<to tabId='"+toId+"' moveAfter='"+_dab+"'></to>");_dad.push("</moveTab>");aol.startpage.ServerAPI._sendXmlToServer([_dad.join("")],cb);};aol.startpage.ServerAPI.addTab=function(_dae,type,_db0,_db1,_db2,cb){var _db4=[];if(_dae!=null){_db4.push("<addTab title='"+aol.common.Util.escapeXmlChars(_dae)+"' type='"+type+"'");}else{_db4.push("<addTab type='"+type+"'");}if(_db0){_db4.push(" subType='"+_db0+"'");}if(_db2){_db4.push(" tempId='"+_db2+"'");}_db4.push(">");_db4.push("<to tabId='"+_db1+"' moveAfter='last' />");_db4.push("</addTab>");var _db5=[];_db5.push(_db4.join(""));aol.startpage.ServerAPI._sendXmlToServer(_db5,cb);};aol.startpage.ServerAPI.renameTab=function(id,name,cb){var _db9=[];_db9.push("<renameTab id='"+id+"' title='"+aol.common.Util.escapeXmlChars(name)+"' />");aol.startpage.ServerAPI._sendXmlToServer(_db9,cb);};aol.startpage.ServerAPI.setTabTheme=function(id,_dbb,cb){var _dbd=[];_dbd.push("<setTabTheme id='"+id+"' theme='"+aol.common.Util.escapeXmlChars(_dbb)+"' />");aol.startpage.ServerAPI._sendXmlToServer(_dbd,cb);};aol.startpage.ServerAPI.setTabsTheme=function(_dbe,cb){var _dc0=[];_dc0.push("<setTabsTheme theme='"+aol.common.Util.escapeXmlChars(_dbe)+"' />");aol.startpage.ServerAPI._sendXmlToServer(_dc0,cb);};aol.startpage.ServerAPI.deleteTab=function(id,cb){var _dc3="<deleteTab id='"+id+"' />";aol.startpage.ServerAPI._sendXmlToServer([_dc3],cb);};aol.startpage.ServerAPI.setFirstTimeSeen=function(flag,cb){var _dc6=[];_dc6.push("<setFirstTimeSeen><![CDATA["+flag+"]]></setFirstTimeSeen>");aol.startpage.ServerAPI._sendXmlToServer(_dc6,cb);};aol.startpage.ServerAPI.setZipCode=function(zip,cb){var _dc9=[];_dc9.push("<setZipCode><![CDATA["+zip+"]]></setZipCode>");aol.startpage.ServerAPI._sendXmlToServer(_dc9,cb);};aol.startpage.ServerAPI.setBuddyFeed=function(bf,cb){var _dcc=[];_dcc.push("<setBuddyFeed><![CDATA["+bf+"]]></setBuddyFeed>");aol.startpage.ServerAPI._sendXmlToServer(_dcc,cb);};aol.startpage.ServerAPI.addGadget=function(url,_dce,_dcf,_dd0,toId,_dd2,cb,_dd4){var _dd5=[];url=aol.common.Util.escapeXmlChars(url);_dd5.push("<addWidget format='gadget' url='"+url+"'");if(_dce){_dd5.push(" tempId='123'");}_dd5.push(" buddyfeed='"+_dd4+"'");_dd5.push(">");_dd5.push("<to tabId='"+_dcf+"' cell='"+_dd0+"'");if(toId){_dd5.push(" widgetId='"+toId+"' moveAfter='"+(_dd2=="after")+"'");}_dd5.push("/>");_dd5.push("</addWidget>");aol.startpage.ServerAPI._sendXmlToServer([_dd5.join("")],cb);};aol.startpage.ServerAPI.addWidget=function(_dd6,_dd7,_dd8,_dd9,toId,_ddb,_ddc,cb,_dde){if(typeof (_dde)=="undefined"){_dde="modulet";}var _ddf=[];_ddf.push("<addWidget widgetType='"+_dd6+"'"+" format='"+_dde+"'");if(_dd7){_ddf.push(" tempId='123'");}_ddf.push(" buddyfeed='"+_ddc+"'");_ddf.push(">");_ddf.push("<to tabId='"+_dd8+"' cell='"+_dd9+"'");if(toId){_ddf.push(" widgetId='"+toId+"' moveAfter='"+(_ddb=="after")+"'");}_ddf.push("/>");_ddf.push("</addWidget>");aol.startpage.ServerAPI._sendXmlToServer([_ddf.join("")],cb);};aol.startpage.ServerAPI.moveWidget=function(id,_de1,_de2,toId,_de4,cb){var _de6=[];_de6.push("<moveWidget id='"+id+"'>");_de6.push("<to tabId='"+_de1+"' cell='"+_de2+"' ");if(toId){_de6.push("widgetId='"+toId+"' moveAfter='"+(_de4=="after")+"'");}_de6.push(">");_de6.push("</to></moveWidget>");aol.startpage.ServerAPI._sendXmlToServer([_de6.join("")],cb);};aol.startpage.ServerAPI.deleteWidget=function(id,cb){var _de9="<deleteWidget id='"+id+"' />";aol.startpage.ServerAPI._sendXmlToServer([_de9],cb);};aol.startpage.ServerAPI.setModuleData=function(_dea,_deb,cb){var _ded=[];for(i in _deb){dojo.debug("aol.startpage.ServerAPI.setModuleData: ",i,_deb[i]);_ded.push("<setUserData moduleId='"+_dea+"' key='"+i+"'><![CDATA["+_deb[i]+"]]></setUserData>");}aol.startpage.ServerAPI._sendXmlToServer(_ded,cb,false);};aol.startpage.ServerAPI.setSecureModuleData=function(_dee,_def,cb){var _df1=[];for(i in _def){_df1.push("<setSecureUserData moduleId='"+_dee+"' key='"+i+"'><![CDATA["+_def[i]+"]]></setSecureUserData>");}aol.startpage.ServerAPI._sendXmlToServer(_df1,cb,true);};aol.startpage.ServerAPI.getModuleMarkup=function(_df2,cb,_df4){var _df5={"type":_df2};if(_df4){_df5.sec=_df4;}dojo.xhrGet({url:"/rest/def/mod",content:_df5,handleAs:"text",error:function(data,_df7){cb("error");},load:function(data,_df9){cb("load",data,_df4);}});};aol.startpage.ServerAPI.toggleWidget=function(id,_dfb,cb){var xml="<toggleWidget id='"+id+"' minimize='"+_dfb+"' />";aol.startpage.ServerAPI._sendXmlToServer([xml],cb);};aol.startpage.ServerAPI._sendXmlToServer=function(_dfe,cb,_e00){if(!aol.startpage.ServerAPI.updater){aol.startpage.ServerAPI.updater=new aol.startpage.ServerAPI.Updater();}if(typeof (cb)=="undefined"){cb=function(){};}aol.startpage.ServerAPI.updater.update(_dfe,cb,_e00);};aol.startpage.ServerAPI.getAuthToken=function(cb){dojo.xhrGet({url:"/openAuth",handleAs:"json",error:function(data,_e03){console.debug("error",data);cb("error",data,_e03.xhr);},load:function(data,_e05){console.debug("load ",data);cb("load",data,_e05.xhr);}});};dojo.declare("aol.startpage.ServerAPI.Updater",null,{fifoQue:[],queLock:false,request:function(_e06,cb,_e08){this.changes=_e06;this.cb=cb;this.secure=typeof (_e08)=="boolean"?_e08:false;},update:function(_e09,cb,_e0b){this.serializeRequest(new this.request(_e09,cb,_e0b));},serializeRequest:function(_e0c){this.fifoQue.push(_e0c);if(!this.queLock){this.sendNextRequest();}},sendNextRequest:function(){if(this.fifoQue.length==0){this.queLock=false;return;}this.queLock=true;var _e0d=this.fifoQue.shift();var _e0e=["<changes "+(_e0d.secure?"redirect='true' ":"")+"responseType='JSON' count='"+_e0d.changes.length+"'>"];_e0e.push(_e0d.changes.join(""));_e0e.push("</changes>");var _e0f=_e0e.join("");var _e10=this;if(!_e0d.secure){dojo.rawXhrPost({url:"/rest/startpage",postData:_e0f,handleAs:"json",contentType:"text/xml; charset=\"utf-8\"",handle:function(data,_e12){try{var obj;if(!(data instanceof Error)&&data.msg=="SUCCESS"){obj=_e0d.cb("success",data);}else{if(data.msg=="QUOTA_EXCEEDED"){obj={code:-1,err:aol.my.App.getLocalizedString("You have just exceeded the limit for the amount of customized data that can be stored without signing in. We strongly suggest you sign in to myAOL so that you don't risk losing any of your changes.")};}else{obj=_e0d.cb("error",data);}}if(typeof (obj)=="undefined"){aol.common.d4.setTimeout(_e10,"sendNextRequest",g_restStartpageLatency);}else{if(obj.code==-1){_e10.fifoQue=[];alert(obj.err||aol.my.App.getLocalizedString("Sorry, an error ocurred. Please try again later."));location.href=location.href;}else{if(typeof (obj.err)!="undefined"){alert(obj.err);}aol.common.d4.setTimeout(_e10,"sendNextRequest",g_restStartpageLatency);}}}catch(e){alert(aol.my.App.getLocalizedString("Sorry, an error ocurred. Please try again later."));location.href=location.href;}}});}else{var n="secureIframe"+(new Date).getTime();var _e15=dojo.io.iframe.create(n,"void(0)",g_emptyHtmlPageUrl);this.lastIframeRequest=_e0d;var f=this.createForm(n,_e0f);f.submit();}},onIframeLoaded:function(data){this.lastIframeRequest.cb("success",data);this.lastIframeRequest=null;aol.common.d4.setTimeout(this,"sendNextRequest",g_restStartpageLatency);},createForm:function(_e18,_e19){var f=dojo.doc.createElement("form");f.setAttribute("action",g_startpageSecureHost+"/rest/startpage");f.setAttribute("method","post");f.setAttribute("target",_e18);f.className="hidden";var xml=dojo.doc.createElement("textarea");xml.setAttribute("name","xmlData");aol.common.d4.textContent(xml,_e19);f.appendChild(xml);var _e1c=document.cookie.match(/MYAOL_SESSION=([^;]+)/);if(_e1c&&_e1c.length==2){var s=dojo.doc.createElement("input");s.setAttribute("name","s");s.setAttribute("value",_e1c[1]);f.appendChild(s);}dojo.body().appendChild(f);return f;}});}if(!dojo._hasResource["aol.my.MagnetAPI"]){dojo._hasResource["aol.my.MagnetAPI"]=true;dojo.provide("aol.my.MagnetAPI");aol.my.MagnetAPI={};aol.my.MagnetAPI.SET_OPTIN="setOptin.do";aol.my.MagnetAPI.GET_OPTIN="getUserSettings.do";aol.my.MagnetAPI.CLEAR_PROFILE="resetProfile.do";aol.my.MagnetAPI.setOptin=function(_e1e,cb){var url=aol.my.Environment.getTabConfig("magnet").proxy+aol.my.MagnetAPI.SET_OPTIN;aol.my.MagnetAPI._sendToServer(url,{"optin":_e1e.magOn,"activitystream_enabled":_e1e.bfOn},cb);};aol.my.MagnetAPI.getOptin=function(cb){var url=aol.my.Environment.getTabConfig("magnet").proxy+aol.my.MagnetAPI.GET_OPTIN;aol.my.MagnetAPI._sendToServer(url,{"fmt":"json"},function(_e23,data){if(data.response.userPreference){cb(_e23,data.response.userPreference);}});};aol.my.MagnetAPI.clearProfile=function(cb){var url=aol.my.Environment.getTabConfig("magnet").proxy+aol.my.MagnetAPI.CLEAR_PROFILE;aol.my.MagnetAPI._sendToServer(url,{},cb);};aol.my.MagnetAPI._sendToServer=function(url,_e28,cb){dojo.xhrGet({url:url,content:_e28,handleAs:"json",handle:function(data,_e2b){if(data instanceof Error){cb(aol.my.Constants.ERROR,data);}else{cb(aol.my.Constants.SUCCESS,data);}}});};}if(!dojo._hasResource["aol.common.Sns"]){dojo._hasResource["aol.common.Sns"]=true;dojo.provide("aol.common.Sns");dojo.declare("aol.common.Sns",null,{constructor:function(){this.pc=aol.my.Environment.getPageConfig();dojo.subscribe("/aol.event.LoginRequired",this,"logIn");dojo.subscribe("/aol.event.SignUpRequired",this,"signUp");dojo.subscribe("/aol.event.Logout",this,"logOut");},logIn:function(evt){var _e2d;if(typeof (evt)=="undefined"){_e2d="startpage-main";evt=null;}else{_e2d=evt.id||evt.target.id||"";if(!(_e2d==""||_e2d.indexOf("-")==-1)){_e2d=_e2d.substring(0,_e2d.lastIndexOf("-"));}}aol.common.ReportingManager.reportEventWait(this._go,this.pc.loginUrl,_e2d,{"prop18":_e2d+" - SignIn"});return this._stopEvt(evt);},signUp:function(evt){this._go(this.pc.signUpUrl);return this._stopEvt(evt);},logOut:function(evt){this._go(this.pc.logoutUrl);return this._stopEvt(evt);},_stopEvt:function(evt){try{if(typeof (evt)!="undefined"&&evt!=null){dojo.stopEvent(evt);}}catch(e){}return false;},_go:function(url){document.location.href=url;}});}if(!dojo._hasResource["aol.common.Reporting"]){dojo._hasResource["aol.common.Reporting"]=true;dojo.provide("aol.common.Reporting");aol.common.Reporting={timeOut:1500,go:function(_e32,url,_e34){var p=[];for(var prop in _e32){p.push(prop+"="+_e32[prop]);}var u="/html/reporting.html?&go="+escape(url)+"&"+p.join("&");if(_e34){window.open(u);return;}location.href=u;},reportApprovedPageView:function(_e38,_e39,_e3a,_e3b){if(this.disabled){return;}var _e3c=(typeof (_e3a)!="undefined"?_e3a:false);if(arguments.length==4&&_e3b){this.comscore.reportPageView(_e38+"-"+_e3b,_e3c);}else{this.comscore.reportPageView(_e38,_e3c);}this.omniture.reportPageView(_e38,_e39,true,null,_e3c);},emptyQue:function(){if(this.que&&this.que.length!=0){var obj;while(this.que.length>0){obj=this.que.shift();aol.common.d4.setTimeout(obj[0],obj[1],1,obj[2]);}}},queRequest:function(ctx,func,_e40){if(!this.que){this.que=[];}this.que.push([ctx,func,_e40]);},reportPageView:function(_e41,_e42,_e43,_e44,_e45){if(this.disabled){return;}this.omniture.reportPageView(_e41,_e42,(typeof (_e43)!="undefined"?_e43:false),(typeof (_e44)!="undefined"?_e44:null),(typeof (_e45)!="undefined"?_e45:false));},reportEvent:function(_e46,_e47,_e48){if(this.disabled){return;}this.omniture.reportEvent(_e46,_e47,(typeof (_e48)=="undefined"?null:_e48));},report404Error:function(){if(this.disabled){return;}this.omniture.reportPageView(null,null,false,true);},setComscoreBaseUrl:function(_e49){this.comscore.config.baseUrl=_e49;},setOmnitureConfig:function(_e4a,_e4b,_e4c){var _e4d=this.omniture.config;if(_e4a){_e4d.emptyHtmlPageUrl=_e4a;}if(_e4b){_e4d.beaconImageUrl=_e4b;}if(_e4c){_e4d.omnitureScriptUrl=_e4c;}},setOmnitureAccounts:function(_e4e,_e4f,_e50,_e51,_e52,_e53,lang){var _e55=this.omniture.accounts;var _e56=this.omniture.staticProperties;if(_e4e){_e55.approvedAccount=_e4e;}if(_e4f){_e55.nonApprovedAccount=_e4f;}if(_e50){_e56.channel=_e50;}if(_e51){_e56.pfxID=_e51;}if(_e52){_e56.prop21=_e52;}if(_e53){_e56.prop22=_e53;}if(lang){_e56.prop23=lang;}},setUserProperties:function(_e57,_e58,_e59,_e5a,_e5b,_e5c){this.omniture.userProps={prop3:_e57.toString(),prop4:_e58.toString(),prop6:_e59.toString(),prop7:_e5a.toString(),prop8:_e5b.toString(),prop10:_e5c.toString()};},initialize:function(_e5d){this.omniture.initializeIframe(function(){console.debug("Reporting initialization complete");_e5d();});},disable:function(){this.disabled=true;},enable:function(){this.disabled=false;}};aol.common.Reporting.omniture={initialized:false,config:{emptyHtmlPageUrl:"/emptyPage",beaconImageUrl:"/spacerImage",omnitureScriptUrl:"http://o.aolcdn.com/omniunih.js"},accounts:{approvedAccount:"aolmyaol,aolsvc",nonApprovedAccount:"aolmyaol"},staticProperties:{pfxID:"mas",channel:"us.myaol"},userProps:null,reportPageView:function(_e5e,_e5f,_e60,_e61,_e62){if(!this.initialized){aol.common.Reporting.queRequest(this,this.reportPageView,arguments);return;}if(_e5e&&typeof (_e5e)=="object"){this.reportPageView.apply(this,_e5e);}else{if(_e62){this.doReportPageView(_e5e,_e5f,_e60,_e61);}else{aol.common.d4.setTimeout(this,"doReportPageView",aol.common.Reporting.timeOut,_e5e,_e5f,_e60,_e61);}}},reportEvent:function(_e63,_e64,_e65){if(!this.initialized){aol.common.Reporting.queRequest(this,this.reportEvent,arguments);return;}if(typeof (_e63)=="object"){if(_e63[1]){_e64=_e63[1];}if(_e63[0]){_e63=_e63[0];}}if(_e65){this.doReportEvent(_e63,_e64);}else{aol.common.d4.setTimeout(this,"doReportEvent",aol.common.Reporting.timeOut,_e63,_e64);}},doReportPageView:function(_e66,_e67,_e68,_e69){this.resetProperties();var _e6a=(_e68)?this.accounts.approvedAccount:this.accounts.nonApprovedAccount;this.setAccount(_e6a);var _e6b={};if(_e69){_e6b.pageType="errorPage";}else{_e6b.pageName=_e66;}with(this.staticProperties){_e6b.pfxID=pfxID;_e6b.channel=channel;if(typeof prop21!="undefined"){_e6b.prop21=prop21;}if(typeof prop22!="undefined"){_e6b.prop22=prop22;}if(typeof prop23!="undefined"){_e6b.prop23=prop23;}}if(this.userProps!=null){for(propName in this.userProps){_e6b[propName]=this.userProps[propName];}}if(_e67!=null){for(propName in _e67){_e6b[propName]=_e67[propName];}}if(_e6b.pfxID!=""){var _e6c=["pageName","prop1"];dojo.forEach(_e6c,function(_e6d){if(_e6d in _e6b){if(_e6b[_e6d]!=""){_e6b[_e6d]=_e6b.pfxID+" : "+_e6b[_e6d];}else{_e6b[_e6d]=_e6b.pfxID+" :";}}});_e6b["prop2"]=(_e6b.pfxID+" : "+(_e6b["prop2"]?_e6b["prop2"]:""));}_e6b["mmxgo"]=true;_e6b["mmxcustom"]=aol.common.Reporting.comscore.getFirstBeaconURL();_e6b["mmxtitle"]=aol.common.Reporting.comscore.getFirstEventName();var win=aol.common.d4.iframeContentWindow(this.iframe);var o=win.s_265||win.s;dojo.mixin(o,_e6b);o.t();this.fixThrobber();console.debug("-> reported omniture page view '"+((_e69)?"errorPage":_e66)+"'",_e6b,win);},doReportEvent:function(_e70,_e71){if(_e71==null){_e71={};}this.resetProperties();this.setAccount(this.accounts.nonApprovedAccount);this.setGi(this.accounts.nonApprovedAccount);this.setLinkName(_e70);var win=aol.common.d4.iframeContentWindow(this.iframe);var o=win.s_265||win.s;_e71.pfxID=this.staticProperties.pfxID;with(this.staticProperties){if(typeof prop21!="undefined"){_e71.prop21=prop21;}if(typeof prop22!="undefined"){_e71.prop22=prop22;}if(typeof prop23!="undefined"){_e71.prop23=prop23;}}dojo.mixin(o,_e71);var _e74=_e70;var _e75=this.staticProperties.pfxID;if(_e75!=""){var _e76=_e75+" : ";_e74=_e76+_e70;}o.pageName=_e74;o.linkTrackEvents="None";o.tl(true,"o",_e70);console.debug("-> reported omniture event '"+_e70+"'",_e71,win);},resetProperties:function(){this.setAccount(this.accounts.nonApprovedAccount);this.setGi("");this.setLinkName("");var win=aol.common.d4.iframeContentWindow(this.iframe);var o=win.s_265||win.s;var _e79={pageName:"",linkTrackVars:"",prop1:"",prop2:"",prop12:"",prop16:"",prop17:"",prop18:"",prop19:"",prop20:"",prop21:"",prop22:"",prop23:"",eVar16:"",eVar18:"",eVar19:"",campaign:"",mmxgo:null,mmxcustom:null,mmxtitle:null};for(propName in _e79){o[propName]=_e79[propName];}},initializeIframe:function(_e7a){this.initCallback=_e7a;this.iframe=dojo.io.iframe.create("reportingFrame"+(new Date).getTime(),"aol.common.Reporting.omniture.onIframeLoaded();",this.config.emptyHtmlPageUrl);},onIframeLoaded:function(){this.setAccount(this.accounts.approvedAccount);var _e7b=this.accounts.approvedAccount;if(_e7b.indexOf(",")!=-1){_e7b=_e7b.split(",")[0];}var win=aol.common.d4.iframeContentWindow(this.iframe);var img=win.document.createElement("img");img.name=img.id="s_i_"+_e7b;img.src=this.config.beaconImageUrl;win.document.body.appendChild(img);var _e7e=win.document.createElement("script");_e7e.src=this.config.omnitureScriptUrl;win.document.body.appendChild(_e7e);this.watchForScriptLoaded();},watchForScriptLoaded:function(){var win=aol.common.d4.iframeContentWindow(this.iframe);var _e80=win.s_dc||win.s_265||win.s;if(_e80){this.initialized=true;this.initCallback();}else{aol.common.d4.setTimeout(this,"watchForScriptLoaded",100);}},setAccount:function(_e81){this.setIframeVariable("s_account",_e81);},setGi:function(_e82){this.setIframeVariable("s_gi",_e82);},setLinkName:function(_e83){this.setIframeVariable("linkName",_e83);},setIframeVariable:function(_e84,_e85){var win=aol.common.d4.iframeContentWindow(this.iframe);if(dojo.isSafari){win[_e84]=_e85;}else{win.eval("var "+_e84+" = '"+_e85+"'");}},fixThrobber:function(){if(dojo.isMoz&&!this.fixedThrobber){aol.common.d4.setTimeout(function(){aol.common.Reporting.omniture.iframe.contentWindow.stop();},5000);this.fixedThrobber=true;}}};aol.common.Reporting.comscore={beaconURLs:[],eventNames:[],getFirstBeaconURL:function(){if(this.beaconURLs.length!=0){return this.beaconURLs.shift();}return "";},getFirstEventName:function(){if(this.eventNames.length!=0){return this.eventNames.shift();}return "";},config:{baseUrl:"/comscorePageViews/"},reportPageView:function(_e87,_e88){if(_e88){this.doReportPageView(_e87);}else{aol.common.d4.setTimeout(this,"doReportPageView",aol.common.Reporting.timeOut,_e87);}},doReportPageView:function(_e89){var url=this.getBeaconUrl(_e89);dojo.io.script.get({url:url,handleAs:"javascript"});console.debug("-> reported comscore page view '"+url+"'");},getBeaconUrl:function(_e8b){var _e8c=_e8b.replace(/[^\w-]/g,"");var url=this.config.baseUrl+_e8c+"_PageView.html"+"&dojo.preventCache="+(new Date()).getTime();var _e8e=url;if(url.indexOf("/")==0){_e8e="http://"+location.host+url;}this.beaconURLs.push(_e8e);this.eventNames.push(_e8b);return url;}};}if(!dojo._hasResource["aol.common.ReportingConfig"]){dojo._hasResource["aol.common.ReportingConfig"]=true;dojo.provide("aol.common.ReportingConfig");aol.common.ReportingConfig={initialized:false,initialize:function(_e8f,_e90,_e91){if(this.initalized){return;}this.initialized=true;var _e92;try{_e92=typeof (aol.common.resources)!="undefined"?aol.common.resources:g_reportingData;}catch(err){_e92=g_reportingData;}aol.common.Reporting.setComscoreBaseUrl(_e92.getConfig("comscoreBaseUrl"));var _e93=_e92.getConfig("beaconImageUrl");var _e94=_e92.getConfig("omnitureScriptUrl");var _e95=(_e8f)?_e8f.emptyHtmlPageUrl:_e92.getConfig("emptyHtmlPageUrl");aol.common.Reporting.setOmnitureConfig(_e95,_e93,_e94);var _e96=_e92.getConfig("masterOmnitureAccount");var _e97=_e92.getConfig("regularOmnitureAccount");var _e98=_e92.getConfig("omnitureChannel");var _e99=_e92.getConfig("pfxID");var _e9a=_e92.getConfig("brand");var _e9b=_e92.getConfig("market");var lang=_e92.getConfig("lang");aol.common.Reporting.setOmnitureAccounts(_e96,_e97,_e98,_e99,_e9b,_e9a,lang);if(!_e91){aol.common.pipe.getConfigData(dojo.hitch(this,function(_e9d,data){if(_e9d==0&&("Omniture" in data)){var o=data.Omniture;aol.common.Reporting.setUserProperties(o.businessID,o.memberTenure,o.masterAccountNumber,o.subAccountNumber,o.connectionType,o.clientMajorVersion);dojo.debug("Loaded Omniture server properties");}aol.common.Reporting.initialize(_e90);}));}else{aol.common.Reporting.setUserProperties(_e91.businessID,_e91.memberTenure,_e91.masterAccountNumber,_e91.subAccountNumber,_e91.connectionType,_e91.clientMajorVersion);aol.common.Reporting.initialize(_e90);}}};}if(!dojo._hasResource["aol.common.ReportingManager"]){dojo._hasResource["aol.common.ReportingManager"]=true;dojo.provide("aol.common.ReportingManager");aol.common.ReportingManager={newHereLinkClicked:false,timeout:1000,firstTime:true,firstTimeSetupComplete:false,fromHelp:false,isFeedWidget:function(_ea0){var _ea1=false;for(var i=0;i<_ea0.length;i++){if(_ea0[i]["up:name"]&&_ea0[i]["up:name"]=="feedUrl"){_ea1=true;break;}}return _ea1;},addCommonProps:function(_ea3){if(!("prop12" in _ea3)){_ea3.prop12=this._getp12();}return _ea3;},reportEvent:function(_ea4,_ea5,_ea6,_ea7){_ea5.linkTrackVars="prop18";if(typeof (_ea7)!="undefined"&&_ea7){if(_ea5.prop19){_ea5.prop19+="|";}else{_ea5.prop19="";}_ea5.prop19+=("auth="+(!aol.my.Environment.getUser().isAnonymous));}if(_ea5.prop19&&_ea5.prop19!=""){_ea5.linkTrackVars+=",prop19";}aol.common.Reporting.reportEvent(_ea4,this.addCommonProps(_ea5),(typeof (_ea6)!="undefined"?_ea6:false));},reportEventWait:function(_ea8,_ea9,_eaa,_eab){var _eac=((typeof (_ea9)=="undefined"||_ea9==null)?"":_ea9);aol.common.d4.setTimeout(_ea8,500,_eac);this.reportEvent(_eaa,_eab,true);},reportApprovedPageView:function(_ead,_eae,b,c,_eb1){if(typeof (_eb1)!="undefined"&&_eb1){if(_eae.prop19){_eae.prop19+="|";}else{_eae.prop19="";}_eae.prop19+=("auth="+(!aol.my.Environment.getUser().isAnonymous));}aol.common.Reporting.reportApprovedPageView(_ead,this.addCommonProps(_eae),b,c);},init:function(_eb2){var ctx=this;this.config=_eb2;var _eb4=aol.common.Util.getUrlParam("f");if(_eb4&&_eb4=="help"){this.fromHelp=true;}dojo.subscribe("/aol.event.module.save",function(_eb5){ctx.reportEvent("startpage-main-module-save",{prop18:"saved module: "+_eb5},true);});dojo.subscribe("/aol.event.module.manualEdit",function(_eb6){ctx.reportEvent("startpage - module options - "+((_eb6=="feedModule")?"feed module":"product module"),{prop18:"startpage - module options - "+((_eb6=="feedModule")?"feed module":"product module")});});dojo.subscribe("/aol.event.gadget.refresh",function(_eb7,_eb8){if(!_eb8){return;}ctx.reportEvent("startpage - module refresh - "+_eb7,{prop18:"startpage - module refresh - "+_eb7});});dojo.subscribe("/aol.event.gadget.manualEdit",function(_eb9){var _eba=aol.my.ModuleManager.isFeedGadget(_eb9);var type="product module";if(_eba){type="feed module";}ctx.reportEvent("startpage - module options - "+type,{prop18:"startpage - module options - "+type});});dojo.subscribe("/aol.event.setHomePage",function(mode){var tab=ctx._getCurrentTab();var _ebe=tab+"-makethismyhomepage-"+mode;ctx.reportEvent(_ebe,{prop18:tab+" - make this my home page"});});dojo.subscribe("/aol.event.module.delete",function(_ebf){ctx.reportEvent("startpage - module removed - "+((_ebf.type=="feedModule")?"feed module":"product module"),{prop18:"startpage - module removed - "+((_ebf.type=="feedModule")?"feed module":"product module")});});dojo.connect(aol.my.App,"loadSettings",function(){ctx.reportApprovedPageView(ctx._getCurrentTab()+"-settings",{"prop1":"settings","prop16":ctx._getCurrentTab(),"prop17":"settings link"},false,"SettingsLink");});dojo.subscribe("/aol.event.SettingsSaved",function(){ctx.reportApprovedPageView(ctx._getCurrentTab()+"-settings",{"prop1":"settings","prop16":ctx._getCurrentTab(),"prop17":"settings saved"},false,"SettingsSaved");});dojo.subscribe("/aol.event.gadget.CanvasView",function(_ec0){ctx.reportApprovedPageView(ctx._getCurrentTab()+"-title",{"prop1":"startpage","prop16":"main","prop17":("canvas view opened - "+_ec0)},false,"CanvasView"+_ec0);});var user=aol.my.Environment.getUserData();for(var _ec2 in user.tabConfig){var _ec3=aol.my.Environment.getTabConfig(_ec2).focusEvent;_ec3=_ec3.substring(_ec3.lastIndexOf(".")+1);this[_ec3]=function(_ec4){var t=aol.my.Environment.getTabConfig(_ec4.type);var _ec6={"prop1":t.desc,"prop16":"main","prop12":"http://"+location.host+"/page/"+_ec4.type,"prop17":"startpage tab"};var _ec7;if(_ec4.firstTimeView){if(_ec4.isReadyMade){_ec6["prop17"]="ready-made tab click";}else{if(_ec4.isNew){_ec6["prop16"]="main";_ec6["prop17"]="add regular tab";_ec7="Add Regular New Tab";}else{_ec6["prop16"]="main";_ec6["prop17"]=null;if(this.fromHelp){_ec6["prop17"]="from help";this.fromHelp=false;}else{if(ctx.pageLoaded){_ec6["prop17"]="startpage tab";if(_ec4.applicationTab){_ec6["prop17"]="application tab";}}else{if(dojo.byId("ftuxDisplayed")){_ec6["prop16"]="ftux";}}}}}ctx.pageLoaded=true;var _ec8=function(_ec9,_eca){dojo.cookie(_ec9,_eca.toLowerCase());_ec6["campaign"]=_eca;_ec6["eVar18"]=_eca;_ec6["eVar19"]=_eca;_ec6["prop12"]+=("?"+_ec9.substring(6).toLowerCase()+"="+_eca);};var _ecb=function(_ecc,_ecd){dojo.cookie(_ecc,_ecd.toLowerCase());_ec6["eVar16"]=_ecd;_ec6["prop12"]+=("?"+_ecc.substring(6).toLowerCase()+"="+_ecd);};var _ece=function(_ecf){var _ed0=aol.common.Util.getUrlParam(_ecf);var _ed1="MYAOL_"+_ecf.toUpperCase();var _ed2=dojo.cookie(_ed1);if(_ed2){if(_ed0&&_ed2.toLowerCase()!=_ed0.toLowerCase()){if(_ed1=="MYAOL_ICID"){_ecb(_ed1,_ed0);}else{_ec8(_ed1,_ed0);}}}else{if(_ed0){if(_ed1=="MYAOL_ICID"){_ecb(_ed1,_ed0);}else{_ec8(_ed1,_ed0);}}}};_ece("icid");_ece("ncid");}var part=_ec6.prop16;if(_ec6.prop16=="main"){var _ed4=_ec4.domNode.getElementsByTagName("a")[0].innerHTML;_ec6.prop16=_ed4||part;}_ec7=_ec7||(t.desc+"-"+part);ctx.reportApprovedPageView(_ec7,_ec6,false,_ec6.prop17);};dojo.subscribe(aol.my.Environment.getTabConfig(_ec2).focusEvent,this,_ec3);}},initTray:function(tray){var ctx=this;this.tray=tray;var _ed7=false;dojo.connect(dojo.byId("addStuff"),"onclick",function(){ctx.reportApprovedPageView("startpage-main",{"prop1":"startpage","prop16":"main","prop17":"AddStuff"},false,"AddStuff");});this._openTrayWithThemes=this.tray.openTrayWithThemes;this.tray.openTrayWithThemes=function(evt){ctx.reportApprovedPageView("startpage-main",{"prop1":"startpage","prop16":"main","prop17":"Themes Link in Hat"});ctx._openTrayWithThemes.apply(ctx.tray,arguments);};this._showThemes0=this.tray.showThemes0;this.tray.showThemes0=function(evt){if(typeof (evt)=="object"){ctx.reportEvent("startpage-main",{"prop18":"ShowThemesTray"});}ctx._showThemes0.apply(ctx.tray,arguments);};this._showModules0=this.tray.showModules0;this.tray.showModules0=function(evt){if(typeof (evt)=="string"){return;}ctx.reportEvent("startpage-main",{"prop18":"ShowContentTray"});ctx._showModules0.apply(ctx.tray,arguments);};this._showFeeds=this.tray.showFeeds;this.tray.showFeeds=function(){ctx.reportEvent("startpage-main",{"prop18":"ShowFeedsTray"});ctx._showFeeds.apply(ctx.tray,arguments);};this._showRMPages0=this.tray.showRMPages0;this.tray.showRMPages0=function(){ctx.reportEvent("startpage-main",{"prop18":"ShowRMPagesTray"});ctx._showRMPages0.apply(ctx.tray,arguments);};this._addModule=this.tray.addModule;this.tray.addModule=function(){ctx.reportEvent("startpage-main",{"prop18":"AddModuleTray="+arguments[2]});ctx._addModule.apply(ctx.tray,arguments);};dojo.connect(aol.my.ModuleManager,"insertGadget",function(){ctx.reportEvent("startpage-main",{"prop18":"Add Gadget from Gadgets/Feeds Tray"});});dojo.connect(aol.my.ModuleManager,"insertFeed",function(){ctx.reportEvent("startpage-main",{"prop18":"Add Feed from Gadgets/Feeds Tray"});});dojo.connect(aol.my.ModuleManager,"addFeedWidget",function(){ctx.reportEvent("startpage-main",{"prop18":"AddRssFeed"});});dojo.connect(this.tray,"nextRMPages",function(){ctx.reportEvent("startpage-main",{"prop18":"RMPTray Right Arrow"});});dojo.connect(this.tray,"prevRMPages",function(){ctx.reportEvent("startpage-main",{"prop18":"RMPTray Left Arrow"});});dojo.subscribe("/aol.event.tray.addPage",function(rmp){ctx.reportEvent("startpage-main",{prop18:"AddReadyMadePage="+rmp});});this._hideTray=this.tray.hideTray;this.tray.hideTray=dojo.hitch(this,function(){if(arguments.length==0){this._hideTray.apply(this.tray,arguments);return;}var evt=arguments[0];var _edd="Tray Close";if(evt.target.id=="traydoneBtn"){_edd="ImDone";}var _ede={prop18:_edd};if(ctx.tray.themeChanged){_ede.prop19="tr_th="+aol.my.ThemeManager.getCurrentTheme();}ctx.reportEvent("startpage-main",_ede);this._hideTray.apply(this.tray,arguments);});dojo.connect(this.tray,"nextThemes",function(){ctx.reportEvent("startpage-main",{"prop18":"ThemesTray Right Arrow"});});dojo.connect(this.tray,"prevThemes",function(){ctx.reportEvent("startpage-main",{"prop18":"ThemesTray Left Arrow"});});},connect:function(_edf,ctx,_ee1,_ee2){if(!this.connectRefs){this.connectRefs={};this.connectRefs.origFunc={};}this.connectRefs.origFunc[_ee1]=ctx[_ee1];ctx[_ee1]=dojo.hitch(this,function(){var _ee3=arguments;if(_edf=="before"){_ee2.apply(this,arguments);this.connectRefs.origFunc[_ee1].apply(ctx,arguments);}else{if(_edf=="around"){_ee2.call(this,{proceed:dojo.lang.hitch(this,function(){this.connectRefs.origFunc[_ee1].apply(ctx,_ee3);}),args:arguments});}else{this.connectRefs.origFunc[_ee1].apply(ctx,arguments);_ee2.apply(this,arguments);}}});},initFTUX:function(ftux){this.ftux=ftux;var ctx=this;var _ee6="startpage-ftux";var _ee7="startpage-ftux-done";var _ee8=dojo.byId("ftux");this.connect("after",ftux,"hideFtux",function(){if(arguments.length==1){this.reportEvent(_ee6,{"prop18":"CloseFtux"},false);}});this.connect("around",ftux,"hideFtuxDone",function(mi){if(typeof (mi.args[0])!="string"){ctx.reportEvent(_ee7,{"prop18":"CloseFtuxDone"},false,true);}mi.proceed();});this.connect("before",ftux,"showTray",function(){this.reportApprovedPageView(_ee7,{"prop1":"startpage","prop16":"main","prop17":"FTUX Done - Find More Stuff to Add"});});this.connect("after",ftux,"init",function(){this.newHereLinkClicked=true;this.reportApprovedPageView(_ee7,{"prop1":"startpage","prop16":"ftux","prop17":"Im New Here Link"});});this.connect("after",ftux,"addReadyMadeTabs",this._trackFtux);this.connect("after",ftux,"addModules",this._trackFtux);},registerFunctionForPageView:function(ctx,_eeb,_eec){dojo.connect(ctx,_eeb,function(){ctx.reportApprovedPageView(_eec,ctx._getPageViewProps(_eec).props);});},_trackFtux:function(){var per=[("zip="+(this.ftux.zipModified?1:0))];per.push("th="+aol.my.ThemeManager.getCurrentTheme());per.push("int="+(this.ftux.readyMadeTabsSelected||this.ftux.numOfModulesSelected));var _eee=(this.ftux.currentTabTheme!=aol.my.ThemeManager.getCurrentTheme());var _eef=((this.ftux.readyMadeTabsSelected>0)||(this.ftux.numOfModulesSelected>0));if(_eee&&_eef){per.push("per=3");}else{if(_eee&&!_eef){per.push("per=1");}else{if(_eef&&!_eee){per.push("per=2");}else{per.push("per=0");}}}var _ef0="startpage-ftux";if(!this.newHereLinkClicked){this.reportApprovedPageView(_ef0+"-Im Done",{"prop1":"startpage","prop16":"ftux","prop17":"Ftux Im Done Link","prop19":per.join("|")},false,"ImDone",true);}else{this.reportEvent(_ef0+"-Im Done",{"prop18":"Ftux-Im Done","prop19":per.join("|")},false,true);}},_getPageViewProps:function(_ef1){return {pageName:this._getCurrentTab()+"-"+_ef1,props:{"prop1":this._getCurrentTab(),"prop12":this._getp12(),"prop16":"main","prop17":_ef1}};},_getp12:function(){return ("http://"+location.host+"/page/"+this._getCurrentTab());},_getCurrentTab:function(){if(typeof aol.my.App.tabManager!="undefined"){return aol.my.Environment.getTabConfig(aol.my.App.tabManager.getCurrentTab().type).desc;}else{return "startpage";}}};}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._copyKey=navigator.appVersion.indexOf("Macintosh")<0?"ctrlKey":"metaKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);b.l+=t.x+n.scrollLeft;b.t+=t.y+n.scrollTop;var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-b.l,ry=e.pageY-b.t,dx=0,dy=0;if(rx>0&&rx<b.w){if(rx<w){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(rx>b.w-w){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(ry>b.h-h){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}}var _f09=n.scrollLeft,_f0a=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_f09!=n.scrollLeft||_f0a!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_f0b){this.manager=_f0b;this.construct();},construct:function(){var a=dojo.doc.createElement("table");a.className="dojoDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dojo.doc.createElement("tbody");var tr=dojo.doc.createElement("tr");tr.className="dojoDndAvatarHeader";var td=dojo.doc.createElement("td");td.innerHTML=this._generateText();tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);var k=Math.min(5,this.manager.nodes.length);var _f11=this.manager.source;for(var i=0;i<k;++i){tr=dojo.doc.createElement("tr");tr.className="dojoDndAvatarItem";td=dojo.doc.createElement("td");if(_f11.creator){node=_f11._normalizedCreator(_f11.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _f13=dojo.doc.createElement("table"),_f14=dojo.doc.createElement("tbody");_f14.appendChild(node);_f13.appendChild(_f14);node=_f13;}}node.id="";td.appendChild(node);tr.appendChild(td);dojo.style(tr,"opacity",(9-i)/10);b.appendChild(tr);}a.appendChild(b);this.node=a;},destroy:function(){dojo._destroyElement(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");dojo.query("tr.dojoDndAvatarHeader td").forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_f16){if(this.avatar){this.target=(_f16&&_f16.targetState!="Disabled")?_f16:null;this.avatar.update();}dojo.publish("/dnd/source/over",[_f16]);},outSource:function(_f17){if(this.avatar){if(this.target==_f17){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_f18,_f19,copy){this.source=_f18;this.nodes=_f19;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_f18,_f19,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp")];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _f1d=Boolean(this.target&&flag);if(this.canDropFlag!=_f1d){this.canDropFlag=_f1d;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),"dojoDndCopy");dojo.removeClass(dojo.body(),"dojoDndMove");dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScroll(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.dnd.getCopyKeyState(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar&&(!("mouseButton" in this.source)||this.source.mouseButton==e.button)){if(this.target&&this.canDropFlag){var _f23=[this.source,this.nodes,Boolean(this.source.copyState(dojo.dnd.getCopyKeyState(e))),this.target];dojo.publish("/dnd/drop/before",_f23);dojo.publish("/dnd/drop",_f23);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.removeClass(dojo.body(),"dojoDnd"+(this.copy?"Move":"Copy"));dojo.addClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["aol.my.dnd.Avatar"]){dojo._hasResource["aol.my.dnd.Avatar"]=true;dojo.provide("aol.my.dnd.Avatar");dojo.declare("aol.my.dnd.Avatar",null,{constructor:function(_f29){this.manager=_f29;this.nodeToMove=this.manager.nodes[0];var a=dojo.doc.createElement("div");a.className="dojoDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var _f2b=dojo.contentBox(this.nodeToMove);var node;if(dojo.isDescendant(this.manager.source.node,"tabbar")){var n=dojo.doc.createElement("span");var _f2e=dojo.style(this.nodeToMove,"borderTopColor");aol.common.d4.firstElement(this.nodeToMove).style.display="none";this.oldTabBackgroundColor=dojo.style(this.nodeToMove,"backgroundColor");dojo.style(a,"backgroundColor",dojo.style(this.nodeToMove,"backgroundColor"));dojo.style(a,"border","1px solid #ccc");dojo.style(a,"padding","4px 20px");dojo.style(this.nodeToMove,"width",(_f2b.w+"px"));dojo.style(this.nodeToMove,"height",(_f2b.h+"px"));dojo.style(this.nodeToMove,"backgroundColor",_f2e);n.innerHTML=dojo.query(".tabA",this.nodeToMove)[0].innerHTML;node=n;dojo.style(a,"width",(_f2b.w+5+"px"));node.id="";a.id="avatarTab";a.appendChild(node);}else{node=this.nodeToMove.cloneNode(false);node.id="";a.id="avatar";if(dojo.hasClass(this.nodeToMove,"gadget")&&dojo.isMoz){var _f2f=aol.my.ModuleManager.getModuleInstance(this.nodeToMove.id);var _f30=dojo.coords(_f2f.mainNode,true);node.appendChild(aol.common.d4.firstElement(this.nodeToMove));if(_f2f.iframeNode!=undefined){_f2f.iframeNode.removeAttribute("src");var _f31=document.createElement("div");_f31.className="iframeShield";dojo.style(_f31,"width",_f30.w+8+"px");dojo.style(_f31,"height",_f30.h+"px");dojo.dnd.manager().divShields.push(node.appendChild(_f31));a.appendChild(node);_f2f.refreshGadget();}else{a.appendChild(node);}}else{node.appendChild(aol.common.d4.firstElement(this.nodeToMove));a.appendChild(node);}var b=((dojo.style(this.nodeToMove,"borderLeftWidth"))*2);dojo.style(a,"width",(_f2b.w+b+"px"));dojo.style(a,"height",(_f2b.h+b+"px"));dojo.style(this.nodeToMove,"height",(_f2b.h+"px"));}this.node=a;},destroy:function(){if(this.nodeToMove.parentNode.id=="tabs"){aol.common.d4.firstElement(this.nodeToMove).style.display="";this.nodeToMove.removeAttribute("style");}else{var _f33=aol.common.d4.firstElement(aol.common.d4.firstElement(this.node));this.nodeToMove.appendChild(_f33);window.setTimeout(function(){dojo.style(_f33,"visibility","hidden");dojo.style(_f33,"visibility","visible");},10);}dojo._destroyElement(this.node);this.nodeToMove.style.width=null;this.nodeToMove.style.height=null;this.node=false;},update:function(){},_generateText:function(){}});}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_f35){this.node=dojo.byId(node);if(!_f35){_f35={};}this.creator=_f35.creator||null;this.skipForm=_f35.skipForm;this.defaultCreator=dojo.dnd._defaultCreator(this.node);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_f35&&_f35._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in this.map){if(i in e){continue;}f.call(o,m[i],i,m);}},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},insertNodes:function(data,_f40,_f41){if(!this.parent.firstChild){_f41=null;}else{if(_f40){if(!_f41){_f41=this.parent.firstChild;}}else{if(_f41){_f41=_f41.nextSibling;}}}if(_f41){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_f41);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current;},markupFactory:function(_f44,node){_f44._skipStartup=true;return new dojo.dnd.Container(node,_f44);},startup:function(){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}this.getAllNodes().forEach(function(node){if(!node.id){node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");this.setItem(node.id,{data:data?data:node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]});},this);},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_f50){var _f51="dojoDnd"+type;var _f52=type.toLowerCase()+"State";dojo.removeClass(this.node,_f51+this[_f52]);dojo.addClass(this.node,_f51+_f50);this[_f52]=_f50;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _f59=node.parentNode;_f59;node=_f59,_f59=node.parentNode){if(_f59==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator?this.creator:this.defaultCreator)(item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){var n=dojo.doc.createElement(tag);n.innerHTML=text;return n;};};dojo.dnd._createTrTd=function(text){var tr=dojo.doc.createElement("tr");var td=dojo.doc.createElement("td");td.innerHTML=text;tr.appendChild(td);return tr;};dojo.dnd._createSpan=function(text){var n=dojo.doc.createElement("span");n.innerHTML=text;return n;};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="table"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _f6a=dojo.isObject(item)&&item;var data=(_f6a&&item.data)?item.data:item;var type=(_f6a&&item.type)?item.type:["text"];var t=String(data),n=(hint=="avatar"?dojo.dnd._createSpan:c)(t);n.id=dojo.dnd.getUniqueId();return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_f70){if(!_f70){_f70={};}this.singular=_f70.singular;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo._destroyElement(n);}this.anchor=null;this.selection={};return this;},insertNodes:function(_f79,data,_f7b,_f7c){var _f7d=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_f7d.call(this,item,hint);if(_f79){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_f7b,_f7c);this._normalizedCreator=_f7d;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_f81,node){_f81._skipStartup=true;return new dojo.dnd.Selector(node,_f81);},onMouseDown:function(e){if(!this.current){return;}if(!this.singular&&!dojo.dnd.getCopyKeyState(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;dojo.stopEvent(e);return;}if(!this.singular&&e.shiftKey){if(!dojo.dnd.getCopyKeyState(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.dnd.getCopyKeyState(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.dnd.getCopyKeyState(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,skipForm:false,withHandles:false,accept:["text"],constructor:function(node,_f8d){dojo.mixin(this,dojo.mixin({},_f8d));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_f90,_f91){if(this==_f90){return true;}for(var i=0;i<_f91.length;++i){var type=_f90.getItem(_f91[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_f96){return this.copyOnly||_f96;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_f97,node){_f97._skipStartup=true;return new dojo.dnd.Source(node,_f97);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(this.isDragging){var _f9b=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox={xy:dojo.coords(this.current,true),w:this.current.offsetWidth,h:this.current.offsetHeight};}if(this.horizontal){_f9b=(e.pageX-this.targetBox.xy.x)<(this.targetBox.w/2);}else{_f9b=(e.pageY-this.targetBox.xy.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_f9b!=this.before){this._markTargetAnchor(_f9b);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}else{if(this.mouseDown&&this.isSource){var _f9c=this.getSelectedNodes();if(_f9c.length){m.startDrag(this,_f9c,this.copyState(dojo.dnd.getCopyKeyState(e)));}}}},onMouseDown:function(e){if(this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this.mouseButton=e.button;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_f9f){if(this!=_f9f){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_fa1,_fa2,copy){if(this.isSource){this._changeState("Source",this==_fa1?(copy?"Copied":"Moved"):"");}var _fa4=this.accept&&this.checkAcceptance(_fa1,_fa2);this._changeState("Target",_fa4?"":"Disabled");if(_fa4&&this==_fa1){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_fa5,_fa6,copy){do{if(this.containerState!="Over"){break;}var _fa8=this._normalizedCreator;if(this!=_fa5){if(this.creator){this._normalizedCreator=function(node,hint){return _fa8.call(this,_fa5.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_fa5.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_fa5.getItem(node.id);_fa5.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}}else{if(this.current&&this.current.id in this.selection){break;}if(this.creator){if(copy){this._normalizedCreator=function(node,hint){return _fa8.call(this,_fa5.getItem(node.id).data,hint);};}else{if(!this.current){break;}this._normalizedCreator=function(node,hint){var t=_fa5.getItem(node.id);return {node:node,data:t.data,type:t.type};};}}else{if(copy){this._normalizedCreator=function(node,hint){var t=_fa5.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{if(!this.current){break;}this._normalizedCreator=function(node,hint){var t=_fa5.getItem(node.id);return {node:node,data:t.data,type:t.type};};}}}this._removeSelection();if(this!=_fa5){this._removeAnchor();}if(this!=_fa5&&!copy&&!this.creator){_fa5.selectNone();}this.insertNodes(true,_fa6,this.before,this.current);if(this!=_fa5&&!copy&&this.creator){_fa5.deleteSelectedNodes();}this._normalizedCreator=_fa8;}while(false);this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;delete this.mouseButton;this._changeState("Source","");this._changeState("Target","");},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);},_markTargetAnchor:function(_fbe){if(this.current==this.targetAnchor&&this.before==_fbe){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_fbe;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!this.withHandles){return true;}for(var node=e.target;node&&!dojo.hasClass(node,"dojoDndItem");node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_fc3){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_fc4,node){_fc4._skipStartup=true;return new dojo.dnd.Target(node,_fc4);}});}if(!dojo._hasResource["aol.my.dnd.Containers"]){dojo._hasResource["aol.my.dnd.Containers"]=true;dojo.provide("aol.my.dnd.Containers");dojo.declare("aol.my.dnd.Container",dojo.dnd.Source,{mouseThreshhold:{sensitivity:5,x:0,y:0},accept:["module"],onMouseDown:function(e){this.mouseThreshhold.x=e.pageX;this.mouseThreshhold.y=e.pageY;aol.my.dnd.Container.superclass.onMouseDown.call(this,e);},onMouseOut:function(e){for(var n=e.relatedTarget;n;){try{if(this.isDragging&&n.id=="avatar"){return;}}catch(e){}if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){},skipForm:true,singular:true,withHandles:true,onDndDrop:function(_fca,_fcb,copy,_fcd,_fce){do{if(this.containerState!="Over"){break;}if(!_fca.getItem(_fcb[0].id)){this.containerState="";break;}var _fcf=this._normalizedCreator;if(this!=_fca){this._normalizedCreator=function(node,hint){var t=_fca.getItem(node.id);_fca.delItem(node.id);return {node:node,data:t.data,type:t.type};};}else{if(this.current&&this.current.id in this.selection){break;}if(!this.current){break;}this._normalizedCreator=function(node,hint){var t=_fca.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();if(this!=_fca){this._removeAnchor();}if(this!=_fca&&!copy&&!this.creator){_fca.selectNone();}this.insertNodes(false,_fcb,this.before,this.current,(typeof (_fce)!="undefined"?_fce:false));if(this!=_fca&&!copy&&this.creator){_fca.deleteSelectedNodes();}this._normalizedCreator=_fcf;}while(false);this.onDndCancel();}});dojo.declare("aol.my.dnd.ModuleContainer",aol.my.dnd.Container,{accept:["module"],simpleSelection:true,insertNodes:function(_fd6,data,_fd8,_fd9,_fda){if(typeof (_fda)=="undefined"){_fda=false;}var _fdb=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_fdb.call(this,item,hint);this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");return t;};var t;if(_fd9){t=this._normalizedCreator(data[0]);this.setItem(t.node.id,{data:t.data,type:t.type});if(!_fda){try{this.parent.insertBefore(t.node,_fd9);}catch(e){}}}else{t=this._normalizedCreator(data[0]);this.setItem(t.node.id,{data:t.data,type:t.type});if(!_fda){this.parent.appendChild(t.node);}}this._normalizedCreator=_fdb;return this;},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(!n){return;}if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},place:function(_fe2,_fe3){var _fe4=dojo.dnd.manager().source.getSelectedNodes()[0];if((_fe3=="Before"&&aol.common.d4.getPreviousSiblingElement(_fe2)==_fe4)||(_fe3=="After"&&aol.common.d4.getNextSiblingElement(_fe2)==_fe4)){return;}dojo.place(_fe4,_fe2,_fe3);},onMouseMove:function(e){var m=dojo.dnd.manager();var _fe7;if(this.isDragging){if(this.current){if(this.current==dojo.dnd.manager().nodes[0]){return;}this.targetBox={xy:dojo._abs(this.current,true),w:this.current.offsetWidth,h:this.current.offsetHeight};var _fe8=(e.pageY-this.targetBox.xy.y)<(this.targetBox.h/2);if(this.targetAnchor!=this.current||(this.targetAnchor==this.current&&this.before!=_fe8)){_fe7=dojo.dnd.manager().source.getSelectedNodes()[0];if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.before=_fe8;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");this.place(this.targetAnchor,this.before?"Before":"After");}m.canDrop(m.source!=this||!(this.current.id in this.selection));}}else{var _fe9=this.getAllNodes();if(_fe9.length!=0){var _fea=_fe9[_fe9.length-1];if(_fe9.length==1){this.current=_fea;return;}if(e.pageY>dojo._abs(_fea,true).y){this.before=false;this.current=_fea;this.place(this.node,"Last");}}else{_fe7=m.source.getSelectedNodes()[0];this.before=false;this.current=_fe7;this.place(this.node,"Last");}}}else{if(this.mouseDown&&this.isSource){var _feb=this.getSelectedNodes();var _fec=((e.pageX>this.mouseThreshhold.x)&&(e.pageX>(this.mouseThreshhold.x+this.mouseThreshhold.sensitivity)))||((e.pageX<this.mouseThreshhold.x)&&(e.pageX<(this.mouseThreshhold.x-this.mouseThreshhold.sensitivity)));var _fed=((e.pageY>this.mouseThreshhold.y)&&(e.pageY>(this.mouseThreshhold.y+this.mouseThreshhold.sensitivity)))||((e.pageY<this.mouseThreshhold.y)&&(e.pageY<(this.mouseThreshhold.y-this.mouseThreshhold.sensitivity)));if(_fec||_fed){if(_feb.length){m.startDrag(this,_feb,false,e);}}}}}});dojo.declare("aol.my.dnd.TabContainer",aol.my.dnd.Container,{withHandles:false,accept:["module","tab"],onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}this.simpleSelection=true;var m=dojo.dnd.manager();if(this.isDragging){var _ff0=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox={xy:dojo.coords(this.current,true),w:this.current.offsetWidth,h:this.current.offsetHeight};}_ff0=(e.pageX-this.targetBox.xy.x)<(this.targetBox.w/2);}if(this.current!=this.targetAnchor||_ff0!=this.before){this._markTargetAnchor(_ff0);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}else{var _ff1=((e.pageX>this.mouseThreshhold.x)&&(e.pageX>(this.mouseThreshhold.x+this.mouseThreshhold.sensitivity)))||((e.pageX<this.mouseThreshhold.x)&&(e.pageX<(this.mouseThreshhold.x-this.mouseThreshhold.sensitivity)));var _ff2=((e.pageY>this.mouseThreshhold.y)&&(e.pageY>(this.mouseThreshhold.y+this.mouseThreshhold.sensitivity)))||((e.pageY<this.mouseThreshhold.y)&&(e.pageY<(this.mouseThreshhold.y-this.mouseThreshhold.sensitivity)));if(_ff1||_ff2){if(this.mouseDown&&this.isSource){var _ff3=this.getSelectedNodes();if(_ff3.length){m.startDrag(this,_ff3,this.copyState(dojo.dnd.getCopyKeyState(e)));}}}}},_markTargetAnchor:function(_ff4){if(this.current==this.targetAnchor&&this.before==_ff4){return;}var _ff5=dojo.dnd.manager().source.getSelectedNodes()[0];if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_ff4;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");var m=dojo.dnd.manager();var type=m.source.getItem(m.source.getSelectedNodes()[0].id).type[0];if(type!="module"){dojo.place(_ff5,this.targetAnchor,this.before?"Before":"After");}}},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}this.current=n;if(this.isDragging&&n&&dojo.dnd.manager().source!=dojo.dnd.manager().target&&aol.my.App.tabManager.getCurrentTab().domNode!=this.current&&!aol.my.App.tabManager.getTabObjectById(this.current.id).applicationTab){this._addItemClass(n,"Over");}},insertNodes:function(_ffa,data,_ffc,_ffd){if(this.getAllNodes().length==1){return;}var _ffe=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_ffe.call(this,item,hint);this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");return t;};var _1002=aol.common.d4.firstElement(this.parent);if(!_1002){_ffd=null;}else{if(_ffc){if(!_ffd){_ffd=_1002;}}else{if(_ffd){_ffd=aol.common.d4.nextElement(_ffd);}}}var m=dojo.dnd.manager();var t=this._normalizedCreator(data[0]);if(m.source!=m.target){var _1005=m.moduleContainerManager.getContainer(m.target.current.id,0);_1005.setItem(t.node.id,{data:t.data,type:t.type});dojo.place(t.node,_1005.node,0);}else{this.parent.insertBefore(t.node,_ffd);}this._normalizedCreator=_ffe;return this;}});dojo.dnd._defaultCreator=function(node){return function(item,hint){return {node:item.node,data:item.node.innerHTML,type:item.type};};};}if(!dojo._hasResource["aol.my.dnd.Manager"]){dojo._hasResource["aol.my.dnd.Manager"]=true;dojo.provide("aol.my.dnd.Manager");dojo.declare("aol.my.dnd.Manager",dojo.dnd.Manager,{OFFSET_X:5,OFFSET_Y:30,divShields:[],setIframeDivShields:function(){dojo.query("div.gadget",aol.my.App.tabManager.getCurrentTab().getTabContentObj().domNode).forEach(function(_1009){var _100a=dojo.coords(_1009,true);var div=document.createElement("div");div.className="iframeShield";dojo.style(div,"width",_100a.w+8+"px");dojo.style(div,"height",_100a.h+"px");this.divShields.push(_1009.appendChild(div));},this);},removeIframeDivShields:function(){for(var i=0;i<this.divShields.length;i++){dojo._destroyElement(this.divShields[i]);}},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScroll(e);var s=a.node.style;if(a.node.id=="avatar"){if(e.pageX>(this.rightColumnStart-this.OFFSET_X)){s.left=this.rightColumnStart+"px";}else{if(e.pageX<this.columnCoords[0].total){s.left=this.columnCoords[0].x+"px";}else{s.left=(e.pageX+this.OFFSET_X)+"px";}}s.top=(e.pageY+this.OFFSET_Y)+"px";}else{s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";}}},onKeyDown:function(e){if(this.avatar){if(e.keyCode==dojo.keys.ESCAPE){dojo.publish("/dnd/cancel");this.stopDrag();}}},constructor:function(){this.moduleContainerManager=new aol.my.dnd.ModuleContainerManager();this.tabContainerManager=new aol.my.dnd.TabContainerManager();this.profileUpdater=new aol.my.dnd.ProfileUpdater();},overSource:function(_1011){if(this.avatar){this.target=_1011?_1011:null;if(this.avatar.node.id!="avatarTab"){window.setTimeout(dojo.lang.hitch(this,function(){this.moduleContainerManager.setColumnHeights();}),10);}}dojo.publish("/dnd/source/over",[_1011]);},makeAvatar:function(){return new aol.my.dnd.Avatar(this);},startDrag:function(_1012,nodes,copy,e){this.source=_1012;this.nodes=nodes;this.copy=false;this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp")];dojo.addClass(dojo.body(),"dojoDndMove");this.setIframeDivShields();this.avatar=this.makeAvatar();if(nodes[0].parentNode.id!="tabs"){this.OFFSET_X=-(e.clientX-(dojo._abs(nodes[0].parentNode,true).x));this.columnCoords=[];var x;dojo.query(".column",_1012.node.parentNode).forEach(dojo.lang.hitch(this,function(_1017){x=dojo.coords(_1017,true);x.total=x.x-this.OFFSET_X;this.columnCoords.push(x);}));var _1018=dojo._abs(dojo.query(".column",_1012.node.parentNode)[2],true);this.rightColumnStart=_1018.x;dojo.byId("footer").style.visibility="hidden";}else{this.OFFSET_X=5;this.OFFSET_Y=-10;}this.nodeToMovePreviousSibling=aol.common.d4.getPreviousSiblingElement(nodes[0]);dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_1012,nodes,this.copy]);},stopDrag:function(){dojo.removeClass(dojo.body(),"dojoDndCopy");dojo.removeClass(dojo.body(),"dojoDndMove");dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=null;this.nodes=[];this.removeIframeDivShields();},throwDndCancel:function(){if(this.nodeToMovePreviousSibling){dojo.place(this.nodes[0],this.nodeToMovePreviousSibling,"After");}else{dojo.place(this.nodes[0],this.source.node,"first");}dojo.publish("/dnd/cancel");},onMouseUp:function(e){if(this.avatar&&(!("mouseButton" in this.source)||this.source.mouseButton==e.button)){if(this.target&&(this.target.node.id=="tabs")&&(this.target!=this.source)){if(this.target.current){if(this.target.current){this.target._removeItemClass(this.target.current,"Over");}if((this.target.current==aol.my.App.tabManager.getCurrentTab().domNode)||aol.my.App.tabManager.getTabObjectById(this.target.current.id).applicationTab){this.throwDndCancel();}else{dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target]);}}else{this.throwDndCancel();}}else{if(this.target&&!this.target.current){if(this.nodes[0].parentNode!=this.target.node){var _101a=(aol.common.d4.firstElement(this.target.node));var _101b;if(_101a){_101b=dojo.coords(_101a);}if(_101a&&_101b&&_101a.id.indexOf("adHere")!=-1&&(e.clientY<(_101b.t+_101b.h))){dojo.place(this.nodes[0],_101a,"after");dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target,true]);}else{dojo.place(this.nodes[0],this.target.node,"last");dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target,true]);}}else{var _101c=aol.common.d4.prevElement(this.nodes[0]);if(_101c!=null){this.target.current=_101c;}else{var _101d=aol.common.d4.nextElement(this.nodes[0]);if(_101d){this.target.current=_101d;}}if(_101c||_101d){dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target]);}else{var _101e=this.target.getAllNodes();if(_101e.length==1&&_101e[0]==this.nodes[0]){dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target]);}else{this.throwDndCancel();}}}}else{if(this.target&&this.target.current){dojo.publish("/dnd/drop",[this.source,this.nodes,false,this.target]);}else{this.throwDndCancel();}}}this.moduleContainerManager.setColumnHeights(null);this.stopDrag();}dojo.byId("footer").style.visibility="visible";}});dojo.declare("aol.my.dnd.ModuleContainerManager",null,{parentContainers:{},constructor:function(){dojo.subscribe("/aol.event.module.delete",this.deleteModule);},deleteModule:function(evt){dojo.dnd.manager().moduleContainerManager.getContainerByNode(dojo.byId(evt.id).parentNode).delItem(evt.id);},setColumnHeights:function(_1020){try{if(dojo.dnd.manager().source){var pId=dojo.dnd.manager().source.node.parentNode.id;var _1022=this.getContainer(pId,"all");if(_1022){if(typeof (_1020)!="undefined"){for(var i=0;i<_1022.length;i++){_1022[i].node.style.height=_1020;}return _1020;}for(var i=0;i<_1022.length;i++){_1022[i].node.style.height=null;}var _1024=Math.max(dojo._getBorderBox(_1022[0].node,dojo.getComputedStyle(_1022[0].node)).h,dojo._getBorderBox(_1022[1].node,dojo.getComputedStyle(_1022[1].node)).h,dojo._getBorderBox(_1022[2].node,dojo.getComputedStyle(_1022[2].node)).h);for(var i=0;i<_1022.length;i++){_1022[i].node.style.height=_1024+"px";}return _1024;}return null;}}catch(e){}},getAllContainers:function(){var _1025=[];for(var _1026 in this.parentContainers){_1025.push(this.getContainer(_1026,"all"));}return _1025;},getContainerByNode:function(node){var _1028=this.getContainer(node.parentNode,"all");for(var i=0;i<_1028.length;i++){if(_1028[i].node==node){return _1028[i];}}return null;},getContainer:function(_102a,_102b){if(typeof (_102a)!="string"){_102a=_102a.id;}if(_102a.indexOf("tab-")==0){_102a="tabContent-"+_102a.substring(4);}var _102c=this.parentContainers[_102a];if(_102c){if(_102b=="all"){return _102c;}return _102c[(_102b!=null)?_102b:0];}else{var _102d=this.addContainer(_102a);if(_102b=="all"){return _102d;}return _102d[(_102b!=null)?_102b:0];}},refactorContainer:function(oldId,newId){this.parentContainers["tabContent-"+newId.substring(4)]=this.parentContainers["tabContent-"+oldId.substring(4)];delete this.parentContainers["tabContent-"+oldId.substring(4)];},addContainer:function(_1030){if(typeof (_1030)!="string"){_1030=_1030.id;}var _1031=this.parentContainers[_1030];if(_1031){return _1031;}else{var _1032=dojo.query(("#"+_1030+" > .column"));_1032.forEach(function(_1033){dojo.query(".module",_1033).forEach(function(_1034){dojo.addClass(_1034,"dojoDndItem");_1034.setAttribute("dndType","module");dojo.query(".mHeader",_1034).forEach(function(_1035){dojo.addClass(_1035,"dojoDndHandle");});});});var _1036=[];_1032.forEach(function(_1037){_1036.push(new aol.my.dnd.ModuleContainer(_1037));});this.parentContainers[_1030]=_1036;return _1036;}},insertModule:function(node,_1039,_103a,_103b){if(_103a){var _103c=dojo.dnd.manager().moduleContainerManager.getContainerByNode(_1039);dojo.addClass(dojo.query(".mHeader",node)[0],"dojoDndHandle");var data={node:node,type:["module"]};if(_103b){_103c.insertNodes(false,[data]);}else{var n=_103c.getAllNodes();if(n.length==0){_103c.insertNodes(false,[data]);}else{_103c.insertNodes(false,[data],true,_103c.getAllNodes()[0]);}}}else{if(_103b){_1039.appendChild(node);}else{dojo.place(node,_1039,0);}}}});dojo.declare("aol.my.dnd.TabContainerManager",null,{constructor:function(){dojo.subscribe("/aol.event.TabDeleted",this.deleteTab);},deleteTab:function(evt){var _1040=dojo.dnd.manager().moduleContainerManager.getContainer("tabContent-"+evt.getId(),"all");for(var i=0;i<_1040.length;i++){_1040[i].destroy();}delete dojo.dnd.manager().moduleContainerManager.parentContainers["tabContent-"+evt.getId()];aol.my.App.tabManager.dndContainer.delItem("tab-"+evt.getId());},makeDraggable:function(node,_1043){dojo.addClass(node,"dojoDndItem");node.setAttribute("dndType","tab");if(typeof (_1043)!="undefined"){dojo.dnd.manager().moduleContainerManager.refactorContainer(_1043,node.id);}aol.my.App.tabManager.dndContainer.setItem(node.id,{data:node.innerHTML,type:["tab"]});}});dojo.declare("aol.my.dnd.ProfileUpdater",null,{constructor:function(){dojo.subscribe("/dnd/start",dojo.hitch(this,function(_1044,nodes){dojo.addClass(nodes[0],"isDragging");}));dojo.subscribe("/dnd/drop/before",dojo.hitch(this,function(_1046,nodes,copy,_1049){dojo.removeClass(nodes[0],"isDragging");}));dojo.subscribe("/dnd/drop",dojo.hitch(this,function(_104a,nodes,copy,_104d){var _104e=nodes[0];if(_104a==_104d&&_104d.node.id=="tabs"){this.updateTabLocation(_104e);}else{this.updateModuleLocation(_104a,_104e,_104d);}}));},updateModuleLocation:function(_104f,_1050,_1051){var m=dojo.dnd.manager();var _1053=_1050.id;var _1054;var _1055;var refId=null;var _1057=null;if(_1051.node.id=="tabs"){_1054=_1051.current.id.substring(4);_1055=0;}else{_1054=_1051.node.parentNode.id.substring(11);_1055=this.getColumnIndex(_1051);var _1058=this.getPreviousDndNode(_1050);if(_1058){if(!(_1058.parentNode!=m.target.node&&m.target.node!=m.source.node)){refId=_1058.id;_1057="after";}else{try{refId=m.target.getAllNodes()[m.target.getAllNodes().length-1].id;_1057="after";}catch(evt){}}}else{var _1059=this.getNextDndNode(_1050);if(_1059){if(!(_1059.parentNode!=m.target.node&&m.target.node!=m.source.node)){refId=_1059.id;_1057="before";}else{try{refId=m.target.getAllNodes()[m.target.getAllNodes().length-1].id;_1057="after";}catch(evt){}}}}}aol.startpage.ServerAPI.moveWidget(_1053,_1054,_1055,refId,_1057);},updateTabLocation:function(_105a){var toId,_105c,_105d;_105c=this.getPreviousDndNode(_105a);if(_105c){toId=_105c.id.substring(4);}else{_105d=this.getNextDndNode(_105a);if(_105d){toId=_105d.id.substring(4);}}aol.startpage.ServerAPI.moveTab(_105a.id.substring(4),toId,(_105c!=null));},getColumnIndex:function(_105e){var _105f=dojo.dnd.manager().moduleContainerManager.getContainer(_105e.node.parentNode.id,"all");for(var i=0;i<_105f.length;i++){if(_105f[i]==_105e){return i;}}return -1;},getPreviousDndNode:function(node){for(var n=aol.common.d4.getPreviousSiblingElement(node);n;){if(dojo.hasClass(n,"dojoDndItem")){return n;}try{n=aol.common.d4.getPreviousSiblingElement(n);}catch(x){n=null;}}return n;},getNextDndNode:function(node){for(var n=aol.common.d4.getNextSiblingElement(node);n;){if(dojo.hasClass(n,"dojoDndItem")){return n;}try{n=aol.common.d4.getNextSiblingElement(n);}catch(x){n=null;}}return n;}});}if(!dojo._hasResource["aol.my.App"]){dojo._hasResource["aol.my.App"]=true;dojo.provide("aol.my.App");aol.my.App={};aol.my.App.loaded=false;aol.my.App.init=function(){if(dojo.isIE==8){dojo.query("meta").forEach(function(_1065){if(_1065.getAttribute("content")=="IE=EmulateIE7"){dojo.isIE=7;}});}if(myaolcfg.enableTimers){var MAAIT=new aol.common.Util.timer("aol.my.App.init");}aol.my.App.user=new aol.common.User(aol.my.Environment.getUser());window.ModuleT=new modulet.api();if(!myaolcfg.disableMetrics){aol.common.ReportingConfig.initialize(null,function(){aol.common.Reporting.emptyQue();},g_reportingData.getVlData());aol.common.ReportingManager.init(g_reportingData.reportingConfig);}aol.my.ModuleManager.ClassLoader.init(_defaultUserData.initialModuleClasses);setTimeout(aol.common.Util.lazyLoad,aol.my.Constants.LAZY_LOAD_DELAY);dojo.dnd._manager=new aol.my.dnd.Manager();try{aol.my.App.tabManager=new aol.my.tabs.Manager(aol.my.Environment.getTabThemes());}catch(e){dojo.debug("--",e);}try{aol.my.App.tabManager.setLastAdId(aol.my.App.tabManager.getCurrentTab().getId());}catch(e){dojo.debug("==",e);}aol.my.ThemeManager.init();aol.my.Hat.init(g_HatSearchData,g_reportingData,g_locale);if(dojo.isIE){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}}aol.my.App.trayManager=new aol.my.tray.Manager();aol.my.App.trayManager.init();if(g_trayAsDialog=="false"){dojo.connect(dojo.byId("addStuff"),"onclick",aol.my.App.trayManager,"openTray");}else{dojo.connect(dojo.byId("addStuff"),"onclick",this,"loadTray");}aol.my.App.ftuxManager=new aol.my.ftux.Manager();var tab=aol.my.App.tabManager.getCurrentTab();if(!aol.my.App.user.isFirstTimeUser()||g_hasFTUX=="false"){dojo.byId("addTab").style.visibility="visible";if(!tab.applicationTab){dojo.byId("addStuff").style.visibility="visible";this.showThemesLink(true);dojo.byId("seeGadget").style.visibility="visible";}}else{if(tab.applicationTab){dojo.byId("ftux").style.display="none";}}if(aol.my.App.user.isAuthenticatedUser()||g_hasFTUX=="false"){dojo.byId("newHere").style.display="none";}aol.my.App.domBinder();aol.my.App.initGlobalListeners();aol.my.App.Sns=new aol.common.Sns();aol.my.App.loaded=true;dojo.publish("/aol.event.AppLoaded");if(myaolcfg.enableTimers){MAAIT.stop();}};aol.my.App.domBinder=function(){var ctx=this;var _1069=dojo.byId("bannerPromo");if(_1069){var _106a=_1069.getElementsByTagName("a")[0];dojo.connect(_106a,"onclick",function(evt){evt.preventDefault();dojo.stopEvent(evt);ctx.setHome(evt);});}dojo.connect(dojo.byId("hat_toplinks_container"),"onclick",function(evt){var t=evt.target;var id=t.id;var href=t.href;if(href&&href.indexOf("javascript")==0&&!/^javascript:\s*void\s*\(0\)/.test(href)){return;}if(id&&id!=""){var loc="/"+g_startpageVersion+"/locale/"+g_locale+"/"+g_brand+"/help/";var type=aol.my.App.tabManager.getCurrentTab().type;dojo.stopEvent(evt);switch(id){case "gHelpWorks":location.href=loc+"personalize.html?f=how&t="+type;break;case "gHelpMain":ctx.showHelp(evt);break;case "gHelpMainDown":ctx.showHelp(evt);break;case "hatMailLink":ctx.goToMail(t.href);break;case "gSettings":ctx.loadSettings(evt);break;case "btnSetHome":ctx.setHome(evt);break;}}else{if(dojo.isDescendant(t,dojo.byId("gThemes"))){if(g_trayAsDialog=="false"){ctx.trayManager.openTrayWithThemes(evt);}else{ctx.loadTray(evt,"themes");}}}});dojo.connect(dojo.byId("helpMenu"),"onclick",function(evt){var loc="/"+g_startpageVersion+"/locale/"+g_locale+"/"+g_brand+"/help/";var type=aol.my.App.tabManager.getCurrentTab().type;var t=evt.target;var id=t.id;dojo.stopEvent(evt);switch(id){case "hmMain":location.href=loc+"about.htm?f=help&t="+type;break;case "hmTour":location.href=loc+"tours_start.htm?f=st";break;case "hatBlog":location.href="http://myaolblog.aol.com/";break;case "hmSettings":ctx.loadSettings(evt);break;}dojo.byId("helpMenu").style.visibility="hidden";});aol.common.Util.ClickHandler.addHandler(function(){dojo.byId("helpMenu").style.visibility="hidden";});dojo.connect(dojo.byId("footer"),"onmouseover",dojo.hitch(this,function(evt){var id=evt.target.id;var ctx=this;switch(id){case "ftFeedback":if(typeof this.fBo=="undefined"){aol.common.Util.scriptLoader("http://o.aolcdn.com/feedback/feedback1.js","fBo",function(_107a){ctx.fBo=true;});}break;}}));dojo.connect(dojo.byId("footer"),"onclick",function(evt){var loc="/"+g_startpageVersion+"/locale/"+g_locale+"/"+g_brand+"/help/";var type=aol.my.App.tabManager.getCurrentTab().type;var t=evt.target;var id=t.id;dojo.stopEvent(evt);switch(id){case "ftSettings":ctx.loadSettings(evt);break;case "ftTour":location.href=loc+"tours_start.htm?f=st";break;case "ftHelpAbout":location.href=loc+"about.htm?f=help&t="+type;break;case "ftHelpWorks":location.href=loc+"personalize.html?f=how&t="+type;break;case "ftFeedback":if(typeof fBo=="undefined"){setTimeout(function(){fBo("myaol");},1000);}else{fBo("myaol");}break;default:if(t.href){location.href=t.href;}}});dojo.connect(dojo.byId("seeGadget"),"onclick",function(evt){var _1081="http://"+location.host+"/gallery/category?category=recent&tabId="+aol.my.App.tabManager.getCurrentTab().getId()+"&catUI=Recently+Added&from=spGadgetLink";location.href=_1081;});if(dojo.byId("gTopModules")){dojo.connect(dojo.byId("gTopModules"),"onclick",function(evt){var _1083="http://"+location.host+"/gallery/category?category=popular&tabId="+aol.my.App.tabManager.getCurrentTab().getId()+"&catUI=Popular";location.href=_1083;});}};aol.my.App.loadSettings=function(evt){dojo["require"]("aol.my.Settings");dojo.addOnLoad(function(){if(typeof (aol.my.App.settings)=="undefined"){var s=new aol.my.Settings();s.onloadCalledOnce=false;s.widget=new aol.widget.Dialog({id:"settings",bgColor:"white",followScroll:true,toggle:"fade",toggleDuration:150,className:"settings",href:"/widget/Settings.jsp",onLoad:function(){aol.widget.Dialog.superclass.onLoad.call(this);if(s.onloadCalledOnce){return;}s.onloadCalledOnce=true;s.init();s.show();s.widget.show("forceClick");}});dojo.body().appendChild(s.widget.domNode);s.widget.startup();aol.my.App.settings=s;}else{aol.my.App.settings.show();aol.my.App.settings.widget.show("forceClick");}});if(evt){dojo.stopEvent(evt);}};aol.my.App.loadTray=function(evt,data){dojo["require"]("aol.my.tray.Manager");dojo.addOnLoad(function(){if(aol.my.App.trayManager.onloadCalledOnce==undefined){aol.my.App.trayManager.onloadCalledOnce=false;if(data==undefined){data="modules";}var url="/tray.jsp?begin=0&category=featured&data="+data+"&view=tray";aol.my.App.trayManager.widget=new aol.widget.Dialog({id:"dtray",bgColor:"white",followScroll:true,toggle:"fade",toggleDuration:150,href:url,onLoad:function(){aol.widget.Dialog.superclass.onLoad.call(this);if(aol.my.App.trayManager.onloadCalledOnce){return;}aol.my.App.trayManager.onloadCalledOnce=true;aol.my.App.trayManager.showTrayAsDialog();aol.my.App.trayManager.widget.show("forceClick");}});dojo.body().appendChild(aol.my.App.trayManager.widget.domNode);aol.my.App.trayManager.widget.startup();}else{if(data==undefined){aol.my.App.trayManager.showModules0(evt);}else{aol.my.App.trayManager.showThemes0(evt);}aol.my.App.trayManager.widget.show("forceClick");}});if(evt){dojo.stopEvent(evt);}};aol.my.App.initGlobalListeners=function(){};aol.my.App.getLocalizedString=function(str,_108a){var _108b=aol.my.Environment.getLocale();var dict=aol.l10n.AppDictionary;var _108d=dict[str];if(_108d==null){_108d=str;}_108d=aol.common.Util.replaceArgs(_108d,_108a);return _108d;};aol.my.App.setHome=function(evt){dojo.cookie("MYAOL_PROMO",null,{expires:-1});var oBtn=evt.target;var mode=oBtn.id=="btnSetHome"?"hat":"banner";dojo.event.topic.publish("/aol.event.setHomePage",mode);if(oBtn.addBehavior){oBtn.style.behavior="url(#default#homepage)";if(g_homePageUrl!=""){oBtn.setHomePage(g_homePageUrl);}else{oBtn.setHomePage("http://"+location.host);}return;}var _1091=aol.my.Environment.getCdnPath()+"/locale/"+g_locale+"/"+g_brand+"/homepage/make_homepage.html";window.open(_1091,"homepage","width=625,height=650,scrollbars");};aol.my.App.goToMail=function(_1092){var ua=navigator.userAgent;if(dojo.isIE==6&&ua.indexOf("AOL")!=-1){location.href="aol://1722:mailbox/";}else{location.href=_1092;}};aol.my.App.go=function(url,_1095){aol.common.ReportingManager.reportEventWait(function(){window.location.href=url;},null,_1095,{prop18:_1095});return false;};aol.my.App.showHelp=function(evt){var m=dojo.byId("helpMenu");if(m.style.visibility!="visible"){m.style.visibility="visible";var vp=dijit.getViewport();var pos={x:vp.w-dojo.contentBox(m).w+vp.l+-2,y:dojo._abs(evt.target).y+20+vp.t};dijit.placeOnScreen(m,pos,["TL"]);}else{m.style.visibility="hidden";}};aol.my.App.showThemesLink=function(_109a){var _109b=dojo.byId("gThemes");var _109c=dojo.html.getElementsByClass("nopad",_109b)[0];if(_109a){_109b.style.display="block";if(aol.common.d4.getPreviousSiblingElement(_109b)){_109c.style.borderLeft="1px solid #999";_109c.style.paddingLeft="5px";}}else{_109b.style.display="none";_109c.style.border=0;_109c.style.paddingLeft=0;}};}if(dojo.config.afterOnLoad&&dojo.isBrowser){window.setTimeout(dojo._fakeLoadInit,1000);}})();
mojo.provide("aol.l10n.AppDictionary");

/**
 * Class: aol.l10n.AppDictionary
 */

aol.l10n.AppDictionary = {
    // common/Module.js
    "Save" : l10n("Save"),
    "Cancel" : l10n("Cancel"),
    "Delete" : l10n("Delete"),
    "options" : l10n("options"),
    "refresh" : l10n("refresh"),
    "maximize" : l10n("maximize"),
    "minimize" : l10n("minimize"),
    "Operation failed, please try later" : l10n("Operation failed, please try later"),
    "Please enter a valid URL!": l10n("Please enter a valid URL!"),
    "Error: cannot process URL": l10n("Error: cannot process URL"),
    "Please make sure the URL is correct.": l10n("Please make sure the URL is correct."),
    "URL read error!": l10n("URL read error!"),
    "The specified URL is neither a gadget not a feed!": l10n("The specified URL is neither a gadget nor a feed!"),
    "Visit our gallery now!" : l10n("Visit our gallery now!"),
    "There was an error saving your prefs, please try again." : l10n("There was an error saving your prefs, please try again."),
    "In order to access your %1, you must sign in first, or sign up if you do not have an AOL screen name." : l10n("In order to access your %1 you must sign in first, or sign up if you do not have an AOL screen name."),
    // Gadget Error and status handling
    "An error occurred":l10n("An error occurred"),
    "Gadget Unavailable":l10n("Gadget Unavailable"),
    "This gadget is no longer available in our system.":l10n("This gadget is no longer available in our system."),
    "%1 is no longer available in our system.":l10n("%1 is no longer available in our system."),
    "You can remove it from your page by clicking the 'X' in the upper right corner.":l10n("You can remove it from your page by clicking the 'X' in the upper right corner."),
    "Visit our %1Gallery%2 to find new stuff to add to your page.":l10n("Visit our %1Gallery%2 to find new stuff to add to your page."),
    "Oops! This gadget is temporarily unavailable. Please try again later.":l10n("Oops! This gadget is temporarily unavailable. Please try again later."),
    "If you continue to see this message, it may mean that gadget is permanently unavailable. In that case we recommend you remove it from your page by clicking the 'X' in the upper right corner.":l10n("If you continue to see this message, it may mean that gadget is permanently unavailable. In that case we recommend you remove it from your page by clicking the 'X' in the upper right corner."),
    "This gadget has the following URL: %1":l10n("This gadget has the following URL: %1"),
    "There was a problem rendering this gadget. Please try again later.":l10n("There was a problem rendering this gadget. Please try again later."),
    "There was a problem rendering %1. Please try again later.":l10n("There was a problem rendering %1. Please try again later."),
    // tray/Manager.js
    "Sorry, the zip code could not be set. Please try again later." : l10n("Sorry, the zip code could not be set. Please try again later."),
    "Sorry, the first time could not be finished. Please try again later.": l10n("Sorry, the first time could not be finished. Please try again later."),
    "Error: cannot fetch tray" : l10n("Error: cannot fetch tray"),
    "Invalid zipcode." : l10n("Invalid entry. Please try again."),
    "Only one Recommendations page is allowed and you already have one." : l10n("Only one Recommendations page is allowed and you already have one."),
    "Only one Favorites page is allowed and you already have one." : l10n("Only one Favorites page is allowed and you already have one."),
    "Please enter a feed URL" : l10n("Please enter a feed URL"),
    // tabs/Manager.js
    "Sorry, you have reached the maximum number of tabs." : l10n("Sorry, you have reached the maximum number of tabs."),
    "Sorry, the tab could not be deleted. Please try again later." : l10n("Sorry, the tab could not be deleted. Please try again later."),
    "Sorry, the tab could not be added. Please try again later." : l10n("Sorry, the tab could not be added. Please try again later."),
    "Sorry, the tab's title could not be changed. Please try again later." : l10n("Sorry, the tab's title could not be changed. Please try again later."),
    // ServerAPI.js
    "Sorry, an error ocurred. Please try again later." : l10n("Sorry, an error ocurred. Please try again later."),
    "You have just exceeded the limit for the amount of customized data that can be stored without signing in. We strongly suggest you sign in to myAOL so that you don't risk losing any of your changes." : l10n("You have just exceeded the limit for the amount of customized data that can be stored without signing in. We strongly suggest you sign in to myAOL so that you don't risk losing any of your changes."),
    // Settings.js
    "Sorry, we could not delete your current recommendations. Please try again later." : l10n("Sorry, we could not delete your current recommendations. Please try again later."),
    "Sorry, we could not save your preferences. Please try again later." : l10n("Sorry, we could not save your preferences. Please try again later."),
    "Sorry, we could not retrieve your settings. We will default to On." : l10n("Sorry, we could not retrieve your settings. We will default to On."),
    // DndCommon.js
    "Sorry, the tab could not be moved. Please try again later." : l10n("Sorry, the tab could not be moved. Please try again later."),
    //Quigo ADs
    "Sponsored Links" : l10n("Sponsored Links"),
    "Buy a link here" : l10n("Buy a link here"),
    "ADVERTISEMENT" : l10n("ADVERTISEMENT")

};

function l10n(str) {
    return str;
}

