/***************************************************************************

  WARNING: ALWAYS BACKUP THIS FILE *BEFORE* MODIFYING!

                  Engineering Division Javascript file

   filename             : engdiv_script.jss
   website              : http://units.sla.org/division/deng/
   Date                 : Dec 15, 2008
   Note                 : Drives the common elements that appear on ALL
                          pages of the above site and other common styling
                          and/or content.
   functions:
      engdiv_flash_news(): Display flash news contents
      engdiv_menu(fname):  Take fname as parameter and display the navigation menu.  If fname is a filename
                           that has direct link from the menu, then highlight that button.
      engdiv_maintenance_msg(): Display the maintenance person contact info at the bottom line of the footer.
                                This does NOT include update date as it may differ from page to page.
      engdiv_copyright_msg(): Display the copyright message of the site at the top of the footer.
      engdiv_show_engdiv_logo(): Display Engineering Division SLA logo as a link to take to Home page of the above site.
      engdiv_show_sla_logo(): Display SLA logo as a link that pops up sla website.
      engdiv_show_site_title(): Display the title of the site.  At the time of development, it was ENGINEERING DIVISION.

****************************************************************************/

function engdiv_flash_news()
{
/* COMMENT BEGINS */
/* This function generates the following HTML code displaying everything inside flash news box on the right side */
/*
                  <p class="flashhead">Latest News</p>
                  <p>Engineering Librarian Award  Awarded</p>
                  <p>Inspec Travel Stipend Award Awarded</p>
                  <p>Elsevier Engineering Librarian Awarded</p>
                  <p><a href="engdiv_awards.htm" class="flashlink2">More Info...</a></p>
                  <p>&nbsp;</p>
                  <p align="center"><a href="engdiv_scitech_news.htm" class="flashlink3">SciTech News</a></p>
*/
/* COMMENT ENDS */

  document.write("<p class=\"flashhead\">Latest News</p>")
  document.write("<p> <font color=\"red\"> Calling for Nominations...</font></p>") 
  document.write("<p>Engineering Librarian Award  Award</p>")
  document.write("<p>Inspec Travel Stipend Award Award</p>")
  document.write("<p>Elsevier Engineering Librarian Award</p>")
  document.write("<p><a href=\"engdiv_awards.htm\" class=\"flashlink2\">More Info...</a></p>")
  document.write("<p>\&nbsp\;</p>")
  document.write("<p align=\"center\"><a href=\"engdiv_scitech_news.htm\" class=\"flashlink3\">SciTech News</a></p>")
}



var menu_name = new Array();
var menu_file = new Array();

/* Menu items are numbered zero through n-1 where n is total buttons on menu */
/* menu_name[x] is the name on the button and when clicked, takes you to the filename in menu_file[x] */

/* To reorder, simply move pairs of menu_name and menu_file definitions and renumber them from 0 to n-1 */

/* This is the first button on the menu and always has index zero */

menu_name[0] = "Home";
menu_file[0] = "index.htm";

menu_name[1] = "About the Division";
menu_file[1] = "engdiv_about.htm";

menu_name[2] = "Office\/Board Members";
menu_file[2] = "engdiv_board_members.htm";

menu_name[3] = "Aerospace and Engineering Discussion Lists";
menu_file[3] = "engdiv_aerospace.htm";

menu_name[4] = "Awards and Honors";
menu_file[4] = "engdiv_awards.htm";

menu_name[5] = "Recommended Practices";
menu_file[5] = "engdiv_recommended_practices.htm";

menu_name[6] = "Governing Document";
menu_file[6] = "engdiv_govern.htm";

menu_name[7] = "Mentor\/Career Guidance";
menu_file[7] = "engdiv_mentor.htm";

menu_name[8] = "Jobs";
menu_file[8] = "engdiv_jobs.htm";

menu_name[9] = "Conference Sessions";
menu_file[9] = "engdiv_conferences.htm";

menu_name[10] = "Contact Us";
menu_file[10] = "engdiv_contact_us.htm";

function engdiv_menu(fname)
{
/* COMMENT BEGINS */
/* This function generates the following HTML code displaying the navigation menu on the left side */
/* The page with explicit button on the left menu is marked ACTIVE through the id of li tag while others are not */
/*
                <div id="vmenucontainer">
                <ul id="vmenulist">
                <li id="vactive"><a href="#">Home</a></li>
                <li><a href="engdiv_about.htm">About the Division</a></li>
                <li><a href="engdiv_board_members.htm">Office/Board Members</a></li>
                <li><a href="engdiv_aerospace.htm">Aerospace and Engineering Discussion Lists</a></li>
                <li><a href="engdiv_awards.htm">Awards and Honors</a></li>
                <li><a href="engdiv_govern.htm">Recommended Practices and Governing Document</a></li>
                <li><a href="engdiv_mentor.htm">Mentor/Career Guidance</a></li>
                <li><a href="engdiv_jobs.htm">Jobs</a></li>
                <li><a href="engdiv_conference.htm">Conference Sessions</a></li>
                <li><a href="engdiv_contact_us.htm">Contact Us</a></li>
                </ul>
                </div>
*/
/* COMMENT ENDS */

  var x;

  document.write("<div id=\"vmenucontainer\">")
  document.write("<ul id=\"vmenulist\">")

  for (x in menu_file)
    {
      if ( menu_file[x].toLowerCase() == fname.toLowerCase() )
        {
          document.write("<li id=\"vactive\"><a href=\"#\">" + menu_name[x] + "</a></li>")
        }
      else
        {
          document.write("<li><a href=\"" + menu_file[x] + "\">" + menu_name[x] + "</a></li>")
        }
    }

  document.write("</ul>")
  document.write("</div>")
                

}



function engdiv_maintenance_msg()
{
/* COMMENT BEGINS */
/* This function generates the following HTML code: */
/* Maintained by <a href="mailto:vani.inam@qualcomm.com" class="engdivfooterlink">Vani Inampudi</a>, Qualcomm, Inc.") */

/*  document.write("Maintained by <a href=\"mailto:vani.inam@qualcomm.com\" class=\"engdivfooterlink\">Vani Inampudi</a>, Qualcomm, Inc.") */
/* COMMENT ENDS */

  document.write("Maintained by <a href=\"mailto:vanii@qualcomm.com\" class=\"engdivfooterlink\">Vani Inampudi</a>, Qualcomm, Inc.")
}



function engdiv_copyright_msg()
{
/* COMMENT BEGINS */
/* This function generates the following HTML code: */
/* &copy; &nbsp; 2008 Special Libraries Association - Engineering Division | <a href="engdiv_disclaimer.htm" class="engdivfooterlink">SLA Engineering Division Disclaimer</a> | */
/* COMMENT ENDS */

  document.write("\&copy\;\&nbsp\;2008 Special Libraries Association - Engineering Division | <a href=\"engdiv_disclaimer.htm\" class=\"engdivfooterlink\">SLA Engineering Division Disclaimer</a> |")
}



function engdiv_show_engdiv_logo()
{
/* COMMENT BEGINS */
/* This function generates the following HTML code: */
/* <a href="index.htm"><IMG src="eng_div_sla_logo.gif" border="0" width="100" height="189" align="center" valign="center" /></a> */
/* COMMENT ENDS */

  document.write("<a href=\"index.htm\"><IMG src=\"eng_div_sla_logo.gif\" border=\"0\" width=\"100\" height=\"189\" align=\"center\" valign=\"center\" /></a>")
}



function engdiv_show_sla_logo()
{
/* COMMENT BEGINS */
/* This function generates the following HTML code: */
/* <a href="http://www.sla.org" target="_blank"><IMG src="SLA04m-JPG.jpg" border="0" width="182" height="78" align="center" valign="center" /></a> */
/* COMMENT ENDS */

  document.write("<a href=\"http://www.sla.org\" target=\"_blank\"><IMG src=\"SLA04m-JPG.jpg\" border=\"0\" width=\"182\" height=\"78\" align=\"center\" valign=\"center\" /></a>")
}



function engdiv_show_site_title()
{
  document.write("ENGINEERING DIVISION")
}

/* END OF THIS JAVASCRIPT FILE */

