//this will be the javscript file for Mercona.com

$.fn.clickableBlocks = function ()
{
	return this.each (function () {
		var $this = $(this);
		var $anchor = $this.find("a");
		if ($anchor.length)
		{
			$this.css("cursor", "pointer").click (function ()
			{
				location.href = $anchor[0].href;
			});
		}
	});
}


$(function () {
	
	$('#image-container ul').innerfade({
			speed: 1500,
			timeout: 4500,
			type: 'sequence',
			containerheight: '400px'
	});
	
	$('.tac-box').hover(
		function () {
			$(this).addClass("over");
		},
		function () {
			$(this).removeClass("over");
		}
	);
	
	$('.tac-box').clickableBlocks();
	
});
