function justwhatis(url){
   myWindow = window.open(url, "theWindow", "toolbar=no,menubar=yes,scrollbars=yes,resizable=yes,status=yes,location=no,left=50,screenX=50,top=50,screenY=50,width=510,height=465");
   myWindow.focus();
   return false;
}
function new_window(url) {
  window.open(url, '_blank', 'width=800,height=550,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'); 
  return false;
}
function slideshow(url) {
  window.open(url, '_blank', 'width=800,height=550,toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes'); 
  return false;
}

// Highlights the nav

Highlight = {
    init: function () {
       if (arguments.callee.done) return; 
       arguments.callee.done = true;
       
       var classparts = document.body.className.split(/ /);

       for (var x=0;x < classparts.length; x++) {
          var classname = classparts[x]
          var idstr = classparts[x] + '-nav';

          var nav = document.getElementById(idstr);
          if (nav) {
             nav.className = "active";
          }
       }
    },
    
    addEvent: function( obj, type, fn ) {
       if ( obj.attachEvent ) {
          obj['e'+type+fn] = fn;
          obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
          obj.attachEvent( 'on'+type, obj[type+fn] );
       } else {
          obj.addEventListener( type, fn, false );
       }
    }
}

Highlight.addEvent(window,'load',Highlight.init)
