pg=window.pg||{version:"1.40",author:"jzy",_$:function(){var b,c,a=new array;for(b=0;b=0;e--)c[e]===b&&delete c[e];return a.classname=c.join(" "),d==c.length?!1:!0},toggleclass:function(a,b){this.hasclass(a,b)?this.removeclass(a,b):this.addclass(a,b)},attr:function(a,b,c){return void 0==c?a.getattribute(b):(""==c?a.removeattribute(b):a.setattribute(b,c),void 0)},getebyclass:function(a,b){var d,c=[];for(a=this.getchildnodes(a),d=0;dc&&a[0]e&&a[1]d;d++)"function"==this.gettype(a[d])||b(a[d],d)},animate:function(){var a=function(a,b,c,d,e){this.elem=a||this,this.style=b||{},this.duration=c||400,this.callback=d||function(){},this.isstyle=e?!0:!1,this.init()};return a.prototype={init:function(){this.fx()},ontween:function(a){var b,c,d,e,f,g,j,k,h=this.style,i=1;for(j=0,k=h.length;k>j;j++)b=h[j],d=b[0],e=b[1],f=b[2],g=b[3],0>e-d&&(i=-1),c=d+(e-d)*a,c=i>0?math.min(c,e):math.max(c,e),"opacity"==f?(c=c.tostring(),c=c.substring(0,c.charat(".")+3),c-=0,this.elem.style.filter="alpha(opacity="+100*c+")",this.elem.style.opacity=c):this.isstyle?this.elem.style[f]=c+g:this.elem[f]=c},onend:function(a){this.ontween(a),this.callback.call(this.elem)},fx:function(){var a,b,c=+new date,d=this,e=setinterval(function(){b=+new date-c,a=b/d.duration,a>=1?(clearinterval(e),d.onend(a)):d.ontween(a)},10)}},a}(),showopacity:function(a,b,c){"none"===pg.c(a,"display")&&(a.style.display="block"),pg.c(a,"opacity",0),b=b||200,c=c||20;var d=0,e=b/20;cleartimeout(a.timeout),a.timeout=settimeout(function(){return d>=1?(pg.c(a,"opacity",1),void 0):(d+=1/e,pg.c(a,"opacity",d),a.timeout=settimeout(arguments.callee,c),void 0)},c)},hideopacity:function(a,b,c){pg.c(a,"opacity",1),b=b||200,c=c||20;var d=1,e=b/20;cleartimeout(a.timeout),a.timeout=settimeout(function(){return 0>=d?(a.style.display="none",pg.c(a,"opacity",1),void 0):(d-=1/e,pg.c(a,"opacity",d),a.timeout=settimeout(arguments.callee,c),void 0)},c)},toggledisplay:function(a){return(a=this._$(a))?(a.style.display="none"==a.style.display?"block":"none",void 0):!1},css:function(a,b,c){if(2==arguments.length){if("scale"==b||"rotate"==b||"rotatex"==b||"rotatey"==b||"scalex"==b||"scaley"==b||"translatey"==b||"translatex"==b||"translatez"==b)switch(a.$transform||(a.$transform={}),b){case"scale":case"scalex":case"scaley":return"number"==typeof a.$transform[b]?a.$transform[b]:100;case"translatey":case"translatex":case"translatez":return a.$transform[b]?a.$transform[b]:0;default:return a.$transform[b]?a.$transform[b]:0}var d=a.currentstyle?a.currentstyle[b]:document.defaultview.getcomputedstyle(a,!1)[b];return"opacity"==b?math.round(100*parsefloat(d)):parseint(d)}if(3==arguments.length)switch(b){case"scale":case"scalex":case"scaley":case"rotate":case"rotatex":case"rotatey":case"translatey":case"translatex":case"translatez":this.setcss3(a,b,c);break;case"width":case"height":case"paddingleft":case"paddingtop":case"paddingright":case"paddingbottom":c=math.max(c,0);case"left":case"top":case"marginleft":case"margintop":case"marginright":case"marginbottom":a.style[b]="string"==typeof c?c:c+"px";break;case"opacity":a.style.filter="alpha(opacity:"+c+")",a.style.opacity=c/100;break;default:a.style[b]=c}return function(b,c){this.css(a,b,c)}},setcss3:function(a,b,c){var g,d="",e="",f=["webkit","moz","o","ms",""];a.$transform||(a.$transform={}),a.$transform[b]=parseint(c);for(d in a.$transform)switch(d){case"scale":case"scalex":case"scaley":e+=d+"("+a.$transform[d]/100+") ";break;case"rotate":case"rotatex":case"rotatey":e+=d+"("+a.$transform[d]+"deg) ";break;case"translatey":case"translatex":case"translatez":e+=d+"("+a.$transform[d]+"px) "}for(g=0;g30&&(f(a,b,d,e),g=(new date).gettime(),a.lastmove=g)},domovebuffer:function(a,b,c,d){var e=!0,f="",g=0,h=0;for(f in b)b[f]=parseint(b[f]),h=pg.css(a,f),b[f]!=h&&(e=!1,g=(b[f]-h)/5,g=g>0?math.ceil(g):math.floor(g),pg.css(a,f,h+g));d&&d.call(a),e&&(clearinterval(a.timer),a.timer=null,c&&c.call(a))},domoveflex:function(a,b,c,d){var e=!0,f="",h=0;for(f in b)a.ospeed||(a.ospeed={}),a.ospeed[f]||(a.ospeed[f]=0),h=pg.css(a,f),(math.abs(b[f]-h)>=1||math.abs(a.ospeed[f])>=1)&&(e=!1,a.ospeed[f]+=(b[f]-h)/5,a.ospeed[f]*=.75,pg.css(a,f,h+a.ospeed[f]));d&&d.call(a),e&&(clearinterval(a.timer),a.timer=null,c&&c.call(a))},c:function(a,b,c){var d;if(a)if(void 0==c){if(window.getcomputedstyle)return b=b.replace(/([a-z])/g,"-$1"),b=b.tolowercase(),window.getcomputedstyle(a,null).getpropertyvalue(b);if(a.currentstyle)return"opacity"==b?0<=a.style.filter.indexof("opacity=")?parsefloat(a.style.filter.match(/opacity=([^)]*)/)[1])/100:"1":a.currentstyle[b]}else!d&&"opacity"==b&&(d="opacity"in a.style?1:2),"opacity"==b&&2==d?a.style.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+"alpha(opacity="+100*c+")":a.style[b]=c},e:function(a){return a=window.event||a,{clone:!0,stop:function(){a&&a.stoppropagation?a.stoppropagation():a.cancelbubble=!0},prevent:function(){a&&a.preventdefault?a.preventdefault():a.returnvalue=!1},target:a.target||a.srcelement,x:a.clientx||a.pagex,y:a.clienty||a.pagey,button:a.button,key:a.keycode,shift:a.shiftkey,alt:a.altkey,ctrl:a.ctrlkey,type:a.type,wheel:a.wheeldelta/120||-a.detail/3}},isobject:function(a){return"object"==typeof a},iselement:function(a){return a&&1==a.nodetype},isundefined:function(a){return"undefined"==typeof a},isfunction:function(a){return"function"==this.gettype(a)},isnumber:function(a){return"number"==this.gettype(a)},isstring:function(a){return"string"==this.gettype(a)},isarray:function(a){return"array"==this.gettype(a)},gettype:function(a){return object.prototype.tostring.call(a).slice(8,-1)},isie:-1!=navigator.appversion.indexof("msie")?!0:!1,isie6:!!window.activexobject&&!window.xmlhttprequest,isie7:-1!=navigator.appversion.indexof("msie 7.0")?!0:!1};