
/* BEGIN Google Analytics Tracking Code */
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-8191877-1");
pageTracker._trackPageview();
} catch(err) {}

/* END Google Analytics Tracking Code */

function getWindowWidth() {
  var myWidth = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
  } else if( document.documentElement && document.documentElement.clientWidth ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
  } else if( document.body && document.body.clientWidth ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
  }
  return myWidth;
}

function fitImage()
{
    var swidth = getWindowWidth()-50; //Subtracting 50 for scrollbar, etc.
    var twidth = swidth * .75;
    var cwidth = twidth * .4;
    var cheight = cwidth * 383 / 278;
    document.getElementById("posterImage").style.width = cwidth + "px";
    document.getElementById("posterImage").style.height = cheight + "px";
}