// JavaScript Document




$(window).ready(function () {
	
	

	$('.tb').each(function(){});
	
		$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 
	
	
	
	if(Math.floor(Math.random()*11) % 2 == 1){
		$('body').addClass('twinkle');
	}
	
	
	
	
	$('.tb').each(function(){
		$(this).click(function(e){
				e.preventDefault();
				window.open(this.href);
		});
	
	});
	
	animate_shooting();
	
});



var shootingSpeed = 10000;

var shoot_movexBy = 1500;
var shoot_moveyBy = -300;
var shoot_current_x = 0;
var shoot_current_y = 0;

function animate_shooting(){
	
	shoot_current_x = shoot_current_x + shoot_movexBy;
	shoot_current_y = shoot_current_y + shoot_moveyBy;
	
	$('#shooting-wrapper').animate(	{	backgroundPosition: shoot_current_x + "px " + shoot_current_y + "px"},
	
										{	duration:shootingSpeed,
											easing:'linear',
										 	complete: function() {
												animate_shooting();
										 	}
											
										
										});
	
}











