var __rb_eventactionfx={onclickShow:function(){var n=$(this).attr("onclick-show"),t=$(n);t.removeClass(__rb.hiddenClass)},ifcheckedShow:function(){var t=$(this).attr("ifchecked-show"),n=$(t);$(this).prop("checked")?n.removeClass(__rb.hiddenClass):n.addClass(__rb.hiddenClass)},ifcheckedHide:function(){var t=$(this).attr("ifchecked-hide"),n=$(t);$(this).prop("checked")?n.addClass(__rb.hiddenClass):n.removeClass(__rb.hiddenClass)}};$(document).ready(function(){$(document.body).on("click","*[onclick-show]",__rb_eventactionfx.onclickShow);$(document.body).on("click","*[onclick-hide]",function(){var n=$(this).attr("onclick-hide"),t=$(n);t.addClass(__rb.hiddenClass)});$(document.body).on("click","*[onclick-toglleclass]",function(){var n=$(this).attr("onclick-toglleclass").split(" on "),t=n[0],i=n.length>1?$(n[1]):$(this);i.toggleClass(t)});$(document.body).on("dblclick","*[ondblclick-show]",function(){var n=$(this).attr("ondblclick-show"),t=$(n);t.removeClass(__rb.hiddenClass)});$(document.body).on("dblclick","*[ondblclick-hide]",function(){var n=$(this).attr("ondblclick-hide"),t=$(n);t.addClass(__rb.hiddenClass)});$(document.body).on("dblclick","*[ondblclick-toglleclass]",function(){var n=$(this).attr("ondblclick-toglleclass").split(" on "),t=n[0],i=n.length>1?$(n[1]):$(this);i.toggleClass(t)});$(document.body).on("mouseenter","*[onhover-display]",function(){var n=$($(this).attr("onhover-display"));n.removeClass(__rb.hiddenClass)});$(document.body).on("mouseleave","*[onhover-setclass]",function(){var n=$($(this).attr("onhover-display"));n.addClass(__rb.hiddenClass)});$(document.body).on("mouseenter","*[onhover-setclass]",function(){var n=$(this).attr("onhover-setclass").split(" on "),t=n[0],i=n.length>1?$(n[1]):$(this);i.addClass(t)});$(document.body).on("mouseleave","*[onhover-setclass]",function(){var n=$(this).attr("onhover-setclass").split(" on "),t=n[0],i=n.length>1?$(n[1]):$(this);i.removeClass(t)});$(document.body).on("submit","FORM[onsubmit-disable=':submit']",function(){$(this).find("INPUT[type=submit], INPUT[type=reset], INPUT[type=image], BUTTON").each(function(){$(this).prop("disabled",!0)})});$(document.body).on("submit","FORM[onsubmit-hide]",function(){var t=$(this).attr("onsubmit-hide"),n=$(this).find(t);n.length||(n=$(t));n.addClass(__rb.hiddenClass)});$(document.body).on("submit","FORM[onsubmit-show]",function(){var t=$(this).attr("onsubmit-show"),n=$(this).find(t);n.length||(n=$(t));n.removeClass(__rb.hiddenClass)});$(document.body).on("input change","FORM[onchange-set]",function(){__rb.markFormChanged($(this))});$(document.body).on("change","*[onchange-submit=':form']",function(n){var t=$(this).closest("form"),i=$(this).attr("inline-target"),r=$(this).attr("formaction");if($(this)[0]!==t[0]&&(i||r)){var u=(t.attr("method")||"GET").toUpperCase(),f=$(this).attr("formaction")||t.attr("action")||"",e=$(this).attr("target")||t.attr("target")||null;__rb.submitInline(n,$(this),t,u,f,e,i,!1,null)}else t.submit()});$(document.body).on("change","INPUT[ifchecked-show]",__rb_eventactionfx.ifcheckedShow);$(document.body).on("change","INPUT[ifchecked-hide]",__rb_eventactionfx.ifcheckedHide)});rbLoaderExtensions.push(function(n){$(n).find("INPUT[ifchecked-show]").each(__rb_eventactionfx.ifcheckedShow);$(n).find("INPUT[ifchecked-hide]").each(__rb_eventactionfx.ifcheckedHide)});