jQuery(document).ready(function($) {
	$("a.tab").click(function () {  
		// switch all tabs off  
		$(".active").removeClass("active");  
		// switch this tab on  
		$(this).addClass("active");  
		// slide all elements with the class 'content' up  
	    $(".content").hide();  
		// Now figure out what the 'title' attribute value is and find the element with that id.  Then slide that down.  
		var content_show = $(this).attr("title");
		$("#"+content_show).show();
		return false;  
	});		
	//sets the columns to equal height
	var containerheight = $("#container").height();
	$("#side-column").height(containerheight + 120);
	$("input,textarea").focus(function() {
		$(this).removeClass("error");
		var inputValue = $(this).val();
		$(this).val("");
		$(this).blur(function() {
			var newValue = $(this).val()
			if(newValue == ""){
				$(this).val(inputValue);
			}else{
				$(this).val(newValue);
			}
		});
	});
});
