function moveBalloon() {
	var phi = 0,
		int = 2 * (Math.PI) / 7000;

	function cool() {
		phi = (phi >= 2 * (Math.PI)) ? 0 : (phi + int);
		var $m = 600 - 600 * Math.cos(phi);
		var $n = 100 - 460 * Math.sin(phi);
		$("#yellow_balloon").animate({
			marginLeft: $m + 'px',
			marginTop: $n + 'px'
		}, 1, cool);
	}
	cool();
}


function animateBird(){
	$('#flying_bird').animate(
	{
	left: $(document).width() + 150,
	
	}, 28000, function(){
		$('#flying_bird').css({left:'-150px'});
		}
	)
	setTimeout('animateBird()',1000);
}


$(document).ready(function(){
	setTimeout('animateBird()', 10000);
	moveBalloon();
});












