try{var MF;if("undefined"===typeof MF){MF={};}if("undefined"===typeof MF.Announcement){MF.Announcement={};}MF.Announcement.AnnouncementModule=JsonML.BST(["form"," ",["div",{"class":"section-title"}," ",["h3",function(){return JsonFx.Lang.get("Global,AnnouncementPageTitle");}]," "],""," ",["p",function(){return JsonFx.Lang.get("Global,AnnouncementInstruction");}]," ",""," ",["label",function(){return JsonFx.Lang.get("Global,Message");}]," ",["textarea",{name:"message","class":"active js-message",onkeyup:"MF.Announcement.AnnouncementModule.updateMessageLength($(this).val());",onkeypress:"MF.Announcement.AnnouncementModule.enforceMaxLength($(this));"},function(){return this.data.message;}]," ",["div",{"class":"formatGuide"}," ",["p",{"class":"intro"}," ",["strong",{"class":"js-counter"},function(){return this.maxLength-this.data.message.length;}]," Characters Left. Some HTML is allowed. ",["a",{href:"#guide",onclick:"$('.formatGuide .explain').toggle();return false;"},"See guide"]," for formatting options. "]," ",["div",{"class":"explain",style:"display:none"}," ",["p","Some basic HTML is allowed to help you format your text how you want it to be seen by other people. Examples of what you can do can be seen below."]," ",["table"," ",["tr"," ",["td"," ",["strong","Bold"]," "]," ",["td"," ",["code","\u003Cb>Bold Text\u003C/b>"]," "]," "]," ",["tr"," ",["td"," ",["em","Italic"]," "]," ",["td"," ",["code","\u003Ci>Italic Text\u003C/i>"]," "]," "]," ",["tr"," ",["td"," ",["u","Underline"]," "]," ",["td"," ",["code","\u003Cu>Underlined Text\u003C/u>"]," "]," "]," ",["tr"," ",["td"," ",["a",{href:""},"Link"]," "]," ",["td"," ",["code",'\u003Ca href="URL">Linked Text\u003C/a>']," "]," "]," ",["tr"," ",["td"," Image "]," ",["td"," ",["code",'\u003Cimg src="URL">']," "]," "]," "]],""," "],""," ",["p",{"class":"submit"},["a",{"class":"positive",onclick:"MF.Announcement.AnnouncementModule.post(this);return false;"},function(){return JsonFx.Lang.get("Global,SaveChanges");}]," ",function(){return JsonFx.Lang.get("Global,Or");}," ",["a",{href:function(){return this.data.cancelUrl;}},function(){return JsonFx.Lang.get("Global,Cancel");}]]," "]);(function(){this.maxLength=4000;this.updateMessageLength=function(A){$(".js-counter").text(this.maxLength-A.length);};this.enforceMaxLength=function(A){if(JsonFx.userAgent.ie<=7){if(A.html().length>=this.maxLength){A.html(A.html().substr(0,this.maxLength-1));}}else{if(A.val().length>=this.maxLength){A.val(A.val().substr(0,this.maxLength-1));}}};this.post=function(A){var C=jQuery(A.form);var B=MF.Forms.getFormData(C);MF.Forms.disableSubmit(C);MF.Announcement.AnnouncementService.saveAnnouncement(B.message,{onSuccess:function(D){MF.Message.showInfo(C,"Announcement successfully updated!",MF.Message.Scope.Column);},onComplete:function(){MF.Forms.enableSubmit(C);}});};}).call(MF.Announcement.AnnouncementModule);}catch(ex){}try{var MF;if("undefined"===typeof MF){MF={};}if("undefined"===typeof MF.Announcement){MF.Announcement={};}MF.Announcement.AnnouncementService=new JsonFx.IO.Service("/Features/Announcement/AnnouncementService.jrpc");MF.Announcement.AnnouncementService.getAnnouncement=function(opt){this.invoke("getAnnouncement",null,opt);};MF.Announcement.AnnouncementService.saveAnnouncement=function(message,opt){this.invoke("saveAnnouncement",[message],opt);};}catch(ex){}