/*
 * wje.js
 * Andy Clifton
 * 2-09
 */

function init()
{
  // Remove the border from the last menu item, so that the borders
  // appear only _between_ menu items.
  $("#menu li:last-child").css("borderBottomStyle", "none");
  
  // The first real child of #content _must_ not have a top margin, or it throws
  // off the menu alignment.
  $("#menuBox").next().css("marginTop","0");   
  
  // Mark the current menu <li> item with .selected.
  var page = window.location.pathname;
  page = page.substr(page.lastIndexOf("/")+1);
  if(page == "")
    page = "index.html"; 
  
  $("#menu li:has(a[href='" + page + "'])").addClass("selected");
  
}


$(document).ready(init);

