//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:175px; top:76px; width:585;\">";


// first menu option

if (appvar == "escresp")
menuOutput += "<a class=\"menuButton\" title=\"You are here, on this Page.\" style=\"color:#ffffff; border: 1px outset "+bordColor+"; background-color: "+backColor+";\" >ESC Responsibilities</a>";
else
menuOutput += "<a class=\"menuButton\" href=\"escresp.aspx\" title=\"Click here to go to ESC Responsibilities.\">ESC Responsibilities</a>";


// second menu option

if (appvar == "esctrain")
menuOutput += "<a class=\"menuButton\" title=\"You are here, on this Page.\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >ESC Training</a>";
else
menuOutput += "<a class=\"menuButton\" target=\"_blank\" href=\"http://www.depts.ttu.edu/quality/register/reghrs400.htm\" title=\"Click here to go to ESC Training\"  >ESC Training</a>";

// third menu option
if (appvar == "newemp")
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" title=\"You are here, on this Page.\" onmouseover=\"buttonMouseover(event, 'newemp');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >New Employee Processing</a>";
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'newemp');\" title=\"Click any of the options below to go to that Page.\" >New Employee Processing</a>";

// fourth 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, 'special');\" style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >Special Instructions</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"buttonMouseover(event, 'special');\" title=\"Click any of the options below to go to that Page.\"  >Special Instructions</a>";

// fifth menu option
if (appvar == "eschome")
menuOutput += "<a class=\"menuButton\"  title=\"You are here, on this Page.\"  style=\"color:#ffffff; border: 1px outset "+bordColor+";  top:-1px; left:1px;background-color: "+backColor+";\" >ESC Home</a>"
else
menuOutput += "<a class=\"menuButton\" href=\"esc.aspx\" title=\"Click here to go to ESC Home Page.\"  >ESC Home</a>";


menuOutput += "</div>";

//new employee submenu option

menuOutput += "<div id=\"newemp\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" href=\"nep.aspx\">New Employee Packet</a>";
menuOutput += "<a class=\"menuItem\" href=\"escnepchecklist.aspx\">New Employee Packet - Checklist</a>";
menuOutput += "<div class=\"menuItemSep\"></div>"
menuOutput += "<a class=\"menuItem\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, 'orient');\"><span class=\"menuItemText\">New Employee Orientation</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "<div class=\"menuItemSep\"></div>"
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"NewEmployeeOrientationGuide.doc\">Orientation Guide</a>";
menuOutput += "</div>";

//Orientation sub-submenu option

menuOutput += "<div id=\"orient\" class=\"menu\" onmouseover=\"menuMouseover(event)\">";
menuOutput += "<a class=\"menuItem\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, 'staff');\"><span class=\"menuItemText\">Faculty / Staff</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "<div class=\"menuItemSep\"></div>"
menuOutput += "<a class=\"menuItem\" href=\"blank.html\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, 'grad');\"><span class=\"menuItemText\">Graduate Students</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "</div>";

//Faculty Staff sub-sub-sub-menu options

menuOutput += "<div id=\"staff\" class=\"menu\" onmouseover=\"mouseondiv()\">";
menuOutput += "<a class=\"menuItem\" target=\"_self\" href=\"http://www.depts.ttu.edu/personnel/benstafforientsched.aspx\">Orientation Schedule</a>";
//menuOutput += "<a class=\"menuItem\" target=\"_self\" href=\"https://www.depts.ttu.edu/personnel/regorient.aspx\">Register for Orientation</a>";
menuOutput += "</div>";

//Graduate Students sub-sub-sub-menu options

menuOutput += "<div id=\"grad\" class=\"menu\" onmouseover=\"mouseondiv()\">";
menuOutput += "<a class=\"menuItem\" target=\"_self\" href=\"http://www.depts.ttu.edu/personnel/bengradorientsched.aspx\">Orientation Schedule</a>";
//menuOutput += "<a class=\"menuItem\" target=\"_self\" href=\"https://www.depts.ttu.edu/personnel/regorientgrad.aspx\">Register for Orientation</a>";
menuOutput += "</div>";

//special instructions submenu option

menuOutput += "<div id=\"special\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" href=\"foreignemp.aspx\"  onmouseover=\"menuItemMouseover(event, 'foreign');\"><span class=\"menuItemText\">Foreign Employees</span><span class=\"menuItemArrow\">&#9654;</span></a>";
menuOutput += "<a class=\"menuItem\" href=\"missingsscard.aspx\">Missing Social Security Card</a>";
menuOutput += "</div>";

//foreign employee - special instructions sub-submenu option

menuOutput += "<div id=\"foreign\" class=\"menu\" onmouseover=\"menuMouseover(event)\" >";
menuOutput += "<a class=\"menuItem\" href=\"foreignnewemp.aspx\">New Employees (Foreign)</a>";
menuOutput += "<a class=\"menuItem\" href=\"foreignempvisa.aspx\">Change of Citizenship/Visa status</a>";
menuOutput += "<a class=\"menuItem\" href=\"foreignemprever.aspx\">Re-verification Process</a>";
menuOutput += "<a class=\"menuItem\" target=\"_blank\" href=\"http://www.depts.ttu.edu/personnel/docs/Offer%20of%20Employment%20-%20F1%20student.doc\">Offer of Employment to F1 Student</a>";
menuOutput += "</div>";


document.write(menuOutput);
