$(document).ready(function(){
	var timer = setInterval('slide()', 5000);
	$('#clouds-1').pan({fps: 30, speed: .5, dir: 'left', depth: 70});
	$('#clouds-2').pan({fps: 30, speed: 1, dir: 'left', depth: 30});
	$('#header .milk, #header .icons a, #column .menu a, .box').css("opacity", .7);
	$('#header .milk, #header .icons a, #column .menu a, .box').each(function() {
		$(this).hover(function() {
			//$(this).css("opacity", 1);
			$(this).stop().animate({opacity: 1}, 300)
		}, function() {
			//$(this).css("opacity", .7);
			$(this).stop().animate({opacity: .7}, 300)
		});
	});
});
function slide(){
	var item_width = $('#headertext li').outerWidth();
	var left_indent = parseInt($('#headertext').css('left')) - item_width;
	$('#headertext:not(:animated)').animate({'left' : left_indent},2000, 'swing', function(){
		$('#headertext li:last').after($('#headertext li:first'));
		$('#headertext').css({'left' : '-960px'});
	});
}
/*

	animate() bug - chrome ??

*/