$.cookie=$.cookie||function(e,a,o){if("undefined"==typeof a){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),i=0;i<n.length;i++){var r=jQuery.trim(n[i]);if(r.substring(0,e.length+1)==e+"="){t=decodeURIComponent(r.substring(e.length+1));break}}return t}o=o||{},null===a&&(a="",o=$.extend({},o),o.expires=-1);var l="";if(o.expires&&("number"==typeof o.expires||o.expires.toUTCString)){var s;"number"==typeof o.expires?(s=new Date,s.setTime(s.getTime()+24*o.expires*60*60*1e3)):s=o.expires,l="; expires="+s.toUTCString()}var c=o.path?"; path="+o.path:"",d=o.domain?"; domain="+o.domain:"",p=o.secure?"; secure":"";document.cookie=[e,"=",encodeURIComponent(a),l,c,d,p].join("")},"undefined"==typeof WJF&&(WJF={}),WJF.namespace=WJF.namespace||function(e){if(e){e=e.split(".");for(var a=window,o=0,t=e.length;t>o;o++)a=a[e[o]]=a[e[o]]||{}}},WJF.namespace("WJF.uiTool"),WJF.uiTool={initTab:function(e,a){a=a||{};var o=(a.activeCls?a.activeCls+" active":"")||"active",t=$("#"+e),n=t.find("a.active"),i=n.attr("data-target"),r=null;$("#"+i).removeClass(o).addClass(o),t.on("click","li",function(t){if(!a.onBeforeChange||a.onBeforeChange(e,$(this),t)!==!1){$("#"+i).removeClass(o),n.removeClass(o),r=n,n=$(this).find("a"),n.removeClass(o).addClass(o);var l=n.attr("data-target");$("#"+l).removeClass(o).addClass(o),l!=i&&a.onTabChange&&a.onTabChange(e,$(this),l,i,r,n,t),i=l}})},createTab:function(){},placeholder:function(e){"placeholder"in document.createElement("input")||$(e||"[placeholder]").focus(function(){var e=$(this);e.val()==e.attr("placeholder")&&(e.val(""),e.removeClass("placeholder"))}).blur(function(){var e=$(this);""==e.val()||e.val()==e.attr("placeholder")?(e.addClass("placeholder"),e.val(e.attr("placeholder"))):e.removeClass("placeholder")}).blur()}};