			$(document).ready(function(){
		
			$('.active_lang').css('color',color);
			
			var loading = setTimeout(Loaded, 0);
			
			function Loaded() {
			
				setTimeout(function(){
				$('#box_1').animate({ backgroundColor: color }, 50);
				$('#box_1').animate({ backgroundColor: '#ffffff' }, 250);
				setTimeout(function(){				
				$('#box_7').animate({ backgroundColor: color }, 50);
				$('#box_7').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_6').animate({ backgroundColor: color }, 50);
				$('#box_6').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_2').animate({ backgroundColor: color }, 50);
				$('#box_2').animate({ backgroundColor: '#ffffff' }, 250);
				setTimeout(function(){
				$('#box_13').animate({ backgroundColor: color }, 50);
				$('#box_13').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_12').animate({ backgroundColor: color }, 50);
				$('#box_12').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_8').animate({ backgroundColor: color }, 50);
				$('#box_8').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_11').animate({ backgroundColor: color }, 50);
				$('#box_11').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_3').animate({ backgroundColor: color }, 50);
				$('#box_3').animate({ backgroundColor: '#ffffff' }, 250);
				setTimeout(function(){
				$('#box_19').animate({ backgroundColor: color }, 50);
				$('#box_19').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_18').animate({ backgroundColor: color }, 50);
				$('#box_18').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_14').animate({ backgroundColor: color }, 50);
				$('#box_14').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_17').animate({ backgroundColor: color }, 50);
				$('#box_17').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_9').animate({ backgroundColor: color }, 50);
				$('#box_9').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_16').animate({ backgroundColor: color }, 50);
				$('#box_16').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_4').animate({ backgroundColor: color }, 50);
				$('#box_4').animate({ backgroundColor: '#ffffff' }, 250);
				setTimeout(function(){
				$('#box_25').animate({ backgroundColor: color }, 50);
				$('#box_25').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_24').animate({ backgroundColor: color }, 50);
				$('#box_24').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_20').animate({ backgroundColor: color }, 50);
				$('#box_20').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_23').animate({ backgroundColor: color }, 50);
				$('#box_23').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_15').animate({ backgroundColor: color }, 50);
				$('#box_15').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_22').animate({ backgroundColor: color }, 50);
				$('#box_22').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_10').animate({ backgroundColor: color }, 50);
				$('#box_10').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_21').animate({ backgroundColor: color }, 50);
				$('#box_21').animate({ backgroundColor: '#ffffff' }, 250);
				$('#box_5').animate({ backgroundColor: color }, 50);
				$('#box_5').animate({ backgroundColor: '#ffffff' }, 250);
				}, 50);
				}, 50);
				}, 50);
				}, 50);				
				}, 50);			
			}
		
			var szachownica = [1,2,3,4,6,8,10,11,12,14,15,16,18,20,22,23,24];
			var timer = setTimeout(Animate, 1000);
			function Animate() {
				$('#box_1').css('background-color','#ffffff');
				$('#box_2').css('background-color','#ffffff');
				$('#box_3').css('background-color','#ffffff');
				$('#box_4').css('background-color','#ffffff');
				$('#box_5').css('background-color','#ffffff');
				$('#box_6').css('background-color','#ffffff');
				$('#box_7').css('background-color','#ffffff');
				$('#box_8').css('background-color','#ffffff');
				$('#box_9').css('background-color','#ffffff');
				$('#box_10').css('background-color','#ffffff');
				$('#box_11').css('background-color','#ffffff');
				$('#box_12').css('background-color','#ffffff');
				$('#box_13').css('background-color','#ffffff');
				$('#box_14').css('background-color','#ffffff');
				$('#box_15').css('background-color','#ffffff');
				$('#box_16').css('background-color','#ffffff');
				$('#box_17').css('background-color','#ffffff');
				$('#box_18').css('background-color','#ffffff');
				$('#box_19').css('background-color','#ffffff');
				$('#box_20').css('background-color','#ffffff');
				$('#box_21').css('background-color','#ffffff');
				$('#box_22').css('background-color','#ffffff');
				$('#box_23').css('background-color','#ffffff');
				$('#box_24').css('background-color','#ffffff');
				$('#box_25').css('background-color','#ffffff');
				var x = szachownica[Math.floor(Math.random()*szachownica.length)]
				var y = szachownica[Math.floor(Math.random()*szachownica.length)]
				var z = szachownica[Math.floor(Math.random()*szachownica.length)]
				$('#box_'+x).animate({ backgroundColor: color }, 2500);
				$('#box_'+x).animate({ backgroundColor: '#ffffff' }, 2500);
				$('#box_'+y).animate({ backgroundColor: color }, 2500);
				$('#box_'+y).animate({ backgroundColor: '#ffffff' }, 2500);
				$('#box_'+z).animate({ backgroundColor: color }, 2500);
				$('#box_'+z).animate({ backgroundColor: '#ffffff' }, 2500);
				timer = setTimeout(Animate, 5000);
			}
			
			$("#slider").wslide({
				width: 700,
				height: 270,
                horiz: true,
				duration: 300
			});
		});
