////////////////////////////////////////////////////////////////////////
//
//  File: Global CSI Spokane JS file
//  Author: Craig Nelson / Classic Labs
//
//

  // nifty
  document.observe("dom:loaded", function () {
    // Nifty
		Nifty("ul#nav a","transparent same-height");
		Nifty("h2","transparent");
		Nifty("ul#footer-nav a","transparent");
  });
  // --nifty
  
  // 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