var ie=document.all?true:false;function popwin(C,F,B){var A=screen.availWidth;var E=screen.availHeight;var D=0;var G=0;if(A>F){D=(A-F)/2}if(E>B){G=(E-B)/2}viewer=window.open(C,"viewer","top="+G+",left="+D+",status=yes,scrollbars=yes,menubar=no,resizable=yes,width="+F+",height="+B);viewer.focus()}function pw(B,C,A){popwin(B.href,C,A);return false}function mimicAnchorHover(A){dynamicUI.mimicAnchorHover(A)}function mimicAnchorHoverOff(A){dynamicUI.mimicAnchorHoverOff}function UserProfile(){this.profileStoreTime=30;this.ajaxEnabled=function(){var A=stateManager.readCookie("ajax");if(A==null){stateManager.createCookie("ajax","true",this.profileStoreTime);return true}else{if(A=="true"){return true}else{return false}}};this.onAjaxPreferenceChange=null;this.enableAjax=function(){stateManager.createCookie("ajax","true",this.profileStoreTime);if(typeof (this.onAjaxPreferenceChange)=="function"){this.onAjaxPreferenceChange(true)}};this.disableAjax=function(){stateManager.createCookie("ajax","false",this.profileStoreTime);if(typeof (this.onAjaxPreferenceChange)=="function"){this.onAjaxPreferenceChange(true)}}}function RequestData(){this.params=null;this.length=0;this.addParam=function(A,B){if(this.params==null){this.params=""}else{this.params+="&"}this.params+=A+"="+B;this.length++};this.clear=function(){this.params=null;this.length=0};this.getData=function(){return this.params}}function URLBuilder(){this.host=null;this.port=null;this.scheme="http";this.path="/";this.query=new RequestData();this.getUri=function(){var A="";if(this.host!=null){A=this.scheme+"://"+this.host;if(this.port!=null){A+=this.port}}A+=this.path;var B=this.query.getData();if(B!=null){A+="?"+B}return A}}function trim(B,A){return ltrim(rtrim(B,A),A)}function ltrim(B,A){A=A||"\\s";return B.replace(new RegExp("^["+A+"]+","g"),"")}function rtrim(B,A){A=A||"\\s";return B.replace(new RegExp("["+A+"]+$","g"),"")}window.DOMHelper={removeChildNodes:function(A){if(A.childNodes.length>0){var C=A.childNodes.item(0);var B;while(C){B=C.nextSibling;A.removeChild(C);C=B}}},setText:function(A,B){DOMHelper.removeChildNodes(A);A.appendChild(document.createTextNode(B))},hasChildElements:function(B){var C=B.childNodes;for(var A=0;A<C.length;A++){if(C[A].nodeType==1){return true}}return false},getFirstElement:function(B){var C=B.childNodes;for(var A=0;A<C.length;A++){if(C[A].nodeType==1){return C[A]}}return null},findBookmarks:function(E,H){var F=E.childNodes;for(var C=0;C<F.length;C++){if(F[C].nodeType==1){if(F[C].nodeName=="a"||F[C].nodeName=="A"){var B=F[C].getAttribute("href");if(B!=null){var A=B.indexOf("#");var G=document.location.href;var D=G.indexOf("#");if(D>-1){G=G.substring(0,D)}if(A==0||(B.indexOf(G)==0&&A>0)){if(typeof (H)=="function"){H(F[C])}}}}else{DOMHelper.findBookmarks(F[C],H)}}}},applyCSS:function(C,B){var E=B.split(";");for(var A=0;A<E.length;A++){try{var F=E[A].split(":");switch(trim(F[0])){case"display":C.style.display=F[1];break;case"color":C.style.color=F[1];break;case"border":C.style.border=F[1];break;case"background-color":C.style.backgroundColor=F[1];break;case"position":C.style.position=F[1];break;case"left":C.style.left=F[1];break;case"top":C.style.top=F[1];break}}catch(D){}}},importNode:function(F,A){for(var D=0;D<A.childNodes.length;D++){var B=A.childNodes[D];var I=B.nodeType;switch(I){case 1:try{var C=F.appendChild(document.createElement(B.nodeName));for(var H=0;H<B.attributes.length;H++){var G=B.attributes[H];switch(G.nodeName){case"colspan":C.colSpan=G.nodeValue;break;case"rowspan":C.rowSpan=G.nodeValue;break;case"class":C.className=G.nodeValue;break;case"style":if(G.nodeValue!=null){DOMHelper.applyCSS(C,G.nodeValue)}break;default:C.setAttribute(G.nodeName,G.nodeValue)}}if(B.nodeName=="td"||B.nodeName=="th"||B.nodeName=="table"){C.setAttribute("border","0");C.style.borderCollapse="collapse"}DOMHelper.importNode(C,B)}catch(E){}break;case 3:case 4:F.appendChild(document.createTextNode(B.nodeValue));break;default:}}}};window.tracking={trackEvent:function(A){_hbPageView(A.pageName,hbx.mlc)},setPopulationGroups:function(A){try{_hbSet("seg",A);_hbSend()}catch(B){if(window.console){console.debug(B.message)}}},getMLC:function(A){var D=A;var C=new RegExp("^https?://[^/]+/([^\\.]*)");var B=C.exec(document.location.href);if(B!=null&&B.length==2){D+="/"+B[1].replace(/(_|-)/,"").toUpperCase()}return D}};window.dynamicUI={mimicAnchorHover:function(A){A.style.textDecoration="underline"},mimicAnchorHoverOff:function(A){A.style.textDecoration="none"},toggle:function(B){var A=document.getElementById(B);if(A.style.display=="none"){A.style.display="";return true}else{A.style.display="none";return false}},hide:function(B){var A=document.getElementById(B);A.style.display="none";return false},show:function(B){var A=document.getElementById(B);A.style.display="";return false},resizeFrame:function(F){try{var A=document.getElementById(F);var E=window.frames[0].document;var C=E.body.scrollHeight+30;var B=(A.style)?A.style:A;B.height=C+"px"}catch(D){}},activateBookmark:function(D){var B=D.getAttribute("href");var A=(B==null)?-1:B.indexOf("#");if(A>-1){var E=B.substr(A+1,B.length-A);var C=document.getElementById(E);dynamicUI.scrollTo(C)}},scrollTo:function(A){var B=dynamicUI.findPos(A);window.scrollTo(B[0],B[1])},findPos:function(B){var C=0;var A=0;if(B.offsetParent){C=B.offsetLeft;A=B.offsetTop;while(B){B=B.offsetParent;if(B){C+=B.offsetLeft;A+=B.offsetTop}}}return[C,A]},nullHandler:function(B){var A=(!B)?window.event:B;A.cancelBubble=true;if(A.stopPropagation){A.stopPropagation()}},bubbles:{activeBubble:null,hideActiveBubble:function(A){dynamicUI.nullHandler(A);if(dynamicUI.bubbles.activeBubble!=null){dynamicUI.bubbles.activeBubble.style.display="none";dynamicUI.bubbles.activeBubble=null}return true},showBubble:function(E,D,A){dynamicUI.bubbles.hideActiveBubble(E);var B=1;var C=(/Firefox/.test(navigator.userAgent))?1:2;var F=dynamicUI.findPos(D);A.style.position="absolute";if(F[1]>0){A.style.top=(F[1]+B)+"px";A.style.left=(F[0]+C)+"px"}A.style.display="";dynamicUI.bubbles.activeBubble=A;return false}}};window.mathExtention={isGt:function(B,A){return(B>A)},isLt:function(B,A){return(B<A)},isNumeric:function(C){var B="01234567890";for(var A=0;A<C.length;A++){if(B.indexOf(C.charAt(A),0)==-1){return false}else{return true}}}};window.stateManager={createCookie:function(C,D,E){var A;if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));A=";expires="+B.toGMTString()}else{A=""}document.cookie=C+"="+D+A+"; path=/"},readCookie:function(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null},eraseCookie:function(A){stateManager.createCookie(A,"",-1)},getCurrentBookmark:function(){var C=new String(document.location.href);var A=C.split(/#/);var B=(A.length>1)?A[1]:null;return B}};function createAtlasTag(A){document.write('<script language="JavaScript" src="http://switch.atdmt.com/jaction/'+A+'"><\/script>')};
