 $(function() {
      $('#tips_div [title]').tipsy({trigger: 'focus', gravity: 's'});
    });
/*	
function bb_whois(){	
$.ajax({ 
url: "bb_bar.php?act=bb_whois", 
cache: false, 
dataType: "json",
success: function(html){ 

$("#bb_whois").html(html);  
		}, 
	}); 
}
*/
function load_tracker(){ 
$.ajax({ 
url: "bb_bar.php?act=gettrack", 
cache: false,
dataType: "json", 
success: function(html){ 

$("#bb_tracker").html(html);  
		}, 
	}); 
} 
/*
function load_chat(){ 
	$.ajax({ 
	url: "bb_bar.php?act=getchat", 
	cache: false,
	dataType: "json", 
	success: function(html){ 

	$("#bb_chatwindow_txt").html(html);  
		}, 
	}); 
} 
function sendchat() { 
$("#text").keyup(function(event){   
	if(event.keyCode == 13){    
	$("#submitbutton").click();   } }); 

// If submit button has been clicked 
$("#submitbutton").click(function(){ 

// Let's get what user has entered to the text field 
var message = $("#text").val(); 

// Now let's post this text 
$.post("bb_bar.php?act=sendchatmessage", { 
	text: message 
}); 

// When user's text is posted 
// Remove it from the text field     
$("#text").attr("value", ""); 
return false; 
}); 
}; 
*/
// setInterval(load_messages, 500) loads our posts every 0.5 seconds 
// setInterval(load_users, 5000) loads our users every 5 seconds 
//alleen als bb_tracker op de pagina staat
if ($("#bb_tracker").length > 0)
setInterval(load_tracker, 30000);     
//setInterval(bb_whois, 5000); 
//setInterval(load_chat, 10000); 

