$(function(){
	$('head').append('<style type="text/css">#wrapper{display:none;}</style>');
});
/*スマートフォン振り分け*/
if ((navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') >0) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0 ) {
	document.write('<style type="text/css">#wrapper{display:block !important;} #overlay{display:none !important;}</style>');
	document.write('<script type="text/javascript" src="js/twitter.js"></script>');
} else {
	$('head').append('<style type="text/css">#wrapper{display:none;}</style>');
	document.write('<a href="splash0727.swf" rel="overLayFlash" ver="8,0,0,0" class="effect"></a>');
}
$(document).ready(function(){
	$("#banner").load("banner.html"); //外部HTML読込み
	$("a[href*='#']").easingScroll({ //ページスクロール
	easing: "easeOutQuart",
	duration: 600
	});
	$(document).pngFix(); //IE6対応PNG画像読込み
	$(".youtube").click(function() { //fancybox、youtube表示
		$.fancybox({
		'padding' : 0,
		'autoScale' : false,
		'transitionIn' : 'fade',
		'transitionOut' : 'fade',
		'title' : false,
		'width' : 680,
		'height' : 495,
		'overlayColor'  : '#fff',
		'href' : this.href.replace(new RegExp("watch¥¥?v=", "i"), 'v/'),
		'type' : 'swf',
		'swf' : {
		'wmode' : 'transparent',
		'allowfullscreen' : 'true'
		}
		});
		return false;
	});
	$(".video-player").fancybox({
		'padding'   : 0,
		'autoScale'   : false,
		'transitionIn'  : 'none',
		'transitionOut'  : 'none',
		'titlePosition'  : 'outside',
		'width'  : '500',
		'height'  : '319',
		'overlayColor'  : '#ffffff',
		'overlayOpacity' : 0.5,
		'type' : 'swf',
		'swf' : {
		'wmode' : 'transparent',
		'allowfullscreen' : 'true'
		}
	});
});

