var iid,iid2;var toggleMore=function(A){if(document.getElementById){A=document.getElementById(A);if(A.style.display=="block"){hideElem(A)}else{showElem(A)}}};var alignToTop=function(B,A){if(document.getElementById){B=document.getElementById(B);A=document.getElementById(A);pos=findPos(A);if(document.all){B.style.top=pos[1]+33+"px"}else{B.style.top=pos[1]+43+"px"}}};var findPos=function(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]};var showElem=function(A){A.style.display="block";fadeElem(A,20,16)};var hideElem=function(A){fadeElem(A,90,-16,null,null,function(B){B.style.display="none"},A)};var fadeElem=function(D,B,J,E,H,K,F){var A=(document.all)?1:0;var I=(A)?"filter":"opacity";if(iid){clearInterval(iid)}if(E==null){E=5}if(H==null){H=20}var G=B;var C=(A)?"alpha(opacity="+G+")":G/100;D.style[I]=C;iid=setInterval(function(){if(E-->0){G+=J;C=(A)?"alpha(opacity="+G+")":G/100;D.style[I]=C}else{clearInterval(iid);iid=null;if(K){K(F)}}},H)};var ExpertPage=function(){this.list=new Array();this.fElem=document.getElementById("feCont");this.img=document.getElementById("featimg");this.p=document.getElementById("feattext");this.a=document.getElementById("featbutton");this.index=0;this.next=function(){if(++this.index>this.list.length-1){this.index=0}this.fadeTrans()};this.prev=function(){if(--this.index<0){this.index=this.list.length-1}this.fadeTrans()};this.update=function(A){this.img.style.backgroundImage="url("+baseURL+this.list[this.index].imageLocation+")";this.p.innerHTML=this.list[this.index].text;this.a.innerHTML='<a href="'+this.list[this.index].link+'">'+this.list[this.index].button+"</a>"};this.fadeTrans=function(){var A=this;fadeElem(A.fElem,100,-20,5,10,function(){A.update();fadeElem(A.fElem,0,20,5,10)})};this.randExpert=function(){this.index=parseInt(Math.random()*this.list.length);this.update()}};var ExpertData=function(D,C,B,A){this.text=D;this.link=C;this.button=B;this.imageLocation=A};var hoverdiv,iid3;function hoverTextInit(){hoverdiv=document.createElement("div");hoverdiv.id="hovertext";hoverdiv.innerHTML='<div id="top"></div><p></p><div id="bot"></div>';document.body.appendChild(hoverdiv)}function setLableStatic(A,B){var C=hoverdiv.getElementsByTagName("p")[0];C.innerHTML=B;if(document.all){xoff=document.documentElement.scrollLeft;yoff=document.documentElement.scrollTop;if(400+A.clientX>document.documentElement.offsetWidth){xoff-=350}}else{xoff=window.pageXOffset;yoff=window.pageYOffset;if(400+A.clientX>document.width){xoff-=350}}xpos=A.clientX+xoff+5;ypos=A.clientY+yoff+15;hoverdiv.style.left=xpos+"px";hoverdiv.style.top=ypos+"px";showTooltip()}function fadeTooltip(G,F){var E=(document.all)?1:0;var B=(E)?"filter":"opacity";if(iid3){clearInterval(iid3)}var D=5;var C=G;var A=(E)?"alpha(opacity="+C+")":C/100;hoverdiv.style[B]=A;iid3=setInterval(function(){if(D-->0){C+=F;A=(E)?"alpha(opacity="+C+")":C/100;hoverdiv.style[B]=A}else{if(F<0){hoverdiv.style.display="none"}clearInterval(iid3);iid3=null}},20)}function showTooltip(){hoverdiv.style.display="block";fadeTooltip(15,16)}function hide(){fadeTooltip(95,-16)}var calcTipHighlight=function(C){var A=document.getElementById("quickstats");var B=A.getElementsByTagName("ul")[0].getElementsByTagName("li");B[C].className+=" current"};var calcTipHighlightRemove=function(C){var A=document.getElementById("quickstats");var B=A.getElementsByTagName("ul")[0].getElementsByTagName("li");B[C].className=B[C].className.substring(0,B[C].className.indexOf(" current"))};function openWin(C){var D=screen.availHeight-50;var A="width=798,height="+D+"toolbar=no,location=no,menubar=no,status=no,scrollbars=yes";var B=window.open(C,"_blank",A);B.moveTo(150,0)}sfFocus=function(){dosfFocus("input");dosfFocus("textarea")};dosfFocus=function(B){var C=document.getElementsByTagName(B);for(var A=0;A<C.length;A++){C[A].onfocus=function(){this.className+=" sffocus"};C[A].onblur=function(){this.className=this.className.replace(new RegExp(" sffocus\\b"),"")}}};if(window.attachEvent){window.attachEvent("onload",sfFocus)}var tellAFriend=function(){if(!document.getElementById("tafiframe")){var B=document.createElement("iframe");B.id="tafiframe";B.src=baseURL+"/tellafriend.aspx";var A;if(document.all){A=document.documentElement.offsetWidth}else{A=document.width}B.style.left=((A-504)/2)+"px";document.body.appendChild(B)}};
