/*valido los valores de precios ingresados para la busqueda de inmuebles*/function validarFormBusqueda() {   var valor_min = document.getElementById("qry_precio_min").value;  var valor_max = document.getElementById("qry_precio_max").value;  var divError = document.getElementById("div_error");  if(isNaN(valor_min) || isNaN(valor_max) || parseInt(valor_min) >= parseInt(valor_max) ){    divError.style.display = "block";    divError.innerHTML = "El valor ingresado en precio mínimo debe ser menor al ingresado en precio máximo y ambos deben ser valores numéricos válidos";    return false;  }else{    divError.style.display = "none";    return true;  }}$(function() {  // initialize scrollable with mousewheel support  $(".scrollable").scrollable({    vertical: true,    mousewheel: true  });  $("#accordion").tabs("#accordion div.pane", {    tabs: 'h2',    effect: 'slide',    initialIndex: null  });  $(".slidetabs").tabs(".images > div", {    // enable "cross-fading" effect    effect: 'fade',    fadeOutSpeed: "slow",    // start from the beginning after the last tab    rotate: true  // use the slideshow plugin. It accepts its own configuration  }).slideshow();  $(".slidetabs").data("slideshow").play();  $('.hidden_form').hide();  $('#form_busqueda').show();});$('#home-form a').click(function(event){  event.preventDefault();  $('.hidden_form').hide();  $('.home-qry-tab').removeClass('home-qry-tab-selected');  $(this).addClass('home-qry-tab-selected');  $('#'+$(this).attr('form_to_show')).show();});
