$.extend($.fn.tabs.methods,{addEventParam:function(a){return a.each(function(){var b=this;var c=$(this).find(">div.tabs-header>div.tabs-wrap>ul.tabs>li");c.each(function(d){var e=$(b).tabs("getTab",d).panel("options").tools;if(typeof e!="string"){$(this).find(">span.tabs-p-tool a").each(function(f){$(this).unbind("click").bind("click",{handler:e[f].handler},function(g){if($(this).parents("li").hasClass("tabs-disabled")){return}g.data.handler.call(this,g)})})}})})},loadTabIframe:function(b,a){return b.each(function(){var k=$(this).tabs("getTab",a.which);if(k==null){return}var i=k.panel("body");var c=$("iframe",i);if(c.length>0){try{c[0].contentWindow.document.write("");c[0].contentWindow.close()}catch(j){}c.remove();if(!$.support.leadingWhitespace){CollectGarbage()}}i.html("");i.css({overflow:"hidden",position:"relative"});var l=$('
').appendTo(i);var h=$('
'+(a.iframe.message||"Processing, please wait ...")+"
").appendTo(i);var d=$('
').appendTo(i);var g=$('
').appendTo(i);var f=document.createElement("iframe");f.src=a.iframe.src;f.name=a.iframe.name;f.frameBorder=a.iframe.frameBorder||0;f.height=a.iframe.height||"100%";f.width=a.iframe.width||"100%";if(f.attachEvent){f.attachEvent("onload",function(){$([l[0],h[0]]).fadeOut(a.iframe.delay||"fast",function(){$(this).remove();if($(this).hasClass("mask-message")){d.fadeOut(a.iframe.delay||"fast",function(){$(this).remove()})}})})}else{f.onload=function(){$([l[0],h[0]]).fadeOut(a.iframe.delay||"fast",function(){$(this).remove();if($(this).hasClass("mask-message")){d.fadeOut(a.iframe.delay||"fast",function(){$(this).remove()})}})}}g[0].appendChild(f)})},addIframeTab:function(b,a){return b.each(function(){if(a.tab.href){delete a.tab.href}$(this).tabs("add",a.tab);$(this).tabs("loadTabIframe",{which:a.tab.title,iframe:a.iframe})})},updateIframeTab:function(b,a){return b.each(function(){a.iframe=a.iframe||{};if(!a.iframe.src){var d=$(this).tabs("getTab",a.which);if(d==null){return}var c=d.panel("body");var e=c.find("iframe");if(e.length===0){return}$.extend(a.iframe,{src:e.attr("src")})}$(this).tabs("loadTabIframe",a)})}});