function $G(B){return document.getElementById(B)}function $F(B){return $G(B).value}function addFavorite(C,D){var C=arguments[0]||hyzTitle;var D=arguments[1]||hyzUrl;if(document.all){window.external.addFavorite(D,C)}else{if(window.sidebar){window.sidebar.addPanel(C,D,"")}else{alert("请使用Ctrl+D进行添加！")}}}function checkFormForBook(){var B=$F("q");if(0==$.trim(B)){alert("请输入要查询的内容");return false}return true}function checkForm(D){var C=$F("q");if(0==$.trim(C)){alert("请输入要查询的内容");return false}else{document.location.href="http://www.xiangbobo.com/"+D+"/s_"+C;return false}}$.fn.extend({TrunAd2:function(H){var I=null;var J=$(this);count=$("a",J).size();n=0;var L={timer:5000,menu:"#play_text"};H=H||{};$.extend(L,H);var K="<ul>";for(i=1;i<=count;i++){K=K+"<li>"+i+"</li>"}K=K+"</ul>";$(L.menu).html(K);$("a:not(:first-child)",this).hide();$(L.menu+" li").eq(0).css({background:"#7f0019",color:"#fff","font-weight":"bolder"});$(L.menu+" li").mouseover(function(){i=$(this).text()-1;n=i;if(n>=count){return }$("a",J).filter(":visible").fadeOut(200,function(){$(this).parent().children().eq(n).fadeIn(300)});$(this).css({background:"#7f0019",color:"#fff","font-weight":"bolder"}).siblings().css({background:"#fff",color:"#7f0019","font-weight":"normal"})});I=setInterval(G,L.timer);J.hover(function(){clearInterval(I)},function(){I=setInterval(G,L.timer)});function G(){n=n>=(count-1)?0:++n;$(L.menu+" li").eq(n).trigger("mouseover")}}});
