var g_FADE_TIME=400;try{document.captureEvents(Event.MOUSEDOWN|Event.MOUSEMOVE|Event.MOUSEUP|Event.DRAGDROP|Event.MOUSEOUT|Event.MOUSEOVER|Event.METAMASK);Event.prototype.__defineGetter__("srcElement",function(){var A=window.event.target;while(A.nodeType!=1){A=A.parentNode}return A});Event.prototype.__defineGetter__("offsetX",function(){return window.event.layerX});Event.prototype.__defineGetter__("offsetY",function(){return window.event.layerY});var events=["mousemove","contextmenu"],i=2;while(i--){document.addEventListener(events[i],function(A){window.event=A},true)}}catch(exception){}var MESSAGELISTING=0,CALENDARWEEKVIEW=1,CALENDARMONTHVIEW=2,ADDRESSBOOK=3,OPTIONS=4,TASKS=5,DOWNLOADS=6,NOTES=7;var VF_SINGLE=0,VF_DOUBLE=1,VF_RIGHT=2,VF_PGLOAD=3;var WARNING=0,SAVED=1,REMINDER=2,LOADING=3;var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion),is_minor=parseFloat(navigator.appVersion);var is_opera=(agt.indexOf("opera")!=-1),is_gecko=(agt.indexOf("gecko")!=-1),is_safari=(agt.indexOf("safari")!=-1);var is_nav=((agt.indexOf("mozilla")!=-1)&&(agt.indexOf("spoofer")==-1)&&(agt.indexOf("compatible")==-1)&&(agt.indexOf("opera")==-1)&&(agt.indexOf("webtv")==-1)&&(agt.indexOf("hotjava")==-1));var is_nav2=(is_nav&&(is_major==2)),is_nav3=(is_nav&&(is_major==3)),is_nav4=(is_nav&&(is_major==4)),is_nav4up=(is_nav&&(is_major>=4));var is_navonly=(is_nav&&((agt.indexOf(";nav")!=-1)||(agt.indexOf("; nav")!=-1)));var is_nav6=(is_nav&&(is_major==5));var is_nav6up=(is_nav&&(is_major>=5));var is_ie=(agt.indexOf("msie")!=-1&&!is_opera&&!is_nav);var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")==-1)&&(agt.indexOf("msie 5.5")==-1)&&(agt.indexOf("msie 6.0")==-1)&&(agt.indexOf("msie 6.5")==-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);var is_ie55=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1));var is_ie55up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5);var is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.0")!=-1));var is_ie7=(is_ie&&(is_major==4)&&(agt.indexOf("msie 7.0")!=-1));var is_ie8=(is_ie&&(is_major==4)&&(agt.indexOf("msie 8.0")!=-1));if(is_ie7||is_ie8){is_ie55up=true}var is_mac=(agt.indexOf("mac")!=-1);var agt=navigator.userAgent.toLowerCase();var isIE=/MSIE/.test(navigator.userAgent)&&!/Opera/.test(navigator.userAgent);var ie=isIE;var moz=navigator.product=="Gecko"&&!/Safari/.test(navigator.userAgent);var isOpera=(agt.indexOf("opera")!=-1);var isSafari=/Safari/.test(navigator.userAgent);var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1);var isMac=/Mac/.test(navigator.userAgent);var CLASS=(isIE?"className":"class");var CLASS=(is_ie?"className":"class");function check_escape(A){if(A.indexOf("%23")!=-1){return A}return escape(A)}function getEl(A){return document.getElementById(A)}function Mesg(A){StatusMsg();if(A.length>0){alert(A)}}function StatusMsg(B){try{if(B!=null){top.showStatusMessage(sStatusMesg)}else{if(getEl("StatusMesg").innerHTML.length>0){top.showStatusMessage(getEl("StatusMesg").innerHTML)}}}catch(A){}}function Post(A,B){document.forms[0].action+="&"+(A!=null?A:"No")+"="+(B!=null?B:"Yes");if(typeof (Validate)=="undefined"||Validate()){document.forms[0].submit()}}function Get(A,B){document.location=document.forms[0].action+"&"+A+"="+(B!=null?B:"Yes")}function SetOption(B,F){F=new String(F);var A=document.forms[0];var C=A.length;var E=C;while(E--){if(A.elements[E].name==B){var D=A.elements[E];break}}if(D==null){return }switch(D.type){case"checkbox":D.checked=(D.value==F);break;case"radio":E=C;while(E--){if(A.elements[E].name==B&&A.elements[E].value==F){A.elements[E].checked=true}}break;case"select-one":E=D.length;while(E--){if(D.options[E].value.toLowerCase()==F.toLowerCase()){D.selectedIndex=E}}break;case"select-multiple":E=D.length;while(E--){if(D.options[E].value.toLowerCase()==F.toLowerCase()){D.options[E].selected=true}}break;case"text":D.value=F;break;case"hidden":D.value=F;break}}function SelectAll(){MsgSelected.length=0;var A=document.forms[0],B=document.forms[0].elements.length,C=null;while(B--){C=A.elements[B];if(C.name=="Number"){C.checked=true;highlight(C.value);MsgSelected.push(C.value)}}}function EnableFormFields(D,B){var C=B.length,A;while(C--){if(!B[C]){break}A=B[C];if(A.tagName=="FIELDSET"){continue}if(A.tagName!="TEXTAREA"&&A.type!="text"){A.disabled=(D?false:true)}A.readOnly=(D?false:true)}}function SetCookie(B,A){document.cookie=B+"="+A+";expires="+new Date(2020,12,31)}function GetCookie(D){var A=document.cookie.split("; ");var B=A.length;while(B--){var C=A[B].split("=");if(D==C[0]){return(C[1])}}return null}function setFocus(B){try{document.forms[0][B].focus()}catch(A){}}function Print(A){window.open(A,"Print","height=400,width=600,scrollbars=yes,status=yes,resizable=1,toolbar=yes,menubar=yes")}function Source(A){window.open(A,"Source","height=400,width=600,scrollbars=yes,status=yes,resizable=1,toolbar=yes,menubar=yes")}function openWin(D,C,F,B,E){var A=window.open(D,C+(E=="compose"?top.composeWindowCount++:""),"directories=no,location=no,menubar=no,status=no,scrollbars="+(E=="yes"||E=="compose"?"yes":"no")+",resizable="+(E=="yes"||E=="compose"?"yes":"no")+",titlebars=no,toolbar=no,width="+F+",height="+B);A.focus();if(!A.opener){A.opener=window}}function openModalWin(C,E,L,A,F,K,H){if(!F){F="no"}if(!K){K="no"}if(!A){A="yes"}if(is_ie){if(!H){H=window}var B="dialogHeight:"+L+"px;dialogWidth:"+E+"px;"+"edge:Raised;center:Yes;help:No;resizable:"+A+";status:"+F+";scroll:"+K+";";var J=C.substring(C.indexOf("=")+1,C.indexOf("&"));C=C.substring(0,C.indexOf("View="))+"View=ModalFrame&file="+C.substring(C.indexOf("View=")+5);var M=window.showModalDialog(C,H,B);return M}else{var D=(E)?E:(screen.availWidth*0.75);var G=(L)?L-30:(screen.availHeight*0.75);var I="modal,width="+D+",height="+G+",status="+F+",resizable="+A+",scrollbars="+K+",menubar=no,toolbar=no";window.open(C,Math.random(),I)}}function openHelp(){if(opener){return }else{top.openHelp()}return false}function jsRPC(B){try{new xmlHTTP(B,null);return new Date().getTime()}catch(A){try{top.writeToDebugLog("jsRPC::Error: "+(is_ie?A.description:A))}catch(A){}}}function createXMLHTTPObject(){var E=null,B=null,A=0,C=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];try{E=new XMLHttpRequest()}catch(D){while(A<5){try{E=new ActiveXObject(C[A]);break}catch(D){}++A}}return E}var VIEW_REQUESTS=[];var ALL_REQUESTS=[];function removePastViewRequests(){var A=VIEW_REQUESTS.length,B;while(A--){B=VIEW_REQUESTS.splice(A,1);B[0].onreadystatechange=function(){};B[0].abort()}}function removeThisFromViewList(B){var A=VIEW_REQUESTS.length;while(A--){if(VIEW_REQUESTS[A]==B){VIEW_REQUESTS.splice(A,1);return }}}function addRequestData(A){ALL_REQUESTS.push(A)}function getAndRemoveRequestData(B){var A=ALL_REQUESTS.length;while(A--){if(ALL_REQUESTS[A].xhr==B){var C=ALL_REQUESTS[A];ALL_REQUESTS.splice(A,1);return C}}return null}function xmlHTTP(url,sPostValue,callBackFunction,bReturnXML){var xmlhttp=createXMLHTTPObject();if(!xmlhttp){return }if(typeof (RequestView)!="undefined"&&xmlHTTP.caller==RequestView){removePastViewRequests();VIEW_REQUESTS.push(xmlhttp)}var obj={xhr:xmlhttp,callBack:callBackFunction,returnXML:(bReturnXML!=null&&bReturnXML==true),caller:xmlHTTP.caller};addRequestData(obj);try{document.body.style.cursor="wait";url=replaceURLVar(url,"XMLHTTP","1");xmlhttp.open((sPostValue!=null?"POST":"GET"),url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){var requestData=getAndRemoveRequestData(xmlhttp);if(typeof (RequestView)!="undefined"&&requestData.caller==RequestView){removeThisFromViewList(xmlhttp)}document.body.style.cursor="auto";if(xmlhttp.responseXML){if(typeof (XMLErrorReport)!="undefined"&&!XMLErrorReport(xmlhttp.responseXML)){if(PAGE.UpdateSettings){PAGE.UpdateSettings()}return }}else{if(requestData.returnXML){return }}if(requestData.callBack){if(requestData.callBack==function(sJSON){PAGE.list.handleData(sJSON)}){var nPage=findURLVar("Page");if(nPage&&PAGE.list.pageBar&&nPage!=PAGE.list.pageBar._currentPage){return false}}requestData.callBack(requestData.returnXML==true?xmlhttp.responseXML:xmlhttp.responseText)}else{try{eval(""+xmlhttp.responseText+"")}catch(ex){}}try{delete xmlhttp.xmlHttpRequest["onreadystatechange"];xmlhttp.xmlHttpRequest=null}catch(ex){}}};xmlhttp.setRequestHeader("Connection","Close");if(sPostValue!=null){xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.setRequestHeader("Content-Length",sPostValue.length)}xmlhttp.send(sPostValue)}catch(ex){document.body.style.cursor="auto";alert("globals.js::xmlHTTP()::Error: "+(is_ie?ex.description:ex));return }return }if(is_ie6||is_ie7){setInterval('if(typeof(CollectGarbage)=="function"){CollectGarbage()}',60000)}function findURLVar(B){var C,A;if(B.charAt(B.length)!="="){B+="="}C=g_LAST_PARAMS.indexOf(B);if(C!=0){C=g_LAST_PARAMS.indexOf("&"+B)}if(C!=-1){if(g_LAST_PARAMS.charAt(C)=="&"){C++}C+=B.length;A=g_LAST_PARAMS.indexOf("&",C);return unescape((A==-1)?g_LAST_PARAMS.substring(C):g_LAST_PARAMS.substring(C,A))}return""}function replaceURLVar(C,F,E){if(!C){return new String()}if(!F){return new String()}var D,B;var A=new String();if(F.charAt(F.length)!="="){F+="="}start=C.indexOf(F);if(start!=0){start=C.indexOf("&"+F)}if(start==-1){A=C;if(E!=null){A+=(C.indexOf("?")==-1&&C.indexOf("&")==-1)?"?":"&";A+=F;A+=escape(E)}}else{if(E!=null){if(C.charAt(start)=="&"){start++}start+=F.length}A=C.substring(0,start);A+=escape(E);B=C.indexOf("&",start);if(B!=-1){A+=C.substring(B,C.length)}}return A}function removeURLVar(C,I){var D=C.indexOf("?");if(D==-1){return C}var B=C.substr(0,D+1);var G=C.substr(D+1);var A=G.split("&");var F="",E=0;while(E<A.length){var H=A[E].split("=");if(H[0]!=I){B+=(E==0?"":"&")+A[E]}++E}return B}function removeChildren(A){if(!A){return }if(is_ie){ieremoveChildren(A)}else{A.innerHTML=""}}function ieremoveChildren(D){var B=D.childNodes,C=B.length,A;while(C--){D.removeChild(B[C])}}function validateIntKey(A){if(!A){A=window.event}if(A.keyCode==8||A.keyCode==9||A.keyCode==46||A.keyCode>=48&&A.keyCode<=57||A.keyCode>=96&&A.keyCode<=105){if(typeof (setIsDirty)!="undefined"){setIsDirty()}return true}return false}function getTopOffset(A){var B=A.offsetTop;while(A.offsetParent!=null){B+=A.offsetParent.offsetTop;A=A.offsetParent}return B}function getLeftOffset(A){var B=A.offsetLeft;while(A.offsetParent!=null){B+=A.offsetParent.offsetLeft;A=A.offsetParent}return B}try{var liObj=document.createElement("li"),ulObj=document.createElement("ul"),aObj=document.createElement("a"),divObj=document.createElement("div"),spanObj=document.createElement("span"),imgObj=document.createElement("img"),inputObj=document.createElement("input"),labelObj=document.createElement("label"),tableObj=document.createElement("table"),theadObj=document.createElement("thead"),tfootObj=document.createElement("tfoot"),tbodyObj=document.createElement("tbody"),trObj=document.createElement("tr"),thObj=document.createElement("th"),tdObj=document.createElement("td")}catch(ex){}function clone(A){return A.cloneNode(1)}var bodyWidth,bodyHeight;function getPageDimensions(){if(self.innerHeight){bodyWidth=self.innerWidth;bodyHeight=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){bodyWidth=document.documentElement.clientWidth;bodyHeight=document.documentElement.clientHeight}else{if(document.body){bodyWidth=document.body.clientWidth;bodyHeight=document.body.clientHeight}}}}var statusIndicator={};statusIndicator.init=function(B,A){this.text=B;this.delay=A;if(this.timer){clearTimeout(this.timer);this.timer=null}this.timer=window.setTimeout("statusIndicator.show()",statusIndicator.delay)};statusIndicator.show=function(){getPageDimensions();var C=clone(divObj);C.id="statusIndicator";C.setAttribute(CLASS,"statusIndicator");var B=clone(divObj);var A=clone(imgObj);A.src=theme+"/status.gif";B.appendChild(A);B.appendChild(document.createTextNode(" "));B.appendChild(document.createTextNode(this.text));C.appendChild(B);getEl("container").appendChild(C)};statusIndicator.hide=function(){if(this.timer){clearTimeout(this.timer);this.timer=null}if(getEl("statusIndicator")){getEl("container").removeChild(getEl("statusIndicator"))}};function disableSelection(A){A.onselectstart=function(){var B=window.event.srcElement.tagName;if(B=="INPUT"||B=="TEXTAREA"){return true}return false};A.unselectable="on";A.style.MozUserSelect="none";A.style.cursor="default"}function enableSelect(A){A.onselectstart=function(){var B=window.event.srcElement.tagName;if(B=="INPUT"||B=="TEXTAREA"){return true}return false};A.unselectable="off";A.style.MozUserSelect="normal";A.style.cursor=""}function opacity(F,D,A,B){var C=Math.round(B/100);var E=0;if(D>A){for(i=D;i>=A;i--){setTimeout("changeOpacity("+i+",'"+F+"')",(E*C));E++}}else{if(D<A){for(i=D;i<=A;i++){setTimeout("changeOpacity("+i+",'"+F+"')",(E*C));E++}}}}function changeOpacity(B,C){if(!getEl(C)){return }var A=getEl(C).style;A.opacity=(B/100);A.MozOpacity=(B/100);A.KhtmlOpacity=(B/100);A.filter="alpha(opacity="+B+")"};