function MOver( name )
{
	document.images[name].src = "images/"+name+"_over.gif" ;
}
function MOut( name )
{
	document.images[name].src = "images/"+name+"_off.gif" ;
}
function OpenPopup( url, title, w, h )
{
	win = window.open( url, title, "width="+w+",height="+h+",scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	win.focus() ;
}
function OpenDojo( name )
{
	OpenPopup( "dojo/"+name+".html", "dojo", 400, 600 ) ;
//	win = window.open( "dojo/"+name+".html", "dojo", "width=400,height=600,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function OpenDojoBig( name )
{
	if( name.indexOf('.htm') >= 0 )
	{
		OpenPopup( "/dojo/"+name, "dojo", 500, 500 ) ;
//		win = window.open( "dojo/"+name, "dojo", "width=500,height=500,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
	else
	{
		OpenPopup( "/dojo/"+name+"/p0.html", "dojo", 500, 500 ) ;
//		win = window.open( "dojo/"+name+"/p0.html", "dojo", "width=500,height=500,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
//	win.focus() ;
}
function OpenDojoTiny( name )
{
	OpenPopup( "dojo/"+name+".html", "dojot", 400, 140 ) ;
//	win = window.open( "dojo/"+name+".html", "dojot", "width=400,height=140,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function OpenBook( name )
{
	OpenPopup( "books/"+name+".html", "book", 500, 500 ) ;
//	win = window.open( "books/"+name+".html", "book", "width=500,height=500,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function OpenEvent( name )
{
	if( name.indexOf('.htm') >= 0 )
	{
		OpenPopup( "/event/"+name, "event", 500, 500 ) ;
//		win = window.open( "event/"+name, "event", "width=500,height=500,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
	else
	{
		OpenPopup( "/event/"+name+"/p0.html", "event", 500, 500 ) ;
//		win = window.open( "event/"+name+"/p0.html", "event", "width=500,height=500,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
//	win.focus() ;
}
function OpenEventMenu( name )
{
	if( name.indexOf('.htm') >= 0 )
	{
		OpenPopup( "/event/"+name, "evmenu", 400, 600 ) ;
//		win = window.open( "event/"+name, "evmenu", "width=400,height=600,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
	else
	{
		OpenPopup( "/event/"+name, "evmenu", 400, 600 ) ;
//		win = window.open( "event/"+name+".html", "evmenu", "width=400,height=600,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
	}
//	win.focus() ;
}
function OpenGyoji( name )
{
	OpenPopup( "gyoji/"+name+"/p1.html", "gyoji", "dojot", 500, 600 ) ;
//	win = window.open( "gyoji/"+name+"/p1.html", "gyoji", "width=500,height=600,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function Open12hitoe( name )
{
	OpenPopup( name+"/p1.html", "12hitoe", 380, 520 ) ;
//	win = window.open( name+"/p1.html", "12hitoe", "width=380,height=520,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function Open12hitoeAbout( name )
{
	OpenPopup( name+"/about1.html", "12hitoe",  380, 520 ) ;
//	win = window.open( name+"/about1.html", "12hitoe", "width=380,height=520,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function OpenForm()
{
	OpenPopup( "/form.php", "form", 400, 400 ) ;
//	win = window.open( "/form.php", "form", "width=400,height=400,scrollbars=no,status=no,toolbar=0,resizable=no" ) ;
//	win.focus() ;
}
function WriteFooter()
{
	document.writeln('<div class="foot"><table width="800" height="30" border="0" cellspacing="0" cellspacing="0">');
	document.writeln('<tr>');
	document.writeln('	<td width="800" height="30" align="center" valign="middle"><font class="foot"><b>衣紋道高倉流 有職文化研究所</b>　〒164-0003 中野区東中野1-14-10 TEL:03-5386-0771 FAX:03-5386-0770 (月〜金 10:00〜17:00) E-MAIL:bunka&#64;yuusoku.jp<br>');
	document.writeln('	<b>Copyright &copy; 2006 有職文化研究所 All Rights Reserved.</b></font></td>');
	document.writeln('</tr></table></div>');

}

