/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Jacqueline Porjes :: http://porjes.com/example_css.html */

function show(Me) {
   var section = Me.parentNode;
   var menu = section.parentNode;
   for(var i = 0; i < menu.childNodes.length; i++) {
      if (menu.childNodes[i].length == 0) continue;
      if (typeof menu.childNodes[i].style != 'object') continue;
      menu.childNodes[i].style.width = '2em';
      menu.childNodes[i].style.background = 'url(scripts/mback.jpg) #B4E9FF repeat-y';
      menu.childNodes[i].style.color = '#000';
   }
   section.style.width = '20em';
   section.style.background = "url(scripts/mback2.jpg) #00E0FF repeat-y";
   section.style.color = '#ff0000';
  return true;
}

function showfirst() {
   if (!document.getElementsByTagName)
      return;
   var a = document.body.getElementsByTagName("div");
   for (i = 0; i < a.length; i++) {
      if (a[i].id == "flyout") {
         if (typeof a[i].style != 'object')
            continue;
         var x = a[i].getElementsByTagName("h2");
         for (j = 0; j < x.length; j++) {
            if (x[j].className == "showfirst") {
               if (typeof x[j].style != 'object')
                  continue;
               show(x[j]);
               return;
            }
         }
      }
  }
}

window.onload=showfirst;
