$(document).ready(function () {
    jQuery.fn.exists = function () {
        return jQuery(this).length > 0;
    }
    if ($.browser.version == 6.0 || $.browser.version == 7.0) {
        $width = 0;
        $width2 = 0;
        if ($(".focpLinks").exists()) {
            $('.focpLinks li').each(function (index) {
                $width += $(this).width();
            });
            $('.focpLinks').css("width", $width);
        }
        if ($(".focpMainLinks").exists()) {
            $('.focpMainLinks li').each(function (index) {
                $width2 += $(this).width();
            });
            $('.focpMainLinks').css("width", $width2);
        }
        }

    if ($("#discoverUs").exists()) {
         $(".focpNavigation ul li:first-child a").addClass("activeNavLink");
    }
/*email watermark
    if ($(".searchTxt").exists()) {
        $(".searchTxt").Watermark("Search", "#999a9c");
    }*/
    // email watermark
    if ($(".emailTxt").exists()) {
        $(".emailTxt").Watermark("email@domain.com", "#999a9c");
    }

});
