function unTab(){
if(!document.layers){
document.getElementById('cat1').style.background="transparent";
document.getElementById('cat1').style.color="white";
document.getElementById('cat2').style.background="transparent";
document.getElementById('cat2').style.color="white";
document.getElementById('cat3').style.background="transparent";
document.getElementById('cat3').style.color="white";
document.getElementById('cat4').style.background="transparent";
document.getElementById('cat4').style.color="white";
}
else
return;
}

function goToMenu(x){
if(!document.layers){
document.getElementById('toolsmenu').innerHTML=menus[x];
}
else
return;
}

var menus= new Array()
menus[1]='<table width="100%" bgcolor="#aeaeff" style="color:white;font-weight:bold;cursor:pointer"><tr><th onclick="window.open(\''+rootdir+'/Tspd.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Sequence<br> Pattern<br> Discovery</th><th onclick="window.open(\''+rootdir+'/Tmsa.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Multiple<br> Sequence<bR> Alignment</th><th onclick="window.open(\''+rootdir+'/Tco.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">CoMMA</th><th onclick="window.open(\''+rootdir+'/Tgea.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Gene<br>Expression<br>Analysis</th></tr></table>';

menus[2]='<table width="100%" bgcolor="#aeaeff" style="color:white;font-weight:bold;cursor:pointer"><tr><th onclick="window.open(\''+rootdir+'/Tad.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Association<br>Discovery</th><th onclick="window.open(\''+rootdir+'/Tipd.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Integer-based<br> Pattern<br> Discovery</th><th onclick="window.open(\''+rootdir+'/Ttspd.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Text-symbol<br>Pattern<br>Discovery</th><th onclick="window.open(\''+rootdir+'/Ttwpd.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Text-word<br> Pattern<br> Discovery</th></tr></table>';

menus[3]='<table width="100%" bgcolor="#aeaeff" style="color:white;font-weight:bold;cursor:pointer"><tr><th onclick="window.open(\''+rootdir+'/Tgi.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Gene<br>Identification<br>(BD-based)</th><th onclick="window.open(\''+rootdir+'/Tpa.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Protein<br>Annotation<br>(BD-based)</th><th onclick="window.open(\''+rootdir+'/Tssp.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Annotations<br>of Complete<br>Genomes</th></tr></table>';

menus[4]='<table width="100%" bgcolor="#aeaeff" style="color:white;font-weight:bold;cursor:pointer"><tr><th onclick="window.open(\''+rootdir+'/Tamp.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Antimicrobial<br>Protein<br>Annotation<br></th><th onclick="window.open(\''+rootdir+'/Ttkw.html\',\'_self\')" onmouseover="style.color=\'blue\'" onmouseout="style.color=\'white\'">Transmembrane<br>Helices<br></th></tr></table>';

var niceGui = '<TABLE style="color:white;cursor:default" width="100%" cellspacing="0" border="0" bgcolor="#a7a9a9">\n<TR>\n<TH nowrap id="cat1" onmouseover="unTab();style.background=\'#aeaeff\';style.color=\'black\';goToMenu(1)">&nbsp&nbsp;&nbsp;Pattern Discovery Tools <font size="1">(1 of 2)</font>&nbsp&nbsp;&nbsp;</TH>\n<TD width="1" bgcolor=\'#aeaeff\'></TD>\n<TH nowrap id="cat2" onmouseover="unTab();style.background=\'#aeaeff\';style.color=\'black\';goToMenu(2)">&nbsp&nbsp;&nbsp;Pattern Discovery Tools <font size="1">(2 of 2)</font>&nbsp&nbsp;&nbsp;</TH>\n<TD width="1" bgcolor=\'#aeaeff\'></TD>\n<TH nowrap id="cat3" onmouseover="unTab();style.background=\'#aeaeff\';style.color=\'black\';goToMenu(3)">&nbsp&nbsp;&nbsp;Bio-Dictionary Tools & Contents&nbsp;&nbsp&nbsp;</TH>\n<TD width="1" bgcolor=\'#aeaeff\'></TD>\n<TH nowrap id="cat4" onmouseover="unTab();style.background=\'#aeaeff\';style.color=\'black\';goToMenu(4)">&nbsp;&nbsp&nbsp;Other Tools&nbsp&nbsp;&nbsp;</TH>\n</TR>\n</TABLE>\n<DIV id="toolsmenu">\n</DIV>';

function boringGui(engineName,helpLocale){
document.write('<table width="100%">\n<tr>\n<td nowrap><a href="');document.write(rootdir);
document.write('/Tspd.html">Sequence Pattern Discovery</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tgi.html">Gene Identification</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tad.html">Association Discovery</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tamp.html">Antimicrobial Protein Annotation</a></td></tr><tr><td nowrap><a href="');document.write(rootdir);
document.write('/Tmsa.html">Mutiple Sequence Alignment</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tssp.html">Secondary Structure Prediction</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tipd.html">Integer-based Pattern Discovery</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Ttkw.html">Transmembrane Helices</a></td></tr><tr><td nowrap><a href="');document.write(rootdir);
document.write('/Tco.html">CoMMA</a></td><td nowrap><a href="');document.write(rootdir);
document.write('/Tpa.html">Protein Annotation</a></td>\n<td nowrap><a href="');document.write(rootdir);
document.write('/Ttspd.html">Text-symbol Pattern Discovery</a></td></tr><tr><td nowrap><a href="');document.write(rootdir);
document.write('/Tgea.html">Gene Expression Analysis</a></td><td nowrap>&nbsp;</td><td nowrap><a href="');document.write(rootdir);
document.write('/Ttwpd.html">Text-word Pattern Discovery</a></td></tr>\n<tr><td colspan="4"><hr></td></tr>\n');
document.write('<tr>\n<td colspan="4" align="center"><span style="font-size:larger">');
document.write(engineName);
document.write('</span>&nbsp;<a href="');document.write(rootdir);
document.write(helpLocale);
document.write('"><span style="font-size:smaller">HELP</span></a></td>\n</tr>\n</table>');
}


function sideMenu(localAdminEmailHtml){
document.write('<TABLE border="0" cellpadding="0" cellspacing="0">\n<TBODY>\n<TR>\n<TD><A HREF="http://www.research.ibm.com/bioinformatics"><B><FONT color="#ffffff" size="2" face="Arial">Bioinformatics<BR>Group Home</FONT></B></A></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD><A HREF="http://domino.research.ibm.com/hr/research/resumes.nsf/USAindex.html?Open&count=2000" TARGET="_blank"><B><FONT color="#ffffff" size="2" face="Arial">Job Opening</FONT></B></A> </TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD><A HREF="http://www.research.ibm.com/bioinformatics/new_noteworthy.phtml.html" TARGET="_blank"><B><FONT color="#ffffff" size="2" face="Arial">News</FONT></B></A></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD><A HREF="Help/license.html" TARGET="_blank"><B><FONT color="#ffffff" size="2" face="Arial">License Terms</FONT></B></A></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD><A HREF="Tutorial/helps.html" TARGET="_blank"><FONT color="#ffffff" size="2" face="Arial"><B>Brief</B></FONT></A> <FONT color="#ffffff" size="2" face="Arial">/</FONT> <A HREF="Tutorial/tutorial.htm" TARGET="_blank"><FONT color="#ffffff" size="2" face="Arial"><B>Full</B></FONT></A><BR><FONT color="#ffffff" size="2" face="Arial"><B>Tutorial</B></FONT></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD nowrap><A HREF="http://cbcsrv.watson.ibm.com/download.phtml.html" TARGET="_blank"><B><FONT color="#ffffff" size="2" face="Arial">Download<BR>Codes</FONT></B></A></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD><A HREF="http://www-3.ibm.com/solutions/lifesciences/" TARGET="_self"><B><FONT color="#ffffff" size="2" face="Arial">IBM<BR>Life Sciences</FONT></B></A></TD>\n</TR>\n<TR>\n<TD>\n<HR>\n</TD>\n</TR>\n<TR>\n<TD>\n');

if (localAdminEmailHtml.length > 0){
document.write('<A href="\' + localAdminEmailHtml + \'" TARGET = "_self"><FONT color="#ffffff" size="2" face="Arial"><b>Email</b></FONT></A> <FONT color="#ffffff" size="2" face="Arial"><b>local<br>administrator</b></FONT><p>');
document.write('<A href="http://cbcsrv.watson.ibm.com/email.html" TARGET = "_self"><FONT color="#ffffff" size="2" face="Arial"><b>Email</b></FONT></A><FONT color="#ffffff" size="2" face="Arial"><b>IBM<br> Bioinformatics<br>Group</b></FONT>');
}
else{
document.write('<A href="http://cbcsrv.watson.ibm.com/email.html" TARGET = "_self"><FONT color="#ffffff" size="2" face="Arial"><b>Email Us</b></FONT></A>');
}

document.write('\n<NOSCRIPT>\n<A href="http://cbcsrv.watson.ibm.com/email.html" TARGET = "_self"><FONT color="#ffffff" size="2" face="Arial"><b>Email Us</b></FONT></A></NOSCRIPT>\n</TD>\n</TR>\n</TBODY>\n</TABLE>');
}


