function insteadDateText(inorout){
	if(inorout=="in"){
		document.getElementById("check-in-date").focus();
	}else{
		document.getElementById("check-out-date").focus();
	}
}


function checkEmail(email) {
	var re = new RegExp("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$");
	if (!email.match(re)) {
		alert('Please provide a valid email address');
		return false;
	}
	return true;
}

function clearEmail(){
	var email = $.trim($("#email").val());
	var re = new RegExp("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$");
	if (!email.match(re)) {
		//alert('Please provide a valid email address');
		$("#email").val("");
	}
}

function resetEmailInfo(){
	var email = $.trim($("#email").val());
	var re = new RegExp("^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$");
	if (!email.match(re)) {
		$("#email").val("Enter email address");
	}
}


$(document).ready(function(){
	
	$(".gallery_imgs a[rel^='prettyPhoto']").prettyPhoto({
		animation_speed:'normal', 
		theme:'facebook', 
		slideshow:6000, 
		autoplay_slideshow: true,
		callback: function(){
		}
	});

});

