Event.observe(window, 'load', function() {
  if (Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 6) {
    $$('#online-wrap, #share-wrap, #share-dd, .connections-dd-wrap').each(function(e) {
      e.observe('mouseenter', function(event) {
        this.addClassName('over');
      });
      e.observe('mouseleave', function(event) {
        this.removeClassName('over');
      });
    });
  }
  
  // substitutes for target="_blank"
  $$('.external').each(function(link) {
	link.observe('click', function(event) {
	  window.open(this.href);
	  Event.stop(event);
	});
  });

  $$('.popup').each(function(link) {
    link.observe('click', function(event) {

      var width  = 650;
      var height = 490;
      var left   = (screen.width  - width)/2;
      var top    = (screen.height - height)/2;

      newwin = window.open(this.href, "mapwindow","status=no,toolbar=no,resizable=no,scrollbars=no,width="+width+",height="+height+",top="+top+",left="+left);
      if (window.focus) {newwin.focus()}
      Event.stop(event);
    });
  });
});

function pageTrack(service, category, info)
{
	if(pageTracker._trackEvent) {
		pageTracker._trackEvent(service, category, info);
	}
}