
Cufon.replace(".content-inner h3,.sections h3,.clients-sections h3,.third h3,.sidebar-section h3,.video-slider .slide .copy h3,.news h4,.sidebar-inner-section h4,.sidebar-inner-section h4,.content-inner h2, .latest-blog-post h4,  h2.sd-h2", { fontFamily: 'Lisboa Sans OSF' });

Cufon.replace(".caption h1, .green-box-inner h1, .caption h2,  .green-box-inner h2, h3.sd-h3,.content-inner h1, ",  { fontFamily: 'Lisboa OSF Light' });

function equalHeight(group) {
    var tallest = 0;
    group.each(function() {
        var thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

$(document).ready(function() {

    $(".autoclear").click(function() {
        if ($(this).val() == $(this).attr('defaultValue')) $(this).val("");
    });
    $(".autoclear").blur(function() {
        if ($(this).val() == "") $(this).val($(this).attr('defaultValue'));
    });
    
    $(".main-menu > li:not(:first)").hover(
        function() {
            $(this).addClass("hover");
        },
        function() {
            $(this).removeClass("hover");
        }
    );

    equalHeight($(".third .third-bottom"));
    equalHeight($(".row-1 .section-bottom"));
    equalHeight($(".row-2 .section-bottom"));

});

/* Enquiry Lightbox  */
$(document).ready(function(){
	
		$("a.enquire-button").colorbox({
			iframe: true,
			innerWidth: 725,
			innerHeight: 520
		});


		$("a.contact-link").colorbox({
			iframe: true,
			innerWidth: 725,
			innerHeight: 520
		});
		
		$("a.book-a-tour").colorbox({
			iframe: true,
			innerWidth: 725,
			innerHeight: 520
		});		
		

		$("a.newsletter-signup").colorbox({
			iframe: true,
			innerWidth: 725,
			innerHeight: 290
		});		


		$("a.video-link").colorbox({
			iframe: true,
			innerWidth: 600,
			innerHeight: 500
		});	
		
		$("a.get-directions").colorbox({
			iframe: true,
			innerWidth: 618,
			innerHeight: 528
		});		
					
	
});

