function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		__01_over = newImage('img/a1.gif');
		__02_over = newImage('img/b1.gif');
		__03_over = newImage('img/c1.gif');
		__04_over = newImage('img/d1.gif');
		__05_over = newImage('img/e1.gif');
		__06_over = newImage('img/f4.gif');
		__07_over = newImage('img/g4.gif');
		__08_over = newImage('img/h1.gif');
		__09_over = newImage('img/i1.gif');
		__10_over = newImage('img/j1.gif');
		preloadFlag = true;
	}
}

//-----ポップアップウィンドウ-----//
//-----html-----//
function openpop(page,name,w,h,others){
    var prm="";
    others=""+others;
    if (others.search(/t/i) != -1) {
        prm += ",toolbar=yes";
    }
    if (others.search(/l/i) != -1) {
        prm += ",location=yes";
    }
    if (others.search(/s/i) != -1) {
        prm += ",status=yes";
    }
    if (others.search(/m/i) != -1) {
        prm += ",menubar=yes";
    }
    if (others.search(/b/i) != -1) {
        prm += ",scrollbars=yes";
    }
    if (others.search(/r/i) != -1) {
        prm += ",resizable=yes";
    }
    window.open(page,name,"directories=no,width="+w+",height="+h+prm);
}
function stword(word){
    window.status = word;
    return true;
}
//-----img-----//
function imagepop(img,name,ttl,w,h,alt,others){
    var prm="";
    others=""+others;
    if (others.search(/l/i) != -1) {
        prm += ",location=yes";
    }
    if (others.search(/s/i) != -1) {
        prm += ",status=yes";
    }
    if (others.search(/r/i) != -1) {
        prm += ",resizable=yes";
    }
    if (alt != null) {
    alt = "alt="+alt;
    }
    var win=window.open("",name,"directories=no,width="+w+",height="+h+prm);
    win.document.open("text/html", "replace");
    win.document.write('<html><head><title>'+ttl+'</title></head>');
    win.document.write('<body marginwidth="0" marginheight="0" style="margin:0px;" bgcolor="#000000">')
    win.document.write('<a href="JavaScript:window.close();"><img src="'+img+'" '+alt+' border="0"></a></body></html>');
    win.document.close();
}
function stword(word){
    window.status = word;
    return true;
}
