		var iMinWidth = 800; //put here the minimal width
		var iMinHeight = 620; // put here the minimal height
		window.onresize = onResizeScreen;

		function onResizeScreen(){
        
        var iScreenWidth;
        var iScreenHeight;

        var oBody = document.body;
        oBody.scroll="no";
       
        if (window.innerWidth){
                iScreenWidth = window.innerWidth;
                iScreenHeight = window.innerHeight;
        }
        else if (document.all){
                iScreenWidth = document.body.clientWidth;
                iScreenHeight = document.body.clientHeight;
        }

        if (iScreenWidth<iMinWidth || iScreenHeight<iMinHeight){
                oBody.scroll="yes";
                var bScrollW = false;
                var bScrollH = false;

                var iW;
                if (iScreenWidth<iMinWidth){
                        iW = iMinWidth;
                       //oBody.style.overflowX = "scroll";
                        bScrollW = true;
                }
                else {
                        iW = iScreenWidth;
                        //oBody.style.overflowX = "hidden";
                }

                var iH;
                if (iScreenHeight<iMinHeight){
                        iH = iMinHeight;
                        //oBody.style.overflowY = "scroll";
                        bScrollH = true;
                }
                else {
                        iH = iScreenHeight;
                        //oBody.style.overflowY = "hidden";
                }
								
								
                if (navigator.appName == "Netscape" && navigator.userAgent.indexOf("Safari")==-1){
                        if (bScrollW && !bScrollH)
                                iH -= 16;
                        if (!bScrollW && bScrollH)
                                iW -= 16;
                }
                else if (navigator.appName == "Microsoft Internet Explorer"){
                		if (bScrollW)
                			oBody.style.overflowX = "scroll";
                		else
                			oBody.style.overflowX = "hidden";
                		if (bScrollH)
                			oBody.style.overflowY = "scroll";
                		else
                			oBody.style.overflowY = "hidden";
                		
                		
                }
                
                resize(iW, iH);
        }
        else {
                oBody.scroll="no";
                if (navigator.appName == "Microsoft Internet Explorer"){
	                oBody.style.overflowX = "hidden";
	                oBody.style.overflowY = "hidden";
	              }
                resize("100%", "100%");
        }
        
		}
		
		function resize(iWidth, iHeight){
        var oDiv = document.getElementById("flashcontent");
        oDiv.style.width = iWidth;
        oDiv.style.height = iHeight;
		}
