function gridViewSort(){$(".gvTable").length>0&&$(".gvTable[data-client-sortable]").sortable({items:"tr:not(tr:first-child)",cursor:"pointer",axis:"y",dropOnEmpty:!1,placeholder:"sort-placeholder"})}function runOnPagePostback(){gridViewSort()}function matchHieghts(){$(".hr-contact-default").length>0&&$(window).width()>=1262&&($.fn.matchHeight._beforeUpdate=function(){},$(".hr-contact-default #hr-contact-list .hr-contact-item").matchHeight(),$.fn.matchHeight._afterUpdate=function(){$(".hr-contact-default .module-list .loading").fadeOut()})}$(".nav-tabs a").click(function(n){n.preventDefault();$(this).tab("show")});typeof $.fn.imagefill=="function";$(document).ready(function(){gridViewSort();matchHieghts()});Sys.WebForms.PageRequestManager.getInstance().add_endRequest(runOnPagePostback);$(".hr-contact-default .hr-contact-item").length&&($(".hr-contact-default .hr-contact-item .hr-item-header").matchHeight({remove:!0}),$(".hr-contact-default .hr-contact-item .hr-details-content").matchHeight({remove:!0}),$(".hr-contact-default .hr-contact-item .hr-item-department").matchHeight({remove:!0}),$(window).width()>1262&&($(".hr-contact-default .hr-contact-item .hr-item-header").matchHeight(),$(".hr-contact-default .hr-contact-item .hr-details-content").matchHeight(),$(".hr-contact-default .hr-contact-item .hr-item-department").matchHeight()));
function News_CalculateCharLimit(){var r;if($(".news-introduction textarea").length>0&&$(".news-introduction .char_limit").length>0){var i=$(".news-introduction textarea"),t=$(i).val().length,n=0;$(".news-introduction .char_limit").attr("data-charlimit")!==undefined&&(n=$(".news-introduction .char_limit").attr("data-charlimit"));t>0?$(".news-introduction .char_limit").html("<p><strong>Character Length:<\/strong> <span class='current-count'>"+t+"<\/span>"+(n!==0?" of <span class='max-count'>"+n+"<\/span>":"")):$(".news-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".news-introduction .char_limit").addClass("text-danger"):$(".news-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".news-introduction .char_limit").length>0&&$(".news-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".news-introduction label").html("Introduction: <span class='charlimit-info'> (Max Character Length: "+$(".news-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".news-introduction textarea").keyup(function(){News_CalculateCharLimit()});
