function getQueryVariable(A){var C=window.location.search.substring(1);var D=C.split("&");for(var B=0;B<D.length;B++){var E=D[B].split("=");if(E[0]==A){return E[1]}}}window.addEvent("domready",function(){var I=getQueryVariable("sz");if(!(I==undefined||I=="")){var J={"x-small":0,small:1,medium:2,large:3};if(J[I]!=undefined){tsInit("body",J[I])}}var C=window.location.pathname;var K=unescape(C.substring(C.lastIndexOf("/")+1));var G=K.substring(0,K.lastIndexOf("."));var D=new Accordion("h3.atStart","div.atStart",{opacity:false,display:-1,onActive:function(M,L){L.setStyles({height:"",padding:"5px 0 5px 0"})},onBackground:function(M,L){L.setStyles({padding:"0 0 0 0"})}},$("accordion"));var F=$$("#accordion a.out");F.each(function(L){var M=new Fx.Styles(L,{duration:300,wait:false});if(L.id==G){L.className="selected"}else{L.addEvent("mouseenter",function(){M.start({"margin-left":"5"})});L.addEvent("mouseleave",function(){M.start({"margin-left":"0"})})}});var E={"about-us":1,"for-caregivers":2,services:3,"tour-the-center":4,"ask-the-expert":5,philanthropy:6,volunteer:7,"community-calender":8,"contact-us":9};var H=C.substring(0,C.lastIndexOf("/"));var B=unescape(H.substring(H.lastIndexOf("/")+1));if(K!=""){if(K=="default.aspx"){}else{var A=K.substring(0,K.lastIndexOf("."));if($(A)){if($(A).parentNode.tagName=="DIV"){if(E[B]!=undefined){D.display(E[B])}}}}}else{if(B!=""){if(E[B]!=undefined){D.display(E[B])}}}});function calScroll(A){new Fx.Scroll(window,{wait:false,duration:2000,offset:{x:0,y:0}}).toElement("event"+A.id.substring(3))}function scrollTopWin(){new Fx.Scroll(window,{wait:false,duration:2000,offset:{x:0,y:0}}).toElement("top")};
