$(document).ready(function(){
	
	flashembed('heroFlash',{
		src: 'http://lockpoker.cachefly.net/casino/locknload.swf',
		wmode: 'transparent'
	});
	flashembed('progressiveFlash',{
		src: 'http://lockpoker.cachefly.net/casino/progressivejackpot.swf',
		wmode: 'transparent'
	});
	
	$('#games-feature').hover(
		function(){
			$('#games-overlay, #games-buttons').fadeIn();	
		},
		function(){
			$('#games-overlay, #games-buttons').fadeOut();	
		}
	);
		
	var curFeature = 'table';
	
	$('.slots img').css({display: 'inline', opacity: 0});
	
	setInterval(function(){
		if(curFeature == 'table')
		{
			$('.table img').each(function(i){
				$(this).animate({opacity: 1}, i*500).animate({opacity: 0});
			});
			$('.slots img').each(function(i){
				$(this).animate({opacity: 0}, i*500).animate({opacity: 1});
			});
			curFeature = 'slots';
		}
		else
		{
			$('.table img').each(function(i){
				$(this).animate({opacity: 0}, i*500).animate({opacity: 1});
			});
			$('.slots img').each(function(i){
				$(this).animate({opacity: 1}, i*500).animate({opacity: 0});
			});
			curFeature = 'table';
		}
	}, 10000);
	
})