
$(document).ready(function(event){
	

	$(".trend").click(function(){
		$.post("/index/twitter/", { term: $(this).attr('title') },
		function(data) {
			$("#tweets").html(data);
		});
		
	});
	
	$("#servnav a").click(function(event){
		event.preventDefault();
		$(".service").css("display", "none");
		$("#" + this.id + "div").fadeIn('1200');
	});
});

$(function() {
		$( "#slider" ).slider({
			value:200,
			min: 200,
			max: 1000,
			step: 100,
			slide: function( event, ui ) {
				$( "#amount" ).val( "$" + ui.value );
			}
		});
		$( "#amount" ).val( "$" + $( "#slider" ).slider( "value" ) );
	});
	
$(function() {
		$( "#ser" ).buttonset();
	});

