function ChangePageToHaveDisabledLook(){var b=document.getElementById("MainContentBodyWrapper");var a=20;b.style.filter="alpha(style = 0, opacity:"+a+")";b.style.MozOpacity=a/100;b.style.opacity=a/100}function RestorePageFromDisabledLook(){var a=100;var b=document.getElementById("MainContentBodyWrapper");b.style.filter="alpha(style = 0, opacity:"+a+")";b.style.MozOpacity=a/100;b.style.opacity=a/100}function writeOutFlashObject(a){document.write(a)}function repositionPopupBoxOffScreen(){document.getElementById("PopupBoxWrapper").style.left="-2000px";document.getElementById("PopupBoxWrapper").style.top="-2000px";document.getElementById("PopupBoxIframe").src=""}function hideDHTMLPopup(){releaseMouseDownDragEventForPopup();RestorePageFromDisabledLook();document.getElementById("PopupBoxWrapper").style.visibility="hidden";window.setTimeout("repositionPopupBoxOffScreen()",200)}function showDHTMLPopup(g,l,k,b){ChangePageToHaveDisabledLook();var a=document.getElementById("PopupBoxIframe");var j=document.getElementById("PopupBoxWrapper");var i=document.getElementById("PopupBoxBody");var e=document.getElementById("PopupBoxHeaderText");e.innerHTML=l;j.style.width=(k+2)+"px";j.style.height=(b+2)+"px";a.width=k+"px";a.height=b+"px";a.style.height=b+"px";a.style.width=k+"px";i.style.height=b+"px";i.style.width=k+"px";var n=screen.availHeight-125;var f=screen.availWidth;if(window.innerWidth){f=window.innerWidth}else{if(document.body.offsetWidth){f=document.body.offsetWidth}}f=f-k;n=n-b;var d=f/2;var m=n/2;var h=0;var c=0;if(document.documentElement.scrollTop){c=document.documentElement.scrollTop}if(document.documentElement.scrollLeft){h=document.documentElement.scrollLeft}d+=h;m+=c;if(d<2){d=2}if(m<2){m=2}j.style.left=d+"px";j.style.top=m+"px";j.style.visibility="visible";a.src=g}function showSendToAFriendPopup(a){var b="/includes/popups/SendToFriend.aspx?url=";b+=a;showDHTMLPopup(b,"Email a Friend",400,490)}function showHelpPopup(b){var a="/includes/popups/helpPopup.aspx?variable="+b;showDHTMLPopup(a,"Help",500,300)}var globalEventPopupOffsetX,globalEventPopupOffsetY,globalScrollLeft,globalScrollTop;var globalPopupRef;function captureMouseDownDragEventForPopup(a){a=(a)?a:event;globalPopupRef=document.getElementById("PopupBoxWrapper");if(a.offsetX){globalEventPopupOffsetX=a.offsetX+4;globalEventPopupOffsetY=a.offsetY+4}else{globalEventPopupOffsetX=20;globalEventPopupOffsetY=5}globalScrollLeft=document.documentElement.scrollLeft;globalScrollTop=document.documentElement.scrollTop;document.body.onmousemove=dragPopupContainer;globalPopupRef.onmouseup=releaseMouseDownDragEventForPopup;document.body.onmouseup=releaseMouseDownDragEventForPopup}function dragPopupContainer(a){a=(a)?a:event;globalPopupRef.style.left=a.clientX-globalEventPopupOffsetX+globalScrollLeft+"px";globalPopupRef.style.top=a.clientY-globalEventPopupOffsetY+globalScrollTop+"px"}function releaseMouseDownDragEventForPopup(){document.body.onmousemove=null}function getStyleSheetLinkRef(c){var a,b;for(a=0;(b=document.getElementsByTagName("link")[a]);a++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")==c){return b}}return null}function setActiveStyleSheet(b){var a=getStyleSheetLinkRef("Body Theme");if(b=="Day Theme"){a.href="/sourceFiles/css/DayTheme.css";document.getElementById("dayThemeLink").className="dayThemeActive";document.getElementById("nightThemeLink").className="nightThemeInactive"}else{a.href="/sourceFiles/css/NightTheme.css";document.getElementById("nightThemeLink").className="nightThemeActive";document.getElementById("dayThemeLink").className="dayThemeInactive"}createCookie("DefaultBodyTheme",b,365)}function createCookie(c,d,e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString();document.cookie=c+"="+d+a+"; path=/"}var newYearsDateObj=Date.UTC(new Date().getFullYear()+1,0,1);var oneDay=86400000;var oneHour=3600000;var oneMinute=60000;var oneSecond=1000;function showNewYearsCountdownText(e,d,j){var h=new Date();h=Date.UTC(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate(),h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds());var k=oneHour*e;var g=(newYearsDateObj-h)-k;var b=Math.floor(g/oneDay);var a=Math.floor((g%(oneDay))/oneHour);var f=Math.floor(((g%(oneDay))%(oneHour))/oneMinute);var c=Math.floor((((g%(oneDay))%(oneHour))%(oneMinute))/oneSecond);if(f<10){f="0"+f}if(c<10){c="0"+c}document.getElementById(d).innerHTML=b;document.getElementById(j).innerHTML=a+":"+f+":"+c;var i="showNewYearsCountdownText("+e+", '"+d+"', '"+j+"')";window.setTimeout(i,1000)};
