// Detect Screen Res

// Set some variables, This routine can be used with screen height
// but Im only using width here.
var screenWidth = 800;
var screenHeight = 600;

// Work out the browser and reset the variables accordingly.
// Its done this way to maintain compatibility with Navigator 3

if (navigator.appName.substring(0,9) != "Microsoft" && navigator.javaEnabled())
  {
   var toolkit = java.awt.Toolkit.getDefaultToolkit();
   var screen_size = toolkit.getScreenSize();
   screenWidth = screen_size.width;
  }
else
  {
   screenWidth = screen.width;
  }
if (screenWidth <= 800)
  {
   screenWidth = 800;
  }
else
  {  
   screenWidth = 1024;
  }
// set some variables to be written to the HTML stream
// In this case the two images used by the routine are background800.jpg and background1024.jpg


start = "<img src=";
image1 = "<img src=http://www.upbproducts.co.uk/images/right1" + screenWidth + ".gif>";
image2 = "<img src=http://www.upbproducts.co.uk/images/right2" + screenWidth + ".gif>";
end = ">";




