WindowHelper = {	
	/**
	 * Configure the Window helper:
	 */
	minWidth:			760,
	minHeight:			450,
	flashContainerID:	'mainContainer',
	flashID:			'swf_mainContainer',
	
	/**
	 * No need to edit below this line
	 */	
	
	refreshSize: function(){
		WindowHelper.refreshWidth();
		WindowHelper.refreshHeight();
	},
	
	refreshWidth: function(){
		WindowHelper.setWidth(WindowHelper.minWidth);
	},
	
	refreshHeight: function(){
		WindowHelper.setHeight(WindowHelper.minHeight);
	},
	
	getFlashContainer: function(){
		return document.getElementById(WindowHelper.flashContainerID);
	},
	
	getFlash: function(){
		return document.getElementById(WindowHelper.flashID);
	},
	
	setWidth: function(flashWidth){
		WindowHelper.minWidth							= flashWidth;
		WindowHelper.getFlashContainer().style.width	= (WindowHelper.minWidth > GetWindowWidth()) ? WindowHelper.minWidth+'px': '100%';
		WindowHelper.getFlash().style.width				= WindowHelper.getFlashContainer().style.width;
	},
	
	setHeight: function(flashHeight){
		WindowHelper.minHeight							= flashHeight;
		WindowHelper.getFlashContainer().style.height	= (WindowHelper.minHeight > GetWindowHeight()) ? WindowHelper.minHeight+'px': '100%';
		WindowHelper.getFlash().style.height			= WindowHelper.getFlashContainer().style.height;
	}
};
/**
 * Helper functions to aid in cross-browser compatibility
 */
function GetWindowWidth(){
	if(window.innerWidth && typeof(window.innerWidth) == "number"){
		// non IE 
		return window.innerWidth;
	}else if(document.documentElement && document.documentElement.clientWidth){
		// IE6 standards compliant mode 
		return document.documentElement.clientWidth;
	}else if(document.body && document.body.clientWidth){
		// IE4 compatible 
		return document.body.clientWidth;
	}
}

function GetWindowHeight(){
	if(window.innerHeight && typeof(window.innerHeight) == "number"){
		// non IE 
		return window.innerHeight;
	}else if(document.documentElement && document.documentElement.clientHeight){
		// IE6 standards compliant mode 
		return document.documentElement.clientHeight;
	}else if(document.body && document.body.clientHeight){
		// IE4 compatible 
		return document.body.clientHeight;
	}
}
/**
 * Assign the relevant functions to window events
 */
window.onresize	= WindowHelper.refreshSize;
window.onload	= WindowHelper.refreshSize;