// JavaScript Document

// Determined the viewport width and height to load the full viewer



var viewportwidth;
 var viewportheight;
 var viewportmultiply;
 var viewportheightnew;
 var viewportwidthnew;
 
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }
 
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }
 
 // older versions of IE
 
 else
 {
       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
 }
 
// the embed options for the viewer on the issue site are by default set to 420x276 (we need to keep this Proportion) 1.52 x's the height
viewportheightnew = viewportheight - 20;
//viewportmultiply = viewportheightnew / 276;
//viewportmultiply = viewportmultiply - 20;
viewportwidthnew = viewportheightnew * 1.5;
 
 
 
 
 
 
//document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');

//document.write('<p>The embed code needs to set the following viewport width is '+viewportwidthnew+'x'+viewportheightnew+'</p>');