var iOS_flg = 0;

if (navigator.userAgent.match(/iPad/i) != null || navigator.userAgent.match(/iPhone/i) != null || navigator.userAgent.match(/iPod/i) != null){
	iOS_flg = 1;
}

$(function(){
	if($.cookie('fla_play') || iOS_flg){
		$.fn.supersized.options = {  
			startwidth: 1024,  
			startheight: 768,
			vertical_center: 1,
			slideshow: 1,
			navigation: 0,
			transition: 1,
			pause_hover: 0,
			slide_counter: 1,
			slide_captions: 1,
			slide_interval: 6000  
		};		 
		$('#supersize').supersized();
		
		$("#flashmovie").hide();
		$("#contents").show();
		
	}else{
	
		$('#loading').hide();
		$("#contents").hide();
		$("#supersize").hide();
		
		$.cookie('fla_play', '1');
	}
	

	
});
