function resizePromos(size,image,imgId){
  maxWidth = size;
 
  promoImage = new Image();
  promoImage.onload = function(){
    if (promoImage.width > maxWidth){
      document.getElementById(imgId).style.width = maxWidth;
    }else{
      document.getElementById(imgId).style.width = promoImage.width;
    }
    document.getElementById(imgId).src = image;
  }
  promoImage.src = image;
}
function showPromos(obj){
  obj.style.overflowY = 'auto';
}
function hidePromos(obj){
  obj.style.overflowY = 'hidden';
}

