var ThemePreviewController;(function(){var b={initialize:function(){this.previewTheme=null;this.hasOtherAlbums=false;this.cancelUrl=null;this.skipUrl=null;this.otherAlbumsFormId="otherAlbums";this.editAction="&action=themeadd&tab=2";this.saveAction="&action=themechoose";this.saveMessage=null;this.saveHandler=this.onSaveResponse.bindAsEventListener(this);this.saveOthersHandler=this.onSaveOthersResponse.bindAsEventListener(this);Event.observe(document,ThemePreviewController.EVENT.REMOVE,this.remove.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.SAVE,this.save.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.EDIT,this.edit.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.SKIP,this.skip.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.SAVE_OTHERS,this.saveOthers.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.SELECT_ALL,this.selectAll.bindAsEventListener(this));Event.observe(document,ThemePreviewController.EVENT.DESELECT_ALL,this.deselectAll.bindAsEventListener(this))},setTheme:function(f,e,d){this.previewTheme=f;this.saveAction=(this.previewTheme.themeId)?"&action=themechoose":"&action=themesavecustom";if(e==""){this.cancelUrl=null}else{if(e==-1){this.cancelUrl=this.serializeTheme()+this.editAction}else{if(e!=null){this.cancelUrl=e}else{this.cancelUrl=this.serializeTheme()+this.editAction}}}if(d){this.skipUrl=d}},remove:function(d){if(this.cancelUrl){document.location=this.cancelUrl}else{document.location.href=document.location.pathname}},save:function(d){document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE);var e=this.serializeTheme()+this.saveAction;new Ajax.Request(e,{method:"get",evalJSON:"force",onSuccess:this.saveHandler})},onSaveResponse:function(e){var d=this.getMessage(e);this.saveMessage=this.getSaveMessage(e);if(this.hasOtherAlbums){var h=e.responseJSON.response;var f=h.themeId;if(f&&!this.previewTheme.themeId){this.previewTheme.themeId=f}var g=$("newThemeIcon");if(g&&h.themeIcon){g.innerHTML=h.themeIcon}document.fire(PBLightbox.EVENT.DEACTIVATE);document.fire(PBLightbox.EVENT.ACTIVATE,{transparent:true,top:100,initialHeight:390,showCloseX:false,content:"themeOtherAlbums"});document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:d})}else{document.fire(PBLightbox.EVENT.DEACTIVATE);if(this.saveMessage){document.fire(PBMessage.EVENT.NOTIFY,{message:this.saveMessage})}else{document.fire(PBMessage.EVENT.NOTIFY,{message:d})}}document.fire(PBLightbox.PBProgress.EVENT.DEACTIVATE)},edit:function(d){document.location=this.serializeTheme()+this.editAction},skip:function(d){if(this.skipUrl){document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE);document.location=this.skipUrl}if(this.saveMessage){document.fire(PBLightbox.EVENT.DEACTIVATE);document.fire(PBMessage.EVENT.NOTIFY,{message:this.saveMessage});this.saveMessage=null}},saveOthers:function(d){this.saveAction=(this.previewTheme.themeId)?"&action=themechoose":"&action=themesavecustom";var e=this.serializeTheme()+this.saveAction;var h=$(this.otherAlbumsFormId);var j=false;for(var f=0;f<h.elements.length;f++){var g=h.elements[f];if(g.checked){e+="&albumLoc[]="+h.elements[f].value;j=true}}if(j){document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE);new Ajax.Request(e,{method:"get",evalJSON:"force",onSuccess:this.saveOthersHandler})}else{this.skip(d)}},onSaveOthersResponse:function(d){if(this.skipUrl){this.skip()}else{document.fire(PBLightbox.PBProgress.EVENT.DEACTIVATE);document.fire(PBLightbox.EVENT.DEACTIVATE);this.saveMessage=this.getSaveMessage(d);if(this.saveMessage){document.fire(PBMessage.EVENT.NOTIFY,{message:this.saveMessage})}else{document.fire(PBMessage.EVENT.NOTIFY,{message:this.getMessage(d)})}}},selectAll:function(d){var f=$(this.otherAlbumsFormId);for(var e=0;e<f.elements.length;e++){f.elements[e].checked=true}},deselectAll:function(d){var f=$(this.otherAlbumsFormId);for(var e=0;e<f.elements.length;e++){f.elements[e].checked=false}},getMessage:function(e){var d;var f=e.responseJSON;if(f&&f.response.stat=="ok"){d=new PBMessage({title:"Theme Saved",details:"",type:PBMessage.MESSAGE_TYPE.SUCCESS})}else{d=new PBMessage({title:"Failed to save theme.",details:"",type:PBMessage.MESSAGE_TYPE.ERROR})}return d},getSaveMessage:function(e){var d=null;var f=e.responseJSON;if(f&&f.response.stat=="ok"&&f.response.message){d=new PBMessage(f.response.message)}return d},serializeTheme:function(){var d="?";if(this.previewTheme.themeId){d+="previewTheme="+this.previewTheme.themeId}else{if(this.previewTheme.palette&&this.previewTheme.palette.id){d+="customTheme[palette_id]="+this.previewTheme.palette.id}if(this.previewTheme.border&&this.previewTheme.border.id){d+="&customTheme[border_id]="+this.previewTheme.border.id}if(this.previewTheme.background){if(this.previewTheme.background.id){d+="&customTheme[background_id]="+this.previewTheme.background.id}if(this.previewTheme.background.url){d+="&customTheme[background_url]="+this.previewTheme.background.url}if(this.previewTheme.background.thumb){d+="&customTheme[background_thumb]="+this.previewTheme.background.thumb}if(this.previewTheme.background["class"]){d+="&customTheme[background_position]="+this.previewTheme.background["class"]}}}return d}};var c={EVENT:{REMOVE:"ThemePreviewController:remove",SAVE:"ThemePreviewController:save",EDIT:"ThemePreviewController:edit",SKIP:"ThemePreviewController:skip",SAVE_OTHERS:"ThemePreviewController:save_others",SELECT_ALL:"ThemePreviewController:select_all",DESELECT_ALL:"ThemePreviewController:deselect_all"}};Controller.create("ThemePreviewController",b,c)})();var VanityUrl=Class.create();VanityUrl.prototype={vanity:null,vanityForm:null,vanity_prompt:"your name here",vanityBubble:null,validVanity:null,initialize:function(){this.submitEvtObj=this.submit.bindAsEventListener(this);this.vanityForm=$("editVanityUrlForm");if(this.vanityForm){Event.observe(this.vanityForm,"submit",this.submitEvtObj,false)}this.vanity=$("vanity");if(this.vanityForm&&this.vanity){Event.observe(this.vanity,"focus",this.unsetPrompt.bindAsEventListener(this),false);Event.observe(this.vanity,"focus",this.clearInput.bindAsEventListener(this),false);if($("definedVanity")&&$("definedVanity").value.length>0){this.vanity.value=$("definedVanity").value;$("modify_warning").show()}else{if(this.vanity.value==this.vanity_prompt){this.vanity.addClassName("prompt")}}this.vanityBubble=new Bubble({posOffset:"true",elemId:"vanityHelp",targetId:"vanity",eventOn:"pb:vanitynameunavailable",callbackOn:this.populateVanitySuggestions.bindAsEventListener(this),offsetX:430,offsetY:-12})}Event.observe(document,PBLightbox.EVENT.DEACTIVATE,this.deactivate.bindAsEventListener(this))},deactivate:function(){Event.stopObserving(this.vanityForm,"submit",this.submitEvtObj)},submit:function(b){$("saveButtonPanel").hide();$("panelProcessing").show();$("vanity").writeAttribute("readonly",true);if(this.validateVanity()){if(!this.validVanity){$("panelProcessing").hide();$("saveButtonPanel").show();$("vanity").writeAttribute("readonly",false);Event.stop(b)}}else{document.fire(PBLightbox.EVENT.DEACTIVATE)}},validateVanity:function(){var b=this.vanity;if(!(b.value.length==0)){if($("definedVanity")&&$("definedVanity").value.length){if(b.value==$("definedVanity").value){return false}}if(b.value.search(/[^\w-]+/)>=0){document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({title:"Invalid Custom URL",details:"Custom URLs can only contain a-z, A-Z, 0-9, dashes, and underscores.",type:PBMessage.MESSAGE_TYPE.ERROR})});b.activate()}else{document.fire(PBLightbox.PBMessage.EVENT.CLOSE);new APIRequest("isvanitynameavailable",true,{vanityname:b.value},function(c){if(c.available==0){b.fire("pb:vanitynameunavailable",{suggestions:c.suggestions})}else{this.validVanity=true;this.vanityBubble.hide()}}.bind(this),null,null,null,false)}}else{this.validVanity=true}return true},populateVanitySuggestions:function(g){var f=$("vanitynameSuggestions");var b=f.childElements();for(var c=0;c<b.length;c++){b[c].remove()}var e=g.memo.suggestions;for(var d=0;d<e.length;d++){li=document.createElement("li");a=document.createElement("a");a.href="javascript:void(0);";a.id=e[d]["suggestion"];a.appendChild(document.createTextNode(e[d]["suggestion"]));li.appendChild(a);f.appendChild(li);Event.observe(a,"click",this.handleSuggestionClick.bindAsEventListener(this),false)}return true},handleSuggestionClick:function(b){this.vanity.value=b.target.id;this.vanityBubble.hide()},clearInput:function(c){var b=c.target;if(b.value==this.vanity_prompt){b.value=""}},unsetPrompt:function(b){b.target.removeClassName("prompt")}};var ImageUtils={initialize:function(){Event.observe(document,ImageUtils.MESSAGE.SCALE,this.scaleImage.bindAsEventListener(this))},scaleImage:function(d){var k=d.memo.maxheight;var b=d.memo.maxwidth;var j=d.memo.image;var g=j.style;g.width="auto";g.height="auto";var c=(j.offsetWidth!=0)?j.offsetWidth:j.width;var f=(j.offsetHeight!=0)?j.offsetHeight:j.height;try{if(c>f){if(c>b){g.width=b+"px"}}else{if(f>k){g.height=k+"px"}}}catch(i){g.width=b+"px";g.height=k+"px"}}};ImageUtils=Class.create(ImageUtils);ImageUtils=Object.extend(ImageUtils,{MESSAGE:{SCALE:"ImageUtils:SCALE"}});new ImageUtils();var PublishThemeController=Class.create();PublishThemeController.prototype={form:null,formId:"formPublishTheme",nameId:"publishThemeName",categoriesName:"theme_category_ids[]",categories:null,maxCat:3,numCat:null,initialize:function(){this.form=$(this.formId);this.categories=this.form.select("UL#listCategories LI INPUT[type=checkbox]");Event.observe(this.form,"submit",this.handleSubmit.bindAsEventListener(this),false);this.categories.each(function(b){Event.observe(b,"click",this.handleSelect.bindAsEventListener(this))}.bind(this));this.numCat=this.numSelected()},numSelected:function(){return this.categories.findAll(function(b){return b.checked}).size()},handleSelect:function(b){if(b.target.checked){if(this.numCat<this.maxCat){this.numCat++;if(this.numCat==this.maxCat){this.toggleUnselected(b.target)}}}else{this.numCat--;if(this.numCat==this.maxCat-1){this.toggleUnselected(b.target)}}},toggleUnselected:function(b){this.categories.each(function(c){if(!c.checked&&c!=b){c.disabled=!c.disabled}}.bind(this))},handleSubmit:function(d){var c=$(this.nameId);if(c&&c.value){var b={method:"post",asynchronous:true,evalJSON:"force",parameters:this.form.serialize(true),onSuccess:this.handleSuccess.bindAsEventListener(this),onFailure:function(e){document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({title:"An unknown error occurred.",type:PBMessage.MESSAGE_TYPE.ERROR})})}};new Ajax.Request("?action=submitsharedtheme",b)}else{document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({type:PBMessage.MESSAGE_TYPE.ERROR,title:"Error: No Theme Name.",details:"A theme name is required. Please enter a name for your theme."})})}Event.stop(d)},handleSuccess:function(c){try{var d=c.responseJSON.response;if(d&&d.stat&&d.stat=="ok"){document.fire(PBLightbox.EVENT.DEACTIVATE);document.fire(PBMessage.EVENT.NOTIFY,{message:new PBMessage({title:d.message.title,details:d.message.details,type:PBMessage.MESSAGE_TYPE.SUCCESS})})}else{if(d.stat&&d.stat=="fail"){document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({title:d.message.title,details:d.message.details,type:PBMessage.MESSAGE_TYPE.ERROR})})}}}catch(b){document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({title:"An unknown error occurred.",type:PBMessage.MESSAGE_TYPE.ERROR})})}}};var DownloadalbumController;(function(){var b={checkpe:null,downloadid:null,checkperiod:4,hasrecaptchajs:false,lightbox:null,initialize:function(){if($("downloadalbum")){Event.observe($("downloadalbum"),"click",this.handleDownloadAlbumClick.bindAsEventListener(this))}if($("sharedownloadalbum")){Event.observe($("sharedownloadalbum"),"click",this.handleDownloadAlbumClick.bindAsEventListener(this))}this.lightbox=PBLightbox.getInstance()},handleDownloadAlbumClick:function(d){this.startLightbox();return false},startLightbox:function(){document.fire(PBLightbox.EVENT.ACTIVATE,{content:"downloadAlbumPanel"});$("downloadalbumContent").hide();$("downloadprogressbuffer").show();document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE,{message:"Preparing your download, please wait..."});new Ajax.Request("?action=downloadalbumstart&rand="+Math.random(),{method:"GET",evalJSON:"force",onSuccess:this.handleStartDataResponse.bindAsEventListener(this)})},handleStartDataResponse:function(f){if(f.responseJSON&&f.responseJSON.response.stat=="ok"){var d=this;var h=f;var i=function(){if(typeof(Recaptcha)=="undefined"){window.setTimeout(i,1000);return}d.hasrecaptchajs=true;Event.observe("startDownloadForm","submit",d.handleStartSubmit.bindAsEventListener(d));$("downloadprogressbuffer").hide();$("downloadalbumContent").show();document.fire(PBLightbox.PBProgress.EVENT.DEACTIVATE);Element.update("pb_download_recaptcha_placeholder",h.responseJSON.response.recaptchaHTML)};if(this.hasrecaptchajs){i()}else{var g=document.createElement("script");g.src="http://api.recaptcha.net/js/recaptcha_ajax.js";g.type="text/javascript";document.getElementsByTagName("body")[0].appendChild(g);i()}}else{this.fireCloseError("There was a problem starting your download",h.responseJSON.response.message)}},handleStartSubmit:function(d){d.stop();document.fire(PBLightbox.PBMessage.EVENT.CLOSE);$("downloadalbumContent").hide();$("downloadprogressbuffer").show();document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE,{message:"Preparing your download, please wait..."});$("downloadwaitmsg").show();$("startDownloadForm").request({onComplete:this.handleStartResponse.bind(this),onException:this.handleResponseException.bind(this)});return false},handleStartResponse:function(e){var d=e.responseJSON.response;if(d&&d.stat&&d.stat=="ok"){Event.observe(document,PBLightbox.EVENT.DEACTIVATED,this.cleanup.bindAsEventListener(this));if(this.checkpe!="stop"){this.checkpe=new PeriodicalExecuter(this.statusCheckPeriodic(d).bind(this),this.checkperiod)}this.downloadid=d.id}else{if(d&&d.next&&d.next=="start"){this.fireLightboxError("There was a problem starting your downoad",d)}else{this.fireCloseError("There was a problem starting your download",d)}}},handleResponseException:function(d){this.fireCloseError("There was a problem starting your download",{message:""}).bind(this)},statusCheckPeriodic:function(d){return function(e){var f=new Ajax.Request("",{parameters:{action:"downloadstatuscheck",download_id:d.id,rand:Math.random()},method:"get",onComplete:this.handleStatusCheckResponse.bind(this),onException:this.handleResponseException.bind(this)})}},handleStatusCheckResponse:function(e){var d=e.responseJSON.response;if(d&&d.stat&&d.stat=="ok"){if(d.state_id=="4"){this.cleanup();this.finish(d)}else{}}else{this.fireCloseError("There was a problem starting your download",d)}},cleanup:function(){if(this.checkpe instanceof PeriodicalExecuter){this.checkpe.stop();this.checkpe="stop"}},finish:function(d){if(d&&d.tolink){window.location=d.tolink}else{document.fire(PBMessage.EVENT.NOTIFY,{message:new PBMessage({type:PBMessage.MESSAGE_TYPE.SUCCESS,title:"Download finished",details:"Check your email for the link"})});this.cleanup();document.fire(PBLightbox.EVENT.DEACTIVATE)}},fireCloseError:function(e,d){if(typeof(RecaptchaState)!="undefined"){Recaptcha.reload()}document.fire(PBMessage.EVENT.NOTIFY,{message:new PBMessage({type:PBMessage.MESSAGE_TYPE.ERROR,title:e,details:d.message})});this.cleanup();document.fire(PBLightbox.EVENT.DEACTIVATE)},fireLightboxError:function(e,d){$("downloadwaitmsg").hide();document.fire(PBLightbox.PBProgress.EVENT.DEACTIVATE);$("downloadprogressbuffer").hide();$("downloadalbumContent").show();if(typeof(RecaptchaState)!="undefined"){Recaptcha.reload()}document.fire(PBLightbox.PBMessage.EVENT.NOTIFY,{message:new PBMessage({type:PBMessage.MESSAGE_TYPE.ERROR,title:"There was a problem starting your download",details:d.message})});this.cleanup()},handlePageStillLoading:function(d){document.fire(PBLightbox.EVENT.ACTIVATE,{content:"downloadalbumContent"});document.fire(PBLightbox.PBMessage.EVENT.CLOSE);$("downloadalbumContent").hide();$("downloadprogressbuffer").show();document.fire(PBLightbox.PBProgress.EVENT.ACTIVATE,{message:"Preparing your download, please wait..."});$("downloadwaitmsg").show();this.handleStartResponse(d)},handlePageDownloadClick:function(d){window.setTimeout(function(){window.location="?"},100);return true},handlePageCancelClick:function(d){}};var c={};Controller.create("DownloadalbumController",b,c)})();var BlockUserController=Class.create();BlockUserController.prototype={isGroup:false,ownerId:null,allUsersBlocked:false,staticBlockLink:null,albumURL:null,unBlockUL:null,unBlockSingleLI:null,blockUL:null,blockSingleLI:null,blockText:null,listPanelOn:false,listPanelDivId:null,listPanelId:null,blockedHeaderTextId:"blockedHeaderText",blockedLinkTextId:"staticBlockLink",noSubscriberTextId:"containerUserSubscribers",fromEditSubscription:false,listPanelHeightMargin:"30",somethingChangedOnGroupOptionForm:false,initialize:function(b){for(var c in b){this[c]=b[c]}if(this.isGroup){this.blockText=" my albums"}else{this.blockText=" this group album"}this.staticBlockLink=$("staticBlockLink")},handleSingleUnblock:function(d,c,b,f,e){if(confirm("Are you sure you want to unblock this user?")){if(d){this.unBlockSingleLI=d;this.unBlockUL=$(this.unBlockSingleLI).up("ul")}this.sendUnblockSingleRequest(c,b,f,e)}},sendUnblockSingleRequest:function(c,b,f,e){var d={action:"singleunblock",blockingId:c,blockedId:b,userType:f,albumType:e};jq.ajax({url:this.albumURL,data:d,dataType:"json",success:jq.proxy(this.handleSendUnblockSingleRequestSuccess,this),error:jq.proxy(this.handleSendUnblockSingleRequestFailure,this)})},handleSendUnblockSingleRequestSuccess:function(c){var b=c.response;if(b.stat==="ok"&&b.msg==="user unblocked"){document.location.reload(true)}else{this.showBlockErrorMessage()}},handleSendUnblockSingleRequestFailure:function(b){this.showBlockErrorMessage()},handleSingleBlock:function(){if(confirm("Yes, I'm sure I want to block this user from following "+(this.isGroup?"this group album":"me")+".")){if(arguments.length>1){this.blockSingleLI=arguments[0];this.blockUL=$(this.blockSingleLI).up("ul");this.sendBlockSingleRequest(arguments[1],arguments[2],arguments[3])}else{var b=arguments[0];this.sendBlockSingleRequest(b.v,b.b,b.type)}}},sendBlockSingleRequest:function(d,c,b){var e={id:d};if(b=="nonuser"){e.s_id=c}else{e.b_id=c}e.isGroup=(this.isGroup?"1":"0");var f=$("blockedSubscribersProcessing");if(f){Element.show("blockedSubscribersProcessing")}jq.ajax({url:"/singleblock",data:e,dataType:"json",success:jq.proxy(this.handleSendBlockSingleRequestSuccess,this),error:jq.proxy(this.handleSendBlockSingleRequestFailure,this)})},handleSendBlockSingleRequestSuccess:function(c){var b=c.response;jq("#blockedSubscribersProcessing").hide();if(b.stat==="ok"){document.location.reload(true)}else{this.showBlockErrorMessage()}},handleSendBlockSingleRequestFailure:function(b){this.showBlockErrorMessage()},loadLBText:function(){var e=$("blockConfirmHeader");var c=$("blockConfirmText"),b,d;if(this.isGroup){this.somethingChangedOnGroupOptionForm=(somethingChanged);b=(this.somethingChangedOnGroupOptionForm)?" and save your group album options":""}if(!this.allUsersBlocked){e.innerHTML="Block all users";if(this.isGroup){d="Are you sure you want to block all users from following your group album"+b+"? Blocked users won't be able to follow your group album anymore."}else{d="Are you sure you want to block all users from following you? Blocked users won't be able to follow you anymore. But remember that anyone can still see your public albums."}}else{e.innerHTML="Unblock all users";if(this.isGroup){d="Are you sure you want to unblock all users"+b+"?"}else{d="Are you sure you want to unblock all users?"}}c.innerHTML=d;return},handleBlockLinkToggle:function(b){this.sendBlockToggleAjaxRequest()},sendBlockToggleAjaxRequest:function(){var c=Math.floor(Math.random()*10001);var b=(this.allUsersBlocked)?"/unblockall/":"/blockall/";b+=this.ownerId;var d="isGroup="+(this.isGroup?"1":"0")+"&cb="+c;new Ajax.Request(b,{method:"GET",parameters:d,onSuccess:this.handleToggleBlockSuccess.bind(this),onFailure:this.handleToggleBlockFailure.bind(this)})},handleToggleBlockSuccess:function(request){var responseText=request.responseText;var json=eval("("+responseText+")");if(json.response.stat=="ok"&&json.response.msg=="save success"){this.allUsersBlocked=json.response.blocked;document.fire(PBLightbox.EVENT.DEACTIVATE);if(this.somethingChangedOnGroupOptionForm){$("createalbumform").submit()}else{window.location.reload(true)}}else{this.showBlockErrorMessage()}},handleToggleBlockFailure:function(b){this.showBlockErrorMessage()},toggleBlockLinkText:function(){if(this.allUsersBlocked&&this.listPanelOn){this.toggleBlockBoxOff()}if(!this.fromEditSubscription){var d=(this.allUsersBlocked)?"NO other users can subscribe to":"ALL users CAN subscribe to";$(this.blockedHeaderTextId).innerHTML=d+this.blockText;var b=(this.allUsersBlocked)?"Unblock all users":"Block all users"}else{var c=(this.allUsersBlocked)?"<p>No other users can subscribe to your albums.</p>":"<p>No one is subscribed to your albums.</p>";$(this.listPanelDivId).innerHTML=c;var b=(this.allUsersBlocked)?"Unblock all users":"Block all users from subscribing to my albums"}this.staticBlockLink.innerHTML=b;return},toggleBlockBoxOff:function(){$(this.listPanelId).remove();this.listPanelOn=false;$(this.listPanelDivId).addClassName("noBlockedUsers");return},toggleSubscribeBoxOff:function(){$(this.listPanelId).remove();this.listPanelOn=false;return},setPanelSize:function(b){$(this.listPanelId).setStyle({height:b});return},showBlockErrorMessage:function(){controllerMessagePanel.printMessage({message:"Attention",details:"There was a problem saving your settings.  Please try again later.",type:"error"});Element.scrollTo("MessagePanel")}};
