
function getFeaturedRecipes(valIdLang)
{
    $.get(baseUrl + 'index_utils.php?action=get_featured_recipes&r_idlang='+valIdLang,
      function(data){
        $('#featured-recipe-list').html(data);
      });
}

function  getRecommendedRestaurant( selFieldId,excluded ){
      $.ajax({url : baseUrl + 'index_utils.php?ajax=true&action=get_recommended_resto',
               'type' : 'POST',
               'data' :'country_id='+ $("#"+selFieldId).val()+'excluded'+excluded,
			   beforeSend:function(){
							$("#recommended_progress").html("Loading...");
						  },
               success: function(data){
               	            $("#recommended_progress").html("");
							$("#recommended_list").html(data.split('&&&###&&&')[0]);

                            entryCount = data.split('&&&###&&&')[1];
                            for(i=0; i<entryCount; i++)
                                $('#recommended-slideshow-'+i).cycle();
						}
            });
}
function getSelectedRecommended(country){
           $('#country_recommended').val(country);
}
function updateRestoLocationListings()
{
   clArray = new Array();
   $('input[name*=cuisine_list]:checked').each(function(){
       clArray.push(this.value);
   })

   cl = clArray.join();
   returnUrl = urlSegment + '/' + getObj('location_lookup').value + ".html";
   sortby = getObj('sortby').value;

   params = "action=update_location_listing&field_index="+locFldIndex+"&field_value="+locFldValue;
   params+= "&cl="+cl+"&page="+currentPage+"&return_url="+returnUrl+'&sortby='+sortby;

   $.ajax({url  : baseUrl + "ajax_utils/index_utils.php",
           type : "POST",
           data : params,
           success : function(response){
              $('#restaurant-listings').html(response);
            }
          })

}

