var AjaxObject={handleSuccess:function(A){this.processResult(A);},handleFailure:function(A){alert("Failed to set preferred store. :(");},processResult:function(o){if(typeof showResults=="function"){showResults();}var store=eval("("+o.responseText+")");if(typeof parent.show=="function"){parent.show(localStoreItemId,store);}if(typeof closeOverlayFrame=="function"){closeOverlayFrame();}},startRequest:function(B,A){if(typeof A!="undefined"){localStoreItemId=A;localStoreId=B;}else{localStoreItemId="";localStoreId="";}YAHOO.util.Connect.asyncRequest("GET","/catalog/make_my_store.do?store_id="+B,callback,null);preferredStoreId=B;}};var localStoreItemId="";var localStoreId="";var callback={success:AjaxObject.handleSuccess,failure:AjaxObject.handleFailure,scope:AjaxObject,cache:false};