﻿var isIE6 = false;

if ($.browser.msie && $.browser.version == "6.0") {
    isIE6 = true;
};

$(document).ready(function() {

    //Cufón text replacement
    //CSS class "cufonReplace" is used to specify what Cufón needs to replace
    cufonReplacement();

    //Adds mouseover/ mouseout events to global navigation
    $('#global_nav li').mouseover(
    function() {
        if (!$(this).find('div').hasClass('pageLocked')) {
            $(this).find('div').stop().animate({
                marginTop: '-70px'
            }, 250);
        }
    }).mouseout(
    function() {
        $(this).find('div').stop().animate({
            marginTop: '0px'
        }, 250);
    });

    //Sets navigation
    globalNavSelect();

});

function cufonReplacement() {

    Cufon.set('fontFamily', 'URWClarendonTMed').replace('.cufonReplace_clare');
    Cufon.set('fontFamily', 'Franklin Gothic Demi Cond').replace('.cufonReplace_goth');

}
