jQuery(document).ready(function(){
	jQuery("#content_home .box").css("opacity", 0.85);

	jQuery("#content_home .box").each(
		function() {
			var title = $(this).find('.hidden_data .title').text();

			if (title) {
				$(this).attr('title', title);
			}
		}
	);

	// this adds hover to full opacity:
	jQuery("#content_home .box").hover(
		// hover state
		function() {
			jQuery(this).css({opacity: 1.0});
		},
		// back to off
		function() {
			jQuery(this).css({opacity: 0.85});
		}
	);

	jQuery("#content_home .box").click(function(){
		var url = $(this).find('.hidden_data .url').text();
		var target = $(this).find('.hidden_data .target').text();

		if (url) {
			if (target) {
				window.open(url);
			}
			else {
				document.location.href = url;
			}
		}
	});
});