var bg_colour = "#4D0063"
var menu_item1 = "Portal Entry"
var menu_item2 = "Performance Issues"
var menu_item3 = "Practice Profitability"
var menu_item4 = "Practice Efficiency"
var menu_item5 = "Performance Statistics"
var menu_item6 = "Software Analysis"

var src_image
var fontsize = 2

// Get the current page name eg. "accountants.htm"

var page_path = window.location.pathname
var page_name = page_path.substring(page_path.lastIndexOf('/') + 1)

// If we are on the accountants portal home page then set the menu name to "Home" and point it to the file
// "index.htm".  Otherwise set it to "Portal Entry" and point it to "accountants.htm".
    
if (page_name == "accountants.htm") {
	menu_item1 = "TBSS Home"
	menu_item2 = ""
	menu_item3 = ""
	menu_item4 = ""
	menu_item5 = ""
	menu_item6 = ""
	src_image  = "images/TBS8896_WebHeader_950.jpg"
}
else if (page_name == "contact_accountants.htm") {
	menu_item1 = "Portal Entry"
	menu_item2 = ""
	menu_item3 = ""
	menu_item4 = ""
	menu_item5 = ""
	menu_item6 = ""
	src_image  = "images/TBS8896_WebHeader_950.jpg"
	}
else {
	menu_item1 = "Portal Entry"
	src_image  = "../images/TBS8896_WebHeader_950.jpg"
	} 

function set_menu_action() {
	if (page_name == "accountants.htm") {
		return "index.htm"
	}
	else {
		return "../accountants.htm"
	} 
}

document.write("<div align='center'>")
document.write("<img border='0' src='" + src_image + "' width='950' height='80'>")
document.write("</div>")
document.write("<div align='center'>")
document.write("<table border='0' style='border-collapse: collapse' width='950' id='table2'>")
document.write("<tr>")

document.write("<td bgcolor='#4D0063' align='center' width='16%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='" + set_menu_action() + "' class='menu_header'>" + menu_item1 + "</a></font></b></td>")

document.write("<td bgcolor='#4D0063' align='center' width='17%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='perf_issues.htm' class='menu_header'>" + menu_item2 + "</a></font></b></td>")

document.write("<td bgcolor='#4D0063' align='center' width='17%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='profit.htm' class='menu_header'>" + menu_item3 + "</a></font></b></td>")

document.write("<td bgcolor='#4D0063' align='center' width='17%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='efficiency.htm' class='menu_header'>" + menu_item4 + "</a></font></b></td>")

document.write("<td bgcolor='#4D0063' align='center' width='17%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='perf_stats.htm' class='menu_header'>" + menu_item5 + "</a></font></b></td>")

document.write("<td bgcolor='#4D0063' align='center' width='16%' height='25' style='border-top: 1px solid #FFFFFF'><b>")
document.write("<font color='#C0C0C0' face='Tahoma' size='" + fontsize + "'>")
document.write("<a href='software_analysis.htm' class='menu_header'>" + menu_item6 + "</a></font></b></td>")
document.write("</tr>")
document.write("</table>")
document.write("</div>")
