$(document).ready(function() {
	var url = $("#online").attr("href"); // Get the buy URL from the anchor.

	if(url) {
		$("#banner").click(function() { // Make #online clickable.
			window.location = url;
			return true;
		}).mouseover(function() { // Display the URL in the status bar on mouse over.
			window.status = url;
			return true;
		}).mouseout(function() { // Display nothing in the status bar on mouse out.
			window.status = "";
			return true;
		}).addClass("clickable"); // Change the cursor to a 'link' cursor.

		$("#banner a").click(function(e) {
			// Stop click events from the anchors bubbling up to the #flashContent.
			e.stopPropagation();
		});
	}

	$("#compare").click(function() {
		window.open(this.href, 'compare');
		return false;
	});
});
