// Change style info if browser window smaller than page width
// Works around problem with centering code

function resizeCheck()
{
	if(window.innerWidth)
	{
		var winWidth = window.innerWidth;
	}
	else if(document.documentElement.clientWidth)
	{
		var winWidth = document.documentElement.clientWidth;
	}
	else
	{
		return; // incompatible, abort
	}
	var pageEl = document.getElementById("page");
	if(winWidth < pageEl.offsetWidth)
	{
		pageEl.style.left = "0px";
		pageEl.style.marginLeft = "0px";
		document.body.style.backgroundPosition = "left top";
	}
	else
	{
		pageEl.style.left = "";
		pageEl.style.marginLeft = "";
		document.body.style.backgroundPosition = "center top";
	}
}
window.onresize = resizeCheck;

/* Google Analytics Code */

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20809503-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

/* End Google Code */

