/*
    Coded By Steven Bower (cc) 2008-2010
    TurnWheel Designs http://turnwheel.com/
    BPWebDesign http://bpwebdesign.com/
*/

$(function() {
    // Really lame hack to force all 3 columns
    // on home page to be exactly the same height.
    // We get the height of each column, and set
    // the others to the height of the tallest one.
    
    var cols = [$('#leftcolumn .leftbox'),$('#center'),$('#rightcolumn')];
    
    // Find tallest column
    var largest = 0;
    for (var x in cols) {
        var height = parseInt(cols[x].outerHeight(true));
        if (height > largest) largest = height;
    }
    
    // Set all columns to the largest value
    // as long as largest is not 0
    if (largest != 0) {
        for (var x in cols) {
            cols[x].height(largest);
        }
    }
});
