var MenuCount = 7;
var g_Path  = "";


function SetPath( strPath ) {
	
	g_Path = strPath;
	
}

function WriteMenu() {
	document.write('<DIV id="menu">');
	document.write('<ul class="main">');
	document.write('	<li class="off">');
	document.write('		<A href="' + g_Path + 'index.html"><IMG SRC="' + g_Path + 'image/menu01.gif" BORDER="0"></A>');
	document.write('	</li>');
	document.write('	<li class="off">');
	document.write('		<A href="' + g_Path + 'greetings01.html"><IMG SRC="' + g_Path + 'image/menu02.gif" BORDER="0"></A>');
	document.write('	</li>');
	document.write('	<li class="off" onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('	<A href="' + g_Path + 'outline01.html"><IMG SRC="' + g_Path + 'image/menu03.gif" BORDER="0"></A>');
	document.write('	<ol class="sub">');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'outline01.html">Program Outline</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'outline02.html">Objectives and Importance</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'outline03.html">Administration System</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'outline06.html#top">Education Plans</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'outline06.html#subject2"><SPAN CLASS="vz">Research Plans</SPAN></A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('	</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\' "onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'activity01.html"><IMG SRC="' + g_Path + 'image/menu04.gif" BORDER="0"></A>');
	document.write('	<ol class="sub" width="155px">');
	document.write('		<li>');
	document.write('		<A href="' + g_Path + 'activity01.html">Organizational Structure</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'activity01.html#subject1"><span>Education Members</span></A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'activity02.html"><span>Third-Party Evaluation Committee Members</span></A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('			<A href="' + g_Path + 'activity02.html#subject2"><span>G-COE Support Office</span></A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'education01.html"><IMG SRC="' + g_Path + 'image/menu05.gif" BORDER="0"></A>');
	document.write('	<ol class="sub">');
	document.write('		<li>');
	document.write('		<A href="' + g_Path + 'education01.html">Education Plans</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="' + g_Path + 'education03.html">Project Structure and Themes</A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'achieve.html"><IMG SRC="' + g_Path + 'image/menu06.gif" BORDER="0"></A>');
	document.write('	<ol class="sub">');
	document.write('		<li>');
	document.write('		<A href="' + g_Path + 'achieve.html">Research Achievements</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="' + g_Path + 'award.html">Recent Awards</A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'recruitment00.html"><IMG SRC="' + g_Path + 'image/menu07.gif" BORDER="0"></A>');
	document.write('</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'seminar00.html"><IMG SRC="' + g_Path + 'image/menu08.gif" BORDER="0"></A>');
	document.write('</li>');
	document.write('<li class="off" onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'JavaScript:void(0);"><IMG SRC="' + g_Path + 'image/menu09.gif" BORDER="0"></A>');
	document.write('	<ol class="sub">');
	document.write('		<li>');
	document.write('		<A href="http://www.imr.tohoku.ac.jp/eng/map/index.html">Institute for Materials Research</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.tagen.tohoku.ac.jp/general/access/access.html">Inetitute Multidisclinary Research for Advanced Materiaos</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.eng.tohoku.ac.jp/map/?menu=access">School of Engineering, Tohoku University</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.sci.tohoku.ac.jp/english/3rd/directions-aobayama.html">Graduate School of Science TOHOKU University</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.niche.tohoku.ac.jp/index.php?page=shozai">New Industry Creation Hatchery Center</A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('</li>');
	document.write('<li class="off" onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="' + g_Path + 'JavaScript:void(0);"><IMG SRC="' + g_Path + 'image/menu10.gif" BORDER="0"></A>');
	document.write('	<ol class="sub">');
	document.write('		<li>');
	document.write('		<A href="http://www.tohoku.ac.jp/english/index.html">Tohoku University</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.imr.tohoku.ac.jp/eng/index.html">Institute for Materials Research</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.tagen.tohoku.ac.jp/index2.html">Inetitute Multidisclinary Research for Advanced Materiaos</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.eng.tohoku.ac.jp/english/">School of Engineering, Tohoku University</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://web.sci.tohoku.ac.jp/english/index.html">Graduate School of Science TOHOKU University</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.niche.tohoku.ac.jp">New Industry Creation Hatchery Center</A>');
	document.write('		</li>');
	document.write('		<li>');
	document.write('		<A href="http://www.jsps.go.jp/english/e-globalcoe/index.html">Japan Society for the Promotion of Science</A>');
	document.write('		</li>');
	document.write('	</ol>');
	document.write('</li>');
	document.write('<li class="off"onmouseover="this.className=\'on\'" onmouseout="this.className=\'off\'">');
	document.write('<A href="'+g_Path+'gakunai/index.html"><IMG SRC="' + g_Path + 'image/menu11.gif" BORDER="0"></A>');
	document.write('</li>');
	document.write('</ul>');
	document.write('</DIV>');
	document.write('</ul>');
	document.write('</DIV>');
	
}

function WriteLanguage() {
	
	document.write('<TABLE BORDER=0 WIDTH="100%">');
	document.write('	<TR>');
	document.write('		<TD ALIGN="center" WIDTH=560>&nbsp;</TD>');
	document.write('		<TD WIDTH="100"><A CLASS="lg_index" HREF="'+g_Path+'../index.html"><li>JAPANESE</li></A></TD>');
	document.write('		<TD WIDTH="100"><A CLASS="lg_index" HREF="'+g_Path+'../kr/index.html"><li>KOREAN</li></A></TD>');
	document.write('		<TD WIDTH="100"><A CLASS="lg_index" HREF="'+g_Path+'../cn/index.html"><li>CHINESE</li></A></TD>');
	document.write('	</TR>');
	document.write('</TABLE>');
	
}

function TohokuLogoWrite(strImage) {
	
	document.write('	<A HREF="http://www.tohoku.ac.jp/english/"><IMG SRC="' + g_Path + 'image/logo_tohoku.gif" BORDER=0></A>');
	
}

function Search() {
	document.write('<form method=get action="http://www.google.co.jp/search">');
	document.write('<table width="270" border="0" cellspacing="0" cellpadding="0">');
	document.write('	<tr>');
	document.write('		<td width="100" align="right" valign="center"><img src="' + g_Path + 'image/google.gif" width="70" height="23" class="icon"></td>');
	document.write('		<td width="120" align="right" valign="center">');
	document.write('			<input type="text" name="q" size="20">');
	document.write('			<input type="hidden" name="ie" value="Shift_JIS">');
	document.write('			<input type="hidden" name="oe" value="Shift_JIS">');
	document.write('			<input type="hidden" name="hl" value="ja">');
	document.write('			<input type="hidden" name="domains" value="gcoe.imr.edu">');
	document.write('		</td>');
	document.write('		<td width="5" align="right" valign="center">&nbsp;</td>');
	document.write('		<td width="51" align="right" valign="center"><input name="btnG" type="submit" id="Search" value="Search"></td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td colspan="4" align="right" valign="middle" class="searchtext">');
	document.write('			<input type=radio name="sitesearch" value=""> WWW ');
	document.write('			<input type=radio name="sitesearch" value="gcoe.imr.edu" checked> A search in a GCOE site');
	document.write('		</td>');
	document.write('  </tr>');
	document.write('</table>');
	document.write('</form>');
}

function WriteHeaderLinks(strback, strnext) {
	
	document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">');
	document.write('	<TR>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=120>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=80>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=80>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	if (strback == "") {
		document.write('		<TD ALIGN="center" WIDTH=60>&nbsp;</TD>');
	} else {
		document.write('		<TD ALIGN="center" WIDTH=60><A HREF="' + strback + '"><IMG SRC="' + g_Path + 'image/back.gif" BORDER=0></A></TD>');
	}
	if (strnext == "") {
		document.write('		<TD ALIGN="center" WIDTH=60>&nbsp;</TD>');
	} else {
		document.write('		<TD ALIGN="center" WIDTH=60><A HREF="' + strnext + '"><IMG SRC="' + g_Path + 'image/next.gif" BORDER=0></A></TD>');
	}
	document.write('	</TR>');
	document.write('</TABLE>');
	
}

function WriteFooterLinks(strself, strback, strnext) {
	
	document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">');
	document.write('	<TR>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=70><A HREF="' + g_Path + 'activity02.html#subject2"><IMG SRC="' + g_Path + 'image/contact.gif" BORDER=0></A></TD>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=120>&nbsp;</TD>');
	document.write('		<TD ALIGN="center" WIDTH=80><A HREF="' + g_Path + 'index.html"><IMG SRC="' + g_Path + 'image/home.gif" BORDER=0></A></TD>');
	document.write('		<TD ALIGN="center" WIDTH=80><A HREF="' + strself +'"><IMG SRC="' + g_Path + 'image/pagetop.gif" BORDER=0></A></TD>');
	document.write('		<TD ALIGN="center" WIDTH=70>&nbsp;</TD>');
	if (strback == "") {
		document.write('		<TD ALIGN="center" WIDTH=60>&nbsp;</TD>');
	} else {
		document.write('		<TD ALIGN="center" WIDTH=60><A HREF="' + strback + '"><IMG SRC="' + g_Path + 'image/back.gif" BORDER=0></A></TD>');
	}
	if (strnext == "") {
		document.write('		<TD ALIGN="center" WIDTH=60>&nbsp;</TD>');
	} else {
		document.write('		<TD ALIGN="center" WIDTH=60><A HREF="' + strnext + '"><IMG SRC="' + g_Path + 'image/next.gif" BORDER=0></A></TD>');
	}
	document.write('	</TR>');
	document.write('</TABLE>');
	
}
