Resize content

Issue: resize site (designed in Flash & HTML) to fit viewer browser.

I need the browser to auto detect visitors monitor resolution and ‘fit’ accordingly.

Eg. My monitor is set @ 1920x1200. If I set monitor resolution @ 1024x768 or 800x600 I want the site o resize to display accordingly.

Been trying with the following without success. Any help would be appreciated.
Thanks in advance.


<SCRIPT language=javascript>
<!–
function openBrWindow(url, name, width, height) {
var str = “height=” + height + “,innerHeight=” + height;

str += ",width=" + width + ",innerWidth=" + width;

if (window.screen) {
     var ah = screen.availHeight;
     var aw = screen.availWidth;
     var xc = (aw - width) / ;
     var yc = (ah - height) / ;
     str += ",left=" + xc + ",screenX=" + xc;
     str += ",top=" + yc + ",screenY=" + yc;
     str += ",location=no,menubar=no,scrollbars=no,status=no,resizable=yes,toolbar=no";
}
      var myWin = window.open(url, name, str);

}
//–>
</SCRIPT>

<META content=“MSHTML 6.00.2800.1400” name=GENERATOR>
<script src=“Scripts/AC_RunActiveContent.js” type=“text/javascript”></script>
</HEAD>

<BODY background=index_files/1.jpg topMargin=0>
<BODY onResize=“document.location.reload()”>
<TABLE height=“100%” cellSpacing=0 cellPadding=0 width=808 align=center
border=0>
<TBODY>
<TR>
<TD width=14 background=index_files/2.jpg height=“100%”
rowSpan=2> </TD>
<TD vAlign=top width=781 height=840><script type=“text/javascript”>
AC_FL_RunContent(

‘id’,‘flash’,‘codebase’,'http://fpdownload.a.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0’,‘name’,‘flash’,‘width’,'7

80’,‘height’,‘870’, ‘scale’, ‘ExactFit’,

‘align’,‘middle’,‘src’,‘flash’,‘quality’,‘high’,‘bgcolor’,’#113c29’,‘name’,‘flash’,‘menu’,‘false’,‘allowscriptaccess’,'sameDomai

n’,‘pluginspage’,‘http://www.a.com/go/getflashplayer’,‘movie’,'flash’ ); //end AC code
</script>
<noscript>
<object id=flash
codebase=http://fpdownload.a.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0 name=“flash”
height=870 width=“780” scale=“ExactFit” align=middle
classid=clsid:d27cdb6e-ae6d-16cf-96b8-444553543333>
<param name=“allowScriptAccess” value=“sameDomain”>
<param name=“movie” value=“flash.swf”>
<param name=“quality” value=“high”>
<param name=“menu” value=“false”>
<param name=“scale” value=“ExactFit”>
<param name=“bgcolor” value="#113c29">
<embed src=“flash.swf” quality=“high” bgcolor="#113c29" width=“780”
height=“870” scale=“ExactFit” name=“flash” menu=“false” align=“middle”
allowscriptaccess=“sameDomain” type=“application/x-shockwave-flash”
pluginspage=“http://www.a.com/go/getflashplayer”></embed>
</object>
</noscript>

&lt;TD width=14 background=index_files/3.jpg height="100%" 
rowSpan=2&gt;&nbsp;&lt;/TD&gt;

</TR>
<TR>
<TD vAlign=top background=index_files/3.jpg
height=“100%”> </TD></TR></TBODY></TABLE>
<BODY onContextMenu=“return false”>
</BODY></HTML>