// Cufon
Cufon.replace('#header_top h1')
('.page_left h2', {fontFamily: 'swisslight'})
('#content_home .page_left h2', {fontFamily: 'swissthin'})
//('#nav a', {hover: true})
('#nav li', {fontFamily: 'swissbold', hover: true});

// jQuery functions
$(document).ready(function()
{
	// cottages popup on hover
	$('#cottage_nav_mashmans').hover(function(){
		$('#cottage_preview_ms').addClass("show");
	}, function() {
		$('#cottage_preview_ms').removeClass("show");
	});

	$('#cottage_nav_maltmans').hover(function(){
		$('#cottage_preview_mm').addClass("show");
	}, function() {
		$('#cottage_preview_mm').removeClass("show");
	});

	$('#cottage_nav_ob').hover(function(){
		$('#cottage_preview_ob').addClass("show");
	}, function() {
		$('#cottage_preview_ob').removeClass("show");
	});

	$('#cottage_nav_stillmans_hover').hover(function(){
		$('#cottage_preview_sm').addClass("show");
	}, function() {
		$('#cottage_preview_sm').removeClass("show");
	});

	$('#cottage_nav_dh').hover(function(){
		$('#cottage_preview_dh').addClass("show");
	}, function() {
		$('#cottage_preview_dh').removeClass("show");
	});

	$('#cottage_nav_garden').hover(function(){
		$('#cottage_preview_gc').addClass("show");
	}, function() {
		$('#cottage_preview_gc').removeClass("show");
	});

	// validate the contact form when it is submitted
	if ($('#contact_form').length)
	{
		$("#contact_form").validate();
	};

});
