
if(!dojo._hasResource["LEE.ui.global.FlashVideoController"]){dojo._hasResource["LEE.ui.global.FlashVideoController"]=true;dojo.provide("LEE.ui.global.FlashVideoController");dojo.declare("LEE.ui.global.FlashVideoController",null,{autoplay:"false",autosize:"auto",buffer:0,container:null,contentPath:"",definitionObject:null,flashPlayer:null,flashVars:{},flashParams:{},swfPath:"",height:"200",objectId:"",objectName:"",posterPath:"",prototypeObject:null,title:"",width:"200",_flashId:"hasId",_flashHasLoaded:false,constructor:function(vp){if(vp){this.definitionObject=dojo.mixin({},LEE.ui.global.FlashVideoController.DEFAULT_DEFINITIONS,vp);this.container=dojo.byId(this.definitionObject.container);this.height=this.definitionObject.height;this.width=this.definitionObject.width;if(!this.container||!this.container.id){this.container.id=LEE.util.Lang.generateId();}this.flashParams=this.definitionObject.params;this.flashVars=this.definitionObject.flashvars;this._findElements();}},embed:function(_1){if(typeof swfobject!="undefined"){if(typeof defaultVideo!="undefined"){if(typeof _1==="string"){_1=escape(_1);}this.flashVars["contentPath"]=_1;}try{swfobject.embedSWF(this.definitionObject.data,this.container.id,this.width,this.height,this.definitionObject.version,LEE.util.config.get("Locations.FLASH_EXPRESS_INSTALL"),this.flashVars,this.flashParams,{"id":this.definitionObject.id,"class":this.container.className,"name":this.definitionObject.name});return true;}catch(err){return false;}}},getFlashPlayer:function(){if(this.flashPlayer){return this.flashPlayer;}var _2=swfobject.getObjectById(this.definitionObject.id);this.flashPlayer=_2;return _2;},play:function(_3){var _4=this.getFlashPlayer();if(!_4){this.embed(_3);_4=this.getFlashPlayer();}if(_4&&_4[LEE.ui.global.FlashVideoController.FLASH_METHODS.PLAY]){_4[LEE.ui.global.FlashVideoController.FLASH_METHODS.PLAY](_3);}},pause:function(){var _5=this.getFlashPlayer();if(_5&&_5[LEE.ui.global.FlashVideoController.FLASH_METHODS.PAUSE]){_5[LEE.ui.global.FlashVideoController.FLASH_METHODS.PAUSE]();}},reset:function(){var _6=this.getFlashPlayer();if(_6&&_6[LEE.ui.global.FlashVideoController.FLASH_METHODS.RESET]){_6[LEE.ui.global.FlashVideoController.FLASH_METHODS.RESET]();}},_findElements:function(){var _7;var _8;var _9;var _a;var _b={};var _c={};var _d;var _e=dojo.query("."+LEE.ui.global.FlashVideoController.CLASSES.POSTER_IMAGE,this.container);if(_e[0]){this.posterPath=this.flashVars.posterPath=_e[0].src;}}});LEE.ui.global.FlashVideoController.CLASSES={POSTER_IMAGE:"poster_image"};LEE.ui.global.FlashVideoController.DEFAULT_DEFINITIONS={"name":"videoplayer","id":"videoplayer","container":"default_video_container","data":LEE.util.config.get("Locations.FLASH_VIDEO_PLAYER"),"width":256,"height":192,"version":"9.0.0","params":{"wmode":"transparent","allowScriptAccess":"always","allowFullScreen":"true"},"flashvars":{"autoplay":false,"buffer":2,"contentPath":LEE.util.config.get("Locations.FLASH_VIDEO_DEFAULT_CONTENT"),"posterPath":LEE.util.config.get("Locations.FLASH_VIDEO_DEFAULT_POSTER"),"title":"Video"}};LEE.ui.global.FlashVideoController.FLASH_METHODS={PLAY:"playVideo",PAUSE:"pauseVideo",RESET:"resetVideo"};}if(!dojo._hasResource["LEE.view.fitFinder.FitFinderForm"]){dojo._hasResource["LEE.view.fitFinder.FitFinderForm"]=true;dojo.provide("LEE.view.fitFinder.FitFinderForm");dojo.declare("LEE.view.fitFinder.FitFinderForm",null,{_anchorNames:[],_buttonRadioGroups:{},_states:[],currentStep:{},defaultStep:false,form:null,navButtons:null,radioBoxes:[],radioGroups:[],radioGroupsCount:0,scrollContainer:null,scrollWindow:null,showStep:null,stepLinks:null,submitButton:null,flashPlayerContainers:[],flashPlayers:[],constructor:function(){this.form=dojo.byId(LEE.view.fitFinder.FitFinderForm.IDS.FORM);if(this.form){this._findElements();if(this.stepLinks[0]&&this.stepLinks[0].href){this.defaultStep=this.stepLinks[0].href.replace(/^.*#/,"#");}this.currentStep={"index":this._getCurrentIndex()};if(this.currentStep.index<this.radioGroupsCount){this.currentStep.anchor=this.stepLinks[this.currentStep.index].href.replace(/^.*#/,"#");}else{this.currentStep.anchor="#";}this.shownStep={"index":0,"anchor":"#"+this._anchorNames[0]};if(window.location.hash){currentStepAnchorCandidate=window.location.hash.replace(/^.*#/,"#");for(var i=this.currentStep.index;i>=0;i--){if(i<this.radioGroupsCount&&this.stepLinks[i].href.replace(/^.*#/,"#")===currentStepAnchorCandidate){this.currentStep.anchor=currentStepAnchorCandidate;this.currentStep.index=this._getCurrentIndex();this.shownStep.index=i;break;}}}this._attachListeners();this._scroll();this._embedFlashPlayers();this._updateBarSteps();this._updateSubmitButton();dojo.back.setInitialState(this._states[this.shownStep.index]);}},_attachListeners:function(){dojo.forEach(this.stepLinks,function(el){dojo.connect(el,"onclick",this,this.handleClick);dojo.connect(el,"onmouseover",this,this.handleMouseOver);dojo.connect(el,"onmouseout",this,this.handleMouseOut);},this);dojo.forEach(this.radioBoxes,function(el){if(dojo.hasClass(el.parentNode,LEE.view.fitFinder.FitFinderForm.CLASSES.DIJIT_RADIO)){var _f=dijit.byNode(el.parentNode);_f.onClick=dojo.hitch(this,this.handleSelect);}else{dojo.connect(el,"onchange",this,this.handleSelect);}},this);dojo.connect(this.submitButton,"onclick",this,this.handleClick);dojo.connect(this.submitButton,"onmouseover",this,this.handleMouseOver);dojo.connect(this.submitButton,"onmouseout",this,this.handleMouseOut);},_embedFlashPlayers:function(){if(fitFinderVideoPlayers){dojo.forEach(fitFinderVideoPlayers,function(vp){var _10=new LEE.ui.global.FlashVideoController(vp);_10.embed();this.flashPlayers.push(_10);},this);}},_findElements:function(){this.scrollWindow=dojo.byId(LEE.view.fitFinder.FitFinderForm.IDS.SCROLL_WINDOW);this.scrollContainer=dojo.byId(LEE.view.fitFinder.FitFinderForm.IDS.SCROLL_CONTAINER);this.stepLinks=dojo.query("."+LEE.view.fitFinder.FitFinderForm.CLASSES.STEP,this.form);this.navButtons=dojo.query("."+LEE.view.fitFinder.FitFinderForm.CLASSES.NAV_BAR_BTN,this.form);this.submitButton=dojo.byId(LEE.view.fitFinder.FitFinderForm.IDS.SUBMIT_BUTTON);this.flashPlayerContainers=dojo.query("."+LEE.view.fitFinder.FitFinderForm.CLASSES.VIDEO_PLAYER,this.form);this.radioBoxes=dojo.query("input."+LEE.view.fitFinder.FitFinderForm.CLASSES.RADIO_BOX,this.form);if(this.radioBoxes.length===0){this.radioBoxes=[];var _11=dojo.query("div."+LEE.view.fitFinder.FitFinderForm.CLASSES.RADIO_BOX+" > input",this.form);var _12=_11.length;for(var i=_12-1;i>=0;i--){this.radioBoxes.push(_11[i]);}}dojo.forEach(this.radioBoxes,function(el){if(!this.radioGroups[el.name]){this.radioGroups[el.name]=el.name;this.radioGroupsCount++;}},this);dojo.forEach(document.anchors,function(el){if(el.name){this._anchorNames.push(el.name);this._states.push({handle:dojo.hitch(this,function(_13){this.handleClick({target:{href:"#"+el.name},fromHistoryManager:true});})});}},this);},_getRadioGroupFromButton:function(el){if(this._buttonRadioGroups[el.className]){return this._buttonRadioGroups[el.className];}var _14=el.className;_14=_14.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.NAV_BAR_BTN,"");_14=_14.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.STEP,"");_14=_14.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED,"");_14=_14.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT,"");_14=_14.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.HOVER,"");var _15=_14.split(" ");for(var i=_15.length-1;i>=0;i--){if(this.radioGroups.hasOwnProperty(_15[i])){this._buttonRadioGroups[el.className]=_15[i];return _15[i];}}},_getCurrentIndex:function(){var _16=0;for(var i in this.radioGroups){if(this.radioGroups.hasOwnProperty(i)){if(LEE.ui.form.Form.findRadioValue(document[this.form.name][this.radioGroups[i]])){_16++;}}}return _16;},_pauseAllMovies:function(){dojo.forEach(this.flashPlayers,function(obj){obj.pause();},this);},_scroll:function(){var _17;var _18;var _19=0;_18=this.currentStep.anchor.replace(/^.*#/,"");_17=dojo.byId(_18);if(!_17||!_17.hasOwnProperty){dojo.forEach(document.anchors,function(el){if(el.name===_18){_17=el;}},this);}if(_17&&this.scrollWindow&&this.scrollContainer){_19=dojo.coords(_17).x-dojo.coords(this.scrollWindow).x-dojo.coords(this.scrollContainer).l;if(dojo.isOpera){_19=dojo.coords(_17).x-dojo.coords(this.scrollWindow).x;}_19=Math.min(0,0-_19);dojo.fx.slideTo({node:this.scrollContainer,duration:400,top:0,left:_19}).play();}this.shownStep.index=dojo.indexOf(this._anchorNames,_18);},_updateBarSteps:function(e,_1a){var _1b=[this.stepLinks,this.navButtons];for(var i=_1b.length-1;i>=0;i--){for(var j=_1b[i].length-1;j>=0;j--){if(j===this.shownStep.index){dojo.addClass(_1b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT);}else{dojo.removeClass(_1b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT);}var _1c=LEE.ui.form.Form.findRadioValue(document[this.form.name][this._getRadioGroupFromButton(_1b[i][j])]);if(_1c){dojo.addClass(_1b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);dojo.removeClass(_1b[i][j],"none");dojo.forEach(dojo.query("span",_1b[i][j]),function(_1d){_1d.innerHTML=_1c;},this);}}}},_updateSubmitButton:function(){var _1e;if(this.currentStep.index===this.radioGroupsCount||this.shownStep.index===this.radioGroupsCount-1){this.submitButton.href=LEE.view.fitFinder.FitFinderForm.SUBMIT_LINK;dojo.empty(this.submitButton);dojo.place(dojo.create("span",{innerHTML:LEE.view.fitFinder.FitFinderForm.SUBMIT_TEXT}),this.submitButton);if(this.currentStep.index===this.radioGroupsCount){dojo.removeClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.DISABLED);}else{dojo.addClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.DISABLED);}}else{_1e=this.submitButton.href;if(this.stepLinks[this.shownStep.index+1]){_1e=this.stepLinks[this.shownStep.index+1].href.replace(/^.*#/,"#");}this.submitButton.href=_1e;dojo.empty(this.submitButton);dojo.place(dojo.create("span",{innerHTML:LEE.view.fitFinder.FitFinderForm.NEXT_TEXT}),this.submitButton);if(this.shownStep.index<this.currentStep.index){dojo.removeClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.DISABLED);}else{dojo.addClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.DISABLED);}}},handleClick:function(e){try{dojo.stopEvent(e);}catch(err){}var _1f;var _20=this.shownStep.index;var t;if(e&&e.target&&e.target.href){t=e.target;}else{if(e&&e.currentTarget&&e.currentTarget.href){t=e.currentTarget;}}if(t&&t.href){if(t===this.submitButton&&this.currentStep.index===this.radioGroupsCount){var _21=dojo.query("input",this.form);for(var i=0;i<_21.length;i++){if(dojo.hasClass(_21[i].parentNode,LEE.view.fitFinder.FitFinderForm.CLASSES.DIJIT_CHECKED)){_21[i].checked="checked";}}this.form.submit();return true;}_1f=t.href.replace(/^.*#/,"#");for(var i=Math.min(this.currentStep.index,this.radioGroupsCount-1);i>=0;i--){if(this.stepLinks[i].href.replace(/^.*#/,"#")===_1f){this.currentStep.anchor=_1f;this.currentStep.index=this._getCurrentIndex();}}}this.shownStep.index=dojo.indexOf(this._anchorNames,this.currentStep.anchor.replace(/^.*#/,""));if(this.shownStep.index!==_20){this._pauseAllMovies();this._scroll(e);this._updateBarSteps();this._updateSubmitButton();if(this._states[this.shownStep.index]&&!e.fromHistoryManager){dojo.back.addToHistory(this._states[this.shownStep.index]);}}},handleMouseOver:function(e){if(e&&e.target&&e.target.href){var _22=e.target.href.replace(/^.*#/,"");if(dojo.indexOf(this._anchorNames,_22)<this.currentStep.index){dojo.addClass(e.target,LEE.view.fitFinder.FitFinderForm.CLASSES.HOVER);}}},handleMouseOut:function(e){dojo.removeClass(e.target,LEE.view.fitFinder.FitFinderForm.CLASSES.HOVER);},handleSelect:function(e){this.currentStep.index=this._getCurrentIndex();if(this.currentStep.index<this.radioGroupsCount){this.currentStep.anchor=this.stepLinks[this.currentStep.index].href.replace(/^.*#/,"#");}else{this.currentStep.anchor="#";}this._updateBarSteps();this._updateSubmitButton();}});LEE.view.fitFinder.FitFinderForm.NEXT_TEXT="Next";LEE.view.fitFinder.FitFinderForm.SUBMIT_LINK="#submit";LEE.view.fitFinder.FitFinderForm.SUBMIT_TEXT="Submit";LEE.view.fitFinder.FitFinderForm.IDS={FORM:"fitFinderForm",SCROLL_CONTAINER:"scroll",SCROLL_WINDOW:"scroll_window",SUBMIT_BUTTON:"btn_submit"};LEE.view.fitFinder.FitFinderForm.CLASSES={DIJIT_CHECKED:"dijitRadioChecked",DIJIT_RADIO:"dijitRadio",COMPLETED:"completed",CURRENT:"current",HOVER:"hover",DISABLED:"disabled",NAV_BAR_BTN:"btn_fitfinder_navbar",RADIO_BOX:"radiobox",STEP:"fitfinder_step",VIDEO_PLAYER:"videoplayer"};}if(!dojo._hasResource["LEE.view.fitFinder.FitFinderLandingAnim"]){dojo._hasResource["LEE.view.fitFinder.FitFinderLandingAnim"]=true;dojo.provide("LEE.view.fitFinder.FitFinderLandingAnim");LEE.view.fitFinder.FitFinderLandingAnim=function(){var _23=dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.ARROW_MEN);var _24=dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.ARROW_WOMEN);if(dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.LANDING)&&visitedFitFinderLanding==false){setTimeout(_25,0);setTimeout(_26,0);}function _26(){var _27=[];_27.push(dojo.fx.slideTo({node:_24,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION,top:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.TOP,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.LEFT}));_27.push(dojo.fx.slideTo({node:_23,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION,top:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.TOP,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.LEFT}));if(!dojo.isIE){_27.push(dojo.fadeIn({node:_24,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION}));_27.push(dojo.fadeIn({node:_23,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION}));}dojo.fx.combine(_27).play();};function _25(){if(dojo.isIE>6){dojo.style(_24,{left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.START+"px"});dojo.style(_23,{left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.START+"px"});}else{if(!dojo.isIE){dojo.style(_24,{opacity:LEE.view.fitFinder.FitFinderLandingAnim.OPACITY,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.START+"px"});dojo.style(_23,{opacity:LEE.view.fitFinder.FitFinderLandingAnim.OPACITY,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.START+"px"});}}dojo.removeClass(_23,LEE.view.fitFinder.FitFinderLandingAnim.CLASSES.HIDDEN);dojo.removeClass(_24,LEE.view.fitFinder.FitFinderLandingAnim.CLASSES.HIDDEN);};};LEE.view.fitFinder.FitFinderLandingAnim.CLASSES={ANIMATED_ARROW:"animated_arrow",HIDDEN:"hidden"};LEE.view.fitFinder.FitFinderLandingAnim.COORDS={MEN:{LEFT:157,START:177,TOP:113},WOMEN:{LEFT:36,START:16,TOP:113}};LEE.view.fitFinder.FitFinderLandingAnim.DURATION=400;LEE.view.fitFinder.FitFinderLandingAnim.IDS={ARROW_MEN:"btn_getstarted_men",ARROW_WOMEN:"btn_getstarted_women",LANDING:"fitFinder_landing"};LEE.view.fitFinder.FitFinderLandingAnim.OPACITY=0;}if(!dojo._hasResource["LEE.view.fitFinder.FitSaveController"]){dojo._hasResource["LEE.view.fitFinder.FitSaveController"]=true;dojo.provide("LEE.view.fitFinder.FitSaveController");LEE.view.fitFinder.FitSaveController.form=null;LEE.view.fitFinder.FitSaveController._handleFormCreated=function(_28,_29){if(_28=="LEE.view.fitFinder.OverwriteForm"||_28=="LEE.view.fitFinder.ReplaceForm"){if(LEE.view.fitFinder.FitSaveController.form){LEE.view.fitFinder.FitSaveController.form.destroy();}LEE.view.fitFinder.FitSaveController.form=_29;}};LEE.view.fitFinder.FitSaveController._handleSaveResponse=function(_2a,_2b){if(LEE.view.fitFinder.FitSaveController.form){LEE.view.fitFinder.FitSaveController.form.destroy();LEE.view.fitFinder.FitSaveController.form=null;}LEE.dialog({},_2a,LEE.util.config.get("Messages.SAVE_YOUR_PROFILE"));};LEE.view.fitFinder.FitSaveController._handleSaveError=function(err){if(LEE.view.fitFinder.FitSaveController.form){LEE.view.fitFinder.FitSaveController.form.destroy();LEE.view.fitFinder.FitSaveController.form=null;}LEE.alert(err);};LEE.view.fitFinder.FitSaveController._handleSaveCancel=function(err){dojo.publish(LEE.event.GlobalEventNames.DIALOG_FINISHED);};LEE.view.fitFinder.FitSaveController._handleSaveSuccess=function(_2c){var _2d=dojo.byId(LEE.view.fitFinder.FitSaveController.IDS.PROFILE_NAME);if(_2d&&_2c){_2d.innerHTML=_2c;}var _2e=dojo.byId(LEE.view.fitFinder.FitSaveController.IDS.PROFILE_INPUT_FIELD);if(_2e&&_2c){_2e.value=_2c;}hasProfile=true;};LEE.view.fitFinder.FitSaveController.IDS={PROFILE_NAME:"fitfinder_profile_name",PROFILE_INPUT_FIELD:"fitfinder_save_profile_name"};dojo.subscribe(LEE.event.FormEventNames.CREATED,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleFormCreated);dojo.subscribe(LEE.event.ModelEventNames.FIT_SAVE_RESPONSE,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveResponse);dojo.subscribe(LEE.event.ModelEventNames.FIT_SAVE_ERROR,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveError);dojo.subscribe(LEE.event.ModelEventNames.FIT_OVERWRITE_RESPONSE,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveResponse);dojo.subscribe(LEE.event.ModelEventNames.FIT_OVERWRITE_ERROR,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveError);dojo.subscribe(LEE.event.ModelEventNames.FIT_SAVE_CANCEL,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveCancel);dojo.subscribe(LEE.event.ModelEventNames.FIT_SAVE_SUCCESS,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveSuccess);dojo.subscribe(LEE.event.ModelEventNames.FIT_DELETE_RESPONSE,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveResponse);dojo.subscribe(LEE.event.ModelEventNames.FIT_DELETE_ERROR,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveError);dojo.subscribe(LEE.event.FormEventNames.SUCCESS,LEE.view.fitFinder.FitSaveController,LEE.view.fitFinder.FitSaveController._handleSaveSuccess);}if(!dojo._hasResource["LEE.view.fitFinder.DeleteForm"]){dojo._hasResource["LEE.view.fitFinder.DeleteForm"]=true;dojo.provide("LEE.view.fitFinder.DeleteForm");dojo.declare("LEE.view.fitFinder.DeleteForm",LEE.ui.form.Form,{button:null,cancelButton:null,form:null,model:null,constructor:function(_2f){if(!_2f){this.form=dojo.byId(LEE.view.fitFinder.DeleteForm.IDS.FORM);this._startup();}this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.FIT_MODEL);},_attachListeners:function(){this.inherited(arguments);if(this.button){this.connections.push(dojo.connect(this.button,"onclick",this,this.onSubmit));}if(this.cancelButton){this.connections.push(dojo.connect(this.cancelButton,"onclick",this,this.onCancel));}},_findElements:function(){this.inherited(arguments);this.button=dojo.byId(LEE.view.fitFinder.DeleteForm.IDS.BUTTON);this.cancelButton=dojo.byId(LEE.view.fitFinder.DeleteForm.IDS.CANCEL);},onSubmit:function(e){if(e){dojo.stopEvent(e);}if(this._validateForm()&&this.form&&this.model){this.model.deleteProfile(this.form,this.form.action);}},onSubmitSuccess:function(_30,_31){this.inherited(arguments);},onSubmitError:function(_32,_33){this.inherited(arguments);}});LEE.view.fitFinder.DeleteForm.CLASSES={};LEE.view.fitFinder.DeleteForm.IDS={BUTTON:"btn_deletecontinue",CANCEL:"btn_deletecancel",FORM:"profile_delete_form"};}if(!dojo._hasResource["LEE.view.fitFinder.OverwriteForm"]){dojo._hasResource["LEE.view.fitFinder.OverwriteForm"]=true;dojo.provide("LEE.view.fitFinder.OverwriteForm");dojo.declare("LEE.view.fitFinder.OverwriteForm",LEE.ui.form.Form,{button:null,cancelButton:null,form:null,model:null,constructor:function(_34){if(!_34){this.form=dojo.byId(LEE.view.fitFinder.OverwriteForm.IDS.FORM);this._startup();}this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.FIT_MODEL);},_attachListeners:function(){this.inherited(arguments);if(this.button){this.connections.push(dojo.connect(this.button,"onclick",this,this.onSubmit));}if(this.cancelButton){this.connections.push(dojo.connect(this.cancelButton,"onclick",this,this.onCancel));}},_findElements:function(){this.inherited(arguments);this.button=dojo.byId(LEE.view.fitFinder.OverwriteForm.IDS.BUTTON);this.cancelButton=dojo.byId(LEE.view.fitFinder.OverwriteForm.IDS.CANCEL);},onSubmit:function(e){if(e){dojo.stopEvent(e);}if(this._validateForm()&&this.form&&this.model){this.model.overwriteProfile(this.form,this.form.action);}},onSubmitSuccess:function(_35,_36){this.inherited(arguments);},onSubmitError:function(_37,_38){this.inherited(arguments);}});LEE.view.fitFinder.OverwriteForm.CLASSES={};LEE.view.fitFinder.OverwriteForm.IDS={BUTTON:"btn_newnamesave",CANCEL:"btn_newnamecancel",FORM:"profile_overwrite_form"};}if(!dojo._hasResource["LEE.view.fitFinder.SaveForm"]){dojo._hasResource["LEE.view.fitFinder.SaveForm"]=true;dojo.provide("LEE.view.fitFinder.SaveForm");dojo.declare("LEE.view.fitFinder.SaveForm",LEE.ui.form.Form,{button:null,form:null,model:null,constructor:function(_39){if(!_39){this.form=dojo.byId(LEE.view.fitFinder.SaveForm.IDS.FORM);this._startup();}this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.FIT_MODEL);this.invalidMessage=LEE.util.config.get("Messages.SAVE_PROFILE_ERROR");},_attachListeners:function(){this.inherited(arguments);if(this.button){dojo.connect(this.button,"onclick",this,this.onSubmit);}},_findElements:function(){this.inherited(arguments);this.button=dojo.byId(LEE.view.fitFinder.SaveForm.IDS.BUTTON);},onSubmit:function(e){if(e){dojo.stopEvent(e);}if(this._validateForm()&&this.form&&this.model){this.model.saveProfile(this.form,this.form.action);}},onSubmitSuccess:function(_3a,_3b){this.inherited(arguments);},onSubmitError:function(_3c,_3d){this.inherited(arguments);}});LEE.view.fitFinder.SaveForm.CLASSES={};LEE.view.fitFinder.SaveForm.IDS={BUTTON:"btn_saveprofile",FORM:"profile_save_form"};}if(!dojo._hasResource["LEE.FitFinder"]){dojo._hasResource["LEE.FitFinder"]=true;dojo.provide("LEE.FitFinder");dojo.subscribe(LEE.event.GlobalEventNames.GLOBAL_LOADED,this,function(){LEE.fitFinderForm=new LEE.view.fitFinder.FitFinderForm();LEE.fitFinderLandingAnim=new LEE.view.fitFinder.FitFinderLandingAnim();LEE.fitFinderSaveForm=new LEE.view.fitFinder.SaveForm();var _3e=dojo.byId("btn_manage_fit");if(_3e){dojo.connect(_3e,"onclick",this,LEE.ui.global.Dialog);}});}
