E.onAvailable("sectionContent2058617",function(){var d=D.get("sectionContent2058617");if(!d){return false}var c=d.firstChild.firstChild.firstChild.firstChild.firstChild;if(!c){return false}c.setAttribute("class","horizontalNavigationBar");c.setAttribute("id","navigationBottom-sufi");D.get("navigationBottom").appendChild(c)});E.onAvailable("contentWrapper",function(){var e=D.get("contentWrapper");var d=D.get("sidebar1Wrapper");var f=D.get("pageBody");f.insertBefore(e,d)});E.onAvailable("sectionContent2040437",function(){var e=D.get("sectionContent2040437");var d=D.get("navigationTop");var f=D.get("pageHeader");f.insertBefore(e,d)});E.onAvailable("login-form",function(){var b=D.get("sectionContent2128101");if(!b){return false}D.get("content").appendChild(b)});E.onAvailable("bannerWrapper",function(){if(typeof swfobject=="undefined"||!swfobject){return false}var a={XMLPath:"/home-banner/rss.xml"};var c={menu:"false",scale:"noscale",wmode:"transparent"};var b={};return swfobject.embedSWF("/storage/home-banner/Gallery.swf","bannerWrapper","800","330","9.0.0","/storage/swf/expressInstall.swf",a,c,b)});E.onAvailable("contentVideoPlayer",function(){if((!SUFI.Session.isActive())&&(Squarespace.Constants.AUTHENTICATED_USER_LOGIN!=undefined)){var c=D.get("contentVideoPlayerAlt");if(c){c.innerHTML="Player not available for this login"}}else{var a={xmlPath:"/storage/video/members/_assets/xml/preload.xml",skinPath:"/storage/video/members/_assets/swf/SkinUnderAll.swf",sessionid:Squarespace.Constants.EXTERNAL_SESSION_ID,userid:(((SUFI.Session)&&(SUFI.Session.isActive()))?(SUFI.Session.user._x):""),policyFile:"http://sufi.danecook.com/crossdomain.xml",policyFile2:"http://hotspot.danecook.com/crossdomain.xml",rootPath:"/"};var d={menu:"false",scale:"noscale",allowFullScreen:"true"};var b={id:"membervideo",name:"membervideo"};swfobject.embedSWF("/storage/video/members/_assets/swf/MemberVideo.swf","contentVideoPlayer","800","450","9.0.0","/storage/video/members/_assets/swf/expressInstall.swf",a,d,b)}});E.onDOMReady(function(){if(typeof Cufon!="undefined"||Cufon){Cufon.replace("h2",{fontFamily:"cfn-adler"});Cufon.replace("h3",{fontFamily:"cfn-prima-bold"});Cufon.replace("blockquote",{fontFamily:"cfn-prima-bold"});Cufon.replace(".horizontalNavigationBar a",{fontFamily:"cfn-prima-bold",hover:true});Cufon.replace(".link-group-list li li .title a",{fontFamily:"cfn-prima-bold",hover:true});Cufon.replace("#moduleContent4356346 p, #moduleContent4359815 p",{fontFamily:"cfn-prima-bold",hover:true});Cufon.now()}});