var margin;
function getCss(a) {
	var ismac=navigator.userAgent.indexOf("Mac")!=-1 || navigator.userAgent.indexOf("iPad")!=-1;
	var css = a+"stylesheets/jes_style_1024.css";
	if (ismac) {css = a+"stylesheets/jes_style_1024_mac.css";}
	var height = $(window).height();
	margin = (height-630)/2;
	if (height>=790 && $(window).width()>=1280) {
		css = a+"stylesheets/jes_style.css";
		if (ismac) {css = a+"stylesheets/jes_style_mac.css";}
		margin = (height-768)/2;
	}
	return document.write('<link href="'+css+'" type="text/css" rel="stylesheet" />'); 
}

function setTopPadding() {
	$('body').css('padding-top', margin+'px');
}
