var IQ = {
	min_width : 800,
	min_height : 600,
	
	
	/**
	 * Resize the flash content to be 100% of the width and height of the window unless
	 * the window size is less than the minimum size.
	 * 
	 */
	resize : function( ) {
		var win_w;
		var win_h;
		
		var browser = navigator.appName;
		
		//IE and Opera
		if ( browser == "Microsoft Internet Explorer" ) {
			win_w = document.body.offsetWidth;
			win_h = document.body.offsetHeight;
			
			if ( win_w >= this.min_width ){
				window.document.getElementById( "altContent" ).width = "100%";
			} else {
				window.document.getElementById( "altContent" ).width = ( this.min_width + "px" );
			}
			
			if ( win_h >= this.min_height ){
				window.document.getElementById("altContent").height = "100%";
			} else {
				window.document.getElementById("altContent").height = ( this.min_height + "px" );
			}
		
		 //Netscape and Mozilla
		} else {
			win_w = window.innerWidth;
			win_h = window.innerHeight;
			
			if ( win_w >= this.min_width ){
				 window.document.altContent.width = "100%";
			} else {
				window.document.altContent.width = ( this.min_width + "px" );
			}
			
			if ( win_h >= this.min_height ){
				 window.document.altContent.height = "100%";
			} else {
				window.document.altContent.height = ( this.min_height + "px" );
			}
		}
	}
		
}

window.onresize = function(){
	IQ.resize( );
};
