/* イメージプリロード
--------------------------------------------------*/
function imgPreload(){
//	var pass = '/common/image/'; //image pass
	var img = new Array('/common/image/apply_net_ov.gif','/common/image/apply_ohter_ov.gif','/common/image/subscribe_year_ov.gif','/common/image/tryal_store_ov.gif','/common/image/tryal_jtb_ov.gif','/common/image/bt_inquiry_ov.gif','/common/image/bt_contribute_ov.gif','/image/index_new_contents_ov.gif','/image/index_next_contents_ov.gif'); //over image
	var preimg = new Array;
	for(i=0; i<img.length; i++){
		preimg[i] = new Image();
		preimg[i].src = img[i];
	}
}
imgPreload();

/* 画像切り替え
--------------------------------------------------*/
//<a href="#" onMouseOver="chgImg(this,'画像名')">
var chgimgSv = 'noData';
function chgImg(thisTag,imgName){
	if(thisTag && imgName){ // ov
		var targetImg = document.images[imgName];
		if(targetImg){
			thisTag.onmouseout = chgImg; // マウスアウト処理
			chgimgSv = imgName;
			targetImg.src = targetImg.src.replace('_of.','_ov.');
		}
	}else{ // of
		var targetImg = document.images[chgimgSv];
		if(targetImg){
			targetImg.src = targetImg.src.replace('_ov.','_of.');
			chgimgSv = 'noData';
		}
	}
}

/* ポップアップ
--------------------------------------------------*/
function PopWin(Url,newwin,W,H,Tpt,Lpt) {
	para = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,';
	para += 'width=' + W + ',height=' + H;
	para += ',top=' + Tpt + ',left=' + Lpt;
	window.open(Url,newwin,para);
}

