function pulseRandomObjAfterTimeout() {

	if(!$.browser.msie) {
	
		var timeouts = getTimeouts();
		var index = Math.floor(Math.random()*timeouts.length);
		setTimeout("pulseRandomObj()", timeouts[index]);
	}
}
function pulseRandomObj() {
	
	var objects = getObjects();
	var index = Math.floor(Math.random()*objects.length)
	pulseObj(objects[index]);
}

function pulseObj(obj) {

	$(obj).fadeIn('fast', function() {
		$(obj).fadeOut('slow', function() {
			
			pulseRandomObjAfterTimeout();
		});
	});
}

function pusleSplashButton() {
	
	var obj = document.getElementById("splashButtonGlow");
	$(obj).fadeIn('slow', function() {
		$(obj).fadeOut('slow', function() {
		
			pusleSplashButton();
		});
	});
}

function getObjects() {
	
	var objects =  new Array();
	
	objects[0] = getRadio();
	objects[1] = getHelmet();
	objects[2] = getGun();
	objects[3] = getBelt();
	
	return objects;
}

function getTimeouts() {

	var timeouts =  new Array();
	
	timeouts[0] = 1100;
	timeouts[1] = 1500;
	timeouts[2] = 900;
	timeouts[3] = 700;
	timeouts[4] = 500;
	timeouts[5] = 500;

	return timeouts;
}

function getRadio() {
	return document.getElementById("astroRadio");
}
function getHelmet() {
	return document.getElementById("astroHelmet");
}
function getGun() {
	return document.getElementById("astroGun");
}
function getBelt() {
	return document.getElementById("astroBelt");
}
