if(typeof YAHOO=="undefined"){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C-1){return true;}else{return YAHOO.lang.isObject(A)&&A.constructor==Array;}},isBoolean:function(A){return typeof A=="boolean";},isFunction:function(A){return typeof A=="function";},isNull:function(A){return A===null;},isNumber:function(A){return typeof A=="number"&&isFinite(A);},isObject:function(A){return A&&(typeof A=="object"||YAHOO.lang.isFunction(A));},isString:function(A){return typeof A=="string";},isUndefined:function(A){return typeof A=="undefined";},hasOwnProperty:function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B);}return !YAHOO.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B];},extend:function(D,E,C){if(!E||!D){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");}var B=function(){};B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E;}if(C){for(var A in C){D.prototype[A]=C[A];}}},augment:function(E,D){if(!D||!E){throw new Error("YAHOO.lang.augment failed, please check that all dependencies are included.");}var C=E.prototype,F=D.prototype,A=arguments,B,G;if(A[2]){for(B=2;B-1),K=(B.indexOf("safari")>-1),A=(!D&&!K&&B.indexOf("gecko")>-1),F=(!D&&B.indexOf("msie")>-1);var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/body|html/i};var L=function(M){if(!E.HYPHEN.test(M)){return M;}if(I[M]){return I[M];}var N=M;while(E.HYPHEN.exec(N)){N=N.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}I[M]=N;return N;};if(document.defaultView&&document.defaultView.getComputedStyle){J=function(M,P){var O=null;if(P=="float"){P="cssFloat";}var N=document.defaultView.getComputedStyle(M,"");if(N){O=N[L(P)];}return M.style[P]||O;};}else{if(document.documentElement.currentStyle&&F){J=function(M,O){switch(L(O)){case"opacity":var Q=100;try{Q=M.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(P){try{Q=M.filters("alpha").opacity;}catch(P){}}return Q/100;break;case"float":O="styleFloat";default:var N=M.currentStyle?M.currentStyle[O]:null;return(M.style[O]||N);}};}else{J=function(M,N){return M.style[N];};}}if(F){H=function(M,N,O){switch(N){case"opacity":if(YAHOO.lang.isString(M.style.filter)){M.style.filter="alpha(opacity="+O*100+")";if(!M.currentStyle||!M.currentStyle.hasLayout){M.style.zoom=1;}}break;case"float":N="styleFloat";default:M.style[N]=O;}};}else{H=function(M,N,O){if(N=="float"){N="cssFloat";}M.style[N]=O;};}YAHOO.util.Dom={get:function(O){if(YAHOO.lang.isString(O)){return document.getElementById(O);}if(YAHOO.lang.isArray(O)){var P=[];for(var N=0,M=O.length;N=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B);}else{return null;}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B){if(A instanceof Array){B=A[1];A=A[0];}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.2.2",build:"204"});YAHOO.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'");}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A));},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B0){H=C[0];}B=F.fn.call(E,H,F.obj);}else{B=F.fn.call(E,this.type,C,F.obj);}if(false===B){if(!this.silent){}return false;}}}return true;},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B=0){Q=I[R];}if(!M||!Q){return false;}if(this.useLegacyEvent(M,L)){var O=this.getLegacyIndex(M,L);var N=D[O];if(N){for(P=0,S=N.length;P0);}var P=[];var R=function(T,U){var S=T;if(U.override){if(U.override===true){S=U.obj;}else{S=U.override;}}U.fn.call(S,U.obj);};var M,L,O,N;for(M=0,L=E.length;M0){for(var R=0,S=T.length;R0){O=I.length;while(O){N=O-1;M=I[N];if(M){R.removeListener(M[R.EL],M[R.TYPE],M[R.FN],N);}O=O-1;}M=null;R.clearCache();}for(P=0,L=F.length;P<\/script>');var A=document.getElementById("_yui_eu_dr");A.onreadystatechange=function(){if("complete"==this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready();}};A=A.onreadystatechange=null;YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);}else{if(B.webkit){B._drwatch=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(B._drwatch);B._drwatch=null;B._ready();}},B.POLL_INTERVAL);}else{B._simpleAdd(document,"DOMContentLoaded",B._ready);}}B._simpleAdd(window,"load",B._load);B._simpleAdd(window,"unload",B._unload);B._tryPreloadAttach();})();}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E);}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[];}B[A].push({fn:C,obj:F,override:E});}},unsubscribe:function(A,B,D){this.__yui_events=this.__yui_events||{};var C=this.__yui_events[A];if(C){return C.unsubscribe(B,D);}else{return false;}},unsubscribeAll:function(A){return this.unsubscribe(A);},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=A.silent||null;var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C=200&&C<300||C===1223){B=this.createResponseObject(E,F.argument);if(F.success){if(!F.scope){F.success(B);}else{F.success.apply(F.scope,[B]);}}}else{switch(C){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:B=this.createExceptionObject(E.tId,F.argument,(A?A:false));if(F.failure){if(!F.scope){F.failure(B);}else{F.failure.apply(F.scope,[B]);}}break;default:B=this.createResponseObject(E,F.argument);if(F.failure){if(!F.scope){F.failure(B);}else{F.failure.apply(F.scope,[B]);}}}}this.releaseObject(E);B=null;},createResponseObject:function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;Ethis.maxHeight){L.style.height=(this.maxHeight+"px");L.style.width="180px";this.useScroll=true;this.height=this.maxHeight;}else{var C=L.getElementsByTagName("li");if(C){var D=C[0].offsetWidth;if((this.id.match("top_reply_selectmenu")||this.id.match("bottom_reply_selectmenu"))&&(DG.getViewportHeight())){var E=this.useScroll?(this.maxHeight+10):this.height;F=G.getY(D)-E;}var A=0;if(YAHOO.mc.isIE){A=2;}B.style.top=(F-A)+"px";if(this.buttonId.match(/GmOptions/)){B.style.left="auto";B.style.right="8px";}else{B.style.left=(H-A)+"px";}if(this.useScroll){if(YAHOO.mc.isIE){B.style.overflowY="auto";}else{B.style.overflow="auto";}}B.style.display="block";this.visible=true;var C=B.getElementsByTagName("a");if(C[0]){C[0].focus();}if(YAHOO.mc.isIE){this.useShim=addIframeShim(document.getElementById(this.id));}B=null;}};ButtonMenu.prototype.hide=function(){var B=document.getElementById(this.id);if(B){if(this.useShim){var A=document.getElementById("hiddenFrame");A.style.top=A.style.left="-999px";this.useShim=false;}if(this.useScroll){B.style.overflow="visible";}B.style.display="none";this.visible=false;B=null;}};ButtonMenu.prototype.Anchor_Focus=function(A){var B=YAHOO.util.Event.getTarget(A);this.className=B.className;B.className=this.className+"focus";};ButtonMenu.prototype.Anchor_Blur=function(A){if(this.className===false){return ;}var B=YAHOO.util.Event.getTarget(A);B.className=this.className;};ButtonMenu.prototype.Anchor_KeyDown=function(D){var A=YAHOO.util.Event;var E=A.getTarget(D).parentNode;var C=A.getCharCode(D);if(C==38||(YAHOO.mc.bSafari&&C==63232)){if(E.previousSibling){if(E.previousSibling.nodeType!=1){E.previousSibling.previousSibling.firstChild.focus();}else{E.previousSibling.firstChild.focus();}}A.preventDefault(D);}if(C==40||(YAHOO.mc.bSafari&&C==63233)){if(E.nextSibling){if(E.nextSibling.nodeType!=1){E.nextSibling.nextSibling.firstChild.focus();}else{E.nextSibling.firstChild.focus();}}A.preventDefault(D);}var B;if(C==27){this.hide();B=document.getElementById(this.buttonId);B.focus();}if(D.shiftKey&&C==9&&!E.previousSibling){B=document.getElementById(this.buttonId);B.focus();A.preventDefault(D);}};ButtonMenu.prototype.Click=function(G){var C=YAHOO.util.Event;var A=C.getTarget(G);if(A.tagName=="A"){G.cancelBubble=true;var B=document.getElementById(this.selectId);B.selectedIndex=A.parentNode.value;var F=A.parentNode;var E=A.parentNode.parentNode.parentNode;if(E.id&&E.id.match(/mOptionsList/)){if(F.value!=0){A.target="_blank";}YAHOO.mc.menuObj.hideAll();return ;}C.preventDefault(G);var D=YAHOO.mc.buttonObj.items[this.buttonId];var H;if(B.name.match("_mark_select")){H=document.getElementById(this.buttonId);if(B.value==0){H.form.action=YAHOO.mc.YM_MessageActionULT.markUnreadULTURL;}else{if(B.value==1){H.form.action=YAHOO.mc.YM_MessageActionULT.markReadULTURL;}else{if(B.value==2){H.form.action=YAHOO.mc.YM_MessageActionULT.flagULTURL;}}}}else{if(B.name=="filterBySelect"){H=document.getElementById(this.buttonId.replace(/^G/i,""));if(B.value=="all"){H.form.action=YAHOO.mc.YM_MessageActionULT.filterAllULTURL;}else{if(B.value=="unread"){H.form.action=YAHOO.mc.YM_MessageActionULT.filterUnreadULTURL;}else{if(B.value=="flagged"){H.form.action=YAHOO.mc.YM_MessageActionULT.filterFlagULTURL;}}}}}D.submitForm();}else{C.preventDefault(G);}};ButtonMenu.prototype.MouseOver=function(C){var A=YAHOO.util.Event.getTarget(C);if(A.tagName=="A"){try{A.focus();}catch(B){}}};ButtonMenu.prototype.MouseOut=function(B){var A=YAHOO.util.Event.getTarget(B);if(A.tagName=="A"){A.blur();}};FolderMenu.prototype=new ButtonMenu();FolderMenu.prototype.constructor=FolderMenu;FolderMenu.superclass=ButtonMenu.prototype;function FolderMenu(B,A){this.cssClass="buttonmenu foldermenu";if(B&&A){this.init(B,A);}}FolderMenu.prototype.init=function(B,A){var C=document.getElementById(A);if(C.options.length===0||C.options[0].value!=YAHOO.mc.YM_STRINGS["foldermgmt.newfolderoption"]){var D=document.createElement("OPTION");D.innerHTML=D.text="["+YAHOO.mc.YM_STRINGS["foldermgmt.newfolderoption"]+"]";D.id=A+"_new_folder";D.value="[New Folder]";C.replaceChild(D,C.options[0]);}C=null;FolderMenu.superclass.init.call(this,B,A);};FolderMenu.prototype.Click=function(G){var D=YAHOO.util.Event;var B=D.getTarget(G);if(B.tagName=="A"){G.cancelBubble=true;var C=document.getElementById(this.selectId);var H=B.parentNode.value;if(H===0){var A=window.prompt(YAHOO.mc.YM_STRINGS["foldermgmt.addfolder"],"");if(A&&A!==null&&A!==""){var F=document.createElement("input");F.type="hidden";F.name="NewFol";F.value=A;C.form.appendChild(F);}else{return false;}}C.selectedIndex=H;var E=YAHOO.mc.buttonObj.items[this.buttonId];if((typeof (YAHOO.mc.YM_MessageActionULT)!="undefined")&&(typeof (YAHOO.mc.YM_MessageActionULT.moveFldULTURL)!="undefined")){C.form.action=YAHOO.mc.YM_MessageActionULT.moveFldULTURL;}E.submitForm();D.preventDefault(G);}};function MenuButton(B,A){safariHandler();this.cssClass="menubutton";if(B&&A){this.init(B,A);document.getElementById(B).style.visibility="visible";}}MenuButton.prototype.init=function(B,A){this.buttonId=B;this.selectId=A;this.menuCreated=false;YAHOO.util.Dom.setStyle(A,"display","none");if(document.getElementById(B)&&document.getElementById(A)){this.initButton();}};MenuButton.prototype.initButton=function(){var C=document.getElementById(this.buttonId);var B=YAHOO.util.Event;B.on(C,"click",this.Click,this,true);B.on(C,"focus",this.Focus,this,true);if(YAHOO.mc.bSafari){var A=(document.all&&!YAHOO.mc.bSafari&&!YAHOO.mc.isIE)?"keypress":"keydown";B.on(C,A,this.KeyPress,this,true);}C.className+=" "+this.cssClass;YAHOO.mc.buttonObj.add(this.buttonId,this);C=null;};MenuButton.prototype.initMenu=function(){this.menu=new ButtonMenu(this.buttonId,this.selectId);};MenuButton.prototype.showMenu=function(){YAHOO.mc.menuObj.hideAll();this.menu.show();};MenuButton.prototype.submitForm=function(){var B=document.getElementById(this.buttonId);YAHOO.mc.menuObj.hideAll();if(typeof B.form=="undefined"){B=document.getElementById(this.buttonId.replace(/^G/i,""));}var A=document.createElement("input");A.type="hidden";A.name=B.name;A.value=B.value;B.form.appendChild(A);B.form.submit();B=null;};MenuButton.prototype.Click=function(A){if(!this.menuCreated){this.initMenu();this.menuCreated=true;}YAHOO.util.Event.stopEvent(A);this.showMenu();};MenuButton.prototype.Focus=function(B){var A=document.getElementById(this.buttonId);if(A.setActive){A.setActive();}};MenuButton.prototype.KeyPress=function(A){YAHOO.util.Event.stopEvent(A);if(A.keyCode==13||A.keyCode==32){this.showMenu();}};SplitMenu.prototype=new ButtonMenu();SplitMenu.prototype.constructor=ButtonMenu;SplitMenu.superclass=ButtonMenu.prototype;function SplitMenu(B,A){this.init(B,A);}SplitMenu.prototype.Click=function(D){var C=YAHOO.util.Event;var A=C.getTarget(D);if(A.tagName=="A"){D.cancelBubble=true;var B=document.getElementById(this.selectId);if(A.id.match(/reply_option/i)){YAHOO.mc.menuObj.hideAll();B.form.action+="&reply";B.form.submit();}else{if(A.id.match(/reply_all_option/i)){YAHOO.mc.menuObj.hideAll();B.form.action+="&replyall";B.form.submit();}else{if(this.buttonId=="Change"){YAHOO.mc.menuObj.hideAll();switch(A.parentNode.value){case 0:speller.onChange();break;case 1:speller.onChangeAll();break;}}else{if(this.buttonId=="Ignore"){YAHOO.mc.menuObj.hideAll();switch(A.parentNode.value){case 0:speller.onIgnore();break;case 1:speller.onIgnoreAll();break;}}}}}C.preventDefault(D);}};SplitButton.prototype=new MenuButton();SplitButton.prototype.constructor=SplitButton;SplitButton.superclass=MenuButton.prototype;function SplitButton(D,E){safariHandler();this.cssClass="menubutton";if(D&&E){var G=YAHOO.util.Event;var A=(document.all&&!YAHOO.mc.bSafari&&!YAHOO.mc.isIE)?"keypress":"keydown";G.on(D,A,this.KeyDown,this,true);var B=document.getElementById(D);var F=document.getElementById(E);if(B&&F&&D.match(/reply/i)){var C=document.createElement("select");var I=document.createElement("OPTION");I.value=I.text=I.innerHTML=B.value;I.id=D+"_option";var H=document.createElement("OPTION");H.value=H.text=H.innerHTML=F.value;H.id=E+"_option";C.appendChild(I);C.appendChild(H);C.style.display="none";C.id=D+"_select";B.parentNode.appendChild(C);F.style.display="none";G.on(window,"load",function(K,J){setTimeout('document.getElementById("'+J.id+'").className += " splitbutton";',300);},{id:D});this.init(D,D+"_select");}else{this.cssClass+=" splitbutton";this.init(D,E);}}document.getElementById(D).style.visibility="visible";}SplitButton.prototype.Click=function(D){var C=YAHOO.util.Event.getTarget(D);var A=YAHOO.util.Dom.getRegion(C);var B=A.right-A.top;if(D.clientX>A.right-20){SplitButton.superclass.Click.call(this,D);}else{if(C.id=="Change"){speller.onChange();}else{if(C.id=="Ignore"){speller.onIgnore();}else{this.submitForm();}}}};SplitButton.prototype.KeyDown=function(D){var C=YAHOO.util.Event;var B=C.getTarget(D);var A=(D.keyCode)?(D.keyCode):(D.charCode);if(A==13||A==32){C.stopEvent(D);SplitButton.superclass.Click.call(this,D);}};SplitButton.prototype.initMenu=function(){this.menu=new SplitMenu(this.buttonId,this.selectId);};MoveButton.prototype=new MenuButton();MoveButton.prototype.constructor=MoveButton;MoveButton.superclass=MenuButton.prototype;function MoveButton(B,A){safariHandler();if(B&&A){document.getElementById(B).value=document.getElementById(A).options[0].innerHTML;if(YAHOO.mc.bSafari){document.getElementById(B).innerHTML=document.getElementById(A).options[0].innerHTML;}this.init(B,A);document.getElementById(B).style.visibility="visible";}}MoveButton.prototype.initMenu=function(){this.menu=new FolderMenu(this.buttonId,this.selectId);};Menu.prototype=new MenuButton();Menu.prototype.constructor=Menu;Menu.superclass=MenuButton.prototype;function Menu(D,C,B){this.cssClass="arrowimage";if(D&&C){var A=document.getElementById(D);A.form.style.position="static";A.style.visibility="visible";A.style.display="none";var E=document.createElement("a");E.href="#";E.innerHTML=B;E.id="G"+D;if(!D.match(/mOptions/)){E.title=YAHOO.mc.YM_STRINGS["options."+D+"_tooltip"];}A.parentNode.appendChild(E);this.init(E.id,C);}}function showBulkAlert(A){if(!confirm(YAHOO.mc.YM_STRINGS["alerts.bulk_alert"])){YAHOO.util.Event.preventDefault(A);}}function showTrashAlert(A){if(!confirm(YAHOO.mc.YM_STRINGS["alerts.trash_alert"])){YAHOO.util.Event.preventDefault(A);}}function addIframeShim(E){var D=document.getElementsByTagName("select");var F=YAHOO.util.Dom,C=false;if(D[0]){for(var B=0;B=0;N--){K[N].isNew=(K[N].className=="msgnew")?true:false;K[N].isClicked=false;}}function J(O,L,P){for(var N=L,M=L+P;NO){J(M,O-1,N+1);}else{J(M,A-1,N+1);}A=O;D=0;for(var L=0;L1&&A>0){E(N.checked,L.rowIndex);var M=document.getElementById("selectallrows");if(!M.checked&&D==C){M.checked=true;}else{if(M.checked&&D!=C){M.checked=false;}}break;}A=L.rowIndex;if(N.checked){L.className=(L.isNew)?(L.className+" selected"):("selected");D++;}else{L.className=(L.isNew)?("msgnew"):("msgold");D--;}document.getElementById("selectallrows").checked=(D==C)?true:false;break;}else{N=N.parentNode;}}}}return true;}return{init:I};}();YAHOO.mc.flag={flagAnchor:null,flagMsg:function(B){var A=YAHOO.util.Event;A.preventDefault(B);YAHOO.mc.flag.flagAnchor=A.getTarget(B);YAHOO.mc.flag.toggleClass();YAHOO.util.Connect.asyncRequest("GET",YAHOO.mc.flag.flagAnchor.href+"&dyn="+Math.floor(Math.random()*1000000),YAHOO.mc.flag.flagCallBack);},flagCallBack:{success:function(B){if(B.responseText!="RES"){YAHOO.mc.flag.toggleClass();}else{var A=YAHOO.mc.flag.flagAnchor.href.match(/flag=([0-1])/i);YAHOO.mc.flag.flagAnchor.href=YAHOO.mc.flag.flagAnchor.href.replace(/flag=[0-1]/,"flag="+Number(!Number(A[1])));}},failure:function(A){YAHOO.mc.flag.toggleClass();}},toggleClass:function(){var A=YAHOO.mc.flag.flagAnchor;switch(A.className){case"greyed":A.className="flagged";A.title=YAHOO.mc.flagKey.FLAG_TITLE;break;case"flagged":A.className="greyed";A.title=YAHOO.mc.flagKey.UNFLAG_TITLE;break;}YAHOO.mc.flag.flagAnchor.setAttribute("role","alert");}};YAHOO.mc.shortcuts={shiftKey:false,ctrlKey:false,init:function(){YAHOO.util.Event.on(document,"keydown",YAHOO.mc.shortcuts.keyHandler);YAHOO.util.Event.on(document,"keyup",YAHOO.mc.shortcuts.keyHandler);},keyHandler:function(A){switch(A.keyCode){case 16:YAHOO.mc.shortcuts.shiftKey=(A.type=="keydown")?true:false;break;case 17:YAHOO.mc.shortcuts.ctrlKey=(A.type=="keydown")?true:false;break;case 224:case 91:case 93:if(YAHOO.mc.bSafari||(YAHOO.mc.bSafari&&navigator.userAgent.match("Gecko"))){YAHOO.mc.shortcuts.ctrlKey=(A.type=="keydown")?true:false;}break;}if(A.keyCode==13&&(YAHOO.util.Event.getTarget(A)).id=="selectallrows"){YAHOO.util.Event.preventDefault(A);}}};YAHOO.mc.FOLDER_DLT="#@#";function folderAdd(C){var D=prompt(YAHOO.mc.YM_STRINGS["foldermgmt.addfolder"],"");YAHOO.util.Event.preventDefault(C);if(D&&D!==null&&D!==""){var A=document.createElement("FORM");A.method="POST";document.body.appendChild(A);createElement("INPUT","ADD",1,A);createElement("INPUT","name",D,A);var B=document.getElementById("crumb");createElement("INPUT","mcrumb",B.value,A);A.submit();}}function folderRename(F,D){var G,E;if(D){G=D.fid;E=D.srcFName;}else{var C=this.id.split(YAHOO.mc.FOLDER_DLT);G=C[1];E=C[2];}var H=prompt(YAHOO.mc.YM_STRINGS["foldermgmt.renfolder"],E);YAHOO.util.Event.preventDefault(F);if(H&&H!==null&&H!==""){var A=document.createElement("FORM");A.method="POST";document.body.appendChild(A);createElement("INPUT","srcFName",E,A);createElement("INPUT","RENAME",1,A);createElement("INPUT","RenFID",G,A);createElement("INPUT","FName",H,A);var B=document.getElementById("crumb");createElement("INPUT","mcrumb",B.value,A);A.submit();}}function folderDelete(F,E){var B,G;if(E){B=E.fid;G=E.flag;}else{var C=this.id.split(YAHOO.mc.FOLDER_DLT);B=C[1];G=C[2];}var D=(G==1)?YAHOO.mc.YM_STRINGS["foldermgmt.delfolderconfirm"]:YAHOO.mc.YM_STRINGS["foldermgmt.delfolder"];var I=confirm(D);YAHOO.util.Event.preventDefault(F);if(I&&I!==null&&I!=="null"&&I!==""){var A=document.createElement("FORM");A.method="POST";A.action="folders?"+extraArgs;document.body.appendChild(A);createElement("INPUT","DEL",1,A);createElement("INPUT","DelFID",B,A);var H=document.getElementById("crumb");createElement("INPUT","mcrumb",H.value,A);A.submit();}}function createElement(D,B,A,C){var E=document.createElement(D);E.type="hidden";E.name=B;E.value=A;C.appendChild(E);}function webSearchHandle(B){var D=YAHOO.util.Event.getTarget(B);var C="searchTheMailFrmtop";if(D.id.indexOf("top")<0){C="searchTheMailFrmbottom";}if(D.p){var A=D.p;}else{var A=document.createElement("input");A.type="hidden";A.name=A.id="p";D.appendChild(A);}A.value=document.getElementById(C).s.value;D.method="get";}function hideAddress(B){var A=document.getElementById(B);A.style.position="absolute";A.style.visibility="hidden";}function expandAddrMore(A){A.previousSibling.style.position="relative";A.previousSibling.style.visibility="visible";A.style.visibility="hidden";resizeLeftPane();}function JSifyForm(A){document.getElementById(A).form.ymcjs.value="1";}function displayCandyLink(C,A){var B=document.createElement("div");B.className="floatright";B.innerHTML='

'+C+"

";document.getElementById("folderheading").appendChild(B);}function formActionULT(B,A){if(YAHOO.mc.isTrashBulk){mids=document.getElementsByName("mid");msgSelected=false;for(i=0;i