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(){if(typeof(window.event)=="undefined"){return}var a=window.event.target;while(a.nodeType!=1){a=a.parentNode}return a});Event.prototype.__defineGetter__("offsetX",function(){if(typeof(window.event)=="undefined"){return}return window.event.layerX});Event.prototype.__defineGetter__("offsetY",function(){if(typeof(window.event)=="undefined"){return}return window.event.layerY});var events=["mousemove","contextmenu"],i=2;while(i--){document.addEventListener(events[i],function(a){if(typeof(window.event)=="undefined"){return}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),is_opera=(agt.indexOf("opera")!=-1),is_gecko=(agt.indexOf("gecko")!=-1),is_safari=(agt.indexOf("safari")!=-1),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)),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)),is_navonly=(is_nav&&((agt.indexOf(";nav")!=-1)||(agt.indexOf("; nav")!=-1))),is_nav6=(is_nav&&(is_major==5)),is_nav6up=(is_nav&&(is_major>=5));var is_ie=isIE=ie=(agt.indexOf("msie")!=-1&&!is_opera&&!is_nav),is_ie3=(is_ie&&(is_major<4)),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)),is_ie4up=(is_ie&&(is_major>=4)),is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1)),is_ie5up=(is_ie&&!is_ie3&&!is_ie4),is_ie55=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.5")!=-1)),is_ie55up=(is_ie&&!is_ie3&&!is_ie4&&!is_ie5),is_ie6=(is_ie&&(is_major==4)&&(agt.indexOf("msie 6.0")!=-1)),is_ie7=(is_ie&&(is_major==4)&&(agt.indexOf("msie 7.0")!=-1)),is_ie7up = (is_ie  && !is_ie3 && !is_ie4 && !is_ie5 && !is_ie6),is_ie8=(is_ie&&(is_major==4)&&(agt.indexOf("msie 8.0")!=-1));if(is_ie7||is_ie8){is_ie55up=true;is_ie7up=true;}is_standard = (is_gecko || is_ie8);var is_mac=(agt.indexOf("mac")!=-1),agt=navigator.userAgent.toLowerCase(),moz=navigator.product=="Gecko"&&!/Safari/.test(navigator.userAgent),isOpera=(agt.indexOf("opera")!=-1),isSafari=/Safari/.test(navigator.userAgent),isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1),isMac=/Mac/.test(navigator.userAgent);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")&&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 Print(a,b){window.open(a,(b?"Source":"Print"),"height=400,width=600,scrollbars=yes,status=yes,resizable=1,toolbar=yes,menubar=yes")}function Source(a){Print(a,1)}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,m,a,f,l,h){if(!f){f="no"}if(!l){l="no"}if(!a){a="yes"}if(is_ie){if(!h){h=window}var b="dialogHeight:"+m+"px;dialogWidth:"+e+"px;edge:Raised;center:Yes;help:No;resizable:"+a+";status:"+f+";scroll:"+l+";";var k=c.substring(c.indexOf("=")+1,c.indexOf("&"));c=c.substring(0,c.indexOf("View="))+"View=ModalFrame&file="+c.substring(c.indexOf("View=")+5);var n=window.showModalDialog(c,h,b);return n}else{var d=(e)?e:(screen.availWidth*0.75);var g=(m)?m-30:(screen.availHeight*0.75);var j="modal,width="+d+",height="+g+",status="+f+",resizable="+a+",scrollbars="+l+",menubar=no,toolbar=no";window.open(c,Math.random(),j)}}function openHelp(){if(opener){return}else{top.openHelp()}return false}function xmlHTTP(d,b,a,c){d=replaceURLVar(d,"XMLHTTP","1");if(b&&b.length>0){jQuery.post(d,b,(a?a:afterPost),(c?"xml":"text"))}else{jQuery.get(d,"",(a?a:afterPost),(c?"xml":"text"))}}function afterPost(oData,sTextStatus){if(sTextStatus==="error"||sTextStatus==="parseerror"){try{top.writeToDebugLog("AJAX error: "+sTextStatus)}catch(ex){}return}if(sTextStatus==="success"){try{eval(""+oData+"")}catch(ex){}}}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,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,j){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]!=j){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+")"};
