$(document).ready(function() {
	$.Juitter.start({
		searchType:"searchWord", // needed, you can use "searchWord", "fromUser", "toUser"
		//searchObject:"EUA,morrem,gripe,mortos,terrorista,terrorismo,atentado,ataque,terremoto,emergencia,feridos,nuclear", // needed, you can insert a username here or a word to be searched for, if you wish multiple search, separate the words by comma.
        searchObject:"unhas,odeio,adoro,lindo,delicia",
        //searchObject:"'true blood',vampiros,vampiro,sangue,putaria,sexo,nua,lobisomem,lobisomens",
		// The values below will overwrite the ones on the Juitter default configuration. 
		// They are optional here.
		// I'm changing here as a example only
		lang:"pt", // restricts the search by the given language
		live:"live-15", // the number after "live-" indicates the time in seconds to wait before request the Twitter API for updates.
		placeHolder:"juitterContainer", // Set a place holder DIV which will receive the list of tweets example <div id="juitterContainer"></div>
		loadMSG: "Carregando...", // Loading message, if you want to show an image, fill it with "image/gif" and go to the next variable to set which image you want to use on 
		imgName: "loader.gif", // Loading image, to enable it, go to the loadMSG var above and change it to "image/gif"
		total: 7, // number of tweets to be show - max 100
		readMore: "Leia no Twitter", // read more message to be show after the tweet content
		nameUser:"image" // insert "image" to show avatar of "text" to show the name of the user that sent the tweet 
	});	
	
	
		$("#aTerra").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");									  
		$.Juitter.start({
			searchType:"fromUser",
			searchObject:"terranoticiasbr",
			live:"live-3" // it will be updated every 120 seconds/2 minutes
		});
	});
	
		$("#aUOL").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");									  
		$.Juitter.start({
			searchType:"fromUser",
			searchObject:"UOLNoticias",
			live:"live-3" // it will be updated every 120 seconds/2 minutes
		});
	});





	$("#aPop").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");									   
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"unhas,odeio,adoro,lindo,delicia",
			live:"live-15"  // it will be update every 20 seconds 
		});
	});
	$("#aAcidente").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"acidente,incendio,desmoronamento,desaba,assassinato,atropelado,atropelamento,bombeiros,ambulancia",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	

	
			$("#aXin").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"puta,caralho,porra,merda,otario,foda,fudeu,bosta,cu,puto,fudido,fudida,ferrado,ferrada,pqp,ferrei",
			live:"live-15" // it will be updated every 180 seconds/3 minutes
		});
	});
	

	
			$("#aTrueBlood").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"all",
			searchObject:"trueblood",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
	
		$("#aCam").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"twitcam.com",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
			$("#aPic").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"twitpic.com",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
			$("#aFrog").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"yfrog.com",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
			$("#aBom").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"Bom dia,bomdia",
			live:"live-15" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
			$("#aPhoto").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"tweetphoto.com",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	

			$("#aOdeio").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"odeio",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
				$("#aAdoro").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"adoro",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
				$("#aFome").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"fome",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
		

			$("#aNoite").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"boa noite,boanoite",
			live:"live-15" // it will be updated every 180 seconds/3 minutes
		});
	});
		

	
	
			$("#aForm").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"4ms.me",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
		
	
	

	
			$("#aConfronto").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"confronto,rebeliao,manifestantes,exercito,policia,militares,protesto,feridos,mortos,guerra",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
	
			$("#aPremonicao").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"premonicao,sonhei,videncia,clarividencia,pressagio,profecia,premonicoes",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	

	
	
			$("#aTerremoto").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"all",
			searchObject:"terremoto,earthquake,tsunami,terremotos,earthquakes,temblor,terramoto,sismo,tremores",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
	
			$("#aEnchente").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			lang:"pt",
			searchObject:"enchente,enchentes,inundacao,tempestade,tempestades,chuvas,tufao,temporal,ciclone,furacao",
			live:"live-3" // it will be updated every 180 seconds/3 minutes
		});
	});
	
	
	
	

	
	
	// funcao search
	  $("#juitterSearch").submit(function(){

		$.Juitter.start({

			searchType:"searchWord",
			lang:"all",
			searchObject:$(".juitterSearch").val(),
			live:"live-3", // it will be updated every 180 seconds/3 minutes
			filter:"sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*"
		});
                return false;

	});
        $(".juitterSearch").blur(function(){
            if($(this).val()=="") $(this).val("Digite e depois dê enter");
        });
        $(".juitterSearch").click(function(){
            if($(this).val()=="Digite e depois dê enter") $(this).val("");
        });
    //fim da funcao search

	
	
	
	
});
