function SWFForceSize(a,b,c){this.div=a.getAttribute("id");this.minW=b;this.minH=c;var d=this;this.addWindowEvent("onload",this,this.onLoadDiv);this.addWindowEvent("onresize",this,this.onResizeDiv);this.onResizeDiv()}SWFForceSize.prototype={addWindowEvent:function(b,c,d){var a=window[b];if(typeof window[b]!="function"){window[b]=function(){d.call(c)}}else{window[b]=function(){if(a){a()}d.call(c)}}},getWinHeight:function(){var a=0;if(typeof(window.innerHeight)=="number"){a=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight}}}return a},getWinWidth:function(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth}}}return a},getWinSize:function(){var b,a;a=this.getWinWidth();b=this.getWinHeight();return{height:b,width:a}},onLoadDiv:function(){document.getElementById(this.div).style.width="100%";document.getElementById(this.div).style.height="100%";this.onResizeDiv()},onResizeDiv:function(){var b=this.getWinSize();var a=b.width<this.minW?this.minW+"px":"100%";var c=b.height<this.minH?this.minH+"px":"100%";if(document.all){document.body.scroll=(a!="100%"||c!="100%")?"auto":"no"}document.getElementById(this.div).style.width=a;document.getElementById(this.div).style.height=c}};
