
if(!dojo._hasResource["dojo.back"]){dojo._hasResource["dojo.back"]=true;dojo.provide("dojo.back");(function(){var _1=dojo.back;function getHash(){var h=window.location.hash;if(h.charAt(0)=="#"){h=h.substring(1);}return dojo.isMozilla?h:decodeURIComponent(h);};function setHash(h){if(!h){h="";}window.location.hash=encodeURIComponent(h);_4=history.length;};if(dojo.exists("tests.back-hash")){_1.getHash=getHash;_1.setHash=setHash;}var _5=(typeof (window)!=="undefined")?window.location.href:"";var _6=(typeof (window)!=="undefined")?getHash():"";var _7=null;var _8=null;var _9=null;var _a=null;var _b=[];var _c=[];var _d=false;var _e=false;var _4;function handleBackButton(){var _f=_c.pop();if(!_f){return;}var _10=_c[_c.length-1];if(!_10&&_c.length==0){_10=_7;}if(_10){if(_10.kwArgs["back"]){_10.kwArgs["back"]();}else{if(_10.kwArgs["backButton"]){_10.kwArgs["backButton"]();}else{if(_10.kwArgs["handle"]){_10.kwArgs.handle("back");}}}}_b.push(_f);};_1.goBack=handleBackButton;function handleForwardButton(){var _11=_b.pop();if(!_11){return;}if(_11.kwArgs["forward"]){_11.kwArgs.forward();}else{if(_11.kwArgs["forwardButton"]){_11.kwArgs.forwardButton();}else{if(_11.kwArgs["handle"]){_11.kwArgs.handle("forward");}}}_c.push(_11);};_1.goForward=handleForwardButton;function createState(url,_13,_14){return {"url":url,"kwArgs":_13,"urlHash":_14};};function getUrlQuery(url){var _16=url.split("?");if(_16.length<2){return null;}else{return _16[1];}};function loadIframeHistory(){var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();_d=true;if(_a){dojo.isSafari?_a.location=url:window.frames[_a.name].location=url;}else{}return url;};function checkLocation(){if(!_e){var hsl=_c.length;var _19=getHash();if((_19===_6||window.location.href==_5)&&(hsl==1)){handleBackButton();return;}if(_b.length>0){if(_b[_b.length-1].urlHash===_19){handleForwardButton();return;}}if((hsl>=2)&&(_c[hsl-2])){if(_c[hsl-2].urlHash===_19){handleBackButton();return;}}if(dojo.isSafari&&dojo.isSafari<3){var _1a=history.length;if(_1a>_4){handleForwardButton();}else{if(_1a<_4){handleBackButton();}}_4=_1a;}}};_1.init=function(){if(dojo.byId("dj_history")){return;}var src=dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html");document.write("<iframe style=\"border:0;width:1px;height:1px;position:absolute;visibility:hidden;bottom:0;right:0;\" name=\"dj_history\" id=\"dj_history\" src=\""+src+"\"></iframe>");};_1.setInitialState=function(_1c){_7=createState(_5,_1c,_6);};_1.addToHistory=function(_1d){_b=[];var _1e=null;var url=null;if(!_a){if(dojo.config["useXDomain"]&&!dojo.config["dojoIframeHistoryUrl"]){console.warn("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");}_a=window.frames["dj_history"];}if(!_9){_9=document.createElement("a");dojo.body().appendChild(_9);_9.style.display="none";}if(_1d["changeUrl"]){_1e=((_1d["changeUrl"]!==true)?_1d["changeUrl"]:(new Date()).getTime());if(_c.length==0&&_7.urlHash==_1e){_7=createState(url,_1d,_1e);return;}else{if(_c.length>0&&_c[_c.length-1].urlHash==_1e){_c[_c.length-1]=createState(url,_1d,_1e);return;}}_e=true;setTimeout(function(){setHash(_1e);_e=false;},1);_9.href="#"+_1e;if(dojo.isIE){url=loadIframeHistory();var _20=_1d["back"]||_1d["backButton"]||_1d["handle"];var tcb=function(_22){if(getHash()!=""){setTimeout(function(){setHash(_1e);},1);}_20.apply(this,[_22]);};if(_1d["back"]){_1d.back=tcb;}else{if(_1d["backButton"]){_1d.backButton=tcb;}else{if(_1d["handle"]){_1d.handle=tcb;}}}var _23=_1d["forward"]||_1d["forwardButton"]||_1d["handle"];var tfw=function(_25){if(getHash()!=""){setHash(_1e);}if(_23){_23.apply(this,[_25]);}};if(_1d["forward"]){_1d.forward=tfw;}else{if(_1d["forwardButton"]){_1d.forwardButton=tfw;}else{if(_1d["handle"]){_1d.handle=tfw;}}}}else{if(!dojo.isIE){if(!_8){_8=setInterval(checkLocation,200);}}}}else{url=loadIframeHistory();}_c.push(createState(url,_1d,_1e));};_1._iframeLoaded=function(evt,_27){var _28=getUrlQuery(_27.href);if(_28==null){if(_c.length==1){handleBackButton();}return;}if(_d){_d=false;return;}if(_c.length>=2&&_28==getUrlQuery(_c[_c.length-2].url)){handleBackButton();}else{if(_b.length>0&&_28==getUrlQuery(_b[_b.length-1].url)){handleForwardButton();}}};})();}if(!dojo._hasResource["LEE.util.Config"]){dojo._hasResource["LEE.util.Config"]=true;dojo.provide("LEE.util.Config");LEE.util._config=null;LEE.util.config={GlobalElementIds:{EMAIL_SUBSCRIPTION:"email_signup_footer",FOOTER:"footer",GLOBAL_ACCOUNT:"tl_myaccount",GLOBAL_BAG:"tl_shoppingbag",GLOBAL_WISHLIST:"tl_wishlist",HEADER:"header",IE6_IFRAME_SHIM:"selectMask",SELECTION_TREE_DETAIL:"selectionTreeDetail",SIGN_IN_FORM:"tl_myaccount",SIGN_IN_FORM:"tl_myaccount",STATUS_MESSAGE:"status_message"},Locations:{VIEW_LARGER:"/services/catalog/enlargeImage.php",ACCOUNT_ADDRESS_SERVICE:"/services/checkout/getStoredAddress.php",ACCOUNT_DELETE_ADDRESS_SERVICE:"/services/myAccount/updateSavedAddress.php",ACCOUNT_MENU_CONTENT_SERVICE:"/myAccount.php",ACCOUNT_UPDATE_ADDRESS_SERVICE:"/services/myAccount/saveShippingAddress.php",ACCOUNT_UPDATE_EMAIL_PASSWORD_SERVICE:"/services/myAccount/updateEmailPassword.php",ACCOUNT_UPDATE_REMEMBER_ME_SERVICE:"/services/myAccount/updateRememberMe.php",ACCOUNT_UPDATE_SUBSCRIPTIONS_SERVICE:"/services/myAccount/updateSubscriptions.php",BAG_MENU_CONTENT_SERVICE:"/services/shoppingBag/",BAG_UPDATE_FORM_CONTENT_SERVICE:"/services/shoppingBag/editBagEntry.php",BAG_TOTALS_CONTENT_SERVICE:"/services/shoppingBag/bagTotals.php",BAG_ADD_PROMOTION_SERVICE:"/services/checkout/addPromotion.php",BAG_REMOVE_PROMOTION_SERVICE:"/services/shoppingBag/removePromotion.php",BAG_MOVE_SERVICE:"/services/shoppingBag/moveEntryToWishlist.php",BAG_ADD_SERVICE:"/services/shoppingBag/addBagEntry.php",BAG_REMOVE_SERVICE:"/services/shoppingBag/removeBagEntry.php",BAG_UPDATE_SERVICE:"/services/shoppingBag/updateBagEntry.php",CHECKOUT_ADD_PROMOTION_SERVICE:"/services/checkout/addPromotion.php",CHECKOUT_ADDRESS_SERVICE:"/services/checkout/getStoredAddress.php",CHECKOUT_SERVICE:"/services/checkout/postedFormDataHandler.php",CHECKOUT_STANDARDIZE_SERVICE:"/services/checkout/addressStandardize.php",CHECKOUT_TOTALS_CONTENT_SERVICE:"/services/checkout/checkoutTotals.php",CHECKOUT_ORDER_HISTORY_CONTENT_SERVICE:"/services/checkout/orderHistory.php",CHECKOUT_ORIGINAL_ADDRESS_SERVICE:"/services/checkout/userOriginalAddress.php",COMPANY_DEFAULT_DETAIL:"/services/company/detail.php?data=default",COMPARE_UPDATE_SERVICE:"/services/compare/updateEntries.php",COMPARE_REMOVE_SERVICE:"/services/compare/removeEntry.php",COMPARE_QUEUE_SERVICE:"/services/compare/queue.php",COMPARE_CLEAR_SERVICE:"/service/compare/clearEntries.php",FIT_CREATE_SERVICE:"/service/fitFinder/saveFit.php",FIT_READ_SERVICE:"/service/fitFinder/readFit.php",FIT_UPDATE_SERVICE:"/service/fitFinder/saveFit.php",FIT_DELETE_SERVICE:"/service/fitFinder/saveFit.php",FIT_URL_DELETE_SERVICE:"/service/fitFinder/deleteProfile.php",FIT_FINDER_BUTTON_NEXT:"/images/en_US/fitfinder/btn_next.gif",FIT_FINDER_BUTTON_SUBMIT:"/images/en_US/fitfinder/btn_submit.gif",FLASH_EXPRESS_INSTALL:"/javascript/swfobject/expressInstall.swf",FLASH_VIDEO_PLAYER:"/media/flash/LEEMiniVideoPlayer.swf",FLASH_VIDEO_DEFAULT_CONTENT:"http://www.ocointeractive.com/rickroll/rickroll.flv",FLASH_VIDEO_DEFAULT_POSTER:"/images/en_US/fitfinder/video_placeholder.gif",PRODUCT_CONTENT_SERVICE:"/services/catalog/",PRODUCT_OPTIONS_SERVICE:"/services/product/options.php",RATING_IMAGES:{0:"/images/en_US/catalog/stars_0.gif",1:"/images/en_US/catalog/stars_1.gif",2:"/images/en_US/catalog/stars_2.gif",3:"/images/en_US/catalog/stars_3.gif",4:"/images/en_US/catalog/stars_4.gif",5:"/images/en_US/catalog/stars_5.gif"},MARKER_IMAGES:{0:"/images/en_US/storeLocator/marker_A.png",1:"/images/en_US/storeLocator/marker_B.png",2:"/images/en_US/storeLocator/marker_C.png",3:"/images/en_US/storeLocator/marker_D.png",4:"/images/en_US/storeLocator/marker_E.png",5:"/images/en_US/storeLocator/marker_F.png",6:"/images/en_US/storeLocator/marker_G.png",7:"/images/en_US/storeLocator/marker_H.png",8:"/images/en_US/storeLocator/marker_I.png",9:"/images/en_US/storeLocator/marker_J.png"},TRANSPARENT_GIF:"/images/en_US/global/transparent.gif",WISHLIST_MENU_CONTENT_SERVICE:"/services/wishlist/",WISHLIST_UPDATE_FORM_CONTENT_SERVICE:"/services/wishlist/editWishlistEntry.php",WISHLIST_ADD_TO_BAG_SERVICE:"/services/wishlist/addEntryToBag.php",WISHLIST_ADD_SERVICE:"/services/wishlist/addWishlistEntry.php",WISHLIST_REMOVE_SERVICE:"/services/wishlist/removeWishlistEntry.php",WISHLIST_UPDATE_SERVICE:"/services/wishlist/updateWishlistEntry.php"},Messages:{COMPARE_LIMIT_EXCEEDED:"You can only compare 5 items at a time.",FORM_DEFAULT_ERROR:"Please complete or correct the information in the marked fields below.",EMAIL_DO_NOT_MATCH:"The confrim email address you entered did not match. Please try again.",PASSWORDS_DO_NOT_MATCH:"The entered passwords do not match.",PASSWORDS_TOO_SHORT:"The entered password is too short. Passwords must be at least five characters.",REMEMBER_ME_ENABLED:"<h6>"+"You've chosen to have the site recognize you when you visit Lee.com."+"</h6>"+"<div>"+"To keep your information secure, we'll ask you to sign in to view your account information or check out."+"</div>",REMEMBER_ME_DISABLED:"<h6>"+"You've chosen not to have the site recognize you when you visit Lee.com."+"</h6>"+"<div>"+"You'll need to sign in each time you want to access your account information."+"</div>",SEND_TO_A_FRIEND:{DEFAULT_HEADER_HTML:"<h5>Send to a friend</h5>",SUCCESS_HEADER_HTML:"<h5>Thank you, your message was sent.</h5>",ERROR_HEADER_HTML:"<p class='submit_error'>Please Check Required Fields</p>"},CONTACT_FORM:{DEFAULT_HEADER_HTML:"<p>Choose the kind of issue or concern you have so that we can better serve you.</p>",ERROR_HEADER_HTML:"<p class='submit_error'>Please Check Required Fields</p>"},NO_ITEMS_SHOPPING_BAG:"You have no items in your Shopping Bag.",NO_ITEMS_WISHLIST:"You have no items in your Lee List",SAVE_PROFILE_ERROR:"Please enter a name to save your profile.",SAVE_YOUR_PROFILE:"Save Your Profile",SAVE_TO_MY_WISHLIST:"Save To My Lee List",SUBSCRIPTIONS_NEGATIVE:"You're not currently subscribed to Lee email.",SUBSCRIPTIONS_AFFIRMATIVE:"You've subscribed to receive Lee email updates.",UNSAVED_PROFILE:"You will lose the information you have entered if you leave this page. Do you want to leave?"},Errors:{COMPARE_ERROR:"Sorry",COMPARE_QUEUE_ERROR:"Sorry",COMPARE_OVERLAY_ERROR:"Sorry",GOOGLE_MAP_ERROR:"Sorry, your browser does not support Google Maps",PAGINATION_NO_ITEMS:"Sorry, no items are available for this page.",PRODUCT_CATALOG_REFRESH:"Sorry, we could not refresh the information",OVERLAY_REFRESH:"Sorry! There was an error showing you that content.\n",VALIDATION_FIT_FINDER_NO_NAME:"Please enter a name in order to save this profile",VALIDATION_UNSELECTED_ATTRIBUTES:"Please make all sizing selections above.",VALIDATION_INVALID_QUANTITY:"Please choose a valid quantity.",VALIDATION_INVALID_ATTRIBUTES:"The size or color you selected is not available.",VALIDATION_INVALID_SEARCH:"Please enter your search query here."},Parameters:{WINDOW_CUSTOM:"width=620,height=625,left=300,directories=no,menubar=no,toolbar=no,location=no,status=no,statusbar=no",WINDOW_HISTORY:"width=980,height=462,left=300,directories=no,menubar=no,toolbar=no,location=no,status=no,statusbar=no",WINDOW_DEFAULT:"width=620,height=700,left=300,directories=no,menubar=no,toolbar=no,location=no,status=no,statusbar=no"},XHR_TIMEOUT:30000,COMPARE_MAX_ITEMS:5,get:function(_29){try{var _2a=_29.split(".");propertyNameHeirarchyLength=_2a.length;var _2b=this;for(var i=0;i<propertyNameHeirarchyLength;i++){if(i===propertyNameHeirarchyLength-1){if(_2b[_2a[i]]){return _2b[_2a[i]];}else{return "";}}_2b=_2b[_2a[i]];}}catch(err){console.log("LEE.util.Config.get || propertyName: "+_29+" || "+err.message,"error");}return "";},set:function(_2d,_2e){var _2f=_2d.split(".");propertyNameHeirarchyLength=_2f.length;var _30=this;for(var i=0;i<propertyNameHeirarchyLength;i++){if(!_30[_2f[i]]){_30[_2f[i]]={};}if(i===propertyNameHeirarchyLength-1){if(_30[_2f[i]]=_2e){return true;}else{return false;}}_30=_30[_2f[i]];}return false;}};}if(!dojo._hasResource["LEE.event.FormEventNames"]){dojo._hasResource["LEE.event.FormEventNames"]=true;dojo.provide("LEE.event.FormEventNames");LEE.event.FormEventNames={CREATED:"LEE.event.FormEventNames.CREATED",SUBMITTED:"LEE.event.FormEventNames.SUBMITTED",SUCCESS:"LEE.event.FormEventNames.SUCCESS",SHIPPING_PANEL_ADDRESS_UPDATED:"LEE.event.FormEventNames.SHIPPING_PANEL_ADDRESS_UPDATED"};}if(!dojo._hasResource["LEE.event.GlobalEventNames"]){dojo._hasResource["LEE.event.GlobalEventNames"]=true;dojo.provide("LEE.event.GlobalEventNames");LEE.event.GlobalEventNames={COMPANY_DETAIL_CONTENT:"LEE.event.GlobalEventNames.COMPANY_DETAIL_CONTENT",COMPANY_DETAIL_SELECTION:"LEE.event.GlobalEventNames.COMPANY_DETAIL_SELECTION",COMPANY_DETAIL_UPDATE:"LEE.event.GlobalEventNames.COMPANY_DETAIL_UPDATE",CHECKBOX_DISABLED:"LEE.event.GlobalEventNames.CHECKBOX_DISABLED",CHECKBOX_ENABLED:"LEE.event.GlobalEventNames.CHECKBOX_ENABLED",CHECKBOX_ON_PAGINATION:"LEE.event.GlobalEventNames.CHECKBOX_ON_PAGINATION",CHECKOUT_STATE_CHANGED:"LEE.event.GlobalEventNames.CHECKOUT_STATE_CHANGED",CHECKOUT_CONTINUE:"LEE.event.GlobalEventNames.CHECKOUT_CONTINUE",GLOBAL_LOADED:"LEE.event.GlobalEventNames.GLOBAL_LOADED",OVERLAY_LOADED:"LEE.event.GlobalEventNames.OVERLAY_LOADED",PAGINATION_RELOAD:"LEE.event.GlobalEventNames.PAGINATION_RELOAD",PAGINATION_SWITCH_VIEW:"LEE.event.GlobalEventNames.PAGINATION_SWITCH_VIEW",PRODUCT_CATALOG_LOADED:"LEE.event.GlobalEventNames.PRODUCT_CATALOG_LOADED",PRODUCT_DOM_READY:"LEE.event.GlobalEventNames.PRODUCT_DOM_READY",PRODUCT_SAVED:"LEE.event.GlobalEventNames.PRODUCT_SAVED",PRODUCT_SUBMITTED:"LEE.event.GlobalEventNames.PRODUCT_SUBMITTED",PRODUCT_UPDATED:"LEE.event.GlobalEventNames.PRODUCT_UPDATED",BAG_FIRST_LOAD:"LEE.event.GlobalEventNames.BAG_FIRST_LOAD",WISHLIST_FIRST_LOAD:"LEE.event.GlobalEventNames.WISHLIST_FIRST_LOAD",ACCORDION_CONTENT:"LEE.event.GlobalEventNames.ACCORDION_CONTENT",ACCORDION_HIDE:"LEE.event.GlobalEventNames.ACCORDION_HIDE",ACCORDION_SHOW:"LEE.event.GlobalEventNames.ACCORDION_SHOW",CLICK_BLOCKER_SHOW:"LEE.event.GlobalEventNames.CLICK_BLOCKER_SHOW",CLICK_BLOCKER_HIDE:"LEE.event.GlobalEventNames.CLICK_BLOCKER_HIDE"};}if(!dojo._hasResource["LEE.event.ModelEventNames"]){dojo._hasResource["LEE.event.ModelEventNames"]=true;dojo.provide("LEE.event.ModelEventNames");LEE.event.ModelEventNames={ACCOUNT_ADDRESS_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_ADDRESS_UPDATE",ACCOUNT_ADDRESS_UPDATE_ERROR:"LEE.event.ModelEventNames.ACCOUNT_ADDRESS_UPDATE_ERROR",ACCOUNT_DELETE_ADDRESS_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_DELETE_ADDRESS_UPDATE",ACCOUNT_EMAIL_PASSWORD_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_EMAIL_PASSWORD_UPDATE",ACCOUNT_FETCH_ADDRESS_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_FETCH_ADDRESS_UPDATE",ACCOUNT_MENU_UPDATE:"LEE.event.ModelEventNames.MYACCOUNT_MENU_UPDATE",ACCOUNT_MENU_UPDATE_ERROR:"LEE.event.ModelEventNames.MYACCOUNT_MENU_UPDATE_ERROR",ACCOUNT_REMEMBER_ME_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_REMEMBER_ME_UPDATE",ACCOUNT_SUBSCRIPTION_UPDATE:"LEE.event.ModelEventNames.ACCOUNT_SUBSCRIPTION_UPDATE",BAG_FORM_UPDATE:"LEE.event.ModelEventNames.BAG_FORM_UPDATE",BAG_FORM_UPDATE_ERROR:"LEE.event.ModelEventNames.BAG_FORM_UPDATE_ERROR",BAG_MENU_UPDATE:"LEE.event.ModelEventNames.BAG_MENU_UPDATE",BAG_MENU_UPDATE_ERROR:"LEE.event.ModelEventNames.BAG_MENU_UPDATE_ERROR",BAG_PRODUCT_ADD:"LEE.event.ModelEventNames.BAG_PRODUCT_ADD",BAG_PRODUCT_ADD_ERROR:"LEE.event.ModelEventNames.BAG_PRODUCT_ADD_ERROR",BAG_PRODUCT_MOVE_TO_WISHLIST:"LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST",BAG_PRODUCT_MOVE_TO_WISHLIST_ERROR:"LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST_ERROR",BAG_PRODUCT_REMOVE:"LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE",BAG_PRODUCT_REMOVE_ERROR:"LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE",BAG_PRODUCT_UPDATE:"LEE.event.ModelEventNames.BAG_UPDATE",BAG_PRODUCT_UPDATE_ERROR:"LEE.event.ModelEventNames.BAG_UPDATE_ERROR",BAG_PROMOTION_ADD:"LEE.event.ModelEventNames.BAG_PROMOTION_ADD",BAG_PROMOTION_ADD_ERROR:"LEE.event.ModelEventNames.BAG_PROMOTION_ADD_ERROR",BAG_PROMOTION_REMOVE:"LEE.event.ModelEventNames.BAG_PROMOTION_REMOVE",BAG_PROMOTION_REMOVE_ERROR:"LEE.event.ModelEventNames.BAG_PROMOTION_REMOVE_ERROR",BAG_TOTALS_UPDATE:"LEE.event.ModelEventNames.BAG_TOTALS_UPDATE",BAG_TOTALS_UPDATE_ERROR:"LEE.event.ModelEventNames.BAG_TOTALS_UPDATE_ERROR",CHECKOUT_ADDRESS_UPDATE:"LEE.event.ModelEventNames.CHECKOUT_ADDRESS_UPDATE",CHECKOUT_ORDER_HISTORY_CONTENT:"LEE.event.ModelEventNames.CHECKOUT_ORDER_HISTORY_CONTENT",CHECKOUT_ORDER_HISTORY_CONTENT_ERROR:"LEE.event.ModelEventNames.CHECKOUT_ORDER_HISTORY_CONTENT_ERROR",CHECKOUT_PROMOTION_UPDATE:"LEE.event.ModelEventNames.CHECKOUT_PROMOTION_UPDATE",CHECKOUT_STANDARDIZE_UPDATE:"LEE.event.ModelEventNames.CHECKOUT_STANDARDIZE_UPDATE",CHECKOUT_STANDARDIZE_UPDATE_ERROR:"LEE.event.ModelEventNames.CHECKOUT_STANDARDIZE_UPDATE_ERROR",CHECKOUT_SUBMIT_PARTIAL_UPDATE:"LEE.event.ModelEventNames.CHECKOUT_SUBMIT_PARTIAL_UPDATE",CHECKOUT_TOTALS_UPDATE:"LEE.event.ModelEventNames.CHECKOUT_TOTALS_UPDATE",CHECKOUT_ORIGINAL_ADDRESS_RESPONSE:"LEE.event.ModelEventNames.CHECKOUT_ORIGINAL_ADDRESS_RESPONSE",CHECKOUT_ORIGINAL_ADDRESS_ERROR:"LEE.event.ModelEventNames.CHECKOUT_ORIGINAL_ADDRESS_ERROR",COMPARE_QUEUE_UPDATE_ERROR:"LEE.event.ModelEventNames.COMPARE_QUEUE_UPDATE_ERROR",COMPARE_QUEUE_UPDATE:"LEE.event.ModelEventNames.QUEUE_UPDATE",COMPARE_UPDATE_ERROR:"LEE.event.ModelEventNames.COMPARE_UPDATE_ERROR",COMPARE_UPDATE:"LEE.event.ModelEventNames.COMPARE_UPDATE",COMPARE_REMOVE_ERROR:"LEE.event.ModelEventNames.COMPARE_REMOVE_ERROR",COMPARE_REMOVE:"LEE.event.ModelEventNames.COMPARE_REMOVE",COMPARE_LIMIT_EXCEEDED:"LEE.event.ModelEventNames.COMPARE_LIMIT_EXCEEDED",COMPARE_CLEAR:"LEE.event.ModelEventNames.COMPARE_CLEAR",COMPARE_CLEAR_ERROR:"LEE.event.ModelEventNaems.COMPARE_ERROR",FIT_DELETE_RESPONSE:"LEE.event.ModelEventNames.FIT_DELETE_RESPONSE",FIT_DELETE_ERROR:"LEE.event.ModelEventNames.FIT_DELETE_ERROR",FIT_OVERWRITE_ERROR:"LEE.event.ModelEventNames.FIT_UPDATE_ERROR",FIT_OVERWRITE_RESPONSE:"LEE.event.ModelEventNames.FIT_UPDATE_RESPONSE",FIT_READ_ERROR:"LEE.event.ModelEventNames.FIT_READ_ERROR",FIT_READ_RESPONSE:"LEE.event.ModelEventNames.FIT_READ_RESPONSE",FIT_SAVE_CANCEL:"LEE.event.ModelEventNames.FIT_SAVE_CANCEL",FIT_SAVE_ERROR:"LEE.event.ModelEventNames.FIT_SAVE_ERROR",FIT_SAVE_RESPONSE:"LEE.event.ModelEventNames.FIT_SAVE_RESPONSE",PRODUCT_CATALOG_ERROR:"LEE.event.ModelEventNames.PRODUCT_CATALOG_ERROR",PRODUCT_CATALOG_UPDATE:"LEE.event.ModelEventNames.PRODUCT_CATALOG_UPDATE",PRODUCT_IMAGE_COLOR_UPDATE:"LEE.event.ModelEventNames.PRODUCT_IMAGE_COLOR_UPDATE",PRODUCT_IMAGE_UPDATE:"LEE.event.ModelEventNames.PRODUCT_IMAGE_UPDATE",PRODUCT_OPTIONS_ERROR:"LEE.event.ModelEventNames.PRODUCT_OPTIONS_ERROR",PRODUCT_OPTIONS_UPDATE:"LEE.event.ModelEventNames.PRODUCT_OPTIONS_UPDATE",PRODUCT_OVERLAY_IMAGE_UPDATE:"LEE.event.ModelEventNames.PRODUCT_OVERLAY_IMAGE_UPDATE",WISHLIST_ADD_TO_BAG:"LEE.event.ModelEventNames.WISHLIST_ADD_TO_BAG",WISHLIST_ADD_TO_BAG_ERROR:"LEE.event.ModelEventNames.WISHLIST_ADD_TO_BAG_ERROR",WISHLIST_FORM_UPDATE:"LEE.event.ModelEventNames.WISHLIST_FORM_UPDATE",WISHLIST_FORM_UPDATE_ERROR:"LEE.event.ModelEventNames.WISHLIST_FORM_UPDATE_ERROR",WISHLIST_MENU_UPDATE:"LEE.event.ModelEventNames.WISHLIST_MENU_UPDATE",WISHLIST_MENU_UPDATE_ERROR:"LEE.event.ModelEventNames.WISHLIST_MENU_UPDATE_ERROR",WISHLIST_PRODUCT_ADD:"LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD",WISHLIST_PRODUCT_ADD_ERROR:"LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD_ERROR",WISHLIST_PRODUCT_REMOVE:"LEE.event.ModelEventNames.WISHLIST_PRODUCT_REMOVE",WISHLIST_PRODUCT_REMOVE_ERROR:"LEE.event.ModelEventNames.WISHLIST_PRODUCT_REMOVE_ERROR",WISHLIST_PRODUCT_UPDATE:"LEE.event.ModelEventNames.WISHLIST_UPDATE",WISHLIST_PRODUCT_UPDATE_ERROR:"LEE.event.ModelEventNames.WISHLIST_UPDATE_ERROR",WISHLIST_SUMMARY_UPDATE:"LEE.event.ModelEventNames.WISHLIST_SUMMARY_UPDATE",WISHLIST_SUMMARY_UPDATE_ERROR:"LEE.event.ModelEventNames.WISHLIST_SUMMARY_UPDATE_ERROR"};}if(!dojo._hasResource["LEE.event.ServiceEventNames"]){dojo._hasResource["LEE.event.ServiceEventNames"]=true;dojo.provide("LEE.event.ServiceEventNames");LEE.event.ServiceEventNames={SERVICE_COMPLETE:"LEE.service.event.ServiceEventNames.SERVICE_COMPLETE",SERVICE_END:"LEE.service.event.ServiceEventNames.SERVICE_END",SERVICE_START:"LEE.service.event.ServiceEventNames.SERVICE_START"};}if(!dojo._hasResource["LEE.service.ServiceNames"]){dojo._hasResource["LEE.service.ServiceNames"]=true;dojo.provide("LEE.service.ServiceNames");LEE.service.ServiceNames={ACCOUNT_SERVICE:"AccountService",CHECKOUT_SERVICE:"CheckoutService",COMPARE_SERVICE:"CompareService",COMPANY_SERVICE:"CompanyService",PRODUCT_SERVICE:"ProductService",CATALOG_SERVICE:"CatalogService",BAG_SERVICE:"BagService",WISHLIST_SERVICE:"WishlistService"};}if(!dojo._hasResource["LEE.service.Service"]){dojo._hasResource["LEE.service.Service"]=true;dojo.provide("LEE.service.Service");dojo.declare("LEE.service.Service",null,{pendingCalls:{},id:"",constructor:function(id){this.id=id;},abort:function(_33){if(_33&&this.isPending(_33)){dojo.forEach(this.pendingCalls[_33],function(xhr){try{xhr.ioArgs.xhr.abort();}catch(err){}},this);}},get:function(_35,_36){return this._makePendingCall("GET",_35,_36);},isPending:function(_37){if(this.pendingCalls[_37]&&this.pendingCalls[_37].length>0){return true;}else{return false;}},post:function(_38,_39){return this._makePendingCall("POST",_38,_39);},_makePendingCall:function(_3a,_3b,_3c){if(!_3c.content){_3c.content={};}if(this.isPending(_3b)){return false;}if(!this.pendingCalls[_3b]){this.pendingCalls[_3b]=[];}var _3d={};if(!_3c){_3c={};}if(!_3c.timeout){_3c.timeout=LEE.util.config.get("XHR_TIMEOUT");}switch(_3a){case "DELETE":_3d=dojo.xhrDelete(_3c);break;case "POST":_3d=dojo.xhrPost(_3c);break;case "PUT":_3d=dojo.xhrPut(_3c);break;case "GET":default:_3d=dojo.xhrGet(_3c);break;}this.pendingCalls[_3b].push(_3d);_3d.addBoth(dojo.hitch(this,this._responseHandler,_3b,_3d));dojo.publish(LEE.event.ServiceEventNames.SERVICE_START,[_3b]);dojo.style(document.body,"cursor","wait");return _3d;},_responseHandler:function(_3e,_3f,_40){this.pendingCalls[_3e].splice(dojo.indexOf(this.pendingCalls[_3e],_3f),1);dojo.publish(LEE.event.ServiceEventNames.SERVICE_END,[_3e,_40]);if(this.pendingCalls[_3e].length===0){dojo.publish(LEE.event.ServiceEventNames.SERVICE_COMPLETE,[_3e]);}dojo.style(document.body,"cursor","");}});}if(!dojo._hasResource["LEE.service.AccountService"]){dojo._hasResource["LEE.service.AccountService"]=true;dojo.provide("LEE.service.AccountService");dojo.declare("LEE.service.AccountService",LEE.service.Service,{constructor:function(_41){},deleteAddress:function(_42,_43,_44){var _45={refresh:1,section:_44};if(!_43){_43=LEE.util.config.get("Locations.ACCOUNT_DELETE_ADDRESS_SERVICE");}this.get(LEE.service.AccountService.type.DELETE_ADDRESS,{url:_43,load:_42.load,error:_42.error,scope:_42.scope,content:_45,handleAs:"text"});},fetchMenuContents:function(_46,_47){var _48={refresh:1};if(!_47){_47=LEE.util.config.get("Locations.ACCOUNT_MENU_CONTENT_SERVICE");}return this.get(LEE.service.AccountService.type.FETCH_MENU_CONTENTS,{url:_47,load:_46.load,error:_46.error,scope:_46.scope,content:_48,handleAs:"text"});},fetchStoredAddress:function(_49,_4a,_4b){var _4c={userButton:"submit",addressId:_4a,section:_4b,refresh:1};serviceUrl=LEE.util.config.get("Locations.ACCOUNT_ADDRESS_SERVICE");this.post(LEE.service.AccountService.type.FETCH_STORED_ADDRESS,{url:serviceUrl,load:_49.load,error:_49.error,scope:_49.scope,content:_4c,handleAs:"json"});},updateAddress:function(_4d,_4e,_4f,_50){var _51={refresh:1,section:_50};if(!_4f){_4f=LEE.util.config.get("Locations.ACCOUNT_UPDATE_ADDRESS_SERVICE");}this.post(LEE.service.AccountService.type.UPDATE_ADDRESS,{url:_4f,load:_4d.load,error:_4d.error,scope:_4d.scope,form:_4e,content:_51,handleAs:"text"});},updateEmailPassword:function(_52,_53,_54){var _55={refresh:1};if(!_54){_54=LEE.util.config.get("Locations.ACCOUNT_UPDATE_EMAIL_PASSWORD_SERVICE");}this.post(LEE.service.AccountService.type.UPDATE_EMAIL_PASSWORD,{url:_54,load:_52.load,error:_52.error,scope:_52.scope,form:_53,content:_55,handleAs:"json"});},updateRememberMe:function(_56,_57){var _58={refresh:1};if(!_57){_57=LEE.util.config.get("Locations.ACCOUNT_UPDATE_REMEMBER_ME_SERVICE");}this.get(LEE.service.AccountService.type.UPDATE_REMEMBER_ME,{url:_57,load:_56.load,error:_56.error,scope:_56.scope,content:_58,handleAs:"json"});},updateSubscriptions:function(_59,_5a,_5b){var _5c={refresh:1};if(!_5b){_5b=LEE.util.config.get("Locations.ACCOUNT_UPDATE_SUBSCRIPTIONS_SERVICE");}this.post(LEE.service.AccountService.type.UPDATE_SUBSCRIPTIONS,{url:_5b,load:_59.load,error:_59.error,scope:_59.scope,form:_5a,content:_5c,handleAs:"json"});}});LEE.service.AccountService.type={DELETE_ADDRESS:"LEE.service.AccountService.type.DELETE_ADDRESS",FETCH_MENU_CONTENTS:"LEE.service.AccountService.type.FETCH_MENU_CONTENTS",FETCH_STORED_ADDRESS:"LEE.service.AccountService.type.FETCH_STORED_ADDRESS",UPDATE_ADDRESS:"LEE.service.AccountService.type.UPDATE_ADDRESS",UPDATE_EMAIL_PASSWORD:"LEE.service.AccountService.type.UPDATE_EMAIL_PASSWORD",UPDATE_REMEMBER_ME:"LEE.service.AccountService.type.UPDATE_REMEMBER_ME",UPDATE_SUBSCRIPTIONS:"LEE.service.AccountService.type.UPDATE_SUBSCRIPTIONS"};}if(!dojo._hasResource["LEE.service.BagService"]){dojo._hasResource["LEE.service.BagService"]=true;dojo.provide("LEE.service.BagService");dojo.declare("LEE.service.BagService",LEE.service.Service,{constructor:function(_5d){},addEntry:function(_5e,_5f,_60){var _61={userButton:"submit",refresh:1};if(!_60){_60=LEE.util.config.get("Locations.BAG_ADD_SERVICE");}return this.post(LEE.service.BagService.type.ADD_ENTRY,{url:_60,load:_5e.load,error:_5e.error,scope:_5e.scope,form:_5f,content:_61,handleAs:"json"});},removeEntry:function(_62,_63){var _64={refresh:1};if(!_63){_63=LEE.util.config.get("Locations.BAG_REMOVE_SERVICE");}return this.get(LEE.service.BagService.type.REMOVE_ENTRY,{url:_63,load:_62.load,error:_62.error,scope:_62.scope,content:_64,handleAs:"json"});},moveEntryToWishlist:function(_65,_66){var _67={refresh:1};if(!_66){_66=LEE.util.config.get("Locations.BAG_MOVE_SERVICE");}return this.get(LEE.service.BagService.type.MOVE_ENTRY_TO_WISHLIST,{url:_66,load:_65.load,error:_65.error,scope:_65.scope,content:_67,handleAs:"json"});},updateEntry:function(_68,_69,_6a){var _6b={refresh:1};if(!_6a){_6a=LEE.util.config.get("Locations.BAG_UPDATE_SERVICE");}return this.post(LEE.service.BagService.type.UPDATE_ENTRY,{url:_6a,load:_68.load,error:_68.error,scope:_68.scope,form:_69,content:_6b,handleAs:"text"});},fetchMenuContents:function(_6c,_6d){var _6e={refresh:1};if(!_6d){_6d=LEE.util.config.get("Locations.BAG_MENU_CONTENT_SERVICE");}return this.get(LEE.service.BagService.type.FETCH_MENU_CONTENTS,{url:_6d,load:_6c.load,error:_6c.error,scope:_6c.scope,content:_6e,handleAs:"text"});},fetchEntryFormContents:function(_6f,_70){var _71={refresh:1};if(!_70){_70=LEE.util.config.get("Locations.BAG_UPDATE_FORM_CONTENT_SERVICE");}return this.get(LEE.service.BagService.type.FETCH_UPDATE_FORM_CONTENTS,{url:_70,load:_6f.load,error:_6f.error,scope:_6f.scope,content:_71,handleAs:"text"});},fetchBagTotalsContents:function(_72,_73){var _74={refresh:1};if(!_73){_73=LEE.util.config.get("Locations.BAG_TOTALS_CONTENT_SERVICE");}return this.get(LEE.service.BagService.type.FETCH_TOTALS_CONTENTS,{url:_73,load:_72.load,error:_72.error,scope:_72.scope,content:_74,handleAs:"text"});},addBagPromotion:function(_75,_76,_77){var _78={refresh:1};if(!_77){_77=LEE.util.config.get("Locations.BAG_ADD_PROMOTION_SERVICE");}return this.post(LEE.service.BagService.type.ADD_PROMOTION,{url:_77,load:_75.load,error:_75.error,scope:_75.scope,form:_76,content:_78,handleAs:"json"});},removeBagPromotion:function(_79,_7a){var _7b={refresh:1};if(!_7a){_7a=LEE.util.config.get("Locations.BAG_REMOVE_PROMOTION_SERVICE");}return this.get(LEE.service.BagService.type.REMOVE_PROMOTION,{url:_7a,load:_79.load,error:_79.error,scope:_79.scope,content:_7b,handleAs:"json"});}});LEE.service.BagService.type={FETCH_MENU_CONTENTS:"LEE.service.BagService.type.FETCH_MENU_CONTENTS",FETCH_CONTENTS:"LEE.service.BagService.type.FETCH_CONTENTS",FETCH_SUMMARY_CONTENTS:"LEE.service.BagService.type.FETCH_SUMMARY_CONTENTS",FETCH_UPDATE_FORM_CONTENTS:"LEE.service.BagService.type.FETCH_UPDATE_FORM_CONTENTS",FETCH_TOTALS_CONTENTS:"LEE.service.BagService.type.FETCH_TOTALS_CONTENTS",MOVE_ENTRY_TO_WISHLIST:"LEE.service.BagService.type.MOVE_ENTRY_TO_WISHLIST",ADD_ENTRY:"LEE.service.BagService.type.ADD_ENTRY",ADD_PROMOTION:"LEE.service.BagService.type.ADD_PROMOTION",REMOVE_PROMOTION:"LEE.service.BagService.type.REMOVE_PROMOTION",REMOVE_ENTRY:"LEE.service.BagService.type.REMOVE_ENTRY",UPDATE_ENTRY:"LEE.service.BagService.type.UPDATE_ENTRY"};}if(!dojo._hasResource["LEE.service.CheckoutService"]){dojo._hasResource["LEE.service.CheckoutService"]=true;dojo.provide("LEE.service.CheckoutService");dojo.declare("LEE.service.CheckoutService",LEE.service.Service,{constructor:function(_7c){},addPromotion:function(_7d,_7e,_7f){var _80={userButton:"submit",refresh:1};if(!_7f){_7f=LEE.util.config.get("Locations.CHECKOUT_ADD_PROMOTION_SERVICE");}return this.post(LEE.service.CheckoutService.type.ADD_PROMOTION,{url:_7f,load:_7d.load,error:_7d.error,scope:_7d.scope,form:_7e,content:_80,handleAs:"json"});},fetchStoredAddress:function(_81,_82,_83){var _84={userButton:"submit",addressId:_82,section:_83,refresh:1};serviceUrl=LEE.util.config.get("Locations.CHECKOUT_ADDRESS_SERVICE");return this.post(LEE.service.CheckoutService.type.FETCH_STORED_ADDRESS,{url:serviceUrl,load:_81.load,error:_81.error,scope:_81.scope,content:_84,handleAs:"json"});},fetchCheckoutTotalsContents:function(_85,_86){var _87={refresh:1};if(!_86){_86=LEE.util.config.get("Locations.CHECKOUT_TOTALS_CONTENT_SERVICE");}return this.get(LEE.service.CheckoutService.type.FETCH_TOTALS_CONTENTS,{url:_86,load:_85.load,error:_85.error,scope:_85.scope,content:_87,handleAs:"text"});},standardizeAddress:function(_88,_89,_8a){var _8b={userButton:"submit",refresh:1};if(!_8a){_8a=LEE.util.config.get("Locations.CHECKOUT_STANDARDIZE_SERVICE");}return this.post(LEE.service.CheckoutService.type.STANDARDIZE,{url:_8a,load:_88.load,error:_88.error,scope:_88.scope,form:_89,content:_8b,handleAs:"json"});},submitPartialForm:function(_8c,_8d,_8e){var _8f={userButton:"submit",refresh:1};if(!_8e){_8e=LEE.util.config.get("Locations.CHECKOUT_SERVICE");}return this.post(LEE.service.CheckoutService.type.POST_FORM,{url:_8e,load:_8c.load,error:_8c.error,scope:_8c.scope,form:_8d,content:_8f,handleAs:"json"});},fetchOrderHistoryContents:function(_90,_91){var _92={refresh:1};if(!_91){_91=LEE.util.config.get("Locations.CHECKOUT_ORDER_HISTORY_CONTENT_SERVICE");}return this.get(LEE.service.CheckoutService.type.FETCH_HISTORY_CONTENTS,{url:_91,load:_90.load,error:_90.error,scope:_90.scope,content:_92,handleAs:"text"});},fetchOriginalAddress:function(_93,_94){var _95={refresh:1};_94=LEE.util.config.get("Locations.CHECKOUT_ORIGINAL_ADDRESS_SERVICE");return this.get(LEE.service.CheckoutService.type.FETCH_ORIGINAL_ADDRESS,{url:_94,load:_93.load,error:_93.error,scope:_93.scope,content:_95,handleAs:"json"});}});LEE.service.CheckoutService.type={ADD_PROMOTION:"LEE.service.CheckoutService.type.ADD_PROMOTION",FETCH_HISTORY_CONTENTS:"LEE.service.CheckoutService.type.FETCH_HISTORY_CONTENTS",FETCH_ORIGINAL_ADDRESS:"LEE.service.CheckoutSerivce.type.FETCH_ORIGINAL_ADDRESS",FETCH_STORED_ADDRESS:"LEE.service.CheckoutService.type.FETCH_STORED_ADDRESS",FETCH_TOTALS_CONTENTS:"LEE.service.CheckoutService.type.FETCH_TOTALS_CONTENTS",POST_FORM:"LEE.service.CheckoutService.type.POST_FORM",STANDARDIZE:"LEE.service.CheckoutService.type.STANDARDIZE"};}if(!dojo._hasResource["LEE.service.CompanyService"]){dojo._hasResource["LEE.service.CompanyService"]=true;dojo.provide("LEE.service.CompanyService");dojo.declare("LEE.service.CompanyService",LEE.service.Service,{constructor:function(_96){},fetchDetail:function(_97,_98){var _99={refresh:1};if(!_98){_98=LEE.util.config.get("Locations.COMPANY_DEFAULT_DETAIL");}return this.get(LEE.service.CompanyService.type.FETCH_DETAIL,{url:_98,load:_97.load,error:_97.error,scope:_97.scope,content:_99,handleAs:"text"});}});LEE.service.CompanyService.type={FETCH_DETAIL:"LEE.service.CompanyService.type.FETCH_DETAIL"};}if(!dojo._hasResource["LEE.service.ProductService"]){dojo._hasResource["LEE.service.ProductService"]=true;dojo.provide("LEE.service.ProductService");dojo.declare("LEE.service.ProductService",LEE.service.Service,{constructor:function(){},fetchCatalog:function(_9a,_9b,_9c){if(!_9b){_9b={};}_9b.refresh=1;if(!_9c){_9c=LEE.util.config.get("Locations.PRODUCT_CONTENT_SERVICE");}this.abort(LEE.service.ProductService.type.CATALOG);return this.post(LEE.service.ProductService.type.CATALOG,{url:_9c,load:_9a.load,error:_9a.error,scope:_9a.scope,content:_9b,handleAs:"json"});},fetchOptions:function(_9d,_9e){var _9f={refresh:1};if(!_9e){_9e=LEE.util.config.get("Locations.PRODUCT_OPTIONS_SERVICE");}return this.get(LEE.service.ProductService.type.OPTIONS,{url:_9e,load:_9d.load,error:_9d.error,scope:_9d.scope,handleAs:"json",content:_9f});}});LEE.service.ProductService.type={CATALOG:"LEE.service.ProductService.type.CATALOG",OPTIONS:"LEE.service.ProductService.type.OPTIONS",SAVE:"LEE.service.ProductService.type.SAVE",SEARCH:"LEE.service.ProductService.type.SEARCH",SUBMIT:"LEE.service.ProductService.type.SUBMIT"};}if(!dojo._hasResource["LEE.service.WishlistService"]){dojo._hasResource["LEE.service.WishlistService"]=true;dojo.provide("LEE.service.WishlistService");dojo.declare("LEE.service.WishlistService",LEE.service.Service,{constructor:function(_a0){},addEntry:function(_a1,_a2,_a3){var _a4={userButton:"save",refresh:1};if(!_a3){_a3=LEE.util.config.get("Locations.WISHLIST_ADD_SERVICE");}return this.post(LEE.service.WishlistService.type.ADD_ENTRY,{url:_a3,load:_a1.load,error:_a1.error,scope:_a1.scope,form:_a2,content:_a4,handleAs:"json"});},fetchMenuContents:function(_a5,_a6){var _a7={refresh:1};if(!_a6){_a6=LEE.util.config.get("Locations.WISHLIST_MENU_CONTENT_SERVICE");}return this.get(LEE.service.WishlistService.type.FETCH_MENU_CONTENTS,{url:_a6,load:_a5.load,error:_a5.error,scope:_a5.scope,content:_a7,handleAs:"text"});},removeEntry:function(_a8,_a9){var _aa={refresh:1};if(!_a9){_a9=LEE.util.config.get("Locations.WISHLIST_REMOVE_SERVICE");}return this.post(LEE.service.WishlistService.type.REMOVE_ENTRY,{url:_a9,load:_a8.load,error:_a8.error,scope:_a8.scope,content:_aa,handleAs:"json"});},updateEntry:function(_ab,_ac,_ad){var _ae={refresh:1};if(!_ad){_ad=LEE.util.config.get("Locations.WISHLIST_UPDATE_SERVICE");}return this.post(LEE.service.WishlistService.type.UPDATE_ENTRY,{url:_ad,load:_ab.load,error:_ab.error,scope:_ab.scope,form:_ac,content:_ae,handleAs:"text"});},fetchEntryFormContents:function(_af,_b0){var _b1={refresh:1};if(!_b0){_b0=LEE.util.config.get("Locations.WISHLIST_UPDATE_FORM_CONTENT_SERVICE");}return this.get(LEE.service.WishlistService.type.FETCH_UPDATE_FORM_CONTENTS,{url:_b0,load:_af.load,error:_af.error,scope:_af.scope,content:_b1,handleAs:"text"});},addEntryToBag:function(_b2,_b3){var _b4={refresh:1};if(!_b3){_b3=LEE.util.config.get("Locations.WISHLIST_ADD_TO_BAG_SERVICE");}return this.get(LEE.service.WishlistService.type.ADD_ENTRY_TO_BAG,{url:_b3,load:_b2.load,error:_b2.error,scope:_b2.scope,content:_b4,handleAs:"json"});}});LEE.service.WishlistService.type={FETCH__MENU_CONTENTS:"LEE.service.WishlistService.type.FETCH_MENU_CONTENTS",ADD_ENTRY:"LEE.service.WishlistService.type.ADD_ENTRY",REMOVE_ENTRY:"LEE.service.WishlistService.type.REMOVE_ENTRY",UPDATE_ENTRY:"LEE.service.WishlistService.type.UPDATE_ENTRY",FETCH_UPDATE_FORM_CONTENTS:"LEE.service.WishlistService.type.FETCH_UPDATE_FORM_CONTENTS",ADD_ENTRY_TO_BAG:"Lee.service.WishlistService.type.ADD_ENTRY_TO_BAG"};}if(!dojo._hasResource["LEE.service.FitService"]){dojo._hasResource["LEE.service.FitService"]=true;dojo.provide("LEE.service.FitService");dojo.declare("LEE.service.FitService",LEE.service.Service,{constructor:function(_b5){},createProfile:function(_b6,_b7,_b8,_b9){if(!_b9){_b9={};}_b9["refresh"]=1;if(!_b8){_b8=LEE.util.config.get("Locations.FIT_CREATE_SERVICE");}this.post(LEE.service.FitService.type.CREATE,{url:_b8,load:_b6.load,error:_b6.error,scope:_b6.scope,form:_b7,content:_b9,handleAs:"text"});},readProfile:function(_ba,_bb,_bc){var _bd={name:_bb,refresh:1};if(!_bc){_bc=LEE.util.config.get("Locations.FIT_READ_SERVICE");}this.get(LEE.service.FitService.type.READ,{url:_bc,load:_ba.load,error:_ba.error,scope:_ba.scope,content:_bd,handleAs:"json"});},updateProfile:function(_be,_bf,_c0,_c1){if(!_c1){_c1={};}_c1["refresh"]=1;if(!_c0){_c0=LEE.util.config.get("Locations.FIT_UPDATE_SERVICE");}this.post(LEE.service.FitService.type.UPDATE,{url:_c0,load:_be.load,error:_be.error,scope:_be.scope,form:_bf,content:_c1,handleAs:"text"});},deleteProfile:function(_c2,_c3,_c4,_c5){if(!_c5){_c5={};}_c5["refresh"]=1;if(!_c4){_c4=LEE.util.config.get("Locations.FIT_DELETE_SERVICE");}this.post(LEE.service.FitService.type.DELETE,{url:_c4,load:_c2.load,error:_c2.error,scope:_c2.scope,form:_c3,content:_c5,handleAs:"text"});},deleteProfileFromURL:function(_c6,_c7){var _c8={refresh:1};if(!_c7){_c7=LEE.util.config.get("Locations.FIT_URL_DELETE_SERVICE");}this.get(LEE.service.FitService.type.URL_DELETE,{url:_c7,load:_c6.load,error:_c6.error,scope:_c6.scope,content:_c8,handleAs:"json"});}});LEE.service.FitService.type={CREATE:"LEE.service.FitService.type.CREATE",READ:"LEE.service.FitService.type.READ",UPDATE:"LEE.service.FitService.type.UPDATE",DELETE:"LEE.service.FitService.type.DELETE",URL_DELETE:"LEE.service.FitService.type.DELETE"};}if(!dojo._hasResource["LEE.service.Responder"]){dojo._hasResource["LEE.service.Responder"]=true;dojo.provide("LEE.service.Responder");dojo.declare("LEE.service.Responder",null,{scope:{},load:null,error:null,constructor:function(_c9,_ca,_cb){this.scope=_c9;this.load=dojo.hitch(_c9,_ca);this.error=dojo.hitch(_c9,_cb);}});}if(!dojo._hasResource["LEE.service.CompareService"]){dojo._hasResource["LEE.service.CompareService"]=true;dojo.provide("LEE.service.CompareService");dojo.declare("LEE.service.CompareService",LEE.service.Service,{url:{update:LEE.util.config.get("Locations.COMPARE_UPDATE_SERVICE"),remove:LEE.util.config.get("Locations.COMPARE_REMOVE_SERVICE"),remove:LEE.util.config.get("Locations.COMPARE_CLEAR_SERVICE"),queue:LEE.util.config.get("Locations.COMPARE_QUEUE_SERVICE")},constructor:function(id){},updateEntries:function(_cd,_ce,_cf){var _d0={refresh:1};if(!_cf){_cf=this.url.update;}return this.post(LEE.service.CompareService.type.UPDATE_ENTRIES,{url:_cf,load:_cd.load,error:_cd.error,scope:_cd.scope,form:_ce,content:_d0,handleAs:"json"});},removeEntryWithUrl:function(_d1,_d2){var _d3={refresh:1};if(!_d2){_d2=this.url.remove;}return this.get(LEE.service.CompareService.type.REMOVE_ENTRY,{url:_d2,load:_d1.load,error:_d1.error,scope:_d1.scope,content:_d3,handleAs:"json"});},clearEntries:function(_d4,_d5){var _d6={refresh:1};if(!_d5){_d5=this.url.clear;}return this.get(LEE.service.CompareService.type.CLEAR_ENTRIES,{url:_d5,load:_d4.load,error:_d4.error,scope:_d4.scope,content:_d6,handleAs:"json",timeout:LEE.service.TIMEOUT});},fetchQueue:function(_d7,_d8){var _d9={refresh:1};if(!_d8){_d8=this.url.queue;}return this.get(LEE.service.CompareService.type.FETCH_QUEUE,{url:_d8,load:_d7.load,error:_d7.error,scope:_d7.scope,content:_d9,handleAs:"text",timeout:LEE.service.TIMEOUT});}});LEE.service.CompareService.type={UPDATE_ENTRIES:"LEE.service.CompareService.type.UPDATE_ENTRIES",REMOVE_ENTRY:"LEE.service.CompareService.type.REMOVE_ENTRY",FETCH_QUEUE:"LEE.service.CompareService.type.FETCH_QUEUE",CLEAR_ENTRIES:"LEE.service.CompareService.type.CLEAR_ENTRIES"};}if(!dojo._hasResource["LEE.service.ServiceLocator"]){dojo._hasResource["LEE.service.ServiceLocator"]=true;dojo.provide("LEE.service.ServiceLocator");LEE.service.ServiceLocator.cache={};LEE.service.ServiceLocator.getService=function(_da,_db){var _db=[];var _dc={};if(LEE.service.ServiceLocator.cache[_da]){_dc=LEE.service.ServiceLocator.cache[_da];}else{_dc=new LEE.service[_da](arguments);LEE.service.ServiceLocator.registerService(_da,_dc);}return _dc;};LEE.service.ServiceLocator.registerService=function(_dd,_de){if(_dd&&_de){LEE.service.ServiceLocator.cache[_dd]=_de;}else{}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _df=dojo.doc;if(_df.selection){var s=_df.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _e1=dojo.global;var _e2=_e1.getSelection();if(dojo.isString(_e2)){return !_e2;}else{return _e2.isCollapsed||!_e2.toString();}}},getBookmark:function(){var _e3,_e4=dojo.doc.selection;if(_e4){var _e5=_e4.createRange();if(_e4.type.toUpperCase()=="CONTROL"){if(_e5.length){_e3=[];var i=0,len=_e5.length;while(i<len){_e3.push(_e5.item(i++));}}else{_e3=null;}}else{_e3=_e5.getBookmark();}}else{if(window.getSelection){_e4=dojo.global.getSelection();if(_e4){_e5=_e4.getRangeAt(0);_e3=_e5.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _e3;},moveToBookmark:function(_e8){var _e9=dojo.doc;if(_e9.selection){var _ea;if(dojo.isArray(_e8)){_ea=_e9.body.createControlRange();dojo.forEach(_e8,function(n){_ea.addElement(n);});}else{_ea=_e9.selection.createRange();_ea.moveToBookmark(_e8);}_ea.select();}else{var _ec=dojo.global.getSelection&&dojo.global.getSelection();if(_ec&&_ec.removeAllRanges){_ec.removeAllRanges();_ec.addRange(_e8);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_ed,_ee){return {node:_ed&&dojo.isDescendant(dijit._curFocus,_ed.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_ee||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_ee||dojo.global,dijit.getBookmark):null,openedForWindow:_ee};},focus:function(_ef){if(!_ef){return;}var _f0="node" in _ef?_ef.node:_ef,_f1=_ef.bookmark,_f2=_ef.openedForWindow;if(_f0){var _f3=(_f0.tagName.toLowerCase()=="iframe")?_f0.contentWindow:_f0;if(_f3&&_f3.focus){try{_f3.focus();}catch(e){}}dijit._onFocusNode(_f0);}if(_f1&&dojo.withGlobal(_f2||dojo.global,dijit.isCollapsed)){if(_f2){_f2.focus();}try{dojo.withGlobal(_f2||dojo.global,dijit.moveToBookmark,null,[_f1]);}catch(e){}}},_activeStack:[],registerWin:function(_f4){if(!_f4){_f4=window;}dojo.connect(_f4.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_f4.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_onBlurNode:function(_fb){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_fc){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _fd=[];try{while(_fc){if(_fc.dijitPopupParent){_fc=dijit.byId(_fc.dijitPopupParent).domNode;}else{if(_fc.tagName&&_fc.tagName.toLowerCase()=="body"){if(_fc===dojo.body()){break;}_fc=dijit.getDocumentWindow(_fc.ownerDocument).frameElement;}else{var id=_fc.getAttribute&&_fc.getAttribute("widgetId");if(id){_fd.unshift(id);}_fc=_fc.parentNode;}}}}catch(e){}dijit._setStack(_fd);},_onFocusNode:function(_ff){if(!_ff){return;}if(_ff.nodeName&&_ff.nodeName.toLowerCase()=="body"){return;}if(_ff.nodeType==9){var _100=dijit.getDocumentWindow(_ff).frameElement;if(!_100){return;}_ff=_100;}dijit._onTouchNode(_ff);if(_ff==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_ff;dojo.publish("focusNode",[_ff]);},_setStack:function(_101){var _102=dijit._activeStack;dijit._activeStack=_101;for(var _103=0;_103<Math.min(_102.length,_101.length);_103++){if(_102[_103]!=_101[_103]){break;}}for(var i=_102.length-1;i>=_103;i--){var _105=dijit.byId(_102[i]);if(_105){_105._focused=false;_105._hasBeenBlurred=true;if(_105._onBlur){_105._onBlur();}if(_105._setStateClass){_105._setStateClass();}dojo.publish("widgetBlur",[_105]);}}for(i=_103;i<_101.length;i++){_105=dijit.byId(_101[i]);if(_105){_105._focused=true;if(_105._onFocus){_105._onFocus();}if(_105._setStateClass){_105._setStateClass();}dojo.publish("widgetFocus",[_105]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_106){if(this._hash[_106.id]){throw new Error("Tried to register widget with id=="+_106.id+" but that id is already registered");}this._hash[_106.id]=_106;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_10a){var res=new dijit.WidgetSet();this.forEach(function(_10c){if(_10a(_10c)){res.add(_10c);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_10f){return _10f.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_110){var id;do{id=_110+"_"+(_110 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_110]:dijit._widgetTypeCtr[_110]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_112){_112.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _117=dojo.style(elem);return (_117.visibility!="hidden")&&(_117.visibility!="collapsed")&&(_117.display!="none")&&(dojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(dojo.hasAttr(elem,"disabled")){return false;}var _119=dojo.hasAttr(elem,"tabindex");var _11a=dojo.attr(elem,"tabindex");if(_119&&_11a>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&dojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_119||_11a>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _11d,last,_11f,_120,_121,_122;var _123=function(_124){dojo.query("> *",_124).forEach(function(_125){var _126=dijit._isElementShown(_125);if(_126&&dijit.isTabNavigable(_125)){var _127=dojo.attr(_125,"tabindex");if(!dojo.hasAttr(_125,"tabindex")||_127==0){if(!_11d){_11d=_125;}last=_125;}else{if(_127>0){if(!_11f||_127<_120){_120=_127;_11f=_125;}if(!_121||_127>=_122){_122=_127;_121=_125;}}}}if(_126&&_125.nodeName.toUpperCase()!="SELECT"){_123(_125);}});};if(dijit._isElementShown(root)){_123(root);}return {first:_11d,last:last,lowest:_11f,highest:_121};};dijit.getFirstInTabbingOrder=function(root){var _129=dijit._getTabNavigable(dojo.byId(root));return _129.lowest?_129.lowest:_129.first;};dijit.getLastInTabbingOrder=function(root){var _12b=dijit._getTabNavigable(dojo.byId(root));return _12b.last?_12b.last:_12b.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_12c){this.pairs=[];this.returnWrappers=_12c||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_12e,wrap,_130,_131){this.pairs[((_131)?"unshift":"push")]([name,_12e,wrap,_130]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _137=dojo.global;var _138=dojo.doc;var w=0,h=0;var de=_138.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var minw,minh,maxw,maxh;var dbw=_138.body.clientWidth;if(dbw>dew){minw=dew;maxw=dbw;}else{maxw=dew;minw=dbw;}var dbh=_138.body.clientHeight;if(dbh>deh){minh=deh;maxh=dbh;}else{maxh=deh;minh=dbh;}w=(maxw>_137.innerWidth)?minw:maxw;h=(maxh>_137.innerHeight)?minh:maxh;}else{if(!dojo.isOpera&&_137.innerWidth){w=_137.innerWidth;h=_137.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _144=dojo._docScroll();return {w:w,h:h,l:_144.x,t:_144.y};};dijit.placeOnScreen=function(node,pos,_147,_148){var _149=dojo.map(_147,function(_14a){return {corner:_14a,pos:pos};});return dijit._place(node,_149);};dijit._place=function(node,_14c,_14d){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_14c,function(_150){var _151=_150.corner;var pos=_150.pos;if(_14d){_14d(node,_150.aroundCorner,_151);}var _153=node.style;var _154=_153.display;var _155=_153.visibility;_153.visibility="hidden";_153.display="";var mb=dojo.marginBox(node);_153.display=_154;_153.visibility=_155;var _157=(_151.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_158=(_151.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_151.charAt(1)=="L"?Math.min(view.l+view.w,_157+mb.w):pos.x),endY=(_151.charAt(0)=="T"?Math.min(view.t+view.h,_158+mb.h):pos.y),_15b=endX-_157,_15c=endY-_158,_15d=(mb.w-_15b)+(mb.h-_15c);if(best==null||_15d<best.overflow){best={corner:_151,aroundCorner:_150.aroundCorner,x:_157,y:_158,w:_15b,h:_15c,overflow:_15d};}return !_15d;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_14d){_14d(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_15f,_160,_161){_15f=dojo.byId(_15f);var _162=_15f.style.display;_15f.style.display="";var _163=_15f.offsetWidth;var _164=_15f.offsetHeight;var _165=dojo.coords(_15f,true);_15f.style.display=_162;return dijit._placeOnScreenAroundRect(node,_165.x,_165.y,_163,_164,_160,_161);};dijit.placeOnScreenAroundRectangle=function(node,_167,_168,_169){return dijit._placeOnScreenAroundRect(node,_167.x,_167.y,_167.width,_167.height,_168,_169);};dijit._placeOnScreenAroundRect=function(node,x,y,_16d,_16e,_16f,_170){var _171=[];for(var _172 in _16f){_171.push({aroundCorner:_172,corner:_16f[_172],pos:{x:x+(_172.charAt(1)=="L"?0:_16d),y:y+(_172.charAt(0)=="T"?0:_16e)}});}return dijit._place(node,_171,_170);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_178,_179,_17a){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _17d=[],_17e=1000,_17f=1;this.prepare=function(node){dojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _183=args.popup,_184=args.orient||{"BL":"TL","TL":"BL"},_185=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_17f++);var _187=dojo.doc.createElement("div");dijit.setWaiRole(_187,"presentation");_187.id=id;_187.className="dijitPopup";_187.style.zIndex=_17e+_17d.length;_187.style.left=_187.style.top="0px";_187.style.visibility="hidden";if(args.parent){_187.dijitPopupParent=args.parent.id;}dojo.body().appendChild(_187);var s=_183.domNode.style;s.display="";s.visibility="";s.position="";_187.appendChild(_183.domNode);var _189=new dijit.BackgroundIframe(_187);var best=_185?dijit.placeOnScreenAroundElement(_187,_185,_184,_183.orient?dojo.hitch(_183,"orient"):null):dijit.placeOnScreen(_187,args,_184=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_187.style.visibility="visible";var _18b=[];var _18c=function(){for(var pi=_17d.length-1;pi>0&&_17d[pi].parent===_17d[pi-1].widget;pi--){}return _17d[pi];};_18b.push(dojo.connect(_187,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode==dojo.keys.TAB){dojo.stopEvent(evt);var _18f=_18c();if(_18f&&_18f.onCancel){_18f.onCancel();}}}}));if(_183.onCancel){_18b.push(dojo.connect(_183,"onCancel",null,args.onCancel));}_18b.push(dojo.connect(_183,_183.onExecute?"onExecute":"onChange",null,function(){var _190=_18c();if(_190&&_190.onExecute){_190.onExecute();}}));_17d.push({wrapper:_187,iframe:_189,widget:_183,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_18b});if(_183.onOpen){_183.onOpen(best);}return best;};this.close=function(_191){while(dojo.some(_17d,function(elem){return elem.widget==_191;})){var top=_17d.pop(),_194=top.wrapper,_195=top.iframe,_196=top.widget,_197=top.onClose;if(_196.onClose){_196.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_196||!_196.domNode){return;}this.prepare(_196.domNode);_195.destroy();dojo._destroyElement(_194);if(_197){_197();}}};}();dijit._frames=new function(){var _198=[];this.pop=function(){var _199;if(_198.length){_199=_198.pop();_199.style.display="";}else{if(dojo.isIE){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_199=dojo.doc.createElement(html);}else{_199=dojo.doc.createElement("iframe");_199.src="javascript:\"\"";_199.className="dijitBackgroundIframe";}_199.tabIndex=-1;dojo.body().appendChild(_199);}return _199;};this.push=function(_19c){_19c.style.display="";if(dojo.isIE){_19c.style.removeExpression("width");_19c.style.removeExpression("height");}_198.push(_19c);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _19f=dijit._frames.pop();node.appendChild(_19f);if(dojo.isIE){_19f.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_19f.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_19f;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){node=dojo.byId(node);var body=node.ownerDocument.body;var html=body.parentNode;if(dojo.isFF==2||node==body||node==html){node.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _1a4=dojo.doc.compatMode!="BackCompat";var _1a5=(_1a4&&!dojo.isSafari)?html:body;function addPseudoAttrs(_1a6){var _1a7=_1a6.parentNode;var _1a8=_1a6.offsetParent;if(_1a8==null){_1a6=_1a5;_1a8=html;_1a7=null;}_1a6._offsetParent=(_1a8==body)?_1a5:_1a8;_1a6._parent=(_1a7==body)?_1a5:_1a7;_1a6._start={H:_1a6.offsetLeft,V:_1a6.offsetTop};_1a6._scroll={H:_1a6.scrollLeft,V:_1a6.scrollTop};_1a6._renderedSize={H:_1a6.offsetWidth,V:_1a6.offsetHeight};var bp=dojo._getBorderExtents(_1a6);_1a6._borderStart={H:bp.l,V:bp.t};_1a6._borderSize={H:bp.w,V:bp.h};_1a6._clientSize=(_1a6._offsetParent==html&&dojo.isSafari&&_1a4)?{H:html.clientWidth,V:html.clientHeight}:{H:_1a6.clientWidth,V:_1a6.clientHeight};_1a6._scrollBarSize={V:null,H:null};for(var dir in _1a6._scrollBarSize){var _1ab=_1a6._renderedSize[dir]-_1a6._clientSize[dir]-_1a6._borderSize[dir];_1a6._scrollBarSize[dir]=(_1a6._clientSize[dir]>0&&_1ab>=15&&_1ab<=17)?_1ab:0;}_1a6._isScrollable={V:null,H:null};for(dir in _1a6._isScrollable){var _1ac=dir=="H"?"V":"H";_1a6._isScrollable[dir]=_1a6==_1a5||_1a6._scroll[dir]||_1a6._scrollBarSize[_1ac];}};var _1ad=node;while(_1ad!=null){addPseudoAttrs(_1ad);var next=_1ad._parent;if(next){next._child=_1ad;}_1ad=next;}for(var dir in _1a5._renderedSize){_1a5._renderedSize[dir]=Math.min(_1a5._clientSize[dir],_1a5._renderedSize[dir]);}var _1b0=node;while(_1b0!=_1a5){_1ad=_1b0._parent;if(_1ad.tagName=="TD"){var _1b1=_1ad._parent._parent._parent;if(_1b1._offsetParent==_1b0._offsetParent&&_1ad._offsetParent!=_1b0._offsetParent){_1ad=_1b1;}}var _1b2=_1b0==_1a5||(_1ad._offsetParent!=_1b0._offsetParent);for(dir in _1b0._start){var _1b3=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_1ad._clientSize.H>0){var _1b4=_1ad.scrollWidth-_1ad._clientSize.H;if(_1b4>0){_1ad._scroll.H-=_1b4;}}if(dojo.isIE&&_1ad._offsetParent.tagName=="TABLE"){_1ad._start[dir]-=_1ad._offsetParent._borderStart[dir];_1ad._borderStart[dir]=_1ad._borderSize[dir]=0;}if(_1ad._clientSize[dir]==0){_1ad._renderedSize[dir]=_1ad._clientSize[dir]=_1ad._child._clientSize[dir];if(rtl&&dir=="H"){_1ad._start[dir]-=_1ad._renderedSize[dir];}}else{_1ad._renderedSize[dir]-=_1ad._borderSize[dir]+_1ad._scrollBarSize[dir];}_1ad._start[dir]+=_1ad._borderStart[dir];var _1b5=_1b0._start[dir]-(_1b2?0:_1ad._start[dir])-_1ad._scroll[dir];var _1b6=_1b5+_1b0._renderedSize[dir]-_1ad._renderedSize[dir];var _1b7,_1b8=(dir=="H")?"scrollLeft":"scrollTop";var _1b9=(dir=="H"&&rtl);var _1ba=_1b9?-_1b6:_1b5;var _1bb=_1b9?-_1b5:_1b6;if(_1ba<=0){_1b7=_1ba;}else{if(_1bb<=0){_1b7=0;}else{if(_1ba<_1bb){_1b7=_1ba;}else{_1b7=_1bb;}}}var _1bc=0;if(_1b7!=0){var _1bd=_1ad[_1b8];_1ad[_1b8]+=_1b9?-_1b7:_1b7;_1bc=_1ad[_1b8]-_1bd;_1b5-=_1bc;_1bb-=_1b9?-_1bc:_1bc;}_1ad._renderedSize[dir]=_1b0._renderedSize[dir]+_1ad._scrollBarSize[dir]-((_1ad._isScrollable[dir]&&_1bb>0)?_1bb:0);_1ad._start[dir]+=(_1b5>=0||!_1ad._isScrollable[dir])?_1b5:0;}_1b0=_1ad;}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _1c0=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _1c3=d.boxModel.replace(/-/,"");var _1c4={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_1c0,dj_opera8:maj(_1c0)==8,dj_opera9:maj(_1c0)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_1c4["dj_"+_1c3]=true;var html=dojo.doc.documentElement;for(var p in _1c4){if(_1c4[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in _1c4){if(_1c4[p]){html.className+=" "+p+"-rtl";}}}});})();}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_1c9,node,_1cb,obj,_1cd,_1ce){if(obj!=this._obj){this.stop();this._initialDelay=_1ce||500;this._subsequentDelay=_1cd||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_1c9,_1cb);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_1d0,_1d1,_1d2,_1d3,_1d4){if(_1d0.keyCode){_1d0.charOrCode=_1d0.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_1d0.charCode){_1d0.charOrCode=String.fromCharCode(_1d0.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_1d0.charOrCode&&(_1d0.ctrlKey===undefined||_1d0.ctrlKey==evt.ctrlKey)&&(_1d0.altKey===undefined||_1d0.altKey==evt.ctrlKey)&&(_1d0.shiftKey===undefined||_1d0.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_1d0,_1d1,node,_1d2,_1d0,_1d3,_1d4);}else{if(dijit.typematic._obj==_1d0){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_1d0){dijit.typematic.stop();}})];},addMouseListener:function(node,_1d8,_1d9,_1da,_1db){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_1d8,node,_1d9,node,_1da,_1db);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_1d8,node,_1d9,node,_1da,_1db);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_1e2,_1e3,_1e4,_1e5,_1e6,_1e7,_1e8){return this.addKeyListener(_1e3,_1e4,_1e5,_1e6,_1e7,_1e8).concat(this.addMouseListener(_1e2,_1e5,_1e6,_1e7,_1e8));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _1eb=cs.backgroundImage;var _1ec=(cs.borderTopColor==cs.borderRightColor)||(_1eb!=null&&(_1eb=="none"||_1eb=="url(invalid-url:)"));dojo[_1ec?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _1ef=this.getWaiRole(elem);if(role){return (_1ef.indexOf(role)>-1);}else{return (_1ef.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _1f3=(theRole=dojo.attr(elem,"role"))?theRole:"";if(dojo.isFF<3||!this._XhtmlRoles.test(_1f3)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_1f3+" ").indexOf(" "+role+" ")<0){var _1f4=dojo.trim(_1f3.replace(this._XhtmlRoles,""));var _1f5=dojo.trim(_1f3.replace(_1f4,""));dojo.attr(elem,"role",_1f5+(_1f5?" ":"")+role);}}},removeWaiRole:function(elem,role){var _1f8=dojo.attr(elem,"role");if(!_1f8){return;}if(role){var _1f9=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_1f8+" ").replace(" "+_1f9+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_1fc){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_1fc);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_1fc):!!elem.getAttribute("aria-"+_1fc);}},getWaiState:function(elem,_1fe){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_1fe);}else{var _1ff=elem.getAttribute("aria-"+_1fe);return _1ff?_1ff:"";}},setWaiState:function(elem,_201,_202){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_201,_202);}else{elem.setAttribute("aria-"+_201,_202);}},removeWaiState:function(elem,_204){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_204);}else{elem.removeAttribute("aria-"+_204);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_205,_206){if(_205&&dojo.isFunction(_205._onConnect)){_205._onConnect(_206);}});dijit._connectOnUseEventHandler=function(_207){};(function(){var _208={};var _209=function(dc){if(!_208[dc]){var r=[];var _20c;var _20d=dojo.getObject(dc).prototype;for(var _20e in _20d){if(dojo.isFunction(_20d[_20e])&&(_20c=_20e.match(/^_set([a-zA-Z]*)Attr$/))&&_20c[1]){r.push(_20c[1].charAt(0).toLowerCase()+_20c[1].substr(1));}}_208[dc]=r;}return _208[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_20f,_210){this.create(_20f,_210);},create:function(_211,_212){this.srcNodeRef=dojo.byId(_212);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_211){this.params=_211;dojo.mixin(this,_211);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _214=function(attr,_216){if((_216.params&&attr in _216.params)||_216[attr]){_216.attr(attr,_216[attr]);}};for(var attr in this.attributeMap){_214(attr,this);}dojo.forEach(_209(this.declaredClass),function(a){if(!(a in this.attributeMap)){_214(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_219){this.destroyDescendants(_219);this.destroy(_219);},destroy:function(_21a){this.uninitialize();dojo.forEach(this._connects,function(_21b){dojo.forEach(_21b,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_21a);dijit.registry.remove(this.id);},destroyRendering:function(_21d){if(this.bgIframe){this.bgIframe.destroy(_21d);delete this.bgIframe;}if(this.domNode){if(!_21d){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_21d){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_21e){dojo.forEach(this.getDescendants(),function(_21f){if(_21f.destroy){_21f.destroy(_21e);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_221){if(_221 in this._deferredConnects){var _222=this[this._deferredConnects[_221]||"domNode"];this.connect(_222,_221.toLowerCase(),this[_221]);delete this._deferredConnects[_221];}},_setClassAttr:function(_223){var _224=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_224,this["class"]);this["class"]=_223;dojo.addClass(_224,_223);},_setStyleAttr:function(_225){var _226=this[this.attributeMap["style"]||"domNode"];if(_226.style.cssText){_226.style.cssText+="; "+_225;}else{_226.style.cssText=_225;}this["style"]=_225;},setAttribute:function(attr,_228){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_228);},_attrToDom:function(attr,_22a){var _22b=this.attributeMap[attr];dojo.forEach(dojo.isArray(_22b)?_22b:[_22b],function(_22c){var _22d=this[_22c.node||_22c||"domNode"];var type=_22c.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_22a)){_22a=dojo.hitch(this,_22a);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_22d,attr,_22a);break;case "innerHTML":_22d.innerHTML=_22a;break;case "class":dojo.removeClass(_22d,this[attr]);dojo.addClass(_22d,_22a);break;}},this);this[attr]=_22a;},attr:function(name,_230){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _233=this._getAttrNames(name);if(args==2){if(this[_233.s]){return this[_233.s](_230)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_230);}this[name]=_230;}return this;}else{if(this[_233.g]){return this[_233.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_239,_23a){var d=dojo;var dco=d.hitch(d,"connect",obj);var _23d=[];if(_239=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_23a);_23d.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_23d.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_239="onclick";}_23d.push(dco(_239,this,_23a));this._connects.push(_23d);return _23d;},disconnect:function(_242){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_242){dojo.forEach(_242,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_244,_245){if(_244["declaredClass"]&&_244["addChild"]){_244.addChild(this,_245);}else{dojo.place(this.domNode,_244,_245);}return this;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_24f,map,_251,_252){_252=_252||dojo.global;_251=(!_251)?function(v){return v;}:dojo.hitch(_252,_251);return _24f.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_254,key,_256){var _257=dojo.getObject(key,false,map);if(_256){_257=dojo.getObject(_256,false,_252).call(_252,_257,key);}return _251(_257,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_25a,_25b){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _25c=dojo.date.stamp._isoRegExp.exec(_25a);var _25d=null;if(_25c){_25c.shift();if(_25c[1]){_25c[1]--;}if(_25c[6]){_25c[6]*=1000;}if(_25b){_25b=new Date(_25b);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _25b["get"+prop]();}).forEach(function(_25f,_260){if(_25c[_260]===undefined){_25c[_260]=_25f;}});}_25d=new Date(_25c[0]||1970,_25c[1]||0,_25c[2]||1,_25c[3]||0,_25c[4]||0,_25c[5]||0,_25c[6]||0);var _261=0;var _262=_25c[7]&&_25c[7].charAt(0);if(_262!="Z"){_261=((_25c[8]||0)*60)+(Number(_25c[9])||0);if(_262!="-"){_261*=-1;}}if(_262){_261-=_25d.getTimezoneOffset();}if(_261){_25d.setTime(_25d.getTime()+_261*60000);}}return _25d;};dojo.date.stamp.toISOString=function(_263,_264){var _=function(n){return (n<10)?"0"+n:n;};_264=_264||{};var _267=[];var _268=_264.zulu?"getUTC":"get";var date="";if(_264.selector!="time"){var year=_263[_268+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_263[_268+"Month"]()+1),_(_263[_268+"Date"]())].join("-");}_267.push(date);if(_264.selector!="date"){var time=[_(_263[_268+"Hours"]()),_(_263[_268+"Minutes"]()),_(_263[_268+"Seconds"]())].join(":");var _26c=_263[_268+"Milliseconds"]();if(_264.milliseconds){time+="."+(_26c<100?"0":"")+_(_26c);}if(_264.zulu){time+="Z";}else{if(_264.selector!="time"){var _26d=_263.getTimezoneOffset();var _26e=Math.abs(_26d);time+=(_26d>0?"-":"+")+_(Math.floor(_26e/60))+":"+_(_26e%60);}}_267.push(time);}return _267.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _270=d._scopeName+"Type";var qry="["+_270+"]";function val2type(_272){if(d.isString(_272)){return "string";}if(typeof _272=="number"){return "number";}if(typeof _272=="boolean"){return "boolean";}if(d.isFunction(_272)){return "function";}if(d.isArray(_272)){return "array";}if(_272 instanceof Date){return "date";}if(_272 instanceof d._Url){return "url";}return "object";};function str2obj(_273,type){switch(type){case "string":return _273;case "number":return _273.length?Number(_273):NaN;case "boolean":return typeof _273=="boolean"?_273:!(_273.toLowerCase()=="false");case "function":if(d.isFunction(_273)){_273=_273.toString();_273=d.trim(_273.substring(_273.indexOf("{")+1,_273.length-1));}try{if(_273.search(/[^\w\.]+/i)!=-1){_273=d.parser._nameAnonFunc(new Function(_273),this);}return d.getObject(_273,false);}catch(e){return new Function();}case "array":return _273?_273.split(/\s*,\s*/):[];case "date":switch(_273){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_273);}case "url":return d.baseUrl+_273;default:return d.fromJson(_273);}};var _275={};function getClassInfo(_276){if(!_275[_276]){var cls=d.getObject(_276);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_276+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _278=cls.prototype;var _279={};for(var name in _278){if(name.charAt(0)=="_"){continue;}var _27b=_278[name];_279[name]=val2type(_27b);}_275[_276]={cls:cls,params:_279};}return _275[_276];};this._functionFromScript=function(_27c){var _27d="";var _27e="";var _27f=_27c.getAttribute("args");if(_27f){d.forEach(_27f.split(/\s*,\s*/),function(part,idx){_27d+="var "+part+" = arguments["+idx+"]; ";});}var _282=_27c.getAttribute("with");if(_282&&_282.length){d.forEach(_282.split(/\s*,\s*/),function(part){_27d+="with("+part+"){";_27e+="}";});}return new Function(_27d+_27c.innerHTML+_27e);};this.instantiate=function(_284){var _285=[];d.forEach(_284,function(node){if(!node){return;}var type=node.getAttribute(_270);if((!type)||(!type.length)){return;}var _288=getClassInfo(type);var _289=_288.cls;var ps=_289._noScript||_289.prototype._noScript;var _28b={};var _28c=node.attributes;for(var name in _288.params){var item=_28c.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _28f=item.value;switch(name){case "class":_28f=node.className;break;case "style":_28f=node.style&&node.style.cssText;}var _290=_288.params[name];_28b[name]=str2obj(_28f,_290);}if(!ps){var _291=[],_292=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_293){var _294=_293.getAttribute("event"),type=_293.getAttribute("type"),nf=d.parser._functionFromScript(_293);if(_294){if(type=="dojo/connect"){_291.push({event:_294,func:nf});}else{_28b[_294]=nf;}}else{_292.push(nf);}});}var _296=_289["markupFactory"];if(!_296&&_289["prototype"]){_296=_289.prototype["markupFactory"];}var _297=_296?_296(_28b,node,_289):new _289(_28b,node);_285.push(_297);var _298=node.getAttribute("jsId");if(_298){d.setObject(_298,_297);}if(!ps){d.forEach(_291,function(_299){d.connect(_297,_299.event,null,_299.func);});d.forEach(_292,function(func){func.call(_297);});}});d.forEach(_285,function(_29b){if(_29b&&_29b.startup&&!_29b._started&&(!_29b.getParent||!_29b.getParent())){_29b.startup();}});return _285;};this.parse=function(_29c){var list=d.query(qry,_29c);var _29e=this.instantiate(list);return _29e;};}();(function(){var _29f=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_29f);}else{dojo._loaders.unshift(_29f);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_2a0,_2a1){var jpn="$joinpoint";var nso=(_2a1||dojo.parser._anon);if(dojo.isIE){var cn=_2a0["__dojoNameCache"];if(cn&&nso[cn]===_2a0){return _2a0["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_2a0;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _2a7=this.declaredClass,_2a8=this;return dojo.string.substitute(tmpl,this,function(_2a9,key){if(key.charAt(0)=="!"){_2a9=_2a8[key.substr(1)];}if(typeof _2a9=="undefined"){throw new Error(_2a7+" template:"+key);}if(_2a9==null){return "";}return key.charAt(0)=="!"?_2a9:_2a9.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _2ab=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_2ab)){node=dijit._Templated._createNodesFromText(this._stringRepl(_2ab))[0];}else{node=_2ab.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _2ad=this.srcNodeRef;if(_2ad&&_2ad.parentNode){_2ad.parentNode.replaceChild(node,_2ad);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_2ad);},_fillContent:function(_2b1){var dest=this.containerNode;if(_2b1&&dest){while(_2b1.hasChildNodes()){dest.appendChild(_2b1.firstChild);}}},_attachTemplateNodes:function(_2b3,_2b4){_2b4=_2b4||function(n,p){return n.getAttribute(p);};var _2b7=dojo.isArray(_2b3)?_2b3:(_2b3.all||_2b3.getElementsByTagName("*"));var x=dojo.isArray(_2b3)?0:-1;var _2b9={};for(;x<_2b7.length;x++){var _2ba=(x==-1)?_2b3:_2b7[x];if(this.widgetsInTemplate&&_2b4(_2ba,"dojoType")){continue;}var _2bb=_2b4(_2ba,"dojoAttachPoint");if(_2bb){var _2bc,_2bd=_2bb.split(/\s*,\s*/);while((_2bc=_2bd.shift())){if(dojo.isArray(this[_2bc])){this[_2bc].push(_2ba);}else{this[_2bc]=_2ba;}}}var _2be=_2b4(_2ba,"dojoAttachEvent");if(_2be){var _2bf,_2c0=_2be.split(/\s*,\s*/);var trim=dojo.trim;while((_2bf=_2c0.shift())){if(_2bf){var _2c2=null;if(_2bf.indexOf(":")!=-1){var _2c3=_2bf.split(":");_2bf=trim(_2c3[0]);_2c2=trim(_2c3[1]);}else{_2bf=trim(_2bf);}if(!_2c2){_2c2=_2bf;}this.connect(_2ba,_2bf,_2c2);}}}var role=_2b4(_2ba,"waiRole");if(role){dijit.setWaiRole(_2ba,role);}var _2c5=_2b4(_2ba,"waiState");if(_2c5){dojo.forEach(_2c5.split(/\s*,\s*/),function(_2c6){if(_2c6.indexOf("-")!=-1){var pair=_2c6.split("-");dijit.setWaiState(_2ba,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_2c8,_2c9,_2ca){var _2cb=dijit._Templated._templateCache;var key=_2c9||_2c8;var _2cd=_2cb[key];if(_2cd){if(!_2cd.ownerDocument||_2cd.ownerDocument==dojo.doc){return _2cd;}dojo._destroyElement(_2cd);}if(!_2c9){_2c9=dijit._Templated._sanitizeTemplateString(dojo._getText(_2c8));}_2c9=dojo.string.trim(_2c9);if(_2ca||_2c9.match(/\$\{([^\}]+)\}/g)){return (_2cb[key]=_2c9);}else{return (_2cb[key]=dijit._Templated._createNodesFromText(_2c9)[0]);}};dijit._Templated._sanitizeTemplateString=function(_2ce){if(_2ce){_2ce=_2ce.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _2cf=_2ce.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_2cf){_2ce=_2cf[1];}}else{_2ce="";}return _2ce;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _2d0=dijit._Templated._templateCache;for(var key in _2d0){var _2d2=_2d0[key];if(!isNaN(_2d2.nodeType)){dojo._destroyElement(_2d2);}delete _2d0[key];}});}(function(){var _2d3={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _2d6="none";var _2d7=text.replace(/^\s+/,"");for(var type in _2d3){var map=_2d3[type];if(map.re.test(_2d7)){_2d6=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_2d6];var _2db=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _2dc=[];while(_2db.firstChild){_2dc.push(_2db.removeChild(_2db.firstChild));}tn.innerHTML="";return _2dc;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_2dd){this.disabled=_2dd;dojo.attr(this.focusNode,"disabled",_2dd);dijit.setWaiState(this.focusNode,"disabled",_2dd);if(_2dd){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_2de){dojo.deprecated("setDisabled("+_2de+") is deprecated. Use attr('disabled',"+_2de+") instead.","","2.0");this.attr("disabled",_2de);},_onFocus:function(e){dijit.scrollIntoView(this.domNode);this.inherited(arguments);},_onMouse:function(_2e0){var _2e1=_2e0.currentTarget;if(_2e1&&_2e1.getAttribute){this.stateModifier=_2e1.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_2e0.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _2e2=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_2e2);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _2e3=this.baseClass.split(" ");function multiply(_2e4){_2e3=_2e3.concat(dojo.map(_2e3,function(c){return c+_2e4;}),"dijit"+_2e4);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_2e7={};dojo.forEach(tn.className.split(" "),function(c){_2e7[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _2e7[c];});}dojo.forEach(_2e3,function(c){_2e7[c]=true;});var _2eb=[];for(var c in _2e7){_2eb.push(c);}tn.className=_2eb.join(" ");this._stateClasses=_2e3;},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_2ef){},_onChangeActive:false,_handleOnChange:function(_2f0,_2f1){this._lastValue=_2f0;if(this._lastValueReported==undefined&&(_2f1===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_2f0;}if((this.intermediateChanges||_2f1||_2f1===undefined)&&((typeof _2f0!=typeof this._lastValueReported)||this.compare(_2f0,this._lastValueReported)!=0)){this._lastValueReported=_2f0;if(this._onChangeActive){this.onChange(_2f0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_2f2){dojo.deprecated("dijit.form._FormWidget:setValue("+_2f2+") is deprecated.  Use attr('value',"+_2f2+") instead.","","2.0");this.attr("value",_2f2);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){if(dojo.isIE||dojo.isSafari){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_2f5,_2f6){this.value=_2f5;this._handleOnChange(_2f5,_2f6);},_getValueAttr:function(_2f7){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_valueChanged:function(){var v=this.attr("value");var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isSafari){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}},_onKeyPress:function(e){if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){this.undo();dojo.stopEvent(e);return false;}else{if(this.intermediateChanges){var _2fd=this;setTimeout(function(){_2fd._handleOnChange(_2fd.attr("value"),false);},0);}}return true;}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _300=dijit.byId(id);return _300.isContainer?_300:null;}}return null;},_getSibling:function(_301){var node=this.domNode;do{node=node[_301+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_305,_306){var _307=this.containerNode;if(_306&&typeof _306=="number"){var _308=dojo.query("> [widgetId]",_307);if(_308&&_308.length>=_306){_307=_308[_306-1];_306="after";}}dojo.place(_305.domNode,_307,_306);if(this._started&&!_305._started){_305.startup();}},removeChild:function(_309){if(typeof _309=="number"&&_309>0){_309=this.getChildren()[_309];}if(!_309||!_309.domNode){return;}var node=_309.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_30d){dojo.forEach(this.getChildren(),function(_30e){_30e.destroyRecursive(_30d);});},_getSiblingOfChild:function(_30f,dir){var node=_30f.domNode;var _312=(dir>0?"nextSibling":"previousSibling");do{node=node[_312];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_313){var _314=this.getChildren();for(var i=0,c;c=_314[i];i++){if(c==_313){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_317,_318){var _319=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_317,function(code){_319[code]=prev;});dojo.forEach(_318,function(code){_319[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_31e,_31f){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_31e);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _320=this._getNextFocusableChild(this.focusedChild,1);if(_320.getFocalNodes){this.focusChild(_320,_320.getFocalNodes()[0]);}else{this.focusChild(_320);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _321=this._getNextFocusableChild(this.focusedChild,-1);if(_321.getFocalNodes){var _322=_321.getFocalNodes();this.focusChild(_321,_322[_322.length-1]);}else{this.focusChild(_321);}},focusChild:function(_323,node){if(_323){if(this.focusedChild&&_323!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_323;if(node&&_323.focusFocalNode){_323.focusFocalNode(node);}else{_323.focus();}}},_startupChild:function(_325){if(_325.getFocalNodes){dojo.forEach(_325.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_325.focusNode||_325.domNode;if(_325.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _32d=dijit.getEnclosingWidget(evt.target);if(_32d&&_32d.isFocusable()){this.focusedChild=_32d;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_32f){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_330,dir){if(_330){_330=this._getSiblingOfChild(_330,dir);}var _332=this.getChildren();for(var i=0;i<_332.length;i++){if(!_330){_330=_332[(dir>0)?0:(_332.length-1)];}if(_330.isFocusable()){return _330;}_330=this._getSiblingOfChild(_330,dir);}return null;}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"){dojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _337=dijit.byNode(node);if(_337&&typeof _337._onSubmit=="function"){_337._onSubmit(e);break;}}}}},_fillContent:function(_338){if(_338&&!("label" in this.params)){this.attr("label",_338.innerHTML);}},postCreate:function(){if(this.showLabel==false){dojo.addClass(this.containerNode,"dijitDisplayNone");}dojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_33b){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_33b);},_setLabelAttr:function(_33c){this.containerNode.innerHTML=this.label=_33c;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\ttype=\"${type}\" name=\"${name}\"\r\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\tdojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){if(this.srcNodeRef){var _33d=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_33d[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _33e=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_33e);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _341=dojo.isFF&&dojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_341||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==dojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){dojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _345=this.dropDown;if(!_345){return;}if(!this._opened){if(_345.href&&!_345.isLoaded){var self=this;var _347=dojo.connect(_345,"onLoad",function(){dojo.disconnect(_347);self._openDropDown();});_345._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _348=this.dropDown;var _349=_348.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_348,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_348.domNode.style.width=_349;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_348.domNode.offsetWidth){var _34b=null;if(!this.isLeftToRight()){_34b=_348.domNode.parentNode;var _34c=_34b.offsetLeft+_34b.offsetWidth;}dojo.marginBox(_348.domNode,{w:this.domNode.offsetWidth});if(_34b){_34b.style.left=_34c-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_348.focus){_348.focus();}},_closeDropDown:function(_34d){if(this._opened){dijit.popup.close(this.dropDown);if(_34d){this.focus();}this._opened=false;}}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  dojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\tdojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\tdojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];dojo.forEach(this._focalNodes,dojo.hitch(this,function(node){if(dojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";dojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_355){this.checked=_355;dojo.attr(this.focusNode||this.domNode,"checked",_355);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_355);this._setStateClass();this._handleOnChange(_355,true);},setChecked:function(_356){dojo.deprecated("setChecked("+_356+") is deprecated. Use attr('checked',"+_356+") instead.","","2.0");this.attr("checked",_356);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:"<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\r\n\t><input\r\n\t \ttype=\"${type}\" name=\"${name}\"\r\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\r\n\t\tdojoAttachPoint=\"focusNode\"\r\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\r\n/></div>\r\n",baseClass:"dijitCheckBox",type:"checkbox",value:"on",_setValueAttr:function(_357){if(typeof _357=="string"){this.value=_357;dojo.attr(this.focusNode,"value",_357);_357=true;}if(this._created){this.attr("checked",_357);}},_getValueAttr:function(){return (this.checked?this.value:false);},postMixInProperties:function(){if(this.value==""){this.value="on";}this.inherited(arguments);},_fillContent:function(_358){},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);this.value=this.params.value||"on";dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_359){this.inherited(arguments);if(!this._created){return;}if(_359){var _35a=this;dojo.query("INPUT[type=radio][name="+this.name+"]",this.focusNode.form||dojo.doc).forEach(function(_35b){if(_35b!=_35a.focusNode&&_35b.form==_35a.focusNode.form){var _35c=dijit.getEnclosingWidget(_35b);if(_35c&&_35c.checked){_35c.attr("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.attr("checked",true);}}});}if(!dojo._hasResource["LEE.ui.catalog.Checkbox"]){dojo._hasResource["LEE.ui.catalog.Checkbox"]=true;dojo.provide("LEE.ui.catalog.Checkbox");dojo.declare("LEE.ui.catalog.Checkbox",null,{checkboxes:[],radioboxes:[],constructor:function(){this._findCheckboxes();dojo.subscribe(LEE.event.GlobalEventNames.PRODUCT_CATALOG_LOADED,this,this.refresh);dojo.subscribe(LEE.event.FormEventNames.CREATED,this,this.refresh);dojo.subscribe(LEE.event.GlobalEventNames.CHECKBOX_DISABLED,this,this._handleDisable);dojo.subscribe(LEE.event.GlobalEventNames.CHECKBOX_ENABLED,this,this._handleEnable);dojo.subscribe(LEE.event.GlobalEventNames.CHECKBOX_ON_PAGINATION,this,this.labelHighlight);},handleClick:function(e){var _35f=e.target.parentNode;this.labelHighlight(_35f);},labelHighlight:function(_360){var div=_360;var _362=_360.parentNode;var _363=LEE.util.Dom.getAncestorByClassName(_360,LEE.ui.catalog.Checkbox.CLASSES.FILTER_OPTIONS);var span=LEE.util.Lang.getQueryElementByIndex("span",_362,0);if(_363&&span&&dojo.hasClass(div,LEE.ui.catalog.Checkbox.CLASSES.DIJITCHECKED)&&_363.id==LEE.ui.catalog.Checkbox.IDS.SIZE_OPTIONS){console.log("labelHighlight on");dojo.addClass(span,LEE.ui.catalog.Checkbox.CLASSES.CURRENT);}else{if(_363&&span&&dojo.hasClass(div,LEE.ui.catalog.Checkbox.CLASSES.DIJITCHECKBOX)&&_363.id==LEE.ui.catalog.Checkbox.IDS.SIZE_OPTIONS){console.log("labelHighlight off");dojo.removeClass(span,LEE.ui.catalog.Checkbox.CLASSES.CURRENT);}}},refresh:function(_365){this._findCheckboxes(_365);},_findCheckboxes:function(_366){if(_366){this.checkboxes=dojo.query(LEE.ui.catalog.Checkbox.CHECKBOX_TAG+"."+_366);}else{this.checkboxes=dojo.query(LEE.ui.catalog.Checkbox.CHECKBOX_TAG+"."+LEE.ui.catalog.Checkbox.CLASSES.CHECKBOX);}var _367=dojo.byId(LEE.util.config.get("GlobalElementIds.STATUS_MESSAGE"));for(var i=0;i<this.checkboxes.length;i++){if(_367&&dojo.isDescendant(this.checkboxes[i],_367)){continue;}else{if(this.checkboxes[i].id){var _369=dijit.byId(this.checkboxes[i].id);if(_369){_369.destroyRecursive();}}var _36a=new dijit.form.CheckBox({"class":this.checkboxes[i].className,"name":this.checkboxes[i].name,"value":this.checkboxes[i].value,"disabled":this.checkboxes[i].disabled,"checked":this.checkboxes[i].checked},this.checkboxes[i]);_36a.onClick=dojo.hitch(this,function(e){this.handleClick(e);});_36a.startup();}}this.radioboxes=dojo.query(LEE.ui.catalog.Checkbox.CHECKBOX_TAG+"."+LEE.ui.catalog.Checkbox.CLASSES.RADIOBOX);for(var i=0;i<this.radioboxes.length;i++){if(_367&&dojo.isDescendant(this.radioboxes[i],_367)){continue;}else{var _36c=new dijit.form.RadioButton({"class":this.radioboxes[i].className,"name":this.radioboxes[i].name,"value":this.radioboxes[i].value,"disabled":this.radioboxes[i].disabled,"checked":this.radioboxes[i].checked},this.radioboxes[i]);_36c.onClick=this.handleClick;_36c.startup();}}},_handleDisable:function(el){if(el){var _36e=LEE.util.Dom.getAncestorByTagName(el,"label");dojo.style(_36e,"color","#6585c6");var span=LEE.util.Lang.getQueryElementByIndex("span",_36e,0);if(span){dojo.style(span,"backgroundPosition","0 0");}}},_handleEnable:function(el){var _371=dojo.byId(el);if(_371){var _372=LEE.util.Dom.getAncestorByTagName(_371,"label");if(_372){dojo.style(_372,"color","white");}var span=LEE.util.Lang.getQueryElementByIndex("span",_372,0);if(span){dojo.style(span,"backgroundPosition","0 -38px");}}}});LEE.ui.catalog.Checkbox.CHECKBOX_TAG="input";LEE.ui.catalog.Checkbox.CLASSES={CHECKBOX:"checkbox",CURRENT:"current_selection",DIJITCHECKBOX:"dijitCheckBox",DIJITCHECKED:"dijitCheckBoxChecked",FILTER_OPTIONS:"filter_options",RADIOBOX:"radiobox"};LEE.ui.catalog.Checkbox.IDS={SIZE_OPTIONS:"options_09"};}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_374){_374.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_375,_376){var node=this.domNode;if(_375){dojo.marginBox(node,_375);if(_375.t){node.style.top=_375.t+"px";}if(_375.l){node.style.left=_375.l+"px";}}var mb=_376||{};dojo.mixin(mb,_375||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_37e){if(_37e.baseClass){dojo.addClass(_37e.domNode,this.baseClass+"-"+_37e.baseClass);}},addChild:function(_37f,_380){this.inherited(arguments);if(this._started){this._setupChild(_37f);}},removeChild:function(_381){if(_381.baseClass){dojo.removeClass(_381.domNode,this.baseClass+"-"+_381.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _387=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_38a,dim){_38a.resize?_38a.resize(dim):dojo.marginBox(_38a.domNode,dim);dojo.mixin(_38a,dojo.marginBox(_38a.domNode));dojo.mixin(_38a,dim);};dijit.layout.layoutChildren=function(_38c,dim,_38e){dim=dojo.mixin({},dim);dojo.addClass(_38c,"dijitLayoutContainer");_38e=dojo.filter(_38e,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_38e,function(item){return item.layoutAlign=="client";}));dojo.forEach(_38e,function(_391){var elm=_391.domNode,pos=_391.layoutAlign;var _394=elm.style;_394.left=dim.l+"px";_394.top=dim.t+"px";_394.bottom=_394.right="auto";dojo.addClass(elm,"dijitAlign"+_387(pos));if(pos=="top"||pos=="bottom"){size(_391,{w:dim.w});dim.h-=_391.h;if(pos=="top"){dim.t+=_391.h;}else{_394.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_391,{h:dim.h});dim.w-=_391.w;if(pos=="left"){dim.l+=_391.w;}else{_394.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_391,dim);}}}});};})();}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_395){_395.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_396){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_39f){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_39f))||dijit.Menu._iframeContentDocument(_39f)["__parent__"]||(_39f.name&&dojo.doc.frames[_39f.name])||null;return win;},_iframeContentDocument:function(_3a1){var doc=_3a1.contentDocument||(_3a1.contentWindow&&_3a1.contentWindow.document)||(_3a1.name&&dojo.doc.frames[_3a1.name]&&dojo.doc.frames[_3a1.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_3a6){var node=dojo.byId(_3a6);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _3b0=dojo.coords(e.target,true);x=_3b0.x+10;y=_3b0.y+10;}var self=this;var _3b2=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_3b2);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _3b4=this.focusedChild;var _3b5=_3b4.popup;if(_3b5.isShowingNow){return;}_3b5.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_3b5,around:_3b4.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_3b5);_3b4.focus();self.currentPopup=null;}});this.currentPopup=_3b5;if(_3b5.focus){_3b5.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_3b7){if(_3b7&&!("label" in this.params)){this.attr("label",_3b7.innerHTML);}},postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_3ba){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_3ba);},setDisabled:function(_3bb){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_3bb);},_setDisabledAttr:function(_3bc){this.disabled=_3bc;dojo[_3bc?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_3bc?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _3bd=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_3bd[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_3bf){dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_3bf);dijit.setWaiState(this.domNode,"checked",_3bf);this.checked=_3bf;},onChange:function(_3c0){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_3c2,_3c3,_3c4){_3c4=dojo.i18n.normalizeLocale(_3c4);var _3c5=_3c4.split("-");var _3c6=[_3c2,"nls",_3c3].join(".");var _3c7=dojo._loadedModules[_3c6];if(_3c7){var _3c8;for(var i=_3c5.length;i>0;i--){var loc=_3c5.slice(0,i).join("_");if(_3c7[loc]){_3c8=_3c7[loc];break;}}if(!_3c8){_3c8=_3c7.ROOT;}if(_3c8){var _3cb=function(){};_3cb.prototype=_3c8;return new _3cb();}}throw new Error("Bundle not found: "+_3c3+" in "+_3c2+" , locale="+_3c4);};dojo.i18n.normalizeLocale=function(_3cc){var _3cd=_3cc?_3cc.toLowerCase():dojo.locale;if(_3cd=="root"){_3cd="ROOT";}return _3cd;};dojo.i18n._requireLocalization=function(_3ce,_3cf,_3d0,_3d1){var _3d2=dojo.i18n.normalizeLocale(_3d0);var _3d3=[_3ce,"nls",_3cf].join(".");var _3d4="";if(_3d1){var _3d5=_3d1.split(",");for(var i=0;i<_3d5.length;i++){if(_3d2["indexOf"](_3d5[i])==0){if(_3d5[i].length>_3d4.length){_3d4=_3d5[i];}}}if(!_3d4){_3d4="ROOT";}}var _3d7=_3d1?_3d4:_3d2;var _3d8=dojo._loadedModules[_3d3];var _3d9=null;if(_3d8){if(dojo.config.localizationComplete&&_3d8._built){return;}var _3da=_3d7.replace(/-/g,"_");var _3db=_3d3+"."+_3da;_3d9=dojo._loadedModules[_3db];}if(!_3d9){_3d8=dojo["provide"](_3d3);var syms=dojo._getModuleSymbols(_3ce);var _3dd=syms.concat("nls").join("/");var _3de;dojo.i18n._searchLocalePath(_3d7,_3d1,function(loc){var _3e0=loc.replace(/-/g,"_");var _3e1=_3d3+"."+_3e0;var _3e2=false;if(!dojo._loadedModules[_3e1]){dojo["provide"](_3e1);var _3e3=[_3dd];if(loc!="ROOT"){_3e3.push(loc);}_3e3.push(_3cf);var _3e4=_3e3.join("/")+".js";_3e2=dojo._loadPath(_3e4,null,function(hash){var _3e6=function(){};_3e6.prototype=_3de;_3d8[_3e0]=new _3e6();for(var j in hash){_3d8[_3e0][j]=hash[j];}});}else{_3e2=true;}if(_3e2&&_3d8[_3e0]){_3de=_3d8[_3e0];}else{_3d8[_3e0]=_3de;}if(_3d1){return true;}});}if(_3d1&&_3d2!=_3d4){_3d8[_3d2.replace(/-/g,"_")]=_3d8[_3d4.replace(/-/g,"_")];}};(function(){var _3e8=dojo.config.extraLocale;if(_3e8){if(!_3e8 instanceof Array){_3e8=[_3e8];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_3ec,_3ed){req(m,b,_3ec,_3ed);if(_3ec){return;}for(var i=0;i<_3e8.length;i++){req(m,b,_3e8[i],_3ed);}};}})();dojo.i18n._searchLocalePath=function(_3ef,down,_3f1){_3ef=dojo.i18n.normalizeLocale(_3ef);var _3f2=_3ef.split("-");var _3f3=[];for(var i=_3f2.length;i>0;i--){_3f3.push(_3f2.slice(0,i).join("-"));}_3f3.push(false);if(down){_3f3.reverse();}for(var j=_3f3.length-1;j>=0;j--){var loc=_3f3[j]||"ROOT";var stop=_3f1(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_3f8,_3f9){function preload(_3fa){_3fa=dojo.i18n.normalizeLocale(_3fa);dojo.i18n._searchLocalePath(_3fa,true,function(loc){for(var i=0;i<_3f9.length;i++){if(_3f9[i]==loc){dojo["require"](_3f8+"_"+loc);return true;}}return false;});};preload();var _3fd=dojo.config.extraLocale||[];for(var i=0;i<_3fd.length;i++){preload(_3fd[i]);}};}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _3ff=this.getChildren();dojo.forEach(_3ff,this._setupChild,this);dojo.some(_3ff,function(_400){if(_400.selected){this.selectedChildWidget=_400;}return _400.selected;},this);var _401=this.selectedChildWidget;if(!_401&&_3ff[0]){_401=this.selectedChildWidget=_3ff[0];_401.selected=true;}if(_401){this._showChild(_401);}dojo.publish(this.id+"-startup",[{children:_3ff,selected:_401}]);this.inherited(arguments);},_setupChild:function(_402){this.inherited(arguments);_402.domNode.style.display="none";_402.domNode.style.position="relative";_402.domNode.title="";return _402;},addChild:function(_403,_404){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_403,_404]);this.layout();if(!this.selectedChildWidget){this.selectChild(_403);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){dojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _406=this.getChildren();if(_406.length){this.selectChild(_406[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;dojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_408,_409){if(_409){this._hideChild(_409);}this._showChild(_408);if(this.doLayout&&_408.resize){_408.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_40a){var _40b=this.getChildren();var _40c=dojo.indexOf(_40b,this.selectedChildWidget);_40c+=_40a?1:_40b.length-1;return _40b[_40c%_40b.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _40f=this.getChildren();page.isFirstChild=(page==_40f[0]);page.isLastChild=(page==_40f[_40f.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _412=page.onClose(this,page);if(_412){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[dojo.subscribe(this.containerId+"-startup",this,"onStartup"),dojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),dojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),dojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),dojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}dojo.forEach(this._subscriptions,dojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_416){var _417=dojo.doc.createElement("span");this.domNode.appendChild(_417);var cls=dojo.getObject(this.buttonWidget);var _419=new cls({label:page.title,closeButton:page.closable},_417);this.addChild(_419,_416);this.pane2button[page]=_419;page.controlButton=_419;var _41a=[];_41a.push(dojo.connect(_419,"onClick",dojo.hitch(this,"onButtonClick",page)));if(page.closable){_41a.push(dojo.connect(_419,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page)));var _41b=dojo.i18n.getLocalization("dijit","common");var _41c=new dijit.Menu({targetNodeIds:[_419.id],id:_419.id+"_Menu"});var _41d=new dijit.MenuItem({label:_41b.itemClose});_41a.push(dojo.connect(_41d,"onClick",dojo.hitch(this,"onCloseButtonClick",page)));_41c.addChild(_41d);this.pane2menu[page]=_41c;}this.pane2handles[page]=_41a;if(!this._currentChild){_419.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2handles[page],dojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _420=this.pane2button[page];if(_420){_420.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _422=this.pane2button[this._currentChild];_422.attr("checked",false);_422.focusNode.setAttribute("tabIndex","-1");}var _423=this.pane2button[page];_423.attr("checked",true);this._currentChild=page;_423.focusNode.setAttribute("tabIndex","0");var _424=dijit.byId(this.containerId);dijit.setWaiState(_424.containerNode,"labelledby",_423.id);},onButtonClick:function(page){var _426=dijit.byId(this.containerId);_426.selectChild(page);},onCloseButtonClick:function(page){var _428=dijit.byId(this.containerId);_428.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_42a){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_42a=!_42a;}var _42b=this.getChildren();var _42c=dojo.indexOf(_42b,this.pane2button[this._currentChild]);var _42d=_42a?1:_42b.length-1;return _42b[(_42c+_42d)%_42b.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _42f=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_42f=false;}break;case k.PAGE_UP:if(e.ctrlKey){_42f=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_42f=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_42f=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode==k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_42f!==null){this.adjacent(_42f).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});dojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\r\n\t<div dojoAttachPoint=\"tablistNode\"></div>\r\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _435=dojo.getObject(this._controllerWidget);this.tablist=new _435({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){dojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _437=this.tabPosition.replace(/-h/,"");var _438=[{domNode:this.tablist.domNode,layoutAlign:_437},{domNode:this.tablistSpacer,layoutAlign:_437},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_438);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_438[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _439=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_439=Math.max(_439,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_439+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" dojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\r\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\r\n        <div waiRole=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\r\n\t        <span dojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\r\n\t        <div class=\"dijitInline closeNode\" dojoAttachPoint='closeNode' dojoAttachEvent='onclick:onClickCloseButton'>\r\n\t        \t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint='closeButtonNode' class='closeImage' dojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse' stateModifier='CloseButton' waiRole=\"presentation\"/>\r\n\t            <span dojoAttachPoint='closeText' class='closeText'>x</span>\r\n\t        </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n",postCreate:function(){if(this.closeButton){dojo.addClass(this.innerDiv,"dijitClosable");var _43c=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_43c.itemClose);dojo.attr(this.closeButtonNode,"title",_43c.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);dojo.setSelectable(this.containerNode,false);}});}if(!dojo._hasResource["LEE.ui.global.Tabs"]){dojo._hasResource["LEE.ui.global.Tabs"]=true;dojo.provide("LEE.ui.global.Tabs");dojo.declare("LEE.ui.global.Tabs",null,{tabContainers:[],tabs:[],title:[],tabContainerClass:"tab_container",tabContainerTag:"div",tabClass:"tab",tabTag:"div",constructor:function(){this.tabContainers=dojo.query(this.tabContainerTag+"."+this.tabContainerClass);for(var i=this.tabContainers.length-1;i>=0;i--){this.tabs=dojo.query(this.tabTag+"."+this.tabClass,this.tabContainers[i]);if(dojo.isOpera){dojo.removeClass(this.tabContainers[i],"none");}var _43e=dojo.style(this.tabContainers[i].id,"height");if(!this.tabContainers[i].id){this.tabContainers[i].id=LEE.util.Lang.generateId();}var _43f=dijit.byId(this.tabContainers[i].id);if(_43f){_43f.destroy();}var _440=new dijit.layout.TabContainer({},this.tabContainers[i]);if(this.tabContainers[i].id){dojo.style(this.tabContainers[i].id,"height",_43e+"px");}for(var j=0;j<this.tabs.length;j++){var _442=LEE.util.Lang.getQueryElementByIndex("h3.tabtitle",this.tabs[j],0);if(_442){_442.style.display="none";var t=new dijit.layout.ContentPane({title:_442.innerHTML},this.tabs[j]);_440.addChild(t);}}_440.startup();}}});}if(!dojo._hasResource["LEE.ui.form.Form"]){dojo._hasResource["LEE.ui.form.Form"]=true;dojo.provide("LEE.ui.form.Form");dojo.declare("LEE.ui.form.Form",null,{connections:[],creditCardFields:[],creditCardSecurityCodeFields:[],emailFields:[],form:null,handleAs:"text",invalidMessage:"",messageElement:null,phoneFields:[],requiredFields:[],submitUrl:null,type:"",zipFields:[],_pendingCall:null,submitViaXHR:true,_checkCCValidity:true,constructor:function(form){if(form){this.form=dojo.byId(form);this._startup();}dojo.publish(LEE.event.FormEventNames.CREATED,[this.declaredClass,this]);LEE.ui.form.Form.enableDefaultTextInputs();this.invalidMessage=LEE.util.config.get("Messages.FORM_DEFAULT_ERROR");},_attachListeners:function(){if(this.form){this.connections.push(dojo.connect(this.form,"submit",this,this.onSubmit));dojo.forEach(dojo.query("input",this.form),function(el){this.connections.push(dojo.connect(el,"keypress",this,function(e){if(e&&e.keyCode===13){try{dojo.stopEvent(e);}catch(err){}}}));this.connections.push(dojo.connect(el,"keyup",this,function(e){if(e&&e.keyCode===13){try{dojo.stopEvent(e);}catch(err){}this.onSubmit();}}));},this);}},_detachListeners:function(){dojo.forEach(this.connections,function(_448){dojo.disconnect(_448);},this);},_findElements:function(){if(this.form){this.requiredFields=dojo.query("."+LEE.ui.form.Form.CLASSES.REQUIRED,this.form);this.creditCardFields=dojo.query("."+LEE.ui.form.Form.CLASSES.CREDIT_CARD,this.form);this.creditCardSecurityCodeFields=dojo.query("."+LEE.ui.form.Form.CLASSES.CREDIT_CARD_SECURITY_CODE,this.form);this.emailFields=dojo.query("."+LEE.ui.form.Form.CLASSES.EMAIL,this.form);this.phoneFields=dojo.query("."+LEE.ui.form.Form.CLASSES.PHONE,this.form);this.zipFields=dojo.query("."+LEE.ui.form.Form.CLASSES.ZIP,this.form);this.messageElement=LEE.util.Lang.getElementByIndex(dojo.query("."+LEE.ui.form.Form.CLASSES.MESSAGE_ELEMENT,this.form),0);}},_startup:function(){if(this.form){this.submitUrl=this.form.action;this._findElements();this._attachListeners();}},_submitForm:function(){var _449={refresh:1};if(!this._pendingCall){this._pendingCall=dojo.xhrPost({form:this.form,url:this.submitUrl,scope:this,load:dojo.hitch(this,this.onSubmitSuccess),error:dojo.hitch(this,this.onSubmitError),handleAs:this.handleAs,timeout:LEE.util.config.get("XHR_TIMEOUT"),content:_449});dojo.publish(LEE.event.FormEventNames.SUBMITTED,[this.declaredClass,this.form]);}},_validateForm:function(_44a){var _44b=true;var _44c=LEE.ui.form.Form.CLASSES.INVALID;if(_44a){_44c="";}dojo.forEach(dojo._toArray(this.requiredFields).concat(dojo._toArray(this.emailFields),dojo._toArray(this.phoneFields)),function(el){dojo.removeClass(el,_44c);if(dojo.hasClass(el.parentNode,"borderProxy")){try{var _44e=el.parentNode;dojo.style(el,"marginRight",dojo.style(_44e,"marginRight"));dojo.style(el,"marginLeft",dojo.style(_44e,"marginLeft"));el.parentNode.parentNode.insertBefore(el,_44e);el.parentNode.removeChild(_44e);}catch(err){alert(err.message);}}dojo.removeClass(el.parentNode,_44c);},this);dojo.forEach(this.requiredFields,function(el){if(!el.value){var _450="";}else{var _450=dojo.trim(el.value);}if(dojo.hasClass(el,LEE.ui.form.Form.CLASSES.DIJIT_RADIO)){var el0=LEE.util.Lang.getQueryElementByIndex("input",el,0);if(el0){el=el0;}}else{if(_450===el.title||_450===""){if(dojo.isIE&&el.tagName.toLowerCase()=="select"&&!_44a){var _452=document.createElement("div");dojo.addClass(_452,"borderProxy");dojo.style(_452,"borderWidth","1px");dojo.style(_452,"marginRight",dojo.style(el,"marginRight")+"px");dojo.style(_452,"marginBottom",dojo.style(el,"marginBottom")+"px");dojo.style(_452,"height",el.offsetHeight+"px");dojo.style(_452,"width",el.offsetWidth+"px");dojo.style(_452,"border","1px solid red");dojo.style(el,"margin","0");el.parentNode.insertBefore(_452,el);_452.appendChild(el);}dojo.addClass(el,_44c);_44b=false;}}if(el.type&&el.type.toLowerCase()==="radio"&&!LEE.ui.form.Form.findRadioValue(this.form[el.name])){dojo.addClass(el,_44c);dojo.addClass(el.parentNode,_44c);_44b=false;}},this);dojo.forEach(this.creditCardFields,function(el){if(this._checkCCValidity){var _454=false;var _455=dojo.trim(el.value);if(_455){_454=_455.replace(/[^0-9]+/gi,"");}if((dojo.indexOf(this.requiredFields,el)>=0)&&!LEE.ui.form.Form.REGEXP.CREDIT_CARD.test(_454)){dojo.addClass(el,_44c);_44b=false;}}},this);dojo.forEach(this.creditCardSecurityCodeFields,function(el){if(this._checkCCValidity){var _457=false;var _458=dojo.trim(el.value);if(_458){_457=_458.replace(/[^0-9]+/gi,"");}if(((_457&&_457!==el.title)||dojo.indexOf(this.requiredFields,el)>=0)&&!LEE.ui.form.Form.REGEXP.CREDIT_CARD_SECURITY_CODE.test(_457)){dojo.addClass(el,_44c);_44b=false;}}},this);dojo.forEach(this.emailFields,function(el){var _45a=dojo.trim(el.value);if(((_45a&&_45a!==el.title)||dojo.indexOf(this.requiredFields,el)>=0)&&!LEE.ui.form.Form.REGEXP.EMAIL.test(_45a)){dojo.addClass(el,_44c);_44b=false;}},this);dojo.forEach(this.phoneFields,function(el){var _45c=dojo.trim(el.value);if(((_45c&&_45c!==el.title)||dojo.indexOf(this.requiredFields,el)>=0)&&!LEE.ui.form.Form.REGEXP.PHONE.test(_45c)){dojo.addClass(el,_44c);_44b=false;}},this);dojo.forEach(this.zipFields,function(el){var _45e=dojo.trim(el.value);if(((_45e&&_45e!==el.title)||dojo.indexOf(this.requiredFields,el)>=0)&&!LEE.ui.form.Form.REGEXP.ZIP.test(_45e)){dojo.addClass(el,_44c);_44b=false;}},this);if(!_44b&&!_44a){this.onInvalid();}else{if(!_44a){this.onValid();}}return _44b;},destroy:function(){this._detachListeners();},onCancel:function(e){if(e){dojo.stopEvent(e);}dojo.publish(LEE.event.GlobalEventNames.DIALOG_FINISHED);},onInvalid:function(_460){if(!_460){_460=this.invalidMessage;}if(this.messageElement){this.messageElement.innerHTML=_460;}else{alert(_460);}},onSubmit:function(e){if(this.submitViaXHR){try{dojo.stopEvent(e);}catch(err){}if(this._validateForm()){this._submitForm(e);return true;}else{return false;}}else{try{dojo.stopEvent(e);}catch(err){}if(this._validateForm()){this.form.submit();}}},onSubmitSuccess:function(_462,args){dojo.publish(LEE.event.ServiceEventNames.SERVICE_END,["",_462]);this._pendingCall=null;},onSubmitError:function(_464,args){this._pendingCall=null;},onValid:function(){if(this.messageElement){this.messageElement.innerHTML="";}}});LEE.ui.form.Form.enableDefaultTextInputs=function(){function _clearDefaultText(e){if(e.target.value==e.target.title){e.target.value="";dojo.removeClass(e.target,LEE.ui.form.Form.CLASSES.INVALID);}};function _replaceDefaultText(e){if(e.target.value==""){e.target.value=e.target.title;dojo.removeClass(e.target,LEE.ui.form.Form.CLASSES.INVALID);}};var _468=dojo.query("input"+"."+LEE.ui.form.Form.CLASSES.TEXT_REPLACE);for(var i=_468.length-1;i>=0;i--){dojo.connect(_468[i],"tab",this,_clearDefaultText);dojo.connect(_468[i],"focus",this,_clearDefaultText);dojo.connect(_468[i],"blur",this,_replaceDefaultText);}var _46a=dojo.query("textarea"+"."+LEE.ui.form.Form.CLASSES.TEXT_REPLACE);for(var i=_46a.length-1;i>=0;i--){dojo.connect(_46a[i],"click",this,_clearDefaultText);dojo.connect(_46a[i],"blur",this,_replaceDefaultText);}};LEE.ui.form.Form.findRadioValue=function(_46b){if(!_46b){return null;}if(!_46b[0]){_46b=[_46b];}for(var i=_46b.length-1;i>=0;i--){if((_46b[i].checked&&_46b[i].checked!=="")||dojo.hasClass(_46b[i].parentNode,LEE.ui.form.Form.CLASSES.DIJIT_CHECKED)){return _46b[i].value;}}return null;};LEE.ui.form.Form.CLASSES={CREDIT_CARD:"validate_credit_card",CREDIT_CARD_SECURITY_CODE:"validate_credit_card_security_code",DIJIT_CHECKED:"dijitChecked",DIJIT_RADIO:"dijitRadio",EMAIL:"validate_email",INVALID:"invalid",MESSAGE_ELEMENT:"form_message",PHONE:"telephone",REQUIRED:"required",TEXT_REPLACE:"replace_def",ZIP:"validate_zip"};LEE.ui.form.Form.REGEXP={CREDIT_CARD:new RegExp(/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/),CREDIT_CARD_SECURITY_CODE:new RegExp(/^[0-9]{3,4}$/),EMAIL:new RegExp(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/),PHONE:new RegExp(/^([0-9]( |-|.)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-|.)?([0-9]{3}( |-|.)?[0-9]{4}|[a-zA-Z0-9]{7})$/),ZIP:new RegExp(/^[0-9]{5}(-[0-9]{4})?$/)};}if(!dojo._hasResource["LEE.ui.global.ClickBlocker"]){dojo._hasResource["LEE.ui.global.ClickBlocker"]=true;dojo.provide("LEE.ui.global.ClickBlocker");dojo.declare("LEE.ui.global.ClickBlocker",null,{blocker:null,constructor:function(){this._attachListeners();},_attachListeners:function(){dojo.subscribe(LEE.event.GlobalEventNames.CLICK_BLOCKER_SHOW,this,this.show);dojo.subscribe(LEE.event.GlobalEventNames.CLICK_BLOCKER_HIDE,this,this.hide);},_createNodes:function(){this.blocker=document.createElement("div");this.blocker.id=LEE.ui.global.ClickBlocker.IDS.BLOCKER;dojo.addClass(this.blocker,"none");dojo.style(this.blocker,"opacity","0.20");dojo.byId(LEE.ui.global.ClickBlocker.IDS.PAGE_CONTAINER).appendChild(this.blocker);},hide:function(){if(this.blocker){dojo.addClass(this.blocker,"none");dojo.style(this.blocker,"cursor","");}},show:function(){if(!this.blocker){this._createNodes();}dojo.style(this.blocker,"height",dojo.style(LEE.ui.global.ClickBlocker.IDS.PAGE_CONTAINER,"height")+"px");dojo.removeClass(this.blocker,"none");dojo.style(this.blocker,"cursor","wait");}});LEE.ui.global.ClickBlocker.IDS={BLOCKER:"paginationBlocker",PAGE_CONTAINER:"container"};}if(!dojo._hasResource["LEE.ui.global.CountrySelector"]){dojo._hasResource["LEE.ui.global.CountrySelector"]=true;dojo.provide("LEE.ui.global.CountrySelector");dojo.declare("LEE.ui.global.CountrySelector",null,{button:null,buttonId:"country_open",countryRollout:null,countryRolloutId:"country_rollout",isOpen:"true",openWidth:null,constructor:function(){this.button=dojo.byId(this.buttonId);this.countryRollout=dojo.byId(this.countryRolloutId);dojo.connect(this.button,"click",this,this.openRollout);if(dojo.byId("country_rollout")){this.openWidth=dojo.byId("country_rollout").offsetWidth+5;}this.openRollout();},openRollout:function(e){if(e){dojo.stopEvent(e);}if(!this.isOpen){this.isOpen=true;dojo.animateProperty({node:this.countryRollout,duration:200,properties:{width:{end:this.openWidth}}}).play();}else{this.isOpen=false;dojo.animateProperty({node:this.countryRollout,duration:200,properties:{width:{end:"0"}}}).play();}}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";dojo.dnd.getCopyKeyState=function(e){return e[dojo.dnd._copyKey];};dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.dnd.getViewport=function(){var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();if(dojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!dojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isSafari||dojo.isOpera){rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _485=n.scrollLeft,_486=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_485!=n.scrollLeft||_486!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_48c=dojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo,"stopEvent"),dojo.connect(d,"onselectstart",dojo,"stopEvent"),_48c];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isSafari&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this);}dojo.disconnect(this.events.pop());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_49b){this.node=dojo.byId(node);if(!_49b){_49b={};}this.handle=_49b.handle?dojo.byId(_49b.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_49b.delay>0?_49b.delay:0;this.skip=_49b.skip;this.mover=_49b.mover?_49b.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_49c,node){return new dojo.dnd.Moveable(node,_49c);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop());dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_4a3){dojo.publish("/dnd/move/start",[_4a3]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_4a4){dojo.publish("/dnd/move/stop",[_4a4]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_4a5){},onMove:function(_4a6,_4a7){this.onMoving(_4a6,_4a7);var s=_4a6.node.style;s.left=_4a7.l+"px";s.top=_4a7.t+"px";this.onMoved(_4a6,_4a7);},onMoving:function(_4a9,_4aa){},onMoved:function(_4ab,_4ac){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_4ad,node){return new dojo.dnd.move.constrainedMoveable(node,_4ad);},constructor:function(node,_4b0){if(!_4b0){_4b0={};}this.constraints=_4b0.constraints;this.within=_4b0.within;},onFirstMove:function(_4b1){var c=this.constraintBox=this.constraints.call(this,_4b1);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo.marginBox(_4b1.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_4b4,_4b5){var c=this.constraintBox,s=_4b4.node.style;s.left=(_4b5.l<c.l?c.l:c.r<_4b5.l?c.r:_4b5.l)+"px";s.top=(_4b5.t<c.t?c.t:c.b<_4b5.t?c.b:_4b5.t)+"px";}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_4b8,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_4b8);},constructor:function(node,_4bb){var box=_4bb&&_4bb.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_4bd,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_4bd);},constructor:function(node,_4c0){var area=_4c0&&_4c0.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.move.constrainedMover=function(fun,_4c7){dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");var _4c8=function(node,e,_4cb){dojo.dnd.Mover.call(this,node,e,_4cb);};dojo.extend(_4c8,dojo.dnd.Mover.prototype);dojo.extend(_4c8,{onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_4c7){var mb=dojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _4c8;};dojo.dnd.move.boxConstrainedMover=function(box,_4d4){dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");return dojo.dnd.move.constrainedMover(function(){return box;},_4d4);};dojo.dnd.move.parentConstrainedMover=function(area,_4d6){dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return dojo.dnd.move.constrainedMover(fun,_4d6);};dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _4dc=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_4de){if(!_4de){_4de={};}if(_4de.timeout&&typeof _4de.timeout=="number"&&_4de.timeout>=0){this.timeout=_4de.timeout;}},markupFactory:function(_4df,node){return new dojo.dnd.TimedMoveable(node,_4df);},onMoveStop:function(_4e1){if(_4e1._timer){clearTimeout(_4e1._timer);_4dc.call(this,_4e1,_4e1._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_4e2,_4e3){_4e2._leftTop=_4e3;if(!_4e2._timer){var _t=this;_4e2._timer=setTimeout(function(){_4e2._timer=null;_4dc.call(_t,_4e2,_4e2._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _4e5={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _4e8=function(_4e9){this._index=-1;this._animations=_4e9||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_4e8,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_4eb,_4ec){if(!this._current){this._current=this._animations[this._index=0];}if(!_4ec&&this._current.status()=="playing"){return this;}var _4ed=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_4ee=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_4f0=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_4ed);dojo.disconnect(_4ee);dojo.disconnect(_4f0);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_4f4,_4f5){this.pause();var _4f6=this.duration*_4f4;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_4f6){this._current=a;return true;}_4f6-=a.duration;return false;});if(this._current){this._current.gotoPercent(_4f6/this._current.duration,_4f5);}return this;},stop:function(_4f8){if(this._current){if(_4f8){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=dojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);dojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}}});dojo.extend(_4e8,_4e5);dojo.fx.chain=function(_4fb){return new _4e8(_4fb);};var _4fc=function(_4fd){this._animations=_4fd||[];this._connects=[];this._finished=0;this.duration=0;dojo.forEach(_4fd,function(a){var _4ff=a.duration;if(a.delay){_4ff+=a.delay;}if(this.duration<_4ff){this.duration=_4ff;}this._connects.push(dojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new dojo._Animation({curve:[0,1],duration:this.duration});dojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(dojo.connect(this._pseudoAnimation,evt,dojo.hitch(this,"_fire",evt)));},this);};dojo.extend(_4fc,{_doAction:function(_501,args){dojo.forEach(this._animations,function(a){a[_501].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_504,args){var t=this._pseudoAnimation;t[_504].apply(t,args);},play:function(_507,_508){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_509,_50a){var ms=this.duration*_509;dojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_50a);});this._call("gotoPercent",arguments);return this;},stop:function(_50d){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);}});dojo.extend(_4fc,_4e5);dojo.fx.combine=function(_50e){return new _4fc(_50e);};})();dojo.declare("dojo.fx.Toggler",null,{constructor:function(args){var _t=this;dojo.mixin(_t,args);_t.node=args.node;_t._showArgs=dojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_511){return this.showAnim.play(_511||0);},hide:function(_512){return this.hideAnim.play(_512||0);}});dojo.fx.wipeIn=function(args){args.node=dojo.byId(args.node);var node=args.node,s=node.style,o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _518=dojo.style(node,"height");return Math.max(_518,1);}},end:function(){return node.scrollHeight;}}}},args));dojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=dojo.byId(args.node);var s=node.style;var o;var anim=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},args));dojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});dojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=(args.node=dojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=dojo.animateProperty(dojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));dojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _528=0;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(node){while(node.firstChild){dojo._destroyElement(node.firstChild);}};dojo.html._setNodeContent=function(node,cont,_52d){if(_52d){dojo.html._emptyNode(node);}if(typeof cont=="string"){var pre="",post="",walk=0,name=node.nodeName.toLowerCase();switch(name){case "tr":pre="<tr>";post="</tr>";walk+=1;case "tbody":case "thead":pre="<tbody>"+pre;post+="</tbody>";walk+=1;case "table":pre="<table>"+pre;post+="</table>";walk+=1;break;}if(walk){var n=node.ownerDocument.createElement("div");n.innerHTML=pre+cont+post;do{n=n.firstChild;}while(--walk);dojo.forEach(n.childNodes,function(n){node.appendChild(n.cloneNode(true));});}else{node.innerHTML=cont;}}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_535,node){dojo.mixin(this,_535||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_528++].join("_");}if(!(this.node||node)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(cont,_538){if(undefined!==cont){this.content=cont;}if(_538){this._mixin(_538);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){console.error("setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _53a=this.onContentError(e);try{node.innerHTML=_53a;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _53d=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_53d){cont=_53d[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_53f){var _540={},key;for(key in _53f){if(key in _540){continue;}this[key]=_53f[key];}},_parse:function(){var _542=this.node;try{this.parseResults=dojo.parser.parse(_542,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_545){var _546=this["on"+type+"Error"].call(this,err);if(_545){console.error(_545,err);}else{if(_546){dojo.html._setNodeContent(this.node,_546,true);}}}});dojo.html.set=function(node,cont,_549){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_549){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_549,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,postMixInProperties:function(){this.inherited(arguments);var _54b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_54b);this.errorMessage=dojo.string.substitute(this.errorMessage,_54b);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _54c=dojo.query(">",this.containerNode),_54d=_54c.filter(function(node){return dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_54f=dojo.filter(_54d.map(dijit.byNode),function(_550){return _550&&_550.domNode&&_550.resize;});if(_54c.length==_54d.length&&_54f.length==1){this.isContainer=true;this._singleChild=_54f[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.href=href;if(this._created){return this._prepareLoad();}},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}this._onLoadHandler();},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_55a){this.cancel();this.isLoaded=false;this._loadCheck(_55a);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_55c){var _55d=this._isShown();if(this.href&&(_55c||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_55d&&!this._xhrDfd)||(!this.isLoaded&&_55d&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _55f={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_55f,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_55f);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.attr.call(self,"content",html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this._contentSetter){this._contentSetter.empty();}try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();var _564=this._contentSetter;if(!(_564&&_564 instanceof dojo.html._ContentSetter)){_564=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _566=this.onContentError(e);try{this.containerNode.innerHTML=_566;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _567=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_564,_567);_564.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;},_onError:function(type,err,_56a){var _56b=this["on"+type+"Error"].call(this,err);if(_56a){console.error(_56a,err);}else{if(_56b){this._setContent.call(this,_56b);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_56e){},onDownloadError:function(_56f){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{reset:function(){dojo.forEach(this.getDescendants(),function(_570){if(_570.reset){_570.reset();}});},validate:function(){var _571=false;return dojo.every(dojo.map(this.getDescendants(),function(_572){_572._hasBeenBlurred=true;var _573=_572.disabled||!_572.validate||_572.validate();if(!_573&&!_571){dijit.scrollIntoView(_572.containerNode||_572.domNode);_572.focus();_571=true;}return _573;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_578){if(!_578.name){return;}var _579=map[_578.name]||(map[_578.name]=[]);_579.push(_578);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _57b=map[name],_57c=dojo.getObject(name,false,obj);if(_57c===undefined){continue;}if(!dojo.isArray(_57c)){_57c=[_57c];}if(typeof _57b[0].checked=="boolean"){dojo.forEach(_57b,function(w,i){w.attr("value",dojo.indexOf(_57c,w.value)!=-1);});}else{if(_57b[0]._multiValue){_57b[0].attr("value",_57c);}else{dojo.forEach(_57b,function(w,i){w.attr("value",_57c[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_582){var name=_582.name;if(!name||_582.disabled){return;}var _584=_582.attr("value");if(typeof _582.checked=="boolean"){if(/Radio/.test(_582.declaredClass)){if(_584!==false){dojo.setObject(name,_584,obj);}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_584!==false){ary.push(_584);}}}else{dojo.setObject(name,_584,obj);}});return obj;},isValid:function(){return dojo.every(this.getDescendants(),function(_586){return _586.disabled||!_586.isValid||_586.isValid();});},onValidStateChange:function(_587){},_widgetChange:function(){var _588=this.isValid();if(_588!==this._lastValidState){this._lastValidState=_588;this.onValidStateChange(_588);}},connectChildren:function(){dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));var _589=this;this._changeConnections=dojo.map(dojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_58b){return _589.connect(_58b,"validate","_widgetChange");});this._widgetChange();},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();this._lastValidState=this.isValid();}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_58c){},onExecute:function(){},_setEncTypeAttr:function(_58d){this.encType=_58d;dojo.attr(this.domNode,"encType",_58d);if(dojo.isIE){this.domNode.encoding=_58d;}},postCreate:function(){if(dojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}dojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){dojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){dojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' dojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _595=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_595.t+"px";os.left=_595.l+"px";is.width=_595.w+"px";is.height=_595.h+"px";var _598=dijit.getViewport();if(_595.w!=_598.w){is.width=_598.w+"px";}if(_595.h!=_598.h){is.height=_598.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_599){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.getValues());},_getFocusItems:function(_59a){var _59b=dijit._getTabNavigable(dojo.byId(_59a));this._firstFocusItem=_59b.lowest||_59b.first||_59a;this._lastFocusItem=_59b.last||_59b.highest||this._firstFocusItem;if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){dojo.attr(_59a,"tabindex","0");this._firstFocusItem=_59a;}}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\r\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _59c=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_59c);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||dojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _5a3=this._underlay;this._fadeIn=dojo.fadeIn({node:node,duration:this.duration,onBegin:dojo.hitch(_5a3,"show")});this._fadeOut=dojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_5a3.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=dojo.marginBox(this.domNode);var _5a5=dijit.getViewport();if(mb.w>=_5a5.w||mb.h>=_5a5.h){dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_5a5.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_5a5.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode;var _5a7=dijit.getViewport();var p=this._relativePosition;var mb=p?null:dojo.marginBox(node);dojo.style(node,{left:Math.floor(_5a7.l+(p?p.l:(_5a7.w-mb.w)/2))+"px",top:Math.floor(_5a7.t+(p?p.t:(_5a7.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode==dk.TAB){this._getFocusItems(this.domNode);}var _5ad=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode==dk.TAB){if(!_5ad){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode==dk.TAB&&!evt.shiftKey){if(!_5ad){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!=dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(dojo.hitch(dijit,"focus",this._firstFocusItem),50);}},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){dojo.forEach(this._modalconnects,dojo.disconnect);if(this.refocus&&this.open){setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presenation\"></div>\r\n</div>\r\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_5af,_5b0){this.domNode.className=this["class"]+" dijitTooltipAB"+(_5b0.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_5b0.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode==dk.TAB){this._getFocusItems(this.containerNode);}var _5b5=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode==dk.TAB){if(!_5b5){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode==dk.TAB&&!evt.shiftKey){if(!_5b5){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode==dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["LEE.ui.global.Dialog"]){dojo._hasResource["LEE.ui.global.Dialog"]=true;dojo.provide("LEE.ui.global.Dialog");dojo.provide("LEE.ui.global.Dialog.ExtendedDialog");LEE.ui.global.Dialog=function(e,_5b7,_5b8,_5b9){try{dojo.stopEvent(e);}catch(err){}try{if(!e){return false;}var trgt;var _5bb;LEE.ui.global.Dialog._instantiate();LEE.ui.global.Dialog.DIALOG._executeScripts=false;if(_5b9){LEE.ui.global.Dialog.DIALOG._executeScripts=true;}trgt=e.target;if(trgt&&(!trgt.href||!LEE.util.Dom.hasTagName(trgt,"a"))){trgt=LEE.util.Dom.getAncestorByTagName(trgt,"a");}if(trgt&&trgt.href){_5bb=trgt.href;if(_5bb.indexOf("?")>=0){_5bb+="&refresh=1";}else{_5bb+="?refresh=1";}LEE.ui.global.Dialog.DIALOG.setHref(_5bb);if(trgt.title){LEE.ui.global.Dialog.DIALOG.titleNode.innerHTML=LEE.ui.global.Dialog.DIALOG.titleNode.title=trgt.title;}else{LEE.ui.global.Dialog.DIALOG.titleNode.innerHTML=LEE.ui.global.Dialog.DIALOG.titleNode.title=LEE.ui.global.Dialog.DEFAULT_TITLE;}}else{LEE.ui.global.Dialog.DIALOG.setContent(_5b7);if(_5b8){LEE.ui.global.Dialog.DIALOG.titleNode.innerHTML=_5b8;}else{LEE.ui.global.Dialog.DIALOG.titleNode.innerHTML=LEE.ui.global.Dialog.DEFAULT_TITLE;}}dojo.style(LEE.ui.global.Dialog.DIALOG.domNode,"width",LEE.ui.global.Dialog.__width);LEE.ui.global.Dialog.DIALOG.show();}catch(err){}return LEE.ui.global.Dialog.DIALOG;};LEE.dialog=function(e,_5bd,_5be,_5bf){LEE.ui.global.Dialog.__width="420px";var _5c0=LEE.ui.global.Dialog(e,_5bd,_5be,_5bf);return _5c0;};LEE.ui.global.QuickView=function(e){LEE.ui.global.Dialog.__width="900px";var _5c2=LEE.ui.global.Dialog(e);return _5c2;};LEE.ui.global.SizeChart=function(e){LEE.ui.global.Dialog.__width="675px";var _5c4=LEE.ui.global.Dialog(e);return _5c4;};LEE.ui.global.ViewLarger=function(e){LEE.ui.global.Dialog.__width="770px";var _5c6=LEE.ui.global.Dialog(e);return _5c6;};LEE.ui.global.ShareForm=function(e){LEE.ui.global.Dialog.__width="600px";var _5c8=LEE.ui.global.Dialog(e);return _5c8;};LEE.ui.global.Alert=LEE.alert=function(e,_5ca){var _5cb;if(dojo.isString(e)){_5cb=e;if(_5ca){var _5cc={"target":{href:e}};e=_5cc;}}LEE.ui.global.Dialog.__width="400px";var _5cd=LEE.ui.global.Dialog(e,_5cb);return _5cd;};LEE.ui.global.AlertXHR=LEE.alertXHR=function(path){LEE.ui.global.Alert(path,true);};LEE.ui.global.FitFinderDialog=function(e,_5d0,_5d1){LEE.ui.global.Dialog.__width="420px";var _5d2=LEE.ui.global.Dialog(e,_5d0,_5d1);};LEE.ui.global.Dialog._instantiate=function(){if(!LEE.ui.global.Dialog.DIALOG){LEE.ui.global.Dialog.DIALOG=new LEE.ui.global.Dialog.ExtendedDialog({widgetsInTemplage:true,title:LEE.ui.global.Dialog.DEFAULT_TITLE,templateString:LEE.ui.global.Dialog.TEMPLATE_STRING,errorMessage:"ERROR",loadingMessage:"LOADING"},LEE.ui.global.Dialog.CONTAINER_ID);LEE.ui.global.Dialog.DIALOG.startup();dojo.subscribe(LEE.event.GlobalEventNames.DIALOG_FINISHED,LEE.ui.global.Dialog.DIALOG,"hide");}};LEE.ui.global.Dialog._handleClick=function(_5d3){try{var _5d4=_5d3.target;if(_5d4.tagName.toLowerCase()!="a"){_5d4=LEE.util.Dom.getAncestorByTagName(_5d4,"a");}if(_5d4&&dojo.hasClass(_5d4,"popup")){switch(_5d4.rel){case "cancel":dojo.publish(LEE.event.GlobalEventNames.DIALOG_FINISHED);break;case "shareForm":LEE.ui.global.ShareForm(_5d3);break;case "quickView":LEE.ui.global.QuickView(_5d3);break;case "sizeChart":LEE.ui.global.SizeChart(_5d3);break;default:LEE.ui.global.Dialog(_5d3);break;}}}catch(err){}};dojo.addOnLoad(function(){dojo.connect(document.body,"click",LEE.ui.global.Dialog,LEE.ui.global.Dialog._handleClick);});LEE.ui.global.Dialog.CONTAINER_ID="dialog";LEE.ui.global.Dialog.DEFAULT_TITLE="Lee.com";LEE.ui.global.Dialog.DIALOG=null;LEE.ui.global.Dialog.TEMPLATE_STRING="<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t"+"<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t"+"<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\">"+"${title}"+"</span>\n\t"+"<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel\">\n\t\t"+"<span dojoAttachPoint=\"closeText\" class=\"closeText\">"+"x"+"</span>\n\t"+"</span>\n\t"+"</div>\n\t\t"+"<div class=\"dijitDialogPaneContentContainer\">"+"<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n"+"</div>\n"+"</div>\n";dojo.declare("LEE.ui.global.Dialog.ExtendedDialog",dijit.Dialog,{positionInit:false,scrollTop:0,snarfScripts:function(cont,_5d6){_5d6.code="";function download(src){if(_5d6.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_5d6.code+=code+";";},error:_5d6.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_5d9,_5da,src,code){if(src){download(src);}else{_5d6.code+=code;}return "";});},evalInGlobal:function(code,_5de){_5de=_5de||dojo.doc.body;var n=_5de.ownerDocument.createElement("script");n.type="text/javascript";_5de.appendChild(n);n.text=code;},_position:function(){if(this.domNode.offsetHeight<=LEE.util.Display.getViewportHeight()){this.inherited(arguments);}if(dojo.hasClass(dojo.body(),"dojoMove")){return;}var _5e0=dijit.getViewport();var mb=dojo.marginBox(this.domNode);var _5e2=this.domNode.style;_5e2.left=Math.floor((_5e0.l+(_5e0.w-mb.w)/2))+"px";if(this.domNode.offsetHeight<=LEE.util.Display.getViewportHeight()||!this._positionInit){_5e2.top=Math.floor((_5e0.t+(_5e0.h-mb.h)/2))+"px";if(dojo.isOpera){_5e2.top=Math.floor(((_5e0.h-mb.h)/2))+"px";}this._positionInit=true;}if(parseInt(this.domNode.style.top)<this.scrollTop){dojo.style(this.domNode,"top",this.scrollTop+"px");}},postMixInProperties:function(){},onDownloadEnd:function(){this._executeScripts=true;},onLoad:function(){this.scrollTop=LEE.util.Display.getScrollY();this._positionInit=false;this.inherited(arguments);dojo.publish(LEE.event.GlobalEventNames.OVERLAY_LOADED);dojo.publish(LEE.event.GlobalEventNames.CLICK_BLOCKER_HIDE);},_setContent:function(cont){this.inherited(arguments);if(LEE.ui.global.Dialog.DIALOG._executeScripts){var _t=this,code,_5e6={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};cont=this.snarfScripts(cont,_5e6);code=_5e6.code;try{this.evalInGlobal(code,(this.containerNode||this.domNode));}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}}});LEE.ui.global.Dialog.__width="420px";}if(!dojo._hasResource["LEE.ui.global.Window"]){dojo._hasResource["LEE.ui.global.Window"]=true;dojo.provide("LEE.ui.global.Window");dojo.declare("LEE.ui.global.Window",null,{constructor:function(){dojo.connect(document.body,"click",this,this._handleClick);},_handleClick:function(_5e8){try{var _5e9=_5e8.target;if(!LEE.util.Dom.hasTagName(_5e9,"a")){_5e9=LEE.util.Dom.getAncestorByTagName(_5e9,"a");}if(_5e9&&dojo.hasClass(_5e9,"window")){dojo.stopEvent(_5e8);if(_5e9.getAttribute("rel")){switch(_5e9.rel){case "cancel":dojo.publish(LEE.event.GlobalEventNames.DIALOG_FINISHED);break;case "window":this._windowOpener(_5e9.href,_5e9.className,LEE.util.config.get("Parameters.WINDOW_CUSTOM"));break;case "history":this._windowOpener(_5e9.href,_5e9.className,LEE.util.config.get("Parameters.WINDOW_HISTORY"));break;default:this._windowOpener(_5e9.href,_5e9.className,_5e9.rel);break;}}else{this._windowOpener(_5e9.getAttribute("href"),_5e9.getAttribute("className"),LEE.util.config.get("Parameters.WINDOW_DEFAULT"));}}}catch(err){console.log(err.message);}},_windowOpener:function(url,_5eb,_5ec){if(!_5eb){_5eb="LEE";}else{_5eb=_5eb.replace(/[^0-9a-z_]+/gi,"");}var _5ed=window.open(url,_5eb,_5ec);_5ed.focus();}});}if(!dojo._hasResource["dojo.fx.easing"]){dojo._hasResource["dojo.fx.easing"]=true;dojo.provide("dojo.fx.easing");dojo.fx.easing={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-dojo.fx.easing.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return dojo.fx.easing.bounceIn(n*2)/2;}return (dojo.fx.easing.bounceOut(n*2-1)/2)+0.5;}};}if(!dojo._hasResource["LEE.ui.global.ESpotRotator"]){dojo._hasResource["LEE.ui.global.ESpotRotator"]=true;dojo.provide("LEE.ui.global.ESpotRotator");dojo.declare("LEE.ui.global.ESpotRotator",null,{container:null,constructor:function(){this.container=dojo.byId(LEE.ui.global.ESpotRotator.IDS.ESPOT_TEXT);var _619=0;var _61a=-15;var _61b=1500;if(this.container){try{if(this.container.parentNode.id===LEE.ui.global.ESpotRotator.IDS.C_HEADER){_619=30;_61a=-30;_61b=4000;dojo.style(this.container,"top",_619+"px");}dojo.style(this.container,"display","block");dojo.style(this.container,"right",-1*dojo.style(this.container,"width")+"px");dojo.fx.chain([dojo.animateProperty({node:this.container,duration:5000,properties:{right:0},easing:dojo.fx.easing.quadOut}),dojo.animateProperty({node:this.container,duration:_61b,properties:{top:_61a},easing:dojo.fx.easing.quadOut}),dojo.fadeOut({node:this.container}),dojo.animateProperty({node:this.container,duration:10,properties:{top:_619},easing:dojo.fx.easing.quadOut}),dojo.fadeIn({node:this.container,duration:2000})]).play();}catch(e){console.log(e.message);}}}});LEE.ui.global.ESpotRotator.IDS={ESPOT_TEXT:"espot_text",C_HEADER:"c_header"};}if(!dojo._hasResource["LEE.ui.global.Navigation"]){dojo._hasResource["LEE.ui.global.Navigation"]=true;dojo.provide("LEE.ui.global.Navigation");dojo.declare("LEE.ui.global.Navigation",null,{wishListFirstRequest:true,shoppingBagFirstRequest:true,topNavElements:null,bottomNavElements:null,constructor:function(){this.topNavElements=dojo.query("."+LEE.ui.global.Navigation.TOP_NAV_CLASS,LEE.ui.global.Navigation.TOP_NAV_CONTAINER_ID);this.bottomNavElements=dojo.query("."+LEE.ui.global.Navigation.BOTTOM_NAV_CLASS,LEE.ui.global.Navigation.BOTTOM_NAV_CONTAINER_ID);this._attachListeners();},_preloadFirstTimeCheck:function(el){if(el.id==="tl_wishlist"&&this.wishListFirstRequest!==false){dojo.publish(LEE.event.GlobalEventNames.WISHLIST_FIRST_LOAD);this.wishListFirstRequest=false;}if(el.id==="tl_shoppingbag"&&this.shoppingBagFirstRequest!==false){dojo.publish(LEE.event.GlobalEventNames.BAG_FIRST_LOAD);this.shoppingBagFirstRequest=false;}},_attachListeners:function(){dojo.forEach(this.topNavElements,function(el){dojo.connect(el,"onmouseleave",this,function(){this._preloadFirstTimeCheck(el);});},this);}});LEE.ui.global.Navigation.TOP_NAV_CLASS="tl_item";LEE.ui.global.Navigation.TOP_NAV_CONTAINER_ID="nav";LEE.ui.global.Navigation.BOTTOM_NAV_CLASS="f_rollup";LEE.ui.global.Navigation.BOTTOM_NAV_CONTAINER_ID="footer";}if(!dojo._hasResource["LEE.ui.global.Rollup"]){dojo._hasResource["LEE.ui.global.Rollup"]=true;dojo.provide("LEE.ui.global.Rollup");dojo.declare("LEE.ui.global.Rollup",null,{buttons:[],containers:[],rollups:[],buttonTag:"h5",containerClass:"f_rollup",containerTag:"div",rollupClass:"f_rollup_detail",rollupTag:"div",constructor:function(){this.buttons=dojo.query(this.containerTag+"."+this.containerClass);this.rollups=dojo.query(this.rollupTag+"."+this.rollupClass);for(i=0;i<this.buttons.length;i++){var _61e=this.buttons[i];var _61f=this.rollups[i];dojo.connect(_61e,"onmouseenter",this,this.openRollup);dojo.connect(_61e,"onmouseleave",this,this.closeRollup);}},openRollup:function(e){if(dojo.isIE){var _621=e.target;}else{var _621=LEE.util.Dom.getAncestorByClassName(e.target,this.containerClass);}var _622=LEE.util.Lang.getQueryElementByIndex("div",_621,0);dojo.animateProperty({node:_622,duration:300,properties:{height:{start:"0",end:"115"}}}).play();if(dojo.isIE&&dojo.isIE<7){LEE.util.Display.maskSelectsOnOverlay("show",{"target":_622});}},closeRollup:function(e){if(dojo.isIE){var _624=e.target;}else{var _624=LEE.util.Dom.getAncestorByClassName(e.target,this.containerClass);}var _625=LEE.util.Lang.getQueryElementByIndex("div",_624,0);dojo.animateProperty({node:_625,duration:300,properties:{height:{end:"0"}}}).play();if(dojo.isIE&&dojo.isIE<7){LEE.util.Display.maskSelectsOnOverlay("hide");}}});}if(!dojo._hasResource["LEE.model.ModelNames"]){dojo._hasResource["LEE.model.ModelNames"]=true;dojo.provide("LEE.model.ModelNames");LEE.model.ModelNames={ACCOUNT_MODEL:"AccountModel",BAG_MODEL:"BagModel",CHECKOUT_MODEL:"CheckoutModel",COMPANY_MODEL:"CompanyModel",COMPARE_MODEL:"CompareModel",PRODUCT_MODEL:"ProductModel",WISHLIST_MODEL:"WishlistModel",FIT_MODEL:"FitModel"};}if(!dojo._hasResource["LEE.model.AbstractModel"]){dojo._hasResource["LEE.model.AbstractModel"]=true;dojo.provide("LEE.model.AbstractModel");dojo.declare("LEE.model.AbstractModel",null,{id:0});}if(!dojo._hasResource["LEE.model.AccountModel"]){dojo._hasResource["LEE.model.AccountModel"]=true;dojo.provide("LEE.model.AccountModel");dojo.declare("LEE.model.AccountModel",LEE.model.AbstractModel,{service:{},updateEmailPasswordResponder:{},constructor:function(_626){this.service=LEE.service.ServiceLocator.getService("AccountService");this.deleteAddressResponder=new LEE.service.Responder(this,this._handleDeleteAddressResponse,this._handleDeleteAddressError);this.fetchAddressResponder=new LEE.service.Responder(this,this._handleStoredAddressResponse,this._handleStoreAddressError);this.menuContentResponder=new LEE.service.Responder(this,this._handleMenuContentsResponse,this._handleMenuContentsError);this.updateEmailPasswordResponder=new LEE.service.Responder(this,this._handleEmailPasswordResponse,this._handleEmailPasswordError);this.updateRememberMeResponder=new LEE.service.Responder(this,this._handleRememberMeResponse,this._handleRememberMeError);this.updateAddressResponser=new LEE.service.Responder(this,this._handleUpdateAddressResponse,this._handleUpdateAddressError);this.updateSubscriptionsResponser=new LEE.service.Responder(this,this._handleSubscriptionsResponse,this._handleSubscriptionsError);},deleteAddress:function(_627,_628){return this.service.deleteAddress(this.deleteAddressResponder,_627,_628);},fetchMenuContents:function(_629){return this.service.fetchMenuContents(this.menuContentResponder,_629);},fetchStoredAddress:function(_62a,_62b){return this.service.fetchStoredAddress(this.fetchAddressResponder,_62a,_62b);},updateEmailPassword:function(form,_62d){return this.service.updateEmailPassword(this.updateEmailPasswordResponder,form,_62d);},updateRememberMe:function(_62e){return this.service.updateRememberMe(this.updateRememberMeResponder,_62e);},updateAddress:function(form,_630,_631){return this.service.updateAddress(this.updateAddressResponser,form,_630,_631);},updateSubscriptions:function(form,_633){return this.service.updateSubscriptions(this.updateSubscriptionsResponser,form,_633);},_handleDeleteAddressResponse:function(_634,args){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_DELETE_ADDRESS_UPDATE,[_634,args]);},_handleDeleteAddressError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_DELETE_ADDRESS_UPDATE,[err]);},_handleEmailPasswordResponse:function(_637,args){if(_637.errorMessage){return this._handleEmailPasswordError(_637);}dojo.publish(LEE.event.ModelEventNames.ACCOUNT_EMAIL_PASSWORD_UPDATE,[_637,args]);},_handleEmailPasswordError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_EMAIL_PASSWORD_UPDATE,[err]);},_handleMenuContentsResponse:function(_63a,args){if(_63a.errorMessage){return this._handleMenuContentsError(_63a);}this.menuContents=_63a;dojo.publish(LEE.event.ModelEventNames.ACCOUNT_MENU_UPDATE,[_63a,args]);},_handleMenuContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_MENU_UPDATE_ERROR,[err]);},_handleRememberMeResponse:function(_63d,args){if(_63d.errorMessage){return this._handleRememberMeError(_63d);}dojo.publish(LEE.event.ModelEventNames.ACCOUNT_REMEMBER_ME_UPDATE,[_63d,args]);},_handleRememberMeError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_REMEMBER_ME_UPDATE,[err]);},_handleStoredAddressResponse:function(_640,args){if(_640.errorMessage){return this._handleStoreAddressError(_640);}dojo.publish(LEE.event.ModelEventNames.ACCOUNT_FETCH_ADDRESS_UPDATE,[_640,args]);},_handleStoreAddressError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_FETCH_ADDRESS_UPDATE,[err]);},_handleSubscriptionsResponse:function(_643,args){if(_643.errorMessage){return this._handleSubscriptionsError(_643);}dojo.publish(LEE.event.ModelEventNames.ACCOUNT_SUBSCRIPTION_UPDATE,[_643,args]);},_handleSubscriptionsError:function(err){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_SUBSCRIPTION_UPDATE,[err]);},_handleUpdateAddressResponse:function(_646,args){try{var _648=dojo.fromJson(_646);if(_648&&_648.errorMessage){return this._handleUpdateAddressError(_648,args);}}catch(err){}dojo.publish(LEE.event.ModelEventNames.ACCOUNT_ADDRESS_UPDATE,[_646,args]);},_handleUpdateAddressError:function(err,args){dojo.publish(LEE.event.ModelEventNames.ACCOUNT_ADDRESS_UPDATE_ERROR,[err,args]);}});}if(!dojo._hasResource["LEE.model.BagModel"]){dojo._hasResource["LEE.model.BagModel"]=true;dojo.provide("LEE.model.BagModel");dojo.declare("LEE.model.BagModel",LEE.model.AbstractModel,{menuContents:null,orderId:null,service:null,additionResponder:null,removalResponder:null,updateResponder:null,menuContentResponder:null,formContentResponder:null,promoAdditionResponder:null,promoRemovalResponder:null,totalsContentResponder:null,moveResponder:null,constructor:function(_64b){this.orderId=_64b.orderId;this.service=LEE.service.ServiceLocator.getService("BagService");this.additionResponder=new LEE.service.Responder(this,this._handleAdditionResponse,this._handleAdditionError);this.removalResponder=new LEE.service.Responder(this,this._handleRemovalResponse,this._handleRemovalError);this.updateResponder=new LEE.service.Responder(this,this._handleUpdateResponse,this._handleUpdateError);this.menuContentResponder=new LEE.service.Responder(this,this._handleMenuContentsResponse,this._handleMenuContentsError);this.formContentResponder=new LEE.service.Responder(this,this._handleFormContentsResponse,this._handleFormContentsError);this.totalsContentResponder=new LEE.service.Responder(this,this._handleTotalsContentsResponse,this._handleTotalsContentsError);this.promoAdditionResponder=new LEE.service.Responder(this,this._handlePromoAdditionResponse,this._handlePromoAdditionError);this.promoRemovalResponder=new LEE.service.Responder(this,this._handlePromoRemovalResponse,this._handlePromoRemovalError);this.moveResponder=new LEE.service.Responder(this,this._handleMoveResponse,this._handleMoveError);},addProduct:function(form,_64d){return this.service.addEntry(this.additionResponder,form,_64d);},removeProduct:function(_64e){return this.service.removeEntry(this.removalResponder,_64e);},moveProductToWishlist:function(_64f){return this.service.moveEntryToWishlist(this.moveResponder,_64f);},updateProduct:function(form,_651){return this.service.updateEntry(this.updateResponder,form,_651);},fetchMenuContents:function(_652){return this.service.fetchMenuContents(this.menuContentResponder,_652);},fetchProductFormContents:function(_653){return this.service.fetchEntryFormContents(this.formContentResponder,_653);},fetchTotalsContents:function(_654){return this.service.fetchBagTotalsContents(this.totalsContentResponder,_654);},addPromotion:function(form,_656){return this.service.addBagPromotion(this.promoAdditionResponder,form,_656);},removePromotion:function(form,_658){return this.service.removeBagPromotion(this.promoRemovalResponder,serviceUrl);},_handleAdditionResponse:function(_659,args){if(_659.errorMessage){return this._handleAdditionError(_659);}this.orderId=_659.orderId;dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_ADD,[_659,args]);},_handleAdditionError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_ADD_ERROR,[err]);},_handleRemovalResponse:function(_65c,args){if(_65c.errorMessage){return this._handleRemovalError(_65c);}this.orderId=_65c.orderId;dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE,[_65c,args]);},_handleRemovalError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE_ERROR,[err]);},_handleUpdateResponse:function(_65f,args){if(_65f.errorMessage){return this._handleUpdateError(_65f);}this.orderId=_65f.orderId;dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_UPDATE,[_65f,args]);},_handleUpdateError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_UPDATE_ERROR,[err]);},_handleMenuContentsResponse:function(_662,args){if(_662.errorMessage){return this._handleMenuContentsError(_662);}this.menuContents=_662;dojo.publish(LEE.event.ModelEventNames.BAG_MENU_UPDATE,[_662,args]);},_handleMenuContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_MENU_UPDATE_ERROR,[err]);},_handleFormContentsResponse:function(_665,args){if(_665.errorMessage){return this._handleFormContentsError(_665);}dojo.publish(LEE.event.ModelEventNames.BAG_FORM_UPDATE,[_665,args]);},_handleFormContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_FORM_UPDATE_ERROR,[err]);},_handleTotalsContentsResponse:function(_668,args){if(_668.errorMessage){return this._handleTotalsContentsError(_668);}dojo.publish(LEE.event.ModelEventNames.BAG_TOTALS_UPDATE,[_668,args]);},_handleTotalsContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_TOTALS_UPDATE_ERROR,[err]);},_handlePromoAdditionResponse:function(_66b,args){if(_66b.errorMessage){return this._handlePromoAdditionError(_66b);}dojo.publish(LEE.event.ModelEventNames.BAG_PROMOTION_ADD,[_66b,args]);},_handlePromoAdditionError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PROMOTION_ADD_ERROR,[err]);},_handlePromoRemovalResponse:function(_66e,args){if(_66e.errorMessage){return this._handlePromoRemovalError(_66e);}dojo.publish(LEE.event.ModelEventNames.BAG_PROMOTION_REMOVE,[_66e,args]);},_handlePromoRemovalError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PROMOTION_REMOVE_ERROR,[err]);},_handleMoveResponse:function(_671,args){if(_671.errorMessage){return this._handleMoveError(_671);}dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST,[_671,args]);dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE,[_671,args]);},_handleMoveError:function(err){dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST_ERROR,[err]);}});}if(!dojo._hasResource["LEE.model.CheckoutModel"]){dojo._hasResource["LEE.model.CheckoutModel"]=true;dojo.provide("LEE.model.CheckoutModel");dojo.declare("LEE.model.CheckoutModel",LEE.model.AbstractModel,{service:null,updateResponder:null,promotionResponder:null,historyContentResponder:null,standardizeResponder:null,totalsContentResponder:null,constructor:function(_674){this.service=LEE.service.ServiceLocator.getService("CheckoutService");this.updateResponder=new LEE.service.Responder(this,this._handleStoredAddressResponse,this._handleStoredAddressError);this.submitPartialResponder=new LEE.service.Responder(this,this._handleSubmitPartialResponse,this._handleSubmitPartialError);this.promotionResponder=new LEE.service.Responder(this,this._handlePromotionUpdateResponse,this._handlePromotionUpdateError);this.totalsContentResponder=new LEE.service.Responder(this,this._handleTotalsContentsResponse,this._handleTotalsContentsError);this.standardizeResponder=new LEE.service.Responder(this,this._handleStandardizeResponse,this._handleStandardizeError);this.historyContentResponder=new LEE.service.Responder(this,this._handleHistoryContentResponse,this._handleHistoryContentError);this.originalAddressResponder=new LEE.service.Responder(this,this._handleOriginalAddressResponse,this._handleOriginalAddressError);},addPromotion:function(form,_676){return this.service.addPromotion(this.promotionResponder,form,_676);},fetchStoredAddress:function(_677,_678){return this.service.fetchStoredAddress(this.updateResponder,_677,_678);},fetchTotalsContents:function(_679){return this.service.fetchCheckoutTotalsContents(this.totalsContentResponder,_679);},standardizeAddress:function(form,_67b){return this.service.standardizeAddress(this.standardizeResponder,form,_67b);},submitPartialForm:function(form,_67d){return this.service.submitPartialForm(this.submitPartialResponder,form,_67d);},fetchOrderHistoryContents:function(_67e){return this.service.fetchOrderHistoryContents(this.historyContentResponder,_67e);},fetchOriginalAddress:function(_67f){return this.service.fetchOriginalAddress(this.originalAddressResponder,_67f);},_handlePromotionUpdateResponse:function(_680,args){if(_680.errorMessage){return this._handlePromotionUpdateError(_680);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_PROMOTION_UPDATE,[_680,args]);},_handlePromotionUpdateError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_PROMOTION_UPDATE,[err]);},_handleStoredAddressResponse:function(_683,args){if(_683.errorMessage){return this._handleStoreAddressError(_683);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ADDRESS_UPDATE,[_683,args]);},_handleStoredAddressError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ADDRESS_UPDATE,[err]);},_handleStandardizeResponse:function(_686,args){if(_686.errorMessage){return this._handleStandardizeError(_686);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_STANDARDIZE_UPDATE,[_686,args]);},_handleStandardizeError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_STANDARDIZE_UPDATE_ERROR,[err]);},_handleSubmitPartialResponse:function(_689,args){if(_689.errorMessage){return this._handleSubmitPartialError(_689);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_SUBMIT_PARTIAL_UPDATE,[_689,args]);},_handleSubmitPartialError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_SUBMIT_PARTIAL_UPDATE,[err]);},_handleTotalsContentsResponse:function(_68c,args){if(_68c.errorMessage){return this._handleTotalsContentsError(_68c);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_TOTALS_UPDATE,[_68c,args]);},_handleTotalsContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_TOTALS_UPDATE,[err]);},_handleHistoryContentResponse:function(_68f,args){if(_68f.errorMessage){return this._handleHistoryContentError(_68f);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ORDER_HISTORY_CONTENT,[_68f,args]);},_handleHistoryContentError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ORDER_HISTORY_CONTENT_ERROR,[err]);},_handleOriginalAddressResponse:function(_692,args){if(_692.errorMessage){return this._handleOriginalAddressError(_692);}dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ORIGINAL_ADDRESS_RESPONSE,[_692,args]);},_handleOriginalAddressError:function(err){dojo.publish(LEE.event.ModelEventNames.CHECKOUT_ORIGINAL_ADDRESS_ERROR,[err]);}});}if(!dojo._hasResource["LEE.model.CompanyModel"]){dojo._hasResource["LEE.model.CompanyModel"]=true;dojo.provide("LEE.model.CompanyModel");dojo.declare("LEE.model.CompanyModel",LEE.model.AbstractModel,{service:null,updateResponder:null,constructor:function(_695){this.service=LEE.service.ServiceLocator.getService("CompanyService");this.detailResponder=new LEE.service.Responder(this,this._handleDetailResponse,this._handleDetailError);},fetchDetail:function(_696){return this.service.fetchDetail(this.detailResponder,_696);},_handleDetailResponse:function(_697,args){if(_697.errorMessage){return this._handleDetailError(_697);}dojo.publish(LEE.event.ModelEventNames.COMPANY_DETAIL_CONTENT,[_697,args]);},_handleDetailError:function(err){dojo.publish(LEE.event.ModelEventNames.COMPANY_DETAIL_CONTENT,[err]);}});}if(!dojo._hasResource["LEE.model.FitModel"]){dojo._hasResource["LEE.model.FitModel"]=true;dojo.provide("LEE.model.FitModel");dojo.declare("LEE.model.FitModel",LEE.model.AbstractModel,{service:null,saveResponder:null,readResponder:null,overwriteResponder:null,deleteResponder:null,urlDeleteResponder:null,constructor:function(_69a){this.service=LEE.service.ServiceLocator.getService("FitService");this.saveResponder=new LEE.service.Responder(this,this._handleSaveResponse,this._handleSaveError);this.readResponder=new LEE.service.Responder(this,this._handleReadResponse,this._handleUpdateError);this.overwriteResponder=new LEE.service.Responder(this,this._handleOverwriteResponse,this._handleOverwriteError);this.deleteResponder=new LEE.service.Responder(this,this._handleDeleteResponse,this._handleDeleteError);this.urlDeleteResponder=new LEE.service.Responder(this,this._handleURLDeleteResponse,this._handleURLDeleteError);},saveProfile:function(form,_69c){return this.service.createProfile(this.saveResponder,form,_69c);},cancelSaveProfile:function(){dojo.publish(LEE.event.ModelEventNames.FIT_SAVE_CANCEL);},readProfile:function(name,_69e){return this.service.readProfile(this.readResponder,name,_69e);},overwriteProfile:function(form,_6a0){return this.service.updateProfile(this.overwriteResponder,form,_6a0);},deleteProfile:function(form,_6a2){return this.service.deleteProfile(this.deleteResponder,form,_6a2);},deleteProfileFromURL:function(_6a3){return this.service.deleteProfileFromURL(this.urlDeleteResponder,_6a3);},_handleSaveResponse:function(_6a4,args){dojo.publish(LEE.event.ModelEventNames.FIT_SAVE_RESPONSE,[_6a4,args]);},_handleSaveError:function(err){dojo.publish(LEE.event.ModelEventNames.FIT_SAVE_ERROR,[err]);},_handleReadResponse:function(_6a7,args){if(_6a7.errorMessage){this._handleReadError(_6a7);}else{dojo.publish(LEE.event.ModelEventNames.FIT_READ_RESPONSE,[_6a7,args]);}},_handleReadError:function(err){dojo.publish(LEE.event.ModelEventNames.FIT_READ_ERROR,[err]);},_handleOverwriteResponse:function(_6aa,args){dojo.publish(LEE.event.ModelEventNames.FIT_OVERWRITE_RESPONSE,[_6aa,args]);},_handleOverwriteError:function(err){dojo.publish(LEE.event.ModelEventNames.FIT_OVERWRITE_ERROR,[err]);},_handleDeleteResponse:function(_6ad,args){dojo.publish(LEE.event.ModelEventNames.FIT_DELETE_RESPONSE,[_6ad,args]);},_handleDeleteError:function(err){dojo.publish(LEE.event.ModelEventNames.FIT_DELETE_ERROR,[err]);},_handleURLDeleteResponse:function(_6b0,args){if(_6b0.errorMessage){return _handleURLDeleteError(_6b0);}dojo.publish(LEE.event.ModelEventNames.FIT_DELETE_RESPONSE,[_6b0,args]);},_handleURLDeleteError:function(err){dojo.publish(LEE.event.ModelEventNames.FIT_DELETE_ERROR,[err]);}});}if(!dojo._hasResource["LEE.model.ProductModel"]){dojo._hasResource["LEE.model.ProductModel"]=true;dojo.provide("LEE.model.ProductModel");dojo.declare("LEE.model.ProductModel",LEE.model.AbstractModel,{options:null,orderId:"",wishlistId:"",service:{},optionsResponder:{},saveResponder:{},submitResponder:{},constructor:function(_6b3){this.service=LEE.service.ServiceLocator.getService("ProductService");this.catalogResponder=new LEE.service.Responder(this,this._handleCatalogResponse,this._handleCatalogError);this.optionsResponder=new LEE.service.Responder(this,this._handleOptionsResponse,this._handleOptionsError);this.saveResponder=new LEE.service.Responder(this,this._handleSaveResponse,this._handleSaveError);this.submitResponder=new LEE.service.Responder(this,this._handleSubmitResponse,this._handleSubmitError);},fetchCatalog:function(_6b4,_6b5){return this.service.fetchCatalog(this.catalogResponder,_6b4,_6b5);},fetchOptions:function(_6b6){return this.service.fetchOptions(this.optionsResponder,_6b6);},_handleCatalogResponse:function(_6b7,args){if(_6b7.error){return this._handleCatalogError();}this.options=_6b7;dojo.publish(LEE.event.ModelEventNames.PRODUCT_CATALOG_UPDATE,[_6b7,args]);},_handleCatalogError:function(err){dojo.publish(LEE.event.ModelEventNames.PRODUCT_CATALOG_ERROR,[err]);},_handleOptionsResponse:function(_6ba,args){if(_6ba.error){return this._handleOptionsError();}this.options=_6ba;dojo.publish(LEE.event.ModelEventNames.PRODUCT_OPTIONS_UPDATE,[_6ba,args]);},_handleOptionsError:function(err){dojo.publish(LEE.event.ModelEventNames.PRODUCT_OPTIONS_ERROR,[err]);}});}if(!dojo._hasResource["LEE.model.WishlistModel"]){dojo._hasResource["LEE.model.WishlistModel"]=true;dojo.provide("LEE.model.WishlistModel");dojo.declare("LEE.model.WishlistModel",LEE.model.AbstractModel,{contents:"",orderId:"",wishlistId:"",service:{},additionResponder:{},removalResponder:{},updateResponder:{},menuContentResponder:{},formContentResponder:{},addToBagResponder:{},constructor:function(_6bd){this.orderId=_6bd.orderId;this.service=LEE.service.ServiceLocator.getService("WishlistService");this.additionResponder=new LEE.service.Responder(this,this._handleAdditionResponse,this._handleAdditionError);this.removalResponder=new LEE.service.Responder(this,this._handleRemovalResponse,this._handleRemovalError);this.updateResponder=new LEE.service.Responder(this,this._handleUpdateResponse,this._handleUpdateError);this.menuContentResponder=new LEE.service.Responder(this,this._handleMenuContentsResponse,this._handleMenuContentsError);this.formContentResponder=new LEE.service.Responder(this,this._handleFormContentsResponse,this._handleFormContentsError);this.addToBagResponder=new LEE.service.Responder(this,this._handleAddToBagResponse,this._handleAddToBagError);},addProduct:function(form,_6bf){return this.service.addEntry(this.additionResponder,form,_6bf);},updateProduct:function(form,_6c1){return this.service.updateEntry(this.updateResponder,form,_6c1);},fetchMenuContents:function(_6c2){return this.service.fetchMenuContents(this.menuContentResponder,_6c2);},fetchProductFormContents:function(_6c3){return this.service.fetchEntryFormContents(this.formContentResponder,_6c3);},removeProduct:function(_6c4){return this.service.removeEntry(this.removalResponder,_6c4);},addProductToBag:function(_6c5){return this.service.addEntryToBag(this.addToBagResponder,_6c5);},_handleAdditionResponse:function(_6c6,args){if(_6c6.errorMessage){return this._handleAdditionError(_6c6);}this.orderId=_6c6.orderId;dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD,[_6c6,args]);},_handleAdditionError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD_ERROR,[err]);},_handleRemovalResponse:function(_6c9,args){if(_6c9.errorMessage){return this._handleRemovalError(_6c9);}dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_REMOVE,[_6c9,args]);},_handleRemovalError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_REMOVE_ERROR,[err]);},_handleUpdateResponse:function(_6cc,args){if(_6cc.errorMessage){return this._handleUpdateError(_6cc);}this.orderId=_6cc.orderId;dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_UPDATE,[_6cc,args]);},_handleUpdateError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_PRODUCT_UPDATE_ERROR,[err]);},_handleMenuContentsResponse:function(_6cf,args){if(_6cf.errorMessage){return this._handleMenuContentsError(_6cf);}this.menuContents=_6cf;dojo.publish(LEE.event.ModelEventNames.WISHLIST_MENU_UPDATE,[_6cf,args]);},_handleMenuContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_MENU_UPDATE_ERROR,[err]);},_handleFormContentsResponse:function(_6d2,args){if(_6d2.errorMessage){return this._handleFormContentsError(_6d2);}dojo.publish(LEE.event.ModelEventNames.WISHLIST_FORM_UPDATE,[_6d2,args]);},_handleFormContentsError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_FORM_UPDATE_ERROR,[err]);},_handleAddToBagResponse:function(_6d5,args){if(_6d5.errorMessage){return this._handleAddToBagError(_6d5);}dojo.publish(LEE.event.ModelEventNames.WISHLIST_ADD_TO_BAG,[_6d5,args]);dojo.publish(LEE.event.ModelEventNames.BAG_PRODUCT_ADD,[_6d5,args]);},_handleAddToBagError:function(err){dojo.publish(LEE.event.ModelEventNames.WISHLIST_ADD_TO_BAG_ERROR,[err]);}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_6d9){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_6d9&&_6d9.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_6dd){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_6dd);};dojo.regexp.group=function(_6e0,_6e1){return "("+(_6e1?"?:":"")+_6e0+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_6e3,_6e4){var c=document.cookie;if(arguments.length==1){var _6e6=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _6e6?decodeURIComponent(_6e6[1]):undefined;}else{_6e4=_6e4||{};var exp=_6e4.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_6e4.expires=d;}if(exp&&exp.toUTCString){_6e4.expires=exp.toUTCString();}_6e3=encodeURIComponent(_6e3);var _6e9=name+"="+_6e3,_6ea;for(_6ea in _6e4){_6e9+="; "+_6ea;var _6eb=_6e4[_6ea];if(_6eb!==true){_6e9+="="+_6eb;}}document.cookie=_6e9;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["LEE.model.CompareModel"]){dojo._hasResource["LEE.model.CompareModel"]=true;dojo.provide("LEE.model.CompareModel");dojo.declare("LEE.model.CompareModel",LEE.model.AbstractModel,{updateResponder:null,removeResponder:null,queueResponder:null,clearResponder:null,products:null,constructor:function(id){this.products=dojo.fromJson(dojo.cookie("LEE.compare"));this.service=LEE.service.ServiceLocator.getService(LEE.service.ServiceNames.COMPARE_SERVICE);this.updateResponder=new LEE.service.Responder(this,this._handleUpdateResponse,this._handleUpdateError);this.removeResponder=new LEE.service.Responder(this,this._handleRemoveResponse,this._handleRemoveError);this.queueResponder=new LEE.service.Responder(this,this._handleQueueResponse,this._handleQueueError);this.clearResponder=new LEE.service.Responder(this,this._handleClearResponse,this._handleClearError);},updateProducts:function(e,_6ee){var _6ef;var _6f0=false;var _6f1=dojo.cookie("LEE.compare");if(_6f1){_6f1=dojo.fromJson(_6f1);}else{_6f1=[];}if(e){_6ef=dojo.indexOf(_6f1,e.target.value);if(_6ef<0&&e.target.checked){if(_6f1.length<LEE.util.config.get("COMPARE_MAX_ITEMS")){_6f1.push(e.target.value);}else{_6f0=true;}}else{if(_6ef>=0&&!e.target.checked){_6f1.splice(_6ef,1);}}}this.products=_6f1;dojo.cookie("LEE.compare",dojo.toJson(_6f1),{expires:5,path:"/"});this._handleUpdateResponse(dojo.mixin({},_6f1,{limitExceeded:_6f0}));},removeProduct:function(_6f2){var _6f3=dojo.indexOf(this.products,_6f2);if(_6f3>=0){this.products.splice(_6f3,1);dojo.cookie("LEE.compare",dojo.toJson(this.products),{expires:5,path:"/"});}},removeProductWithUrl:function(_6f4){return this.service.removeEntryWithUrl(this.removeResponder,_6f4);},clearProducts:function(_6f5){this.products=[];dojo.cookie("LEE.compare",dojo.toJson(this.products),{expires:5,path:"/"});this._handleClearResponse();},_storeProductsFromResponse:function(_6f6){if(_6f6.compare_list&&_6f6.compare_list.length>1&&_6f6.compare_list.length!="false"){this.products=_6f6.compare_list.split(",");}else{this.products=[];}},_handleUpdateResponse:function(_6f7,args){if(_6f7.errorMessage){return this._handleUpdateError(_6f7);}dojo.publish(LEE.event.ModelEventNames.COMPARE_UPDATE,[_6f7,args]);},_handleUpdateError:function(_6f9,args){var _6fb=(_6f9.errorMessage)?reponse.errorMessage:LEE.util.config.Error.COMPARE_ERROR;dojo.publish(LEE.event.ModelEventNames.COMPARE_UPDATE_ERROR,[_6fb]);},_handleClearResponse:function(_6fc,args){if(_6fc&&_6fc.errorMessage){return this._handleUpdateError(_6fc);}dojo.publish(LEE.event.ModelEventNames.COMPARE_CLEAR,[_6fc,args]);dojo.publish(LEE.event.ModelEventNames.COMPARE_UPDATE,[_6fc,args]);},_handleClearError:function(_6fe,args){var _700=(_6fe.errorMessage)?reponse.errorMessage:_6fe;dojo.publish(LEE.event.ModelEventNames.COMPARE_CLEAR_ERROR,[_700]);},_handleRemoveResponse:function(_701,args){if(_701.errorMessage){return this._handleUpdateError(_701);}this._storeProductsFromResponse(_701);dojo.publish(LEE.event.ModelEventNames.COMPARE_REMOVE,[_701,args]);if(_701.limitExceeded){dojo.publish(LEE.event.ModelEventNames.COMPARE_LIMIT_EXCEEDED,[_701,args]);}},_handleRemoveError:function(_703,args){var _705=(_703.errorMessage)?reponse.errorMessage:LEE.util.config.Error.COMPARE_ERROR;dojo.publish(LEE.event.ModelEventNames.COMPARE_REMOVE_ERROR,[_705]);},_handleQueueResponse:function(_706,args){this.queue=_706;dojo.publish(LEE.event.ModelEventNames.COMPARE_QUEUE_UPDATE,[this.queue]);},_handleQueueError:function(_708,args){var _70a=(_708.errorMessage)?_708.errorMessage:LEE.util.config.Error.COMPARE_QUEUE_ERROR;dojo.publish(LEE.event.ModelEventNames.COMPARE_QUEUE_ERROR,[_70a]);}});}if(!dojo._hasResource["LEE.model.ModelLocator"]){dojo._hasResource["LEE.model.ModelLocator"]=true;dojo.provide("LEE.model.ModelLocator");LEE.model.ModelLocator.cache={};LEE.model.ModelLocator.getModel=function(_70b,_70c){var _70c=[];var _70d={};if(LEE.model.ModelLocator.cache[_70b]){_70d=LEE.model.ModelLocator.cache[_70b];}else{_70d=new LEE.model[_70b](arguments);LEE.model.ModelLocator.addModel(_70b,_70d);}return _70d;};LEE.model.ModelLocator.addModel=function(_70e,_70f){if(_70e&&_70f){LEE.model.ModelLocator.cache[_70e]=_70f;}else{}};}if(!dojo._hasResource["LEE.ui.ContentRefreshController"]){dojo._hasResource["LEE.ui.ContentRefreshController"]=true;dojo.provide("LEE.ui.ContentRefreshController");dojo.declare("LEE.ui.ContentRefreshController",null,{model:null,node:null,updateEvents:null,contentEvent:null,fetchMethod:null,serviceUrl:"",enableSnarfScripts:false,constructor:function(args){this.enableSnarfScripts=false;if(args.node){this.node=dojo.byId(args.node);}if(args.model){this.setModel(args.model);}if(args.updateEvents){this.setUpdateEvents(args.updateEvents);}if(args.contentEvent){this.setContentEvent(args.contentEvent);}if(args.fetchMethod){this.fetchMethod=args.fetchMethod;}if(args.enableSnarfScripts){this.enableSnarfScripts=args.enableSnarfScripts;}},renderContent:function(_711){if(this.node){this.node.innerHTML=_711;}},onRefresh:function(evt){if(this.fetchMethod&&this.model){if(dojo.isString(this.fetchMethod)){this.model[this.fetchMethod].apply(this.model,[this.serviceUrl]);}else{this.fetchMethod.call(this.model,this.serviceUrl);}}},onContent:function(evt){this.renderContent(evt);},setUpdateEvents:function(_714){if(this.updateEvents&&this.updateEvents.length>0){for(var i=this.updateEvents.length-1;i>=0;i--){dojo.unsubscribe(this.updateEvents[i],this,this.onRefresh);}}this.updateEvents=[];if(_714.length>0){for(var i=_714.length-1;i>=0;i--){this.addUpdateEvent(_714[i]);}}},addUpdateEvent:function(_716){if(!this.updateEvents){this.updateEvents=[];}dojo.subscribe(_716,this,this.onRefresh);this.updateEvents.push[_716];},setContentEvent:function(_717){if(this.contentEvent){dojo.unsubscribe(this.contentEvent,this,this.onContent);}this.contentEvent=_717;dojo.subscribe(this.contentEvent,this,this.onContent);},setModel:function(_718){if(dojo.isString(_718)){this.model=LEE.model.ModelLocator.getModel(_718);}else{this.model=_718;}},setServiceUrl:function(_719){this.serviceUrl=_719;}});}if(!dojo._hasResource["dojox.fx._core"]){dojo._hasResource["dojox.fx._core"]=true;dojo.provide("dojox.fx._core");dojox.fx._Line=function(_71a,end){this.start=_71a;this.end=end;var _71c=dojo.isArray(_71a),d=(_71c?[]:end-_71a);if(_71c){dojo.forEach(this.start,function(s,i){d[i]=this.end[i]-s;},this);this.getValue=function(n){var res=[];dojo.forEach(this.start,function(s,i){res[i]=(d[i]*n)+s;},this);return res;};}else{this.getValue=function(n){return (d*n)+this.start;};}};}if(!dojo._hasResource["dojox.fx.scroll"]){dojo._hasResource["dojox.fx.scroll"]=true;dojo.provide("dojox.fx.scroll");dojo.experimental("dojox.fx.scroll");dojox.fx.smoothScroll=function(args){if(!args.target){args.target=dojo.coords(args.node,true);}var _726=dojo[(dojo.isIE?"isObject":"isFunction")](args["win"].scrollTo);var _727=(_726)?(function(val){args.win.scrollTo(val[0],val[1]);}):(function(val){args.win.scrollLeft=val[0];args.win.scrollTop=val[1];});var anim=new dojo._Animation(dojo.mixin({beforeBegin:function(){if(this.curve){delete this.curve;}var _72b=_726?dojo._docScroll():{x:args.win.scrollLeft,y:args.win.scrollTop};anim.curve=new dojox.fx._Line([_72b.x,_72b.y],[args.target.x,args.target.y]);},onAnimate:_727},args));return anim;};}if(!dojo._hasResource["LEE.ui.global.menu.DropDownMenu"]){dojo._hasResource["LEE.ui.global.menu.DropDownMenu"]=true;dojo.provide("LEE.ui.global.menu.DropDownMenu");dojo.declare("LEE.ui.global.menu.DropDownMenu",null,{node:null,button:null,dropdown:null,mouseoverTimeout:null,timeout:false,_isShown:false,_isMouseIn:false,constructor:function(node){this.node=dojo.byId(node);},startup:function(){this._initChildren();return this;},_initChildren:function(){this._initButtons();},_initButtons:function(){this.button=dojo.query(LEE.ui.global.menu.DropDownMenu.QUERIES.BUTTON,this.node)[0];this.dropdown=dojo.query(LEE.ui.global.menu.DropDownMenu.QUERIES.DROPDOWN,this.node)[0];if(this.node){dojo.connect(this.node,"onmouseleave",this,this._handleMouseOut);dojo.connect(this.node,"onmouseenter",this,this._handleMouseOver);dojo.connect(this.node,"onmouseover",this,this._handleMouseOver);}if(this.button){dojo.connect(this.button,"onmouseenter",this,this._handleMouseOver);dojo.connect(this.button,"onmouseover",this,this._handleMouseOver);}},flash:function(){if(this.timeout){clearTimeout(this.timeout);this.timeout=null;}var _72d=dojox.fx.smoothScroll({node:dojo.byId("header"),win:window,duration:750,easing:dojo.fx.easing.easeOut});_72d.play();if(!this._isMouseIn){this.show();this.timeout=setTimeout(dojo.hitch(this,this.hide),LEE.ui.global.menu.DropDownMenu.TIMEOUT);}else{if(dojo.isIE&&dojo.isIE<7){LEE.util.Display.maskSelectsOnOverlay("show",{"target":this.dropdown});}}},show:function(e){if(this.timeout){clearTimeout(this.timeout);this.timeout=null;}clearTimeout(this.mouseoverTimeout);if(!this._isShown){dojo.addClass(this.node,LEE.ui.global.menu.DropDownMenu.HOVER_CLASS);this._isShown=true;}if(dojo.isIE&&dojo.isIE<7){LEE.util.Display.maskSelectsOnOverlay("show",{"target":this.dropdown});}dojo.publish(LEE.event.GlobalEventNames.CLICK_BLOCKER_HIDE);},hide:function(e){if(this.timeout){clearTimeout(this.timeout);this.timeout=null;}clearTimeout(this.mouseoverTimeout);if(this._isShown){dojo.removeClass(this.node,LEE.ui.global.menu.DropDownMenu.HOVER_CLASS);if(dojo.isIE&&dojo.isIE<7){LEE.util.Display.maskSelectsOnOverlay("hide");}this._isShown=false;}},_handleMouseOver:function(e){this._isMouseIn=true;clearTimeout(this.mouseoverTimeout);this.mouseoverTimeout=setTimeout(dojo.hitch(this,this.show),250);},_handleMouseOut:function(e){this._isMouseIn=false;clearTimeout(this.mouseoverTimeout);this.mouseoverTimeout=setTimeout(dojo.hitch(this,this.hide),250);}});LEE.ui.global.menu.DropDownMenu.QUERIES={BUTTON:"a.dd_button",DROPDOWN:"div.dd_menu"};LEE.ui.global.menu.DropDownMenu.HOVER_CLASS="hover";LEE.ui.global.menu.DropDownMenu.TIMEOUT=3000;}if(!dojo._hasResource["LEE.ui.global.menu.DropDownBag"]){dojo._hasResource["LEE.ui.global.menu.DropDownBag"]=true;dojo.provide("LEE.ui.global.menu.DropDownBag");dojo.declare("LEE.ui.global.menu.DropDownBag",LEE.ui.global.menu.DropDownMenu,{model:null,connections:null,refreshController:null,flashOnRefresh:true,_firstLoad:false,constructor:function(node){if(!node){this.node=dojo.byId(LEE.ui.global.menu.DropDownBag.CONTAINER_ID);}else{this.node=dojo.byId(node);}},_initChildren:function(){this.inherited(arguments);this._initModel();this._initViews();this._initController();},_initModel:function(){this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.BAG_MODEL);},_initViews:function(){this._connectRemoveButtons();},_initController:function(){this.refreshController=new LEE.ui.ContentRefreshController({model:this.model,node:this.dropdown,updateEvents:[LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST,LEE.event.ModelEventNames.BAG_PRODUCT_ADD,LEE.event.ModelEventNames.BAG_PRODUCT_REMOVE,LEE.event.ModelEventNames.BAG_PRODUCT_UPDATE],contentEvent:LEE.event.ModelEventNames.BAG_MENU_UPDATE,fetchMethod:this.model.fetchMenuContents,enableSnarfScripts:true});dojo.connect(this.refreshController,"renderContent",this,"_handleContentRefresh");if(this.button){this.refreshController.setServiceUrl(this.button.href);}dojo.subscribe(LEE.event.GlobalEventNames.PRODUCT_SUBMITTED,this.model,this.model.addProduct);},removeProduct:function(_733){dojo.stopEvent(_733);this.model.removeProduct(_733.target.href);},show:function(_734){if(!this._firstLoad){this.refreshController.onRefresh({});this._firstLoad=true;}this.inherited(arguments);},_connectRemoveButtons:function(){dojo.forEach(this.connections,function(i){dojo.disconnect(this.connections[i]);},this);this.connections=[];this.removeButtons=dojo.query(LEE.ui.global.menu.DropDownBag.REMOVE_BUTTON_QUERY,this.node);dojo.forEach(this.removeButtons,function(el){this.connections.push(dojo.connect(el,"onclick",this,this.removeProduct));},this);},_handleContentRefresh:function(_737){this._firstLoad=true;this._connectRemoveButtons();if(this.flashOnRefresh){this.flash();}}});LEE.ui.global.menu.DropDownBag.REMOVE_BUTTON_QUERY="a.btn_remove";LEE.ui.global.menu.DropDownBag.CONTAINER_ID="tl_shoppingbag";}if(!dojo._hasResource["LEE.ui.global.menu.DropDownMyAccount"]){dojo._hasResource["LEE.ui.global.menu.DropDownMyAccount"]=true;dojo.provide("LEE.ui.global.menu.DropDownMyAccount");dojo.declare("LEE.ui.global.menu.DropDownMyAccount",LEE.ui.global.menu.DropDownMenu,{model:null,connections:null,refreshController:null,flashOnRefresh:true,_firstLoad:false,constructor:function(node){if(!node){this.node=dojo.byId(LEE.ui.global.menu.DropDownMyAccount.CONTAINER_ID);}else{this.node=dojo.byId(node);}},_initChildren:function(){this.inherited(arguments);this._initModel();this._initController();},_initModel:function(){this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.ACCOUNT_MODEL);},_initController:function(){this.refreshController=new LEE.ui.ContentRefreshController({model:this.model,node:this.dropdown,updateEvents:[],contentEvent:LEE.event.ModelEventNames.ACCOUNT_MENU_UPDATE,fetchMethod:this.model.fetchMenuContents,enableSnarfScripts:true});dojo.connect(this.refreshController,"renderContent",this,"_handleContentRefresh");if(this.button){this.refreshController.setServiceUrl(this.button.href);}},show:function(_739){if(!this._firstLoad){this.refreshController.onRefresh({});this._firstLoad=true;}this.inherited(arguments);},_handleContentRefresh:function(_73a){console.log("MYACCOUNT :: _handleContentRefresh");this._firstLoad=true;if(this.flashOnRefresh){this.flash();}}});LEE.ui.global.menu.DropDownMyAccount.CONTAINER_ID="tl_myaccount";}if(!dojo._hasResource["LEE.ui.global.menu.DropDownWishlist"]){dojo._hasResource["LEE.ui.global.menu.DropDownWishlist"]=true;dojo.provide("LEE.ui.global.menu.DropDownWishlist");dojo.declare("LEE.ui.global.menu.DropDownWishlist",LEE.ui.global.menu.DropDownBag,{constructor:function(node){if(!node){this.node=dojo.byId(LEE.ui.global.menu.DropDownWishlist.CONTAINER_ID);}else{this.node=dojo.byId(node);}},_initModel:function(){this.model=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.WISHLIST_MODEL);},_initController:function(){this.refreshController=new LEE.ui.ContentRefreshController({model:this.model,node:this.dropdown,updateEvents:[LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD,LEE.event.ModelEventNames.WISHLIST_PRODUCT_REMOVE,LEE.event.ModelEventNames.BAG_PRODUCT_MOVE_TO_WISHLIST],contentEvent:LEE.event.ModelEventNames.WISHLIST_MENU_UPDATE,fetchMethod:this.model.fetchMenuContents,enableSnarfScripts:true});dojo.connect(this.refreshController,"renderContent",this,"_handleContentRefresh");if(this.button){this.refreshController.setServiceUrl(this.button.href);}dojo.subscribe(LEE.event.GlobalEventNames.PRODUCT_SAVED,this.model,this.model.addProduct);dojo.subscribe(LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD_ERROR,this,this._wishlistUpdateError);},_wishlistUpdateError:function(err){if(err["errorMessage"]){LEE.dialog({},err.errorMessage,LEE.util.config.get("Messages.SAVE_TO_MY_WISHLIST"),true);}}});LEE.ui.global.menu.DropDownBag.CONTAINER_ID="tl_wishlist";}if(!dojo._hasResource["LEE.view.company.GlobalEmailSubscription"]){dojo._hasResource["LEE.view.company.GlobalEmailSubscription"]=true;dojo.provide("LEE.view.company.GlobalEmailSubscription");dojo.declare("LEE.view.company.GlobalEmailSubscription",LEE.ui.form.Form,{resetButton:null,shareSendOverlay:null,messageDefault:null,constructor:function(form){if(!form){this.form=dojo.byId(LEE.view.company.GlobalEmailSubscription.IDS.CONTACT_FORM);this._startup();}this.submitViaXHR=false;},_attachListeners:function(){this.inherited(arguments);},_findElements:function(){this.inherited(arguments);},_submitForm:function(){dojo.forEach(dojo.query("input",this.form).concat(dojo.query("textarea",this.form)),function(el){if(el.value===el.title){el.value="";}},this);if(this.messageElement){this.messageElement.innerHTML=LEE.view.company.GlobalEmailSubscription.MESSAGE.SENDING;}this.inherited(arguments);},resetForm:function(e){if(e){dojo.stopEvent(e);}dojo.forEach(this.requiredFields,function(el){dojo.removeClass(el,LEE.ui.form.Form.CLASSES.INVALID);},this);if(this.messageElement){this.messageElement.innerHTML=this.messageDefault;}if(this.form){this.form.reset();}},onSubmit:function(e){if(e){dojo.stopEvent(e);}if(this.inherited(arguments)&&this.messageElement){this.messageElement.innerHTML=this.messageDefault;}else{if(this.messageElement){this.messageElement.innerHTML=LEE.util.config.get("Messages.CONTACT_FORM.ERROR_HEADER_HTML");}}},onSubmitSuccess:function(_742,args){this.inherited(arguments);if(this.messageElement&&_742==1){this.messageElement.innerHTML=LEE.view.company.GlobalEmailSubscription.MESSAGE.SEND_SUCCESS;}this.form.reset();}});LEE.view.company.GlobalEmailSubscription.IDS={CONTACT_FORM:"email_signup_footer",CONTACT_HEADER:"message_area"};LEE.view.company.GlobalEmailSubscription.MESSAGE={SENDING:"<p>Sending...</p>",SEND_SUCCESS:"<p>Thanks for subscribing!</p>",SEND_FAILURE:"<p>We&rsquo;re sorry, your email cannot be sent.</p>"};}if(!dojo._hasResource["LEE.view.company.EmailSubscription"]){dojo._hasResource["LEE.view.company.EmailSubscription"]=true;dojo.provide("LEE.view.company.EmailSubscription");dojo.declare("LEE.view.company.EmailSubscription",LEE.ui.form.Form,{resetButton:null,shareSendOverlay:null,messageDefault:"",constructor:function(form){if(!form){this.form=dojo.byId(LEE.view.company.EmailSubscription.IDS.CONTACT_FORM);this._startup();}},_attachListeners:function(){this.inherited(arguments);},_findElements:function(){this.inherited(arguments);this.messageDefault=this.messageElement.innerHTML;},_submitForm:function(){dojo.forEach(dojo.query("input",this.form).concat(dojo.query("textarea",this.form)),function(el){if(el.value===el.title){el.value="";}},this);if(this.messageElement){this.messageElement.innerHTML=LEE.view.company.EmailSubscription.MESSAGE.SENDING;}this.inherited(arguments);},resetForm:function(e){if(e){dojo.stopEvent(e);}dojo.forEach(this.requiredFields,function(el){dojo.removeClass(el,LEE.ui.form.Form.CLASSES.INVALID);},this);if(this.messageElement){this.messageElement.innerHTML=this.messageDefault;}if(this.form){this.form.reset();}},onSubmit:function(e){if(e){dojo.stopEvent(e);}if(this.inherited(arguments)&&this.messageElement){this.messageElement.innerHTML=this.messageDefault;}else{if(this.messageElement){this.messageElement.innerHTML=LEE.util.config.get("Messages.CONTACT_FORM.ERROR_HEADER_HTML");}}},onSubmitSuccess:function(_749,args){this.inherited(arguments);if(this.messageElement){this.messageElement.innerHTML=_749;}this.form.reset();}});LEE.view.company.EmailSubscription.IDS={CONTACT_FORM:"contact_form",CONTACT_HEADER:"message_area"};LEE.view.company.EmailSubscription.MESSAGE={SENDING:"<p>Sending...</p>",SEND_SUCCESS:"<p>Thanks for subscribing!</p>",SEND_FAILURE:"<p>We&rsquo;re sorry, your email cannot be sent.</p>"};}if(!dojo._hasResource["LEE.util.Display"]){dojo._hasResource["LEE.util.Display"]=true;dojo.provide("LEE.util.Display");LEE.util.Display={_documentWidth:0,_documentHeight:0,_scrollX:0,_scrollY:0,_viewportWidth:0,_viewportHeight:0,centerElement:function(_74b,_74c,_74d){var _74e=0;var _74f=0;var left=0;var _751=0;var _752=0;var top=0;try{if(!_74b.tagName||LEE.util.Dom.hasTagName(_74b,"body")){try{_74b=dojo.byId(_74b);if(!_74b.tagName||LEE.util.Dom.hasTagName(_74b,"body")){return false;}}catch(err){return false;}}if(_74c){_74e=dojo.style(_74b,"width");if(!_74b.parentNode||LEE.util.Dom.hasTagName(_74b.parentNode,"body")){_74f=this.getViewportWidth();}else{_74f=dojo.style(_74b.parentNode,"width");}left=Math.max(0,((_74f-_74e)/2))+this.getScrollX()+"px";dojo.style(_74b,{"position":"absolute","left":left});}if(_74d){_751=dojo.style(_74b,"height");if(!_74b.parentNode||LEE.util.Dom.hasTagName(_74b.parentNode,"body")){_752=this.getViewportHeight();}else{_752=dojo.style(_74b.parentNode,"height");}top=Math.max(0,((_752-_751)/2))+this.getScrollY()+"px";dojo.style(_74b,{"position":"absolute","top":top});}}catch(err){console.log("LEE.util.Display.centerElement :: error : "+err.message);}},maskSelectsOnOverlay:function(_754,_755){var _756=dojo.byId(LEE.util.config.get("GlobalElementIds.IE6_IFRAME_SHIM"));if(_756){_756.parentNode.removeChild(_756);}if(_754==="show"){var _757=document.createElement("iframe");var _758=null;_757.id=LEE.util.config.get("GlobalElementIds.IE6_IFRAME_SHIM");dojo.style(_757,"opacity","0");if(_755&&_755.target){_758=_755.target;dojo.style(_757,"width",_758.offsetWidth+"px");dojo.style(_757,"height",_758.offsetHeight+"px");dojo.style(_757,"left",_758.offsetLeft+"px");dojo.style(_757,"top",_758.offsetTop+"px");if(LEE.util.Dom.hasTagName(_758,"li")){_758=_758.parentNode;}}else{_758=dojo.byId(LEE.util.config.get("GlobalElementIds.FOOTER"));}LEE.util.Dom.insertAfter(_757,_758);}},_getScrollXY:function(){var _759=0;var _75a=0;if(typeof (window.pageYOffset)=="number"){_75a=window.pageYOffset;_759=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){_75a=document.body.scrollTop;_759=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){_75a=document.documentElement.scrollTop;_759=document.documentElement.scrollLeft;}}}this._scrollX=_759;this._scrollY=_75a;},getScrollX:function(){this._getScrollXY();return this._scrollX;},getScrollY:function(){this._getScrollXY();return this._scrollY;},getDocumentHeight:function(){this._getViewportSize();return this._documentHeight;},getDocumentWidth:function(){this._getViewportSize();return this._documentWidth;},getViewportHeight:function(){this._getViewportSize();return this._viewportHeight;},_getViewportSize:function(){if(this._viewportWidth===0&&this._viewportHeight===0){if(typeof window.innerWidth!="undefined"){this._viewportWidth=window.innerWidth;this._viewportHeight=window.innerHeight;}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){this._viewportWidth=document.documentElement.clientWidth;this._viewportHeight=document.documentElement.clientHeight;}else{this._viewportWidth=document.getElementsByTagName("body")[0].clientWidth;this._viewportHeight=document.getElementsByTagName("body")[0].clientHeight;}}this._documentHeight=document.body.offsetHeight;this._documentWidth=document.body.offsetWidth;}},getViewportWidth:function(){this._getViewportSize();return this._viewportWidth;}};}if(!dojo._hasResource["LEE.util.Dom"]){dojo._hasResource["LEE.util.Dom"]=true;dojo.provide("LEE.util.Dom");LEE.util.Dom={getAncestorByClassName:function(_75b,_75c){if(!_75b||!_75c){return null;}_75b=dojo.byId(_75b);var _75d=_75b.parentNode;var i=0;while(_75d&&i<50){if(dojo.hasClass(_75d,_75c)){return _75d;}_75d=_75d.parentNode;i++;}return null;},getAncestorByTagName:function(_75f,_760){if(!_75f||!_760){return null;}_75f=dojo.byId(_75f);var _761=_75f.parentNode;var i=0;while(_761&&i<50){if(this.hasTagName(_761,_760)){return _761;}_761=_761.parentNode;i++;}return null;},hasTagName:function(_763,_764){if(!_763||!_764){return false;}_763=dojo.byId(_763);_764=_764.toLowerCase();if(_763&&_763.tagName&&_763.tagName.toLowerCase()===_764){return true;}return false;},insertAfter:function(_765,node){if(node.nextSibling){node.parentNode.insertBefore(_765,node.nextSibling);}else{node.parentNode.appendChild(_765);}}};}if(!dojo._hasResource["LEE.util.Environment"]){dojo._hasResource["LEE.util.Environment"]=true;dojo.provide("LEE.util.Environment");LEE.util.Environment={params:[],constructor:function(){},getQueryStringValue:function(_767,_768){var _769;var _76a;var _76b;if(!_767){return false;}if(!_768){_768=document.location.search.substring(1);}_76b=_768.split("?");if(_76b.length>1){_768=_76b[1];}_76a=_768.split(/\&/);for(var i=0;i<_76a.length;i++){_769=_76a[i].split(/\=/);if(typeof _769[1]!=="undefined"){this.params[_769[0]]=unescape(_769[1]);}}if(this.params[_767]){return this.params[_767];}else{return "";}}};}if(!dojo._hasResource["LEE.util.ExecuteOnLoad"]){dojo._hasResource["LEE.util.ExecuteOnLoad"]=true;dojo.provide("LEE.util.ExecuteOnLoad");LEE.util.ExecuteOnLoad=function(type,_76e){if(typeof (_76e)=="string"){var _t=this,code,_771={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};_76e=snarfScripts(_76e,_771);code=_771.code;try{evalInGlobal(code,(document.body));}catch(e){console.log("Exec","Error eval script in "+this.id+", "+e.message,e);}}function snarfScripts(cont,_774){_774.code="";function download(src){if(_774.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(code){_774.code+=code+";";},error:_774.errBack});}};return cont.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_777,_778,src,code){if(src){download(src);}else{_774.code+=code;}return "";});};function evalInGlobal(code,_77c){_77c=_77c||dojo.doc.body;var n=_77c.ownerDocument.createElement("script");n.type="text/javascript";_77c.appendChild(n);n.text=code;};};dojo.subscribe(LEE.event.ServiceEventNames.SERVICE_END,this,LEE.util.ExecuteOnLoad);}if(!dojo._hasResource["LEE.util.Lang"]){dojo._hasResource["LEE.util.Lang"]=true;dojo.provide("LEE.util.Lang");LEE.util.Lang={_generatedKeys:[],compareArrays:function(arr1,arr2){if(!arr1||!arr2||arr1.length!=arr2.length){return false;}for(var i=arr1.length-1;i>=0;i--){if(dojo.isArray(arr1[i])){if(!this.compareArrays(arr1[i],arr2[i])){return false;}}}if(arr1[i]!==arr2[i]){return false;}return true;},getElementByIndex:function(_781,_782){if(_781&&_781[_782]){return _781[_782];}else{return null;}},getQueryElementByIndex:function(_783,node,_785){if(!node){node=document.body;}return this.getElementByIndex(dojo.query(_783,node),_785);},generateId:function(){var _786="LEE_GENERATED_ID_"+this.randomString();var i=100;while((dojo.byId(_786)||dojo.indexOf(this._generatedKeys,_786)>-1)&&i>0){_786="LEE_GENERATED_ID_"+this.randomString();i--;}return _786;},randomString:function(){var _788="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var _789=8;var _78a="";for(var i=0;i<_789;i++){var rnum=Math.floor(Math.random()*_788.length);_78a+=_788.substring(rnum,rnum+1);}return _78a;}};}if(!dojo._hasResource["LEE.view.product.AbstractProductForm"]){dojo._hasResource["LEE.view.product.AbstractProductForm"]=true;dojo.provide("LEE.view.product.AbstractProductForm");dojo.declare("LEE.view.product.AbstractProductForm",null,{attributes:null,attributesLength:0,attributeLists:null,currentAttributeValues:null,currentAttributeValuesLength:0,_connections:null,optionsMatrix:null,productForm:null,quantityField:null,rolloutDelay:null,rolloutDelayTimeout:500,sizeChartButton:null,submission:null,valueDisplayElements:null,values:null,guarded:null,constructor:function(_78d){this.productForm=dojo.byId(_78d);},startup:function(){if(!this.productForm){this.productForm=dojo.byId(LEE.view.product.AbstractProductForm.DEFAULT_FORM_ID);}if(this.productForm){this._initializeParameters();this._initChildren();}else{console.warn("no product form");}},destroy:function(){var _78e=this._connections.length;if(_78e>0){for(var i=_78e-1;i>=0;i--){dojo.disconnect(this._connections[i]);}}this._connections=[];this.productForm.innerHTML="";},_initializeParameters:function(){this.values={};this.valueDisplayElements={};this._connections=[];this.currentAttributeValues=[];this.attributeLists=[];this.attributes=[];},_initChildren:function(){this._fetchOptions();this._initAttributes();this._initQuantity();this._initSizeChart();this._initSubmitAction();},_fetchOptions:function(){var _790=LEE.util.Lang.getQueryElementByIndex("[name^="+LEE.view.product.AbstractProductForm.NAMES.OPTION_MATRIX_URL_INPUT+"]",this.productForm,0).value;var _791=LEE.model.ModelLocator.getModel(LEE.model.ModelNames.PRODUCT_MODEL);var _792=_791.fetchOptions(_790);_792.addCallback(dojo.hitch(this,"_handleOptionsMatrixResponse"));_792.addErrback(dojo.hitch(this,"_handleOptionsMatrixError"));},_initAttributes:function(){this.attributes=dojo.query("input."+LEE.view.product.AbstractProductForm.CLASSES.ATTRIBUTE,this.productForm);if(this.attributes.length===0){this.attributes=dojo.query("input."+LEE.view.product.AbstractProductForm.CLASSES.ATTRIBUTE_ALT,this.productForm);}this.attributesLength=this.attributes.length;for(var i=0;i<this.attributesLength;i++){dojo.removeClass(this.attributes[i],LEE.view.product.AbstractProductForm.CLASSES.ATTRIBUTE_ALT);dojo.addClass(this.attributes[i],LEE.view.product.AbstractProductForm.CLASSES.ATTRIBUTE);if(dojo.indexOf(this.attributeLists,this.attributes[i].name)<0){this.attributeLists.push(this.attributes[i].name);}}dojo.forEach(this.attributes,function(el){el.disabled="";this._connections.push(dojo.connect(el,"onclick",this,this._handleAttributeClick));this._connections.push(dojo.connect(el.parentNode,"onmouseover",this,this._handleMouseOver));this._connections.push(dojo.connect(el.parentNode,"onmouseout",this,this._handleMouseOut));},this);this._showRadioChecked.call(this);},_initQuantity:function(){this.quantityField=LEE.util.Lang.getQueryElementByIndex("input[name=quantity]",this.formNode,0);},_initSizeChart:function(){this.sizeChartButton=LEE.util.Lang.getElementByIndex(dojo.query("."+LEE.view.product.AbstractProductForm.CLASSES.SIZE_CHART_LINK,this.productForm),0);if(this.sizeChartButton){this._connections.push(dojo.connect(this.sizeChartButton,"onclick",this,LEE.ui.global.SizeChart));}},_initSubmitAction:function(){if(this.productForm){this._connections.push(dojo.connect(this.productForm,"submit",this,this._handleSubmit));}dojo.subscribe(LEE.event.ModelEventNames.BAG_PRODUCT_ADD_ERROR,this,this._notify);},_guardForm:function(){this.guarded=true;},_unguardForm:function(){this.guarded=false;},_evaluateAttributeList2:function(_795){var _796;var _797;if(this.currentAttributeValuesLength<=1){return false;}var _798=this.productForm[_795].length;for(var i=0;i<_798;i++){var _79a=this.optionsMatrix;var _79b;var _79c=this.attributeLists.length;for(var j=0;j<_79c;j++){try{if(this.attributeLists[j]===_795){_79b=this.productForm[_795][i];_79a=_79a[_79b.value];}else{_79a=_79a[this.currentAttributeValues[this.attributeLists[j]]];}}catch(err){}}var _79e=dojo.query("label",_79b.parentNode);if(parseInt(_79a)===0){_79e.addClass(LEE.view.product.AbstractProductForm.CLASSES.DISABLED);}else{_79e.removeClass(LEE.view.product.AbstractProductForm.CLASSES.DISABLED);}}},_findValueDisplayElement:function(_79f){if(this.valueDisplayElements[_79f]){return this.valueDisplayElements[_79f];}if(_79f&&this.productForm[_79f]&&(this.productForm[_79f][0]||this.productForm[_79f].tagName&&this.productForm[_79f].tagName.toLowerCase()==="input")){if(this.productForm[_79f].tagName&&this.productForm[_79f].tagName.toLowerCase()==="input"){firstListItem=this.productForm[_79f];}else{firstListItem=this.productForm[_79f][0];}groupContainer=LEE.util.Dom.getAncestorByClassName(firstListItem,LEE.view.product.AbstractProductForm.CLASSES.ATTRIBUTE_GROUP);displaySpan=dojo.query("."+LEE.view.product.AbstractProductForm.CLASSES.GROUP_TITLE+" > span",groupContainer);if(displaySpan[0]){displaySpan=displaySpan[0];}return displaySpan;}return null;},_notify:function(msg){dojo.publish(LEE.event.GlobalEventNames.CLICK_BLOCKER_HIDE);if(msg.errorMessage){msg=msg.errorMessage;}var _7a1=LEE.util.Lang.getQueryElementByIndex("."+LEE.view.product.AbstractProductForm.CLASSES.FORM_MESSAGE,this.productForm,0);if(_7a1){_7a1.innerHTML=msg;}else{if(msg){alert(msg);}}},_setListDisplay:function(_7a2){var _7a3=null;var _7a4=null;var _7a5=this._findValueDisplayElement(_7a2);var _7a6=this.currentAttributeValues[_7a2];if(_7a5){if(_7a6){_7a5.innerHTML=LEE.view.product.AbstractProductForm.VALUE_DISPLAY_PREFIX+_7a6;}else{_7a5.innerHTML="";}}},_showRadioChecked:function(e){var _7a8=false;if(dojo.isIE&&dojo.isIE<7){_7a8=true;}for(var j=this.attributeLists.length-1;j>=0;j--){var _7aa=this.productForm[this.attributeLists[j]];if(!_7aa[0]){_7aa=[_7aa];}for(var i=_7aa.length-1;i>=0;i--){if(_7a8){dojo.query("label",_7aa[i].parentNode).addClass(LEE.view.product.AbstractProductForm.CLASSES.CHECKED);}if(_7aa[i].checked===true||_7aa[i].checked==="checked"){dojo.query("label",_7aa[i].parentNode).addClass(LEE.view.product.AbstractProductForm.CLASSES.CHECKED);}else{dojo.query("label",_7aa[i].parentNode).removeClass(LEE.view.product.AbstractProductForm.CLASSES.CHECKED);}}}},_validate:function(){var _7ac=this.attributeLists.length;var _7ad=false;var _7ae=this.optionsMatrix;var qty=parseInt(this.quantityField.value);for(var j=0;j<_7ac;j++){this._evaluateAttributeList2(this.attributeLists[j]);}if(this.optionsMatrix){for(var k in this.attributeLists){if(this.attributeLists.hasOwnProperty(k)){if(_7ae[this.currentAttributeValues[this.attributeLists[k]]]){_7ae=_7ae[this.currentAttributeValues[this.attributeLists[k]]];}else{_7ad=true;}}}}if(this.currentAttributeValuesLength<_7ac){this._notify(LEE.util.config.get("Errors.VALIDATION_UNSELECTED_ATTRIBUTES"));return false;}if(_7ad){console.log("invalidChoice");this._notify(LEE.util.config.get("Errors.VALIDATION_INVALID_ATTRIBUTES"));return false;}return true;},_handleAttributeClick:function(e){this._showRadioChecked(e);if(dojo.hasClass(e.target,LEE.view.product.AbstractProductForm.CLASSES.COLOR_ATTRIBUTE)){dojo.publish(LEE.event.ModelEventNames.PRODUCT_IMAGE_COLOR_UPDATE,[e.target.value]);}},_handleSubmit:function(e){console.log("_handleSubmit");},_handleMouseOver:function(e){this._handleSelection(e,false);},_handleMouseOut:function(e){this._handleSelection(e,true);},_handleSelection:function(e,_7b7){var trgt;var _7b9=[];var _7ba=0;var _7bb=this.optionsMatrix;clearTimeout(this.rolloutDelay);for(var i=this.attributeLists.length-1;i>=0;i--){var _7bd=LEE.ui.form.Form.findRadioValue(this.productForm[this.attributeLists[i]]);if(_7bd&&_7bd!==""){_7b9[this.attributeLists[i]]=_7bd;_7ba++;}}if(e&&!_7b7&&e.target){trgt=dojo.query("input",e.target.parentNode);if(trgt.hasOwnProperty(0)){trgt=trgt[0];}var _7bd=trgt.value;if(_7bd&&_7bd!==""){_7b9[trgt.name]=_7bd;_7ba++;}}if(!LEE.util.Lang.compareArrays.call(this.currentAttributeValues,_7b9)){this._showRadioChecked();this.currentAttributeValues=_7b9;this.currentAttributeValuesLength=_7ba;var _7be=this.attributeLists.length;for(var j=0;j<_7be;j++){this._evaluateAttributeList2(this.attributeLists[j]);this._setListDisplay(this.attributeLists[j]);try{_7bb=_7bb[this.currentAttributeValues[this.attributeLists[j]]];}catch(err){}}this._notify("&nbsp;");if(!_7bb){this._guardForm();}else{this._unguardForm();}}},_handleOptionsMatrixError:function(err){console.log("LEE.view.product.AbstractProductForm._handleOptionsMatrixError : ");},_handleOptionsMatrixResponse:function(_7c1,args){if(_7c1.hasOwnProperty("availability")){this.optionsMatrix=_7c1.availability;this._handleMouseOver.call(this);}}});LEE.view.product.AbstractProductForm.CLASSES={ATTRIBUTE:"attribute_radio",ATTRIBUTE_ALT:"attribute_radio_nojs",ATTRIBUTE_GROUP:"attribute_group",CHECKED:"checked",COLOR_ATTRIBUTE:"color_attribute",DISABLED:"disabled",FORM_MESSAGE:"form_message",GROUP_TITLE:"group_title",SIZE_CHART_LINK:"popup"};LEE.view.product.AbstractProductForm.NAMES={OPTION_MATRIX_URL_INPUT:"options_matrix_url"};LEE.view.product.AbstractProductForm.DEFAULT_FORM_ID="productForm";LEE.view.product.AbstractProductForm.QUANTITY_LIMIT=5;LEE.view.product.AbstractProductForm.VALUE_DISPLAY_PREFIX=" : ";}if(!dojo._hasResource["LEE.view.product.ProductForm"]){dojo._hasResource["LEE.view.product.ProductForm"]=true;dojo.provide("LEE.view.product.ProductForm");dojo.declare("LEE.view.product.ProductForm",LEE.view.product.AbstractProductForm,{subscriptions:[],constructor:function(_7c3){this.subscriptions.push(dojo.subscribe(LEE.event.ModelEventNames.BAG_PRODUCT_ADD,this,this._handleProductAdded));this.subscriptions.push(dojo.subscribe(LEE.event.ModelEventNames.WISHLIST_PRODUCT_ADD,this,this._handleProductAdded));this.productForm=dojo.byId(_7c3);},destroy:function(){this.inherited(arguments);while(this.subscriptions.length>0){dojo.unsubscribe(this.subscriptions.pop());}},submit:function(e){dojo.stopEvent(e);if(this._validate()){dojo.publish(LEE.event.GlobalEventNames.PRODUCT_SUBMITTED,[this.productForm,this.productForm.action]);}},save:function(e){dojo.stopEvent(e);if(this._validate()){dojo.publish(LEE.event.GlobalEventNames.PRODUCT_SAVED,[this.productForm,this.productForm.action]);}},_initChildren:function(){this.inherited(arguments);this._initButtons();},_initButtons:function(){this.saveButton=LEE.util.Lang.getQueryElementByIndex("[name^="+LEE.view.product.ProductForm.NAMES.SAVE_BUTTON+"]",this.productForm,0);this.submitButton=LEE.util.Lang.getQueryElementByIndex("[name^="+LEE.view.product.ProductForm.NAMES.SUBMIT_BUTTON+"]",this.productForm,0);if(this.submitButton){dojo.connect(this.submitButton,"click",this,this.submit);}if(this.saveButton){dojo.connect(this.saveButton,"click",this,this.save);}},_guardForm:function(){this.inherited(arguments);dojo.addClass(this.submitButton,"disabled");dojo.addClass(this.saveButton,"disabled");},_unguardForm:function(){this.inherited(arguments);dojo.removeClass(this.submitButton,"disabled");dojo.removeClass(this.saveButton,"disabled");},_handleSubmit:function(e){dojo.stopEvent(e);if(!this.guarded){this.submit(e);}this.inherited(arguments);},_handleProductAdded:function(e){dojo.publish(LEE.event.GlobalEventNames.DIALOG_FINISHED);dojo.publish(LEE.event.GlobalEventNames.CLICK_BLOCKER_SHOW);this._notify("&nbsp;");}});LEE.view.product.ProductForm.NAMES={SAVE_BUTTON:"save",SUBMIT_BUTTON:"submit"};}if(!dojo._hasResource["LEE.view.product.QuickView"]){dojo._hasResource["LEE.view.product.QuickView"]=true;dojo.provide("LEE.view.product.QuickView");dojo.declare("LEE.view.product.QuickView",null,{selectedColorSet:"default",backViewImages:[],container:null,currentView:"front",frontViewImages:[],listenerArray:[],productForm:null,tabbers:null,constructor:function(){this.container=dojo.byId(LEE.view.product.QuickView.CONTAINER_ID);this._attachListeners();dojo.subscribe(LEE.event.ModelEventNames.PRODUCT_OPTIONS_UPDATE,this,this._setImageMappingsFromXhrResponse);dojo.subscribe(LEE.event.ModelEventNames.PRODUCT_IMAGE_COLOR_UPDATE,this,this._handleColorChangeEvent);dojo.subscribe(LEE.event.GlobalEventNames.PAGINATION_RELOAD,this,this._attachListeners);dojo.subscribe(LEE.event.GlobalEventNames.PRODUCT_DOM_READY,this,this.setUpOverlay);dojo.subscribe(LEE.event.GlobalEventNames.PAGINATION_SWITCH_VIEW,this,this._switchViews);},setUpOverlay:function(id){dojo.forEach(dojo.query("img.thumbnail",this.container),function(el){dojo.connect(el,"onclick",this,function(evt){dojo.publish(LEE.event.GlobalEventNames.PAGINATION_SWITCH_VIEW,["userSwitched"]);});},this);this.tabber=new LEE.ui.global.Tabs();if(this.productForm){this.productForm.destroy();}this.productForm=new LEE.view.product.ProductForm();this.productForm.startup(id);this.frontViewImages=dojo.query("img."+LEE.view.product.QuickView.FRONT_VIEW_CLASS,this.container);this.backViewImages=dojo.query("img."+LEE.view.product.QuickView.BACK_VIEW_CLASS,this.container);},_attachListeners:function(){this.listenerArray=dojo.query(LEE.view.product.QuickView.QUICKVIEW_ARRAY_CLASS);for(var i=this.listenerArray.length-1;i>=0;i--){dojo.connect(this.listenerArray[i],"onclick",this,LEE.ui.global.QuickView);}},_handleColorChangeEvent:function(_7cc){if(dojo.byId(LEE.view.product.QuickView.CONTAINER_ID)){if(this.selectedColorSet!==_7cc){if(this.data.productImages[_7cc]){this.frontViewImages[0].src=this.data.productImages[_7cc][1].preview;this.frontViewImages[1].src=this.data.productImages[_7cc][2].nav_view;this.backViewImages[0].src=this.data.productImages[_7cc][2].preview;this.backViewImages[1].src=this.data.productImages[_7cc][1].nav_view;}else{}this.selectedColorSet=_7cc;}else{}}},_setImageMappingsFromXhrResponse:function(data){this.data=data;if(this.data.productId){var _7ce=this.data.productId;}},_switchViews:function(){if(dojo.byId(LEE.view.product.QuickView.CONTAINER_ID)){if(this.backViewImages&&this.frontViewImages){switch(this.currentView){case "back":dojo.forEach(this.backViewImages,function(el){dojo.addClass(el,"none");},this);dojo.forEach(this.frontViewImages,function(el){dojo.removeClass(el,"none");},this);this.currentView="front";break;case "front":dojo.forEach(this.backViewImages,function(el){dojo.removeClass(el,"none");},this);dojo.forEach(this.frontViewImages,function(el){dojo.addClass(el,"none");},this);this.currentView="back";break;}}}}});LEE.view.product.QuickView.CONTAINER_ID="quickview_ovr";LEE.view.product.QuickView.FRONT_VIEW_CLASS="front_view";LEE.view.product.QuickView.BACK_VIEW_CLASS="back_view";LEE.view.product.QuickView.QUICKVIEW_ARRAY_CLASS=".quickview";LEE.view.product.QuickView.QUICKVIEW_SWITCH_ID="quickview_toggle";}if(!dojo._hasResource["LEE.ui.global.Accordion"]){dojo._hasResource["LEE.ui.global.Accordion"]=true;dojo.provide("LEE.ui.global.Accordion");dojo.declare("LEE.ui.global.Accordion",null,{container:null,buttons:null,connections:null,classNames:null,accordions:null,toggle:null,optionsOpen:null,closedHeight:null,_initialized:null,node:null,constructor:function(node){if(node){this.node=dojo.byId(node);this.startup();}},startup:function(){if(!this._initialized){this._initializeParameters();this._createChildren();this._findAccordions();this._findButtons();this._subscribed();this._initialized=true;}},_initializeParameters:function(){if(!this.connections){this.connections=[];}if(!this.classNames){this.classNames=LEE.ui.global.Accordion.CLASSES;}if(!this.accordions){this.accordions=LEE.ui.global.Accordion.ACCORDIANS;}if(!this.closedHeight){this.closedHeight=0;}if(!this.optionsOpen){this.optionsOpen=[];}if(!this.toggle){this.toggle=true;}if(!this.container){this.container=this.node;}},_createChildren:function(){this._createButtons();},_createButtons:function(){this._buttons=[];},_findAccordions:function(){if(!this.node.id){this.node.id=LEE.util.Lang.generateId();}if(this.accordions[this.node.id]){this.accordions[this.node.id]._destroy();}this.accordions[this.node.id]==this;},_findButtons:function(){this.buttons=dojo.query("."+this.classNames.BUTTONCLASS,this.container);for(var i=0;i<this.buttons.length;i++){var _7d5=this.buttons[i];this.connections.push(dojo.connect(_7d5,"onclick",this,this.toggleMenu));}dojo.forEach(dojo.query("."+this.classNames.OPTIONSCLASS,this.container),function(el){if(!dojo.hasClass(el,this.classNames.CLOSED)){this.optionsOpen.push(el);}},this);},_subscribed:function(){dojo.subscribe(LEE.event.GlobalEventNames.ACCORDION_SHOW,this,this.showPanel);dojo.subscribe(LEE.event.GlobalEventNames.ACCORDION_HIDE,this,this.hidePanel);dojo.subscribe(LEE.event.GlobalEventNames.ACCORDION_CONTENT,this,this.setContent);},_activate:function(trgt){for(var i=this.buttons.length-1;i>=0;i--){dojo.removeClass(this.buttons[i],this.classNames.ACTIVE);}dojo.addClass(trgt,this.classNames.ACTIVE);},_closeMenu:function(node){if(dojo.indexOf(this.optionsOpen,node)>=0){var anim=dojo.animateProperty({node:node,duration:200,properties:{height:{end:this.closedHeight}}}).play();var _7db=dojo.indexOf(this.optionsOpen,node);this.optionsOpen.splice(_7db,1);dojo.connect(anim,"onEnd",function(){dojo.publish(LEE.event.GlobalEventNames.ACCORDION_HIDE);});}},_destroy:function(){for(var i=0;i<this.connections.length;i++){dojo.disconnect(this.connections[i]);}this.buttons=null;this.connections=null;this.container=null;this.toggle=null;this.optionsOpen=null;this.closedHeight=null;delete this;},_lockMenu:function(node){var _7de=dojo.byId(node);if(!dojo.hasClass(_7de,this.classNames.OPTIONSCLASS)){var _7de=dojo.query("."+this.classNames.OPTIONSCLASS,_7de);if(_7de[0]){_7de=_7de[0];}}if(_7de){dojo.addClass(_7de,this.classNames.LOCKED);}},_openMenu:function(node){if(dojo.indexOf(this.optionsOpen,node)<0){var anim=dojo.animateProperty({node:node,duration:200,properties:{height:{end:node.scrollHeight}}}).play();this.optionsOpen.push(node);dojo.connect(anim,"onEnd",function(){dojo.publish(LEE.event.GlobalEventNames.ACCORDION_SHOW);});}},_unlockMenu:function(node){var _7e2=dojo.byId(node);if(!dojo.hasClass(_7e2,this.classNames.OPTIONSCLASS)){var _7e2=dojo.query("."+this.classNames.OPTIONSCLASS,_7e2);if(_7e2[0]){_7e2=_7e2[0];}}if(_7e2){dojo.removeClass(_7e2,this.classNames.LOCKED);}},showPanel:function(_7e3){var _7e4=null;var _7e5=null;if(!_7e3){return false;}if(dojo.indexOf(this.buttons,_7e3)>=0){_7e4=_7e3;}else{_7e4=dojo.query("."+this.classNames.BUTTONCLASS,_7e3);if(_7e4[0]){_7e4=_7e4[0];}}if(_7e4){this._unlockMenu(_7e4.parentNode);_7e5=dojo.query("."+this.classNames.OPTIONSCLASS,_7e4.parentNode);if(_7e5){if(_7e5[0]){_7e5=_7e5[0];}this.optionsOpen.splice(dojo.indexOf(this.optionsOpen,_7e5),1);}this.toggleMenu({"target":_7e4});}},hidePanel:function(_7e6){var _7e7=null;var _7e8=null;if(!_7e6){return false;}if(dojo.indexOf(this.buttons,_7e6)>=0){_7e7=_7e6;}else{_7e7=dojo.query("."+this.classNames.BUTTONCLASS,_7e6);if(_7e7[0]){_7e7=_7e7[0];}}if(_7e7){this._unlockMenu(_7e7.parentNode);this.toggleMenu({"target":_7e7});}},setContent:function(node,_7ea){if(!node){return false;}var _7eb=dojo.byId(node);if(!dojo.hasClass(_7eb,this.classNames.OPTIONSCLASS)){_7eb=dojo.query("."+this.classNames.OPTIONSCLASS,_7eb);_7eb=_7eb[0];}if(_7eb){_7eb.innerHTML=_7ea;}},toggleMenu:function(e){try{if(e&&e.target){var _7ed=dojo.query("."+this.classNames.OPTIONSCLASS,e.target.parentNode);_7ed=_7ed[0];var _7ee=dojo.indexOf(this.optionsOpen,_7ed);if(_7ed&&!dojo.hasClass(_7ed,this.classNames.LOCKED)){if(_7ee>-1){this._closeMenu(_7ed);dojo.removeClass(e.target,this.classNames.ACTIVE);}else{if(this.toggle&&this.optionsOpen.length>0){for(var i=this.optionsOpen.length-1;i>=0;i--){if(this.toggle){this._closeMenu(this.optionsOpen[i]);}}}this._openMenu(_7ed);this._activate(e.target);}}}else{}}catch(err){}}});LEE.ui.global.Accordion.ACCORDIANS=[];LEE.ui.global.Accordion.CLASSES={ACTIVE:"active",BUTTONCLASS:"toggle_btn",CLOSED:"closed",LOCKED:"toggle_locked",OPTIONSCLASS:"toggle_expand"};}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_7f0,_7f1,_7f2){if(this.aroundNode&&this.aroundNode===_7f1){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_7f0;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _7f3={};var ltr=this.isLeftToRight();dojo.forEach((_7f2&&_7f2.length)?_7f2:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_7f3[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_7f3[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_7f3[ltr?"BL":"BR"]=ltr?"TL":"TR";_7f3[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_7f3[ltr?"TL":"TR"]=ltr?"BL":"BR";_7f3[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_7f1,_7f3,dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_7f1;},orient:function(node,_7f8,_7f9){node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_7f8+"-"+_7f9];},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_7fa){if(this._onDeck&&this._onDeck[1]==_7fa){this._onDeck=null;}else{if(this.aroundNode===_7fa){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_7fb,_7fc,_7fd){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_7fb,_7fc,_7fd);};dijit.hideTooltip=function(_7fe){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_7fe);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){dojo.addClass(this.domNode,"dijitTooltipData");this._connectNodes=[];dojo.forEach(this.connectId,function(id){var node=dojo.byId(id);if(node){this._connectNodes.push(node);dojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_801){this.connect(node,_801.toLowerCase(),"_"+_801);},this);if(dojo.isIE){node.style.zoom=1;}}},this);},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _807=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_807);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_809){_809=_809||this._connectNodes[0];if(!_809){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_809,this.position);this._connectNode=_809;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["LEE.ui.global.Search"]){dojo._hasResource["LEE.ui.global.Search"]=true;dojo.provide("LEE.ui.global.Search");dojo.declare("LEE.ui.global.Search",null,{form:null,input:null,constructor:function(){this.form=dojo.byId(LEE.ui.global.Search.FORM_ID);this.input=dojo.byId(LEE.ui.global.Search.INPUT_ID);dojo.connect(this.form,"submit",this,this.onSubmit);dojo.connect(this.input,"focus",this,this._handleInputFocus);},onSubmit:function(e){try{dojo.stopEvent(e);}catch(err){}if(this._validate()){this.form.submit();}},_validate:function(){if(this.input.value===this.input.title||this.input.value===""){dijit.showTooltip(LEE.util.config.get("Errors.VALIDATION_INVALID_SEARCH"),this.input,["below"]);return false;}return true;},_handleInputFocus:function(){dijit.hideTooltip(this.input);}});LEE.ui.global.Search.FORM_ID="search";LEE.ui.global.Search.INPUT_ID="search_input";}if(!dojo._hasResource["LEE"]){dojo._hasResource["LEE"]=true;dojo.provide("LEE");dojo.provide("LEE.Global");LEE_LOAD_COMPLETE=false;dojo.addOnLoad(function(){LEE.accountMenu=new LEE.ui.global.menu.DropDownMyAccount(LEE.util.config.get("GlobalElementIds.GLOBAL_ACCOUNT")).startup();LEE.bag=new LEE.ui.global.menu.DropDownBag(LEE.util.config.get("GlobalElementIds.GLOBAL_BAG")).startup();LEE.wishlist=new LEE.ui.global.menu.DropDownWishlist(LEE.util.config.get("GlobalElementIds.GLOBAL_WISHLIST")).startup();LEE.navigation=new LEE.ui.global.Navigation();LEE.quickView=new LEE.view.product.QuickView();LEE.clickBlocker=new LEE.ui.global.ClickBlocker();LEE.countrySelector=new LEE.ui.global.CountrySelector();LEE.espot=new LEE.ui.global.ESpotRotator();LEE.rollup=new LEE.ui.global.Rollup();LEE.tabber=new LEE.ui.global.Tabs();LEE.checkbox=new LEE.ui.catalog.Checkbox();LEE.windowHandler=new LEE.ui.global.Window();LEE.ui.form.Form.enableDefaultTextInputs();LEE.globalSignInForm=new LEE.ui.form.Form(LEE.util.Lang.getQueryElementByIndex("#"+LEE.util.config.get("GlobalElementIds.SIGN_IN_FORM")+" form",null,0));LEE.globalSignInForm.submitViaXHR=false;LEE.emailSubscription=new LEE.view.company.GlobalEmailSubscription(LEE.util.config.get("GlobalElementIds.EMAIL_SUBSCRIPTION"));LEE.search=new LEE.ui.global.Search();var _80b=dojo.byId(LEE.util.config.get("GlobalElementIds.STATUS_MESSAGE"));var _80c="";if(_80b&&dojo.trim(_80b.innerHTML)!==""){_80c=_80b.innerHTML;_80b.innerHTML="";LEE.dialog({},_80c,_80b.title);}dojo.subscribe(LEE.event.GlobalEventNames.GLOBAL_LOADED,this,function(){LEE_LOAD_COMPLETE=true;});dojo.publish(LEE.event.GlobalEventNames.GLOBAL_LOADED);});}dojo.i18n._preloadLocalizations("LEE.nls.Global",["xx","ROOT","en","en-us"]);