//////////////////////////////////////////////////////////
//
//  File: RCI global javascript file
//  Author: Craig Nelson - Classic Labs
//
  
  // main menu rollovers
  var menuHover = function() {
  	var elements = $$('#nav li');
  	elements.each(function(e) {
  	  e.onmouseover = function() {
  			this.addClassName('hov');
  		}
  		e.onmouseout = function() {
  			this.removeClassName('hov');
  		}
  	});
  }
  if (window.attachEvent) {
    window.attachEvent("onload", menuHover);
  }
  // --main menu rollovers
  
  // non-clickable and external links
  Event.observe(window, 'load', function() {
    var anchors = $$('a');
    anchors.each(function(e) {
      if (e.getAttribute('rel') == 'no-click') {
        e.onclick = function() {
          return false;
        }
      }
      if (e.getAttribute('rel') == 'external') {
        e.target = '_blank';
      }
    });
  });
  // --non-clickable and external links
