function HorizontalMenu(page)
{
document.write('<table width="775" border="0" align="center" height="10" style="border-collapse: "collapse" bgcolor="#990000" bordercolor="#486E77"  cellpadding="0" cellspacing="0">')
document.write('<tr>')

MenuTableData(page, 'Home', 'index.html', 'menu', 'menucurrent')
MenuTableData(page, 'Smart Homes', 'DigitalHome.html', 'menu', 'menucurrent')
MenuTableData(page, 'Computer Services', 'ComputerServices.html', 'menu', 'menucurrent')
MenuTableData(page, 'Assistive Living', 'AssistiveLiving.html', 'menu', 'menucurrent')
MenuTableData(page, 'About', 'about.htm', 'menu', 'menucurrent')
MenuTableData(page, 'Contact Us', 'ContactUs.htm', 'menu', 'menucurrent')
MenuTableData(page, 'Partners', 'Partners.html', 'menu', 'menucurrent')
document.write('<td width="5"></td>')

document.write('</tr>')
document.write('</table>')
}


function VerticalMenu(page)
{
document.write('<table border="0" height="10" style="border-collapse: collapse" bgcolor="#990000" bordercolor="#486E77" cellpadding="0" cellspacing="0">')
document.write('<tr>')
MenuTableData(page, 'Home', 'index.html')
document.write('</tr>')
document.write('<tr>')
MenuTableData(page, 'About', 'About.htm')
document.write('</tr>')
document.write('<tr>')
MenuTableData(page, 'Contact Us', 'ContactUs.htm')
document.write('</tr>')
document.write('<tr>')
MenuTableData(page, 'Partners', 'Partners.html')
document.write('</tr>')
document.write('</table>')

document.write('<h2>' + '' + '</h2>')
}


function ComputerServices(page)
{
document.write('<table style="border-collapse: collapse; width: 206px; height: 	100px; border="0" bordercolor="#486e77" cellpadding="0" cellspacing="0">')
MenuListData(page, 'New Computer Set Up', 'ComputerSetup.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Wireless', 'Wireless.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Troubleshooting', 'TroubleShooting.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Partners', 'Partners.html', 'menulist', 'menulistcurrent')
document.write('</table>')

document.write('<h2>' + '' + '</h2>')
}

function DigitalHome(page)
{
document.write('<table style="border-collapse: collapse; width: 206px; height: 	100px; border="0" bordercolor="#486e77" cellpadding="0" cellspacing="0">')
MenuListData(page, 'Whole House Entertainment Systems', 'WholeHouse.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Home Theater Systems', 'HomeTheater.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Lighting Systems', 'Lighting.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Networking Systems', 'Networking.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Home Control Systems', 'HomeControl.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Life Saftey Systems', 'LifeSaftey.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Telephone Systems', 'Telephone.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Computer Systems', 'Computer.html', 'menulist', 'menulistcurrent')
MenuListData(page, 'Cool Gadgets', 'CoolGadgets.html', 'menulist', 'menulistcurrent')
document.write('</table>')

document.write('<h2>' + '' + '</h2>')
}


function MenuTableData(page, data, href, menuclass, menucurrentclass)
{
document.write('<td><a')

if ( page == data) {
	document.write(' class="' + menucurrentclass + '"')
} else {
	document.write(' class="' + menuclass + '"')
}
document.write(' href="' + href + '">&nbsp;&nbsp;' + data + '&nbsp;&nbsp;&nbsp;</a></td>')
}

function MenuListData(page, data, href, menuclass, menucurrentclass)
{
document.write('<tr><td><a')

if ( page == data) {
	document.write(' class="' + menucurrentclass + '"')
} else {
	document.write(' class="' + menuclass + '"')
}
document.write(' href="' + href + '">' + data + '</a></td></tr>')
}
