$(document).ready(function() {
	function attachButtonEvents(myClass) { $("." + myClass).mouseover(function() { $(this).addClass("buttonHover"); }).mouseout(function() { $(this).removeClass("buttonHover"); $(this).removeClass("buttonActive"); }).mousedown(function() { $(this).addClass("buttonActive"); $(this).removeClass("buttonHover"); }).mouseup(function() { $(this).removeClass("buttonActive"); $(this).addClass("buttonHover"); }); }
	attachButtonEvents("p-button"); attachButtonEvents("s-button"); attachButtonEvents("a-button"); $("#billboardglobalmenu > li.default > a").addClass("current"); var active = true; $("#billboardglobalmenu > li").mouseenter(function(event, from) {
		$("#billboardglobalmenu > li").each(function(index) { $(this).animate({ marginTop: "16px", height: "40px", lineHeight: "40px" }, 40, function() { $(this).children().removeClass("current"); }); }); $(this).animate({ marginTop: "0px", height: "56px", lineHeight: "56px" }, 40, function() { $(this).children().addClass("current"); }); $("#billboard-two-col > a").addClass("hidden"); $("#billboard-two-col > p").addClass("hidden"); var selector_string; if ($(this).hasClass("global")) { selector_string = "global" }
		else if ($(this).hasClass("australia")) { selector_string = "australia" }
		else if ($(this).hasClass("uk")) { selector_string = "uk" }
		else if ($(this).hasClass("canada")) { selector_string = "canada" }
		else if ($(this).hasClass("usa")) { selector_string = "usa" }
		$("#billboard-two-col > a." + selector_string).removeClass("hidden"); $("#billboard-two-col > p." + selector_string).removeClass("hidden"); if (from != "auto") $("#billboardglobalmenu").stopTime('controlled');
	}); $("#billboardglobalmenu").everyTime(8000, "controlled", function() { if ($(this).find("li").find(".current").parent().next().length > 0) { $(this).find("li").find(".current").parent().next().trigger("mouseenter", ["auto"]); } else { $(this).find(".default").trigger("mouseenter", ["auto"]); } });
});