    var fullBleed = {
      initialize: function() {
        fullBleed.BASE_WIDTH = 800;
        fullBleed.BASE_HEIGHT = 535;
        fullBleed.mainImg = document.getElementById('mainImage');
        fullBleed.scale();
        YAHOO.util.Dom.setStyle(fullBleed.mainImg, 'display','block');
      },
      scale: function() {
        var windowWidth = YAHOO.util.Dom.getViewportWidth();
        var windowHeight = YAHOO.util.Dom.getViewportHeight();

        if ((windowHeight/windowWidth) > fullBleed.BASE_HEIGHT/fullBleed.BASE_WIDTH) {
            // stretch height, overflow width
            var ratio =  (windowHeight) / fullBleed.BASE_HEIGHT;
            var newHeight = windowHeight;
            var newWidth = ratio * fullBleed.BASE_WIDTH;
        } else {
            // stretch width, overflow height
            var ratio =  (windowWidth) / fullBleed.BASE_WIDTH;
            var newWidth = windowWidth;
            var newHeight = ratio * fullBleed.BASE_HEIGHT;
        }

        if(fullBleed.canScale(newWidth, newHeight)) {
            fullBleed.mainImg.width = newWidth;
            fullBleed.mainImg.height = newHeight;
        } else {
            fullBleed.mainImg.width = fullBleed.BASE_WIDTH;
            fullBleed.mainImg.height = fullBleed.BASE_HEIGHT;
        }
        
        var newheight = windowHeight-320;
        YAHOO.util.Dom.setStyle('bodybox', 'height', newheight+'px');
        YAHOO.util.Dom.setStyle('outercontent', 'height', windowHeight+'px');
      },
      canScale: function(newWidth, newHeight) {
          return (newWidth >= fullBleed.BASE_WIDTH && newHeight >= fullBleed.BASE_HEIGHT) ? true : false;
      }
    };
