if(!(navigator.userAgent.match(/iPhone/i)) && !(navigator.userAgent.match(/iPod/i))) {

function vIE(){return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;}

var centered = false;
var nudge = vIE() < 8 && vIE() > 0 ? 30 : 31;

function recentre() {
	var ctvh = parseInt($('#ct_vertical').height()) + parseInt($('#ct_vertical').css('padding-top'));
	if(centered) {
		if($(window).height() <= ctvh + nudge) {
			$('#ct_vertical').css('margin-top', 0).css('top',0);
			$('body').css('background-attachment', 'scroll').css('background-position', '50% -284px');
			$('#nudger').show();
			centered = false;
		} else {
			$('#ct_vertical').css('margin-top', (-nudge - ctvh / 2)).css('top','50%');
			$('body').css('background-attachment', 'fixed').css('background-position', '50% 50%');
			$('#nudger').hide();
			centered = true;
		}
	} else {
		if($(window).height() < ctvh + nudge) {
			$('#ct_vertical').css('margin-top', 0).css('top',0);
			$('body').css('background-attachment', 'scroll').css('background-position', '50% -284px');
			$('#nudger').show();
			centered = false;
		} else {
			$('#ct_vertical').css('margin-top', (-nudge - ctvh / 2)).css('top','50%');
			$('body').css('background-attachment', 'fixed').css('background-position', '50% 50%');
			$('#nudger').hide();
			centered = true;
		}
	}
}

$(function() {
	$('#coverme').show();
	$(window).resize(function() { recentre(); });
	recentre();
	$('#coverme').hide();
});

}