/** PTNovelSearch-v4.1.2 LPPL License By http://www.ptcms.com/ */
 ;$.pt=$.pt||{},function(e){e.pt={init:function(){},addFav:function(){var e=window.location.href,n=window.document.title;if(confirm("收藏名称："+n+"\n收藏网址："+e+"\n确定添加收藏？")){var o=navigator.userAgent.toLowerCase();if(o.indexOf("msie 8")>-1)window.external.addToFavoritesBar(e,n);else try{window.external.addFavorite(e,n)}catch(t){try{window.sidebar.addPanel(n,e,"")}catch(t){alert("加入收藏失败，请使用Ctrl+D进行添加")}}}},setHome:function(e){if(document.all)document.body.style.behavior="url(#default#homepage)",document.body.setHomePage(e);else if(window.sidebar){if(window.netscape)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(n){alert("该操作被浏览器拒绝")}var o=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);o.setCharPref("browser.startup.homepage",e)}},backTop:function(n){e(window).scroll(function(){e(window).scrollTop()>=200?e(n).fadeIn(500):e(n).fadeOut(500)}),e(n).click(function(){return e("body,html").animate({scrollTop:0},500),!1})},tab:function(){e(".pt-tab .pt-tab-nav li").on("mouseover",function(){e(this).addClass("active").siblings().removeClass("active"),console.log(e(this).index()),e(this).parents(".pt-tab").find(".pt-tab-con ul").eq(e(this).index()).removeClass("none").siblings().addClass("none")})},gopos:function(n){e("body,html").animate({scrollTop:e(n).offset().top},500)}}}($),$(function(){$.pt.backTop(".gotop"),$.pt.tab(),$("img").on("error",function(){this.src="/public/image/nocover.jpg"}),$(".dropmenu").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")}),$(".searchbox .dropmenu-item li").on("click",function(){$("[name=searchtype]").val($(this).data("type")),$(this).prependTo($(this).parent()),$(".dropmenu").removeClass("hover")})});