var common=common||{};common={debug:false,v:[],isempty:function(b){b=$.trim(b);return(typeof(b)=="undefined"||b==undefined||b=="undefined"||b==null||b=="null"||b==""||!b)?true:false},getjson:function(data,f){return f?eval(data):eval("("+data+")")},changeURLPar:function(d,c,b){var e=c+"=([^&]*)";var a=c+"="+b;if(d.match(e)){tmp=d.replace(new RegExp(e,"gi"),a);return tmp}else{if(d.match("[?]")){return d+"&"+a}else{return d+"?"+a}}return d+"\n"+c+"\n"+b},afteranimate:function(b){var e={elem:null,html:null,after:true,massage:null,fadeout:true,disabled:false,callback:null,trigger:false};e=jQuery.extend(e,b);var a=null,d=jQuery(e.elem).length>0?jQuery(e.elem):jQuery("body").find(e.elem);switch(e.massage){case"success":a=""+e.html+"";break;case"error":a=""+e.html+"";break;case"loading":a=""+e.html+"";break;default:a=""+e.html+"";break}e.disabled?d.attr("disabled"," disabled"):d.removeAttr("disabled");if(e.after===true){var f=d.next("span.notice").length;f<1?d.after(a):""}else{if(e.after=="append"){d.append(a)}else{d.html(a)}}e.callback?e.callback():"";if(e.fadeout){var c=e.after===true?d.next("span.notice"):d.find("span.notice");c.html(e.html).fadeIn(0);if(!common.isempty(common.v["afteranimate"])){clearTimeout(common.v["afteranimate"])}common.v["afteranimate"]=setTimeout(function(){c.fadeOut(1000,function(){c.remove()})},2000)}},showanimate:function(b,e,c){var g=$("").text(e);var a=b.pageX-15,f=b.pageY;g.css({top:f-20,left:a,position:"absolute",color:(c=="error"?"#666":"#FF0000")});if($("body").find("b#showanimate").length==0){$("body").append(g)}if(c=="error"){for(var d=1;4>=d;d++){g.animate({top:f-40+20-(20-5*d)},50,function(){g.animate({opacity:0},800,function(){g.remove()})});g.animate({top:f-40+2*(20-5*d)},50)}}else{g.animate({top:f-70,opacity:0,"font-size":"1.4em"},800,function(){g.remove()})}},stopBubble:function(b,a){if(b&&b.stopPropagation){b.stopPropagation();a?b.preventDefault():""}else{window.event.cancelBubble=true;a?window.event.returnValue=false:""}return false},scrolltoobj:function(b,a){if(common.isempty(a)){a=0}jQuery("html,body").animate({scrollTop:jQuery(b).offset().top+a},500)}};(function(a,b){a.extend({"lockfixed":function(f,e){if(e&&e.offset){e.offset.bottom=parseInt(e.offset.bottom,10);e.offset.top=parseInt(e.offset.top,10)}else{e.offset={bottom:100,top:0}}var f=a(f);if(f&&f.offset()){var g=f.css("position"),c=parseInt(f.css("marginTop"),10),i=f.css("top"),h=f.offset().top,d=false;if(e.forcemargin===true||navigator.userAgent.match(/\bMSIE (4|5|6)\./)||navigator.userAgent.match(/\bOS ([0-9])_/)||navigator.userAgent.match(/\bAndroid ([0-9])\./i)){d=true}a(window).bind("scroll resize orientationchange load lockfixed:pageupdate",f,function(o){if(d&&document.activeElement&&document.activeElement.nodeName==="INPUT"){return}var n=0,m=f.outerHeight(),k=f.outerWidth(),l=a(document).height()-e.offset.bottom,j=a(window).scrollTop();if(f.css("position")!=="fixed"&&!d){h=f.offset().top;i=f.css("top")}if(j>=(h-(c?c:0)-e.offset.top)){if(l<(j+m+c+e.offset.top)){n=(j+m+c+e.offset.top)-l}else{n=0}if(d){f.css({"marginTop":(parseInt(j-h-n,10)+(2*e.offset.top))+"px"})}else{f.css({"position":"fixed","top":(e.offset.top-n)+"px","width":k+"px"})}}else{f.css({"position":g,"top":i,"width":k+"px","marginTop":(c&&!d?c:0)+"px"})}})}}})})(jQuery);function waterfall(a){this.config={url:null,yq:null,container:null,offcount:20,fadetime:500,page:1,status:1,haveloading:true,ibody:"i_body",clickobj:null,iheight:0,scrolltop:0,backgroundcolor:"",callback:null};this.config=$.extend(this.config,a);common.v["page"]=2;common.v["status"]=1;common.v["request"]=null}waterfall.prototype.toInsert=function(h){var c={ajax:1,offcount:this.config.offcount,page:h?1:common.v["page"],yq:this.config.yq},b=this.config.container,e=this.config.ibody,d=this.config.scrolltop,a=this.config.backgroundcolor,f=this.config.fadetime,i=this;var g=this.config.haveloading,j=this.config.clickobj;this.config.url=common.changeURLPar(this.config.url,"export",0);if(common.isempty(h)&&common.v["needparamjson"]&&common.v["needparamjson"].totalpage&&common.v["page"]>common.v["needparamjson"].totalpage){$(j).text("没有了...");setTimeout(function(){$(j).parent().css("visibility","hidden")},0);return false}if(g){$(j).addClass("active").find("i").addClass("loading")}$.ajax({type:"post",dataType:"text",url:this.config.url,data:common.v["needparamjson"]?$.extend(common.v["needparamjson"],c):c,success:function(m){if(g){$(j).removeClass("active").find("i").removeClass("loading")}var k="",l=null;if(m){m=common.getjson(m);l=m.listinstro;switch(c.yq){case"comments_list_data":break;default:if(common.v["page"]==6){common.v["status"]==0;$(j).parent().slideUp();if(m.pageLinks){$("#page_nav").html(m.pageLinks).fadeIn()}}}if(h){b.html(l);f=0;common.v["page"]=2}else{b.append(l);common.v["page"]++}if(i.config.yq=="comments_list_data"){newsComment.regareplySN()}if(f){b.find(".ajaxnew").css("opacity",0)}if(d){$("#"+e).scrollTop($("#"+e).scrollTop()+d)}if(f>0){if(a){b.find(".ajaxnew").css("background-color",a)}b.find(".ajaxnew").animate({opacity:1},500,function(){typeof i.config.callback=="function"?i.config.callback():null;setTimeout(function(){b.find(".ajaxnew").css("background-color","").removeClass("ajaxnew")},1500)})}else{typeof i.config.callback=="function"?i.config.callback():null}common.v["status"]=1;if(common.isempty(h)&&common.v["needparamjson"]&&common.v["needparamjson"].totalpage&&common.v["page"]>common.v["needparamjson"].totalpage){$(j).text("没有了...");setTimeout(function(){$(j).parent().css("visibility","hidden")},0);return false}}else{common.v["status"]=0;$(j).text("没有了...")}}})};function getDownloadHref(b,f){var g,a,d,c,e;if(is_str){g=fserNo}else{a=Math.floor(Math.random()*fserNo.length);g=fserNo[a]}d=$.inArray(b,[1,5,4,8,15])?".y866.cn.cn":".duote.org";if(g.indexOf("_")=="-1"){c=""}else{c=":8080";g=g.substr(0,g.length-1)}e="http://"+g+d+c+"/"+"{{$info.sUrl}}";if(document.getElementById(f)&&!document.getElementById(f).href){document.getElementById(f).href=e}}var backTop={obj:null,init:function(a){backTop.obj=document.getElementById(a);window.onscroll=function(){var b=document.body.scrollTop||document.documentElement.scrollTop;if(b<400){backTop.obj.style.display="none"}else{backTop.obj.style.display="block";if(backTop.isIE6()){backTop.obj.style.top=document.documentElement.clientHeight+document.documentElement.scrollTop-backTop.obj.clientHeight-50+"px"}}};backTop.obj.onclick=function(b){common.stopBubble(b,1);window.scrollTo(0,0)}},isIE6:function(){var a=/msie 6/i.test(navigator.userAgent);return a}};function checkform(c,b){var a=$.trim($(c).find("input[name='keyword']").val());if(a.length==0||a==b){$(c).find("input[name='keyword']").focus();return false}return true}function switchElsedivswide(a){a?$("#baidu_inside_ad").removeClass("last_mini"):$("#baidu_inside_ad").addClass("last_mini")}$(function(){backTop.init("back_top");$(".tab span").click(function(){$(".tab span").removeClass("cur").eq($(this).index()).addClass("cur");$(this).parent().next("div.tab_box").find(".information").hide().eq($(this).index()).show()});$(".seach .txt").focus(function(){$(".seach").addClass("seach_cur")})});