// JavaScript Document


/*** SWF表示 ***/
function writeFlash( swf , width , height ){
	var htm = "";
	htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
	htm+="        codebase='http://download.macromedia.com/pub/shockwave/";
	htm+="cabs/flash/swflash.cab'";
	htm+="        width   = " + width;
	htm+="        height  = " + height + ">";
	htm+="<param  name    = movie value=" + swf + ">";
	htm+="<param  name    = quality value=high>";
	htm+="<embed  src     = " + swf + " ";
	htm+="        quality = high  ";
	htm+="        width   = "+ width;
	htm+="        height  = " + height;
	htm+="        type    = 'application/x-shockwave-flash' ";
	htm+="        pluginspage='http://get.adobe.com/jp/flashplayer/'>";
	htm+="</embed>";
	htm+="</object>";
	document.write(htm);
}
/*** SWF表示 ***/
function writeFlash2( swf , width , height ){
	var htm = "";
	htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
	htm+="        codebase='http://download.macromedia.com/pub/shockwave/";
	htm+="cabs/flash/swflash.cab'";
	htm+="        width   = " + width;
	htm+="        height  = " + height + ">";
	htm+="<param  name     = 'loop'    value =false>";
	htm+="<param  name    = movie value=" + swf + ">";
	htm+="<param  name    = quality value=high>";
	htm+="<embed  src     = " + swf + " ";
	htm+="        quality = high  ";
	htm+="        width   = "+ width;
	htm+="        height  = " + height;
	htm+="        loop=false  ";
	htm+="        type    = 'application/x-shockwave-flash' ";
	htm+="        pluginspage='http://get.adobe.com/jp/flashplayer/'>";
	htm+="</embed>";
	htm+="</object>";
	document.write(htm);
}

// Easingの追加
jQuery.easing.quart = function (x, t, b, c, d) {
    return -c * ((t=t/d-1)*t*t*t - 1) + b;
};
jQuery(document).ready(function(){
 
    //
    // <a href="#***">の場合、スクロール処理を追加
    //
    jQuery('a[href*=#]').click(function() {
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
            var $target = jQuery(this.hash);
            $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                jQuery('html,body').animate({ scrollTop: targetOffset }, 1500, 'quart');
                return false;
            }
        }
    });
 
});
$(document).ready(function(){
	$(".thmb li img").click(function () { 
	      var imag = $(this).attr("src");
	      //alert(imag);
	 $("#photo").attr("src",imag);
    });


});

$(function() {
	$(".popup").click(function(){
		window.open(this.href, "WindowName","width=680,height=600,resizable=yes,scrollbars=yes");
		return false;
	});
});
$(function () {
	var tabContainers = $('div#tabs > div');
	tabContainers.hide().filter(':first').show();
	$('div#tabs p.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		$('div#tabs p.tabNavigation a').removeClass('selected');
		$(this).addClass('selected');
		return false;
	})
});

