
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(_2){if(typeof swfobject!="undefined"){if(typeof defaultVideo!="undefined"){if(typeof _2==="string"){_2=escape(_2);}this.flashVars["contentPath"]=_2;}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 _3=swfobject.getObjectById(this.definitionObject.id);this.flashPlayer=_3;return _3;},play:function(_4){var _5=this.getFlashPlayer();if(!_5){this.embed(_4);_5=this.getFlashPlayer();}if(_5&&_5[LEE.ui.global.FlashVideoController.FLASH_METHODS.PLAY]){_5[LEE.ui.global.FlashVideoController.FLASH_METHODS.PLAY](_4);}},pause:function(){var _6=this.getFlashPlayer();if(_6&&_6[LEE.ui.global.FlashVideoController.FLASH_METHODS.PAUSE]){_6[LEE.ui.global.FlashVideoController.FLASH_METHODS.PAUSE]();}},reset:function(){var _7=this.getFlashPlayer();if(_7&&_7[LEE.ui.global.FlashVideoController.FLASH_METHODS.RESET]){_7[LEE.ui.global.FlashVideoController.FLASH_METHODS.RESET]();}},_findElements:function(){var _8;var _9;var _a;var _b;var _c={};var _d={};var _e;var _f=dojo.query("."+LEE.ui.global.FlashVideoController.CLASSES.POSTER_IMAGE,this.container);if(_f[0]){this.posterPath=this.flashVars.posterPath=_f[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()};this.currentStep.anchor=this.stepLinks[this.currentStep.index].href.replace(/^.*#/,"#");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(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 _13=dijit.byNode(el.parentNode);_13.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 _15=new LEE.ui.global.FlashVideoController(vp);_15.embed();this.flashPlayers.push(_15);},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=dojo.query("div."+LEE.view.fitFinder.FitFinderForm.CLASSES.RADIO_BOX+" > input",this.form);var _16=this.radioBoxes.length;if(_16>1){var _17=this.radioBoxes[0].id;_17=parseInt(_17.substring(_17.lastIndexOf("_")+1,_17.length));var _18=this.radioBoxes[1].id;_18=parseInt(_18.substring(_18.lastIndexOf("_")+1,_18.length));if(_17>_18){for(var i=0;i<_16/2;i++){var _1a=this.radioBoxes[i];this.radioBoxes[i]=this.radioBoxes[_16-1-i];this.radioBoxes[_16-1-i]=_1a;}}}}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(_1d){this.handleClick({target:{href:"#"+el.name},fromHistoryManager:true});})});}},this);},_getRadioGroupFromButton:function(el){if(this._buttonRadioGroups[el.className]){return this._buttonRadioGroups[el.className];}var _1f=el.className;_1f=_1f.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.NAV_BAR_BTN,"");_1f=_1f.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.STEP,"");_1f=_1f.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED,"");_1f=_1f.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT,"");_1f=_1f.replace(LEE.view.fitFinder.FitFinderForm.CLASSES.HOVER,"");var _20=_1f.split(" ");for(var i=_20.length-1;i>=0;i--){if(this.radioGroups.hasOwnProperty(_20[i])){this._buttonRadioGroups[el.className]=_20[i];return _20[i];}}},_getCurrentIndex:function(){var _22=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]])){_22++;}}}return _22;},_pauseAllMovies:function(){dojo.forEach(this.flashPlayers,function(obj){obj.pause();},this);},_scroll:function(){var _25;var _26;var _27=0;_26=this.currentStep.anchor.replace(/^.*#/,"");_25=dojo.byId(_26);if(!_25||!_25.hasOwnProperty){dojo.forEach(document.anchors,function(el){if(el.name===_26){_25=el;}},this);}if(_25&&this.scrollWindow&&this.scrollContainer){_27=dojo.coords(_25).x-dojo.coords(this.scrollWindow).x-dojo.coords(this.scrollContainer).l;if(dojo.isOpera){_27=dojo.coords(_25).x-dojo.coords(this.scrollWindow).x;}_27=Math.min(0,0-_27);dojo.fx.slideTo({node:this.scrollContainer,duration:400,top:0,left:_27}).play();}this.shownStep.index=dojo.indexOf(this._anchorNames,_26);},_updateBarSteps:function(e,_2a){var _2b=[this.stepLinks,this.navButtons];for(var i=_2b.length-1;i>=0;i--){for(var j=_2b[i].length-1;j>=0;j--){if(j===this.shownStep.index){dojo.addClass(_2b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT);}else{dojo.removeClass(_2b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.CURRENT);}var _2e=LEE.ui.form.Form.findRadioValue(document[this.form.name][this._getRadioGroupFromButton(_2b[i][j])]);if(_2e){dojo.addClass(_2b[i][j],LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);dojo.removeClass(_2b[i][j],"none");dojo.forEach(dojo.query("span",_2b[i][j]),function(_2f){_2f.innerHTML=_2e;},this);}}}},_updateSubmitButton:function(){var _30;if(this.currentStep.index===this.radioGroupsCount||this.shownStep.index===this.radioGroupsCount-1){this.submitButton.href=LEE.view.fitFinder.FitFinderForm.SUBMIT_LINK;this.submitButton.innerHTML=LEE.view.fitFinder.FitFinderForm.SUBMIT_TEXT;dojo.style(this.submitButton,"backgroundImage","url("+LEE.util.config.get("Locations.FIT_FINDER_BUTTON_SUBMIT")+")");if(this.currentStep.index===this.radioGroupsCount){dojo.addClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);}else{dojo.removeClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);}}else{_30=this.submitButton.href;if(this.stepLinks[this.shownStep.index+1]){_30=this.stepLinks[this.shownStep.index+1].href.replace(/^.*#/,"#");}this.submitButton.href=_30;this.submitButton.innerHTML=LEE.view.fitFinder.FitFinderForm.NEXT_TEXT;dojo.style(this.submitButton,"backgroundImage","url("+LEE.util.config.get("Locations.FIT_FINDER_BUTTON_NEXT")+")");if(this.shownStep.index<this.currentStep.index){dojo.addClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);}else{dojo.removeClass(this.submitButton,LEE.view.fitFinder.FitFinderForm.CLASSES.COMPLETED);}}},handleClick:function(e){try{dojo.stopEvent(e);}catch(err){}var _32;var _33=this.shownStep.index;if(e&&e.target&&e.target.href){if(e.target===this.submitButton&&this.currentStep.index===this.radioGroupsCount){var _34=dojo.query("input",this.form);for(var i=0;i<_34.length;i++){if(dojo.hasClass(_34[i].parentNode,LEE.view.fitFinder.FitFinderForm.CLASSES.DIJIT_CHECKED)){_34[i].checked="checked";}}this.form.submit();return true;}_32=e.target.href.replace(/^.*#/,"#");for(var i=this.currentStep.index;i>=0;i--){if(this.stepLinks[i].href.replace(/^.*#/,"#")===_32){this.currentStep.anchor=_32;this.currentStep.index=this._getCurrentIndex();}}}this.shownStep.index=dojo.indexOf(this._anchorNames,this.currentStep.anchor.replace(/^.*#/,""));if(this.shownStep.index!==_33){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 _37=e.target.href.replace(/^.*#/,"");if(dojo.indexOf(this._anchorNames,_37)<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();this.currentStep.anchor=this.stepLinks[this.currentStep.index].href.replace(/^.*#/,"#");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",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 _3a=dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.ARROW_MEN);var _3b=dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.ARROW_WOMEN);if(dojo.byId(LEE.view.fitFinder.FitFinderLandingAnim.IDS.LANDING)&&visitedFitFinderLanding==false){setTimeout(setupNodes,0);setTimeout(combineFx,0);}function combineFx(){var _3c=[];_3c.push(dojo.fx.slideTo({node:_3b,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION,top:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.TOP,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.LEFT}));_3c.push(dojo.fx.slideTo({node:_3a,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){_3c.push(dojo.fadeIn({node:_3b,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION}));_3c.push(dojo.fadeIn({node:_3a,duration:LEE.view.fitFinder.FitFinderLandingAnim.DURATION}));}dojo.fx.combine(_3c).play();};function setupNodes(){if(dojo.isIE>6){dojo.style(_3b,{left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.START+"px"});dojo.style(_3a,{left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.START+"px"});}else{if(!dojo.isIE){dojo.style(_3b,{opacity:LEE.view.fitFinder.FitFinderLandingAnim.OPACITY,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.WOMEN.START+"px"});dojo.style(_3a,{opacity:LEE.view.fitFinder.FitFinderLandingAnim.OPACITY,left:LEE.view.fitFinder.FitFinderLandingAnim.COORDS.MEN.START+"px"});}}dojo.removeClass(_3a,LEE.view.fitFinder.FitFinderLandingAnim.CLASSES.HIDDEN);dojo.removeClass(_3b,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(_3d,_3e){if(_3d=="LEE.view.fitFinder.OverwriteForm"||_3d=="LEE.view.fitFinder.ReplaceForm"){if(LEE.view.fitFinder.FitSaveController.form){LEE.view.fitFinder.FitSaveController.form.destroy();}LEE.view.fitFinder.FitSaveController.form=_3e;}};LEE.view.fitFinder.FitSaveController._handleSaveResponse=function(_3f,_40){if(LEE.view.fitFinder.FitSaveController.form){LEE.view.fitFinder.FitSaveController.form.destroy();LEE.view.fitFinder.FitSaveController.form=null;}LEE.dialog({},_3f,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(_43){var _44=dojo.byId(LEE.view.fitFinder.FitSaveController.IDS.PROFILE_NAME);if(_44&&_43){_44.innerHTML=_43;}var _45=dojo.byId(LEE.view.fitFinder.FitSaveController.IDS.PROFILE_INPUT_FIELD);if(_45&&_43){_45.value=_43;}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(_46){if(!_46){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(_48,_49){this.inherited(arguments);},onSubmitError:function(_4a,_4b){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(_4c){if(!_4c){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(_4e,_4f){this.inherited(arguments);},onSubmitError:function(_50,_51){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(_52){if(!_52){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(_54,_55){this.inherited(arguments);},onSubmitError:function(_56,_57){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 _58=dojo.byId("btn_manage_fit");if(_58){dojo.connect(_58,"onclick",this,LEE.ui.global.Dialog);}});}