jQuery(function(){
	
	
	// flash
	$('#upper #head #swf h1')
		.flash(
			{
				src: './swf/everrising.swf',
				wmode: 'opaque',
				width: 950,
				height: 335
			},
			{
				expressInstall: true
			}
		)
	;
	
	
	// movieSlider
	$("#movieSlider").easySlider({
		continuous: true
	});
	
	
	// Scroll
	$('#dayNews, #listArea').jScrollPane();
	
	
	// toggle
	$("ol.trackList").hide();
	$("p.openBtn").toggle(
		function(){
			$(this).addClass("active");
			}, 
		function () {
			$(this).removeClass("active");
			}
		)
	;
	$("p.openBtn").click(
		function(){
			$(this).next("ol.trackList").slideToggle("slow");
			}
		)
	;

	// colorbox
	$(".accountBtn, .eventBtn").colorbox(
			{
				inline: true,
				href: ".inline"
			}
		)
	;
	
	
	// gallery
	$('#photos')
		.galleryView(
			{
				panel_width: 485,
				panel_height: 300,
				frame_width: 50,
				frame_height: 50,
				overlay_height: 30,
				transition_speed: 400,
				transition_interval: 0,
				show_captions: true,
				fade_panels: false
  		}
		)
	;
	
	
	// ページスクロール
	$('#goTop').click(
		function () {
			$(this).blur();
			$('html,body').animate({ scrollTop: 0 }, 'slow');

			return false;
			}
		)
	;
	
	// blank指定
	$("a.blank, ul#ad a, #link a, #dayNews a").attr("target", "_blank");
	
	
});
