// #require mootools.js
if (window.addEvent) {

// Expand Link at Showcase
window.addEvent('domready', function () {
	$$('#showcase.content .subcontent').each(function (subcontent) {
		subcontent.addEvent('mouseenter', function () {
			subcontent.addClass('hover');
		}).addEvent('mouseleave', function () {
			subcontent.removeClass('hover');
		});
		var link = subcontent.getElement('a');
		if (link) {
			link.addEvent('click', function (evt) {
				evt.stopPropagation();
			});
			subcontent.addEvent('click', function () {
				if (link.target && link.target != "_self") {
					window.open(link.href, link.target);
				} else {
					window.location.href = link.href;
				}
			}).setStyle('cursor', 'pointer');
		}
	});
});

}
