/*--------------------------------------------------*/
/* Contact - Cufon*/
/*--------------------------------------------------*/

$(document).ready(function() {				   

	Cufon.replace('#navigationMain li a.parent, .button a, .sidebarButton a, #contact_form button, .buttonSplash a, .splashSubpageButton a, #splashControls a, #navigationSubpage h2, #newsletter h2, #newsletter button, #contentSubpage h1, #contentSubpageGallery h1, #contentSubpageFull h1, .moduleTitle');
	
	Cufon.replace('#navigationSubpage li, .heading', {
		hover: true
	});	
	
	Cufon.replace('.sp-list-text h3', {
		hover: true
	});		

});

/*--------------------------------------------------*/
/* Contact - Form*/
/*--------------------------------------------------*/


$(document).ready(function() {
		$('#newsletter_form').ajaxForm(function(data) {
			if (data==1){alert('Please enter a valid email address.')}
			else if (data==0){alert('Your subscription has been submitted.'); $('#newsletter_form').resetForm();}
		});
});	


$(document).ready(function() {
		$('#contact_form').ajaxForm(function(data) {
			if (data==3){alert('Please fill out all fields.')}
			else if (data==2){alert('Your enquiry has been successfully submitted. We will get back to you shortly.'); $('#contact_form').resetForm();}
		});
});	



$(document).ready(function() {
		$('.in-form').ajaxForm(function(data) {
			if (data==1){alert('Please fill out the required fields to submit your enquiry.')}
			else if (data==0){alert('Your enquiry has been submitted. We will get back to your shortly.'); $('.in-form').resetForm();}
		});
});

