function changeImage(imageName, fileName)
{
	document.images[imageName].src = fileName;
}

function getBrowserName(){
	var UA = navigator.userAgent;
	if (UA.indexOf("Safari") > -1) return "SAFARI";
	if (UA.indexOf("Opera") > -1) return "OPERA";
	if (UA.indexOf("Firefox") > -1) return "FIREFOX";
	if (UA.indexOf("Gecko") > -1) return "MOZILLA";
	if (UA.indexOf("MSIE") > -1) return "IE";
	if (UA.indexOf("Mozilla") > -1) return "NETSCAPE";
	return "UNKNOWN";
}

function commonBtnChange()
{
	document.getElementById("naBanSanpoImg").onmouseover = function(){
		changeImage('naBanSanpoImg', '../common/images/ban_sanpo2_over.jpg');
	}
	document.getElementById("naBanSanpoImg").onmouseout = function(){
		changeImage('naBanSanpoImg', '../common/images/ban_sanpo2.gif');
	}
	
	document.getElementById("naBanMichikusaImg").onmouseover = function(){
		changeImage('naBanMichikusaImg', '../common/images/ban_michikusa1_over.gif');
	}
	document.getElementById("naBanMichikusaImg").onmouseout = function(){
		changeImage('naBanMichikusaImg', '../common/images/ban_michikusa1.gif');
	}

	if( null != document.getElementById("naNaviCity")){
		document.getElementById("naNaviCity").onmouseover = function(){
			changeImage('naNaviCity', '../common/images/navi_citybelle_over.gif');
		}
		document.getElementById("naNaviCity").onmouseout = function(){
			changeImage('naNaviCity', '../common/images/navi_citybelle.gif');
		}
	}
	if( null != document.getElementById("naNaviPick")){
		document.getElementById("naNaviPick").onmouseover = function(){
			changeImage('naNaviPick', '../common/images/navi_pickup_over.gif');
		}
		document.getElementById("naNaviPick").onmouseout = function(){
			changeImage('naNaviPick', '../common/images/navi_pickup.gif');
		}
	}
	if( null != document.getElementById("naArtist")){
		document.getElementById("naArtist").onmouseover = function(){
			changeImage('naArtist', '../common/images/navi_artist_over.gif');
		}
		document.getElementById("naArtist").onmouseout = function(){
			changeImage('naArtist', '../common/images/navi_artist.gif');
		}
	}
	if( null != document.getElementById("naNaviConcert")){
		document.getElementById("naNaviConcert").onmouseover = function(){
			changeImage('naNaviConcert', '../common/images/navi_concert_over.gif');
		}
		document.getElementById("naNaviConcert").onmouseout = function(){
			changeImage('naNaviConcert', '../common/images/navi_concert.gif');
		}
	}

	if( null != document.getElementById("naNaviArti")){
		document.getElementById("naNaviArti").onmouseover = function(){
			changeImage('naNaviArti', '../common/images/navi_artist_over.gif');
		}
		document.getElementById("naNaviArti").onmouseout = function(){
			changeImage('naNaviArti', '../common/images/navi_artist.gif');
		}
	}

	if( null != document.getElementById("naNaviSche")){
		document.getElementById("naNaviSche").onmouseover = function(){
			changeImage('naNaviSche', '../common/images/navi_schedule_over.gif');
		}
		document.getElementById("naNaviSche").onmouseout = function(){
			changeImage('naNaviSche', '../common/images/navi_schedule.gif');
		}
	}

	if( null != document.getElementById("naNaviPlan")){
		document.getElementById("naNaviPlan").onmouseover = function(){
			changeImage('naNaviPlan', '../common/images/navi_planning_over.gif');
		}
		document.getElementById("naNaviPlan").onmouseout = function(){
			changeImage('naNaviPlan', '../common/images/navi_planning.gif');
		}
	}

	if( null != document.getElementById("naNaviKiso")){
		document.getElementById("naNaviKiso").onmouseover = function(){
			changeImage('naNaviKiso', '../common/images/navi_kisocourse_over.gif');
		}
		document.getElementById("naNaviKiso").onmouseout = function(){
			changeImage('naNaviKiso', '../common/images/navi_kisocourse.gif');
		}
	}

	if( null != document.getElementById("naNaviCd")){
		document.getElementById("naNaviCd").onmouseover = function(){
			changeImage('naNaviCd', '../common/images/navi_cd_over.gif');
		}
		document.getElementById("naNaviCd").onmouseout = function(){
			changeImage('naNaviCd', '../common/images/navi_cd.gif');
		}
	}

	if( null != document.getElementById("naNaviAbou")){
		document.getElementById("naNaviAbou").onmouseover = function(){
			changeImage('naNaviAbou', '../common/images/navi_about_over.gif');
		}
		document.getElementById("naNaviAbou").onmouseout = function(){
			changeImage('naNaviAbou', '../common/images/navi_about.gif');
		}
	}

}

window.onload = function()
{
	commonBtnChange();
}
