			var minWidth = 1000 ;
			var minHeight = 500 ;
			
			function getWindowWidth ()
			{
				if ( typeof( window.innerWidth ) == 'number' )
				{
					//Non-IE
					windowWidth = window.innerWidth;
				}
				else if ( document.documentElement && document.documentElement.clientWidth )
				{
					//IE 6+ in 'standards compliant mode'
					windowWidth = document.documentElement.clientWidth;
				}
				else if ( document.body && document.body.clientWidth )
				{
					//IE 4 compatible
					windowWidth = document.body.clientWidth;
				}
				return windowWidth;
			}
			
			function getWindowHeight ()
			{
				if ( typeof( window.innerHeight ) == 'number' )
				{
					//Non-IE
					windowHeight = window.innerHeight;
				}
				else if ( document.documentElement && document.documentElement.clientHeight )
				{
					//IE 6+ in 'standards compliant mode'
					windowHeight = document.documentElement.clientHeight;
				}
				else if ( document.body && document.body.clientHeight )
				{
					//IE 4 compatible
					windowHeight = document.body.clientHeight;
				}
				return windowHeight;
			}
			
			function onSWFAdded ()
			{
				window.onresize = function(){
					if( document.getElementById( "html-content" ) ) {
						document.getElementById( "html-content" ).width = Math.max ( getWindowWidth(), minWidth ); 
						document.getElementById( "html-content" ).height = Math.max ( getWindowHeight() - 76, minHeight );
					}
				}
			}
			
			function gup( name )
			{
				name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
				var regexS = "[\\?&]"+name+"=([^&#]*)";
				var regex = new RegExp( regexS );
				var results = regex.exec( window.location.href );
				if( results == null )
					return "";
				else
					return results[1];
			}