var CreateProfileOverlay=Class.create({initialize:function(a){this.clientId=a.clientId;this.reloadFlag=false;this.tAndCId=a.tAndCId;this.tAndC=$(this.tAndCId);this.submitCreateUserId=a.submitCreateUserId;this.publicKey=a.publicKey;this.theme=a.theme;this.preferencesLink=a.preferencesLink;this.myResearchLink=a.myResearchLink;this.importToMyResearchLink=a.importToMyResearchLink;if(this.submitCreateUserId){this.submitCreateUser=$(this.submitCreateUserId)}document.observe("lightview:hidden",function(b){if(this.reloadFlag){window.location.reload()}}.bind(this))},showRecaptcha:function(){Recaptcha.create(this.publicKey,"recaptchaDivId",{theme:this.theme,callback:Recaptcha.focus_response_field})},fromCreateOverLayPage:function(){this.reloadFlag=true},continuePage:function(){handleNextPage("myResearchDocs")},handleNextPage:function(c){this.reloadFlag=false;var d=c.substring(c.indexOf(".")+1);var b=$(this.clientId+"Overlay");if(b){Overlay.box.hideOverlay()}if(d=="addTags"){window.location.reload()}else{if(d=="saveSearch"){$("openOnPageLoad").request({onComplete:function(f){window.location.reload()}})}else{if(d=="preferences"){location=this.preferencesLink}else{if(d=="importToMyResearch"){location=this.importToMyResearchLink}else{if(d=="myResearchDocs"){var e=this.myResearchLink.split("?");var a=location.protocol+"//"+location.host;if(e[0].substr(0,1)!="/"){a+="/"}a+=e[0];if(e.length>1){a+="?"+e[1]}location.href=a}else{window.location.reload()}}}}}},getOverlay:function(){return $(this.clientId+"Overlay")}});var createProfileOverlay;Tapestry.Initializer.CreateProfileOverlay=function(a){createProfileOverlay=new CreateProfileOverlay(a)};function showMyResearchLearnMoreOverlay(){Overlay.box.showOverlay("learnMoreOverlay");return false};