function $(el){ return document.getElementById(el); }
function style_change(){
	if (window.innerHeight < 600 && window.innerWidth < 960)
	{
		$('flashcontent').style.position = 'fixed';
		$('flashcontent').style.width = '1230px';
		$('flashcontent').style.margin = '0 0 0 -270px';
		$('flashcontent').style.left = '0';
		$('flashcontent').style.overflow = 'hidden';
		$('header').style.position = 'relative';
		$('header').style.margin = '0 0 -125px 0';
		$('sidebar').style.position = 'absolute';
	}
	if (window.innerHeight < 600 && window.innerWidth > 960)
	{
		$('flashcontent').style.position = 'fixed';
		$('flashcontent').style.width = '1500px';
		$('flashcontent').style.margin = '0 0 0 -750px';
		$('flashcontent').style.left = '50%';
		$('header').style.position = 'relative';
		$('header').style.margin = '0 0 -125px 0';
		$('sidebar').style.position = 'absolute';
	}
	if (window.innerHeight > 600 && window.innerWidth < 960)
	{
		$('flashcontent').style.position = 'fixed';
		$('flashcontent').style.width = '1230px';
		$('flashcontent').style.margin = '0 0 0 -270px';
		$('flashcontent').style.left = '0';
		$('flashcontent').style.overflow = 'hidden';
		$('header').style.position = 'relative';
		$('header').style.margin = '0 0 -125px 0';
		$('sidebar').style.position = 'absolute';
	}
	if (window.innerHeight >= 600 && window.innerWidth >= 960)
	{
		$('flashcontent').style.position = 'fixed';
		$('flashcontent').style.width = '1500px';
		$('flashcontent').style.margin = '0 0 0 -750px';
		$('flashcontent').style.left = '50%';
		$('header').style.position = 'fixed';
		$('header').style.margin = '0';
		$('sidebar').style.position = 'fixed';
	}
	else
	{
	}
}
window.onresize = function() { style_change(); }
window.onload = function() { style_change(); }

