$.fn.clickableBlocks = function ()
{
	if (!this.length) return this;
	return this.each (function () {
		var $this = $(this)
			, $anchor = $this.find("a");
		if ($anchor.length)
		{
			$this.css("cursor", "pointer").click (function ()
			{
				location.href = $anchor[0].href;
			});
		}
	});
}


$(function () {
	$("#latest-news li").clickableBlocks();
	$("#banner").innerfade ({
		animationtype: 'fade',
		type: 'random_start',
		containerheight: 234,
		speed: 1500,
		timeout: 7000
	});
});
