// Move Bubble Function
function move_bubble(bubble) {
	var x_neg_pos 	= (Math.floor(Math.random()*2) % 2 > 0) ? '-' : '+';
	var x_px 		= Math.floor(Math.random()*101);
	var y_neg_pos 	= (Math.floor(Math.random()*2) % 2 > 0) ? '-' : '+';
	var y_px 		= Math.floor(Math.random()*101);
	if(bubble.style.left.length > 0) {
		$(bubble).animate({"left":x_neg_pos+"="+x_px+"px", "top":y_neg_pos+"="+y_px+"px"}, 750, "swing");
	} else {
		$(bubble).animate({"right":x_neg_pos+"="+x_px+"px", "top":y_neg_pos+"="+y_px+"px"}, 750, "swing");
	}
}

// Apply Bubble Events
$(function(){
	var bubbles = $('.temp_bubble');
	for(var i=0;i<bubbles.length;i++) {
		bubbles[i].onmouseover = function(){
			move_bubble(this);
		}	
	}
});