function ajaxFetchMostPopular($type){
    var ajaxurl = '/mostpopular/' + $type;
	var myAjax = new Ajax.Request(
        ajaxurl,
        { method: 'get', 
          onSuccess: handleFetchMostPopular, 
          onFailure: function() {alert('Refresh the Page, something happend to the server');} 
        });

    function handleFetchMostPopular(req) {
		$('ajax_food_result').update(req.responseText);
    }
	
}

function showHide($show,$hide1){
  [$show].each(Element.show);
  [$hide1].each(Element.hide);
}