// Login Feature
$(function(){
	if ($('.login-box').val() == '') $('.login-box').val('Access ID');
	if ($.browser.msie && $.browser.version < 8) $('p.help-links').css('margin-top',0);
	$('.login-box').focus(function(){
		if (!$(this).hasClass('active')) $(this).addClass('active');
		if ($(this).val() == "Access ID") $(this).val('');
	});
	$('.login-box').blur(function(){
		if ($(this).hasClass('active')) $(this).removeClass('active');
		if ($(this).val() == '') $(this).val("Access ID");
	});
	$('.form-select li').click(function(){
		if (!$(this).hasClass('current')) {
			$(this).siblings('li').removeClass('current');
			$(this).addClass('current');
			var tabLink = $(this).children('a').first();
			var selectedForm = $(tabLink.attr('href'));
			$('.login-form').not(selectedForm).hide(0);
			selectedForm.show(0);
		}
	});
	$('.form-select li a').click(function(e){
		e.preventDefault();
		$(this).parent('li').click();
	});
});

//Employment nav feature tag-along
window.ShowEmployment = true;
window.HomepageOnly = true;

$(function() {
	if (window.ShowEmployment) {
		if (window.HomepageOnly == false || $("body").hasClass('homepage')) {
			$('<li><a class="employment" href="/who-we-are/about/employment-opportunities.html">Employment Opportunities</a></li>')
				.appendTo('#drop');
		}
	}
});
