jQuery(document).ready(function($) {
	
	$(".tweet").tweet({
		join_text: null,
		username: "elmsoftware",
		avatar_size: null,
		count: 1,
		auto_join_text_default: "we said,", 
		auto_join_text_ed: "we",
		auto_join_text_ing: "we were",
		auto_join_text_reply: "we replied",
		auto_join_text_url: "we were checking out",
		loading_text: "loading tweets..."
	});
	
	var VISITOR_TYPE_NM = "VISITOR_TYPE_NM";
	var options = { path: "/", expires: 200 };
	
	var visitor_type =($.cookie(VISITOR_TYPE_NM));
	
	if (visitor_type == "pro") {
		
		$("#couple").removeClass("active");
		$("#pro").addClass("active");
		
		$("#carousel").scrollTo("#page-pro", 0, {axis:"x"});
		
	};
	
	$("#tabs a").click(function() {
															
		$("#tabs a").removeClass("active");
		$(this).addClass("active");
		
		$.cookie(VISITOR_TYPE_NM, $(this).attr("id"), options);
		$("#carousel").scrollTo("#page-" + $(this).attr("id"), 1800, {axis:"x"});
	
		return false;
		
	});	

})  
