$(document).ready( function () {
	setUp();
	homepage();
	$('body').show();
});

function homepage(){
	i = 0;
	$('table.content').children().children().children().each( function() {
		$(this).attr('id','cell-' + i);
		i++;
	});
	$('#cell-1').attr('id','main-col');
	
	$('#right-nav-1 a.rw').parent().css("padding", "0 10px");
	$('#slider1').innerfade({
		containerheight: 290,
		timeout: 8000,
		speed: 'slow'
	});
	$('#cross-links').css('top', $('#slider1').offset().top + 260);
	mhActive(0);
	$("#mh1").click(function(){
		clearTimeout(mhTimeout);
		$.extend(mhSettings, {auto: false});
		if (mhLastElement != 0) {
			$.innerfade.next(mhElements, mhSettings, 0, mhLastElement);
		}
	});
	$("#mh2").click(function(){
		clearTimeout(mhTimeout);
		$.extend(mhSettings, {auto: false});
		if (mhLastElement != 1) {
			$.innerfade.next(mhElements, mhSettings, 1, mhLastElement);
		}
	});
	$("#mh3").click(function(){
		clearTimeout(mhTimeout);
		$.extend(mhSettings, {auto: false});
		if (mhLastElement != 2) {
			$.innerfade.next(mhElements, mhSettings, 2, mhLastElement);
		}
	});
}

