/*!
 * Base setting
 */

/*jHover----------------------------------------------------------------------*/
jQuery.noConflict()(function($){
							 
	$(function(){
		$("img.hover").mouseover(function(){
			$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_f2$2"))
		}).mouseout(function(){
			$(this).attr("src",$(this).attr("src").replace(/^(.+)_f2(\.[a-z]+)$/, "$1$2"));
		}).each(function(){
			$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_f2$2"))
		})
	})
	
/*Base----------------------------------------------------------------------*/
	
	
	//fontsize
	fscRef();
	
	//news
	$("#home_newsInner dt:first").css("background-image", "none");
	$("#home_newsInner dd:first").css("background-image", "none");
	
	//newsTime
	$("#newsTime .hyo th:even").css("background-color","#DDEAB7");



});

//Safari系で地図を静的な画像に置き換える
function displayMap1() {

	if(getAgent()=="Safari") {
		document.write('<img src="http://maps.google.com/maps/api/staticmap?markers=34.663923,134.976574&size=675x540&key=ABQIAAAAsFlXiLl89l0ArecDgH_TkRSwvYqBOfEiiFXWEy4GujVNcozIbRQGx3TdfP6VCzhOji6nAGTBvj8d6g&sensor=false" width="640" height="540" />');
	} else {
		document.write('<iframe width="675" height="540" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.jp/maps?f=q&amp;source=s_q&amp;hl=ja&amp;geocode=&amp;q=%E3%81%BF%E3%81%A9%E3%82%8A%E7%97%85%E9%99%A2&amp;sll=34.660958,134.980087&amp;sspn=0.02538,0.038581&amp;gl=jp&amp;brcurrent=3,0x60007ff40a1ab8a1:0xdeaca24c1b3be23c,0&amp;ie=UTF8&amp;hq=%E3%81%BF%E3%81%A9%E3%82%8A%E7%97%85%E9%99%A2&amp;hnear=&amp;cid=15555360726229060529&amp;ll=34.672723,134.976397&amp;spn=0.024709,0.060768&amp;z=14&amp;output=embed"></iframe>');
	}
	
}

//ブラウザ判別処理
function getAgent() {
		var brName;
		var aName=navigator.appName;
		uAgent=navigator.userAgent;
		if(uAgent.indexOf("Opera")!=-1)
			brName="Opera";
		else if(uAgent.indexOf("Chrome")!=-1)
			brName="Chrome";
		else if(uAgent.indexOf("Safari")!=-1)
			brName="Safari";
		else if(uAgent.indexOf("MSIE")!=-1)
			brName="Internet Explorer";
		else if(aName=="Netscape"){
			if(uAgent.indexOf("Gecko")!=-1)
				brName="Mozilla";
			else
				brName="NetscapeOld";
		} else
			brName=aName;
		return brName;
}
