$( document ).ready( function () {
	
	
	// BGM, Video
	
	var mp3;
	var flv;
	
	var path = location.pathname;
	if (path.match('zombie')) {
		mp3 = 'music_momotaro.mp3';
		flv = ['zombie_2.flv', 360, 240, './swf/zombie_2.jpg'];
	} else if (path.match('bitman')) {
		mp3 = 'KubisSong.mp3';
	} else if (path.match('rakugaki.html')) {
		mp3 = 'HelloWorld.mp3';
		flv = ['rakugaki_2.flv', 360, 204, './swf/rakugaki_2.jpg'];
	} else if (path.match('interview')) {
		mp3 = 'music_momotaro.mp3';
	} else if (path.match('developer_1')) {
		mp3 = 'music_momotaro.mp3';
	} else if (path.match('developer_2')) {
		mp3 = 'KubisSong.mp3';
	} else if (path.match('developer_3')) {
		mp3 = 'HelloWorld.mp3';
	}
	
	if (mp3) {
		var flashvars = {
			mp3: mp3
		};
		var params = {
			wmode: "transparent"
		};
		var attributes = {};
		
		swfobject.embedSWF('./swf/bgm.swf', 'bgm_controler', "48", "54", "6", "./swf/expressInstall.swf", flashvars, params, attributes);
	}
	
	if (flv) {
		var height = flv[2] + 28;
		var flashvars = {
			flv: flv[0],
			movX: flv[1],
			movY: flv[2],
			img: flv[3]
		};
		var params = {
			wmode: "transparent"
		};
		var attributes = {};
		
		swfobject.embedSWF('./swf/video.swf', 'spec_image', flv[1], height, "8", "./swf/expressInstall.swf", flashvars, params, attributes);
	}
	
	
	// controler
	
	$( '#right_pillar ul' ).scrollFollow( {
		relativeTo: 'bottom',
		offset: 220,
		container: 'body_container'
	} );
	
	$( "a[href^='#']" ).easingScroll( {
		easing: "easeOutQuart",
		duration: 800
	} );
	
	
} );

