//************NAVIGATION MENU FILE **********************
//***Author: Tatiana Kiseleva, kise0179@oakton.edu, me@kiseta.net

//***Comments that explain how the file works start with //***
//***Comments to the actual code starts with //
//***Editable code starts with ///

//***THE FOLLOWING CODE DETERMINES THE PAGE NAME 
//***Folder name where the web site is located
//***and the folder name specified in slashVal( "web_lan/") variable 
//***should be the same

//declare variables
var surl, surll, slashVal

//ASSIGN VALUES
//get full file url
surl = document.URL

//find the url string length
surll = surl.length
//find "web_lan/" in the url
slashVal = surl.indexOf( "web_lan/" , 0) 

//***The following code writes the values of the variables to the page
//document.writeln(slashVal)
//document.writeln(surl)
//document.writeln(surll)

//find the file name 
//***+number should be equal to the number of characters in folder name - web_lan/ - 8 characters
sFileName = surl.substring(slashVal+8,surll)
//document.writeln(sFileName)
//document.write("")

//*** To add a new menu item copy and paste the following code
//*** replace filename.htm(2 places) Menu Item(2 places) with actual file name and menu item caption

//check Menu Item 
///document.write("<tr><td nowrap>")
///if (sFileName =="filename.htm")
///{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Menu Item</span>")}
///else  
///{document.write("<a class='menuItem' href='filename.htm'>Menu Item</a>")}
///document.write("</td></tr>")
//***********************************************************************


//***To add a new section heading copy and paste the following code

///document.write("<tr><td class='MenuHead' nowrap>SECTION HEADING</td></tr>")
//***********************************************************************



//********** BEGIN MENU *******************
//based on page name
document.write("<table border='0' cellpadding='3' cellspacing='0' width='167'>")

document.write("<tr><td class='MenuHead' nowrap>WELCOME</td></tr>")

//check Home 
document.write("<tr><td nowrap>")
if (sFileName =="index.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Home</span>")}
else  
{document.write("<a class='menuItem' href='index.htm'>Home</a>")}
document.write("</td></tr>")

//check About Us 
document.write("<tr><td nowrap>")
if (sFileName =="aboutus.htm") 
{document.write("<img src='images/arrind.gif' width='15' height='10'><span  class='menuItemS'>About CNS Program</span>")}
else  
{document.write("<a class='menuItem' href='aboutus.htm'>About CNS Program</a>")}
document.write("</td></tr>")

//check Instructors
document.write("<tr><td nowrap>")
if (sFileName =="instructors.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>CNS Instructors</span>")}
 else  
{document.write("<a class='menuItem' href='instructors.htm'>CNS Instructors</a>")}
document.write("</td></tr>")


//check CNS Program Advisory Committee
document.write("<tr><td nowrap>")
if (sFileName =="CNS_Advisory_Committee.pdf") 
{document.write("<img src='images/arrind.gif' width='15' height='10'><span  class='menuItemS'>Advisory Committee</span>")}
else  
{document.write("<a class='menuItem' href='advisory_committee.htm'>Advisory Committee</a>")}
document.write("</td></tr>")

//check events and announcements
document.write("<tr><td nowrap>")
if (sFileName =="news.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>News and Announcements</span>")}
else  
{document.write("<a class='menuItem' href='news.htm'> News and Announcements</a>")}
document.write("</td></tr>") 

//check Contact CNS
document.write("<tr><td nowrap>")
if (sFileName =="contactus.htm") 
{document.write("<img src='images/arrind.gif' width='15' height='10'><span  class='menuItemS'>Contact CNS Program</span>")}
else  
{document.write("<a class='menuItem' href='contactus.htm'>Contact CNS Program</a>")}
document.write("</td></tr>")

document.write("<tr><td nowrap><br></td></tr><tr><td class='MenuHead' nowrap>PROGRAM INFO</td></tr>")
//Career Information page
document.write("<tr><td nowrap>")
if (sFileName =="faquestions.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>Frequently Asked<br>    Questions</a>")}
else  
{document.write("<a class='menuItem' href='newcareers.htm'>Career Information</a>")}
document.write("</td></tr>")

//What's Hot
// document.write("<tr><td nowrap>")
// if (sFileName =="whatshot.htm")
// {document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>What's Hot</a>")}
// else  
// {document.write("<a class='menuItem' href='http://www.oakton.edu/~barcher/whatshot.htm' target='_blank'> What's Hot</a>")}
// document.write("</td></tr>")

//Microsoft Certification
document.write("<tr><td nowrap>")
if (sFileName =="index.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>Microsoft Certification</a>")}
else  
{document.write("<a class='menuItem' href='http://www.microsoft.com/learning/mcp/default.asp' target='_blank'>Microsoft Certification </a>")}
document.write("</td></tr>")

//Chicago Computer Society
document.write("<tr><td nowrap>")
if (sFileName =="ccs.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>Chicago Computer Society</a>")}
else  
{document.write("<a class='menuItem' href='http://students.oakton.edu/ccs/' target='_blank'> Chicago Computer Society</a>")}
document.write("</td></tr>")

//check Questions page
document.write("<tr><td nowrap>")
if (sFileName =="faquestions.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>Frequently Asked<br>Questions</a>")}
else  
{document.write("<a class='menuItem' href='faquestions.htm'>Frequently Asked Questions</a>")}
document.write("</td></tr>")

//check Links and Resources
document.write("<tr><td nowrap>")
if (sFileName =="links.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'><span class='menuItemS'>Links and Resources</span>")}
else  
{document.write("<a class='menuItem' href='links.htm'>Links and Resources</a>")}
document.write("</td></tr>")

document.write("<tr><td nowrap><br></td></tr><tr><td class='MenuHead' nowrap>COURSES</td></tr>")

//check course descr
document.write("<tr><td nowrap>")
if (sFileName =="coursedescription.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Course Description</span>")}
else  
{document.write("<a class='menuItem' href='http://www.oakton.edu/acad/catalog/crscat4.html#cns' target='_blank'>Course Descriptions</a>")}
document.write("</td></tr>")


//check course descr
// document.write("<tr><td nowrap>")
// if (sFileName =="coursedescription.htm")
// {document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Course Description</span>")}
// else  
// {document.write("<a class='menuItem' href='coursedescription.htm'>Course Descriptions</a>")}
// document.write("</td></tr>")

//check syllabi
document.write("<tr><td nowrap>")
if (sFileName =="coursesyllabi.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Course Syllabi</span>")}
else  
{document.write("<a class='menuItem' href='coursesyllabi.htm'>Course Syllabi</a>")}
document.write("</td></tr>")

//exam prep courses
document.write("<tr><td nowrap>")
if (sFileName =="examprep.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Exam Prep Courses</span>")}
else  
{document.write("<a class='menuItem' href='examprep.htm'> Exam Prep Courses</a>")}
document.write("</td></tr>")

//current course schedule
document.write("<tr><td nowrap>")
if (sFileName =="schedule.doc")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Current Course Schedule</span>")}
else  
{document.write("<a class='menuItem' href='schedule.htm' target='_blank'> Current Course Schedule</a>")}
document.write("</td></tr>")

//check Microsoft courses at Oakton
document.write("<tr><td nowrap>")
if (sFileName =="coursedescription.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Microsoft Courses</span>")}
else  
{document.write("<a class='menuItem' href='microsoft.htm'>Microsoft Courses</a>")}
document.write("</td></tr>")

document.write("<tr><td nowrap><br></td></tr><tr><td class='MenuHead' nowrap>CERTIFICATES</td></tr>")

//check degree program
// document.write("<tr><td nowrap>")
// if (sFileName =="degreeprogram.htm")
// {document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Degree Program</span>")}
// else  
// {document.write("<a class='menuItem' href='degreeprogram.htm'> Degree Program</a>")}
// document.write("</td></tr>")

//check certificates offered 
document.write("<tr><td nowrap>")
if (sFileName =="http://www.oakton.edu/acad/career/cnt_p2.htm")
{document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>College CNS Certificates</span>")}
else  
{document.write("<a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm' target='_blank'> Oakton CNS Certificates</a>")}

document.write("<tr><td><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm#mcse'>MS Certified Systems <br>Engineer (MCSEŽ)</a></td></tr>")
document.write("<tr><td height='22' nowrap><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm#networkadmin'>Network Administration </a></td></tr>")
document.write("<tr><td height='22' nowrap><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm#0153'>Windows Support Technician</a> </td> </tr>")
document.write("<tr><td height='22' nowrap><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm#0152'>Network Security Administrator</a></td></tr>") 
document.write("<tr><td height='22' nowrap><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm'>Network Security</a></td></tr>") 
document.write("<tr><td height='22' nowrap><a class='menuItem' href='http://www.oakton.edu/acad/career/cns_p2.htm#ccna'>Cisco Certified Network <br> Associate</a></td></tr>") 
document.write("</td></tr>")

//check certificate 2
// document.write("<tr><td nowrap>")
// if (sFileName =="certificate2.htm")
// {document.write("<img  src='images/arrind.gif' width='15' height='10' alt='You are here'><span class='menuItemS'>Certificate # 2</span>")}
// else  
// {document.write("<a class='menuItem' href='certificate2.htm'> Certificate # 2</a>")}
// document.write("</td></tr>")

    
document.write("<tr><td nowrap><br></td></tr></table>")

//********** END MENU *******************