/// jQuery(function() { var topnav_count = jQuery("#topnav ul li").size() - 1; if (topnav_count > 0) { jQuery("#topnav ul li").removeClass('hidden'); jQuery("#topnav ul li:eq(" + topnav_count + ")").addClass('hidden'); } var search_label = jQuery("#searchText").val(); jQuery("#searchText").focus(function() { if (this.value == search_label) { $(this).val(''); }; }).blur(function() { if (this.value == '') { $(this).val(search_label); }; }); if (jQuery('.CandidatePromotion').length > 0) { var old_headline = 0; var current_headline = 0; var headline_count = jQuery(".CandidatePromotion").size(); jQuery(".CandidatePromotion").hide().eq(0).show(); setInterval(function() { current_headline = (old_headline + 1) % headline_count; jQuery(".CandidatePromotion:eq(" + old_headline + ")").fadeOut(1000).removeClass('Show').addClass('Hide'); jQuery(".CandidatePromotion:eq(" + current_headline + ")").removeClass('Hide').addClass('Show').fadeIn(4000); old_headline = current_headline; }, 7000); } });