(function(){

var Init = {

  start: function(){ 
    var classname = this.hasClass(document.body, 'page-sub');

    if (classname) {
      this.addEventListeners();
    }
  },

  hasClass: function (elem, className) {
    return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' ');
  },

  addEventListeners: function(){
    var _this = this;
    //console.log(document.querySelectorAll('.navbar-static-top')[0]);
    window.addEventListener('resize', _this.resizeImage, false);

    this.resizeImage();
  },

  resizeImage: function(){

    var header = document.getElementById('header'),
        footer = document.getElementById('footer-wrap'),
        main = document.getElementById('main-content'),
        vp = window.innerHeight,
        bodyHeight = document.body.clientHeight,
        hHeight = header.clientHeight,
        fHeight = footer.clientHeight,
        withMinHeight = hHeight + fHeight + 830;

    if(withMinHeight >  bodyHeight ){
      var newHeight = (vp - (hHeight+fHeight)) + 'px';
      main.style.height = newHeight;
    }    
  }

};

Init.start();

})();

@@ -41,17 +41,16 @@
 ction()%7B
- 
 %0A    var
@@ -650,13 +650,8 @@
 oter
--wrap
 '),%0A
@@ -941,9 +941,16 @@
 ght 
-%3E
+%3C  vp &&
   bo
@@ -958,16 +958,20 @@
 yHeight 
+%3C vp
 )%7B%0A     
@@ -1062,20 +1062,16 @@
 t;%0A    %7D
-    
 %0A  %7D%0A%0A%7D;

fix sticker footer