if (window.location.toString().indexOf('empirestaging') < 0) {
  try {
  var pageTracker = _gat._getTracker("UA-9396925-3");
  pageTracker._trackPageview();
  } catch(err) {}
}

expandEvent = function(){
	$('#container1 h2.expand').trigger('click');
	$('#topnav span a').css('text-decoration','none');
}

$(document).ready(function() {
  
  $('.headerEventDetails').click(function(){
  	if($('#container1 h2.expand').length > 0){
		expandEvent();
		return false;
	}else{
		window.location.href = '/#expand';
		return false;
	}
  })
  
});

$(window).ready(function() {
	if(location.href.indexOf("#expand") != -1){
	  	clearTimeout($.data(this, 'timer'));
		var wait = setTimeout(expandEvent, 500);
	  	$(this).data('timer', wait);	
	}
});
