// JavaScript Document

/* *************************************

概要：汎用JSファイル

***************************************/
/*var yuga = {
	preloader: {
		loadedImages: [],
		load: function (url){
			var img = this.loadedImages;
			var l = img.length;
			img[l] = new Image();
			img[l].src = url;
		}
	}
};

$(function(){
	
	$('.hover img, img.hover').each(function(){
		this.originalSrc = $(this).attr('src');
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, "_over$1");
		yuga.preloader.load(this.rolloverSrc);
	}).hover(function(){
		$(this).attr('src',this.rolloverSrc);
	},function(){
		$(this).attr('src',this.originalSrc);
	});
	       
});
*/

//ポップアップメニュー用ファンクション
function popUp(url,name,x,y){
	Wname = name;
	para = "width=" + x + ",height=" + y + ",menubar=no,directories=no,status=no,location=no,toolbar=no,scrollbars=yes,resizable=yes";
	popup = window.open(url,Wname,para);
	popup.focus();
	void(0);
}




Common = new Array();
for (i=0;i<11;i=i+1) { Common[i] = new Image(); }
	Common[0].src = "common/img/bt_page2.gif";
	Common[1].src = "common/img/bt_page2_on1.gif";
	Common[2].src = "common/img/bt_page2_on2.gif";
	Common[3].src = "../common/img/bt_page2_in1.gif";
	Common[4].src = "../common/img/bt_page2_in2.gif";
	Common[5].src = "../common/img/bt_page2_in3.gif";
	Common[6].src = "../common/img/bt_page2_in4.gif";
	Common[7].src = "common/img/bt_page2_in1.gif";
	Common[8].src = "common/img/bt_page2_in2.gif";
	Common[9].src = "common/img/bt_page2_in3.gif";
	Common[10].src = "common/img/bt_page2_in4.gif";


Common2 = new Array();
for (i=0;i<3;i=i+1) { Common2[i] = new Image(); }
	Common2[0].src = "img/index/bt_page2.gif";
	Common2[1].src = "img/index/bt_page2_on1.gif";
	Common2[2].src = "img/index/bt_page2_on2.gif";


function imgChng(ID,imgName) {
	document.images[imgName].src = eval(ID + ".src");
}


