/*
 * Font replacements
 */

//Minion font replacement
Cufon.set('fontFamily','MinionPro');
Cufon('h1[class!="search-page-title"]',{hover:true});
Cufon('#contentcenter h2',{hover:true});
Cufon('#businessunit');
Cufon('.slug-welcome h1');
Cufon('.hometab-content h2');

//Myriad font replacement
Cufon.set('fontFamily','MyriadPro');
Cufon('.navitem',{hover:true});
Cufon('h4');

jQuery(document).ready(function() {

    if (document.getElementById("map_canvas"))
    {
        initializeMaps();
    }
});

function checkheight(setauto)
{
    if (setauto)
    {
        jQuery('#content').height('auto');
    }
    var leftheight = jQuery('#primary').height();
    var centerheight = jQuery('#content').height();
    var rightheight = jQuery('#secondary').height();

    // find which one is tallest;
    if (leftheight > centerheight)
    {
        jQuery('#content').height(leftheight+40)
        centerheight = jQuery('#content').height();
    }
    if (rightheight > centerheight)
    {
        jQuery('#content').height(rightheight+20)
    }
}
