$(document).ready(function(){ 
	if ($.browser.mozilla)
	{
		var right = ($(window).width() - 980) / 4;
		$("#fixedbox").css("right", right + "px");
	}
	
	function getRecentTransactions ()
	{
		$.ajax({
			async: true,
			url: "_Process/getRecentPulse.php",
			success: function(data, textStatus){
				$("#fixedbox").html(data);
			},
			complete: function () {
				$("#fixedbox").fadeIn(2000);
				t1 = setTimeout(timetodisappear, 10000);
			}
		});
	}
	
	getRecentTransactions ();
	
	function timetodisappear () {
		clearTimeout(t1);
		$("#fixedbox").fadeOut(2000);
		t1 = setTimeout(getRecentTransactions, 60000);
	}
	
	$("#fixedbox").click( function () { $("#fixedbox").fadeOut(2000); });
});
