锘縅oomla=window.Joomla||{},Joomla.editors=Joomla.editors||{},Joomla.editors.instances=Joomla.editors.instances||{},function(a,b){"use strict";a.submitform=function(a,c,d){c||(c=b.getElementById("adminForm")),a&&(c.task.value=a),c.noValidate=!d,c.setAttribute("novalidate",!d);var e=b.createElement("input");e.style.display="none",e.type="submit",c.appendChild(e).click(),c.removeChild(e)},a.submitbutton=function(b){a.submitform(b)},a.JText={strings:{},_:function(a,b){return"undefined"!=typeof this.strings[a.toUpperCase()]?this.strings[a.toUpperCase()]:b},load:function(a){for(var b in a)a.hasOwnProperty(b)&&(this.strings[b.toUpperCase()]=a[b]);return this}},a.replaceTokens=function(a){if(/^[0-9A-F]{32}$/i.test(a)){var d,e,f,c=b.getElementsByTagName("input");for(d=0,f=c.length;d=0;j--)k=b.createElement("div"),k.innerHTML=f[j],g.appendChild(k);d.appendChild(g)}},a.removeMessages=function(){for(var a=b.getElementById("system-message-container");a.firstChild;)a.removeChild(a.firstChild);a.style.display="none",a.offsetHeight,a.style.display=""},a.ajaxErrorsMessages=function(b,c,d){var e={};if("parsererror"==c){for(var f=b.responseText.trim(),g=[],h=f.length-1;h>=0;h--)g.unshift(["&#",f[h].charCodeAt(),";"].join(""));f=g.join(""),e.error=[a.JText._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",f)]}else"nocontent"==c?e.error=[a.JText._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]:"timeout"==c?e.error=[a.JText._("JLIB_JS_AJAX_ERROR_TIMEOUT")]:"abort"==c?e.error=[a.JText._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]:e.error=[a.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",b.status)];return e},a.isChecked=function(a,c){if("undefined"==typeof c&&(c=b.getElementById("adminForm")),c.boxchecked.value=a?parseInt(c.boxchecked.value)+1:parseInt(c.boxchecked.value)-1,c.elements["checkall-toggle"]){var e,f,g,d=!0;for(e=0,g=c.elements.length;e",i=d==e,j=0;for(l in c)c.hasOwnProperty(l)&&(m=c[l],m[0]==d&&(k="",(i&&f==m[1]||!i&&0===j)&&(k='selected="selected"'),h+='",j++));h+="",g?g.innerHTML=h:b.writeln(h)},window.changeDynaList=function(a,c,d,e,f){for(var i,j,k,l,g=b.adminForm[a],h=d==e;g.firstChild;)g.removeChild(g.firstChild);i=0;for(j in c)c.hasOwnProperty(j)&&(k=c[j],k[0]==d&&(l=new Option,l.value=k[1],l.text=k[2],(h&&f==l.value||!h&&0===i)&&(l.selected=!0),g.options[i++]=l));g.length=i},window.radioGetCheckedValue=function(a){if(!a)return"";var c,b=a.length;if(void 0===b)return a.checked?a.value:"";for(c=0;c-1?d.options[e].value:null},window.listItemTask=function(a,c){var f,d=b.adminForm,e=0,g=d[a];if(!g)return!1;for(;;){if(f=d["cb"+e],!f)break;f.checked=!1,e++}return g.checked=!0,d.boxchecked.value=1,window.submitform(c),!1},window.submitbutton=function(b){a.submitbutton(b)},window.submitform=function(b){a.submitform(b)},window.saveorder=function(a,b){window.checkAll_button(a,b)},window.checkAll_button=function(c,d){d=d?d:"saveorder";var e,f;for(e=0;e<=c;e++){if(f=b.adminForm["cb"+e],!f)return void alert("You cannot change the order of items, as an item in the list is `Checked Out`");f.checked=!0}a.submitform(d)},a.loadingLayer=function(c,d){if(c=c||"show",d=d||b.body,"load"==c){var e=b.getElementsByTagName("body")[0].getAttribute("data-basepath")||"",f=b.createElement("div");f.id="loading-logo",f.style.position="fixed",f.style.top="0",f.style.left="0",f.style.width="100%",f.style.height="100%",f.style.opacity="0.8",f.style.filter="alpha(opacity=80)",f.style.overflow="hidden",f.style["z-index"]="10000",f.style.display="none",f.style["background-color"]="#fff",f.style["background-image"]='url("'+e+'/media/jui/images/ajax-loader.gif")',f.style["background-position"]="center",f.style["background-repeat"]="no-repeat",f.style["background-attachment"]="fixed",d.appendChild(f)}else b.getElementById("loading-logo")||a.loadingLayer("load",d),b.getElementById("loading-logo").style.display="show"==c?"block":"none";return b.getElementById("loading-logo")}}(Joomla,document);