function writeMenu()
{
	var c=''
	c+='<table class="menu" cellspacing="0" border="0">'
	c+='<tr>'
	c+='	<td class="tab-inactive" id="tab1" onMouseOver="tab1Active()"><a class="tablink" href="http://www.maicomputing.com">Home</a></td>'
	c+='	<td class="tab-inactive" id="tab2" onMouseOver="tab2Active()"><a class="tablink" href="http://www.maicomputing.com/prodserv">Products</a></td>'
	c+='	<td class="tab-inactive" id="tab3" onMouseOver="tab3Active()"><a class="tablink" href="http://www.maicomputing.com/svcsupport">Support</a></td>'
	c+='	<td class="tab-inactive" id="tab4" onMouseOver="tab4Active()"><a class="tablink" href="http://www.maicomputing.com/about">About</a></td>'
	c+='	<td class="tab-inactive tab-right" id="tab5" onMouseOver="tab5Active()"><a class="tablink" href="http://www.maicomputing.com/tools">Tools</a></td>'
	c+='</tr>'
	c+='<tr>'
	c+='	<td class="link-row" id="menu-links" colspan="5">MAI Computing, Inc.</td>'
	c+='</tr>'
	c+='</table>'

	document.write(c)
}

function tab1Active()
{
	document.getElementById('tab1').className = 'tab-active'
	var offTab = new Array('tab2','tab3','tab4','tab5')	
	inactiveTabs(offTab)	
	document.getElementById('menu-links').innerHTML = '<a href="http://www.maicomputing.com">MAI Computing Home Page</a>'	
}
function tab2Active()
{
	document.getElementById('tab2').className = 'tab-active'
	var offTab = new Array('tab1','tab3','tab4','tab5')	
	inactiveTabs(offTab)
	document.getElementById('menu-links').innerHTML = '<a href="http://www.maicomputing.com/prodserv/store.html">Online Store</a><span class="bar"> | </span><a href="http://www.maicomputing.com/prodserv/brochure.html">Brochure</a><span class="bar"> | </span><span class="bar" title="Coming Soon"><i>Quotes</i></span><span class="bar"> | </span><a href="http://www.maicomputing.com/prodserv/">Services</a>'
}
function tab3Active()
{
	document.getElementById('tab3').className = 'tab-active'
	var offTab = new Array('tab1','tab2','tab4','tab5')	
	inactiveTabs(offTab)
	document.getElementById('menu-links').innerHTML = '<a href="http://www.maicomputing.com/svcsupport/updates">Updates</a><span class="bar"> | </span><a href="http://www.maicomputing.com/svcsupport/drivers">Drivers</a><span class="bar"> | </span><a href="http://www.maicomputing.com/svcsupport/genterms.html">Terms and Conditions</a>'

}
function tab4Active()
{
	document.getElementById('tab4').className = 'tab-active'
	var offTab = new Array('tab1','tab2','tab3','tab5')	
	inactiveTabs(offTab)
	document.getElementById('menu-links').innerHTML = '<a href="http://www.maicomputing.com/about/contact.html">Contact</a><span class="bar"> | </span><a href="http://www.maicomputing.com/about/info.html">Company Info</a>'
}
function tab5Active()
{
	document.getElementById('tab5').className = 'tab-active tab-right'
	var offTab = new Array('tab1','tab2','tab3','tab4')	
	inactiveTabs(offTab)
	document.getElementById('menu-links').innerHTML = '<a href="http://www.maicomputing.com:2095/">WebMail</a><span class="bar"> | </span><a href="https://www.maicomputing.com:2083/">cPanel</a><span class="bar"> | </span><a href="http://www.maicomputing.com/timesheet.php">Timesheet</a><span class="bar"> | </span><a href="http://www.maicomputing.com/upload">File Upload</a><span class="bar"> | </span><a href="http://dashboard.maicomputing.com/">Dashboard</a>'
}

function inactiveTabs(arr)
{
	for (i=0; i<4; i++)
	{
		document.getElementById(arr[i]).className = 'tab-inactive'
	}
	
	if (arr[3] == 'tab5')
	{
		document.getElementById('tab5').className = 'tab-inactive tab-right'
	}
}