Type.registerNamespace("VacationRoost.Athena");VacationRoost.Athena.PropertySpecialsControl=function(A){VacationRoost.Athena.PropertySpecialsControl.initializeBase(this,[A]);this._innerHeight=0;this._moreLink=null;this._currentDialogElement=null};VacationRoost.Athena.PropertySpecialsControl.prototype={initialize:function(){VacationRoost.Athena.PropertySpecialsControl.callBaseMethod(this,"initialize");if(this._moreLink){var D=0;var C=this.get_element().childNodes;for(var B=0;B<C.length;B++){D+=(C[B].clientHeight||0)}this._innerHeight=D;if(D<130){this._moreLink.style.display="none"}else{$(this.get_element()).height(116);$addHandler(this._moreLink,"click",Function.createDelegate(this,this._moreClickHandler))}}var A=this;$(".exclusionsLink",this.get_element()).click(function(E){A._specialsClickHandler(this)});$(".closeSpecialDetailsLink",this.get_element()).click(function(E){A._closeButtonClickHandler(this)})},_moreClickHandler:function(A){$(this._moreLink).slideUp("normal");$(this.get_element()).animate({height:this._innerHeight},"normal")},_specialsClickHandler:function(A){if(!A._currentDialog){A._currentDialog=$(A).closest(".specialInformation").find("section.specialsFinePrint").dialog({autoOpen:false,modal:true,width:400,height:300})}A._currentDialog.dialog("open");window.focus();this._currentDialogElement=A},_closeButtonClickHandler:function(A){if(this._currentDialogElement._currentDialog){this._currentDialogElement._currentDialog.dialog("close")}},get_moreLink:function(){return this._moreLink},set_moreLink:function(A){this._moreLink=A},dispose:function(){VacationRoost.Athena.PropertySpecialsControl.callBaseMethod(this,"dispose")}};VacationRoost.Athena.PropertySpecialsControl.registerClass("VacationRoost.Athena.PropertySpecialsControl",Sys.UI.Control);if(typeof (Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};
