$(function() {
$('#dernieres_annonces *').tooltip({
	track: true,
	delay: 0,
	showURL: false
});

$('.lang').tooltip({
	track: true,
	delay: 0,
	showURL: false
});

});

$(document).ready(function(){
						   
  $('img[@src$=.png]').ifixpng();
 $('.crea_compte').ifixpng(); 
 $('h4.contact a').ifixpng(); 
 
 $('#div_je_cherche').hide();
 $('#div_je_propose').hide();
 
 $(".listevilles").hide();
 	$(".rac").click(function(){
			 $(this).css("font-weight", "bold");
			 $(this).css("color", "#000000");
			 
    	var cible=$("+ .listevilles",this);
        testvis=$("+ .listevilles:visible",this);
        if(testvis.size()==0){
        	$(".listevilles:visible").hide();
            cible.show();
			 
        }
     });
	 $(".close_listevilles").click(function(){
            $(".listevilles").hide();
         })


$("#critere").hide();
$("a.toggle").click(function(event){
      	$("#critere").slideToggle("normal");
      	return false;
	});

$("#contener_popup").slideDown("slow");
$(".close").click(function(event){ $("#contener_popup").slideUp("slow");return false;
	});

$("#warningbox").click(function(event){ $("#warningbox").slideUp("fast");return false;
	});

$("input[@name='s_a[p_ou_r]']").click(
	function()
	{
		if ($("input[@name='s_a[p_ou_r]']:checked").val() == 'R')
		{
		 	$('#div_je_cherche').show();$('#div_je_propose').hide();
		}
	 	else
		{
		 	$('#div_je_propose').show();$('#div_je_cherche').hide();}
		}
	);
 });


function selectionner (liste)
{
liste.form.submit();
}
