function addFavorites(a){Application.favoritesID=a;startSubmitDialog(add_favorites,"javascript:stvoid();",addToFavorites)}function addToFavorites(){Application.urlForFavorites=document.location.href;progressDialog.close();Signuper.doSignUp({callbacks:{V_OK:onAddToFavoritesAuth,L_OK:onAddToFavoritesAuth},switchDialog:true,showWarningOnClose:true,ifCookieReturnFunction:onAddToFavoritesAuth})}function onAddToFavoritesAuth(){var a=new StRpcStub();a.setUrl(memberControllerUrl);a.params.set("cmd","addFavorities");a.params.set("member_id",getMemberId());a.params.set("restaurant_id",Application.favoritesID);a.fetchAsyncXml(onaddToFavorites,this);return true}function onaddToFavorites(a){progressDialog.close();var b=xPath.selectSingleNode(a,"rsm_response/result/result_code/@value").value*1;if(b==0){showMessage(add_favorites_successfully,DIALOG_TIMEOUT)}if(b==1){showMessage(iternal_error)}}function showFullMemos(){document.getElementById("restaurantMemos").style.display="none";document.getElementById("restaurantMemosFull").style.display="block"}function mailIt(){preStartSendPageDialog()}function printIt(){alert("This part of site is under construction! Sorry for discomfort")}function addRestaurantPhoto(a){Application.addRestaurantPhotoUrl=a;Signuper.doSignUp({callbacks:{V_OK:addRestaurantPhotoAuth,L_OK:addRestaurantPhotoAuth},callbackObject:Application.email,switchDialog:true,prefill:{},ifCookieReturnFunction:addRestaurantPhotoAuth})}function addRestaurantPhotoAuth(){reloadPage(Application.addRestaurantPhotoUrl);return true};