function ash_qs_hook()
{
  var x_home = "http://www.immotop.lu/libs/ash/";	
   
  fcity = $('input[name="f[city]"]').eq(0).width(226);
  fcountry = $('select[name="f[country]"]').eq(0).width(240);  
  
  fcity.show().prev().prev().show();

  p1 = $('#outside_1').parent();
  p2 = $('#outside_2').parent();  
  p3 = $('#outside_3').parent();    
  
  $('#outside_1').next().remove();
  $('#outside_1').remove();

  $('#outside_2').next().remove();
  $('#outside_2').remove();
  
  $('#outside_3').next().remove();
  $('#outside_3').remove();

  $('#outside_5').next().remove();
  $('#outside_5').remove();
  
  $('#outside_8').next().remove();
  $('#outside_8').remove();
  
  $('#outside_9').next().remove();
  $('#outside_9').remove();
  
  $('#outside_10').next().remove();
  $('#outside_10').remove();
  
  xo4 = $('#outside_4');
  xo6 = $('#outside_6');
  xo7 = $('#outside_7');  
   
  xl4 = xo4.next(); 
  xl6 = xo6.next();
  xl7 = xo7.next();  
  
  xl4.detach();
  xl6.detach();
  xl7.detach();  

  xo4.detach();
  xo6.detach();
  xo7.detach();  
  
  p1.append(xo4);
  p1.append(xl4);  
  p2.append(xo6);
  p2.append(xl6);  
  p3.append(xo7);
  p3.append(xl7);  
  
  p1.width(100);
  p2.width(100);
  p3.width(100);  

  fcountry.change( function() { fcity.focus(); } );
    
  $('form[name="search1"]').submit(function()
  {
    if ($('#Type_sale1').attr('checked'))
      $('input[name="f[Type]"]').val('sale');
    else
      $('input[name="f[Type]"]').val('rent');	
    return true; 
  });

  hcity_ac(fcity, fcountry, null);  

} // ash_qs_hook()

