Type.registerNamespace("Legacy");Legacy.BuyAsABook=function(A){Legacy.BuyAsABook.initializeBase(this,[A]);
this._showObitYears=null;this._years=null;this._message=null;this._suggestedEntries=null;
this._exclusiveRadioButtons=null;this._standardEntryPanel=null;this._suggestedEntriesPanel=null;
this._radioButtonList=null;this._dedicationViewHiddenField=null;this._suggestedEntriesLinkButton=null;
this._backToPersonalMessage=null;this._browseSuggestedEntriesPanel=null;this._selectedCoverIndexHiddenField=null;
};Legacy.BuyAsABook.prototype={initialize:function(){Legacy.BuyAsABook.callBaseMethod(this,"initialize");
Sys.UI.DomElement.setVisibilityMode(this.get_years(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_browseSuggestedEntriesPanel(),Sys.UI.VisibilityMode.hide);
Sys.UI.DomElement.setVisibilityMode(this.get_standardEntryPanel(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_suggestedEntriesPanel(),Sys.UI.VisibilityMode.collapse);
$addHandlers(this.get_showObitYears(),{"click":Function.createDelegate(this,this._showObitYearsOnClickHandler)},this);
$addHandlers(this.get_suggestedEntriesLinkButton(),{"click":Function.createDelegate(this,this._suggestedEntriesLinkButtonOnClickHandler)},this);
$addHandlers(this.get_backToPersonalMessage(),{"click":Function.createDelegate(this,this._backToPersonalMessageOnClickHandler)},this);
this.add_propertyChanged(Function.createDelegate(this,this._onPropertyChangedHandler));
this._radioButtonList=Sys.Serialization.JavaScriptSerializer.deserialize(this.get_exclusiveRadioButtons());
this._addRadioButtonClickHandlers();},dispose:function(){Legacy.BuyAsABook.callBaseMethod(this,"dispose");
$clearHandlers(this.get_showObitYears());$clearHandlers(this.get_suggestedEntriesLinkButton());
$clearHandlers(this.get_backToPersonalMessage());this._removeRadioButtonClickHandlers();
},get_showObitYears:function(){return this._showObitYears;},set_showObitYears:function(A){this._showObitYears=A;
},get_years:function(){return this._years;},set_years:function(A){this._years=A;},get_message:function(){return this._message;
},set_message:function(A){this._message=A;},get_suggestedEntries:function(){return this._suggestedEntries;
},set_suggestedEntries:function(A){this._suggestedEntries=A;},get_standardEntryPanel:function(){return this._standardEntryPanel;
},set_standardEntryPanel:function(A){this._standardEntryPanel=A;},get_suggestedEntriesPanel:function(){return this._suggestedEntriesPanel;
},set_suggestedEntriesPanel:function(A){this._suggestedEntriesPanel=A;},get_exclusiveRadioButtons:function(){return this._exclusiveRadioButtons;
},set_exclusiveRadioButtons:function(A){this._exclusiveRadioButtons=A;},get_dedicationViewHiddenField:function(){return this._dedicationViewHiddenField;
},set_dedicationViewHiddenField:function(A){this._dedicationViewHiddenField=A;},get_suggestedEntriesLinkButton:function(){return this._suggestedEntriesLinkButton;
},set_suggestedEntriesLinkButton:function(A){this._suggestedEntriesLinkButton=A;},get_backToPersonalMessage:function(){return this._backToPersonalMessage;
},set_backToPersonalMessage:function(A){this._backToPersonalMessage=A;},get_browseSuggestedEntriesPanel:function(){return this._browseSuggestedEntriesPanel;
},set_browseSuggestedEntriesPanel:function(A){this._browseSuggestedEntriesPanel=A;
},get_selectedCoverIndexHiddenField:function(){return this._selectedCoverIndexHiddenField;
},set_selectedCoverIndexHiddenField:function(A){this._selectedCoverIndexHiddenField=A;
},get_dedicationView:function(){return Legacy.DedicationView.parse(this.get_dedicationViewHiddenField().value);
},set_dedicationView:function(A){this.get_dedicationViewHiddenField().value=Legacy.DedicationView.toString(A);
this.raisePropertyChanged("dedicationView");},_showObitYearsOnClickHandler:function(A){Sys.UI.DomElement.setVisible(this.get_years(),this.get_showObitYears().checked);
},_exclusiveRadioButtonOnClickHandler:function(A){this._selectCoverOption(A.target.id);
},_suggestedEntriesLinkButtonOnClickHandler:function(A){this.set_dedicationView(Legacy.DedicationView.SuggestedEntry);
},_backToPersonalMessageOnClickHandler:function(A){this.set_dedicationView(Legacy.DedicationView.UserEntry);
},_onPropertyChangedHandler:function(A,B){switch(B.get_propertyName()){case"dedicationView":this._updateDedicationView();
break;case"includeDedication":this._updateIncludeDedication();break;}},fireClickEvent:function(B){if(Sys.Browser.agent==Sys.Browser.InternetExplorer){B.click();
}else{if(document.createEvent){var A=document.createEvent("MouseEvents");A.initEvent("click",true,false);
B.dispatchEvent(A);}else{if(document.createEventObject){fireOnThis.fireEvent("click");
}}}},_addRadioButtonClickHandlers:function(){for(var B=0;B<this._radioButtonList.length;
B++){var A=$get(this._radioButtonList[B]);$addHandlers(A,{"click":Function.createDelegate(this,this._exclusiveRadioButtonOnClickHandler)},this);
}},_removeRadioButtonClickHandlers:function(){for(var B=0;B<this._radioButtonList.length;
B++){var A=$get(this._radioButtonList[B]);$clearHandlers(A);}},_selectCoverOption:function(A){for(var C=0;
C<this._radioButtonList.length;C++){var B=$get(this._radioButtonList[C]);if(B.id==A){this.get_selectedCoverIndexHiddenField().value=C;
}else{B.checked=false;}}},_updateDedicationView:function(){switch(this.get_dedicationView()){case Legacy.DedicationView.UserEntry:Sys.UI.DomElement.setVisible(this.get_standardEntryPanel(),true);
Sys.UI.DomElement.setVisible(this.get_suggestedEntriesPanel(),false);break;case Legacy.DedicationView.SuggestedEntry:Sys.UI.DomElement.setVisible(this.get_standardEntryPanel(),false);
Sys.UI.DomElement.setVisible(this.get_suggestedEntriesPanel(),true);break;}},_updateIncludeDedication:function(){if(this.get_includeDedication()){this.get_message().value="";
this.get_message().style.background="#d1d1c6";this.get_message().disabled=true;Sys.UI.DomElement.setVisible(this.get_browseSuggestedEntriesPanel(),false);
this.set_dedicationView(Legacy.DedicationView.UserEntry);}else{this.get_message().style.background="#ffffff";
this.get_message().disabled=false;Sys.UI.DomElement.setVisible(this.get_browseSuggestedEntriesPanel(),true);
}}};Legacy.BuyAsABook.descriptor={properties:[{name:"showObitYears",type:Object},{name:"years",type:Object},{name:"message",type:Object},{name:"suggestedEntries",type:Object},{name:"standardEntryPanel",type:Object},{name:"suggestedEntriesPanel",type:Object},{name:"suggestedEntriesLinkButton",type:Object},{name:"backToPersonalMessage",type:Object},{name:"exclusiveRadioButtons",type:String},{name:"dedicationViewHiddenField",type:Object},{name:"browseSuggestedEntriesPanel",type:Object},{name:"selectedCoverIndexHiddenField",type:Object}]};
Legacy.BuyAsABook.registerClass("Legacy.BuyAsABook",Sys.UI.Control);Legacy.DedicationView=function(){throw Error.notImplemented();
};Legacy.DedicationView.prototype={UserEntry:0,SuggestedEntry:1};Legacy.DedicationView.registerEnum("Legacy.DedicationView");
Type.registerNamespace("Legacy");Legacy.CenterCroppedImage=function(A){Legacy.CenterCroppedImage.initializeBase(this,[A]);
this._image=null;this._container=null;};Legacy.CenterCroppedImage.prototype={initialize:function(){Legacy.CenterCroppedImage.callBaseMethod(this,"initialize");
this.centerCrop();},dispose:function(){Legacy.CenterCroppedImage.callBaseMethod(this,"dispose");
},get_image:function(){return this._image;},set_image:function(A){this._image=A;},_imageLoadedHandler:function(A){this.centercrop();
},centerCrop:function(){image=this.get_image();container=this.get_element();if(image&&container){var A=image.clientHeight;
var B=image.clientWidth;if(A>0&&B>0){var C=container.clientHeight;var D=container.clientWidth;
image.style.marginTop=Math.ceil((C-A)/2)+"px";image.style.marginLeft=Math.ceil((D-B)/2)+"px";
}}}};Legacy.CenterCroppedImage.descriptor={properties:[{name:"image",type:Object}]};
Legacy.CenterCroppedImage.registerClass("Legacy.CenterCroppedImage",Sys.UI.Control);
Type.registerNamespace("Legacy");Legacy.CreditCard=function(A){Legacy.CreditCard.initializeBase(this,[A]);
this._securityCodeLinkButton=null;this._securityCodePanel=null;this._creditCardTypeDropDownList=null;
this._expirationMonthDropDownList=null;this._expirationYearDropDownList=null;this._expirationValidator=null;
};Legacy.CreditCard.validateCreditCardNumber=function(A,C){if(C.Value.match(/^[0-9]{3,18}$/)){var B=0;
var F=C.Value.replace(/\D/g,"");var E=F.length;var G=E%2;if(E>3){for(i=0;i<E;i++){var D=F.charAt(i);
if(i%2==G){D=D*2;if(D>9){D=D-9;}}B=B+parseInt(D);}if(B%10==0){C.IsValid=true;}else{C.IsValid=false;
}}else{C.IsValid=true;}}else{C.IsValid=false;}};Legacy.CreditCard.validateExpirationDate=function(A,B){var F=$find(A.attributes["ComponentID"].value);
var D=new Date();var G=D.getMonth()+1;var E=F.get_expirationMonthDropDownList().value;
var C=F.get_expirationYearDropDownList().value;if(E==-1||C==-1){A.innerHTML="* required";
B.IsValid=false;}else{if(E>0&&C==D.getFullYear()&&E<G){A.innerHTML="* invalid expiration date";
B.IsValid=false;}else{A.innerHTML="";B.IsValid=true;}}};Legacy.CreditCard.validateSecurityCode=function(A,B){var D=$find(A.attributes["ComponentID"].value);
var C=D.get_creditCardTypeDropDownList().selectedIndex;if(B.Value.match(/^[0-9]{3,4}$/)){if(C==1&&B.Value.length!=4){A.innerHTML="* invalid security code";
B.IsValid=false;}else{if((C>=2&&C<=4)&&B.Value.length!=3){A.innerHTML="* invalid security code";
B.IsValid=false;}else{B.IsValid=true;}}}else{A.innerHTML="* invalid security code";
B.IsValid=false;}};Legacy.CreditCard.prototype={initialize:function(){Legacy.CreditCard.callBaseMethod(this,"initialize");
Sys.UI.DomElement.setVisibilityMode(this.get_securityCodePanel(),Sys.UI.VisibilityMode.collapse);
$addHandlers(this.get_securityCodeLinkButton(),{"click":Function.createDelegate(this,this._securityCode_Click)},this);
$addHandlers(this.get_creditCardTypeDropDownList(),{"change":Function.createDelegate(this,this._creditCardType_Change)},this);
var A=Function.createDelegate(this,this._expirationDate_Change);$addHandlers(this.get_expirationMonthDropDownList(),{"change":A},this);
$addHandlers(this.get_expirationYearDropDownList(),{"change":A},this);},dispose:function(){Legacy.CreditCard.callBaseMethod(this,"dispose");
},get_securityCodeLinkButton:function(){return this._securityCodeLinkButton;},set_securityCodeLinkButton:function(A){this._securityCodeLinkButton=A;
},get_securityCodePanel:function(){return this._securityCodePanel;},set_securityCodePanel:function(A){this._securityCodePanel=A;
},get_creditCardTypeDropDownList:function(){return this._creditCardTypeDropDownList;
},set_creditCardTypeDropDownList:function(A){this._creditCardTypeDropDownList=A;},get_expirationMonthDropDownList:function(){return this._expirationMonthDropDownList;
},set_expirationMonthDropDownList:function(A){this._expirationMonthDropDownList=A;
},get_expirationYearDropDownList:function(){return this._expirationYearDropDownList;
},set_expirationYearDropDownList:function(A){this._expirationYearDropDownList=A;},get_expirationValidator:function(){return this._expirationValidator;
},set_expirationValidator:function(A){this._expirationValidator=A;},_updateSecurityCodePanel:function(){if(this.get_creditCardTypeDropDownList().selectedIndex==1){Sys.UI.DomElement.addCssClass(this.get_securityCodePanel(),"SecurityCodeAmex");
}else{Sys.UI.DomElement.removeCssClass(this.get_securityCodePanel(),"SecurityCodeAmex");
}},_creditCardType_Change:function(){this._updateSecurityCodePanel();},_expirationDate_Change:function(){var A=new Date();
if((this.get_expirationMonthDropDownList().value>0)&&(this.get_expirationYearDropDownList().value>=A.getFullYear())){this.get_expirationValidator().innerHTML="";
}},_securityCode_Click:function(A){this._updateSecurityCodePanel();var B=this.get_securityCodePanel();
Sys.UI.DomElement.setVisible(B,true);return false;}};Legacy.CreditCard.descriptor={properties:[{name:"securityCodeLinkButton",type:Object},{name:"securityCodePanel",type:Object},{name:"creditCardTypeDropDownList",type:Object},{name:"expirationMonthDropDownList",type:Object},{name:"expirationYearDropDownList",type:Object},{name:"expirationValidator",type:Object}]};
Legacy.CreditCard.registerClass("Legacy.CreditCard",Sys.UI.Control);Type.registerNamespace("Legacy");
Legacy.GuestBook=function(A){Legacy.GuestBook.initializeBase(this,[A]);this._returnToLink=null;
this._cookieName="rc";this._bookIDKey="bid";this._returnUrl="returnUrl";};Legacy.GuestBook.prototype={initialize:function(){Legacy.GuestBook.callBaseMethod(this,"initialize");
var A=Sys.WebForms.PageRequestManager.getInstance();A.add_initializeRequest(Function.createDelegate(this,this._initializeRequest));
A.add_beginRequest(Function.createDelegate(this,this._beginRequest));A.add_pageLoading(Function.createDelegate(this,this._pageLoading));
A.add_pageLoaded(Function.createDelegate(this,this._pageLoaded));A.add_endRequest(Function.createDelegate(this,this._endRequest));
this._buildReturnLink();},dispose:function(){Legacy.GuestBook.callBaseMethod(this,"dispose");
},get_returnToLink:function(){return this._returnToLink;},set_returnToLink:function(A){this._returnToLink=A;
},_buildReturnLink:function(){var A=this._getCookieValue(this._cookieName,this._returnUrl);
var B=this._getCookieValue(this._cookieName,this._bookIDKey);if(A!=null&&B==this._getBookIdFromRequest()){var C=this.get_returnToLink().href;
this.get_returnToLink().href=A;this.get_returnToLink().attributes["onclick"].value=this.get_returnToLink().attributes["onclick"].value.replace(/"\/.*?"/gi,'"'+A+'"');
}},_initializeRequest:function(A,B){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){B.set_cancel(true);
}},_beginRequest:function(A,B){},_pageLoading:function(A,B){},_pageLoaded:function(A,B){},_endRequest:function(A,B){if(B.get_error()!=undefined){var C=B.get_response().get_statusCode();
switch(C){case 200:alert(B.get_error().message);break;default:alert("An unexpected error has occurred.\nPlease try again.");
break;}B.set_errorHandled(true);}},_getCookieValue:function(B,A){if((A!=null)&&(A.length>0)){var D=this._loadCookie(B);
if(B.length>0){A+="=";var E=D.indexOf(A);var C=0;if(E>-1){E+=A.length;C=D.indexOf("&",E);
if(C<E){C=D.length;}return D.substring(E,C);}}}return"";},_loadCookie:function(A){if((A!=null)&&(A.length>0)){A+="=";
if(document.cookie.length>0){var C=document.cookie.indexOf(A);var B=0;if(C>-1){C+=A.length;
B=document.cookie.indexOf(";",C);if(B<C){B=document.cookie.length;}return document.cookie.substring(C,B);
}}}return"";},_getBookIdFromRequest:function(){var A=document.URL.toLowerCase();var C=A.indexOf("bookid=");
var B=0;if(C>-1){C+=7;B=A.indexOf("&",C);if(B<C){B=A.length;}return A.substring(C,B);
}return"";}};Legacy.GuestBook.registerClass("Legacy.GuestBook",Sys.UI.Control);Legacy.GuestBook.descriptor={properties:[{name:"returnToLink",type:Object}]};
try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}if(typeof deconcept=="undefined"){var deconcept=new Object();
}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();
}deconcept.SWFObject=function(J,B,K,L,E,F,C,D,H,I){if(!document.getElementById){return;
}this.DETECT_KEY=I?I:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();this.variables=new Object();this.attributes=new Array();
if(J){this.setAttribute("swf",J);}if(B){this.setAttribute("id",B);}if(K){this.setAttribute("width",K);
}if(L){this.setAttribute("height",L);}if(E){this.setAttribute("version",new deconcept.PlayerVersion(E.toString().split(".")));
}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;
}if(F){this.addParam("bgcolor",F);}var G=C?C:"high";this.addParam("quality",G);this.setAttribute("useExpressInstall",false);
this.setAttribute("doExpressInstall",false);var A=(D)?D:window.location;this.setAttribute("xiRedirectUrl",A);
this.setAttribute("redirectUrl","");if(H){this.setAttribute("redirectUrl",H);}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;
this.setAttribute("useExpressInstall",true);},setAttribute:function(B,A){this.attributes[B]=A;
},getAttribute:function(A){return this.attributes[A];},addParam:function(A,B){this.params[A]=B;
},getParams:function(){return this.params;},addVariable:function(A,B){this.variables[A]=B;
},getVariable:function(A){return this.variables[A];},getVariables:function(){return this.variables;
},getVariablePairs:function(){var A=new Array();var B;var C=this.getVariables();for(B in C){A[A.length]=B+"="+C[B];
}return A;},getSWFHTML:function(){var F="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");
this.setAttribute("swf",this.xiSWFPath);}F='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';
F+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var E=this.getParams();
for(var A in E){F+=[A]+'="'+E[A]+'" ';}var B=this.getVariablePairs().join("&");if(B.length>0){F+='flashvars="'+B+'"';
}F+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");
this.setAttribute("swf",this.xiSWFPath);}F='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';
F+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();
for(var A in C){F+='<param name="'+A+'" value="'+C[A]+'" />';}var D=this.getVariablePairs().join("&");
if(D.length>0){F+='<param name="flashvars" value="'+D+'" />';}F+="</object>";}return F;
},write:function(B){if(this.getAttribute("useExpressInstall")){var C=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(C)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var A=(typeof B=="string")?document.getElementById(B):B;
A.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));
}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var B=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){var D=navigator.plugins["Shockwave Flash"];
if(D&&D.description){B=new deconcept.PlayerVersion(D.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var E=1;
var A=3;while(E){try{A++;E=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+A);
B=new deconcept.PlayerVersion([A,0,0]);}catch(C){E=null;}}}else{try{var E=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
}catch(C){try{var E=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");B=new deconcept.PlayerVersion([6,0,21]);
E.AllowScriptAccess="always";}catch(C){if(B.major==6){return B;}}try{E=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
}catch(C){}}if(E!=null){B=new deconcept.PlayerVersion(E.GetVariable("$version").split(" ")[1].split(","));
}}}return B;};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;
this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false;
}if(this.major>A.major){return true;}if(this.minor<A.minor){return false;}if(this.minor>A.minor){return true;
}if(this.rev<A.rev){return false;}return true;};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;
if(C==null){return D;}if(D){var A=D.substring(1).split("&");for(var B=0;B<A.length;
B++){if(A[B].substring(0,A[B].indexOf("="))==C){return A[B].substring((A[B].indexOf("=")+1));
}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");
for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){};
}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);
};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;
}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A];
};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;
var SWFObject=deconcept.SWFObject;Type.registerNamespace("Legacy");Legacy.ImageUpload=function(A){Legacy.ImageUpload.initializeBase(this,[A]);
this._photoUpload=null;this._photoCaption=null;this._addFilePromptPanel=null;this._uploadPanel=null;
this._displayPanel=null;this._fileUploadContainer=null;this._photoName=null;this._addPhotoToEntry=null;
this._uploadPanel=null;this._displayCaption=null;this._maxPhotoCaptionLength=150;
this._photoUploadPostBackReferenceKey=null;this._errorMessage=null;};Legacy.ImageUpload.prototype={initialize:function(){Legacy.ImageUpload.callBaseMethod(this,"initialize");
$addHandlers(this.get_fileUploadContainer(),{"mousemove":Function.createDelegate(this,this._fileUploadContainerOnMouseMove)},this);
$addHandlers(this.get_photoUpload(),{"change":Function.createDelegate(this,this._photoUploadOnChange)},this);
if(this.get_photoCaption()){$addHandlers(this.get_photoCaption(),{"paste":Function.createDelegate(this,this._photoCaptionOnPaste)},this);
}if(this.get_displayCaption()){$addHandlers(this.get_displayCaption(),{"paste":Function.createDelegate(this,this._displayCaptionOnPaste)},this);
}if(this.get_addPhotoToEntry()){$addHandlers(this.get_addPhotoToEntry(),{"click":Function.createDelegate(this,this._addPhotoToEntryOnClick)},this);
}},dispose:function(){$clearHandlers(this.get_fileUploadContainer());$clearHandlers(this.get_photoUpload());
if(this.get_photoCaption()){$clearHandlers(this.get_photoCaption());}if(this.get_displayCaption()){$clearHandlers(this.get_displayCaption());
}if(this.get_addPhotoToEntry()){$clearHandlers(this.get_addPhotoToEntry());}Legacy.ImageUpload.callBaseMethod(this,"dispose");
},get_photoUpload:function(){return this._photoUpload;},set_photoUpload:function(A){this._photoUpload=A;
},get_photoCaption:function(){return this._photoCaption;},set_photoCaption:function(A){this._photoCaption=A;
},get_addFilePromptPanel:function(){return this._addFilePromptPanel;},set_addFilePromptPanel:function(A){this._addFilePromptPanel=A;
},get_uploadPanel:function(){return this._uploadPanel;},set_uploadPanel:function(A){this._uploadPanel=A;
},get_displayPanel:function(){return this._displayPanel;},set_displayPanel:function(A){this._displayPanel=A;
},get_fileUploadContainer:function(){return this._fileUploadContainer;},set_fileUploadContainer:function(A){this._fileUploadContainer=A;
},get_photoName:function(){return this._photoName;},set_photoName:function(A){this._photoName=A;
},get_addPhotoToEntry:function(){return this._addPhotoToEntry;},set_addPhotoToEntry:function(A){this._addPhotoToEntry=A;
},get_uploadPanel:function(){return this._uploadPanel;},set_uploadPanel:function(A){this._uploadPanel=A;
},get_displayCaption:function(){return this._displayCaption;},set_displayCaption:function(A){this._displayCaption=A;
},get_photoUploadPostBackReferenceKey:function(){return this._photoUploadPostBackReferenceKey;
},set_photoUploadPostBackReferenceKey:function(A){this._photoUploadPostBackReferenceKey=A;
},get_errorMessage:function(){return this._errorMessage;},set_errorMessage:function(A){this._errorMessage=A;
},_fileUploadContainerOnMouseMove:function(D){var A=Sys.UI.DomElement.getLocation(this.get_fileUploadContainer());
var F;var E;var B=A.x;var C=A.y;var G=this.get_photoUpload().offsetWidth;var H=this.get_photoUpload().offsetHeight;
if(typeof window.pageYOffset!="undefined"){F=window.pageXOffset;E=window.pageYOffset;
}else{if(typeof document.documentElement.scrollTop!="undefined"&&document.documentElement.scrollTop>0){F=document.documentElement.scrollLeft;
E=document.documentElement.scrollTop;}else{if(typeof document.body.scrollTop!="undefined"){F=document.body.scrollLeft;
E=document.body.scrollTop;}}}this.get_photoUpload().style.top=(D.clientY+E)-C-(H/2)+"px";
this.get_photoUpload().style.left=(D.clientX+F)-B-(G-30)+"px";},_photoUploadOnChange:function(A){if(this._isValidFileExt()){this.get_photoName().innerHTML="";
new Function(this.get_photoUploadPostBackReferenceKey()).call();}else{this.get_errorMessage().innerHTML="Invalid File Type!  Only .jpg, .jpeg, .gif, .bmp and .png are supported.";
}},_addPhotoToEntryOnClick:function(A){this.get_errorMessage().innerHTML="";this.get_addFilePromptPanel().style.display="none";
this.get_uploadPanel().style.display="block";},_photoCaptionOnPaste:function(A){this._maxPasteLength(this.get_photoCaption(),this._maxPhotoCaptionLength);
},_displayCaptionOnPaste:function(A){this._maxPasteLength(this.get_displayCaption(),this._maxPhotoCaptionLength);
},_isValidFileExt:function(){var A=new RegExp("^.+.(gif|x-png|png|bmp|p?jpg|p?jpeg)$","i");
var B=A.exec(this.get_photoUpload().value);if(B!=null&&B.length>0){return true;}return false;
},_maxPasteLength:function(B,A){if((B.value.length+window.clipboardData.getData("Text").length)>A){alert("No more than "+A+" characters allowed.");
}}};Legacy.ImageUpload.descriptor={properties:[{name:"photoUpload",type:Object},{name:"photoCaption",type:Object},{name:"addFilePromptPanel",type:Object},{name:"uploadPanel",type:Object},{name:"displayPanel",type:Object},{name:"fileUploadContainer",type:Object},{name:"photoName",type:Object},{name:"addPhotoToEntry",type:Object},{name:"uploadPanel",type:Object},{name:"displayCaption",type:Object},{name:"errorMessage",type:Object},{name:"photoUploadPostBackReferenceKey",type:String}]};
Legacy.ImageUpload.registerClass("Legacy.ImageUpload",Sys.UI.Control);Type.registerNamespace("Legacy");
Legacy.ModalWindow=function(A){Legacy.ModalWindow.initializeBase(this,[A]);this._uniqueID=null;
this._close=null;this._yes=null;this._no=null;this._background=null;this._yesEventArgument=null;
this._arg=null;this._showOnLoad=null;this._events=null;};Legacy.ModalWindow.prototype={initialize:function(){Legacy.ModalWindow.callBaseMethod(this,"initialize");
this.add_close(this._close_click);if(this.get_yes()){$addHandler(this.get_yes(),"click",Function.createDelegate(this,this._yes_click));
}if(this.get_no()){$addHandler(this.get_no(),"click",Function.createDelegate(this,this._close_click));
}if(this.get_showOnLoad()){Sys.Application.add_load(Function.createDelegate(this,this.show));
}else{Sys.Application.add_load(Function.createDelegate(this,this._updateLayout));
}$addHandler(window,"resize",Function.createDelegate(this,this._updateLayout));},dispose:function(){if(this.get_no()){$clearHandlers(this.get_no());
}if(this.get_yes()){$clearHandlers(this.get_yes());}Legacy.ModalWindow.callBaseMethod(this,"dispose");
},get_uniqueID:function(){return this._uniqueID;},set_uniqueID:function(A){this._uniqueID=A;
},get_close:function(){return this._close;},set_close:function(A){this._close=A;},get_yes:function(){return this._yes;
},set_yes:function(A){this._yes=A;},get_no:function(){return this._no;},set_no:function(A){this._no=A;
},get_background:function(){return this._background;},set_background:function(A){this._background=A;
},get_yesEventArgument:function(){return this._yesEventArgument;},set_yesEventArgument:function(A){this._yesEventArgument=A;
},get_showOnLoad:function(){return this._showOnLoad;},set_showOnLoad:function(A){this._showOnLoad=A;
},get_events:function(){if(!this._events){this._events=new Sys.EventHandlerList();
}return this._events;},add_close:function(A,B){$addHandler(this.get_close(),"click",Function.createDelegate((B!=undefined)?B:this,A));
},remove_close:function(A,B){$removeHandler(this.get_close(),"click",Function.createDelegate((B!=undefined)?B:this,A));
},add_beforeShow:function(A){this.get_events().addHandler("beforeShow",A);},remove_beforeShow:function(A){this.get_events().removeHandler("beforeShow",A);
},add_show:function(A){this.get_events().addHandler("show",A);},remove_show:function(A){this.get_events().removeHandler("show",A);
},show:function(A){this._arg=A;Sys.UI.DomElement.setVisibilityMode(this.get_background(),Sys.UI.VisibilityMode.hide);
Sys.UI.DomElement.setVisibilityMode(this.get_element(),Sys.UI.VisibilityMode.hide);
this._setDropDownVisibility(false);this._updateLayout();this._raiseBeforeShowEvent();
Sys.UI.DomElement.setVisible(this.get_background(),true);Sys.UI.DomElement.setVisible(this.get_element(),true);
this._raiseShowEvent();},hide:function(){Sys.UI.DomElement.setVisible(this.get_background(),false);
Sys.UI.DomElement.setVisible(this.get_element(),false);Sys.UI.DomElement.setVisibilityMode(this.get_background(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_element(),Sys.UI.VisibilityMode.collapse);
this._setDropDownVisibility(true);},_close_click:function(){this.hide();},_yes_click:function(){this.hide();
var A=this.get_yesEventArgument();if(this._arg){A=A+"|"+this._arg.toString();}__doPostBack(this.get_uniqueID(),A);
},_updateLayout:function(){this._resizeBackground();this._positionModal();},_resizeBackground:function(){var A=this.get_background();
A.style.height=document.documentElement.scrollHeight+"px";A.style.width=document.documentElement.scrollWidth+"px";
},_positionModal:function(){var B=document.documentElement.clientWidth;var E=document.documentElement.clientHeight;
var H=this.get_element();var G;var F;if(typeof window.pageYOffset!="undefined"){G=window.pageXOffset;
F=window.pageYOffset;}else{if(typeof document.documentElement.scrollTop!="undefined"&&document.documentElement.scrollTop>0){G=document.documentElement.scrollLeft;
F=document.documentElement.scrollTop;}else{if(typeof document.body.scrollTop!="undefined"){G=document.body.scrollLeft;
F=document.body.scrollTop;}}}var A=Sys.UI.DomElement.getBounds(H);var C=Math.ceil((B/2)-(A.width/2))+G;
var D=Math.ceil((E/2)-(A.height/2))+F;Sys.UI.DomElement.setLocation(H,(C<0)?0:C,(D<0)?0:D);
},_setDropDownVisibility:function(A){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7){var B=document.getElementsByTagName("SELECT");
for(var C=0;C<B.length;C++){Sys.UI.DomElement.setVisible(B[C],A);}}},_raiseBeforeShowEvent:function(){var A=this.get_events().getHandler("beforeShow");
if(A){A(this,Sys.EventArgs.Empty);}},_raiseShowEvent:function(){var A=this.get_events().getHandler("show");
if(A){A(this,Sys.EventArgs.Empty);}}};Legacy.ModalWindow.descriptor={properties:[{name:"uniqueID",type:String},{name:"close",type:Object},{name:"yes",type:Object},{name:"no",type:Object},{name:"background",type:Object},{name:"yesEventArgument",type:String},{name:"showOnLoad",type:Boolean}]};
Legacy.ModalWindow.registerClass("Legacy.ModalWindow",Sys.UI.Control);Type.registerNamespace("Legacy");
Legacy.SignEntry=function(A){Legacy.SignEntry.initializeBase(this,[A]);this._entry=null;
this._firstName=null;this._lastName=null;this._city=null;this._state=null;this._imageUpload=null;
this._previewEntryButton=null;this._notifyOnApproval=null;this._allowContactMe=null;
this._notifyOnNewEntries=null;this._submitEntry=null;this._email=null;this._emailDependantOptionError=null;
this._entryBlankErrorText=null;this._currentView=null;this._addAPhotoTabLinkButton=null;
this._invalidEmailMessage=null;this._leaveYourThoughtsContent=null;this._leaveYourThoughtsToggle=null;
this._addAPhotoContent=null;this._addAPhotoToggle=null;this._signState=null;this._httpMethod=null;
this._textboxFocusCssClass=null;this._textboxAutoFocus=null;this._displayTabs=null;
this._signAlertModalWindowID=null;this._signAlertModalWindow=null;this._alertForPreview=null;
this._alertForSubmit=null;this._alertPreviewButton=null;this._alertSubmitButton=null;
this._continueLink=null;this._signEntryTable=null;this._signEntryShadow=null;this._windowUnloadMessage="";
this._windowUnloadDisplayWarning=true;};Legacy.SignEntry.prototype={initialize:function(){Legacy.SignEntry.callBaseMethod(this,"initialize");
this.add_propertyChanged(Function.createDelegate(this,this._onPropertyChangedHandler));
this.set_signState(this._loadSignState());Sys.UI.DomElement.setVisibilityMode(this.get_element(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisible(this.get_element(),true);if(this.get_displayTabs()){this.get_signEntryShadow().style.backgroundPosition=(Legacy.SignPageViewType.parse(this.get_currentView())==Legacy.SignPageViewType.Photo)?"left 1px":"left 28px";
Sys.UI.DomElement.setVisibilityMode(this.get_signEntryTable(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisible(this.get_signEntryTable(),true);}switch(Legacy.SignPageViewType.parse(this.get_currentView())){case Legacy.SignPageViewType.SuggestedEntry:case Legacy.SignPageViewType.Sign:$addHandlers(this.get_leaveYourThoughtsToggle(),{"click":Function.createDelegate(this,this._toggleOnClickHandler)},this);
var A=Function.createDelegate(this,this._signEntryOnKeyUpHandler);if(this.get_entry()){$addHandlers(this.get_entry(),{"keyup":A,"focus":Function.createDelegate(this,this._entryFocusHandler),"blur":Function.createDelegate(this,this._entryBlurHandler)},this);
}$addHandlers(this.get_firstName(),{"keyup":A},this);$addHandlers(this.get_lastName(),{"keyup":A},this);
$addHandlers(this.get_previewEntryButton(),{"click":Function.createDelegate(this,this._preventActionOnClickHandler)},this);
this.get_entryBlankErrorText().style.display="none";this._setEntryFormElementVisibility();
this.set_windowUnloadMessage("You have started an entry for this Guest Book, but it has not been submitted yet.");
break;case Legacy.SignPageViewType.Photo:$addHandlers(this.get_addAPhotoToggle(),{"click":Function.createDelegate(this,this._toggleOnClickHandler)},this);
break;case Legacy.SignPageViewType.Preview:var B=Function.createDelegate(this,this._submitEntryOnClickHandler);
$addHandlers(this.get_submitEntry(),{"click":B},this);if(this.get_alertSubmitButton()!=null){$addHandlers(this.get_alertSubmitButton(),{"click":B},this);
}if(this.get_email()){$addHandlers(this.get_email(),{"change":Function.createDelegate(this,this._emailOnChangeHandler)},this);
this.get_invalidEmailMessage().style.display="none";}this.get_emailDependantOptionError().style.display="none";
this.set_windowUnloadMessage("You have previewed an entry for this Guest Book, but it has not been submitted yet.");
break;}if(this.get_textboxAutoFocus()&&this.get_displayTabs()&&(this.get_signState()==Legacy.SignEntry.SignState.Expanded)&&this.get_entry()){this.get_entry().focus();
}Sys.Application.add_load(Function.createDelegate(this,this._application_load));},dispose:function(){switch(Legacy.SignPageViewType.parse(this.get_currentView())){case Legacy.SignPageViewType.SuggestedEntry,Legacy.SignPageViewType.Sign:$clearHandlers(this.get_previewEntryButton());
$clearHandlers(this.get_entry());$clearHandlers(this.get_firstName());$clearHandlers(this.get_lastName());
break;case Legacy.SignPageViewType.Preview:$clearHandlers(this.get_submitEntry());
break;}Legacy.SignEntry.callBaseMethod(this,"dispose");},get_entry:function(){return this._entry;
},set_entry:function(A){this._entry=A;},get_firstName:function(){return this._firstName;
},set_firstName:function(A){this._firstName=A;},get_lastName:function(){return this._lastName;
},set_lastName:function(A){this._lastName=A;},get_city:function(){return this._city;
},set_city:function(A){this._city=A;},get_state:function(){return this._state;},set_state:function(A){this._state=A;
},get_imageUpload:function(){return this._imageUpload;},set_imageUpload:function(A){this._imageUpload=A;
},get_previewEntryButton:function(){return this._previewEntryButton;},set_previewEntryButton:function(A){this._previewEntryButton=A;
},get_notifyOnApproval:function(){return this._notifyOnApproval;},set_notifyOnApproval:function(A){this._notifyOnApproval=A;
},get_allowContactMe:function(){return this._allowContactMe;},set_allowContactMe:function(A){this._allowContactMe=A;
},get_notifyOnNewEntries:function(){return this._notifyOnNewEntries;},set_notifyOnNewEntries:function(A){this._notifyOnNewEntries=A;
},get_submitEntry:function(){return this._submitEntry;},set_submitEntry:function(A){this._submitEntry=A;
},get_email:function(){return this._email;},set_email:function(A){this._email=A;},get_emailDependantOptionError:function(){return this._emailDependantOptionError;
},set_emailDependantOptionError:function(A){this._emailDependantOptionError=A;},get_entryBlankErrorText:function(){return this._entryBlankErrorText;
},set_entryBlankErrorText:function(A){this._entryBlankErrorText=A;},get_currentView:function(){return this._currentView;
},set_currentView:function(A){this._currentView=A;},get_addAPhotoTabLinkButton:function(){return this._addAPhotoTabLinkButton;
},set_addAPhotoTabLinkButton:function(A){this._addAPhotoTabLinkButton=A;},get_invalidEmailMessage:function(){return this._invalidEmailMessage;
},set_invalidEmailMessage:function(A){this._invalidEmailMessage=A;},get_leaveYourThoughtsContent:function(){return this._leaveYourThoughtsContent;
},set_leaveYourThoughtsContent:function(A){this._leaveYourThoughtsContent=A;},get_leaveYourThoughtsToggle:function(){return this._leaveYourThoughtsToggle;
},set_leaveYourThoughtsToggle:function(A){this._leaveYourThoughtsToggle=A;},get_addAPhotoContent:function(){return this._addAPhotoContent;
},set_addAPhotoContent:function(A){this._addAPhotoContent=A;},get_addAPhotoToggle:function(){return this._addAPhotoToggle;
},set_addAPhotoToggle:function(A){this._addAPhotoToggle=A;},get_signState:function(){return this._signState;
},set_signState:function(A){if(this.get_signState()!=A){this._signState=A;this.raisePropertyChanged("signState");
}},get_httpMethod:function(){return this._httpMethod;},set_httpMethod:function(A){this._httpMethod=A;
},get_textboxFocusCssClass:function(){return this._textboxFocusCssClass;},set_textboxFocusCssClass:function(A){this._textboxFocusCssClass=A;
},get_textboxAutoFocus:function(){return this._textboxAutoFocus;},set_textboxAutoFocus:function(A){this._textboxAutoFocus=A;
},get_displayTabs:function(){return this._displayTabs;},set_displayTabs:function(A){this._displayTabs=A;
},get_signAlertModalWindowID:function(){return this._signAlertModalWindowID;},set_signAlertModalWindowID:function(A){this._signAlertModalWindowID=A;
},get_signAlertModalWindow:function(){return this._signAlertModalWindow;},set_signAlertModalWindow:function(A){this._signAlertModalWindow=A;
},get_alertForPreview:function(){return this._alertForPreview;},set_alertForPreview:function(A){this._alertForPreview=A;
},get_alertForSubmit:function(){return this._alertForSubmit;},set_alertForSubmit:function(A){this._alertForSubmit=A;
},get_alertPreviewButton:function(){return this._alertPreviewButton;},set_alertPreviewButton:function(A){this._alertPreviewButton=A;
},get_alertSubmitButton:function(){return this._alertSubmitButton;},set_alertSubmitButton:function(A){this._alertSubmitButton=A;
},get_continueLink:function(){return this._continueLink;},set_continueLink:function(A){this._continueLink=A;
},get_signEntryTable:function(){return this._signEntryTable;},set_signEntryTable:function(A){this._signEntryTable=A;
},get_signEntryShadow:function(){return this._signEntryShadow;},set_signEntryShadow:function(A){this._signEntryShadow=A;
},get_windowUnloadMessage:function(){return this._windowUnloadMessage;},set_windowUnloadMessage:function(A){this._windowUnloadMessage=A;
},get_windowUnloadDisplayWarning:function(){return this._windowUnloadDisplayWarning;
},set_windowUnloadDisplayWarning:function(A){this._windowUnloadDisplayWarning=A;},confirmNavigate:function(A){this.get_continueLink().href=A;
switch(Legacy.SignPageViewType.parse(this.get_currentView())){case Legacy.SignPageViewType.Sign:Sys.UI.DomElement.setVisible(this.get_alertForPreview(),true);
Sys.UI.DomElement.setVisible(this.get_alertForSubmit(),false);Sys.UI.DomElement.setVisible(this.get_alertPreviewButton(),true);
Sys.UI.DomElement.setVisible(this.get_alertSubmitButton(),false);if(this.get_entry().value.trim().length==0){window.location.href=A;
return;}break;case Legacy.SignPageViewType.SuggestedEntry:window.location.href=A;
return;case Legacy.SignPageViewType.Photo:window.location.href=A;return;case Legacy.SignPageViewType.Preview:Sys.UI.DomElement.setVisible(this.get_alertForPreview(),false);
Sys.UI.DomElement.setVisible(this.get_alertForSubmit(),true);Sys.UI.DomElement.setVisible(this.get_alertPreviewButton(),false);
Sys.UI.DomElement.setVisible(this.get_alertSubmitButton(),true);break;}this.set_windowUnloadDisplayWarning(false);
this.get_signAlertModalWindow().show();},_application_load:function(A,B){if(this.get_signAlertModalWindowID()){this.set_signAlertModalWindow($find(this.get_signAlertModalWindowID()));
Sys.UI.DomElement.setVisibilityMode(this.get_alertForPreview(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_alertForSubmit(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_alertPreviewButton(),Sys.UI.VisibilityMode.collapse);
Sys.UI.DomElement.setVisibilityMode(this.get_alertSubmitButton(),Sys.UI.VisibilityMode.collapse);
}if(!this.get_displayTabs()&&this.get_state()){Sys.UI.DomElement.setVisible(this.get_state(),true);
}},_application_unLoad:function(B){var A=Sys.WebForms.PageRequestManager.getInstance();
if(A._postBackSettings!=null&&A._postBackSettings.sourceElement!=null){var C=A._postBackSettings.sourceElement.innerText;
if(C!=""){this.set_windowUnloadDisplayWarning(false);if(C=="click to close"||C=="Submit Entry"||C=="Continue"||C.length>50){this.set_windowUnloadDisplayWarning(true);
}else{if(Legacy.SignPageViewType.parse(this.get_currentView())==Legacy.SignPageViewType.Sign&&C==this.get_entry().value){this.set_windowUnloadDisplayWarning(true);
}}if(Legacy.SignPageViewType.parse(this.get_currentView())==Legacy.SignPageViewType.Preview){if(C=="Submit Entry"||C=="Continue"){this.set_windowUnloadDisplayWarning(this._previewEntryValidate());
}}}}if(this.get_windowUnloadDisplayWarning()){switch(Legacy.SignPageViewType.parse(this.get_currentView())){case Legacy.SignPageViewType.Sign:if(this.get_entry().value.trim().length>0){B.rawEvent.returnValue=this.get_windowUnloadMessage();
return this.get_windowUnloadMessage();}break;case Legacy.SignPageViewType.Preview:B.rawEvent.returnValue=this.get_windowUnloadMessage();
return this.get_windowUnloadMessage();break;default:break;}}},_onPropertyChangedHandler:function(A,B){switch(B.get_propertyName()){case"signState":this._updateSignState();
break;}},_toggleOnClickHandler:function(A){switch(this.get_signState()){case Legacy.SignEntry.SignState.Collapsed:this.set_signState(Legacy.SignEntry.SignState.Expanded);
this.get_entry().focus();break;case Legacy.SignEntry.SignState.Expanded:this.set_signState(Legacy.SignEntry.SignState.Collapsed);
break;}},_previewEntryButtonOnClickHandler:function(A){if(!this._signEntryValid()){this.get_entryBlankErrorText().style.display="block";
A.preventDefault();}},_signEntryOnKeyUpHandler:function(A){this._setEntryFormElementVisibility();
},_submitEntryOnClickHandler:function(A){if(this.get_email()&&this.get_email().value.length>0){if(!this._hasValidEmail()){this.get_invalidEmailMessage().style.display="block";
A.preventDefault();}}if(this.get_notifyOnApproval()&&this.get_notifyOnApproval().checked){if(!this._emailNotBlank()){this.get_emailDependantOptionError().style.display="block";
A.preventDefault();if(this.get_signAlertModalWindow()){this.get_signAlertModalWindow().hide();
this.get_email().focus();}}}if(this.get_allowContactMe()&&this.get_allowContactMe().checked){if(!this._emailNotBlank()){this.get_emailDependantOptionError().style.display="block";
A.preventDefault();if(this.get_signAlertModalWindow()){this.get_signAlertModalWindow().hide();
this.get_email().focus();}}}if(this.get_notifyOnNewEntries()&&this.get_notifyOnNewEntries().checked){if(!this._emailNotBlank()){this.get_emailDependantOptionError().style.display="block";
A.preventDefault();if(this.get_signAlertModalWindow()){this.get_signAlertModalWindow().hide();
this.get_email().focus();}}}},_emailOnChangeHandler:function(A){if(this.get_email()&&this.get_email().value.length>0){if(!this._hasValidEmail()){this.get_invalidEmailMessage().style.display="block";
}else{this.get_invalidEmailMessage().style.display="none";}}else{this.get_invalidEmailMessage().style.display="none";
}},_preventActionOnClickHandler:function(A){A.preventDefault();},_entryFocusHandler:function(A){var B=this.get_entry();
Sys.UI.DomElement.addCssClass(B,this.get_textboxFocusCssClass());B.select();},_entryBlurHandler:function(A){Sys.UI.DomElement.removeCssClass(this.get_entry(),this.get_textboxFocusCssClass());
},_updateSignState:function(){if(this.get_leaveYourThoughtsToggle()!=null){this._updateToggleState(this.get_leaveYourThoughtsToggle());
Sys.UI.DomElement.setVisible(this.get_leaveYourThoughtsContent(),this.get_signState()==Legacy.SignEntry.SignState.Expanded);
}if(this.get_addAPhotoToggle()!=null){this._updateToggleState(this.get_addAPhotoToggle());
Sys.UI.DomElement.setVisible(this.get_addAPhotoContent(),this.get_signState()==Legacy.SignEntry.SignState.Expanded);
}},_updateToggleState:function(A){switch(this.get_signState()){case Legacy.SignEntry.SignState.Collapsed:A.innerHTML="click to open";
Sys.UI.DomElement.removeCssClass(A,"Expanded");Sys.UI.DomElement.addCssClass(A,"Collapsed");
break;case Legacy.SignEntry.SignState.Expanded:A.innerHTML="click to close";Sys.UI.DomElement.removeCssClass(A,"Collapsed");
Sys.UI.DomElement.addCssClass(A,"Expanded");break;}},_setEntryFormElementVisibility:function(){if(Legacy.SignPageViewType.toString(Legacy.SignPageViewType.SuggestedEntry)==this.get_currentView()){if(this.get_addAPhotoTabLinkButton()){$clearHandlers(this.get_addAPhotoTabLinkButton());
Sys.UI.DomElement.removeCssClass(this.get_addAPhotoTabLinkButton(),"Disabled");}}$clearHandlers(this.get_previewEntryButton());
if(this._signEntryValid()){Sys.UI.DomElement.removeCssClass(this.get_previewEntryButton(),"DisabledButton");
$addHandlers(this.get_previewEntryButton(),{"click":Function.createDelegate(this,this._previewEntryButtonOnClickHandler)},this);
if(this.get_addAPhotoTabLinkButton()){$addHandlers(this.get_addAPhotoTabLinkButton(),{"click":Function.createDelegate(this,this._preventActionOnClickHandler)},this);
Sys.UI.DomElement.addCssClass(this.get_addAPhotoTabLinkButton(),"Disabled");}}else{Sys.UI.DomElement.addCssClass(this.get_previewEntryButton(),"DisabledButton");
$addHandlers(this.get_previewEntryButton(),{"click":Function.createDelegate(this,this._preventActionOnClickHandler)},this);
if(this.get_addAPhotoTabLinkButton()){$clearHandlers(this.get_addAPhotoTabLinkButton());
Sys.UI.DomElement.removeCssClass(this.get_addAPhotoTabLinkButton(),"Disabled");}}},_hasValidEmail:function(){var A=this.get_email().value;
filter=/^(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)$/;if(filter.test(A)){return true;
}return false;},_emailNotBlank:function(){if(this.get_email()&&this.get_email().value.trim().length>0){return true;
}return false;},_signEntryValid:function(){var A;switch(Legacy.SignPageViewType.parse(this.get_currentView())){case Legacy.SignPageViewType.SuggestedEntry:A=" ";
break;case Legacy.SignPageViewType.Sign:A=this.get_entry().value;break;}if(!A&&!this.get_firstName().value&&!this.get_lastName().value){return false;
}return true;},_previewEntryValidate:function(){if(Legacy.SignPageViewType.parse(this.get_currentView())==Legacy.SignPageViewType.Preview){if((this.get_notifyOnApproval()&&this.get_notifyOnApproval().checked)||(this.get_allowContactMe()&&this.get_allowContactMe().checked)||(this.get_notifyOnNewEntries()&&this.get_notifyOnNewEntries().checked)){if(this._emailNotBlank()&&this._hasValidEmail()){return false;
}}else{if(this._emailNotBlank()&&this._hasValidEmail()){return false;}else{if(!this._emailNotBlank()){return false;
}}return true;}}return true;},_loadSignState:function(){if(this.get_httpMethod()=="GET"){var C=this._getCookieValue("sc","ss");
var B=this._getCookieValue("sc","bid");var A=this._getBookIdFromRequest();if((B==A)&&(C=="0")){if(Legacy.SignPageViewType.parse(this.get_currentView())==Legacy.SignPageViewType.SuggestedEntry){return Legacy.SignEntry.SignState.Expanded;
}else{return Legacy.SignEntry.SignState.Collapsed;}}}return Legacy.SignEntry.SignState.Expanded;
},_getCookieValue:function(B,A){if((A!=null)&&(A.length>0)){var D=this._loadCookie(B);
if(B.length>0){A+="=";var E=D.indexOf(A);var C=0;if(E>-1){E+=A.length;C=D.indexOf("&",E);
if(C<E){C=D.length;}return D.substring(E,C);}}}return"";},_loadCookie:function(A){if((A!=null)&&(A.length>0)){A+="=";
if(document.cookie.length>0){var C=document.cookie.indexOf(A);var B=0;if(C>-1){C+=A.length;
B=document.cookie.indexOf(";",C);if(B<C){B=document.cookie.length;}return document.cookie.substring(C,B);
}}}return"";},_getBookIdFromRequest:function(){var A=document.URL.toLowerCase();var C=A.indexOf("bookid=");
var B=0;if(C>-1){C+=7;B=A.indexOf("&",C);if(B<C){B=A.length;}return A.substring(C,B);
}return"";}};Legacy.SignEntry.descriptor={properties:[{name:"entry",type:Object},{name:"firstName",type:Object},{name:"lastName",type:Object},{name:"city",type:Object},{name:"state",type:Object},{name:"imageUpload",type:Object},{name:"previewEntryButton",type:Object},{name:"notifyOnApproval",type:Object},{name:"allowContactMe",type:Object},{name:"notifyOnNewEntries",type:Object},{name:"submitEntry",type:Object},{name:"email",type:Object},{name:"entryBlankErrorText",type:Object},{name:"currentView",type:String},{name:"addAPhotoTabLinkButton",type:Object},{name:"invalidEmailMessage",type:Object},{name:"httpMethod",type:String},{name:"textboxFocusCssClass",type:String},{name:"textboxAutoFocus",type:Boolean},{name:"displayTabs",type:Boolean},{name:"signAlertModalWindowID",type:Boolean},{name:"alertForPreview",type:Object},{name:"alertForSubmit",type:Object},{name:"alertPreviewButton",type:Object},{name:"alertSubmitButton",type:Object},{name:"onUnloadMessage",type:String},{name:"abortOnUnload",type:Boolean}]};
Legacy.SignEntry.registerClass("Legacy.SignEntry",Sys.UI.Control);Legacy.SignPageViewType=function(){throw Error.notImplemented();
};Legacy.SignPageViewType.prototype={Sign:0,SuggestedEntry:1,Photo:2,Preview:3};Legacy.SignPageViewType.registerEnum("Legacy.SignPageViewType");
Legacy.SignEntry.SignState=function(){throw Error.notImplemented();};Legacy.SignEntry.SignState.prototype={Collapsed:0,Expanded:1};
Legacy.SignEntry.SignState.registerEnum("Legacy.SignEntry.SignState");Legacy.SignEntry.ImageState=function(){throw Error.notImplemented();
};Legacy.SignEntry.ImageState.prototype={Active:0,Inactive:1,Disabled:2,Hidden:3};
Legacy.SignEntry.ImageState.registerEnum("Legacy.SignEntry.ImageState");Type.registerNamespace("Legacy");
Legacy.SlideShow=function(A){Legacy.SlideShow.initializeBase(this,[A]);this._photo=null;
this._caption=null;this._nextPhoto=null;this._lastPhoto=null;this._nextSet=null;this._prevSet=null;
this._galleryThumbs=null;this._slideShowGallery=null;this._totalPhotoCount=null;this._captionContainer=null;
this._entriesPerSet=4;this._slideWidth=this._entriesPerSet*98.4;this._photos=null;
this._nextPhotoTop=null;this._prevPhotoTop=null;this._slideShowModalWindow=null;this._defaultPhotoUrl=null;
this._selectedEntryId=null;this._currentIndex=null;this._currentSet=null;this._photoIDPrefix="SlideShowThumbNail_";
this._photoContainerIDPrefix="ThumbContainer_";this._noPhotosMessage="There are no photos for this Guest Book.";
this._isFullyLoaded=false;this._photoSets=null;this._startingSet=null;this._maxPhotosToSlide=null;
this._slideShowLoaded=false;};Legacy.SlideShow.prototype={initialize:function(){Legacy.SlideShow.callBaseMethod(this,"initialize");
$addHandlers(this.get_nextPhoto(),{"click":Function.createDelegate(this,this._nextPhotoOnClickHandler)},this);
$addHandlers(this.get_lastPhoto(),{"click":Function.createDelegate(this,this._lastPhotoOnClickHandler)},this);
$addHandlers(this.get_nextSet(),{"click":Function.createDelegate(this,this._nextSetOnClickHandler)},this);
$addHandlers(this.get_prevSet(),{"click":Function.createDelegate(this,this._prevSetOnClickHandler)},this);
$addHandlers(this.get_nextPhotoTop(),{"click":Function.createDelegate(this,this._nextPhotoOnClickHandler)},this);
$addHandlers(this.get_prevPhotoTop(),{"click":Function.createDelegate(this,this._lastPhotoOnClickHandler)},this);
if(this.get_slideShowModalWindow()){this.get_slideShowModalWindow().add_close(this._slideShowClosedOnClickHanlder,this);
}},dispose:function(){$clearHandlers(this.get_nextPhoto());$clearHandlers(this.get_lastPhoto());
$clearHandlers(this.get_nextSet());$clearHandlers(this.get_prevSet());Legacy.SlideShow.callBaseMethod(this,"dispose");
},get_photo:function(){return this._photo;},set_photo:function(A){this._photo=A;},get_caption:function(){return this._caption;
},set_caption:function(A){this._caption=A;},get_nextPhoto:function(){return this._nextPhoto;
},set_nextPhoto:function(A){this._nextPhoto=A;},get_lastPhoto:function(){return this._lastPhoto;
},set_lastPhoto:function(A){this._lastPhoto=A;},get_nextSet:function(){return this._nextSet;
},set_nextSet:function(A){this._nextSet=A;},get_prevSet:function(){return this._prevSet;
},set_prevSet:function(A){this._prevSet=A;},get_galleryThumbs:function(){return this._galleryThumbs;
},set_galleryThumbs:function(A){this._galleryThumbs=A;},get_slideShowGallery:function(){return this._slideShowGallery;
},set_slideShowGallery:function(A){this._slideShowGallery=A;},get_totalPhotoCount:function(){return this._totalPhotoCount;
},set_totalPhotoCount:function(A){this._totalPhotoCount=A;},get_captionContainer:function(){return this._captionContainer;
},set_captionContainer:function(A){this._captionContainer=A;},get_maxPhotosToSlide:function(){return this._maxPhotosToSlide;
},set_maxPhotosToSlide:function(A){this._maxPhotosToSlide=A;},get_nextPhotoTop:function(){return this._nextPhotoTop;
},set_nextPhotoTop:function(A){this._nextPhotoTop=A;},get_prevPhotoTop:function(){return this._prevPhotoTop;
},set_prevPhotoTop:function(A){this._prevPhotoTop=A;},get_slideShowModalWindow:function(){return this._slideShowModalWindow;
},set_slideShowModalWindow:function(A){this._slideShowModalWindow=A;},get_defaultPhotoUrl:function(){return this._defaultPhotoUrl;
},set_defaultPhotoUrl:function(A){this._defaultPhotoUrl=A;},reset:function(){this._currentIndex=0;
this._isFullyLoaded=false;this._currentSet=0;this._removeAllChildControls(this.get_galleryThumbs());
},start:function(A){this.reset();this._selectedEntryId=A;if(this._photos!=undefined&&this._photos.length>0&&this._slideShowLoaded){this._initUI();
}else{getSlideShowData(this);}},getSlideShowData_callback:function(A){if(A!=undefined){if(A.length>0){this._photos=A;
this._initUI();this._slideShowLoaded=true;}else{alert(this._noPhotosMessage);}}},_slideShowClosedOnClickHanlder:function(A){this.get_photo().src=this.get_defaultPhotoUrl();
},_nextPhotoOnClickHandler:function(A){if(this._photos.length<=this.get_maxPhotosToSlide()){this._moveSlide(1);
}else{this._moveNextImage();}},_lastPhotoOnClickHandler:function(A){if(this._photos.length<=this.get_maxPhotosToSlide()){this._moveSlide(-1);
}else{this._moveLastImage();}},_nextSetOnClickHandler:function(A){if(this._photos.length<=this.get_maxPhotosToSlide()){this.nextSet();
}else{this._moveNextSet();}},_prevSetOnClickHandler:function(A){if(this._photos.length<=this.get_maxPhotosToSlide()){this._previousSet();
}else{this._movePrevSet();}},_initUI:function(){if((this._photos.length)>0){var A=Math.ceil(this._photos.length/this._entriesPerSet);
var B=this._slideWidth*A;this.get_galleryThumbs().style.width=B+"px";this._currentSet=1;
this._createSets();if(this._currentIndex>=this._photos.length||this._currentIndex<0){this._currentIndex=0;
}if(this._photos.length<=this.get_maxPhotosToSlide()){this._loadAllSets();this._setSliderPosition(this._currentSet);
}else{this._startingSet=this._currentSet;this._loadSet(this._currentSet-1);}this._switchPhoto(this._currentIndex);
this.get_totalPhotoCount().innerHTML=this._photos.length;}this.get_nextPhoto().style.visibility=(this._photos.length>1)?"visible":"hidden";
this.get_lastPhoto().style.visibility=(this._photos.length>1)?"visible":"hidden";
this.get_nextSet().style.visibility=(this._photos.length>this._entriesPerSet)?"visible":"hidden";
this.get_prevSet().style.visibility=(this._photos.length>this._entriesPerSet)?"visible":"hidden";
},_createSets:function(){var B=Math.ceil(this._photos.length/this._entriesPerSet);
this._photoSets=new Array();var A=new Array();for(var C=0;C<this._photos.length;C++){if(this._selectedEntryId==this._photos[C].PhotoId){this._currentIndex=C;
this._currentSet=Math.ceil((this._currentIndex+1)/this._entriesPerSet);}this._photos[C].index=C;
Array.add(A,this._photos[C]);if((C+1)%this._entriesPerSet==0||C==this._photos.length-1){Array.add(this._photoSets,A);
A=new Array();}}},_loadAllSets:function(){for(var B=0;B<this._photoSets.length;B++){var A=this._photoSets[B];
for(var D=0;D<A.length;D++){var C=A[D];this._addPhotoToSlider(C,true);}}},_loadSet:function(B,E){var D=null;
B=(B<=0)?0:B;this._currentSet=B;if(B<this._photoSets.length){var A=this._photoSets[B];
this._removeAllChildControls(this.get_galleryThumbs());for(var C=0;C<A.length;C++){this._addPhotoToSlider(A[C],true);
if(this._currentIndex==A[C].index){D=A[C].index;}}if(E||D==null){D=A[0].index;}this._switchPhoto(D);
}},_addPhotoToSlider:function(A,C){if(this._isFullyLoaded!=true){var B=document.createElement("div");
this._setupStyleDiv(B,A.index);var D=new Image();this._setupThumbnailImage(D,A.ThumbnailUrl,A.index);
B.appendChild(D);this.get_galleryThumbs().appendChild(B);}},_setupStyleDiv:function(A,B){A.setAttribute("id",this._photoContainerIDPrefix+B);
Sys.UI.DomElement.addCssClass(A,"SmallSlidePhoto");},_setupThumbnailImage:function(D,A,B){D.src=A;
D.id=this._photoIDPrefix+B;var C=String.format("$find('{0}')._switchPhoto({1});",this.get_id(),B);
$addHandler(D,"click",Function.createDelegate(this,new Function(C)));},_removeAllChildControls:function(A){A.innerHTML="";
},_setSliderPosition:function(A){if(A<=this._photoSets.length){this.get_slideShowGallery().scrollLeft=(392*(A-1));
}else{this._currentSet=1;this.get_slideShowGallery().scrollLeft=0;}},_moveNextSet:function(){newSet=(this._currentSet<this._photoSets.length-1)?this._currentSet+1:0;
this._loadSet(newSet,false);},_movePrevSet:function(){newSet=((this._currentSet-1)<0)?this._photoSets.length-1:this._currentSet-1;
this._loadSet(newSet,false);},_moveNextImage:function(){var A=((this._currentIndex+1)>=this._photos.length)?0:this._currentIndex+1;
var B=Math.ceil((A+1)/this._entriesPerSet);if(B!=this._currentSet+1){this._moveNextSet();
}this._switchPhoto(A);},_moveLastImage:function(){var A=(this._currentIndex-1<0)?this._photos.length-1:this._currentIndex-1;
var B=Math.ceil((A+1)/this._entriesPerSet);if(B!=this._currentSet+1){this._movePrevSet();
}this._switchPhoto(A);},_moveSlide:function(A){var C=(this._currentIndex+A<0)?this._photos.length-1:this._currentIndex+A;
if(C>=this._photos.length){C=0;}if(C<0){C=this._photos.length+A;}var D=Math.ceil((C+1)/this._entriesPerSet);
this._switchPhoto(C);if(this._currentSet!=D){var B=(D<this._currentSet);this._currentSet=D;
if(C==0||C==this._photos.length-1){this._setSliderPosition(D);}else{this._thumbNailScroll(B,0);
}}this._preloadImage(C+1);},_preloadImage:function(A){if((A)<this._photos.length){var B=new Image(25,25);
B.src=this._photos[A].Url;}},_gotoEndOfThumbStrip:function(){var A=Math.ceil((this._photos.length)/this._entriesPerSet);
this.get_slideShowGallery().scrollLeft=(392*(A-1));},_previousSet:function(){var B=this._currentSet;
var A=(B-1)<=0?(this._photoSets.length):B-1;if(A==this._photoSets.length){newIndex=this._photos.length-1;
this._switchPhoto(newIndex);this._gotoEndOfThumbStrip();}else{newIndex=((A*this._entriesPerSet)-(this._entriesPerSet-1))-1;
this._switchPhoto(newIndex);this._thumbNailScroll(true,0);}this._currentSet=A;},nextSet:function(){var B=this._currentSet;
var A=(this._photoSets.length>=B+1)?B+1:1;newIndex=((A*this._entriesPerSet)-(this._entriesPerSet-1))-1;
if(newIndex>(this._photos.length-1)){newIndex=0;}if(newIndex!=0){this._switchPhoto(newIndex);
this._thumbNailScroll(false,0);}else{this._switchPhoto(newIndex);this._setSliderPosition(newIndex);
}this._currentSet=A;},_thumbNailScroll:function(A,C){var D=8;var B=Math.ceil(392/D);
if(C<B){C++;this.get_slideShowGallery().scrollLeft+=D*(A?-1:1);if(A&&this.get_slideShowGallery().scrollLeft<=0&&C==0){this.get_slideShowGallery().scrollLeft=this.get_slideShowGallery().scrollWidth-this.get_slideShowGallery().offsetWidth;
}if(!A&&this.get_slideShowGallery().scrollLeft>this.get_slideShowGallery().scrollWidth-this.get_slideShowGallery().offsetWidth){this.get_slideShowGallery().scrollLeft=0;
}window.setTimeout("$find('"+this.get_id()+"')._thumbNailScroll("+A+","+C+")",1);
}},_switchPhoto:function(B){var A=this._photos[B];this.get_photo().src=A.Url;this.get_caption().innerHTML=A.Caption;
this.get_captionContainer().style.visibility=(A.Caption.length>0)?"visible":"hidden";
prevThumb=$get(this._photoContainerIDPrefix+this._currentIndex);nextThumb=$get(this._photoContainerIDPrefix+B);
if(prevThumb){Sys.UI.DomElement.removeCssClass(prevThumb,"SmallSlidePhotoCurrent");
}if(nextThumb){Sys.UI.DomElement.addCssClass(nextThumb,"SmallSlidePhotoCurrent");
}this._currentIndex=B;}};Legacy.SlideShow.descriptor={properties:[{name:"photo",type:Object},{name:"caption",type:Object},{name:"nextPhoto",type:Object},{name:"lastPhoto",type:Object},{name:"nextSet",type:Object},{name:"prevSet",type:Object},{name:"slideShowGallery",type:Object},{name:"galleryThumbs",type:Object},{name:"totalPhotoCount",type:Object},{name:"captionContainer",type:Object},{name:"maxPhotosToSlide",type:Object},{name:"nextPhotoTop",type:Object},{name:"prevPhotoTop",type:Object},{name:"slideShowModalWindow",type:Object},{name:"defaultPhotoUrl",type:Object}]};
Legacy.SlideShow.registerClass("Legacy.SlideShow",Sys.UI.Control);Type.registerNamespace("Legacy");
Legacy.TextBox=function(A){Legacy.TextBox.initializeBase(this,[A]);this._focusCssClass=null;
this._blurCssClass=null;};Legacy.TextBox.prototype={initialize:function(){Legacy.TextBox.callBaseMethod(this,"initialize");
if(this.get_focusCssClass()!=""||this.get_blurCssClass()!=""){$addHandlers(this.get_element(),{"focus":Function.createDelegate(this,this._focusHandler),"blur":Function.createDelegate(this,this._blurHandler)},this);
}},dispose:function(){$clearHandlers(this.get_element());Legacy.TextBox.callBaseMethod(this,"dispose");
},get_focusCssClass:function(){return(this._focusCssClass!=null)?this._focusCssClass:"";
},set_focusCssClass:function(A){var B=Function._validateParams(arguments,[{name:"value",type:String,mayBeNull:false,optional:false}]);
if(B){throw B;}if(A.valueOf()!=this.get_focusCssClass()){this._focusCssClass=A.valueOf();
this.raisePropertyChanged("focusCssClass");}},get_blurCssClass:function(){return(this._blurCssClass!=null)?this._blurCssClass:"";
},set_blurCssClass:function(A){var B=Function._validateParams(arguments,[{name:"value",type:String,mayBeNull:false,optional:false}]);
if(B){throw B;}if(A.valueOf()!=this.get_blurCssClass()){this._blurCssClass=A.valueOf();
this.raisePropertyChanged("blurCssClass");}},_focusHandler:function(B){var C=this.get_element();
var D=this.get_focusCssClass();var A=this.get_blurCssClass();if(A!=""){Sys.UI.DomElement.removeCssClass(C,A());
}if(D!=""){Sys.UI.DomElement.addCssClass(C,D);}C.select();},_blurHandler:function(B){var C=this.get_element();
var D=this.get_focusCssClass();var A=this.get_blurCssClass();if(D!=""){Sys.UI.DomElement.removeCssClass(C,D);
}if(A!=""){Sys.UI.DomElement.addCssClass(C,A);}}};Legacy.TextBox.descriptor={properties:[{name:"focusCssClass",type:String},{name:"blurCssClass",type:String}]};
Legacy.TextBox.registerClass("Legacy.TextBox",Sys.UI.Control);Type.registerNamespace("Legacy");
Legacy.UpdateProgress=function(A){Legacy.UpdateProgress.initializeBase(this,[A]);
this._cssClass=null;};Legacy.UpdateProgress.prototype={initialize:function(){Legacy.UpdateProgress.callBaseMethod(this,"initialize");
},dispose:function(){Legacy.UpdateProgress.callBaseMethod(this,"dispose");this._pageRequestManager=null;
},get_cssClass:function(){return(this._cssClass!=null)?this._cssClass:"";},set_cssClass:function(A){var B=Function._validateParams(arguments,[{name:"value",type:String,mayBeNull:false,optional:false}]);
if(B){throw B;}this._cssClass=A;},get_associatedUpdatePanelID:function(){return Legacy.UpdateProgress.callBaseMethod(this,"get_associatedUpdatePanelId");
},_handleBeginRequest:function(A,B){var D=B.get_postBackElement();var C=!this._associatedUpdatePanelId;
while(!C&&D){if(D.id&&this._associatedUpdatePanelId===D.id){C=true;}D=D.parentNode;
}if(C){this._resizeUpdateProgressElement();this._timerCookie=window.setTimeout(this._startDelegate,this._displayAfter);
}},_resizeUpdateProgressElement:function(){var C=$get(this.get_associatedUpdatePanelID());
var B=this.get_element();if(C&&B){Sys.UI.DomElement.addCssClass(B,this.get_cssClass());
B.style.zIndex=100000;var A=Sys.UI.DomElement.getBounds(C);B.style.width=A.width+"px";
B.style.height=A.height+"px";}}};Legacy.UpdateProgress.descriptor={properties:[{name:"cssClass",type:String}]};
Legacy.UpdateProgress.registerClass("Legacy.UpdateProgress",Sys.UI._UpdateProgress);
Sys.Application.notifyScriptLoaded();