// Font Replacement
Cufon.replace('header span');
Cufon.replace('#main h1');
Cufon.replace('#search_panel h4');
Cufon.replace('#twitter');
Cufon.replace('nav');
Cufon.replace('#footer-news h5');
Cufon.replace('#contact_form_column h3');
Cufon.replace('#footer-news span');
Cufon.replace('#login-wrap h1');
Cufon.replace('#staff-member-name');
Cufon.replace('.property_overview_listing h4');
Cufon.replace('#rent h2');
Cufon.replace('#property_details h3');
Cufon.replace('#latest_news_container h3');

//Tabbed content on the property details page
$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});

