PageSourceSearch

https://j.gamersky.com/g/jquery.gamersky.v4.min.js?20251212

js gamersky.com collected 2026-09-24 18:33:10 UTC 123,007 bytes, 468 lines download raw bytes

vendor: 5,262 bytes, lines 1-29
1// Copyright (c) 2016 www.gamersky.com
2
3var JSON2;if(!JSON2){JSON2={};}
4(function(){'use strict';function f(n){return n<10?'0'+n:n;}
5if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
6f(this.getUTCMonth()+1)+'-'+
7f(this.getUTCDate())+'T'+
8f(this.getUTCHours())+':'+
9f(this.getUTCMinutes())+':'+
10f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
11var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
12function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
13if(typeof rep==='function'){value=rep.call(holder,key,value);}
14switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
15gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
16v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
17if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==='string'){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
18v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
19if(typeof JSON2.stringify!=='function'){JSON2.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
20rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON2.stringify');}
21return str('',{'':value});};}
22if(typeof JSON2.parse!=='function'){JSON2.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
23return reviver.call(holder,key,value);}
24text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
25('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
26if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
27throw new SyntaxError('JSON2.parse');};}}());if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE6.0"){var DD_belatedPNG={ns:'DD_belatedPNG',imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,'urn:schemas-microsoft-com:vml');}},createVmlStyleSheet:function(){var screenStyleSheet,printStyleSheet;screenStyleSheet=document.createElement('style');screenStyleSheet.setAttribute('media','screen');document.documentElement.firstChild.insertBefore(screenStyleSheet,document.documentElement.firstChild.firstChild);if(screenStyleSheet.styleSheet){screenStyleSheet=screenStyleSheet.styleSheet;screenStyleSheet.addRule(this.ns+'\\:*','{behavior:url(#default#VML)}');screenStyleSheet.addRule(this.ns+'\\:shape','position:absolute;');screenStyleSheet.addRule('img.'+this.ns+'_sizeFinder','behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;');this.screenStyleSheet=screenStyleSheet;printStyleSheet=document.createElement('style');printStyleSheet.setAttribute('media','print');document.documentElement.firstChild.insertBefore(printStyleSheet,document.documentElement.firstChild.firstChild);printStyleSheet=printStyleSheet.styleSheet;printStyleSheet.addRule(this.ns+'\\:*','{display: none !important;}');printStyleSheet.addRule('img.'+this.ns+'_sizeFinder','{display: none !important;}');}},readPropertyChange:function(){var el,display,v;el=event.srcElement;if(!el.vmlInitiated){return;}
28if(event.propertyName.search('background')!=-1||event.propertyName.search('border')!=-1){DD_belatedPNG.applyVML(el);}
29if(event.propertyName=='style.display'){display=(el.currentStyle.display=='none')?'none':'block';
29for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.display=display;}}}
30if(event.propertyName.search('filter')!=-1){DD_belatedPNG.vmlOpacity(el);}},vmlOpacity:function(el){if(el.currentStyle.filter.search('lpha')!=-1){var trans=el.currentStyle.filter;trans=parseInt(trans.substring(trans.lastIndexOf('=')+1,trans.lastIndexOf(')')),10)/100;el.vml.color.shape.style.filter=el.currentStyle.filter;el.vml.image.fill.opacity=trans;}},handlePseudoHover:function(el){setTimeout(function(){DD_belatedPNG.applyVML(el);},1);},fix:function(selector){if(this.screenStyleSheet){var selectors,i;selectors=selector.split(',');for(i=0;i<selectors.length;i++){this.screenStyleSheet.addRule(selectors[i],'behavior:expression(DD_belatedPNG.fixPng(this))');}}},applyVML:function(el){el.runtimeStyle.cssText='';this.vmlFill(el);this.vmlOffsets(el);this.vmlOpacity(el);if(el.isImg){this.copyImageBorders(el);}},attachHandlers:function(el){var self,handlers,handler,moreForAs,a,h;self=this;handlers={resize:'vmlOffsets',move:'vmlOffsets'};if(el.nodeName=='A'){moreForAs={mouseleave:'handlePseudoHover',mouseenter:'handlePseudoHover',focus:'handlePseudoHover',blur:'handlePseudoHover'};for(a in moreForAs){if(moreForAs.hasOwnProperty(a)){handlers[a]=moreForAs[a];}}}
31for(h in handlers){if(handlers.hasOwnProperty(h)){handler=function(){self[handlers[h]](el);};el.attachEvent('on'+h,handler);}}
32el.attachEvent('onpropertychange',this.readPropertyChange);},giveLayout:function(el){el.style.zoom=1;if(el.currentStyle.position=='static'){el.style.position='relative';}},copyImageBorders:function(el){var styles,s;styles={'borderStyle':true,'borderWidth':true,'borderColor':true};for(s in styles){if(styles.hasOwnProperty(s)){el.vml.color.shape.style[s]=el.currentStyle[s];}}},vmlFill:function(el){if(!el.currentStyle){return;}else{var elStyle,noImg,lib,v,img,imgLoaded;elStyle=el.currentStyle;}
33for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.zIndex=elStyle.zIndex;}}
34el.runtimeStyle.backgroundColor='';el.runtimeStyle.backgroundImage='';noImg=true;if(elStyle.backgroundImage!='none'||el.isImg){if(!el.isImg){el.vmlBg=elStyle.backgroundImage;el.vmlBg=el.vmlBg.substr(5,el.vmlBg.lastIndexOf('")')-5);}
35else{el.vmlBg=el.src;}
36lib=this;if(!lib.imgSize[el.vmlBg]){img=document.createElement('img');lib.imgSize[el.vmlBg]=img;img.className=lib.ns+'_sizeFinder';img.runtimeStyle.cssText='behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;';imgLoaded=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;lib.vmlOffsets(el);};img.attachEvent('onload',imgLoaded);img.src=el.vmlBg;img.removeAttribute('width');img.removeAttribute('height');document.body.insertBefore(img,document.body.firstChild);}
37el.vml.image.fill.src=el.vmlBg;noImg=false;}
38el.vml.image.fill.on=!noImg;el.vml.image.fill.color='none';el.vml.color.shape.style.backgroundColor=elStyle.backgroundColor;el.runtimeStyle.backgroundImage='none';el.runtimeStyle.backgroundColor='transparent';},vmlOffsets:function(el){var thisStyle,size,fudge,makeVisible,bg,bgR,dC,altC,b,c,v;thisStyle=el.currentStyle;size={'W':el.clientWidth+1,'H':el.clientHeight+1,'w':this.imgSize[el.vmlBg].width,'h':this.imgSize[el.vmlBg].height,'L':el.offsetLeft,'T':el.offsetTop,'bLW':el.clientLeft,'bTW':el.clientTop};fudge=(size.L+size.bLW==1)?1:0;makeVisible=function(vml,l,t,w,h,o){vml.coordsize=w+','+h;vml.coordorigin=o+','+o;vml.path='m0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';vml.style.width=w+'px';vml.style.height=h+'px';vml.style.left=l+'px';vml.style.top=t+'px';};makeVisible(el.vml.color.shape,(size.L+(el.isImg?0:size.bLW)),(size.T+(el.isImg?0:size.bTW)),(size.W-1),(size.H-1),0);makeVisible(el.vml.image.shape,(size.L+size.bLW),(size.T+size.bTW),(size.W),(size.H),1);bg={'X':0,'Y':0};if(el.isImg){bg.X=parseInt(thisStyle.paddingLeft,10)+1;bg.Y=parseInt(thisStyle.paddingTop,10)+1;}
39else{for(b in bg){if(bg.hasOwnProperty(b)){this.figurePercentage(bg,size,b,thisStyle['backgroundPosition'+b]);}}}
40el.vml.image.fill.position=(bg.X/size.W)+','+(bg.Y/size.H);bgR=thisStyle.backgroundRepeat;dC={'T':1,'R':size.W+fudge,'B':size.H,'L':1+fudge};altC={'X':{'b1':'L','b2':'R','d':'W'},'Y':{'b1':'T','b2':'B','d':'H'}};if(bgR!='repeat'||el.isImg){c={'T':(bg.Y),'R':(bg.X+size.w),'B':(bg.Y+size.h),'L':(bg.X)};if(bgR.search('repeat-')!=-1){v=bgR.split('repeat-')[1].toUpperCase();c[altC[v].b1]=1;c[altC[v].b2]=size[altC[v].d];}
41if(c.B>size.H){c.B=size.H;}
42el.vml.image.shape.style.clip='rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)';}
43else{el.vml.image.shape.style.clip='rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)';}},figurePercentage:function(bg,size,axis,position){var horizontal,fraction;fraction=true;horizontal=(axis=='X');
43switch(position){case'left':case'top':bg[axis]=0;break;case'center':bg[axis]=0.5;break;case'right':case'bottom':bg[axis]=1;break;default:if(position.search('%')!=-1){bg[axis]=parseInt(position,10)/100;}
44else{fraction=false;}}
45bg[axis]=Math.ceil(fraction?((size[horizontal?'W':'H']*bg[axis])-(size[horizontal?'w':'h']*bg[axis])):parseInt(position,10));if(bg[axis]%2===0){bg[axis]++;}
46return bg[axis];},fixPng:function(el){el.style.behavior='none';var lib,els,nodeStr,v,e;if(el.nodeName=='BODY'||el.nodeName=='TD'||el.nodeName=='TR'){return;}
47el.isImg=false;if(el.nodeName=='IMG'){if(el.src.toLowerCase().search(/\.png$/)!=-1){el.isImg=true;el.style.visibility='hidden';}
48else{return;}}
49else if(el.currentStyle.backgroundImage.toLowerCase().search('.png')==-1){return;}
50lib=DD_belatedPNG;el.vml={color:{},image:{}};els={shape:{},fill:{}};for(v in el.vml){if(el.vml.hasOwnProperty(v)){for(e in els){if(els.hasOwnProperty(e)){nodeStr=lib.ns+':'+e;el.vml[v][e]=document.createElement(nodeStr);}}
51el.vml[v].shape.stroked=false;el.vml[v].shape.appendChild(el.vml[v].fill);el.parentNode.insertBefore(el.vml[v].shape,el);}}
52el.vml.image.shape.fillcolor='none';el.vml.image.fill.type='tile';el.vml.color.fill.on=false;lib.attachHandlers(el);lib.giveLayout(el);lib.giveLayout(el.offsetParent);el.vmlInitiated=true;lib.applyVML(el);}};try{document.execCommand("BackgroundImageCache",false,true);}catch(r){}
53DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();}
54(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else{factory(jQuery);}}(function($){var pluses=/\+/g;function raw(s){return s;}
55function decoded(s){return decodeURIComponent(s.replace(pluses,' '));}
56function converted(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');}
57try{return config.json?JSON.parse(s):s;}catch(er){}}
58var config=$.cookie=function(key,value,options){if(value!==undefined){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}
59value=config.json?JSON.stringify(value):String(value);return(document.cookie=[config.raw?key:encodeURIComponent(key),'=',config.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}
60var decode=config.raw?raw:decoded;var cookies=document.cookie.split('; ');var result=key?undefined:{};for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift());var cookie=decode(parts.join('='));if(key&&key===name){result=converted(cookie);break;}
61if(!key){result[name]=converted(cookie);}}
62return result;};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)!==undefined){$.cookie(key,'',$.extend({},options,{expires:-1}));return true;}
63return false;};}));(function(jQuery){jQuery.fn.__bind__=jQuery.fn.bind;jQuery.fn.__unbind__=jQuery.fn.unbind;jQuery.fn.__find__=jQuery.fn.find;var hotkeys={version:'0.7.9',override:/keypress|keydown|keyup/g,triggersMap:{},specialKeys:{27:'esc',9:'tab',32:'space',13:'return',8:'backspace',145:'scroll',20:'capslock',144:'numlock',19:'pause',45:'insert',36:'home',46:'del',35:'end',33:'pageup',34:'pagedown',37:'left',38:'up',39:'right',40:'down',109:'-',112:'f1',113:'f2',114:'f3',115:'f4',116:'f5',117:'f6',118:'f7',119:'f8',120:'f9',121:'f10',122:'f11',123:'f12',191:'/'},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":"\"",",":"<",".":">","/":"?","\\":"|"},newTrigger:function(type,combi,callback){var result={};result[type]={};result[type][combi]={cb:callback,disableInInput:false};return result;}};hotkeys.specialKeys=jQuery.extend(hotkeys.specialKeys,{96:'0',97:'1',98:'2',99:'3',100:'4',101:'5',102:'6',103:'7',104:'8',105:'9',106:'*',107:'+',109:'-',110:'.',111:'/'});jQuery.fn.find=function(selector){this.query=selector;return jQuery.fn.__find__.apply(this,arguments);};
63jQuery.fn.unbind=function(type,combi,fn){if(jQuery.isFunction(combi)){fn=combi;combi=null;}
64if(combi&&typeof combi==='string'){var selectorId=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();var hkTypes=type.split(' ');for(var x=0;x<hkTypes.length;x++){delete hotkeys.triggersMap[selectorId][hkTypes[x]][combi];}}
65return this.__unbind__(type,fn);};jQuery.fn.bind=function(type,data,fn){var handle=type.match(hotkeys.override);if(jQuery.isFunction(data)||!handle){return this.__bind__(type,data,fn);}
66else{var result=null,pass2jq=jQuery.trim(type.replace(hotkeys.override,''));if(pass2jq){result=this.__bind__(pass2jq,data,fn);}
67if(typeof data==="string"){data={'combi':data};}
68if(data.combi){for(var x=0;x<handle.length;x++){var eventType=handle[x];var combi=data.combi.toLowerCase(),trigger=hotkeys.newTrigger(eventType,combi,fn),selectorId=((this.prevObject&&this.prevObject.query)||(this[0].id&&this[0].id)||this[0]).toString();trigger[eventType][combi].disableInInput=data.disableInInput;if(!hotkeys.triggersMap[selectorId]){hotkeys.triggersMap[selectorId]=trigger;}
69else if(!hotkeys.triggersMap[selectorId][eventType]){hotkeys.triggersMap[selectorId][eventType]=trigger[eventType];}
70var mapPoint=hotkeys.triggersMap[selectorId][eventType][combi];if(!mapPoint){hotkeys.triggersMap[selectorId][eventType][combi]=[trigger[eventType][combi]];}
71else if(mapPoint.constructor!==Array){hotkeys.triggersMap[selectorId][eventType][combi]=[mapPoint];}
72else{hotkeys.triggersMap[selectorId][eventType][combi][mapPoint.length]=trigger[eventType][combi];}
73this.each(function(){var jqElem=jQuery(this);if(jqElem.attr('hkId')&&jqElem.attr('hkId')!==selectorId){selectorId=jqElem.attr('hkId')+";"+selectorId;}
74jqElem.attr('hkId',selectorId);});result=this.__bind__(handle.join(' '),data,hotkeys.handler)}}
75return result;}};hotkeys.findElement=function(elem){if(!jQuery(elem).attr('hkId')){if(jQuery.browser.opera||jQuery.browser.safari){while(!jQuery(elem).attr('hkId')&&elem.parentNode){elem=elem.parentNode;}}}
76return elem;};hotkeys.handler=function(event){var target=hotkeys.findElement(event.currentTarget),jTarget=jQuery(target),ids=jTarget.attr('hkId');if(ids){ids=ids.split(';');var code=event.which,type=event.type,special=hotkeys.specialKeys[code],character=!special&&String.fromCharCode(code).toLowerCase(),shift=event.shiftKey,ctrl=event.ctrlKey,alt=event.altKey||event.originalEvent.altKey,mapPoint=null;for(var x=0;x<ids.length;x++){if(hotkeys.triggersMap[ids[x]][type]){mapPoint=hotkeys.triggersMap[ids[x]][type];break;}}
77if(mapPoint){var trigger;if(!shift&&!ctrl&&!alt){trigger=mapPoint[special]||(character&&mapPoint[character]);}
78else{var modif='';if(alt)modif+='alt+';if(ctrl)modif+='ctrl+';if(shift)modif+='shift+';trigger=mapPoint[modif+special];if(!trigger){if(character){trigger=mapPoint[modif+character]||mapPoint[modif+hotkeys.shiftNums[character]]||(modif==='shift+'&&mapPoint[hotkeys.shiftNums[character]]);}}}
79if(trigger){var result=false;for(var x=0;x<trigger.length;x++){if(trigger[x].disableInInput){var elem=jQuery(event.target);if(jTarget.is("input")||jTarget.is("textarea")||jTarget.is("select")||elem.is("input")||elem.is("textarea")||elem.is("select")){return true;}}
80result=result||trigger[x].cb.apply(this,[event]);}
81return result;}}}};window.hotkeys=hotkeys;return jQuery;})(jQuery);var siteSetup={sitePath:'//www.gamersky.com/',ajaxPath:'/ajax.aspx',skinPath:'//www.gamersky.com/Template/Default/mbk/gscss/'};(function($){$.pe=$.pe||{version:'0.3.7'};$.fn.easyDrag=function(h){return i(this,h,'d')};$.fn.easyResize=function(h){return i(this,h,'r')};$.dragAndResize={dragAndResize:{},e:0,drag:function(v){if(M.k=='d')
82E.css({left:M.X+v.pageX-M.pX,top:M.Y+v.pageY-M.pY});else
83E.css({width:Math.max(v.pageX-M.pX+M.W,0),height:Math.max(v.pageY-M.pY+M.H,0)});return false},stop:function(){$(document).unbind('mousemove',J.drag).unbind('mouseup',J.stop)}};var J=$.dragAndResize,M=J.dragAndResize,E=J.e,i=function(e,h,k){return e.each(function(){h=(h)?$(h,e):e;h.css('cursor','move');h.bind('mousedown',{e:e,k:k},function(v){var d=v.data,p={};E=d.e;if(E.css('position')!='relative'){try{E.position(p);}catch(e){}}
84M={X:p.left||f('left')||0,Y:p.top||f('top')||0,W:f('width')||E[0].scrollWidth||0,H:f('height')||E[0].scrollHeight||0,pX:v.pageX,pY:v.pageY,k:d.k};E.css({});$(document).mousemove($.dragAndResize.drag).mouseup($.dragAndResize.stop);return false})})},f=function(k){return parseInt(E.css(k))||false};var l;l=$.pe.expose={conf:{maskId:'expose',loadSpeed:'slow',closeSpeed:'fast',closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.9,startOpacity:0,color:'#000',onLoad:null,onClose:null}};function viewport(){if($.browser.msie){var d=$(document).height(),w=$(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d-w<20?w:d]}
85return[$(document).width(),$(document).height()]}
86function call(a){if(a){return a.call($.mask)}}
87var m,exposed,loaded,config,overlayIndex;$.mask={load:function(b,c){if(loaded){return this}
88if(typeof b=='string'){b={color:b}}
89b=b||config;config=b=$.extend($.extend({},l.conf),b);m=$("#"+b.maskId);if(!m.length){m=$('<div/>').attr("id",b.maskId);$("body").append(m)}
90var d=viewport();m.css({position:'absolute',top:0,left:0,width:d[0],height:d[1],display:'none',opacity:b.startOpacity,zIndex:b.zIndex});if(b.color){m.css("backgroundColor",b.color)}
91if(call(b.onBeforeLoad)===false){return this}
92if(b.closeOnEsc){$(document).bind("keydown.mask",function(e){if(e.keyCode==27){$.mask.close(e)}})}
93if(b.closeOnClick){m.bind("click.mask",function(e){$.mask.close(e)})}
94$(window).bind("resize.mask",function(){$.mask.fit()});if(c&&c.length){overlayIndex=c.eq(0).css("zIndex");$.each(c,function(){var a=$(this);if(!/relative|absolute|fixed/i.test(a.css("position"))){a.css("position","relative")}});exposed=c.css({zIndex:Math.max(b.zIndex+1,overlayIndex=='auto'?0:overlayIndex)})}
95m.css({display:'block'}).fadeTo(b.loadSpeed,b.opacity,function(){$.mask.fit();call(b.onLoad)});loaded=true;return this},close:function(){if(loaded){if(call(config.onBeforeClose)===false){return this}
96m.fadeOut(config.closeSpeed,function(){call(config.onClose);if(exposed){exposed.css({zIndex:overlayIndex})}});
96$(document).unbind("keydown.mask");m.unbind("click.mask");$(window).unbind("resize.mask");loaded=false}
97return this},fit:function(){if(loaded){var a=viewport();m.css({width:a[0],height:a[1]})}},getMask:function(){return m},isLoaded:function(){return loaded},getConf:function(){return config},getExposed:function(){return exposed}};$.fn.mask=function(a){$.mask.load(a);return this};$.fn.expose=function(a){$.mask.load(a,this);return this};$.pe.overlay={addEffect:function(a,b,c){effects[a]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:'fast',effect:'default',render:false,width:500,height:360,title:'标题',loadUrl:'http://www.powereasy.net',fixed:!$.browser.msie||$.browser.version>6,left:'center',load:false,mask:null,oneInstance:true,speed:'normal',target:null,top:'center'}};var n=[],effects={};$.pe.overlay.addEffect('default',function(a,b){var c=this.getConf(),w=$(window);if(!c.fixed){a.top+=w.scrollTop();a.left+=w.scrollLeft()}
98a.position=c.fixed?'fixed':'absolute';this.getOverlay().css(a).fadeIn(c.speed,b)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});function Overlay(c,d){var f=this,fire=c.add(f),w=$(window),closers,overlay,opened,maskConf=$.pe.expose&&(d.mask||d.expose),uid=Math.random().toString().slice(10);if(maskConf){if(typeof maskConf=='string'){maskConf={color:maskConf}}
99maskConf.closeOnClick=maskConf.closeOnEsc=false}
100var g=d.target||c.attr("rel");overlay=g?$(g):null||c;if(d.render){overlay.html('');var h='<div style="width:'+d.width+'px;height:'+d.height+'px" class="overlay">';h+='<div class="overlay_header"><span class="overlay_header_title_sign"></span><h3 class="overlay_header_title">';h+=d.title;h+='</h3><span class="overlay_header_background_right"></span>';h+='<a class="overlay_header_close" href="javascript:void(0)"></a></div>';h+='<div class="overlay_body"><iframe height="'+(d.height-30)+'" frameborder="0" width="100%" src="';h+=d.loadUrl;h+=' "marginwidth="0" marginheight="0"></iframe><iframe id="iframe_IE6_Z-Index" width="'+d.width+'" frameborder=0 height="'+d.height+'" style="position:absolute; top:0px; left:0px; z-index:-1; border-style:none;"></iframe></div>';overlay.append(h)}
101if(!overlay.length){throw"Could not find Overlay: "+g;}
102if(c&&c.index(overlay)==-1){c.click(function(e){f.load(e);return e.preventDefault()})}
103$.extend(f,{load:function(e){if(f.isOpened()){return f}
104var a=effects[d.effect];if(!a){throw"Overlay: cannot find effect : \""+d.effect+"\"";}
105if(d.oneInstance){$.each(n,function(){this.close(e)})}
106e=e||$.Event();e.type="onBeforeLoad";fire.trigger(e);if(e.isDefaultPrevented()){return f}
107opened=true;if(maskConf){$(overlay).expose(maskConf)}
108var b=d.top,left=d.left,oWidth=overlay.outerWidth({margin:true}),oHeight=overlay.outerHeight({margin:true});if(typeof b=='string'){b=b=='center'?Math.max((w.height()-d.height)/2,0):parseInt(b,10)/100*w.height()}
109if(left=='center'){left=Math.max((w.width()-d.width)/2,0)}
110a[0].call(f,{top:b,left:left},function(){if(opened){e.type="onLoad";fire.trigger(e)}});fire.css('display','block');if(maskConf&&d.closeOnClick){$.mask.getMask().one("click",f.close)}
111if(d.closeOnClick){$(document).bind("click."+uid,function(e){if(!$(e.target).parents(overlay).length){f.close(e)}})}
112if(d.closeOnEsc){$(document).bind("keydown."+uid,function(e){if(e.keyCode==27){f.close(e)}})}
113return f},close:function(e){if(!f.isOpened()){return f}
114e=e||$.Event();e.type="onBeforeClose";fire.trigger(e);if(e.isDefaultPrevented()){return}
115opened=false;effects[d.effect][1].call(f,function(){e.type="onClose";fire.trigger(e)});$(document).unbind("click."+uid).unbind("keydown."+uid);if(maskConf){$.mask.close()}
116return f},getOverlay:function(){return overlay},getTrigger:function(){return c},getClosers:function(){return closers},isOpened:function(){return opened},getConf:function(){return d}});$.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(i,b){if($.isFunction(d[b])){$(f).bind(b,d[b])}
117f[b]=function(a){$(f).bind(b,a);return f}});var j=overlay.find('.overlay_header');overlay.easyDrag(j);closers=overlay.find(d.close||".overlay_header_close"||".close");if(!closers.length&&!d.close){closers=$('<a class="close"></a>');overlay.prepend(closers)}
118closers.click(function(e){f.close(e)});if(d.load){f.load()}}
119$.fn.overlay=function(a){var b=this.data("overlay");if(b){this.removeData("overlay")}
120if($.isFunction(a)){a={onBeforeLoad:a}}
121a=$.extend(true,{},$.pe.overlay.conf,a);this.each(function(){b=new Overlay($(this),a);n.push(b);$(this).data("overlay",b)});return a.api?b:this};$.pe.tabs={conf:{tabs:'a',current:'current',onBeforeClick:null,onClick:null,effect:'default',initialIndex:0,event:'click',rotate:false,history:false},addEffect:function(a,b){h[a]=b}};var h={'default':function(i,a){this.getPanes().hide().eq(i).show();a.call()},fade:function(i,a){var b=this.getConf(),speed=b.fadeOutSpeed,panes=this.getPanes();if(speed){panes.fadeOut(speed)}else{panes.hide()}
122panes.eq(i).fadeIn(b.fadeInSpeed,a)},slide:function(i,a){this.getPanes().slideUp(200);this.getPanes().eq(i).slideDown(400,a)},ajax:function(i,a){this.getPanes().eq(0).load(this.getTabs().eq(i).attr("href"),a)}};var w;$.pe.tabs.addEffect("horizontal",function(i,a){if(!w){w=this.getPanes().eq(0).width()}
123this.getCurrentPane().animate({width:0},function(){$(this).hide()});this.getPanes().eq(i).animate({width:w},function(){$(this).show();a.call()})});function Tabs(c,d,f){var g=this,trigger=c.add(this),tabs=c.find(f.tabs),panes=d.jquery?d:c.children(d),current;if(!tabs.length){tabs=c.children()}
124if(!panes.length){panes=c.parent().find(d)}
125if(!panes.length){panes=$(d)}
126$.extend(this,{click:function(i,e){var a=tabs.eq(i);if(typeof i=='string'&&i.replace("#","")){a=tabs.filter("[href*="+i.replace("#","")+"]");i=Math.max(tabs.index(a),0)}
127if(f.rotate){var b=tabs.length-1;if(i<0){return g.click(b,e)}
128if(i>b){return g.click(0,e)}}
129if(!a.length){if(current>=0){return g}
130i=f.initialIndex;a=tabs.eq(i)}
131if(i===current){return g}
132e=e||$.Event();e.type="onBeforeClick";trigger.trigger(e,[i]);if(e.isDefaultPrevented()){return}
133h[f.effect].call(g,i,function(){e.type="onClick";trigger.trigger(e,[i])});current=i;tabs.removeClass(f.current);a.addClass(f.current);return g},getConf:function(){return f},getTabs:function(){return tabs},getPanes:function(){return panes},getCurrentPane:function(){return panes.eq(current)},getCurrentTab:function(){return tabs.eq(current)},getIndex:function(){return current},next:function(){return g.click(current+1)},prev:function(){return g.click(current-1)},destroy:function(){tabs.unbind(f.event).removeClass(f.current);panes.find("a[href^=#]").unbind("click.T");return g}});$.each("onBeforeClick,onClick".split(","),function(i,b){if($.isFunction(f[b])){$(g).bind(b,f[b])}
134g[b]=function(a){$(g).bind(b,a);return g}});if(f.history&&$.fn.history){$.pe.history.init(tabs);f.event='history'}
135tabs.each(function(i){$(this).bind(f.event,function(e){g.click(i,e);return e.preventDefault()})});panes.find("a[href^=#]").bind("click.T",function(e){g.click($(this).attr("href"),e)});if(location.hash){g.click(location.hash)}else{if(f.initialIndex===0||f.initialIndex>0){g.click(f.initialIndex)}}};$.fn.tabs=function(a,b){var c=this.data("tabs");if(c){c.destroy();this.removeData("tabs")}
135
136if($.isFunction(b)){b={onBeforeClick:b}}
137b=$.extend({},$.pe.tabs.conf,b);this.each(function(){c=new Tabs($(this),a,b);$(this).data("tabs",c)});return b.api?c:this};$.fn.extend({jsRightMenu:function(options){options=$.extend({menuList:[]},options);if($("#div_RightMenu").size()==0);{$(document.body).append("\<div class=\"div_RightMenu\" id=\"div_RightMenu\"\>\<\/div>");$("#div_RightMenu").hide();}
138return this.each(function(){this.oncontextmenu=function(){var menuCount=options.menuList.length;var divMunuItem="";if(menuCount>0){for(var i=0;i<menuCount;i++){divMunuItem+="<div class=\"divMenuItem\" id=\"divMenuItem"+$(this).attr("id")+"\" onclick=\""+options.menuList[i].clickEvent+"\"  onmouseover=\""+options.menuList[i].mouseoverEvent+"\" onmouseout=\""+options.menuList[i].mouseoutEvent+"\">"+options.menuList[i].menuName+"</div>";}
139$("#div_RightMenu").html(divMunuItem);$("#div_RightMenu").hide();}
140var objMenu=$("#div_RightMenu");if(objMenu.size()>0){objMenu.hide();var event=arguments[0]||window.event;var clientX=event.clientX;var clientY=event.clientY;var redge=document.documentElement.clientWidth-clientX;var bedge=document.documentElement.clientHeight-clientY;var menu=objMenu.get(0);var menuLeft=0;var menuTop=0;if(redge<menu.offsetWidth)
141menuLeft=document.documentElement.scrollLeft+clientX-menu.offsetWidth;else
142menuLeft=document.documentElement.scrollLeft+clientX;if(bedge<menu.offsetHeight)
143menuTop=document.documentElement.scrollTop+clientY-menu.offsetHeight;else
144menuTop=document.documentElement.scrollTop+clientY;objMenu.css({top:menuTop+"px",left:menuLeft+"px"});objMenu.show();return false;}}
145document.onclick=function(){var objMenu=$("#div_RightMenu");if(objMenu.size()>0)
146objMenu.hide();}});}});$.fn.extend({check:function(){return this.each(function(){this.checked=true})},uncheck:function(){return this.each(function(){this.checked=false})},inverse:function(){return this.each(function(){this.checked=(this.checked==true?false:true);})},shiftSelect:function(m){var g=this;var h;$(this).click(function(a){if(!h){h=this;return}
147if(a.shiftKey){var b=g.index(this);var c=g.index(h);var d=h.checked;if(b==c){return true}
148var e=Math.max(b,c);var f=Math.min(b,c);for(i=f;i<=e;i++){g[i].checked=d}
149if($.isFunction(m))
150call(m);}
151h=this})},lostFocus:function(){$(this).focus(function(){this.blur()})},addFavorite:function(){$(this).click(function(){var a=$('title').text();if(document.all)
152window.external.addFavorite(location.href,a);else
153if(window.sidebar)
154window.sidebar.addPanel(a,location.href,null);else
155alert('您可以尝试通过快捷键CTRL + D 加入到收藏夹')})},setHomePage:function(){$(this).click(function(){if(document.all){document.body.style.behavior='url(#default#homepage)';document.body.setHomePage(location.href)}else
156if(window.sidebar){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(e){alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");return}}
157var a=Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);a.setCharPref('browser.startup.homepage',location.href)}});},imageResize:function(options){var params=jQuery.extend({height:500,width:660},options);this.each(function(){var height=params.height,width=params.width,img_height=$(this).height(),img_width=$(this).width(),m_ceil=Math.ceil,m_floor=Math.floor;if(img_height<=height||img_width<=width){return;}
158if(img_height>=img_width){width=m_floor(m_ceil(img_width/img_height*height));}else{height=m_floor(m_ceil(img_height/img_width*width));}
159$(this).attr({'height':height,'width':width}).css({'height':height+'px','width':width+'px'});});},useKeypressSubmit:function(target){$(this).keypress(function(e){if((e.which&&e.which==13)||(e.keyCode&&e.keyCode==13)){$(target).click();return false;}
160return true;})}})
161$.extend($.pe,{htmlEncode:function(text){var standard=function(text){var span=$('<span>');span.html(text);return span.html();};var fix1=(standard('\n').toLowerCase()=='<br>')?function(text){return standard(text).replace(/<br>/gi,'\n');}:standard;var fix2=(standard('>')=='>')?function(text){return fix1(text).replace(/>/g,'&gt;');}:fix1;var fix3=(standard('  ')=='&nbsp; ')?function(text){return fix2(text).replace(/&nbsp;/g,' ');}:fix2;this.htmlEncode=fix3;return this.htmlEncode(text);},random:function(a){return Math.floor(a*(Math.random()%1))},cookie:function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}
162var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}
163d='; expires='+e.toUTCString()}
164var f=c.path?'; path='+(c.path):'',domain=c.domain?'; domain='+(c.domain):'',secure=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,domain,secure].join('')}else{var g=null;if(document.cookie&&document.cookie!=''){var h=document.cookie.split(';');for(var i=0;i<h.length;i++){var j=$.trim(h[i]);if(j.substring(0,a.length+1)==(a+'=')){g=decodeURIComponent(j.substring(a.length+1));break}}}
165return g}},stringToJSON:function(string){return eval('('+string+')');},jsonToString:function(obj){var THIS=this;switch(typeof(obj)){case'string':return'"'+obj.replace(/(["\\])/g,'\\$1')+'"';case'array':return'['+obj.map(THIS.jsonToString).join(',')+']';case'object':if(obj instanceof Array){var strArr=[];var len=obj.length;for(var i=0;i<len;i++){strArr.push(THIS.jsonToString(obj[i]));}
166return'['+strArr.join(',')+']';}else if(obj==null){return'null';}else{var string=[];for(var property in obj)
167string.push(THIS.jsonToString(property)+':'+THIS.jsonToString(obj[property]));return'{'+string.join(',')+'}';}
168case'number':return obj;case false:return obj;}},ajax:function(e,f){if(typeof(e)!='string'||e=='undefind')
169return;var g={url:siteSetup.ajaxPath,data:'',type:'POST',dataType:'xml',params:{}};var h=function(a,b){var c='';for(var d in a.params){if(b)
170c+=('<attrib><'+d+'>'+$.pe.htmlEncode(a.params[d])+'</'+d+'></attrib>');else
171c+=('<'+d+'>'+$.pe.htmlEncode(a.params[d])+'</'+d+'>')}
172return c}
173var i=$.extend(g,f);var e=$.trim(e).toLowerCase();switch(e){case'accesslabel':e='updatelabel';break;case'accesspage':e='updatepage';break;case'checkuserlogin':e='logincheck';break;case'checkloginvalidate':e='EnableValidCode';break;case'logout':e='userlogout';break;default:break;}
174var j='<root><type>'+e+'</type>';switch(e){case'updatelabel':j+=('<labelname>'+i.labelName+'</labelname>')
175j+=('<currentpage>'+i.currentPage+'</currentpage>');j+=h(i,true);break;case'updatepage':j+=('<labelname>'+i.labelName+'</labelname>');j+=('<sourcename>'+i.pageName+'</sourcename>');j+=('<pagesize>'+i.pageSize+'</pagesize>');j+=('<currentpage>'+i.currentPage+'</currentpage>');j+=('<total>'+i.recordCount+'</total>');break;default:j+=h(i,false);break;}
176j+='</root>';i.data=j;$.ajax(i)},refreshValidateCode:function(a){var path=siteSetup.sitePath+'Controls/ValidateCodeImage.aspx?code='+$.pe.random(100);$(a).attr('src',path);},replaceUserInfoVariable:function(a,b){a=a.replace('{username}',b.find('username').text());a=a.replace('{experience}',b.find('exp').text());a=a.replace('{message}',b.find('msg').text());a=a.replace('{loginCount}',b.find('logintimes').text());a=a.replace('{pointName}',b.find('pointname').text());a=a.replace('{point}',b.find('point').text());a=a.replace('{pointUnit}',b.find('pointunit').text());a=a.replace('{signinArticle}',b.find('signincontent').text());a=a.replace('{balances}',b.find('balance').text());return a},supplyDemandInfoVariable:function(a,b){a=a.replace('{username}',b.find('username').text());a=a.replace('{experience}',b.find('exp').text());a=a.replace('{message}',b.find('msg').text());a=a.replace('{loginCount}',b.find('logintimes').text());a=a.replace('{pointName}',b.find('pointname').text());a=a.replace('{point}',b.find('point').text());a=a.replace('{signinArticle}',b.find('signincontent').text());a=a.replace('{balances}',b.find('balance').text());a=a.replace(new RegExp('{indexurl}','g'),b.find('indexurl').text());
176a=a.replace(new RegExp('{contacturl}','g'),b.find('contacturl').text());a=a.replace('{supplylisturl}',b.find('supplylisturl').text());a=a.replace('{companyurl}',b.find('companyurl').text());a=a.replace('{contact}',b.find('contact').text());a=a.replace(new RegExp('{companyname}','g'),b.find('companyname').text());return a}})})(jQuery);(function(d){function R(b,c){return 32-(new Date(b,c,32)).getDate()}
177function S(b,c){b=""+b;for(c=c||2;b.length<c;)
178b="0"+b;return b}
179function T(b,c,j){var m=b.getDate(),h=b.getDay(),t=b.getMonth();b=b.getFullYear();var f={d:m,dd:S(m),ddd:B[j].shortDays[h],dddd:B[j].days[h],m:t+1,mm:S(t+1),mmm:B[j].shortMonths[t],mmmm:B[j].months[t],yy:String(b).slice(2),yyyy:b};c=c.replace(X,function(o){return o in f?f[o]:o.slice(1,o.length-1)});return Y.html(c).html()}
180function y(b){return parseInt(b,10)}
181function U(b,c){return b.getFullYear()===c.getFullYear()&&b.getMonth()==c.getMonth()&&b.getDate()==c.getDate()}
182function C(b){if(b){if(b.constructor==Date)
183return b;if(typeof b=="string"){var c=b.split("-");if(c.length==3)
184return new Date(y(c[0]),y(c[1])-1,y(c[2]));if(!/^-?\d+$/.test(b))
185return;b=y(b)}
186c=new Date;c.setDate(c.getDate()+b);return c}}
187function Z(b,c){function j(a,e,g){l=a;D=a.getFullYear();E=a.getMonth();G=a.getDate();g=g||d.Event("api");g.type="change";H.trigger(g,[a]);if(!g.isDefaultPrevented()){b.val(T(a,e.format,e.lang));b.data("date",a);h.hide(g)}}
188function m(a){a.type="onShow";H.trigger(a);d(document).bind("keydown.d",function(e){var g=e.keyCode;if(g==8){b.val("");return h.hide(e)}
189if(g==27)
190return h.hide(e);if(d(V).index(g)>=0){if(!u){h.show(e);return e.preventDefault()}
191var i=d("#"+f.weeks+" a"),p=d("."+f.focus),q=i.index(p);p.removeClass(f.focus);if(g==74||g==40)
192q+=7;else
193if(g==75||g==38)
194q-=7;else
195if(g==76||g==39)
196q+=1;else
197if(g==72||g==37)
198q-=1;if(q==-1){h.addMonth(-1);p=d("#"+f.weeks+" a:last")}else
199if(q==35){h.addMonth();p=d("#"+f.weeks+" a:first")}else
200p=i.eq(q);p.addClass(f.focus);return e.preventDefault()}
201if(g==34)
202return h.addMonth();if(g==33)
203return h.addMonth(-1);if(g==36)
204return h.today();if(g==13)
205d(e.target).is("select")||d("."+f.focus).click();return d([16,17,18,9]).index(g)>=0});d(document).bind("click.d",function(e){var g=e.target;if(!d(g).parents("#"+f.root).length&&g!=b[0]&&(!K||g!=K[0]))
206h.hide(e)})}
207var h=this,t=new Date,f=c.css,o=B[c.lang],k=d("#"+f.root),L=k.find("#"+f.title),K,I,J,D,E,G,l=b.attr("data-value")||c.value||b.val(),r=b.attr("min")||c.min,s=b.attr("max")||c.max,u;l=C(l)||t;r=C(r||c.yearRange[0]*365);s=C(s||c.yearRange[1]*365);if(!o)
208throw"Dateinput: invalid language: "+c.lang;if(b.attr("type")=="date"){var M=d("<input/>");d.each("name,readonly,disabled,value,required".split(","),function(a,e){M.attr(e,b.attr(e))});b.replaceWith(M);b=M}
209b.addClass(f.input);var H=b.add(h);if(!k.length){k=d("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",f.root);k.children().eq(0).attr("id",f.head).end().eq(1).attr("id",f.body).children().eq(0).attr("id",f.days).end().eq(1).attr("id",f.weeks).end().end().end().find("a").eq(0).attr("id",f.prev).end().eq(1).attr("id",f.next);L=k.find("#"+f.head).find("div").attr("id",f.title);if(c.selectors){var z=d("<select/>").attr("id",f.month),A=d("<select/>").attr("id",f.year);L.append(z.add(A))}
210for(var $=k.find("#"+f.days),N=0;N<7;N++)
211$.append(d("<span/>").text(o.shortDays[(N+c.firstDay)%7]));b.after(k)}
212if(c.trigger)
213K=d("<a/>").attr("href","#").addClass(f.trigger).click(function(a){h.show();return a.preventDefault()}).insertAfter(b);var O=k.find("#"+f.weeks);A=k.find("#"+f.year);z=k.find("#"+f.month);d.extend(h,{show:function(a){if(!(b.is("[readonly]")||u)){a=a||d.Event();a.type="onBeforeShow";H.trigger(a);if(!a.isDefaultPrevented()){d.each(W,function(){this.hide()});u=true;z.unbind("change").change(function(){h.setValue(A.val(),d(this).val())});A.unbind("change").change(function(){h.setValue(d(this).val(),z.val())});I=k.find("#"+f.prev).unbind("click").click(function(){I.hasClass(f.disabled)||h.addMonth(-1);return false});J=k.find("#"+f.next).unbind("click").click(function(){J.hasClass(f.disabled)||h.addMonth();return false});h.setValue(l);var e=b.position();k.css({top:e.top+b.outerHeight({margins:true})+c.offset[0],left:e.left+c.offset[1]});if(c.speed)
214k.show(c.speed,function(){m(a)});else{k.show();m(a)}
215return h}}},setValue:function(a,e,g){var i;if(parseInt(e,10)>=-1){a=y(a);e=y(e);g=y(g);i=new Date(a,e,g)}else{i=a||l;a=i.getFullYear();e=i.getMonth();g=i.getDate()}
216if(e==-1){e=11;a--}else
217if(e==12){e=0;a++}
218if(!u){j(i,c);return h}
219E=e;D=a;i=new Date(a,e,1-c.firstDay);g=i.getDay();var p=R(a,e),q=R(a,e-1),P;if(c.selectors){z.empty();d.each(o.months,function(v,F){r<new Date(a,v+1,-1)&&s>new Date(a,v,0)&&z.append(d("<option/>").html(F).attr("value",v))});A.empty();for(i=a+c.yearRange[0];i<a+c.yearRange[1];i++)
220r<new Date(i+1,-1,0)&&s>new Date(i,0,0)&&A.append(d("<option/>").text(i));z.val(e);A.val(a)}else
221L.html(o.months[e]+" "+
222a);O.empty();I.add(J).removeClass(f.disabled);for(var w=0,n,x;w<42;w++){n=d("<a/>");if(w%7===0){P=d("<div/>").addClass(f.week);O.append(P)}
223if(w<g){n.addClass(f.off);x=q-g+w+1;i=new Date(a,e-1,x)}else
224if(w>=g+p){n.addClass(f.off);x=w-p-g+1;i=new Date(a,e+1,x)}else{x=w-g+1;i=new Date(a,e,x);if(U(l,i))
225n.attr("id",f.current).addClass(f.focus);else
226U(t,i)&&n.attr("id",f.today)}
227r&&i<r&&n.add(I).addClass(f.disabled);s&&i>s&&n.add(J).addClass(f.disabled);n.attr("href","#"+x).text(x).data("date",i);P.append(n);n.click(function(v){var F=d(this);if(!F.hasClass(f.disabled)){d("#"+f.current).removeAttr("id");F.attr("id",f.current);j(F.data("date"),c,v)}
228return false})}
229f.sunday&&O.find(f.week).each(function(){var v=c.firstDay?7-c.firstDay:0;d(this).children().slice(v,v+1).addClass(f.sunday)});return h},setMin:function(a,e){r=C(a);e&&l<r&&h.setValue(r);return h},setMax:function(a,e){s=C(a);e&&l>s&&h.setValue(s);return h},today:function(){return h.setValue(t)},addDay:function(a){return this.setValue(D,E,G+
230(a||1))},addMonth:function(a){return this.setValue(D,E+(a||1),G)},addYear:function(a){return this.setValue(D+(a||1),E,G)},hide:function(a){if(u){a=a||d.Event();a.type="onHide";H.trigger(a);d(document).unbind("click.d").unbind("keydown.d");if(a.isDefaultPrevented())
231return;k.hide();u=false}
232return h},getConf:function(){return c},getInput:function(){return b},getCalendar:function(){return k},getValue:function(a){return a?T(l,a,c.lang):l},isOpen:function(){return u}});d.each(["onBeforeShow","onShow","change","onHide"],function(a,e){d.isFunction(c[e])&&d(h).bind(e,c[e]);h[e]=function(g){d(h).bind(e,g);return h}});b.bind("focus click",h.show).keydown(function(a){var e=a.keyCode;if(!u&&d(V).index(e)>=0){h.show(a);return a.preventDefault()}
233return a.shiftKey||a.ctrlKey||a.altKey||e==9?true:a.preventDefault()});C(b.val())&&j(l,c)}
234d.tools=d.tools||{version:"1.2.3"};var W=[],Q,V=[75,76,38,39,74,72,40,37],B={};Q=d.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:0,max:0,trigger:false,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,c){d.each(c,function(j,m){c[j]=m.split(",")});B[b]=c}};Q.localize("en",{months:"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月",shortMonths:"一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月,十二月",days:"日,一,二,三,四,五,六",shortDays:"日,一,二,三,四,五,六"});var X=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,Y=d("<a/>");d.expr[":"].date=function(b){var c=b.getAttribute("type");return c&&c=="date"||!!d(b).data("dateinput")};d.fn.dateinput=function(b){if(this.data("dateinput"))
235return this;b=d.extend(true,{},Q.conf,b);d.each(b.css,function(j,m){if(!m&&j!="prefix")
236b.css[j]=(b.css.prefix||"")+(m||j)});var c;this.each(function(){var j=new Z(d(this),b);W.push(j);j=j.getInput().data("dateinput",j);c=c?c.add(j):j});return c?c:this}})(jQuery);;(function(factory){if(typeof define==='function'&&define.amd){if(typeof jQuery!=='undefined'){define(['jquery'],factory);}else{define([],factory);}}else{if(typeof jQuery!=='undefined'){factory(jQuery);}else{factory();}}})(function($,undefined){var tag2attr={a:'href',img:'src',form:'action',base:'href',script:'src',iframe:'src',link:'href'},key=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','fragment'],aliases={'anchor':'fragment'},parser={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},toString=Object.prototype.toString,isint=/^[0-9]+$/;function parseUri(url,strictMode){var str=decodeURI(url),res=parser[strictMode||false?'strict':'loose'].exec(str),uri={attr:{},param:{},seg:{}},i=14;while(i--){uri.attr[key[i]]=res[i]||'';}
237uri.param['query']=parseString(uri.attr['query']);uri.param['fragment']=parseString(uri.attr['fragment']);uri.seg['path']=uri.attr.path.replace(/^\/+|\/+$/g,'').split('/');uri.seg['fragment']=uri.attr.fragment.replace(/^\/+|\/+$/g,'').split('/');uri.attr['base']=uri.attr.host?(uri.attr.protocol?uri.attr.protocol+'://'+uri.attr.host:uri.attr.host)+(uri.attr.port?':'+uri.attr.port:''):'';return uri;};function getAttrName(elm){var tn=elm.tagName;if(typeof tn!=='undefined')
238return tag2attr[tn.toLowerCase()];return tn;}
239function promote(parent,key){if(parent[key].length==0)
240return parent[key]={};var t={};for(var i in parent[key])
241t[i]=parent[key][i];parent[key]=t;return t;}
242function parse(parts,parent,key,val){var part=parts.shift();if(!part){if(isArray(parent[key])){parent[key].push(val);}else if('object'==typeof parent[key]){parent[key]=val;}else if('undefined'==typeof parent[key]){parent[key]=val;}else{parent[key]=[parent[key],val];}}else{var obj=parent[key]=parent[key]||[];
242if(']'==part){if(isArray(obj)){if(''!=val)
243obj.push(val);}else if('object'==typeof obj){obj[keys(obj).length]=val;}else{obj=parent[key]=[parent[key],val];}}else if(~part.indexOf(']')){part=part.substr(0,part.length-1);if(!isint.test(part)&&isArray(obj))
244obj=promote(parent,key);parse(parts,obj,part,val);}else{if(!isint.test(part)&&isArray(obj))
245obj=promote(parent,key);parse(parts,obj,part,val);}}}
246function merge(parent,key,val){if(~key.indexOf(']')){var parts=key.split('['),len=parts.length,last=len-1;parse(parts,parent,'base',val);}else{if(!isint.test(key)&&isArray(parent.base)){var t={};for(var k in parent.base)
247t[k]=parent.base[k];parent.base=t;}
248set(parent.base,key,val);}
249return parent;}
250function parseString(str){return reduce(String(str).split(/&|;/),function(ret,pair){try{pair=decodeURIComponent(pair.replace(/\+/g,' '));}catch(e){}
251var eql=pair.indexOf('='),brace=lastBraceInKey(pair),key=pair.substr(0,brace||eql),val=pair.substr(brace||eql,pair.length),val=val.substr(val.indexOf('=')+1,val.length);if(''==key)
252key=pair,val='';return merge(ret,key,val);},{base:{}}).base;}
253function set(obj,key,val){var v=obj[key];if(undefined===v){obj[key]=val;}else if(isArray(v)){v.push(val);}else{obj[key]=[v,val];}}
254function lastBraceInKey(str){var len=str.length,brace,c;for(var i=0;i<len;++i){c=str[i];if(']'==c)
255brace=false;if('['==c)
256brace=true;if('='==c&&!brace)
257return i;}}
258function reduce(obj,accumulator){var i=0,l=obj.length>>0,curr=arguments[2];while(i<l){if(i in obj)
259curr=accumulator.call(undefined,curr,obj[i],i,obj);++i;}
260return curr;}
261function isArray(vArg){return Object.prototype.toString.call(vArg)==="[object Array]";}
262function keys(obj){var keys=[];for(prop in obj){if(obj.hasOwnProperty(prop))
263keys.push(prop);}
264return keys;}
265function purl(url,strictMode){if(arguments.length===1&&url===true){strictMode=true;url=undefined;}
266strictMode=strictMode||false;url=url||window.location.toString();return{data:parseUri(url,strictMode),attr:function(attr){attr=aliases[attr]||attr;return typeof attr!=='undefined'?this.data.attr[attr]:this.data.attr;},param:function(param){return typeof param!=='undefined'?this.data.param.query[param]:this.data.param.query;},fparam:function(param){return typeof param!=='undefined'?this.data.param.fragment[param]:this.data.param.fragment;},segment:function(seg){if(typeof seg==='undefined'){return this.data.seg.path;}else{seg=seg<0?this.data.seg.path.length+seg:seg-1;return this.data.seg.path[seg];}},fsegment:function(seg){if(typeof seg==='undefined'){return this.data.seg.fragment;}else{seg=seg<0?this.data.seg.fragment.length+seg:seg-1;return this.data.seg.fragment[seg];}}};};if(typeof $!=='undefined'){$.fn.url=function(strictMode){var url='';if(this.length){url=$(this).attr(getAttrName(this[0]))||'';}
267return purl(url,strictMode);};$.url=purl;}else{window.purl=purl;}});function isSecurity(v){if(v.length<6){iss.reset(v.length);return}
268var a=-1;var b=(v.search(/[a-zA-Z]/)!=-1)?1:0;var c=(v.search(/[0-9]/)!=-1)?1:0;var d=(v.search(/[^A-Za-z0-9_]/)!=-1)?1:0;var a=b+c+d;switch(a){case 1:iss.level0();break;case 2:iss.level1();break;case 3:iss.level2();break;default:iss.reset(v.length)}};var iss={width:["60","80","100","10"],reset:function(a){$("#BarBorder_TxtUserPassword").html("<span style='color:red'>  密码强度:弱</span>");},level0:function(){$("#BarBorder_TxtUserPassword").html("<span style='color:#FF3300'>  密码强度:一般</span>");},level1:function(){$("#BarBorder_TxtUserPassword").html("<span style='color:green'>  密码强度:强</span>");},level2:function(){$("#BarBorder_TxtUserPassword").html("<span style='color:green'>  密码强度:很强</span>");}};function Bardisplaynone(){$("#BarBorder_TxtUserPassword").hide();};function Bardisplayshow(){$("#BarBorder_TxtUserPassword").empty();$("#ctl00_CphContent_ValrUserPassword").hide();document.getElementById("BarBorder_TxtUserPassword").style.display="inline"};String.prototype.endWith=function(a){var b=new RegExp(a+"$");return b.test(this)};function batchconfirm(a,b){var a=(arguments.length>0)?arguments[0]:"确定要进行此批量操作?";var b=(arguments.length>1)?arguments[1]:"请选择所要操作的记录!";var c=false;for(var i=0;i<document.forms[0].length;i++){var o=document.forms[0][i];
268if(o.type=="checkbox"&&o.name.endWith("CheckBoxButton")&&o.checked){c=true;break}}
269if(!c){alert(b);return false}else{if(!confirm(a)){return false}}};(function(C){if(!C.curCSS){C.curCSS=C.css;}C.ui=C.ui||{};C.extend(C.ui,{plugin:{add:function(E,F,H){var G=C.ui[E].prototype;for(var D in H){G.plugins[D]=G.plugins[D]||[];G.plugins[D].push([F,H[D]])}},call:function(D,E,G){var H=D.plugins[E];if(!H){return}for(var F=0;F<H.length;F++){if(D.options[H[F][0]]){H[F][1].apply(D.element,G)}}}},cssCache:{},css:function(D){if(C.ui.cssCache[D]){return C.ui.cssCache[D]}var E=C('<div class="ui-resizable-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[D]=!!((!/auto|default/.test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));try{C("body").get(0).removeChild(E.get(0))}catch(F){}return C.ui.cssCache[D]},disableSelection:function(D){D.unselectable="on";D.onselectstart=function(){return false};if(D.style){D.style.MozUserSelect="none"}},enableSelection:function(D){D.unselectable="off";D.onselectstart=function(){return true};if(D.style){D.style.MozUserSelect=""}},hasScroll:function(G,E){var D=/top/.test(E||"top")?"scrollTop":"scrollLeft",F=false;if(G[D]>0){return true}G[D]=1;F=G[D]>0?true:false;G[D]=0;return F}});C.each(["Left","Top"],function(E,D){if(!C.fn["scroll"+D]){C.fn["scroll"+D]=function(F){return F!=undefined?this.each(function(){this==window||this==document?window.scrollTo(D=="Left"?F:C(window)["scrollLeft"](),D=="Top"?F:C(window)["scrollTop"]()):this["scroll"+D]=F}):this[0]==window||this[0]==document?self[(D=="Left"?"pageXOffset":"pageYOffset")]||C.boxModel&&document.documentElement["scroll"+D]||document.body["scroll"+D]:this[0]["scroll"+D]}}});var B=C.fn.remove;C.fn.extend({position:function(){var F=this.offset();var E=this.offsetParent();var D=E.offset();return{top:F.top-A(this[0],"marginTop")-D.top-A(E,"borderTopWidth"),left:F.left-A(this[0],"marginLeft")-D.left-A(E,"borderLeftWidth")}},offsetParent:function(){var D=this[0].offsetParent;while(D&&(!/^body|html$/i.test(D.tagName)&&C.css(D,"position")=="static")){D=D.offsetParent}return C(D)},mouseInteraction:function(D){return this.each(function(){new C.ui.mouseInteraction(this,D)})},removeMouseInteraction:function(D){return this.each(function(){if(C.data(this,"ui-mouse")){C.data(this,"ui-mouse").destroy()}})},remove:function(){jQuery("*",this).add(this).trigger("remove");return B.apply(this,arguments)}});function A(D,E){return parseInt(C.curCSS(D.jquery?D[0]:D,E,true))||0}C.ui.mouseInteraction=function(F,E){var D=this;this.element=F;C.data(this.element,"ui-mouse",this);this.options=C.extend({},E);C(F).bind("mousedown.draggable",function(){return D.click.apply(D,arguments)});if(C.browser.msie){C(F).attr("unselectable","on")}C(F).mouseup(function(){if(D.timer){clearInterval(D.timer)}})};C.extend(C.ui.mouseInteraction.prototype,{destroy:function(){C(this.element).unbind("mousedown.draggable")},trigger:function(){return this.click.apply(this,arguments)},click:function(F){if(F.which!=1||C.inArray(F.target.nodeName.toLowerCase(),this.options.dragPrevention||[])!=-1||(this.options.condition&&!this.options.condition.apply(this.options.executor||this,[F,this.element]))){return true}var E=this;var D=function(){E._MP={left:F.pageX,top:F.pageY};C(document).bind("mouseup.draggable",function(){return E.stop.apply(E,arguments)});C(document).bind("mousemove.draggable",function(){return E.drag.apply(E,arguments)});if(!E.initalized&&Math.abs(E._MP.left-F.pageX)>=E.options.distance||Math.abs(E._MP.top-F.pageY)>=E.options.distance){if(E.options.start){E.options.start.call(E.options.executor||E,F,E.element)}if(E.options.drag){E.options.drag.call(E.options.executor||E,F,this.element)}E.initialized=true}};if(this.options.delay){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(D,this.options.delay)}else{D()}return false},stop:function(D){var E=this.options;if(!this.initialized){return C(document).unbind("mouseup.draggable").unbind("mousemove.draggable")}if(this.options.stop){this.options.stop.call(this.options.executor||this,D,this.element)}C(document).unbind("mouseup.draggable").unbind("mousemove.draggable");this.initialized=false;return false},drag:function(D){var E=this.options;if(C.browser.msie&&!D.button){return this.stop.apply(this,[D])}if(!this.initialized&&(Math.abs(this._MP.left-D.pageX)>=E.distance||Math.abs(this._MP.top-D.pageY)>=E.distance)){if(this.options.start){this.options.start.call(this.options.executor||this,D,this.element)}this.initialized=true}else{if(!this.initialized){return false}}if(E.drag){E.drag.call(this.options.executor||this,D,this.element)}return false}})})(jQuery);(function(A){A.fn.tabs=function(){var C=typeof arguments[0]=="string"&&arguments[0];
269var B=C&&Array.prototype.slice.call(arguments,1)||arguments;return C=="length"?A.data(this[0],"tabs").$tabs.length:this.each(function(){if(C){var D=A.data(this,"tabs");if(D){D[C].apply(D,B)}}else{new A.ui.tabs(this,B[0]||{})}})};A.ui.tabs=function(D,C){var B=this;this.options=A.extend({},A.ui.tabs.defaults,C);this.element=D;if(C.selected===null){this.options.selected=null}this.options.event+=".tabs";A(D).bind("setData.tabs",function(F,E,G){if((/^selected/).test(E)){B.select(G)}else{B.options[E]=G;B.tabify()}}).bind("getData.tabs",function(F,E){return B.options[E]});A.data(D,"tabs",this);this.tabify(true)};A.ui.tabs.defaults={selected:0,unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.extend(A.ui.tabs.prototype,{tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{instance:this,options:this.options,tab:C,panel:B}},tabify:function(N){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var O=this,E=this.options;this.$tabs.each(function(Q,P){if(P.hash&&P.hash.replace("#","")){O.$panels=O.$panels.add(P.hash)}else{if(A(P).attr("href")!="#"){A.data(P,"href.tabs",P.href);A.data(P,"load.tabs",P.href);var S=O.tabId(P);P.href="#"+S;var R=A("#"+S);if(!R.length){R=A(E.panelTemplate).attr("id",S).addClass(E.panelClass).insertAfter(O.$panels[Q-1]||O.element);R.data("destroy.tabs",true)}O.$panels=O.$panels.add(R)}else{E.disabled.push(Q+1)}}});if(N){A(this.element).hasClass(E.navClass)||A(this.element).addClass(E.navClass);this.$panels.each(function(){var P=A(this);P.hasClass(E.panelClass)||P.addClass(E.panelClass)});this.$tabs.each(function(S,P){if(location.hash){if(P.hash==location.hash){E.selected=S;if(A.browser.msie||A.browser.opera){var R=A(location.hash),T=R.attr("id");R.attr("id","");setTimeout(function(){R.attr("id",T)},500)}scrollTo(0,0);return false}}else{if(E.cookie){var Q=parseInt(A.cookie("ui-tabs"+A.data(O.element)),10);if(Q&&O.$tabs[Q]){E.selected=Q;return false}}else{if(O.$lis.eq(S).hasClass(E.selectedClass)){E.selected=S;return false}}}});this.$panels.addClass(E.hideClass);this.$lis.removeClass(E.selectedClass);if(E.selected!==null){this.$panels.eq(E.selected).show().removeClass(E.hideClass);this.$lis.eq(E.selected).addClass(E.selectedClass)}var D=E.selected!==null&&A.data(this.$tabs[E.selected],"load.tabs");if(D){this.load(E.selected)}E.disabled=A.unique(E.disabled.concat(A.map(this.$lis.filter("."+E.disabledClass),function(Q,P){return O.$lis.index(Q)}))).sort();A(window).bind("unload",function(){O.$tabs.unbind(".tabs");O.$lis=O.$tabs=O.$panels=null})}for(var H=0,M;M=this.$lis[H];H++){A(M)[A.inArray(H,E.disabled)!=-1&&!A(M).hasClass(E.selectedClass)?"addClass":"removeClass"](E.disabledClass)}if(E.cache===false){this.$tabs.removeData("cache.tabs")}var C,J,B={"min-width":0,duration:1},F="normal";if(E.fx&&E.fx.constructor==Array){C=E.fx[0]||B,J=E.fx[1]||B}else{C=J=E.fx||B}var I={display:"",overflow:"",height:""};if(!A.browser.msie){I.opacity=""}function L(Q,P,R){P.animate(C,C.duration||F,function(){P.addClass(E.hideClass).css(I);if(A.browser.msie&&C.opacity){P[0].style.filter=""}if(R){K(Q,R,P)}})}function K(Q,R,P){if(J===B){R.css("display","block")}R.animate(J,J.duration||F,function(){R.removeClass(E.hideClass).css(I);if(A.browser.msie&&J.opacity){R[0].style.filter=""}A(O.element).triggerHandler("tabsshow",[O.ui(Q,R[0])],E.show)})}function G(Q,S,P,R){S.addClass(E.selectedClass).siblings().removeClass(E.selectedClass);L(Q,P,R)}this.$tabs.unbind(".tabs").bind(E.event,function(){var S=A(this).parents("li:eq(0)"),P=O.$panels.filter(":visible"),R=A(this.hash);if((S.hasClass(E.selectedClass)&&!E.unselect)||S.hasClass(E.disabledClass)||A(this).hasClass(E.loadingClass)||A(O.element).triggerHandler("tabsselect",[O.ui(this,R[0])],E.select)===false){this.blur();return false}O.options.selected=O.$tabs.index(this);if(E.unselect){if(S.hasClass(E.selectedClass)){O.options.selected=null;S.removeClass(E.selectedClass);O.$panels.stop();L(this,P);this.blur();return false}else{if(!P.length){O.$panels.stop();var Q=this;O.load(O.$tabs.index(this),function(){S.addClass(E.selectedClass).addClass(E.unselectClass);K(Q,R)});this.blur();return false}}}if(E.cookie){A.cookie("ui-tabs"+A.data(O.element),O.options.selected,E.cookie)}O.$panels.stop();if(R.length){var Q=this;O.load(O.$tabs.index(this),P.length?function(){G(Q,S,P,R)}:function(){S.addClass(E.selectedClass);K(Q,R)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(!(/^click/).test(E.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/,E).replace(/#\{label\}/,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this.tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.panelClass).addClass(G.hideClass);F.data("destroy.tabs",true)}if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element.parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this.tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}A(this.element).triggerHandler("tabsadd",[this.ui(this.$tabs[C],this.$panels[C])],G.add)},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1<this.$tabs.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(G,F){return G!=B}),function(G,F){return G>=B?--G:G});this.tabify();A(this.element).triggerHandler("tabsremove",[this.ui(E.find("a")[0],C[0])],D.remove)},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return}var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});A(this.element).triggerHandler("tabsenable",[this.ui(this.$tabs[B],this.$panels[B])],C.enable)},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();A(this.element).triggerHandler("tabsdisable",[this.ui(this.$tabs[C],this.$panels[C])],D.disable)}}
269,select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(F,K){var L=this,C=this.options,D=this.$tabs.eq(F),J=D[0],G=K==undefined||K===false,B=D.data("load.tabs");K=K||function(){};if(!B||(A.data(J,"cache.tabs")&&!G)){K();return}if(C.spinner){var H=A("span",J);H.data("label.tabs",H.html()).html("<em>"+C.spinner+"</em>")}var I=function(){L.$tabs.filter("."+C.loadingClass).each(function(){A(this).removeClass(C.loadingClass);if(C.spinner){var M=A("span",this);M.html(M.data("label.tabs")).removeData("label.tabs")}});L.xhr=null};var E=A.extend({},C.ajaxOptions,{url:B,success:function(N,M){A(J.hash).html(N);I();K();if(C.cache){A.data(J,"cache.tabs",true)}A(L.element).triggerHandler("tabsload",[L.ui(L.$tabs[F],L.$panels[F])],C.load);C.ajaxOptions.success&&C.ajaxOptions.success(N,M)}});if(this.xhr){this.xhr.abort();I()}D.addClass(C.loadingClass);setTimeout(function(){L.xhr=A.ajax(E)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;A(this.element).unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})}});A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E<B.$tabs.length?E:0;B.select(E)},C)}function D(H){if(!H||H.clientX){clearInterval(B.rotation)}}if(C){G();if(!F){this.$tabs.bind(this.options.event,D)}else{this.$tabs.bind(this.options.event,function(){D();E=B.options.selected;G()})}}else{D();this.$tabs.unbind(this.options.event,D)}}})})(jQuery);$(document).ready(function(){$("#featured > ul").tabs({fx:[{opacity:'fadeOut',duration:'fast'},{opacity:"toggle",duration:'fast'}]}).tabs("rotate",5000,true);if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.split(";")[1].replace(/[ ]/g,"")=="MSIE6.0"){DD_belatedPNG.fix('div, ul, img, li, input , a:hover');}
270$("#featured > ul a").each(function(){$(this).focus(function(){$(this).blur();});});});(function($){$.fn.ContentHit=function(options){return this.each(function(){var $this=$(this);$.ajax({type:"GET",dataType:"jsonp",url:"//click.gamersky.com/Common/GetHits.aspx",data:{id:$this.attr("generalId"),script:"3"},success:function(data){$this.html(data.hits);}});});};$.fn.ContentHrefHit=function(options){return this.each(function(){var $this=$(this);var hot='false';if($this.attr("data-hot")){hot=$this.attr("data-hot");}
271var fieldName="";if($this.attr("data-fieldName")){fieldName=$this.attr("data-fieldName");}
272$this.click(function(){$.ajax({type:"GET",dataType:"jsonp",url:"//click.gamersky.com/Common/GetHits.aspx",data:{id:$this.attr("data-itemid"),script:"3",hot:hot,fieldName:fieldName},success:function(data){}});});});};$.fn.PagerHotKey=function(options){return this.each(function(){var $this=$(this);$(document).bind('keydown','left',function(event){if($(event.target).is('textarea')){return;}
273var currentPage=$this.find("b");if(currentPage.prev("a").length>0){window.location.href=currentPage.prev("a").attr("href");}});$(document).bind('keydown','right',function(event){if($(event.target).is('textarea')){return;}
274var currentPage=$this.find("b");if(currentPage.next("a").length>0){window.location.href=currentPage.next("a").attr("href");}});});}})(jQuery);$("#countn").ContentHit();$(document).ready(function(){$(document).on("click",".countHit,.countHitSql",function(){var $this=$(this);var judge="false";if($this.hasClass("countHitSql")){judge="true";}
275var hot='false';if($this.attr("data-hot")){hot=$this.attr("data-hot");}
276var fieldName="";if($this.attr("data-fieldName")){fieldName=$this.attr("data-fieldName");}
277$.ajax({type:"GET",dataType:"jsonp",url:"//click.gamersky.com/Common/GetHits.aspx",data:{id:$this.attr("data-itemid"),script:"3",hot:hot,fieldName:fieldName,judge:judge},success:function(data){}});});$(document).on("click",".downloadUrlCountHit",function(){var $this=$(this);var judge="false";if($this.hasClass("countHitSql")){judge="true";}
278var hot='false';if($this.attr("data-hot")){hot=$this.attr("data-hot");}
279var fieldName="";if($this.attr("data-fieldName")){fieldName=$this.attr("data-fieldName");}
280$.ajax({type:"GET",dataType:"jsonp",url:"//click.gamersky.com/Common/GetHits.aspx",data:{id:$this.attr("data-itemid"),hitAction:"3",script:"3",hot:hot,fieldName:fieldName,judge:judge},success:function(data){}});});$(".page_css").PagerHotKey();
280var clubCycm="";$(".cy_comment").each(function(){if($(this).attr("data-clubId")!=""&&$(this).attr("data-clubId")!=undefined){if(clubCycm!=""){clubCycm=clubCycm+","}
281clubCycm=clubCycm+$(this).attr("data-clubId");}});if(clubCycm!=""){var clubCycmArr=clubCycm.length>0?clubCycm.split(",").map(Number):[];$.ajax({type:"POST",url:"//router.gamersky.com/@/gsComment/news/batchGetClubPostCommentCount/pc",data:JSON.stringify(clubCycmArr),dataType:"json",contentType:"application/json",xhrFields:{withCredentials:true},success:function(response){if(!response.error){$.each(response.data,function(key,value){$(".cy_comment[data-clubId='"+key+"']").html(value);});}}});}
282var cycm="";$(".cy_comment").each(function(){if($(this).attr("data-clubId")!=""&&$(this).attr("data-clubId")!=undefined){}
283else{if(cycm!=""){cycm=cycm+","}
284cycm=cycm+$(this).attr("data-sid");}});var cycmIds="";$(".cy_commentnum").each(function(){if($(this).attr("data-clubId")!=""&&$(this).attr("data-clubId")!=undefined){}
285else{if(cycmIds!=""){cycmIds=cycmIds+","}
286cycmIds=cycmIds+$(this).attr("data-sid");}});var gshit="";$(".gshit").each(function(){if($(this).attr("data-clubId")!=""&&$(this).attr("data-clubId")!=undefined){}
287else{if(gshit!=""){gshit=gshit+","}
288gshit=gshit+$(this).attr("data-gid");}});function addCyComment(arr){var idList=[];if(typeof arr=="string"){idList=arr.length>0?arr.split(",").map(Number):[];}
289else{idList=arr.map(Number);}
290$.ajax({type:"POST",url:"//router.gamersky.com/@/gsComment/news/batchGetNewsInteractionCount/pc",data:JSON.stringify(idList),dataType:"json",contentType:"application/json",xhrFields:{withCredentials:true},success:function(response){if(!response.error){$(".cy_comment").each(function(){console.log(response.data.hasOwnProperty($(this).attr("data-sid")));if(response.data.hasOwnProperty($(this).attr("data-sid"))){var cmobj=response.data[$(this).attr("data-sid")];$(this).text(cmobj).attr('data-lddt','yes');}});}}});}
291function addCyCommentnum(arr){var idList=[];if(typeof arr=="string"){idList=arr.split(",");}
292else{idList=arr;}
293$.ajax({type:"POST",url:"//router.gamersky.com/@/gsComment/news/batchGetNewsInteractionCount/pc",data:JSON.stringify(idList),dataType:"json",contentType:"application/json",xhrFields:{withCredentials:true},success:function(response){if(!response.error){$(".cy_comment").each(function(){if(response.data.hasOwnProperty($(this).attr("data-sid"))){var cmobj=response.data[$(this).attr("data-sid")];$(this).text(cmobj).attr('data-lddt','yes');}});}}});}
294function addGshit(arr){$.ajax({type:"GET",dataType:"jsonp",url:"//db2.gamersky.com/showAllHits.aspx",data:{id:arr},success:function(responseJson){for(var i=0;i<responseJson.length;i++){var hitobj=responseJson[i],hits=parseInt(hitobj.hits);var num=hits>9999?parseFloat(parseFloat(hits/10000).toFixed(1))+"w":hits;$(".gshit[data-gid='"+hitobj.generalId+"']").text(num).attr('data-lddt','yes');}}});}
295var gshit1="";$(".gshit").each(function(){if($(this).attr("data-clubId")!=""){if(gshit1!=""){gshit1=gshit1+","}
296gshit1=gshit1+$(this).attr("data-clubId");}});function addGshit1(arr){$.ajax({type:"GET",dataType:"jsonp",url:"//db2.gamersky.com/showAllHits.aspx",data:{clubId:arr},success:function(responseJson){for(var i=0;i<responseJson.length;i++){var hitobj=responseJson[i],hits=parseInt(hitobj.hits);var num=hits>9999?parseFloat(parseFloat(hits/10000).toFixed(1))+"w":hits;$(".gshit[data-clubId='"+hitobj.generalId+"']").text(num).attr('data-lddt','yes');}}});}
297function separateArray(targetArr,size,callback){function sliceArray(array,size){var result=[];for(var x=0;x<Math.ceil(array.length/size);x++){var start=x*size;var end=start+size;result.push(array.slice(start,end));}
298return result;}
299var arrTmp=targetArr.split(','),arr=[];arr=sliceArray(arrTmp,size);$.each(arr,function(i,item){var getArr=item+'';if(typeof callback==='function'){callback(getArr);}});}
300if(cycm!=""){separateArray(cycm,180,addCyComment);}
301if(cycmIds!=""){separateArray(cycmIds,180,addCyCommentnum);}
302if(gshit!=""){separateArray(gshit,180,addGshit);}
303if(gshit1!=""){separateArray(gshit1,180,addGshit1);}});(function($){var commentJsonpUrl="//cm.gamersky.com/commentajax.aspx";var commentCookieName="CommentConent";var randomNumber=function(n){var rnd='';for(var i=0;i<n;i++)
304rnd+=Math.floor(Math.random()*10);return rnd;};var chineseStrLen=function(str){var len=0;for(var i=0;i<str.length;i++){var c=str.charCodeAt(i);if((c>=0x0001&&c<=0x007e)||(0xff60<=c&&c<=0xff9f)){len++;}else{len+=2;}}
305return len;};var addComment=function(userName,commentContent,commentValidCode,referenceId,isGuest,commentValidCodeEle){if(commentContent.length>500){alert("发表评论字数不能超500字!");return;}
306var _commentContent=commentContent.replace(/[\r\n]/g,'<br />');_commentContent=encodeURI($.trim(_commentContent));var jsondata={type:"addcomment",username:userName,commenttitle:'',content:_commentContent,email:'',gid:$(".commentStatus").attr("itemid"),nid:$(".commentStatus").attr("nodeid"),"private":false,position:0,score:0,TxtValidCode:comment
306ValidCode,isguest:isGuest.toString(),referenceid:referenceId};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){switch(responseJson.status){case"ok":$.removeCookie(commentCookieName,{path:'/'});if(typeof(initComment)=="function"){$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify({type:"removecache",itemId:$(".commentStatus").attr("itemid")})},success:function(responseJson){initComment();}});}
307break;case"check":$.removeCookie(commentCookieName,{path:'/'});if(typeof(initComment)=="function"){$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify({type:"removecache",itemId:$(".commentStatus").attr("itemid")})},success:function(responseJson){initComment();}});}else{window.location.href='#commentform';}
308break;case"err":alert("发表评论失败!");break;case"nopurview":alert("此栏目已禁止发表评论!");break;case"noTourists":alert("此栏目已禁止游客发表评论!");break;case"checkCodeError":$(commentValidCodeEle).click();alert("您输入的验证码和系统产生的不一致,请重新输入!");break;case"lenError":alert("发表评论字数不能超500字!");break;default:alert("发表评论失败!");break;}}});};$.fn.extend({comment:function(options){$(window).unload(function(){$.removeCookie(commentCookieName,{path:'/'});});return this.each(function(){var op=$.extend({itemId:parseInt($(this).attr("itemId")),nodeId:parseInt($(this).attr("nodeId")),isShowMore:$(this).attr("isShowMore"),isShowHot:$(this).attr("isShowHot"),showListType:$(this).attr("showListType"),isPage:'true',pageSize:parseInt($(this).attr("pageSize"))==0?10:parseInt($(this).attr("pageSize")),currentPage:0},options);var $this=$(this);$this.html("");$(".commentloading").show();var jsondata={type:"updatelabel",labelname:"游民星空评论",attr:{generalId:op.itemId,nodeId:op.nodeId,displayType:'all',isShowMore:op.isShowMore,isShowHot:op.isShowHot,commnetPageSize:op.pageSize,showListType:op.showListType}};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){$this.append($(responseJson.body));$this.find(".commentlist").commentList({callback:function(){$(".commentloading").hide();$this.find(".commentCount").text($this.find(".commentlist").attr("total"));var showCommentList=$this.find(".commentlist").attr("showCommentList");if(showCommentList=="false"){$this.find(".hd").hide();$this.find(".bd .title").remove();$this.find(".bd").prepend($this.find(".hd .title"));}}});$this.find(".commentHotList").commentHot();$this.find(".mainCommentContainer").commentAdd();$this.find(".mainCommentContainer").commentUserLogin();}});});},commentHot:function(options){return this.each(function(){var $this=$(this);var op=$.extend({itemId:parseInt($(this).attr("itemId")),nodeId:parseInt($(this).attr("nodeId")),listLabelName:'游民星空热门评论'},options);var jsondata={type:"updatelabel",labelname:op.listLabelName,attr:{itemId:op.itemId}};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){$this.html(responseJson.body);$this.commentAction();}});});},commentAdd:function(options){return this.each(function(){var $this=$(this);var $title=$this.find(".title");var template=$("#addCommentTemplate").html();$this.html("");$this.append($title);$this.append($(template));var _$mainCommentContent=$this.find('.mainCommentContent');_$mainCommentContent.keyup(function(){var maxChars=500;if($(this).val().length>maxChars)
309$(this).val($(this).val().substring(0,maxChars));var curr=maxChars-$(this).val().length;$this.find('.butleft').html('剩余字数:'+curr.toString());});_$mainCommentContent.keydown(function(event){event.stopPropagation();});var _userName=$(".commentStatus").attr("commentusername");$this.find('.mainCommentValidCodeImg').click(function(){var imageSrc=$(this).attr("src");if(imageSrc.indexOf("?")>=0){$(this).attr("src",imageSrc.split("?")[0]+'?code='+randomNumber(10));}else{$(this).attr("src",imageSrc+'?code='+randomNumber(10));}});$this.find(".mainSubmitButton").click(function(){var _userName=$(".commentStatus").attr("commentusername");var commentPermissionType=$(".commentStatus").attr("commentpermissiontype");var _$replyIsUser=$this.find('.replyIsGuest');if(commentPermissionType=="1"&&_userName=='游客'){alert("请先登录再发表评论!");return false;}
310if(commentPermissionType==0&&!_$replyIsUser.attr("checked")&&_userName=='游客'){alert("请先登录或选择游客发表!");return false;}
311if($.trim(_$mainCommentContent.val())==''){alert("请输入评论内容!");_$mainCommentContent.focus();return false;}
312if(_$replyIsUser.attr("checked")&&_userName=='游客'&&chineseStrLen(_$mainCommentContent.val())<10){alert("游客发表,评论内容不得少于5个字!");_$mainCommentContent.focus();return false;}
313var _validCode='';var _validCodeType=$(".commentStatus").attr("commentvalidatecodetype");if(_validCodeType=='0'||(_validCodeType=='1'&&_userName=='游客')){var _$mainCommentValidCode=$this.find('.mainCommentValidCode');if(_$mainCommentValidCode.length!=0&&_$mainCommentValidCode.val()==''){alert("请输入验证码!");_$mainCommentValidCode.focus();return false;}
314_validCode=_$mainCommentValidCode.val();}
315var _commentContent=_$mainCommentContent.val();addComment(_userName,_commentContent,_validCode,0,false,'.mainCommentValidCode');});});},commentList:function(options){return this.each(function(){var op=$.extend({itemId:parseInt($(this).attr("itemId")),nodeId:parseInt($(this).attr("nodeId")),pageSize:parseInt($(this).attr("pageSize"))==0?10:parseInt($(this).attr("pageSize")),listLabelName:'游民星空评论列表',currentPage:parseInt($(this).attr("currentPage"))==0?1:parseInt($(this).attr("currentPage")),showCommentList:$(this).attr("showCommentList"),callback:function(){}},options);var $this=$(this);var jsondata={type:"updatelabel",labelname:op.listLabelName,currentpage:op.currentPage,cachetime:60,attr:{itemId:op.itemId,page:'true',pagesize:op.pageSize,currentpage:op.currentPage}};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){if(op.showCommentList=="false"){$this.hide();}
316$this.html(responseJson.body);$this.attr("total",responseJson.total);$($this.attr("pager")).commentPager();$this.commentAction();op.callback();}});});},commentUserLogin:function(options){return this.each(function(){var $this=$(this);$(document).bind('login',function(){var parentComment=$this.parents("#commentform");var op={itemId:parseInt(parentComment.attr("itemId")),nodeId:parseInt(parentComment.attr("nodeId")),isShowMore:parentComment.attr("isS
316howMore"),isShowHot:parentComment.attr("isShowHot"),showListType:parentComment.attr("showListType"),pageSize:parseInt(parentComment.attr("pageSize"))==0?10:parseInt(parentComment.attr("pageSize"))};var jsondata={type:"updatelabel",labelname:"游民星空评论",attr:{generalId:op.itemId,nodeId:op.nodeId,displayType:'template',isShowMore:op.isShowMore,isShowHot:op.isShowHot,commnetPageSize:op.pageSize,showListType:op.showListType}};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){$("#replayCommentTemplate,#addCommentTemplate,.commentStatus").remove();parentComment.append($(responseJson.body));$(document).trigger('updateReplay');$(".mainCommentContainer").commentAdd();$(".mainCommentContainer").commentUserLogin();}});});$(document).bind('logout',function(){var parentComment=$this.parents("#commentform");var op={itemId:parseInt(parentComment.attr("itemId")),nodeId:parseInt(parentComment.attr("nodeId")),isShowMore:parentComment.attr("isShowMore"),isShowHot:parentComment.attr("isShowHot"),showListType:parentComment.attr("showListType"),pageSize:parseInt(parentComment.attr("pageSize"))==0?10:parseInt(parentComment.attr("pageSize"))};var jsondata={type:"updatelabel",labelname:"游民星空评论",attr:{generalId:op.itemId,nodeId:op.nodeId,displayType:'template',isShowMore:op.isShowMore,isShowHot:op.isShowHot,commnetPageSize:op.pageSize,showListType:op.showListType}};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){$("#replayCommentTemplate,#addCommentTemplate,.commentStatus").remove();parentComment.append($(responseJson.body));$(document).trigger('updateReplay');$(".mainCommentContainer").commentAdd();$(".mainCommentContainer").commentUserLogin();}});});});},commentAction:function(options){return this.each(function(){var $this=$(this);$this.find(".addpkzone").click(function(event){event.preventDefault();var $addpkzone=$(this);var jsondataPK={type:"addcommentpk",commentid:parseInt($addpkzone.attr("rel")),position:1,content:"support"};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondataPK)},success:function(responseJson){switch(responseJson.status){case"ok":$addpkzone.find(".comment_pkcount").html(parseInt($addpkzone.find(".comment_pkcount").html())+1);break;case"AnonymousAgain":case"UserAgain":alert("对不起,您已经顶过了!");break;case"NotAuthenticated":alert("登录会员才能使用!");if(window.location.hash){window.location.hash="";}
317window.location.hash="#commentLogin";break;default:alert("提交失败!");break;}}});});$this.find("a[rel='moreline']").click(function(event){event.preventDefault();var refCommentId=$(this).attr("refCommentId");$this.find("li[rel='refCommentList'][refCommentId='"+refCommentId+"']").show();$(this).parents(".refCommentMore").hide();});$this.find(".replyButtonLink,.repalyLink a").click(function(event){event.preventDefault();$this.find(".closeReplayCommentButton").click();var $replayButtonLink=$(this);var commentId=$replayButtonLink.attr("rel");var $replay=$("");if($(this).attr("refcommentid")){var refCommentId=$(this).attr("refcommentid");$replay=$this.find('.replyBox[rel="'+commentId+'"][refcommentid="'+refCommentId+'"]');}else{$replay=$this.find('.newreply[rel="'+commentId+'"]');}
318var template=$("#replayCommentTemplate").html();var _$replyContainer=$(template);$replay.html("");_$replyContainer.appendTo($replay).show();$replayButtonLink.attr("data-state","open");$replay.focus();$replay.find(".closeReplayCommentButton").click(function(){$replay.html("");$replayButtonLink.attr("data-state","close");});$replay.commentUserLogin();$(document).one('updateReplay',function(){if($replayButtonLink.attr("data-state")=="open"){$replayButtonLink.click();}});var $cookieContent=$.cookie(commentCookieName);if($cookieContent){$replay.find(".replyCommentContent").val($cookieContent);}
319$replay.find(".replyCommentContent").keyup(function(){var maxChars=500;$.cookie(commentCookieName,$(this).val(),{expires:7,path:'/'});if($(this).val().length>maxChars)
320$(this).val($(this).val().substring(0,maxChars));var curr=maxChars-$(this).val().length;$replay.find('.replyChLeft').html(curr.toString());});$replay.find(".replyCommentContent").keydown(function(event){event.stopPropagation();});
320$replay.find('.replyCommentValidCodeImg').click(function(){var imageSrc=$(this).attr("src");if(imageSrc.indexOf("?")>=0){$(this).attr("src",imageSrc.split("?")[0]+'?code='+randomNumber(10));}else{$(this).attr("src",imageSrc+'?code='+randomNumber(10));}});$replay.find(".replySubmitButton").click(function(){var _userName=$(".commentStatus").attr("commentusername");var commentPermissionType=$(".commentStatus").attr("commentpermissiontype");var _$replyIsUser=$replay.find('.replyIsGuest');if(commentPermissionType=="1"&&_userName=='游客'){alert("请先登录再发表评论!");return false;}
321if(commentPermissionType==0&&!_$replyIsUser.attr("checked")&&_userName=='游客'){alert("请先登录或选择游客发表!");return false;}
322var _commentId=commentId;var _$replyCommentContent=$replay.find(".replyCommentContent");if($.trim(_$replyCommentContent.val())==''){alert("请输入评论内容!");_$replyCommentContent.focus();return false;}
323if(_$replyIsUser.attr("checked")&&_userName=='游客'&&chineseStrLen(_$replyCommentContent.val())<10){alert("游客发表,评论内容不得少于5个字!");_$replyCommentContent.focus();return false;}
324var _validCode='';var _validCodeType=$(".commentStatus").attr("commentvalidatecodetype");if(_validCodeType=='0'||(_validCodeType=='1'&&_userName=='游客')){var _$replyCommentValidCode=$replay.find(".replyCommentValidCode");if(_$replyCommentValidCode.length!=0&&_$replyCommentValidCode.val()==''){alert("请输入验证码!");_$replyCommentValidCode.focus();return false;}
325_validCode=_$replyCommentValidCode.val();}
326var _commentContent=_$replyCommentContent.val();var _isGuest=false;addComment(_userName,_commentContent,_validCode,_commentId,_isGuest,'.replyCommentValidCodeImg');});});});},commentPager:function(options){return this.each(function(){var op=$.extend({commentList:$(this).attr("commentList"),pageSize:10,listLabelName:'游民星空评论列表',pageLabelName:'游民评论分页',callback:function(){}},options);var recordCount=parseInt($(op.commentList).attr("total"));var currentPage=parseInt($(op.commentList).attr("currentPage"))==0?1:parseInt($(op.commentList).attr("currentPage"));var pageSize=parseInt($(op.commentList).attr("pageSize"))==0?10:parseInt($(op.commentList).attr("pageSize"));var $this=$(this);if(recordCount>0){$this.show();var jsondata={type:"updatepage",labelname:op.pageLabelName,sourcename:op.listLabelName,pagesize:pageSize,currentpage:currentPage,cachetime:60,total:recordCount};$.ajax({type:"GET",url:commentJsonpUrl,dataType:"jsonp",data:{jsondata:JSON2.stringify(jsondata)},success:function(responseJson){$this.html(responseJson.body);$this.find("a").click(function(event){event.preventDefault();$(op.commentList).attr("currentPage",$(this).attr("page"));$(op.commentList).commentList({callback:function(){var hash=window.location.hash;if(!hash){window.location.href=window.location.href+"#comment";}else{window.location.href=window.location.href.substring(0,window.location.href.indexOf('#'))+"#comment";}
327if($.browser.msie){var cleanTitle=function(title){if(title.indexOf('#')!=-1){var cleanedTitle=title.substring(0,title.indexOf('#'));title=cleanedTitle}
328return title;};var oldTitle=document.title||'';document.title=cleanTitle(oldTitle);}}});});op.callback();}});}else{$this.hide();}});}});function initComment(){$("#commentform").comment();};initComment();(function(){var cleanTitle=function(title){if(title.indexOf('#')!=-1){var cleanedTitle=title.substring(0,title.indexOf('#'));title=cleanedTitle}
329return title;};var oldTitle=document.title||'';document.title=cleanTitle(oldTitle);document.onpropertychange=function(){var docTitle=document.title||'';if(window.event.propertyName==='title'&&docTitle!==oldTitle){document.title=cleanTitle(docTitle);}}})();})(jQuery);(function($){$.fn.ContentScore=function(options){return this.each(function(){var $this=$(this);$this.find(".contentscore").mouseout(function(){var scoreRanking=parseInt($(".contentscore[scored='true']").attr("ranking"));$this.find(".contentscore").each(function(){var ranking=parseInt($(this).attr("ranking"));var src=ranking<=scoreRanking?siteSetup.sitePath+"Images/fstar.gif":siteSetup.sitePath+"Images/estar.gif";$(this).attr("src",src);});}).mouseover(function(){var scoreRanking=parseInt($(this).attr("ranking"));$this.find(".contentscore").each(function(){var ranking=parseInt($(this).attr("ranking"));var src=ranking<=scoreRanking?siteSetup.sitePath+"Images/fstar.gif":siteSetup.sitePath+"Images/estar.gif";$(this).attr("src",src);});}).click(function(){var genneralId=parseInt($(this).attr("itemId"));$.pe.ajax('contentpk',{params:{GenneralId:genneralId,Score:parseInt($(this).attr("ranking")),Type:0},success:function(response){var data=$(response);var status=data.find('status').text();var result=data.find('result').text();switch(status){case"ok":$("#contentScoreInit").ContentScoreInit();break;case"AnonymousAgain":case"UserAgain":alert("对不起,您已经评价过了,请勿再评价!");break;case"err":alert("文章评分失败!");break;}}});});});};$.fn.ContentScoreInit=function(options){return this.each(function(){$this=$(this);$.pe.ajax('GetContentPKResult',{params:{GenneralId:$this.attr("itemId")},success:function(response){var data=$(response);var status=data.find('status').text();var totalCount=data.find('totalCount').text();var averageScore=data.find('averageScore').text();switch(status){case"ok":$this.find(".totalCount").html(totalCount);$this.find(".averageScore").html(averageScore);break;case"err":break;}}});});};})(jQuery);$(document).ready(function(){$("#contentScoreInit").ContentScoreInit();$("#contentScoreRanking").ContentScore();});(function($){$.fn.ThunderDownLoad=function(options){return this.each(function(){var $this=$(this);$this.click(function(event){event.preventDefault();$.ajax({type:"GET",dataType:"jsonp",url:"//click.gamersky.com/Common/GetHits.aspx",data:{id:$this.attr("itemid"),script:"3",hot:"true"},success:function(data){}});$.ajax({type:"GET",dataType:"jsonp",url:"//db4.gamersky.com/Common/ShowDownloadUrlJsonp.aspx",data:{urlid:$this.attr("urlid"),id:$this.attr("itemid")},success:function(data){if(data.status=="ok"){var thunder_url=data.body;if(thunderHrefAttr){$this.attr(thunderHrefAttr,ThunderEncode(thunder_url));}else{$this.attr("thunderHref",ThunderEncode(thunder_url));}
330$this.attr("thunderPid","51185");$this.attr("thunderResTitle","");$this.contextmenu(function(){ThunderNetwork_SetHref(this);});$this.unbind("click").click(function(event){event.preventDefault();OnDownloadClick_Simple(this,2,4);});OnDownloadClick_Simple($this.get(0),2,4);}}});});});};$(document).ready(function(){$(".gsthunder").ThunderDownLoad();$(".dvurl1 li a").attr("target","_blank");});})(jQuery);
331(function($){Number.prototype.toFixed=function(d){var s=this+"";if(!d){d=0;}
332if(s.indexOf(".")==-1){s+=".";}
333s+=new Array(d+1).join("0");if(new RegExp("^(-|\\+)?(\\d+(\\.\\d{0,"+(d+1)+"})?)\\d*$").test(s)){var s="0"+RegExp.$2,pm=RegExp.$1,a=RegExp.$3.length,b=true;if(a==d+2){a=s.match(/\d/g);if(parseInt(a[a.length-1])>4){for(var i=a.length-2;i>=0;i--){a[i]=parseInt(a[i])+1;if(a[i]==10){a[i]=0;b=i!=1;}else{break;}}}
334s=a.join("").replace(new RegExp("(\\d+)(\\d{"+d+"})\\d$"),"$1.$2");}
335if(b){s=s.substr(1);}
336return(pm+s).replace(/\.$/,"");}
337return this+"";};$.fn.KuScore=function(options){return this.each(function(){var $this=$(this);$(".midL1_2").bind("selectstart",function(){return false;});var cookieKey="R"+$this.attr("data-generalId")+"-"+$this.attr("data-type");if($.cookie(cookieKey)!==undefined){$this.unbind("mousemove");var kuScore=JSON2.parse($.cookie(cookieKey));$(".S3_2").html(kuScore.Sorce);var scoreEle=parseInt(parseFloat(kuScore.Sorce)*2)-1;$this.find("ul").attr("class","u"+String(scoreEle));
337var leftWidth=0;$this.find("ul li").each(function(i){if(i<=scoreEle){if((i&1)!=0){leftWidth=leftWidth+1;}
338leftWidth=leftWidth+$(this).width();}});$this.find("span").css("left",leftWidth);}else{var vL=$this.offset().left+1.5,vW=$this.width();$this.mousemove(function(event){var Le=event.pageX-vL,inde=$this.find("ul li").index();if(Le>=0&&Le<=vW-13){$this.find("span").css("left",Le);if(Le<=0){$(".S3_2").html("0.0");$this.find("ul").attr("class","");}
339var LL=0,j=0,htm="";for(var i=0;i<=inde;i++){LL=(i&1)!=0?LL+7:LL+6;j=j+0.5;htm=String(j).length==1?j.toFixed(1):j;if(Le>LL-((i&1)!=0?7:6)&&Le<=LL){$(".S3_2").html(htm);$this.attr("data-sorce",htm);$this.find("ul").attr("class","u"+i);}}}});}});};$.fn.Rating=function(options){return this.each(function(){var $this=$(this);var tips=$this.attr("data-tips");$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/init",data:{'generalId':$this.attr("data-generalId"),'ratingType':$this.attr("data-type"),'Action':"init"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$("#"+$this.attr("data-totleId")).html(data.Times);$("#"+$this.attr("data-avgscore")).html(data.Average==10?"10":data.Average.toFixed(1));}}});$this.click(function(event){event.preventDefault();$(".S31_2").unbind("mousemove");var cookieKey="R"+$this.attr("data-generalId")+"-"+$this.attr("data-type");if($this.is('[data-group]')){cookieKey="R"+$this.attr("data-generalId")+"-"+$this.attr("data-group");}
340$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/rating",data:{'Rating':JSON2.stringify({"GenneralId":$this.attr("data-generalId"),'Sorce':$this.attr("data-sorce"),'Type':$this.attr("data-type")}),'Action':"rating"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$("#"+$this.attr("data-totleId")).html(data.Times);$("#"+$this.attr("data-avgscore")).html(data.Average==10?"10":data.Average.toFixed(1));$.cookie(cookieKey,JSON2.stringify({"GenneralId":$this.attr("data-generalId"),'Sorce':$this.attr("data-sorce"),'Type':$this.attr("data-type")}),{path:"/",expires:365});$(".S31_2").KuScore();}}});});});};$.fn.RatingGame=function(options){return this.each(function(){var $this=$(this);var tips=$this.attr("data-tips");$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/init",data:{'generalId':$this.attr("data-generalId"),'ratingType':$this.attr("data-type"),'Action':"init"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$("#"+$this.attr("data-totleId")).html(data.Times);$("#"+$this.attr("data-avgscore")).html(data.Average==10?"10":data.Average.toFixed(1));}}});$this.click(function(event){event.preventDefault();$(".S31_2").unbind("mousemove");var cookieKey="R"+$this.attr("data-generalId")+"-"+$this.attr("data-type");if($this.is('[data-group]')){cookieKey="R"+$this.attr("data-generalId")+"-"+$this.attr("data-group");}
341$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/rating",data:{'Rating':JSON2.stringify({"GenneralId":$this.attr("data-generalId"),'Sorce':$this.attr("data-sorce"),'Type':$this.attr("data-type")}),'Action':"rating"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$("#"+$this.attr("data-totleId")).html(data.Times);$("#"+$this.attr("data-avgscore")).html(data.Average==10?"10":data.Average.toFixed(1));$.cookie(cookieKey,JSON2.stringify({"GenneralId":$this.attr("data-generalId"),'Sorce':$this.attr("data-sorce"),'Type':$this.attr("data-type")}),{path:"/",expires:365});$(".S31_2").KuScore();}}});});});};$.fn.RatingGamersky=function(options){return this.each(function(){var $this=$(this);$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/grade",data:{'generalId':$this.attr("data-generalId"),'Action':"grade"},success:function(data){if(data.EditorRating!=""&&data.RatingUrl!=""){var html=" <a href='"+data.RatingUrl+"'  target='_blank'><div class='PFl_num S1_2'>"+data.EditorRating+"</div></a>";$this.append(html);}else{var html="<div class='PFl_num S1_2'>--</div>";$this.append(html);}}});});};$.fn.RatingGroup=function(options){return this.each(function(){var $this=$(this);var tips=$this.attr("data-tips");var number1=$(".ratingGroupAction").length;var types="";var toteid="";for(var c=0;c<number1;c++){types+=$(".ratingGroupAction").eq(c).attr("data-type")+",";}
342if(types==""){return;}
343$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/initgroup",data:{'generalId':$this.attr("data-generalId"),'ratingGroupType':types,'Action':"initGroup"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$(".ratingGroupAction").each(function(){var hasType=false;for(var i=0;i<data.length;i++){if(data[i].Type==$(this).attr("data-type")){var totleid=$(this).attr("data-totleid");$("#"+totleid).html(data[i].Times);hasType=true;}}
344if(!hasType){var totleid=$(this).attr("data-totleid");$("#"+totleid).html(0);}});var like=$("#like").html();var unlike=$("#unlike").html();var sorce=Math.round((eval(like)/(eval(like)+eval(unlike)))*100);var btnWidth=$(".btn12").width();if(isNaN(sorce)){$(".btn12").attr("style","margin-left:-"+btnWidth/2+"px;");$(".ZSr_m").attr("style","background-position:-74px  0;");$("#Sorce").html(0);}else{$(".btn12").attr("style","margin-left:"+Math.round(-btnWidth/2-(btnWidth/2-btnWidth*sorce/100))+"px;");$(".ZSr_m").attr("style","background-position:"+Math.round(-74-(74-148*sorce/100))+"px 0;");$("#Sorce").html(sorce);}}}});$this.find(".ratingGroupAction").click(function(event){event.preventDefault();var $thisAction=$(this);$(".S31_2").unbind("mousemove");var cookieKey="R"+$thisAction.attr("data-generalId")+"-"+$thisAction.attr("data-type");if($thisAction.is('[data-group]')){cookieKey="R"+$thisAction.attr("data-generalId")+"-"+$thisAction.attr("data-group");}
345$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/rating",data:{'Rating':JSON2.stringify({"GenneralId":$thisAction.attr("data-generalId"),'Sorce':$thisAction.attr("data-sorce"),'Type':$thisAction.attr("data-type")}),'Action':"rating"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$("#"+$thisAction.attr("data-totleId")).html(data.Times);var like=$("#like").html();var unlike=$("#unlike").html();var sorce=Math.round((eval(like)/(eval(like)+eval(unlike)))*100);var btnWidth=$(".btn12").width();if(isNaN(sorce)){$(".btn12").attr("style","margin-left:-"+btnWidth+"px;");$(".ZSr_m").attr("style","background-position:-74px 0;");$("#Sorce").html(0);}else{$("#Sorce").html(sorce);$(".ZSr_m").attr("style","background-position:"+Math.round(-74-(74-148*sorce/100))+"px 0;");$(".btn12").attr("style","margin-left:"+Math.round(-btnWidth/2-(btnWidth/2-btnWidth*sorce/100))+"px;");}
346$("#"+$thisAction.attr("data-avgscore")).html(data.Average==10?"10":data.Average.toFixed(1));$.cookie(cookieKey,JSON2.stringify({"GenneralId":$thisAction.attr("data-generalId"),'Sorce':$thisAction.attr("data-sorce"),'Type':$thisAction.attr("data-type")}),{path:"/",expires:365});$(".S31_2").KuScore();}}});});});};$.fn.RatingGroupLike=function(options){return this.each(function(){var $this=$(this);$this.find("li").each(function(i,element){var $lithis=$(element);var generalid=$(element).attr("data-generalid");var types=$(element).attr("data-type");if(!types){return;}
347$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/initgroup",data:{'generalId':generalid,'ratingGroupType':types,'Action':"initGroup"},success:function(data){if(data.length=1){$lithis.find("div a .huo").html(data[0].Times);}}});});});};$.fn.Ratingmore=function(options){return this.each(function(){var $this=$(this);var gamerskyrating=$this.find(".gamerskyrating");var userrating=$this.find(".userrating");$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/grade",data:{'generalId':$this.attr("data-generalId"),'Action':"grade"},success:function(data){if(data.EditorRating!=""&&data.EditorRating!="0"){$(gamerskyrating).html(data.EditorRating);}else{$(gamerskyrating).html("--");}}});$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/init",data:{'generalId':$this.attr("data-generalId"),'ratingType':$(userrating).attr("data-type"),'Action':"init"},success:function(data){if(!data.hasOwnProperty("status")){$(userrating).html(data.Average==10?"10":data.Average.toFixed(1));}}});var number1=$this.find(".ratingGroupAction").length;var types="";var toteid="";for(var c=0;c<number1;c++){types+=$this.find(".ratingGroupAction").eq(c).attr("data-type")+",";}
348if(types==""){return;}
349$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/initgroup",data:{'generalId':$this.attr("data-generalId"),'ratingGroupType':types,'Action':"initGroup"},success:function(data){if(!data.hasOwnProperty("status")){$(".ratingGroupAction").each(function(){var hasType=false;for(var i=0;i<data.length;i++){if(data[i].Type==$(this).attr("data-type")){var totleid=$(this).attr("data-totleid");$this.find("#"+totleid).html(data[i].Times);hasType=true;}}
350if(!hasType){var totleid=$(this).attr("data-totleid");$this.find("#"+totleid).html(0);}});var like=$this.find("#like").html();var unlike=$this.find("#unlike").html();var sorce=Math.round((eval(like)/(eval(like)+eval(unlike)))*100);var btnWidth=$(".jindu").width();if(isNaN(sorce)){$this.find(".tiao").attr("style","width:"+btnWidth/2+"px;");}else{$this.find(".tiao").attr("style","width:"+Math.round(btnWidth*sorce/100)+"px;");}}}});$this.find(".ratingGroupAction").click(function(event){event.preventDefault();var $thisAction=$(this);var tips=$this.attr("data-tips");$(".S31_2").unbind("mousemove");var cookieKey="R"+$thisAction.attr("data-generalId")+"-"+$thisAction.attr("data-type");if($thisAction.is('[data-group]')){cookieKey="R"+$thisAction.attr("data-generalId")+"-"+$thisAction.attr("data-group");}
351$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/rating",data:{'Rating':JSON2.stringify({"GenneralId":$thisAction.attr("data-generalId"),'Sorce':$thisAction.attr("data-sorce"),'Type':$thisAction.attr("data-type")}),'Action':"rating"},success:function(data){if(data.hasOwnProperty("status")){switch(data.status){case"err":alert("提交"+tips+"错误!");break;case"existuser":case"existip":alert("已"+tips+"!");break;default:break;}}else{$this.find("#"+$thisAction.attr("data-totleId")).html(data.Times);var like=$this.find("#like").html();var unlike=$this.find("#unlike").html();var sorce=Math.round((eval(like)/(eval(like)+eval(unlike)))*100);var btnWidth=$(".jindu").width();if(isNaN(sorce)){$this.find(".tiao").attr("style","width:"+btnWidth/2+"px;");}else{$this.find(".tiao").attr("style","width:"+Math.round(btnWidth*sorce/100)+"px;");}
352$.cookie(cookieKey,JSON2.stringify({"GenneralId":$thisAction.attr("data-generalId"),'Sorce':$thisAction.attr("data-sorce"),'Type':$thisAction.attr("data-type")}),{path:"/",expires:365});}}});});});};$.fn.Ratingmores=function(options){var support="";$(this).each(function(){if(support!=""){support=support+","}
353support=support+$(this).attr("data-generalid");});if(support==""){return;}
354$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/grades",data:{'generalId':support,'Action':"grade"},success:function(data){$.each(data.result,function(i,item){if(item.editorRating!=""&&item.editorRating!="0"){$(".ratingdownmore[data-generalid='"+item.Id+"']").find(".gamerskyrating").html(data.EditorRating);}else{$(".ratingdownmore[data-generalid='"+item.Id+"']").find(".gamerskyrating").html("--");}});}});$.ajax({type:"GET",dataType:"jsonp",url:"//i.gamersky.com/apirating/inits",data:{"jsondata":JSON.stringify({'generalIds':support,'ratingType':0,'Action':"init"})},success:function(data){$.each(data,function(id,item){$(".ratingdownmore[data-generalid='"+id+"']").find(".userrating").html(item==10?"10":item.toFixed(1));});}});};$(document).ready(function(){$(".ratingGroup").RatingGroup();$(".ratingAction").Rating();$(".gameratingAction").RatingGame();$(".S31_2").KuScore();$("#gamerskyrating").RatingGamersky();$(".ratingGroupLike").RatingGroupLike();$(".ratingmore").Ratingmore();});})(jQuery);function loadJs(sid,jsurl,callback){var nodeHead=document.getElementsByTagName('head')[0];var nodeScript=null;if(document.getElementById(sid)==null){nodeScript=document.createElement('script');nodeScript.setAttribute('src',jsurl);nodeScript.setAttribute('id',sid);if(callback!=null){nodeScript.onload=nodeScript.onreadystatechange=function(){if(nodeScript.ready){return false;}
355if(!nodeScript.readyState||nodeScript.readyState=="loaded"||nodeScript.readyState=='complete'){nodeScript.ready=true;callback();}};}
356nodeHead.appendChild(nodeScript);}else{if(callback!=null){callback();}}};(function($){function checkIsNullOrEmpty(value){if(!value||value==""){alert("描述不能为空!");return false;}
357return true;};function checkEmail(value){if(value){if(!isEmail(value)){alert("您输入的邮箱有误请重新输入");return false;}}
358return true;};function checkPhone(value){if(value){if(!isPhone(value)){alert("您输入的电话有误请重新输入");return false;}}
359return true;};function checkQQ(value){if(value){if(!isQQ(value)){alert("您输入的QQ号有误请重新输入");return false;}}
360return true;};function isQQ(str){var reg=/^[1-9][0-9]{4,}$/;return reg.test(str);};function isEmail(str){var reg=/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;return reg.test(str);};function isPhone(str){var reg=/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/;return reg.test(str);};function getQueryString(name){var reg=new RegExp("(^|&|\\?)"+name+"=([^&]*)(&|$)"),r;var r=window.location.search.match(reg);if(r!=null)
361return decodeURIComponent(r[2]);return null;};var isTrim=function(s){return s.replace(/(^\s*)|(\s*$)/g,"");};const list=[{title:'政治敏感',select:['涉政不当内容','危害国家言论']},{title:'违法违规',select:['淫秽色情','赌博诈骗','涉及违禁物品','包含危险链接','教唆/诱导自杀','侮辱英烈']},{title:'观感不适',select:['血腥暴力','低俗内容','猎奇邪典']},{title:'侵权相关',select:['侵害企业权益','侵害个人权益','侵犯隐私']},{title:'未成年相关',select:['未成年不宜浏览','未成年不良行为']},{title:'造谣及不实信息',select:['标题内容不符','造谣抹黑','虚假不实信息']},{title:'不友善行为',select:['引战骚扰','制造对立','剧透']},{title:'违反公序良俗',select:['网络暴力','其它']},]
362function ContentHtml(list){let htm=`
363                <div class="jubao_mode"></div>
364                <div class="jubao">
365                    <div class="header">
366                        <div class="gz">
367                            <span>举报规则</span>
368                            <img src="https://image.gamersky.com/webimg13/tip.png">
369                        </div>
370                        <div class="header_title">举报</div>
371                        <div class="close">
372                            ×
373                        </div>
374                    </div>
375                    <div class="list">
376            `
377list.forEach(item=>{htm+=`
378                        <div class="item">
379                            <div class="tit">${item.title}</div>
380                                <div class="select">
381                    `
382item.select.forEach(v=>{htm+=`
383                                <div class="select_item">
384                                    <div class="img"></div>
385                                    <span>${v}</span>
386                                </div>
387                                `});htm+=`       
388                                </div>
389                        </div>
390                    `});htm+=`        <div class="dianhua input_tit">
391                        <div class="title">联系电话(选填)</div>
392                        <input type="text" placeholder="请输入用于联系的电话号码">
393                    </div>
394                    <div class="email input_tit">
395                        <div class="title">联系邮箱(选填)</div>
396                        <input type="text" placeholder="请输入用于联系的邮箱">
397                    </div>
398                    <div class="liyou input_tit">
399                        <div class="title">举报理由(选填)</div>
400                        <textarea placeholder="请输入举报理由"></textarea>
401                        <div class="tarea-num"><span class="tarea-dnum">0</span>/<span class="tarea-bnum">300</span></div>
402                    </div>
403                    <ul class="cmtRt-pic">
404                        <li class="add">
405                            <a href="javascript:;" class="upPicBtn">
406                                <p>上传图片</p>
407                            </a>
408                            <input id="reportUpload" data-imagesize="10" accept="image/jpg,image/jpeg,image/png,image/gif" type="file" style="display:none" name="files" method="POST" multiple="true">
409                        </li>
410                    </ul>
411                </div>
412                    <div class="footer">
413                        <div class="btn_box">
414                            <div class="btn qx">
415                                取消
416                            </div>
417                            <div class="btn qr">
418                                提交
419                            </div>
420                        </div>
421                       
422                    </div>
423                </div>
424
425            `
426return htm;}
427function uploadify(){var $reportUpload=$("#reportUpload");var settingSize=parseInt($reportUpload.attr("data-imagesize"));var count=1;$reportUpload.trigger("click");$reportUpload.fileupload({dataType:'json',url:'//i.gamersky.com/uploadpic/index',sequentialUploads:true,xhrFields:{withCredentials:true},autoUpload:true,done:function(e,data){var result=data.result;var fileIndex=data.originalFiles.indexOf(data.files[0]);var batchTaskNumber=data.batchTaskNumber;if(result.status=="ok"){var htm='<img imageclass="'+result.imageclass+'" src="'+result.tinysquare+'" small="'+result.small+'" tiny="'+result.tiny+'" origin="'+result.original+'" /><a href="javascript:;" class="picdel"></a>';$(".cmtRt-pic ."+batchTaskNumber+":eq("+fileIndex+")").removeClass("temp").addClass("done").html(htm);if($(".cmtRt-pic ."+batchTaskNumber+".done").length==data.originalFiles.length){$(".cmtRt-pic ."+batchTaskNumber+".temp").remove();}
428$(".cmtRt-pic li.pic .picdel").each(function(){$(this).off("click").on("click",function(){var origin=$(this).siblings("img").attr("origin");$(this).parent(".pic").remove();$(".cmtRt-pic li.add").show();$.ajax({type:"get",dataType:"jsonp",url:"//i.gamersky.com/uploadpic/delete?origin="+origin});});});}},change:function(e,data){var totla=$(".cmtRt-pic li.pic").length;var len=data.files.length;var uploaded=totla+len;var surplus=count-uploaded;if(uploaded>count){alert('上传图片不能超过'+count+'张!');return false;}
429var str=false;$.each(data.files,function(index,item){if(item.size/1024>settingSize*1024){str=true;}});if(str){alert('图片容量超过'+settingSize+'MB,无法上传!');return false;}
430if(uploaded==count){$(".cmtRt-pic li.add").hide();}
431var generateMixed=function(n){var res="",chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var i=0;i<n;i++){res+=chars.charAt(Math.floor(Math.random()*36));}
432return res;};var milliseconds=new Date().getTime();data.batchTaskNumber="b"+milliseconds+generateMixed(4);$.each(data.files,function(index){$(".cmtRt-pic li.add").before('<li class="pic temp '+data.batchTaskNumber+'"><img class="load" src="//image.gamersky.com/webimg15/loading.gif"></li>');});}});}
433function fileupload(a,b){$.getScript('//j.gamersky.com/file/ajaxfileupload.js',function(){var $this=$("#jcjbContentData");var title=$this.attr("title");var generalId=$this.attr("data-generalId");var htm=ContentHtml(list);var reportReasonType='';$("body").append(htm);$('.jubao .header .gz').on('click',function(){var a=document.createElement('a');a.href='https://www.gamersky.com/news/202412/1858998.shtml';a.target='_blank';document.body.appendChild(a);a.click();a.remove()})
434$('.jubao .footer .qx').on('click',function(){$('.jubao').remove();$('.jubao_mode').remove();})
435$('.jubao .header .close').on('click',function(){$('.jubao').remove();$('.jubao_mode').remove();})
436$('.jubao .list .item .select_item').on('click',function(){if($(this).find('.img').hasClass('cur')){$(this).find('.img').removeClass('cur');reportReasonType=''}else{$(this).find('.img').addClass('cur');reportReasonType=$(this).text()}
437$('.jubao .list .item .select_item').each((i,v)=>{if($(v).text()!=$(this).text()){$(v).find('.img').removeClass('cur')}})})
438$('.jubao .upPicBtn').on('click',function(){uploadify();})
439$(".addImgBtn").unbind("click").click(function(){uploadify();});$('.jubao .list textarea').on("keyup blur",function(){var len=isTrim($(this).val()).length;$('.jubao').find(".tarea-dnum").text(len);})
440$('.jubao .footer .qr').unbind("click").click(function(event){event.preventDefault();var textarea=$(".jubao .list .liyou textarea").val()||'';var phone=$(".jubao .list .dianhua input").val()||'';
440var email=$(".jubao .list .email input").val()||'';var picUrl=$(".jubao .cmtRt-pic li img").attr("src")||'';var bnum=$('.jubao').find(".tarea-bnum").text()|0;var dnum=$('.jubao').find(".tarea-dnum").text()|0;if(reportReasonType==''){alert("请选择举报类型!");return false;}
441if(checkEmail(email)==false||checkPhone(phone)==false){return;}
442if(!!isTrim(textarea)&&dnum>bnum){alert("举报理由文字超过"+bnum+"字!");return false;}
443var images=[];if($('.jubao ').find(".cmtRt-pic li.pic").length>0){$('.jubao ').find(".cmtRt-pic li.pic").each(function(i,item){var imageType="jpg";if($(this).find("img").attr("imageclass")=="gif"){imageType="gif";}
444images.push({"imageType":imageType,"tinysquare":$(this).find("img").attr("src"),"origin":$(this).find("img").attr("origin"),"small":$(this).find("img").attr("small"),"tiny":$(this).find("img").attr("tiny")});});}
445var CorrectInfo={};CorrectInfo.Title=title;CorrectInfo.GeneralId=generalId;CorrectInfo.Description=textarea;CorrectInfo.Phone=phone;CorrectInfo.Email=email;CorrectInfo.PhotoUrl=picUrl;CorrectInfo.IsReport=a;CorrectInfo.State=b;CorrectInfo.reportReasonType=reportReasonType.trim()
446console.log(CorrectInfo);$.ajax({type:"get",dataType:'jsonp',url:'//db5.gamersky.com/CorrectReport.aspx',data:{'ContentData':JSON.stringify(CorrectInfo)},contentType:'application/json;charset=utf-8',cache:false,success:function(data){$('.jubao').remove();$('.jubao_mode').remove();alert(data.body);},error:function(xhr){}});$(".newreport-mask,.newreport-popup").fadeOut(300,function(){$(this).remove();});});$('.newreport-close,.tj2-botton').unbind("click").click(function(event){event.preventDefault();$(".newreport-mask,.newreport-popup").fadeOut(300,function(){$(this).remove();});});});}
447$.fn.ContentCorrect=function(options){return this.each(function(){$(this).click(function(event){event.preventDefault();$(this).UserOnline(function(){fileupload(0,999);});});});};$.fn.ContentReport=function(options){return this.each(function(){$(this).click(function(event){event.preventDefault();$(this).UserOnline(function(){fileupload(1,1);});});});};$.fn.ContentEvaluation=function(options){return this.each(function(){$(this).click(function(event){event.preventDefault();$(this).UserOnline(function(){fileupload(0,999);});});});};$.fn.Collection=function(options){return this.each(function(){var $this=$(this),$div=$("#jcjbContentData");var generalId=$div.attr("data-generalId");var gameLib=$div.attr("data-gameLib");$this.click(function(event){event.preventDefault();$.ajax({type:"get",dataType:'jsonp',url:'//i.gamersky.com/api/addcollect',data:{"generalId":generalId,"gameLib":gameLib},success:function(data){if(data.status=="ok"){alert("收藏成功!");}else{alert(data.body);}},error:function(xhr){}});});});};$(document).ready(function(){if($("#jcjbContentData").length>0){$(".JCJB").show();}
448$(".btnContentReport").ContentReport();$(".btnContentCorrect").ContentCorrect();$(".btnContentEvaluation").ContentEvaluation();$(".btnCollection").Collection();});})(jQuery);(function($){$.fn.SoftGl=function(options){return this.each(function(){var tableName="PE_U_Soft";if($("#jcjbContentData").attr("data-tableName")!=null){tableName=$("#jcjbContentData").attr("data-tableName");}
449var op={GeneralId:$("#jcjbContentData").attr("data-generalId"),NodeId:$("#jcjbContentData").attr("data-nodeId"),Top:8,TableName:tableName};$.ajax({type:"POST",url:"//db2.gamersky.com/ContentAjaxNew.aspx",dataType:"jsonp",data:{jsondata:JSON2.stringify({type:"getcorrelation",GeneralId:op.GeneralId,NodeId:op.NodeId,Top:op.Top,TableName:op.TableName})},success:function(response){var data=response;if(data==undefined||data.length<=0){$("#softwenda").hide();}else{for(var i=0;i<data.length;i++){$("#softwenda").find(".wd").append('<li class="like"><a href="'+data[i].url+'" target="_blank">'+data[i].title+'</a></li>');}}}});});};$.fn.SoftCorrelation=function(options){return this.each(function(){var $this=$(this);var location=options;var locationContt=$this.find(".contt").eq(location);var locationConttLength=locationContt.attr("value");var isRemove=false;$this.find(".contt").each(function(index,element){var conttlilength=$(element).find(".txt .like li").length;if(conttlilength<=0){$(element).hide();isRemove=true;locationConttLength=parseInt(locationConttLength)+parseInt($(element).attr("value"));locationContt.find(".tit").removeClass().addClass("tit tp"+locationConttLength);locationContt.find(".txt").removeClass().addClass("txt th"+locationConttLength);locationContt.find(".like").removeClass().addClass("like lh"+locationConttLength);}});var lastLength=parseInt(locationConttLength)-1;if(location==0){$(".txtlist .tl_like.tr .contt:eq(0) .txt .like li:gt("+lastLength+")").remove();}else{$(".txtlist .tl_like.tl .contt:eq(1) .txt .like li:gt("+lastLength+")").remove();}});};$.fn.DownContentHot=function(options){return this.each(function(){var $this=$(this);var ganeralId=$this.attr("data-ganeralId");$.ajax({type:"POST",url:"//db2.gamersky.com/ContentAjaxNew.aspx",dataType:"jsonp",data:{jsondata:JSON2.stringify({type:"getcontenthot",GeneralId:ganeralId})},success:function(response){var data=response;if(data.status=="ok"){$this.html("&nbsp;"+data.body);};}});})}
450$(document).ready(function(){$(".td_dl[itemprop='inContentHot']").DownContentHot();$("#softwenda").SoftGl();$(".txtlist .tl_like.tl").SoftCorrelation(1);$(".txtlist .tl_like.tr").SoftCorrelation(0);});})(jQuery);
451(function($){$.fn.ContentVote=function(options){return this.each(function(){var $this=$(this);var generalId=$this.attr("data-id");function userVoted(voteItem,userVote){if(!voteItem||!userVote)return false;return userVote.includes(voteItem.Title);}
452$.ajax({type:"GET",dataType:"jsonp",url:"//db5.gamersky.com/ContentVoteJsonp.aspx",data:{id:generalId,a:"0",pc:"1"}
452,success:function(data){$this.find(".votelist .tit").text(data.vote.VoteTitle);for(var i=0;i<data.items.length;i++){let checked=userVoted(data.items[i],data.userVote);var li=$('<li class="txt"><input type="radio" id="v'+
453i+`" name="v" value="" ><label for="v`+
454i+'"></label></li>',);if(checked){li.find('input[type="radio"]').attr("checked",true);$this.find(".toupiao-vbtn").addClass("disabled").css({background:"#eaeaec",cursor:"not-allowed",color:"#444",});}
455if(data.vote.ItemType>0){li=$('<li class="txt"><input type="checkbox" name="v"id="v'+
456i+`" value=""><label for="v`+
457i+'"></label></li>',);if(checked){li.find('input[type="checkbox"]').attr("checked",true);$this.find(".toupiao-vbtn").addClass("disabled").css({background:"#eaeaec",cursor:"not-allowed",color:"#444",});}}
458if(data.userVote&&data.userVote.length){li.find("input[type='radio'], input[type='checkbox']").prop("disabled",true,);}
459li.find("input[name='v']").attr("value",data.items[i].Title);li.find("label").text(data.items[i].Title);$this.find(".votelist .btn").before(li);}
460if(data.userVote&&data.userVote.length>0){$this.find(".toupiao-vbtn").css({color:"#999",backgroundColor:"#eee"});}else{$this.find(".toupiao-vbtn:not(.disabled)").click(function(){var v="";$this.find("input[name='v']").each(function(){if($(this).attr("checked")){if(v.length>0){v=v+",";}
461v=v+$(this).attr("value");}});if(v.length==0){alert("请至少选择一个选项!");return;}
462$(this).UserOnline(function(){$.ajax({type:"GET",dataType:"jsonp",url:"//db5.gamersky.com/ContentVoteJsonp.aspx",data:{id:generalId,a:"1",pc:"1",v:v},success:function(data){if(data.status=="ok"){alert("投票成功!");$this.find(".toupiao-vbtn").addClass("disabled").css({background:"#eee",cursor:"not-allowed",color:"#999",});$(".toupiao").find("input[type='radio'], input[type='checkbox']").prop("disabled",true);}else{if(data.message=="请先登录!"){$("a.Login").click();}else{alert(data.message);}}},});});return false;});}
463$this.find(".toupiao-vbtn.disabled").click(function(){alert("您已经投过票");});$this.show();},});});};$.fn.HotVote=function(options){return this.each(function(){var $this=$(this);var generalId=$(this).attr("data-itemId");$.ajax({type:"GET",dataType:"jsonp",url:"//db5.gamersky.com/VoteJson.aspx",data:{id:generalId,a:"init"},success:function(data){$this.find(".redPollNumber").html(data.RedPoll);$this.find(".bluePollNumber").html(data.BluePoll);if((parseInt(data.RedPoll)+parseInt(data.BluePoll))>0){$this.find(".tiao").width(data.RedPoll/(parseInt(data.RedPoll)+parseInt(data.BluePoll))*100+"%");}}});$this.find(".votebtn").click(function(){$votebtn=$(this);var cookieKey="hotvote-"+generalId;if($.cookie(cookieKey)!==undefined&&$.cookie(cookieKey)!==null){if($votebtn.hasClass("OK")||$votebtn.hasClass("NO")){alert("当前主题只允许同一IP投票1次,您已经超过了投票次数");}
464return;}
465$.ajax({type:"GET",dataType:"jsonp",url:"//db5.gamersky.com/VoteJson.aspx",data:{id:generalId,a:"vote",p:$votebtn.attr("data-point")},success:function(data){if(data.status=="ok"){if($votebtn.attr("data-point")=="red"){$this.find(".redPollNumber").html(parseInt($this.find(".redPollNumber").html())+1);}else{$this.find(".bluePollNumber").html(parseInt($this.find(".bluePollNumber").html())+1);}
466var redPoll=parseInt($this.find(".redPollNumber").html());var bluePoll=parseInt($this.find(".bluePollNumber").html());if((redPoll+bluePoll)>0){$this.find(".tiao").width(redPoll/(redPoll+bluePoll)*100+"%");}
467$.cookie(cookieKey,"1",{path:"/",expires:365});}else{if($votebtn.hasClass("OK")||$votebtn.hasClass("NO")){alert("当前主题只允许同一IP投票1次,您已经超过了投票次数");}}}});});});};$(document).ready(function(){if($(".toupiao-Content").length>0){$(".toupiao-Content").html($(".toupiao-init").html());$(".toupiao-Content").attr("data-id",$(".toupiao-init").attr("data-id"));$(".toupiao-Content").ContentVote();$(".toupiao-init").hide();}else{$(".toupiao-init").ContentVote();}
468$(".hotVote").HotVote();});})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.