//if browser supports window.innerWidth (Safari and Firefox) if (window.innerWidth) W = window.innerWidth//else if browser supports document.documentElement.clientWidth (IE 6 and Safari) else if (document.documentElement.clientWidth) W = document.documentElement.clientWidth//else if browser supports document.all (IE 4-5.5? I don't have these browsers installed, so I can't test them) else if (document.all) W = document.body.clientWidth/*MacIE5.2 currently shows no magic text :-(W = document.body.clientWidth;...should work on MacIE5.2 because this page: http://www.jpartner.com/PageReq?id=148:283 ...returns a value for it.And an alert window <script type="text/javascript">alert(document.body.clientWidth);</script> returns a value in MacIE5.2.Maybe MacIE5.2 isn't able to understand some other part of this script. I wonder where the javascript error log is for MacIE5.2*///TODO: figure out hw to re-calculate width and re-load MagicText after user resizes browser window.small_pixel_dim = 3; //3.5 doesn't work very well, it leaves uneven spaces between text squaressmall_pixel_pad = 0.5;large_pixel_dim = 4.5;large_pixel_pad = 1;baseline = 123; //baseline determines distance (in pixels) from top of browser window to baseline of MagicText.tLA = new MagicText('LA', [ '#CDD5D6', '#A8C0BB', '#A1A7A5' ], '');tLA.pixel_xdim = small_pixel_dim;tLA.pixel_ydim = small_pixel_dim;tLA.pixel_pad = small_pixel_pad;t2600 = new MagicText('2600', [ '#CDD5D6', '#A8C0BB', '#A1A7A5' ], '');t2600.pixel_xdim = small_pixel_dim;t2600.pixel_ydim = small_pixel_dim;t2600.pixel_pad = small_pixel_pad;tManifesto = new MagicText('Manifesto', [ '#CDD5D6', '#A8C0BB', '#A1A7A5' ], '');tManifesto.pixel_xdim = large_pixel_dim;tManifesto.pixel_ydim = large_pixel_dim;tManifesto.pixel_pad = large_pixel_pad;total_width = tLA.box_width() + tLA.xscale() + t2600.box_width() + tManifesto.box_width();// centering horizontally code below, placement_fudging moves to right of center if positive, left if negativeplacement_fudging = -67;tLA.xy( placement_fudging + W / 2 - total_width / 2, baseline - tLA.box_height() );t2600.xy( placement_fudging + W / 2 - total_width / 2 + tLA.box_width() + tLA.xscale(), baseline - t2600.box_height() );tManifesto.xy( placement_fudging + W / 2 - total_width / 2, baseline + tLA.xscale() );