f3ce8a86d1e0cf584e7a1864f91b8761f4f12faf1de5d1fc4540442385e8b978

Source Code:

// image roll

function imgRoll(obj,flag) {
	var pathsrc = obj.getAttribute("src");
	var path = pathsrc.slice(0,pathsrc.lastIndexOf("/")+1);
	var imgname = pathsrc.slice(pathsrc.lastIndexOf("/")+1,pathsrc.length);
	if(flag) {
		var imgname = imgname.replace(/_def/i,"_ovr");
	} else {
		var imgname = imgname.replace(/_ovr/i,"_def");
	}
	obj.setAttribute("src",path + imgname);
}


// sub win

/*
ページ内では以下のように呼び出してください。
<a href="../../../resources_shared/scripts/呼び出したいページ" onclick="openSubWindow(this.href,'小窓名',横サイズ[px],縦サイズ[px]);return false;"><img src="../../../resources_shared/scripts/btn_slideshow.gif" border="0" width="160" height="50" alt="Slide Show"></a>
例)<a href="../../../resources_shared/scripts/slideshow.html" onclick="openSubWindow(this.href,this.target,500,500);return false;" target="slideshow"><img src="../../../resources_shared/scripts/btn_slideshow.gif" border="0" width="160" height="50" alt="Slide Show"></a>
*/

function openSubWindow(uri,name,w,h) {
	subWindow=window.open(uri,name,"location=no,directories=no,scrollbars=1,resizable=1,toolbar=yes,width="+w+",height="+h+",left=5,top=5");
	subWindow.focus();
	return false;
}

function openMnbWindow(url,name,features) {
	mnbWindow = window.open(url,name,features);
	mnbWindow.focus();
	return false;
}