var hotness;var hotness_pinger;var running;var started = 0;var hotness_current_ts = 0;var hotness_ping_url = '/sample/hotness.php';var ping_minutes = 1000;var whichOne;var items = new Array();function hotness_ping() {	//don't do it if user stopped us	if (!started || running) {		var ts_request = new Ajax.Request(			hotness_ping_url, 			{				method: 'get', 				parameters: 'ts=1', 				onComplete: hotness_check_ts			});	}}function hotness_check_ts(orig_request) {	var hotness_new_ts = orig_request.responseText;	if (!started || (hotness_new_ts > hotness_current_ts)) {		hotness_current_ts = hotness_new_ts;		var data_request = new Ajax.Request(			hotness_ping_url, 			{				method: 'get', 				onComplete: hotness_update			});	}}function hotness_update(orig_request) {
	var d = $('veryLatest');
	d.innerHTML = orig_request.responseText;
	items = d.getElementsByTagName('p');
	clearTimeout(hotness_pinger);
	hotness_pinger = setInterval('hotness_ping()', ping_minutes * 60 * 1000);
	whichOne = 0;
	stopthehotness();
	restartthehotness();
	if (started) {
		//new Effect.Highlight(d,{duration:1.5});
	}
	started = 1;
}function dothehotness(){	hotness_ping();}function restartthehotness(){	running = true;	doMeFirst();	hotness = setInterval('doMe()',6000);}function stopthehotness(){	running = false;	clearTimeout(hotness);}function doMeFirst(){	Effect.Appear(items[whichOne]);}function doMe(){	Effect.Fade(items[whichOne]);	if (whichOne == items.length-1) whichOne = -1;	Effect.Appear(items[whichOne+1]);	whichOne++;}function doMeinReverse(){	Effect.Fade(items[whichOne]);	if (whichOne == 0) whichOne = items.length;	Effect.Appear(items[whichOne-1]);	whichOne--;}function nexthotty(){	stopthehotness();	doMe();}function previoushotty(){	stopthehotness();	doMeinReverse();}