$(document).ready(function() {

	// Get Date For Form Processor
	var getDate=new Date();
	var getYear=getDate.getYear();
	if (getYear < 1000) getYear+=1900;
	var getDay=getDate.getDay();
	var getMonth=getDate.getMonth()+1;
	if (getMonth<10) getMonth="0"+getMonth;
	var getCurrentDay=getDate.getDate();
	if (getCurrentDay<10) getCurrentDay="0"+getCurrentDay;
	theDate = +getMonth+"/"+getCurrentDay+"/"+getYear;
	
	if ($("#contact-page")) {
		$("<input name='Date' type='hidden' style='display:none;' id='Date' value='"+theDate+" ' />").insertBefore("#contact-form p");
	}
	
	$('#slideshow').cycle({
		fx: 'fade',
		timeout: 2000
	});
	
	$("#contact-form").submit(function() {
		if ($("#email").val() != $("#email2").val()) {
			alert("Your email addresses do not match. Please fix these before continuing.");
			return false;
		}
	});
});