﻿$(document).ready(function() { Init(); });

var SideNavItems = [], BreadCrumbs = [], BannerImageUrl, PageTitle;

function Init()
{
    SetCurrSection();

    // bind the effects!
    $("div.contentLeftFill div").hover(function() { $(this).addClass("sideNavHover").find("a"); }, function() { $(this).removeClass("sideNavHover"); });
    $("input[type='text'],input[type='password'],textarea").focus(function() { $(this).css("borderColor", "#0b3e6d"); });
    $("input[type='text'],input[type='password'],textarea").blur(function() { $(this).css("borderColor", ""); });
    $("div.careersShell").corner();
}

function SetCurrSection()
{
    var currLocation = document.location.href.split("/")[3];

    if (currLocation.length > 0)
    {
        var navImage = $("a[href='/" + currLocation + "'] img");
        var newNavImage = navImage.attr("src").replace(".jpg", "") + "_f2.jpg";
        navImage.attr("src", newNavImage);
    }
}

/*function SetSideNavItems() { SideNavItems = arguments[0]; }
function SetBreadCrumbs() { BreadCrumbs = arguments[0]; }
function SetTitle() { PageTitle = arguments[0]; }
function SetBannerUrl() { BannerImageUrl = arguments[0]; }*/