function menuTableFontStyle()
{
	document.write("<style type=\"text/css\">");
	document.write("table.menu{text-align: left; font: normal normal 200 12px arial}");
	document.write("td.w40{width:40%}");
	document.write("</style>");
	document.close();
}

function drawTrinity()
{
	document.write("<table width=\"100%\">");
	document.write("<tr align=\"center\">");
	document.write("<td align=\"right\"><a href=\"http:\/\/www.mcmaster.ca\"><img src=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/images\/mac.png\" width=150 height=120 border=0 alt=\"McMaster University\"><\/a><\/td>");
	//document.write("<td><img src=\"http:\/\/evol.mcmaster.ca\/~sino\/images\/fusionlibrary.png\" width=\"304\" height=\"139\"><\/td>");
	document.write("<td><img src=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/images\/fusionlibrarySymbol.jpg\" width=\"400\" height=\"100\"><\/td>");
	document.write("<td align=\"left\"><a href=\"http:\/\/www.genomecanada.ca\"><img src=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/images\/genomeCanada.jpg\" width=\"185\" height=\"120\"></a></td></tr>");
	document.write("</table>");
	document.close();
}


function drawPeople()
{
	document.write("<table width=\"100%\">");
	document.write("<tr align=\"left\">");
	document.write("<td align=\"left\"><a href=\"http:\/\/www.mcmaster.ca\"><img src=\"http:\/\/www.mcmaster.ca\/med\/logo_mcmaster.gif\" width=186 height=126 border=0 alt=\"McMaster University\"></a></td>");
	document.write("<td align=\"center\"><img src=\"http:\/\/evol.mcmaster.ca\/sino\/images\/peoplebig.gif\" width=\"300\" height=\"85\"></td>");
	document.write("<td align=\"left\"><a href=\"http:\/\/www.genomecanada.ca\"><img src=\"fusionlibrary\/images\/genomeCanada.jpg\" width=\"185\" height=\"120\"></a></td></tr>");
	document.write("</table>");
	document.close();
}

function drawFusionMenu()
{
	//document.write("<table class=\"menu\" width=\"20%\" align=\"left\">");
	document.write("<table class=\"menu\">");
	document.write("<tr><td><a href=\"http:\/\/www.sinorhizobium.org\/index.htm\">Home</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	document.write("<tr><td><table class=\"menu\"><tr><td><strong> Fusion Database: </strong></td></tr>");
	document.write("<tr><td><a href=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/sinoseq.php\">SinoSeq</a></td></tr>");
        document.write("<tr><td><font size=1><ul><li>find location and expression data for library clones by gene name and/or clone ID</ul></font></td></tr>");
	document.write("<tr><td><a href=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/sinoexp2.php\">SinoExpression</a></td></tr>");
        document.write("<tr><td><font size=1><ul><li>find expression data as specific activities by media type and reporter gene</ul></font></td></tr>");
	document.write("<tr><td><a href=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/sinofold.php\">SinoFold</a></td></tr>");
        document.write("<tr><td><font size=1><ul><li>find expression data as fold over background by media type and reporter gene</ul></font></td></tr>");
	document.write("</table>");
	document.write("<tr><td>&nbsp;</td></tr>");
	//document.write("<tr><td><table class=\"menu\"><tr><td><strong> cis-acting Elements Database: </strong></td></tr>");
	//document.write("<tr><td><a href=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/promoter.php\">cis-acting Elements</a></td></tr>");
	//document.write("<tr><td><a href=\"http:\/\/info.mcmaster.ca\/fusionlibrary\/cisElement.php\">cis-acting Elements networks</a></td></tr>");
	//document.write("</table>");
	document.write("<tr><td>&nbsp;</td></tr>");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/links.htm\">Links</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/people.htm\">People</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	//document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/restricted\/metabolomics\/metabolomics.html\"><em>S.meliloti</em> metabolomics</a></td>");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/pics.htm\"><em>S.meliloti </em>pictures</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	//document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/restricted\/presentationMenu.htm\">Presentation</a></td></tr>");
	//document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/restricted\/report.html\">Report</a></td></tr>");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/pubmed.html\">Recent Rhizobiales literature</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/search.htm\">Search this website</a></td></tr>");
	document.write("<tr><td>&nbsp;</td></tr>");
	//document.write("<tr><td><table class=\"menu\"><tr><td><strong> Contacts for strain : </strong></td></tr>");
	document.write("<tr><td><table class=\"menu\"><tr><td><strong> Contacts for strain : </strong></td></tr>");
	document.write("<tr><td><a href=\"mailto:cowieal@mcmaster.ca\">A.Cowie </a></td></tr>");
	document.write("<tr><td>OR</td></tr>");
	document.write("<tr><td><a href=\"mailto:finan@mcmaster.ca\">Dr. T. Finan</a></td></tr>");
	document.write("</table>");
	document.write("</table>");
	document.close();
}


function drawHorizontalMenu()
{
	document.write("<table class=\"menu\" width=\"100%\" align=\"left\">");
	document.write("<tr><td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/index.htm\">Home</a></td>");
	document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/people.htm\">People</a></td>");
	document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/links.htm\"></a>Links</td>");
	document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/pics.htm\"><em>S.meliloti </em>pictures</a></td>");
	document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/pubmed.html\">Recent Rhizobiales literature</a></td>");
	document.write("<td><a href=\"http:\/\/evol.mcmaster.ca\/sino\/search.htm\">Search this website</a></td>");
	document.write("<td><a href=\"mailto:sino@evol.biology.mcmaster.ca\">Contact Us</a></td></tr>");
	document.write("</table>");
	document.close();
}

function popUp(URL) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menu	bar=0,resizable=0,width=200,height=200,left = 540,top = 412');");
}

function getVal()
{
	/*	
	var cnt=0;
	var tval=document.frnna.syn.value;
	alert("You entered:"+tval);
	//var pattern="/"+tval+"/i";
	var pattern= new RegExp(tval,"i");
	alert("You pattern1:"+pattern+document.frnna.genea.options[cnt].text+document.frnna.genea.options[cnt].value);
	while(! (pattern.test(document.frnna.genea.options[cnt].text)))
	//while(document.frnna.genea.options[cnt].text && cnt <7)
	{
		//alert("Check "+ cnt +" "+document.frnna.genea.options[cnt].text);
		//if(pattern.test(document.frnna.genea.options[cnt].text)){ alert("Found "+" "+document.frnna.genea.options[cnt].text);}
		cnt++;
	}
	alert("Found "+" "+document.frnna.genea.options[cnt].text);
	document.frnna.genea.options[cnt].selected="true";
	//document.frnna.genea.onchange;
	document.frnna.genea.options[cnt].focus();
	window.location.reload();
document.frnna.genea.options[cnt].focus();
	alert("SelectedIndex::"+document.frnna.genea.selectedIndex);
	//document.frnna.genea.selectedIndex.focus();
	//document.frnna.genea.scrollIntoView(top);
	*/
}

