$(function(){
$(".banner_search li").click(function(){
var type = $(this).data("type");
if(type=="sell"){
location.href="/property/grid?sell_from="+$(this).data("from")+"&sell_to="+$(this).data("to");
}
else if(type=="deposit"){
location.href="/property/grid?deposit_from="+$(this).data("from")+"&deposit_to="+$(this).data("to");
}
else if(type=="rent"){
location.href="/property/grid?rent_from="+$(this).data("from")+"&rent_to="+$(this).data("to");
}
else if(type=="area_land"){
location.href="/property/grid?area_land_from="+$(this).data("from")+"&area_land_to="+$(this).data("to");
}
else if(type=="area_exclusive"){
location.href="/property/grid?area_from="+$(this).data("from")+"&area_to="+$(this).data("to");
}
else if(type=="area_total"){
location.href="/property/grid?area_total_from="+$(this).data("from")+"&area_total_to="+$(this).data("to");
}
});
});