﻿$(document).ready(function() {

    function verticalDividerHeight(group, targetDiv) {
        var tallest = 0;
        group.each(function() {
            thisHeight = $(this).height();
            if (thisHeight > tallest) {
                tallest = thisHeight;
            }
        });

        $(targetDiv).each(function() {
            $(this).height(tallest);
        });
    }

    //Select all column divs.
    $("div[id^='column']").each(function() {
        //If not column 1 add divider html before it.

        if ($(this).attr('id') != 'column1') {
            $(this).before('<div class="verticalDivider"><div class="verticalDividerBottomFade">&#160;</div></div>');
        }

    });

    //Equal height all the verticalDivider columns.
    verticalDividerHeight($("div[id^='column']"), '.verticalDivider');

 
});

function loadInSIFR() {

 var TrajanPro = { src: '/ewcommon/fonts/Trajan_Pro.swf' };
 
 sIFR.delayCSS = true;
 sIFR.activate(TrajanPro);

 sIFR.replace(TrajanPro, { selector: 'h2', wmode: 'transparent', css: ['.sIFR-root {color:#182d72;text-align: left;font-size: 23px;padding: 0;}', 'a { text-decoration: none; }', 'a:link { color: #414141; }', 'a:hover { color: #555555; }'], tuneHeight: 0, offsetTop: 0, offsetLeft: 0, forceSingleLine:true, preventWrap:true });

}
