//But for the last element like sub-sub menu mouseover functions written in minmen are not applicable, so go in this js file add onmouseover and out functions for last sub-sub menu div element.

var menuOutput = "";
var appvar;
var bordColor = "#000000";
var backColor = "#000000";

menuOutput += "<div class=\"menuBar\" style=\"position: absolute; z-index:100; left:170px; top:76px; width:590;\">";


// TRS menu option

if (appvar == "trs")
menuOutput += "<a class=\"menuButton\"  title=\"You are here, on this Page.\" onmouseover=\"buttonMouseover(event, 'trs');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >TRS</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'trs');\" title=\"Click any of the options below to go to that Page.\"  >TRS</a>";


// orp menu option

if (appvar == "orp")
menuOutput += "<a class=\"menuButton\"  title=\"You are here, on this Page.\" onmouseover=\"buttonMouseover(event, 'orp');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >ORP</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'orp');\" title=\"Click any of the options below to go to that Page.\"  >ORP</a>";

// TSA/Texa$aver menu option
if (appvar == "tsa")
menuOutput += "<a class=\"menuButton\" title=\"You are here, on this Page.\" onmouseover=\"buttonMouseover(event, 'tsa');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >Supplemental Retirement Accounts</a>";
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'tsa');\" title=\"Click any of the options below to go to that Page.\" >Supplemental Retirement Accounts</a>";

// social security menu option
if (appvar == "special")
menuOutput += "<a class=\"menuButton\"  href=\"blank.html\" onclick=\"return false;\" title=\"You are here, on this Page.\" onmouseover=\"buttonMouseover(event, 'social');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >Social Security</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'social');\" title=\"Click any of the options below to go to that Page.\"  >Social Security</a>";

// Home menu option
if (appvar == "retirehome")
menuOutput += "<a class=\"menuButton\"  href=\"blank.html\" onclick=\"return false;\" title=\"You are here, on this Page.\"  style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >Retirement Home</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"retirement.aspx\" title=\"Click here to go to Retirement Home Page.\"  >Retirement Home</a>";


menuOutput += "</div>";

//TRS submenu option

menuOutput += "<div id=\"trs\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/docs/TRS-ORP-Overview.pdf\">TRS Overview</a>";
menuOutput += "<a class=\"menuItem\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, 'trsforms');\"><span class=\"menuItemText\">TRS Forms</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "<a class=\"menuItem\" href=\"http://www.depts.ttu.edu/personnel/retirement/retirecal.aspx\">Calculate Retirement effective date</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/Trs6.pdf\">Notice of Request for Refund</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS11.pdf\">Designation of Beneficiary</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS358F.pdf\">Change of Address</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS18.PDF\">Request for Estimate of Retirement Benefits</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"https://oapi.trs.state.tx.us/OSSA/do/retireCalcStartPage?grandFlag=N\">TRS Retirement Estimate Calculator(Non-Grandfathered members)</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"https://oapi.trs.state.tx.us/OSSA/do/retireCalcStartPage?grandFlag=Y\">TRS Retirement Estimate Calculator(Grandfathered members)</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/benefits/documents/benefits_handbook.pdf\">TRS Retirement Service Credit Purchase</a>";
//menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Benefits/ServiceCalc.htm\">TRS Retirement Service Credit Purchase Estimate Calculator</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Benefits/emp_afteret.pdf\">TRS Employment after Retirement</a>";
menuOutput += "<div class=\"menuItemSep\"></div>"
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/\">TRS Website</a>";
menuOutput += "</div>";

//TRS Forms sub-sub-menu options  

menuOutput += "<div id=\"trsforms\" class=\"menu\" onmouseover=\"mouseondiv()\">";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/benprocess5.aspx#trs\">TRS Enrollment Authorization Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS6_sept03.pdf\">TRS Notice of Request for Refund</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS11.pdf\">TRS Designation of Beneficiary</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS358F.pdf\">TRS Change of Address</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS18.PDF\">TRS Request for Estimate of Retirement Benefits</a>";
menuOutput += "</div>";

//ORP submenu option

menuOutput += "<div id=\"orp\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/docs/TRS-ORP-Overview.pdf\">ORP Overview</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/opmanual/OP70.07.pdf\">ORP - OP 70.07</a>";
menuOutput += "<a class=\"menuItem\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, 'orpforms');\"><span class=\"menuItemText\">ORP Forms</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "<a class=\"menuItem\" href=\"http://www.depts.ttu.edu/personnel/orpcorep.aspx\">List of approved companies</a>";
menuOutput += "<a class=\"menuItem\" href=\"http://www.depts.ttu.edu/personnel/retirement/orpcal.aspx\">Calculate the Retirement 90th day Eligibility for ORP Purposes</a>";
menuOutput += "<a class=\"menuItem\" href=\"http://www.depts.ttu.edu/personnel/retirement/ORPVendors.aspx\">ORP Company Administrative Procedures</a>";
menuOutput += "</div>";

//TSA submenu option

menuOutput += "<div id=\"tsa\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/opmanual/OP70.05.pdf\">Income Tax Sheltered Programs</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/opmanual/OP70.09.pdf\">Tax Sheltered Annuity Program</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/opmanual/OP70.09A.pdf\">TSA Enrollment Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/docs/LIST - TSA 7-May5,2008.pdf\">List of TSA approved companies</a>";
menuOutput += "<div class=\"menuItemSep\"></div>"
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"https://info.plan.csplans.com/default.asp?cl=TEXAS&pl=680501PU&page=plan_informationintroduction&domain=texasaver.csplans.com\">Texa$aver Deferred Compensation Program</a>";
menuOutput += "</div>";


//special instructions submenu option

menuOutput += "<div id=\"social\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.ssa.gov/\">Social Security Online</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.ssa.gov/retire2/index.htm\">Social Security Retirement Planner</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.ssa.gov/pubs/10070.html\">Social Security Retirement Benefits Calculations</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.ssa.gov/planners/calculators.htm\">Social Security Retirement Benefits Calculator</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"https://s044a90.ssa.gov/apps6z/FOLO/fo001.jsp\">Social Security Office Locator</a>";
menuOutput += "</div>";

//TRS - TRS Forms sub-sub-menu options  

menuOutput += "<div id=\"trsforms\" class=\"menu\" onmouseover=\"mouseondiv()\">";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/benprocess5.aspx#trs\">TRS Enrollment Authorization Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS6_sept03.pdf\">TRS Notice of Request for Refund</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS11.pdf\">TRS Designation of Beneficiary</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS358F.pdf\">TRS Change of Address</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS18.PDF\">TRS Request for Estimate of Retirement Benefits</a>";
menuOutput += "</div>";

//ORP - ORP Forms sub-sub-menu options  

menuOutput += "<div id=\"orpforms\" class=\"menu\" onmouseover=\"mouseondiv()\">";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"orpforms/InfoAcknowledge.pdf\">ORP Information Acknowledgement Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"orpforms/SalReduction.pdf\">ORP Salary Reduction Acknowledgment / Change of Company Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"orpforms/TransferRequest.pdf\">ORP Transfer Request Form</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/Forms/TRS28.PDF\">ORP Notice of Election to Participate</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.trs.state.tx.us/global/forms/form_29.pdf\">ORP Application for Refund Form</a>";
menuOutput += "</div>";


document.write(menuOutput);
