// JavaScript Document

/* Kudos Javascript Functions copyright 2011 */

/******* 01. On Document Ready Functions *******/

$(document).ready(function() {
	// IE6 Detection. Alert message is displayed if user if browsing web site in IE6 or less.
	if ($.browser.msie && $.browser.version.substr(0,1)<7) {
		alert("You are viewing this site using Internet Explorer 6 or below, which is now an out of date browser. This site is not optimised for this version of Internet Explorer so you may see some layout and functionality issues as you explore the site. It is recommended that you upgrade to an up to date browser.");
	}

	// add padding to the content depending on the side blocks
	//$('#content').css('padding-right', (parseInt($('#pageBlock').outerWidth()) + 60) + 'px');
	$('#content').css('width', ($('#content').width() - (parseInt($('#pageBlock').outerWidth()) + 40)) + 'px');

	
	$('#pageBlock .block a.btnLink').each(function(){
		var url = $(this).attr('href');
		var blockObj = $(this).parents('.block:first');

		blockObj.css('cursor', 'pointer').attr('title', 'Read More...').click(function(){
			document.location = url;
		});

		$(this).hide();
	});
});

/******* *******/
