var dynamicElements;var selectsElements;function isIE(){return(document.all?true:false)}function setFocus(A){if(document.getElementById){document.getElementById(A).focus()}else{if(document.all){document.all(A).focus()}}return false}function openHelpWindow(B){var A=window.open(B,null,"width=300,height=255,top=250,left=250","true");A.focus();return A}function openHelp(B,A){return openHelpContainer(B,A,"helpContainer")}function openHelpContainer(C,B,E){hideSelects();var D=getMouseXY(C);var A=document.getElementById(E);A.innerHTML='<span class="processing">Loading...</span>';if(A!=null){doCustomAJAXRequest(B,E,null);A.style.display="";A.style.left=D.X;A.style.top=D.Y}return false}function closeHelp(){showSelects();var A=document.getElementById("helpContainer");A.style.display="NONE";A.innerHTML="";return false}function pos(){this.X=0;this.Y=0}function getMouseXY(A){if(!A){var A=window.event}var B=new pos();if(A.pageX||A.pageY){B.X=A.pageX;B.Y=A.pageY}else{if(A.clientX||A.clientY){B.X=A.clientX+document.body.scrollLeft;B.Y=A.clientY+document.body.scrollTop}}if(B.X<0){B.X=0}if(B.Y<0){B.Y=0}return B}function setEnableDisable(A,B){A.disabled=B}function getRequestParameter(A){var B=window.top.location.search.substring(1);var A=A+"=";if(B.length>0){begin=B.indexOf(A);if(begin!=-1){begin+=A.length;end=B.indexOf("&",begin);if(end==-1){end=B.length}return unescape(B.substring(begin,end))}return"null"}}function clickButton(C,B){try{var A=$(B);if(navigator.appName.indexOf("Netscape")>-1){if(C.keyCode==13){if(A!=null){A.click()}return false}}else{if(event.keyCode==13){if(A!=null){A.click()}return false}}}catch(C){return true}}String.prototype.toProperCase=function(){return this.toLowerCase().replace(/^(.)|\s(.)/g,function(A){return A.toUpperCase()})};Array.prototype.contains=function(B){for(var A=0;A<this.length;A++){if(this[A]==B){return true}}return false};function invertRegExValidate(B){var A=ValidatorGetValue(B.controltovalidate);if(ValidatorTrim(A).length==0){return true}else{if(typeof RegularExpressionValidatorEvaluateIsValid=="function"){return !RegularExpressionValidatorEvaluateIsValid(B)}else{return true}}}function startProcessing(){document.getElementById("processing").style.display=""}function endProcessing(){document.getElementById("processing").style.display="NONE"}function addBookMark(){if(window.external){window.external.AddFavorite(document.location.href,document.title)}else{alert("Your browser doesn't support bookmarking this page.  Please try pressing Control + D instead.")}}function toggleSection(A){var B;if(document.getElementById){B=document.getElementById(A).style;if(B.display){B.display="";return false}else{B.display="block";return true}}}function hideAndShow(A){var B;if(document.getElementById){B=document.getElementById(A).style;if(B.display.toUpperCase()=="NONE"){B.display="";return false}else{B.display="NONE";return true}}}function createDynDisplayArray(){dynamicElements=new Array();getDynamicElements(document.body);getDynDisplayRules(document.body);dynDisplay()}function getDynamicElements(B){if(B.nodeType==1&&B.getAttribute("displayif")){dynamicElements[dynamicElements.length]=new DynamicElement(B,B.getAttribute("displayif"))}for(var A=0;A<B.childNodes.length;getDynamicElements(B.childNodes[A++])){}}function getDynDisplayRules(D){var A="_displayRule";var B=D.getElementsByTagName("INPUT");for(var C=0;C<B.length;C++){e=B[C];if(e.name.substr(e.name.length-A.length)==A){dynamicElements[dynamicElements.length]=new DynamicElement(document.getElementById(e.name.substr(0,e.name.length-A.length)),e.value)}}}function dynDisplay(){if(dynamicElements!=null){for(var i=0;i<dynamicElements.length;i++){dynamicElements[i].element.style.display=eval(dynamicElements[i].rule)?"":"none"}}}DynamicElement=function(A,B){this.element=A;this.rule=B};function fbs_click(){return fbs_clickUrl(null,null)}function fbs_clickUrl(B,A){if(B==null){B=encodeURIComponent(location.href)}if(A==null){A=encodeURIComponent(document.title)}window.open("http://www.facebook.com/sharer.php?u="+B+"&t="+A,"sharer","toolbar=0,status=0,width=626,height=436");return false}function getSelectObjects(){selectsElements=document.getElementsByTagName("select")}function isIE7(){return(document.all&&!window.opera&&window.XMLHttpRequest)}function hideSelects(){if(!isIE7()){if(selectsElements==undefined){getSelectObjects()}if(document.all){for(var A=0;A<selectsElements.length;A++){selectsElements[A].style.display="none"}}}}function showSelects(){if(!isIE7()){if(document.all){for(var A=0;A<selectsElements.length;A++){selectsElements[A].style.display=""}}}}function $(A){if(document.getElementById(A)){return document.getElementById(A)}}function stripeTables(){var B=document.getElementsByTagName("table");for(var A=0;A<B.length;A=A+1){if(B[A].id=="striped"){stripe(B[A])}}}function stripe(C){var A=C.getElementsByTagName("tr");for(var B=0;B<A.length;B+=2){A[B].className+=" even"}}var currentModalElement;function handleOnResize(){if(currentModalElement!=undefined&&currentModalElement.style.display==""){window.centerToWindow(currentModalElement);resetBgSize()}}function showModal(A,B){hideSelects();if(typeof (B)=="number"){$(A).style.width=B+"px"}blurBg();currentModalElement=A;window.centerToWindow($(A));try{new Draggable(A,{scroll:window,handle:"frameHandle",revert:function(D){return false},snap:function(E,G,D){function F(J,H,I){if(J>I){return I}else{if(J<H){return H}else{return J}}}element_dimensions=Element.getDimensions(D.element);parent_dimensions=Element.getDimensions($("bgBlur"));return[F(E,0,parent_dimensions.width-element_dimensions.width),F(G,0,parent_dimensions.height-element_dimensions.height)]}})}catch(C){}return false}function closeModal(){showSelects();if(currentModalElement!=undefined){$(currentModalElement).style.display="none"}$("bgBlur").style.display="none"}function blurBg(){$("bgBlur").style.display="";resetBgSize()}function resetBgSize(){if(typeof (window.innerWidth)=="number"){$("bgBlur").style.width=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){$("bgBlur").style.width=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){$("bgBlur").style.width=document.body.clientWidth}}}if(!isIE()){$("bgBlur").style.height=(document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement.scrollHeight:document.documentElement.clientHeight)+"px"}}window.centerToWindow=function(oNode){if(typeof (oNode)=="string"){oNode=$(oNode)}currentModalElement=oNode;var iDocX=0;var iWinY=0;if(typeof (window.innerWidth)=="number"){iDocX=window.innerWidth;iWinY=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){iDocX=document.documentElement.clientWidth;iWinY=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){iDocX=document.body.clientWidth;iWinY=document.body.clientHeight}}}if(oNode&&oNode.style){with(oNode.style){position="absolute";zIndex=99}}var scrollY=0;if(document.documentElement&&document.documentElement.scrollTop){scrollY=document.documentElement.scrollTop}else{if(document.body&&document.body.scrollTop){scrollY=document.body.scrollTop}else{if(window.pageYOffset){scrollY=window.pageYOffset}else{if(window.scrollY){scrollY=window.scrollY}}}}var oElementDimensions=Element.getDimensions(oNode);var iSetX=(iDocX-oElementDimensions.width)/2;var iSetY=(iWinY-oElementDimensions.height)/2+scrollY;iSetX=(iSetX<0)?0:iSetX;iSetY=(iSetY<0)?0:iSetY;if(oNode&&oNode.style){with(oNode.style){left=iSetX+"px";top=iSetY+"px";display=""}}};function getDocHeight(){var A;if(typeof (window.innerHeight)=="number"){A=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){A=document.body.clientHeight}}}if(document.documentElement&&document.documentElement.scrollTop){A+=document.documentElement.scrollTop}else{if(document.body&&document.body.scrollTop){A+=document.body.scrollTop}else{if(window.pageYOffset){A+=window.pageYOffset}else{if(window.scrollY){A+=window.scrollY}}}}return A};