jQuery(function ($) {

checkHash();

	function checkHash() {
		var thisUrl = window.location;
		thisUrl = thisUrl.toString();
		var checkContact = thisUrl.indexOf("#contactForm");
		var checkAppt = thisUrl.indexOf("#appointmentForm");
if(checkContact > -1) {
	$('.contactButton').trigger("click");		
} else if (checkAppt > -1){
	$('.appointmentButton').trigger("click");	}}
				 });
