var screen_width = screen.width;
var screen_height = screen.height;
var flash_width;
var flash_height;
var body_width = 0;
var body_height = 0;
if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	body_width = window.innerWidth;
	body_height = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	body_width = document.documentElement.clientWidth;
	body_height = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	body_width = document.body.clientWidth;
	body_height = document.body.clientHeight;
} else {
	//Default to screen sizes
	body_width = screen_width;
	body_height = screen_height;
}

if (body_height<=768) {
	flash_width = "920"; //800
	flash_height = "690"; //600
	setStylesheet("Low Res");
} else {
	flash_width = "1024";
	flash_height = "768";
	setStylesheet("");
}
//flash_width = body_width-100-100-50;
//flash_height = flash_width*0.75;

var showMode = 'table-cell';
if (document.all) showMode='block';

function setStylesheet(styleTitle) {
	var currTag;
	if (document.getElementsByTagName) {
		for (var i = 0; (currTag = document.getElementsByTagName("link")[i]); i++) {
			if (currTag.getAttribute("rel").indexOf("style") != -1 && currTag.getAttribute("title")) {
				currTag.disabled = true;
				if(currTag.getAttribute("title") == styleTitle)	{
					currTag.disabled = false;
				}
			}
		}
	}
	return true;
}
