// JavaScript Document

var minHeight = 880 ;
var minWidth =1104 ;

function getWindowheight() { 
	var windowheight = 0; 
	if (typeof(window.innerHeight) == 'number') { 
		windowheight = window.innerHeight; 
	} else { 
		if (document.documentElement && document.documentElement.clientHeight) { 
			windowheight = document.documentElement.clientHeight; 
		} else { 
			if (document.body && document.body.clientHeight) { 
				windowheight = document.body.clientHeight; 
			} 
		} 
	} 
	return windowheight; 
} 

function getWindowWidth() { 
	var windowWidth = 0; 
	if (typeof(window.innerWidth) == 'number') { 
		windowWidth = window.innerWidth; 
	} else { 
		if (document.documentElement && document.documentElement.clientWidth) { 
			windowWidth = document.documentElement.clientWidth; 
		} else { 
			if (document.body && document.body.clientWidth) { 
				windowWidth = document.body.clientWidth; 
			} 
		} 
	} 
	return windowWidth; 
} 


function setContent() { 

	if (document.getElementById) { 
		var contentheight = getWindowheight();
		var contentwidth = getWindowWidth();
		if (contentheight > minHeight && contentwidth > minWidth) { 
			var contentElement = document.getElementById('flashcontent'); 
			contentElement.style.height = contentheight + 'px'; 
			contentElement.style.width = contentwidth + 'px';
		}else if ( contentwidth < minWidth && contentheight < minHeight ) {
			var contentElement = document.getElementById('flashcontent'); 
			contentElement.style.width = minWidth + 'px'; 
			contentElement.style.height = minHeight + 'px';
		} else if ( contentwidth > minWidth && contentheight < minHeight ) {
			var contentElement = document.getElementById('flashcontent'); 
			contentElement.style.height = minHeight + 'px'; 
			contentElement.style.width = contentwidth + 'px';
		} else	if ( contentwidth < minWidth && contentheight > minHeight) {
			var contentElement = document.getElementById('flashcontent'); 
			contentElement.style.width = minWidth + 'px'; 
			contentElement.style.height = contentheight + 'px';
		} 
		
	} 
} 


window.onload = function() { 
setContent(); 
} 

window.onresize = function() { 
setContent(); 
} 