$(document).ready(function() {
	$.Juitter.start({
		//searchType:"fromUser", // needed, you can use "searchWord", "fromUser", "toUser"
		//searchObject:"samanthaprabu,nnithinreddy,ssrajamouli,suniltollywood,urstrulyMahesh,iamnagarjuna,tarak9999,ARJUNALLU,allusirish,actorSUMANTH,Actor_Siddharth,ActorMadhavan,HRHLakshmi,geneliad,MsTrishaK,starhansika,Shriya_S,Swati194,VishnuManchu,RanaDaggubati,actor_Nikhil", // needed, you can insert a username here or a word to be searched for, if you wish multiple search, separate the words by comma.
        searchType:"searchWord",
				searchObject:"from:iamNagarjuna OR from:Mammukka OR from:urstrulyMahesh OR from:tarak9999 OR from:Actor_Siddharth OR from:ActorMadhavan OR from:iSumanth OR from:RanaDaggubati OR from:allarinaresh OR from:VishnuManchu OR from:actor_Nikhil OR from:actor_Rahul OR from:iamkrishnudu OR from:ramsayz OR from:vudaykiran OR from:actorsubbaraju OR from:dhanushkraja OR from:simbuhere OR from:kellydorji OR from:itsmemanoj OR from:ileana_dcruz OR from:trishtrashers OR from:geneliad OR from:starhansika OR from:PriyaAnand OR from:richyricha OR from:swati194 OR from:samanthaprabu OR from:LakshmiManchu OR from:Taapsee OR from:dipikaparmar OR from:SindhuraGadde OR from:jenniferkotwal OR from:shrutihaasan OR from:reddysameera OR from:divyaspandana OR from:ssrajamouli OR from:rgvzoomin OR from:devakatta OR from:anandranga OR from:Purijagannadh OR from:selvaraghavank OR from:bvsravi OR from:arvindkrsna OR from:anishkuruvilla OR from:smitapop OR from:anujalltheway OR from:ThisIsDSP OR from:gvprakash OR from:Shobu_ OR from:Chandan Reddy OR from:Sunnygunnam OR from:pcsreeram OR from:skn_puli OR from:idlebrainjeevi OR from:crhemanth OR from:vrindaprasad OR from:AkhilAkkineni8",
		// 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:"en", // 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: "Loading messages...", // 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: 6, // number of tweets to be show - max 100
		readMore: "Read it on 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 
		openExternalLinks:"newWindow", // here you can choose how to open link to external websites, "newWindow" or "sameWindow"
                filter:"sex->*BAD word*,porn->*BAD word*,fuck->*BAD word*,shit->*BAD word*"  // insert the words you want to hide from the tweets followed by what you want to show instead example: "sex->censured" or "porn->BLOCKED WORD" you can define as many as you want, if you don't want to replace the word, simply remove it, just add the words you want separated like this "porn,sex,fuck"... Be aware that the tweets will still be showed, only the bad words will be removed
	});
	$("#aRodrigo").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");									  
		$.Juitter.start({
			searchType:"fromUser",
			searchObject:"mrjuitter,rodrigofante",
			live:"live-120" // it will be updated every 120 seconds/2 minutes
		});
	});
	$("#aIphone").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");									   
		$.Juitter.start({
			searchType:"searchWord",
			searchObject:"iPhone,apple,ipod",
			live:"live-20"  // it will be update every 20 seconds 
		});
	});
	$("#aJuitter").click(function(){
		$(".jLinks").removeClass("on");
		$(this).addClass("on");								  
		$.Juitter.start({
			searchType:"searchWord",
			searchObject:"Juitter",
			live:"live-180" // it will be updated every 180 seconds/3 minutes
		});
	});
        $("#juitterSearch").submit(function(){

									  

		$.Juitter.start({

			searchType:"searchWord",

			searchObject:$(".juitterSearch").val(),
			live:"live-20", // 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("Type a word and press enter");
        });
        $(".juitterSearch").click(function(){
            if($(this).val()=="Type a word and press enter") $(this).val("");
        });
        
        
});
