var data=[];(function(a){a.fn.setFocus=function(b){b=a.extend({focusWrap:"#focus_wrap",focusBox:"#focus_pics",focusPics:"#focus_pics > p",handlePrev:"#prev",handleNext:"#next",curClass:"on",eventType:"mouseover",eventSpeed:"normal",eventTime:2000,scrollDirection:0,curNum:0},b);var n=a(b.focusPics).height(),q=a(b.focusPics).width(),m=a(b.focusPics).size(),c=b.focusWrap,i=b.focusBox,t=b.focusPics,d=b.handlePrev,e=b.handleNext,p=b.curClass,k=b.eventType,s=b.eventSpeed,l=b.eventTime,o=b.scrollDirection,v=b.curNum,g=a(this);if(o){a(i).css("top","-"+v*n+"px")}else{a(i).width(m*q);a(i).css("left","-"+v*q+"px")}a(g.get(v)).addClass(p);r();if(l){u()}function r(){f(b.curNum);g.each(function(w){a(this).bind(k,function(){h(w);b.curNum=w;return false})});a(d).bind("click",function(){j(false,m);h(b.curNum);return false});a(e).bind("click",function(){j(true,m);h(b.curNum);return false})}function u(){var w={itv:null,setinterval:function(){this.itv=setInterval(function(){j(true,m);h(b.curNum)},l)},clearinterval:function(){clearInterval(this.itv)}};w.setinterval();a(c).hover(function(){w.clearinterval()},function(){w.setinterval()})}function j(w){var x=b.curNum;if(w){b.curNum=(++x>m-1)?0:x}else{b.curNum=(--x<0)?m-1:x}}function f(A){function B(E,D,C){var F=a(i).find("a").eq(E);F.removeClass("lb_loading");F.html(a(x));F.attr("href",C)}if(a.inArray(A,data)==-1){a(i).find("a").eq(A).addClass("lb_loading");for(var y in LunBo){if(y.split("_")[1]==A){var z=LunBo[y][1];var w=LunBo[y][0];var x=new Image();if(a.browser.msie){x.onreadystatechange=function(){if(x.readyState=="complete"||x.readyState=="loaded"){B(A,z,w)}}}else{x.onload=function(){if(x.complete==true){B(A,z,w)}}}x.src=z}}data.push(A)}}function h(w){f(w);if(o){a(i).stop().animate({top:"-"+n*w+"px"},s);}else{a(i).stop().animate({left:"-"+q*w+"px"},s)}g.removeClass(p);g.eq(w).addClass(p)}}})(jQuery);(function(a){a.fn.imgLoad=function(b){setting=a.extend({imgSrc:"src_data"},b||{});setting.Arr=[];function c(){var e=a(window).scrollTop(),d=e+a(window).height();a.each(setting.Arr,function(k,l){var g=l.obj,j=l.url,f=l.node;if(g){var m=g.offset().top,h=m+g.height();if((m>e&&m<d)||(h>e&&h<d)){if(f==="img"){g.attr("src",j)}else{g.load(j)}l.obj=null}}})}a(this).each(function(){var f=a(this).attr(setting.imgSrc),d=this.nodeName.toLowerCase();var e={obj:a(this),url:f,node:d};setting.Arr.push(e);c.apply(a(this),setting.Arr)});setTimeout(function(){a(window).scroll(function(){c()})},1000)}})(jQuery);
var AllPepole = {
	num : 0,
	id:'totle_player',
	time:2500,
	cookie:'total_my_player',
	domain:'my.4399.com',
	flush : function(){
		var num = AllPepole.getCookie(AllPepole.cookie),shownum;
		if(num == ''){
			num = AllPepole.num;
		}
		shownum = parseInt(num) + Math.floor(Math.random()*6+1);
		AllPepole.setCookie(AllPepole.cookie,shownum,new Date((new Date()).getTime()+86400),'/',AllPepole.domain);
		document.getElementById(AllPepole.id).innerHTML = AllPepole.format(shownum);
	},
	format : function(num){
		var str = [],i = Math.ceil(num.toString().length/3)-1;
		while(i >= 0){
			var j = num%1000;
			if(num > 1000){
				j =  (j<1) ? '000' : (j<10) ? '00'+j.toString() : (j<100)? '0'+j.toString() : j;
			}
			str[i] = j;
			num = parseInt(num/1000);
			--i;
		}
		return str.join(',');
	},
	getCookie : function(A){
		var D=new RegExp(A+"=([^;]+)"),B=D.exec(document.cookie),C="";
		if(B!=null){
			try{C = decodeURI(B[1]);}
			catch(_){}
		}
		return C;
	},
	setCookie : function(D,$,E,C,B,A){
		 var val=D+"="+encodeURI($)+((E)?"; expires="+E.toGMTString():"")+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+((A)?"; secure":"");
         document.cookie=val;
	},
	loop : function(){
		AllPepole.flush();
		setTimeout(AllPepole.loop,AllPepole.time);
	}
}