/**
 * Will get element X and Y and adjust Y to the same height as X
 **/
function scaleBox(vars){

    var source = document.getElementById(vars.source);
    var clone = document.getElementById(vars.clone);    
    
    // Find height of "fragment" containing image
    var sourceHeight = source.offsetHeight;
    var cloneHeight = 0;
    var ts = clone.firstChild;    
    do{
       if(ts.nodeType !== 3){       
          var thisHeight = ts.offsetHeight;
          cloneHeight = cloneHeight + thisHeight;
          if(cloneHeight < sourceHeight){
              ts.className = 'visible';
          }     
       }
       ts = ts.nextSibling;              
    }while(ts.nextSibling !== null);

    // Set height off list and set it to visible
    clone.style.height = sourceHeight - 2 + 'px';
    clone.className = 'visible';
};