
/* 文字サイズの調整 */
function fontsize_chenge(fontsize,lang){
	
	var img_path;
	
	if(lang == "en"){
		img_path = 'img_en';
	}else if(lang == "kr"){
		img_path = 'img_kr';
	}else{
		img_path = 'img';
	}
	
	$("#fontsize_l").attr('src','/'+ img_path +'/fontsize0_l.png');
	$("#fontsize_m").attr('src','/'+ img_path +'/fontsize0_m.png');
	$("#fontsize_s").attr('src','/'+ img_path +'/fontsize0_s.png');
	
	if(fontsize == "l"){
		$("body").css('font-size',"14px");
		$("#fontsize_l").attr('src','/'+ img_path +'/fontsize_l.png');
	}else if(fontsize=="m"){
		$("body").css('font-size',"12px");
		$("#fontsize_m").attr('src','/'+ img_path +'/fontsize_m.png');
	}else if(fontsize=="s"){
		$("body").css('font-size',"11px");
		$("#fontsize_s").attr('src','/'+ img_path +'/fontsize_s.png');
	}
	$.cookie('fontsize',fontsize);
}

function set_fonts(lang){

	var img_path;
	
	if(lang == "en"){
		img_path = 'img_en';
	}else if(lang == "kr"){
		img_path = 'img_kr';
	}else{
		img_path = 'img';
	}
	
	var flg = $.cookie('fontsize');
	if(flg == 'l' || flg == 'm' || flg == 's'){
		$("#fontsize_l").attr('src','/'+ img_path +'/fontsize0_l.png');
		$("#fontsize_m").attr('src','/'+ img_path +'/fontsize0_m.png');
		$("#fontsize_s").attr('src','/'+ img_path +'/fontsize0_s.png');
		
		if(flg == "l"){
			$("body").css('font-size',"14px");
			$("#fontsize_l").attr('src','/'+ img_path +'/fontsize_l.png');
		}else if(flg=="m"){
			$("body").css('font-size',"12px");
			$("#fontsize_m").attr('src','/'+ img_path +'/fontsize_m.png');
		}else if(flg=="s"){
			$("body").css('font-size',"11px");
			$("#fontsize_s").attr('src','/'+ img_path +'/fontsize_s.png');
		}
	}
}

/* メインメニューのボタン色替え */
function btn_select(flg,lang){
	
	if(lang == "en"){
			//エイサーとはボタン
			if(flg == "10"){
				$("#t"+flg).attr('src','/img_en/btn_01on.gif');
			//全島エイサーまつりとはボタン
			}else if(flg == "11"){
				$("#t"+flg).attr('src','/img_en/btn_02on.gif');
			//動画ボタン
			}else if(flg == "12"){
				$("#t"+flg).attr('src','/img_en/btn_03on.gif');
			//会場へのアクセス
			}else if(flg == ""){
				str = location.href;
				if(str.match(/tag-/i)){
					$("#t13").attr('src','/img_en/btn_05on.gif');
				}
			}else if(flg == "14"){
				$("#inqbtn").attr('src','/img_en/btn_07on.gif');
			}
	}else if(lang == "tc"){
			
		//エイサーとはボタン
		if(flg == "17"){
			$("#t10").attr('src','/img_tc/btn_01on.gif');
		//全島エイサーまつりとはボタン
		}else if(flg == "18"){
			$("#t11").attr('src','/img_tc/btn_02on.gif');
		//動画ボタン
		}else if(flg == "19"){
			$("#t12").attr('src','/img_tc/btn_03on.gif');
		//会場へのアクセス
		}else if(flg == ""){
			str = location.href;
			if(str.match(/tag-/i)){
				$("#t13").attr('src','/img_tc/btn_05on.gif');
			}
		}else if(flg == "21"){
			$("#inqbtn").attr('src','/img_tc/btn_07on.gif');
		}


	}else if(lang == "kr"){
			
		//エイサーとはボタン
		if(flg == "34"){
			$("#t10").attr('src','/img_kr/btn_01on.gif');
		//全島エイサーまつりとはボタン
		}else if(flg == "35"){
			$("#t11").attr('src','/img_kr/btn_02on.gif');
		//動画ボタン
		}else if(flg == "36"){
			$("#t12").attr('src','/img_kr/btn_03on.gif');
		//会場へのアクセス
		}else if(flg == ""){
			str = location.href;
			if(str.match(/tag-/i)){
				$("#t13").attr('src','/img_kr/btn_05on.gif');
			}
			
		}else if(flg == "38"){
			$("#inqbtn").attr('src','/img_kr/btn_07on.gif');
		}

	}else if(lang == "cn"){
		
		//エイサーとはボタン
		if(flg == "26"){
			$("#t10").attr('src','/img_cn/btn_01on.gif');
		//全島エイサーまつりとはボタン
		}else if(flg == "27"){
			$("#t11").attr('src','/img_cn/btn_02on.gif');
		//動画ボタン
		}else if(flg == "28"){
			$("#t12").attr('src','/img_cn/btn_03on.gif');
		//会場へのアクセス
		}else if(flg == ""){
			str = location.href;
			if(str.match(/tag-/i)){
				$("#t13").attr('src','/img_cn/btn_05on.gif');
			}
		}else if(flg == "30"){
			$("#t14").attr('src','/img_cn/btn_07on.gif');
		}
	
	}else{
		if(flg != ""){
			//エイサーとはボタン
			if(flg == "7"){
				$("#t"+flg).attr('src','/img/btn_01on.jpg');
			//全島エイサーまつりとはボタン
			}else if(flg == "1"){
				$("#t"+flg).attr('src','/img/btn_02on.jpg');
			//動画ボタン
			}else if(flg == "2"){
				$("#t"+flg).attr('src','/img/btn_03on.jpg');
			//会場へのアクセス
			}else if(flg == "4"){
				$("#t"+flg).attr('src','/img/btn_05on.jpg');
			}else if(flg == "inquiry"){
				$("#inqbtn").attr('src','/img/btn_07on.jpg');
			}
		}
	}
}

function include_flash(lang)
{
	
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="950" HEIGHT="500" id="fi1" title="全島エイサーFlash">');
	document.write('<PARAM NAME=movie VALUE="/img/flash_'+ lang +'.swf">');
	document.write('<PARAM NAME="loop" VALUE="true">');
	document.write('<PARAM name="wmode" value="transparent">');
	document.write('<PARAM NAME="quality" VALUE="high">');
	document.write('<PARAM NAME="bgcolor" VALUE="#fff">');
	document.write('<EMBED src="/img/flash_'+ lang +'.swf" loop="true" quality="high" bgcolor="#fff" WIDTH="950" HEIGHT="500" NAME="fi1" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write('</EMBED>');
	document.write('</OBJECT>');

}

