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) {
		index_04_over = newImage("images/index_04-over.jpg");
		index_05_over = newImage("images/index_05-over.jpg");
		index_06_over = newImage("images/index_06-over.jpg");
		index_07_over = newImage("images/index_07-over.jpg");
		index_08_over = newImage("images/index_08-over.jpg");
		index_09_over = newImage("images/index_09-over.jpg");
		index_10_over = newImage("images/index_10-over.jpg");
		index_11_over = newImage("images/index_11-over.jpg");
		index_12_over = newImage("images/index_12-over.jpg");
		index_13_over = newImage("images/index_13-over.jpg");
		preloadFlag = true;
	}
}

var openedMenu = null;
var submenuTimer;

function menuOvr(id){
	if (openedMenu && openedMenu != id){
		CloseMenu(id);
	}
	OpenMenu(id);
}
function OpenMenu(id){ 
	if ( document.getElementById ){
		document.getElementById( id ).style.visibility = 'visible';
	}else if ( document.all ){
		document.all( id ).style.visibility = 'visible';
	}else if ( document.layers ){
		document.layers[ id ].visibility = 'show';
	}

	clearTimeout(submenuTimer);

	openedMenu = id;
}

function CloseMenu(){ 
	if ( document.getElementById ){
		document.getElementById( openedMenu ).style.visibility = 'hidden';
	}else if ( document.all ){
		document.all( openedMenu ).style.visibility = 'hidden';
	}else if ( document.layers ){
		document.layers[ openedMenu ].visibility = 'hide';
	}
	openedMenu = null;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/* 書籍ポップアップ*/
function OpenWin01(){
win=window.open("books/01.html","01","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin02(){
win=window.open("books/02.html","02","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin03(){
win=window.open("books/03.html","03","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin04(){
win=window.open("books/04.html","04","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin05(){
win=window.open("books/05.html","05","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin06(){
win=window.open("books/06.html","06","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin07(){
win=window.open("books/07.html","07","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin08(){
win=window.open("books/08.html","08","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin09(){
win=window.open("books/09.html","09","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin10(){
win=window.open("books/10.html","10","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin11(){
win=window.open("books/11.html","11","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin12(){
win=window.open("books/12.html","12","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin18(){
win=window.open("books/13.html","13","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
/* 税務ポップアップ*/
function OpenWin13(){
win=window.open("zeimu/01.html","09","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin14(){
win=window.open("zeimu/02.html","10","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin15(){
win=window.open("zeimu/03.html","11","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin16(){
win=window.open("zeimu/04.html","12","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin17(){
win=window.open("zeimu/05.html","13","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}

/* 会社法ポップアップ*/
function OpenWin100(){
win=window.open("kaishahou/01.html","100","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}

/* メンバーポップアップ*/
function OpenWin001(){
win=window.open("member/01.html","001","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin002(){
win=window.open("member/02.html","002","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin003(){
win=window.open("member/03.html","003","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin004(){
win=window.open("member/04.html","004","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin005(){
win=window.open("member/05.html","005","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}
function OpenWin006(){
win=window.open("member/06.html","006","toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}

function OpenWin(file, wname){
win=window.open(file,wname,"toolbar=yes,location=no,scrollbars=yes,width=550,height=550");
}


