/**************************************************
  Automatically stretch banner and background images
  for large resolutions.
***************************************************/
// Declarations
var docHeight;
var docWidth;

// Initializations
if (typeof document.height != 'undefined') {
docHeight = document.height;
}
else if (document.body && typeof document.body.scrollHeight !=
'undefined') {
docHeight = document.body.scrollHeight;
}

if (typeof document.width != 'undefined') {
docWidth = document.width;
}
else if (document.body && typeof document.body.scrollWidth !=
'undefined') {
docWidth = document.body.scrollWidth;
}

// Processing
if(docHeight > 800) {
  document.all.BGImage.style.width=docWidth;
  document.all.BGImage.style.height=docHeight;
} else {
  document.all.BGImage.style.width='1000px';
  document.all.BGImage.style.height='800px';
}

// Activate all ActiveX controls on the form
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}