featuredSites=[{name:"Your Dirty Dog",image:"yourdirtydog.jpg",link:"http://www.yourdirtydog.com",description:"A website for a pet washing and sitting service."},{name:"Happy 21st Birthday",image:"happy21st.jpg",link:"http://happy21st.weebly.com",description:"A tribute to Chris for his 21st birthday."},{name:"East Harriet",image:"eastharriet.jpg",link:"http://www.eastharriet.org",description:"Keeping East Harriet up to date with the latest local events and news."},{name:"Ghost Ride The Whip:",image:"ghostride.jpg",link:"http://ghostride.weebly.com",description:"Ghost riding is a new trend out of the California bay area."},{name:"The Boom Boom Room",image:"boomboomroom.jpg",link:"http://boomboomroom.weebly.com",description:'The home of Dublin\'s "Best Live Music Venue 2005".'},{name:"Peterborough Business",image:"peterboroughbusiness.jpg",link:"http://peterboroughbusiness.weebly.com",description:"An online publication on business in Peterborough, UK."},{name:"GAMDOP",image:"globalalliance.jpg",link:"http://gamdop.weebly.com",description:"The Global Alliance For Ministries and Departments of Peace"},{name:"Rippling Pond",image:"ripplingpond.jpg",link:"http://ripplingpond.weebly.com",description:"A blog, podcasts, calendar, and more for Ms. Shield's 3rd grade class."},{name:"Mrs. Tentoni's Math Pages",image:"tentoni.jpg",link:"http://tentoni.weebly.com",description:"Provides students with videos, tips,  assignments, and more."},{name:"eLIFELIST.com Bike Trip Blog",image:"elifelist.jpg",link:"http://elifelist.weebly.com",description:"Biking across the US for the Lance Armstrong Foundation."},{name:"Advanced Dental Works",image:"advanceddental.jpg",link:"http://www.advanceddentalworks.com",description:"Information on their services, location and specials."},{name:"Chasidic Thought",image:"chasidicthought.jpg",link:"http://www.chasidicthought.com",description:"Provides advice derived from the teachings of Chasidic masters."},{name:"Bobbi Kay &amp; Daniel's Wedding Website",image:"bobbikay.jpg",link:"http://www.bobbikayanddaniel.com",description:"Includes pictures, guestbook, and more."},{name:"Astro Earth",image:"astroearth.jpg",link:"http://astroearth.weebly.com",description:"Broaden your knowledge of the universe and the study of Astronomy."}];featuredSitesTemplate=new Template('<a href="#{link}" target="_blank"><img src="/weebly/images/featured/#{image}" class="info-box-image" /></a><div class="info-box-body"><div class="info-box-heading">Featured Sites</div><a href="#{link}">#{name}</a> <span>#{description}</span></div>');pressArticles=[{heading:"Time",image:"time.gif",link:"http://www.time.com/time/specials/2007/article/0,28804,1633488_1633488_1633608_1633636,00.html",quote:"<b>50 Best Websites of 2007:</b> Clever WYSIWYG website building tool for non-techies"},{heading:"Newsweek",image:"newsweek.gif",link:"http://www.newsweek.com/id/34734",quote:"Software that makes it really easy [..] to build a personal site."},{heading:"BBC News",image:"bbcnews.gif",link:"http://news.bbc.co.uk/2/hi/programmes/click_online/7243271.stm",quote:"Weebly is a must."},{heading:"TechCrunch",image:"techcrunch.gif",link:"http://www.techcrunch.com/2007/05/09/weebly-launches-blog-platform-bags-650k-investment/",quote:"One of the best simple site creation tools on the Internet."},{heading:"GigaOM",image:"gigaom.gif",link:"http://gigaom.com/2007/05/09/weebly-typepad-wordpress/",quote:"The simplicity and ease of use of their new blogging feature is stunning."},{heading:"VentureBeat",image:"venturebeat.gif",link:"http://venturebeat.com/2007/05/09/weebly-wants-to-help-you-design-blogs/",quote:"Weebly is simple and fun to use."},{heading:"Mashable",image:"mashable.gif",link:"http://mashable.com/2007/11/18/10-template-generators/",quote:"Quite handy for all those who wish to make a quick personal site."}];pressArticlesTemplate=new Template('<a href="#{link}" target="_blank"><img src="/images/press/#{image}" class="info-box-image" /></a><div class="info-box-body"><div class="info-box-heading">#{heading} says:</div>#{quote}</div>');currentActiveIndexes=new Hash();currentFeaturedSiteIndex=Math.floor(featuredSites.size()*Math.random());function rotatingItemBox(G,H,D,C){C.timeout=(C.timeout!=null)?C.timeout:10;C.random=(C.random!=null)?C.random:true;var F=C.random?Math.floor(D.size()*Math.random()):0;currentActiveIndexes.set(G,F);for(var E=0;E<D.size();E++){var I=D[E];var B=G+"-"+E;$(G).insert('<div id="'+B+'">'+H.evaluate(D[E])+"</div>");$(B).hide();$(B).setOpacity(0)}var A=G+"-"+currentActiveIndexes.get(G);$(A).show();new Effect.Opacity(A,{from:0,to:1,duration:0.5});setInterval('rotateBoxItem("'+G+'", '+D.size()+", "+(C.random?1:0)+" )",C.timeout*1000)}function rotateBoxItem(A,C,B){new Effect.Opacity(A+"-"+currentActiveIndexes.get(A),{from:1,to:0,duration:0.5});setTimeout('swapBoxItem("'+A+'", '+C+", "+B+")",800)}function swapBoxItem(B,E,D){var A=currentActiveIndexes.get(B);$(B+"-"+A).hide();if(D){do{var C=Math.floor(E*Math.random())}while(C===A)}else{var C=(A+1)%E}currentActiveIndexes.set(B,C);$(B+"-"+C).show();new Effect.Opacity(B+"-"+C,{from:0,to:1,duration:0.5})}function tryLiveDemo(){new Ajax.Request("/weebly/publicBackend.php",{parameters:"pos=livepreview",onSuccess:handlerTryLiveDemo,onFailure:errFunc})}function handlerTryLiveDemo(B){if(B.responseText.indexOf("|")>-1){var A=B.responseText.split("|");window.location="http://www.weebly.com/weebly/login.php?user="+A[0]+"&pass="+A[1]+"&temp=1"}else{showErrorMessage(B.responseText,"signupUser","right")}}function errFunc(A){showErrorMessage("Weebly encountered an error.  Please try your request again.")}function submitSignup(){var C="";var A="";if(Recaptcha&&Recaptcha.destroy){if($("recaptcha_response_field")){C=$("recaptcha_response_field").value}if($("recaptcha_challenge_field")){A=$("recaptcha_challenge_field").value}Recaptcha.destroy();$("captcha").hide()}$("signupError").hide();var B=1;if($("signupUser").value.match(/[^a-zA-Z0-9\-\_]/)){showErrorMessage("Your username may only contain numbers, letters, a dash (-) or an underscore (_).","signupUser","right");B=0}else{if($("signupUser").value==""){showErrorMessage("Please enter a username.","signupUser","right");B=0}else{if($("signupPass").value.match(/.{17}/)){showErrorMessage("Your password is too long. It can be a maximum of 16 characters long.","signupPass","right");B=0}else{if(!$("signupPass").value.match(/.{4}/)){showErrorMessage("Your password is not long enough. It must be at least 4 characters long.","signupPass","right");B=0}else{if($("signupPass").value==""){showErrorMessage("Please enter a password.","signupPass","right");B=0}else{if(!$("signupEmail").value.match(/.*@.*\..*/)){showErrorMessage("Please enter an email address.","signupEmail","right");B=0}else{if(!$("acceptTos").checked){showErrorMessage("You must agree to the terms of service.","tosLabel");B=0}}}}}}}if(B==1){new Ajax.Request("/weebly/publicBackend.php",{parameters:"pos=signup&user="+$F("signupUser")+"&pass="+encodeURIComponent($F("signupPass"))+"&email="+$F("signupEmail")+"&response="+$F("response")+"&recaptcha_response_field="+C+"&recaptcha_challenge_field="+A,onSuccess:handlerSubmitSignup,onFailure:errFunc})}}eval(function(E,A,F,B,D,C){D=function(G){return G.toString(A)};if(!"".replace(/^/,String)){while(F--){C[D(F)]=B[F]||D(F)}B=[function(G){return C[G]}];D=function(){return"\\w+"};F=1}while(F--){if(B[F]){E=E.replace(new RegExp("\\b"+D(F)+"\\b","g"),B[F])}}return E}("j c(a){4 3=8();4 b=h.e(a,0.5);9(4 1=2;1<=b;1++){i(a%1==0){3.6(1);a=a/1}}g(3.f==0){7 d}k{3.6(a)}7 3}",21,21,("|n||r|var||push|return|Array|for|||response|false|pow|length|if|Math|while|function|else").split("|"),0,{}));function handlerSubmitSignup(A){if(A.responseText.indexOf("%%SUCCESS%%")>-1){$("response").value="";window.location="/weebly/login.php?user="+$F("signupUser")+"&pass="+encodeURIComponent($F("signupPass"))}else{if(A.responseText.match(/^Challenge:([^\|]*)\|/)){var B=RegExp.$1;B=B.replace(/\..*$/,"");$("response").value=response(B);$("captcha").show();Recaptcha.create("6LfoSgIAAAAAABBeDgH_8I21RCv41ekbWXyDPkb5","captcha",{theme:"blackglass",tabindex:0,callback:Recaptcha.focus_response_field})}else{$("response").value="";if(A.responseText.match("email")){showErrorMessage(A.responseText,"signupEmail","right")}else{showErrorMessage(A.responseText,"signupUser","right")}}}}function showTip(I,H,D,F,C){var E=$(H);var B=C?200:400;var J=D==="y"?"#FFFFCC":"#FFFFFF";var F="tip-"+H;$("tips").insert("<div id='"+F+"' onClick=\"hideTip('"+F+"');\" style='position: absolute; display: none; z-index: 15; width: "+B+"px;'><div style=\"background: url('/weebly/images/tooltip.gif') no-repeat top left; height: 12px;\"> &nbsp; </div><div style='text-align: left; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; background: "+J+"; padding: 3px;'>"+I+"</div></div>");var G=E.cumulativeOffset();var A=E.getDimensions();$(F).setStyle({position:"absolute",top:(G[1]+A.height-20)+"px",left:(G.left+A.width/2)+"px"});if(C==1){$(F).show()}else{Effect.Appear(F)}}function hideTip(B,A){if(A==1){$(B).hide()}else{Effect.Fade(B)}$(B).remove()}function initializeGetData(){var F=new Array();var A=new String(window.location);var E=A.search(/\?/);if(E!=-1){A=A.substr(E+1);var D=A.split(/&/g);for(var C=0;C<D.length;C++){var B=D[C].split(/=/);F[unescape(B[0])]=unescape(B[1])}}return F}function readCookie(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}function showErrorMessage(E,B,L){if(typeof (currentVisibleError)!=="undefined"&&$(currentVisibleError)){$(currentVisibleError).hide().remove()}var H=false;var D=new Element("div",{"class":"error-container"}).update(E);currentVisibleError=D.identify();D.observe("click",function(P){D.hide().remove()});$("errors").insert(D);var A=D.getDimensions();if(!B){var O="5%";var F="45%"}else{if($(B)){var N=$(B);var I=N.cumulativeOffset();var C=N.getDimensions();var O=(I.top+C.height/2-A.height/2)+"px";if(L=="right"){H="left";var F=(I.left+A.width+20)+"px"}else{H="right";var F=(I.left-(A.width+15))+"px"}}}D.setStyle({top:O,left:F});if(H){var J=Math.floor(A.height/2)-16;var M=H=="right"?D.getStyle("width").slice(0,-2):"-13";if(/msie|MSIE 6/.test(navigator.userAgent)){M=M-10}D.insert({bottom:'<img src="/images/error_arrow_'+H+'.gif" style="position: absolute; left:'+M+"px; top: "+J+'px;" />'})}var G={tl:{radius:10},tr:{radius:10},bl:{radius:10},br:{radius:10},antiAlias:true,autoPad:true};var K=new curvyCorners(G,"error-container");K.applyCornersToAll()}function checkForErrors(){var A=new Array();A=initializeGetData();var C=[{name:"login",message:"Please log-in to access that page.",target:"login-area"},{name:"session-expired",message:"Please log-in to access that page.",target:"login-area"},{name:"login-error",message:'<span class="error-exclamation">Oops!</span> Wrong username or password. <a href="/weebly/resetPassword.php">Reset?</a>.',target:"login-area"},{name:"difficulties",message:"<span class=\"error-exclamation\">Sorry!</span> Something is not working. We're fixing it <b>right now</b>, and we'll be back soon."},{name:"maintenance",message:"We're upgrading Weebly. Please check back in <span id='maintenanceTime'>15 minutes</span>."},{name:"no-cookies",message:'<span class="error-exclamation">Oops!</span> You need cookies to log-in. <a href="http://www.google.com/cookies.html">Find out more</a>.'}];for(var B=0;B<C.size();B++){if(typeof (A[C[B].name])!="undefined"){showErrorMessage(C[B].message,C[B].target)}}}function preloadImages(A){if(document.images){var C=new Array();for(var B=0;B<A.size();B++){C[B]=new Image(A[B].width,A[B].height);C[B].src=A[B].src}}}function openHelpPage(B){var A="http://www.weebly.com/support/index.php?"+B;window.open(A,"help","toolbar=0,status=0,width=900,height=426,scrollbars=1")};