$(document).ready(function() {

	$("a[rel], div[rel]").overlay().css('cursor','pointer');
	/*
	$("#tempCloseContactForm").click(function(){
	    $("#contactForm").css('display','none');
	});
	$("#tempCloseBienForm").click(function(){
	    $("#bienForm").css('display','none');
	});
	$("#tempCloseBienForm").click(function(){
	    $("#bienForm").css('display','none');
	});
	*/
	
	
	// Expand Panel
	/*
	$("#openContactForm, #footerContact, details_contact_top, details_contact_bottom").click(function(){
		
	    alert("contact form");
	});
	/*
	$("#footerContact").click(function(){
	  	$("#toggle a").toggle();
		$('html, body').animate({scrollTop:0}, 'slow');
		$("div#panel").slideDown("slow");
	  	return false;
	});
	$("#details_contact_top").click(function(){
	  	dossier = $("#details_contact_top").attr('data-link');
		$("#toggle a").toggle();
		$('html, body').animate({scrollTop:0}, 'slow');
		$("div#panel").slideDown("slow");
		$("#dossier").val('Ref '+dossier);
	  	return false;
	});
	$("#details_contact_bottom").click(function(){
	  	dossier = $("#details_contact_bottom").attr('data-link');
		$("#toggle a").toggle();
		$('html, body').animate({scrollTop:0}, 'slow');
		$("div#panel").slideDown("slow");
		$("#dossier").val('Ref '+dossier);
	  	return false;
	});
	// Collapse Panel
	$("#close").click(function(){
	  	$("div#panel").slideUp("slow");
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		// $("#toggle a").toggle();
	});		
	*/
});
