//.........................................................................................
//  File: SetWindowInnerDimensions.js                                Date:  Sep 6, 2009
//                            Application: Javascript Tools
//  Author: R. Berry
//
//
//
//  Copyright 2009 (c) Rawdon Berry
//
//  Modified:
//.........................................................................................
function setWindowInnerDimensions()
{
  if (/msie/i.test(navigator.userAgent) && !window.opera)
  {
    try
    {
      if ( document.documentElement && ( document.documentElement.offsetWidth || document.documentElement.offsetHeight ) )
      { //IE 6+ in 'standards compliant mode'
        window.innerWidth = document.documentElement.offsetWidth;
        window.innerHeight = document.documentElement.offsetHeight;
      }
      else
      {
        if (document.body && ( document.body.offsetWidth || document.body.offsetHeight ) )
        { //IE 4 compatible
          window.innerWidth = document.body.offsetWidth;
          window.innerHeight = document.body.offsetHeight;
        }
        else
        {
          window.innerWidth = 0;
          window.innerHeight = 0;
        }
      }
    }
    catch(ex)
    {
      window.innerWidth = 0;
      window.innerHeight = 0;
    }
  }
}

