Event.observe(window, 'load', function() {

  $$('.clear-on-click').each(function(element){
    Event.observe(element, 'focus', function(e){
      if(element.getAttribute('ref') == element.getValue()) element.clear();
    });
  });

  if (Prototype.Browser && Prototype.Browser.IE) {
		$('sport-nav').observe('mouseover', function(e) {
			$$('.rounded-box').each(function(el) { el.addClassName('negative-z-index'); });
			if ($('events-content') != null) { $('events-content').addClassName('negative-z-index'); }
		});
		$('sport-nav').observe('mouseout', function(e) {
			$$('.rounded-box').each(function(el) { el.removeClassName('negative-z-index'); });
			if ($('events-content') != null) { $('events-content').removeClassName('negative-z-index'); }
		});
	}

});
