function swfresizer(flash_div_id,minimum_width,minimum_height){this["div"]=flash_div_id;this["minW"]=minimum_width;this["minH"]=minimum_height;this["addWindowEvent"]("onload",this,this["onLoadDiv"]);this["addWindowEvent"]("onresize",this,this["onResizeDiv"]);} ;swfresizer["prototype"]={addWindowEvent:function (eventName,scope,func){var oldEvent=window[eventName];if( typeof window[eventName]!="function"){window[eventName]=function (){func["call"](scope);} ;} else {window[eventName]=function (){if(oldEvent){oldEvent();} ;func["call"](scope);} ;} ;} ,getWinSize:function (){var winH,winW;if(parseInt(navigator["appVersion"])>3){if(document["body"]["offsetWidth"]){winW=document["body"]["offsetWidth"];winH=document["body"]["offsetHeight"];} else {if(document["body"]["offsetWidth"]){winW=document["body"]["offsetWidth"];winH=document["body"]["offsetHeight"];} ;} ;} ;return {height:winH,width:winW};} ,onLoadDiv:function (){document["getElementById"](this["div"])["style"]["width"]="100%";document["getElementById"](this["div"])["style"]["height"]="100%";this["onResizeDiv"]();} ,onResizeDiv:function (){var winSize=this["getWinSize"]();var w=(winSize["width"]<this["minW"]?this["minW"]+"px":"100%");var h=(winSize["height"]<this["minH"]?this["minH"]+"px":"100%");if(document["all"]){document["body"]["scroll"]=((w!="100%"||h!="100%")?"auto":"no");} ;document["getElementById"](this["div"])["style"]["width"]=w;document["getElementById"](this["div"])["style"]["height"]=h;} };
