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("
Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+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: (Max Character Length: "+$(".news-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".news-introduction textarea").keyup(function(){News_CalculateCharLimit()});
function EndRequestHandler(){defaultPageLoad()}function defaultPageLoad(){$(".thumbnail").imagefill();$(".classified-link").imagefill()}$(window).on("load",function(){defaultPageLoad();Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler)});
function PN_CalculateCharLimit(){var r;if($(".notices-introduction textarea").length>0&&$(".notices-introduction .char_limit").length>0){var i=$(".notices-introduction textarea"),t=$(i).val().length,n=0;$(".notices-introduction .char_limit").attr("data-charlimit")!==undefined&&(n=$(".notices-introduction .char_limit").attr("data-charlimit"));t>0?$(".notices-introduction .char_limit").html(" Character Length:<\/strong> "+t+"<\/span>"+(n!==0?" of "+n+"<\/span>":"")):$(".notices-introduction .char_limit").html("");n!==undefined&&(n>0&&t>=n?$(".notices-introduction .char_limit").addClass("text-danger"):$(".notices-introduction .char_limit").removeClass("text-danger"),n>0&&t>n&&(r=$(i).val().substr(0,n),$(i).val(r)))}}$(document).ready(function(){$(".notices-introduction .char_limit").length>0&&$(".notices-introduction .char_limit").attr("data-charlimit")!==undefined&&$(".notices-introduction label").html("Introduction: (Max Character Length: "+$(".notices-introduction .char_limit").attr("data-charlimit")+")<\/span>")});$(".notices-introduction textarea").keyup(function(){PN_CalculateCharLimit()});
$(document).ready(function () {
$('.thumbnail').imagefill();
//WCAG Fix
$("div.consultation-item-data").each(function (i, obj) {
var table = $(this).find("table.table");
if (table !== undefined) {
var title = $(this).find("div.page-header h2").text();
if (window.location.href.indexOf("past") > -1) {
$(table).attr("aria-label", 'Past ' + title + ' Consultations');
$(table).attr("title", 'Past Consultations - ' + title);
}
else {
$(table).attr("aria-label", title + ' Consultations');
$(table).attr("title", 'Consultations - ' + title);
}
}
});
});
function OnClientFileUploaded(n,t){var r=t.get_fileInfo(),i,u;r.ErrorMessage!=null&&(i=t.get_row(),n._updateRowImage(i,"fail"),n._updateCancelButton(i),u='