// Cufon
Cufon.replace('.header1',  {
    fontFamily: "optimus"
});


// jQuery
$(document).ready(function(){	
	// jQuery Button
	$( "form input:submit").button();
	
	// Side Menu
	$(".articles li:first-child").css("padding-top", "0");
	$(".articles li:last-child").css("border", "none");
	
	// Left
	$(".gallery, .gallery input[type=text]").addClass('round-top').addClass('round-bottom');
	$(".subcontent2").addClass('round-bottom');
	
	// When a link is clicked
	$("a.tab").click(function () {
		
		// switch all tabs off
		$(".active").removeClass("active");
		
		
		// switch this tab on
		$(this).addClass("active");
		
		// slide all content up
		$(".left .content").slideUp();
		
		// slide this content up
		var content_show = $(this).attr("title");
		$("#"+content_show).slideDown();
		
		// return false
		return false;
	  
	});
});
