$(document).ready(function() {
	$.Juitter.start({
		searchType:"searchWord", // needed, you can use "searchWord", "fromUser", "toUser"
		searchObject:"MyVegasScene", // optional, but it will search for the default value on the juitter config, you can insert a username here or a word to be searched.
		live:"live-0.2", //optional, disabled by default, the number after "live-" indicates the time in minutes to wait before request the Twitter API for updates.
		lang:"en" // optional, restricts tweets to the given language, example: "en" = english, "pt" = portuguese, "it" = italian, "es" = spanish, find out more about the ISO 639-1 languages code on http://en.wikipedia.org/wiki/ISO_639-1.
	});	
	$("#aRodrigo").click(function(){
		$.Juitter.changeRequest({
			searchType:"fromUser",
			searchObject:"rodrigofante",
			live:"live-10", // it will be updated every 10 minutes
			elementId:this.id  // this will be used to highlight selected links adding a class "on" - on it, and removing all the "on" classes for all others elements containing also the class "jLinks", only supported by the changingRequest method.
		});
	});
	$("#aItalia").click(function(){
		$.Juitter.changeRequest({
			searchType:"searchWord",
			searchObject:"Italia",
			live:"live-1", // it will be update every minute
			lang:"it", 
			elementId:this.id
		});
	});
	$("#aAustralia").click(function(){
		$.Juitter.changeRequest({
			searchType:"searchWord",
			searchObject:"Australia",
			live:"live-0.2",  // it will be update every 12 seconds - 60 seconds * 0.2 = 12
			lang:"en", 
			elementId:this.id
		});
	});
	$("#aJuitter").click(function(){
		$.Juitter.changeRequest({
			searchType:"searchWord",
			searchObject:"Juitter",
			live:"live-2", // it will be updated every 2 minutes
			elementId:this.id
		});
	});
});
