/* Rollover */

function smartRollover() {
    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", smartRollover, false);
}
else if(window.attachEvent) {
    window.attachEvent("onload", smartRollover);
}


/* Rollover (Map) */

var readImage= new Array(2);<!--←画像の最大数-->
readImage[0] = new Image();
readImage[0].src="images/common/glmenu04_01.gif";
readImage[1] = new Image();
readImage[1].src="images/common/glmenu04_02.gif";

function changeImage1(){
    document.glmenu04.src="images/common/glmenu04_02.gif";
}
function changeImage2(){
    document.glmenu04.src="images/common/glmenu04_01.gif";
}
function changeImage3(){
    document.glmenu05.src="images/common/glmenu05_02.gif";
}
function changeImage4(){
    document.glmenu05.src="images/common/glmenu05_01.gif";
}



/* OpenWindow */

	var Win=null;
	var url="";
	function OpenWin(url){
		Win=window.open(url,"dtl","width=600,height=400,toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=no");Win.focus();
		}


function Winopen(win,wi,he){
var newWin=window.open(win, 'Sub', "toolbar=no , menubar=no , scrollbars=yes , width=" +wi+" , height=" +he);
newWin.resizeTo(wi,he);
newWin.focus();
}
