function afficheMaxi(chemin)
{
	i1 = new Image();
	i1.src = chemin;

	html = '<HTML><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0  ><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+5,document.imageTest.height+60)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=yes, width=500, height=500, left=250, top=125');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}

$(document).ready(function(){
    $("#clear-me").clearInput();
  });
 $(document).ready(function(){
    $("#clear-ref").clearInput();
  });

function showdiva(diva)
{
    document.getElementById(diva).style.display = 'block';
}

  function hidediva(diva)
{
    document.getElementById(diva).style.display = 'none';
}

  function hidedivaandwait(diva,Stime)
{
    showdiva(diva);
    setTimeout('hidediva("' + diva + '")',Stime * 5000);
}
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'last',
        initCallback: mycarousel_initCallback
    });
});

  $(document).ready(function(){
 
	$('#body').fadeIn(1500);
 
});

function Contact()
{
       window.open('contact-agence-immobiliere-taroudant.html',"pop1","width=450,height=600,scrollbars=yes");
}
function Prpzbien()
{
       window.open('proposez-un-bien-agence-immoconst.html',"pop1","width=450,height=570,scrollbars=yes");
}
function PanierImmo()
{
       window.open('votre-panier-immobiliere.html',"pop1","width=800,height=570,scrollbars=yes");
}
    $(document).ready(function() {
		$("#footer-bar").jixedbar();
    }); 


