function setColHeights(rows) {
  var cols = new Array, colHeight = 0;
  for(var i in rows) {
    cols      = $$(rows[i]);
    colHeight = 0;
    if(cols) {
      // determine the highest column
      cols.each(function(e) {
        if(colHeight < e.getDimensions().height) {
          colHeight = e.getDimensions().height
        }
      });
      // run through each column and set height
      cols.each(function(e) {
        if(Browser.Engine.name == 'trident' && Browser.Engine.version <= 4) {
          if(e.getNext() != null) {
            e.setStyle('height', colHeight + 21 + "px");
          }else{
            e.setStyle('height', colHeight + 31 + "px");
          }
        }else{
          var child = e.getElement('div');
          if(child.hasClass('slideshow')) {
            e.setStyle('height', child.getStyle('height'));
          }else{
            if(e.getParent().getPrevious() != null) {
              var prevHeight = e.getParent().getPrevious().getStyle('height').split("px")[0];
              e.setStyle('height', prevHeight - 20 + "px");
            }else{
              e.setStyle('height', colHeight + "px");
            }
          }
        }
      });
    }
  }
}
window.addEvent('domready', function(){
  
  var sroll1 = new Fx.SmoothScroll();

  var tooltips = new Tips($$('.shortcut'));
  tooltips.addEvent('show', function(tip, el) {
    tip.fade('in');
  });
  tooltips.addEvent('hide', function(tip, el) {
    tip.fade('out');
  });

  $$('.emailReplace').each(function(e) {
    var link = e.get('text').substitute({at:'@'});
    e.set('text','');
    var a = new Element('a', {
      'href' : 'mailto:'+link,
      'html' : link
    }).inject(e);
  });
});
