function rovr() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");
		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off.")){
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}
if(window.addEventListener) {
	window.addEventListener("load", rovr, true);
}
else if(window.attachEvent) {
	window.attachEvent("onload", rovr);
}

function ro(obj,val) {
	obj.src = val;
}

// popup open
function popup(){
    //void(theWin=window.open("http://www.eki-pia.com/ad/pia_ad.html", "ad_gallery", "width=740,height=555"));
    void(theWin=window.open("../ad/pia_ad.html", "ad_gallery", "width=740,height=555"));
    theWin.focus();
}

// popup open(2nd)
function popup2(){
    void(theWin=window.open("ad/pia_ad.html", "ad_gallery", "width=740,height=555"));
    theWin.focus();
}
// popup open(event)
function popup3(){
    void(theWin=window.open("../file_upform/index.html", "cm", "width=750, height=600, menubar=no, toolbar=no, scrollbars=yes"));
    theWin.focus();
}

/*============================================================ 

ロールオーバー（エリアマップ用）

============================================================*/

function imgOver2(objId){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace("_off1.", "_on1.");
	document.getElementById(objId).src = imageFile;
}
function imgOut2(objId){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace("_on1.", "_off1.");
	document.getElementById(objId).src = imageFile;
}

/*============================================================*/


/*============================================================ 

ロールオーバー（ナビ エリアマップ用）gif
	
============================================================*/

function imgOver3(objId,objNum){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace('.gif','_'+ objNum + '.gif');
	document.getElementById(objId).src = imageFile;
}
function imgOut3(objId,objNum){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace('_'+ objNum + '.gif','.gif');
	document.getElementById(objId).src = imageFile;
}

/*============================================================*/


/*============================================================ 

ロールオーバー（ナビ エリアマップ用）jpg

============================================================*/

function imgOver4(objId,objNum){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace('.jpg','_'+ objNum + '.jpg');
	document.getElementById(objId).src = imageFile;
}
function imgOut4(objId,objNum){
	imageFile = document.getElementById(objId).src;
	imageFile = imageFile.replace('_'+ objNum + '.jpg','.jpg');
	document.getElementById(objId).src = imageFile;
}

/*============================================================*/