function writeMenu(path) {
var s = ""
//image file = headerX.png
s = "<table class = menu width = 100%  border=0 cellpadding=0 cellspacing=0><tr valign='middle'  height='41'>"
s = s + "<td  align = left><img src = '" + path + "header7.png'></td>"
s = s + "<td>"

s = s + "<a href = " + path + "index.htm><img width = 40 height = 20 src =" + path + "home2.gif style='border:0' alt='Home'></a>&nbsp;&nbsp;&nbsp;&nbsp;"
s = s + "<a href = " + path + "products.htm><img width = 120 height = 20 src =" + path+"game2.gif style='border:0' alt='Games and Tutorials'></a>&nbsp;&nbsp;&nbsp;"
s = s + "<a href = " + path + "ordering.htm><img width = 50 height = 20 src =" + path + "order2.gif style='border:0' alt='Order'></a>&nbsp;&nbsp;&nbsp;"
s = s + "<a href = " + path + "contact.htm><img width = 60 height = 20 src =" + path + "contact2.gif style='border:0' alt='Contact'></a>&nbsp;&nbsp;&nbsp;"
s = s + "</td></tr></table>"
document.write(s)
}

function writeAds(path){
var s = ""
s = s+ "<br><div class=ad><u>FORMULA 550</u> Learning the equations of motion has never been more fun!</div><br>"
s = s+ "<img align=middle src = " + path + "f550gamesmall.jpg width=95 height=126 style='border:solid black 1pt'><br><br><a href = " + path + "f550/playgame.htm>Play the<br>Formula 550</a><hr width=75%><br>"
//s = s+ "<div class=ad>Play your favorite card games while learning about the elements.</div><br>"
//s = s+ "<a href = " + path + "chemcards/index.htm>ChemCards</a><br>"

document.write(s)

}

function writeVerticalMenu(path){
var s = ""
s = s + "Chemistry<br>"
s = s + "<a href=" + path + "chemcards/index.htm>Chemistry Cards</a><br>"
s = s + "<a href=" + path + "chemcards/itselemental.htm>It's Elemental</a><br>"

s = s + "<br>Physics<br>"
s = s + "<a href=" + path + "f550/index.htm>Formula 550</a><br>"
s = s + "<a href="+ path + "projectIt/index.htm>Plot the Projectile</a><br>"

s = s + "<br>Programming<br>"
s = s + "<a href=" + path + "western/web101/gojo/index.htm>MowerJo</a><br>"
s = s + "<a href=" + path + "western/web101/index.htm target='_blank'>HTML/JS</a><br>"
s = s + "<a href=" + path + "vb101/index.htm target = '_blank'>VB.Net</a><br>"
document.write(s)
}


//NEW HEADER
function writeHeader(title){

document.write('<table class = header solid" cellSpacing="0" width="100%"><tr><td style="TEXT-ALIGN: center" width="305"><img src = header5.png></td><td style="LETTER-SPACING: 3px; TEXT-ALIGN: right; font-weight:bold" height="40"> ' + title + '&nbsp;&nbsp;&nbsp;</td></tr><tr><td class = headermenu colspan="2" style="TEXT-ALIGN: right; color:black; text-decoration:none"><a href = "plan.htm"><span class = "noline">Project Plan</span></a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp; <a href = "menu.htm"><span class = "noline">Main Menu</span></a>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table> ') 

}


function cIn(obj) {
obj.style.color = "white"
//obj.style.borderStyle = "groove"

}

function cOut(obj) {
//obj.style.backgroundColor = "rgb(255,212,104)"
obj.style.color = "#ffcc66"
//obj.style.borderStyle = "ridge"
}

function changecolorin(obj) {
	//alert(obj.)
	obj.color = "orange"
	
	//window.fnthome.color ="red"
	//window.tblhome.style.backgroundColor = "lime"
	}
	function changecolorout(obj) {
	obj.color ="blue"
	//window.tblhome.style.backgroundColor = ""
	}
	
	function OpenVB101() {
	
	winf550 = window.open("vb101/index.htm","VB101")

	}
	
function openf550aa()
{

if(navigator.appName=="Microsoft Internet Explorer") 
	winf550 = window.open("f550aa.htm","F550","status,width=795,height=540,scrollbars, top=0, left=0")
else alert("Sorry you need Internet Explorer.");
}

function openf550am() {
if(navigator.appName=="Microsoft Internet Explorer") 
	winf550 = window.open("f550am.htm","F550","status,width=795,height=540,scrollbars, top=0, left=0")
else alert("Sorry you need Internet Explorer.");

}
