/***********************************************
 初期設定：ページロード時に読み込み

************************************************/

window.onload = function(){
	
	ct_hvr(); //トップ画像ホバー
	
	
}


/***********************************************
 トップ画像ホバー

************************************************/
function ct_hvr(){
	
	//img_name
	var sch_img_path = "images/top/ph_cat1.jpg";
	var shp_img_path = "images/top/ph_cat2.jpg";
	var wed_img_path = "images/top/ph_cat3.jpg";
	var sch_img_hvpath = "images/top/ph_cat1_hv.jpg";
	var shp_img_hvpath = "images/top/ph_cat2_hv.jpg";
	var wed_img_hvpath = "images/top/ph_cat3_hv.jpg";
	
	//rpl_scrpt
	var sch = document.getElementById("school");
	var shp = document.getElementById("shop");
	var wed = document.getElementById("wedding");

	var sch_img = sch.getElementsByTagName("img")[0];
	var shp_img = shp.getElementsByTagName("img")[0];
	var wed_img = wed.getElementsByTagName("img")[0];

	sch.onmouseover = function(){sch_img.src = sch_img_hvpath;}
	shp.onmouseover = function(){shp_img.src = shp_img_hvpath;}
	wed.onmouseover = function(){wed_img.src = wed_img_hvpath;}

	sch.onmouseout = function(){sch_img.src = sch_img_path;}
	shp.onmouseout = function(){shp_img.src = shp_img_path;}
	wed.onmouseout = function(){wed_img.src = wed_img_path;}

}