!function(a){a.fn.espcms_rightkey=function(b){var d=function(b,c){var d,e;return b.data_id&&b.data_name&&(d=a(c).attr(b.data_id)),e='<div class="espcms_right_menu"><dl class="espcms_right_dropdown_menu">',a.isArray(b.items)&&a.each(b.items,function(a,c){if(c.tab_url){var f=b.data_name+"="+d;c.tab_url=espcms_combine_url(f,c.tab_url),e=e+'<dd><a class="'+c.cssname+'" tab_icon="'+c.icon+'" tab_name="'+c.name+'" tab_close="'+c.tab_close+'" tab_url="'+c.tab_url+'"><span class="'+c.icon+'" aria-hidden="true"></span>'+c.name+"</a></dd>"}else e=e+'<dd><a class="'+c.cssname+'" data-id="'+d+'" '+c.attr+'><span class="'+c.icon+'" aria-hidden="true"></span>'+c.name+"</a></dd>"}),e+="</dl></div>"},e=function(b,c,e){var f,g;a("body").append(d(b,c)),f=e.pageX,g=e.pageY,a(".espcms_right_menu").show().css({left:f,top:g}),b.callback&&b.callback()};a.extend({iframeName:!1,title:"",data_id:"data-id",data_name:"id",items:[],callback:function(){}},b),a(this).each(function(){this.oncontextmenu=function(c){return c=c||window.event,c.cancelBubble=!0,c.stopPropagation&&c.stopPropagation(),a(".espcms_right_menu").remove(),e(b,this,c),!1}}),a("body").click(function(){a(".espcms_right_menu").remove()})}}(jQuery);