// JavaScript Document

/*西暦設定
----------------------------*/
$.fn.chgYear=function(){
	return this.each(function(){
		var myDate=new Date();
		var nowYear=myDate.getFullYear();
		$(this).html(nowYear);
	});
}

$(function(){
	
	/*全体幅設定
	----------------------------*/
	var contentSize=0;
	$(".contentBlock").each(function(){
		var mySize=$(this).width();
		$(this).attr("stle","width:"+mySize+"px");
		contentSize+=$(this).width();
	});
	$("#page").css("width",contentSize+"px");
	
	
	
	/*ホームボタン
	----------------------------*/
	var box=$('div.btn_home').css({'position':'absolute','left':0})
		$(window).scroll(function(){
			box.css('left',$(document).scrollLeft())
	});


	/*とり
	----------------------------*/
	var myBird=$('div.commonBird').css({'position':'absolute','left':800})
		$(window).scroll(function(){
			myBird.stop().animate({left:$(document).scrollLeft()+800},"slow");
	});
		
	/*Copyright年号自動更新
	----------------------------*/
	$("span",".copyright").chgYear();
		
});
adjTraverser = 1;
