/* ==

　初期設定

============================================================================================================= */

/* ==

　ページ読込み時の処理

============================================================================================================= */
jQuery(function(){


	//フォントサイズの設定
	if(!jQuery.cookie("fontSize")){
		setFontsize("medium");
	}else{
		var fs = jQuery.cookie("fontSize");
		//alert(fs);
		setFontsize(fs);
	}
}); 



/* ==

　フォントサイズの設定

============================================================================================================= */
function setFontsize(chgSize){


	if(chgSize == "medium"){
		jQuery("#contentsWrapper").removeAttr("class");
		jQuery("#footer").removeAttr("class");
		jQuery.cookie('fontSize', 'medium', { path:'/', expires:30 });
		jQuery("#fsize_m > a > img").attr("src", "common/img/btn_fontSizeM_now.gif");
		jQuery("#fsize_l > a > img").attr("src", "common/img/btn_fontSizeL_of.gif");
	}else{
		jQuery("#contentsWrapper").removeAttr("class");
		jQuery("#contentsWrapper").addClass("fontSize_l");
		jQuery("#footer").removeAttr("class");
		jQuery("#footer").addClass("fontSize_l");
		jQuery.cookie('fontSize', 'large', { path:'/', expires:30 });
		jQuery("#fsize_m > a > img").attr("src", "common/img/btn_fontSizeM_of.gif");
		jQuery("#fsize_l > a > img").attr("src", "common/img/btn_fontSizeL_now.gif");
	}
}

/* ==

　画像の差し替え

============================================================================================================= */
$(function(){
		$("li.fSize > a > img").mousemove(function(){
			if("(img[src$='_of.'])")
			{
			this.src = this.src.replace('_of.', '_o.');
			}
		})
		$("li.fSize > a > img").mouseout(function(){
			if("(img[src$='_o.'])")
			{
			this.src = this.src.replace('_o.', '_of.');
			}
		})
});



