// ******************************
// *   www.robotron-2084.co.uk  *
// ******************************
// *   v3.1 25th January 2006   *
// *     ©2006 Dave Langley     *
// ****************************** 

// Don't do anything in older browsers that definitely do not work! //
if (badBrowser) {document.writeln("<table cellspacing=0px cellpadding=20px align=center bgcolor=purple><tr valign=top><td><h1>-=- WWW.ROBOTRON-2084.CO.UK -=-</h1><p style=\"font-size: 14px\"><b>Please note:</b><br><br>I have attempted to make the content of <b>www.robotron-2084.co.uk</b> accessible to<br>all browsers, however, this browser does not display the pages properly.<br><br>To view the site as it is intended please feel free to upgrade your browser to the latest<br>version of any of these, or another one of your choice: <a href=\"http://www.microsoft.com/windows/ie/\" title=\"Download Internet Explorer\">IE</a>, <a href=\"http://channels.netscape.com/ns/browsers/download.jsp\" title=\"Download Netscape \">Netscape</a>, <a href=\"http://www.opera.com/\" title=\"Download Opera\">Opera</a> & <a href=\"http://www.mozilla.org/\" title=\"Download Mozilla Firefox\">Firefox</a></p></td></tr></table><p><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></p>");}else{
// End of badBrowser exclude //


// Calculate the inner width of the client browser window //
var browserWidth = 0; 
if (self.innerWidth) // All except Internet Explorer //
   {browserWidth = window.innerWidth}
else if (document.documentElement && document.documentElement.clientWidth) // Internet Explorer 6 in Strict Mode //
   {browserWidth = document.documentElement.clientWidth}
else if (document.body) // Internet Explorer //
   {browserWidth = document.body.clientWidth}

// Calculate total width and height of HTML page (including areas out of sight) //
var pageWidth = 0;
if ((document.body.scrollWidth) > (document.body.offsetWidth)) 
   {pageWidth = document.body.scrollWidth}
else 
   {pageWidth = document.body.offsetWidth}

// Set minimum width to ensure pages and menus appear correctly //
var initialDisplayWidth;
if (browserWidth < 875)
   {initialDisplayWidth=875;}
else
   {if (ie)
       {initialDisplayWidth=browserWidth;}
    else
       {initialDisplayWidth=pageWidth-25;};}
       
// set main display area to the calculated width //
if (op5||op6||op7||op8)   // Tweak to fix Operas incorrect handling of body style="margin: 0px" attribute //
   {document.writeln("<div id=\"mainDisplay\" style=\"z-index: 1; width: " + initialDisplayWidth + "px; top: -8px; left: -8px; position: relative\">");}
else
   {document.writeln("<div id=\"mainDisplay\" style=\"z-index: 1; width: " + initialDisplayWidth + "px; top: 0px; left: 0px; position: relative\">");}


// *********************
}//* DO NOT EDIT THIS *
// *********************
// End of  good Browser //