// Functions for find details about the user's screen
// ==================================================
var Screen = (function() {

	var screen = {};

	// ...snip...

	// Get the width of the viewport (viewable area) in the browser window
	// --------------------------------------------------------------------
	screen.getViewportWidth = function() {
		if (!document.compatMode || document.compatMode=="CSS1Compat") {
			return document.documentElement.clientWidth;
		}
		else if (document.compatMode) {
			return document.body.clientWidth;
		}
		return zero(self.innerWidth);
	}

	// Get the height of the viewport (viewable area) in the browser window
	// --------------------------------------------------------------------
	screen.getViewportHeight = function() {
		if (!window.opera && (!document.compatMode ||
			document.compatMode=="CSS1Compat")) {
			return document.documentElement.clientHeight;
		}
		else if (document.compatMode && !window.opera) {
			return document.body.clientHeight;
		}
		return zero(self.innerHeight);
	}

	return screen;
})();

function adjustSize() {
	if (Screen.getViewportHeight()>690){
		document.getElementById('flashContent').style.height = (Screen.getViewportHeight()-150)+"px";
	} else {
		document.getElementById('flashContent').style.height = 540+"px";
	}
	if (Screen.getViewportWidth()>980) {
		document.getElementById('flashContent').style.width = Screen.getViewportWidth()+"px";
	} else {
		document.getElementById('flashContent').style.width = 980+"px";
	}
}