PageSourceSearch

https://gigsmanila.com/templates/js/plugin-support.js

js gigsmanila.com collected 2026-10-03 02:33:33 UTC 58,220 bytes, 1,032 lines download raw bytes

1/*
2*Version: 0.9.4;
3*Sign:test;
4*edit date:2013/10/30
5*explain: 注释格式为"//----"的内容是参数说明
6*/
7if((function(){var undef,v=3,div=document.createElement('div'),all=div.getElementsByTagName('i');while (div.innerHTML='<!--[if gt IE '+(++v)+']><i></i><![endif]-->',all[0]);return v>4?v:undef})()<9){document.createElement("canvas").getContext||function(){function S(){return this.context_||(this.context_=new z(this))}function T(a,b,c){var g=J.call(arguments,2);return function(){return a.apply(b,g.concat(J.call(arguments)))}}function K(a){return(""+a).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function L(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");
8a.styleSheets.ex_canvas_||(a=a.createStyleSheet(),a.owningElement.id="ex_canvas_",a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}")}function U(a){var b=a.srcElement;switch(a.propertyName){case "width":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+"px";b.firstChild.style.width=b.clientWidth+"px";break;case "height":b.getContext().clearRect(),b.style.height=b.attributes.height.nodeValue+"px",b.firstChild.style.height=b.clientHeight+
9"px"}}function V(a){a=a.srcElement;a.firstChild&&(a.firstChild.style.width=a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px")}function A(){return[[1,0,0],[0,1,0],[0,0,1]]}function q(a,b){for(var c=A(),g=0;3>g;g++)for(var e=0;3>e;e++){for(var f=0,d=0;3>d;d++)f+=a[g][d]*b[d][e];c[g][e]=f}return c}function M(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=
10a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function N(a){var b=a.indexOf("(",3),c=a.indexOf(")",b+1),b=a.substring(b+1,c).split(",");if(4!=b.length||"a"!=a.charAt(3))b[3]=1;return b}function B(a,b,c){return Math.min(c,Math.max(b,a))}function C(a,b,c){0>c&&c++;1<c&&c--;return 1>6*c?a+6*(b-a)*c:
111>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function D(a){if(a in E)return E[a];var b,c=1,a=""+a;if("#"==a.charAt(0))b=a;else if(/^rgb/.test(a)){c=N(a);b="#";for(var g,e=0;3>e;e++)g=-1!=c[e].indexOf("%")?Math.floor(255*(parseFloat(c[e])/100)):+c[e],b+=s[B(g,0,255)];c=+c[3]}else if(/^hsl/.test(a)){e=c=N(a);b=parseFloat(e[0])/360%360;0>b&&b++;g=B(parseFloat(e[1])/100,0,1);e=B(parseFloat(e[2])/100,0,1);if(0==g)g=e=b=e;else{var f=0.5>e?e*(1+g):e+g-e*g,d=2*e-f;g=C(d,f,b+1/3);e=C(d,f,b);b=C(d,f,b-1/3)}b="#"+s[Math.floor(255*
12g)]+s[Math.floor(255*e)]+s[Math.floor(255*b)];c=c[3]}else b=W[a]||a;return E[a]={color:b,alpha:c}}function z(a){this.m_=A();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=1*n;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=a;var b="width:"+a.clientWidth+"px;height:"+a.clientHeight+"px;overflow:hidden;position:absolute",
13c=a.ownerDocument.createElement("div");c.style.cssText=b;a.appendChild(c);b=c.cloneNode(!1);b.style.backgroundColor="red";b.style.filter="alpha(opacity=0)";a.appendChild(b);this.element_=c;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function O(a,b,c,g){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:c.x,cp2y:c.y,x:g.x,y:g.y});a.currentX_=g.x;a.currentY_=g.y}function P(a,b){var c=D(a.strokeStyle),g=c.color,c=c.alpha*a.globalAlpha,e=a.lineScale_*a.lineWidth;1>e&&(c*=e);b.push("<g_vml_:stroke",
14' opacity="',c,'"',' joinstyle="',a.lineJoin,'"',' miterlimit="',a.miterLimit,'"',' endcap="',X[a.lineCap]||"square",'"',' weight="',e,'px"',' color="',g,'" />')}function Q(a,b,c,g){var e=a.fillStyle,f=a.arcScaleX_,d=a.arcScaleY_,h=g.x-c.x,l=g.y-c.y;if(e instanceof t){var i=0,j=g=0,r=0,k=1;if("gradient"==e.type_){var i=e.x1_/f,c=e.y1_/d,m=p(a,e.x0_/f,e.y0_/d),i=p(a,i,c),i=180*Math.atan2(i.x-m.x,i.y-m.y)/Math.PI;0>i&&(i+=360);1.0E-6>i&&(i=0)}else m=p(a,e.x0_,e.y0_),g=(m.x-c.x)/h,j=(m.y-c.y)/l,h/=f*
15n,l/=d*n,k=u.max(h,l),r=2*e.r0_/k,k=2*e.r1_/k-r;f=e.colors_;f.sort(function(a,b){return a.offset-b.offset});for(var d=f.length,m=f[0].color,c=f[d-1].color,h=f[0].alpha*a.globalAlpha,a=f[d-1].alph
15a*a.globalAlpha,l=[],o=0;o<d;o++){var q=f[o];l.push(q.offset*k+r+" "+q.color)}b.push('<g_vml_:fill type="',e.type_,'"',' method="none" focus="100%"',' color="',m,'"',' color2="',c,'"',' colors="',l.join(","),'"',' opacity="',a,'"',' g_o_:opacity2="',h,'"',' angle="',i,'"',' focusposition="',g,",",j,'" />')}else e instanceof
16F?h&&l&&b.push("<g_vml_:fill",' position="',-c.x/h*f*f,",",-c.y/l*d*d,'"',' type="tile"',' src="',e.src_,'" />'):(e=D(a.fillStyle),b.push('<g_vml_:fill color="',e.color,'" opacity="',e.alpha*a.globalAlpha,'" />'))}function p(a,b,c){a=a.m_;return{x:n*(b*a[0][0]+c*a[1][0]+a[2][0])-o,y:n*(b*a[0][1]+c*a[1][1]+a[2][1])-o}}function w(a,b,c){isFinite(b[0][0])&&isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1])&&(a.m_=b,c&&(a.lineScale_=Y(Z(b[0][0]*b[1][1]-b[0][1]*
17b[1][0]))))}function t(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function F(a,b){if(!a||1!=a.nodeType||"IMG"!=a.tagName)throw new x("TYPE_MISMATCH_ERR");if("complete"!=a.readyState)throw new x("INVALID_STATE_ERR");switch(b){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=b;break;default:throw new x("SYNTAX_ERR");}this.src_=a.src;this.width_=a.width;this.height_=a.height}
18function x(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var u=Math,h=u.round,G=u.sin,H=u.cos,Z=u.abs,Y=u.sqrt,n=10,o=n/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var J=Array.prototype.slice;L(document);var R={init:function(a){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",T(this.init_,this,a))},init_:function(a){for(var a=a.getElementsByTagName("canvas"),b=0;b<a.length;b++)this.initElement(a[b])},initElement:function(a){if(!a.getContext){a.getContext=
19S;L(a.ownerDocument);a.innerHTML="";a.attachEvent("onpropertychange",U);a.attachEvent("onresize",V);var b=a.attributes;b.width&&b.width.specified?a.style.width=b.width.nodeValue+"px":a.width=a.clientWidth;b.height&&b.height.specified?a.style.height=b.height.nodeValue+"px":a.height=a.clientHeight}return a}};R.init();for(var s=[],d=0;16>d;d++)for(var y=0;16>y;y++)s[16*d+y]=d.toString(16)+y.toString(16);var W={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",
20bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",
21darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",
22ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",
23mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",
24peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},
25E={},I={}
25,X={butt:"flat",round:"round"},d=z.prototype;d.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null);this.element_.innerHTML=""};d.beginPath=function(){this.currentPath_=[]};d.moveTo=function(a,b){var c=p(this,a,b);this.currentPath_.push({type:"moveTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.lineTo=function(a,b){var c=p(this,a,b);this.currentPath_.push({type:"lineTo",x:c.x,y:c.y});this.currentX_=c.x;this.currentY_=c.y};d.bezierCurveTo=
26function(a,b,c,g,e,f){e=p(this,e,f);a=p(this,a,b);c=p(this,c,g);O(this,a,c,e)};d.quadraticCurveTo=function(a,b,c,g){a=p(this,a,b);c=p(this,c,g);g={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};O(this,g,{x:g.x+(c.x-this.currentX_)/3,y:g.y+(c.y-this.currentY_)/3},c)};d.arc=function(a,b,c,g,e,f){var c=c*n,d=f?"at":"wa",h=a+H(g)*c-o,l=b+G(g)*c-o,g=a+H(e)*c-o,e=b+G(e)*c-o;h==g&&!f&&(h+=0.125);a=p(this,a,b);h=p(this,h,l);g=p(this,g,e);this.currentPath_.push({type:d,
27x:a.x,y:a.y,radius:c,xStart:h.x,yStart:h.y,xEnd:g.x,yEnd:g.y})};d.rect=function(a,b,c,g){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath()};d.strokeRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+g);this.lineTo(a,b+g);this.closePath();this.stroke();this.currentPath_=e};d.fillRect=function(a,b,c,g){var e=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+
28c,b+g);this.lineTo(a,b+g);this.closePath();this.fill();this.currentPath_=e};d.createLinearGradient=function(a,b,c,g){var e=new t("gradient");e.x0_=a;e.y0_=b;e.x1_=c;e.y1_=g;return e};d.createRadialGradient=function(a,b,c,g,e,f){var d=new t("gradientradial");d.x0_=a;d.y0_=b;d.r0_=c;d.x1_=g;d.y1_=e;d.r1_=f;return d};d.drawImage=function(a,b){var c,g,e,d,o,v,l,i;e=a.runtimeStyle.width;d=a.runtimeStyle.height;a.runtimeStyle.width="auto";a.runtimeStyle.height="auto";var j=a.width,r=a.height;a.runtimeStyle.width=
29e;a.runtimeStyle.height=d;if(3==arguments.length)c=arguments[1],g=arguments[2],o=v=0,l=e=j,i=d=r;else if(5==arguments.length)c=arguments[1],g=arguments[2],e=arguments[3],d=arguments[4],o=v=0,l=j,i=r;else if(9==arguments.length)o=arguments[1],v=arguments[2],l=arguments[3],i=arguments[4],c=arguments[5],g=arguments[6],e=arguments[7],d=arguments[8];else throw Error("Invalid number of arguments");var k=p(this,c,g),m=[];m.push(" <g_vml_:group",' coordsize="',10*n,",",10*n,'"',' coordorigin="0,0"',' style="width:',
3010,"px;height:",10,"px;position:absolute;");if(1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var q=[];q.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",h(k.x/n),",","Dy=",h(k.y/n),"");var s=p(this,c+e,g),t=p(this,c,g+d);c=p(this,c+e,g+d);k.x=u.max(k.x,s.x,t.x,c.x);k.y=u.max(k.y,s.y,t.y,c.y);m.push("padding:0 ",h(k.x/n),"px ",h(k.y/n),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",q.join(""),", sizingmethod='clip');")}else m.push("top:",
31h(k.y/n),"px;left:",h(k.x/n),"px;");m.push(' ">','<g_vml_:image src="',a.src,'"',' style="width:',n*e,"px;"," height:",n*d,'px"',' cropleft="',o/j,'"',' croptop="',v/r,'"',' cropright="',(j-o-l)/j,'"',' cropbottom="',(r-v-i)/r,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",m.join(""))};d.stroke=function(a){var b=[];b.push("<g_vml_:shape",' filled="',!!a,'"',' style="position:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0,0"',' coordsize="',10*n,",",10*n,'"',
32' stroked="',!a,'"',' path="');for(var c={x:null,y:null},d={x:null,y:null},e=0;e<this.currentPath_.length;e++){var f=this.currentPath_[e];switch(f.type){case "moveTo":b.push(" m ",h(f.x),",",h(f.y));break;case "lineTo":b.push(" l ",h(f.x),",",h(f.y));break;case "close":b.push(" x ");f=null;break;case "bezierCurveTo":b.push(" c ",h(f.cp1x),",",h(f.cp1y),",",h(f.cp2x),",",h(f.cp2y),",",h(f.x),",",h(f.y));break;case "at":case "wa":b.push(" ",f.type," ",h(f.x-this.arcScaleX_*f.radius),",",h(f.y-this.arcScaleY_*
33f.radius)," ",h(f.x+this.arcScaleX_*f.radius),",",h(f.y+this.arcScaleY_*f.radius)," ",h(f.xStart),",",h(f.yStart)," ",h(f.xEnd),",",h(f.yEnd))}if(f){if(null==c.x||f.x<c.x)c.x=f.x;
33if(null==d.x||f.x>d.x)d.x=f.x;if(null==c.y||f.y<c.y)c.y=f.y;if(null==d.y||f.y>d.y)d.y=f.y}}b.push(' ">');a?Q(this,b,c,d):P(this,b);b.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",b.join(""))};d.fill=function(){this.stroke(!0)};d.closePath=function(){this.currentPath_.push({type:"close"})};d.save=function(){var a=
34{};M(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=q(A(),this.m_)};d.restore=function(){this.aStack_.length&&(M(this.aStack_.pop(),this),this.m_=this.mStack_.pop())};d.translate=function(a,b){w(this,q([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};d.rotate=function(a){var b=H(a),a=G(a);w(this,q([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};d.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;w(this,q([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};d.transform=function(a,b,c,d,e,f){w(this,q([[a,
35b,0],[c,d,0],[e,f,1]],this.m_),!0)};d.setTransform=function(a,b,c,d,e,f){w(this,[[a,b,0],[c,d,0],[e,f,1]],!0)};d.drawText_=function(a,b,c,d,e){var f=this.m_,d=0,o=1E3,q=0,l=[],i;i=this.font;if(I[i])i=I[i];else{var j=document.createElement("div").style;try{j.font=i}catch(r){}i=I[i]={style:j.fontStyle||"normal",variant:j.fontVariant||"normal",weight:j.fontWeight||"normal",size:j.fontSize||10,family:j.fontFamily||"sans-serif"}}var j=i,k=this.element_;i={};for(var m in j)i[m]=j[m];m=parseFloat(k.currentStyle.fontSize);
36k=parseFloat(j.size);i.size="number"==typeof j.size?j.size:-1!=j.size.indexOf("px")?k:-1!=j.size.indexOf("em")?m*k:-1!=j.size.indexOf("%")?m/100*k:-1!=j.size.indexOf("pt")?k/0.75:m;i.size*=0.981;m=i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family;k=this.element_.currentStyle;j=this.textAlign.toLowerCase();switch(j){case "left":case "center":case "right":break;case "end":j="ltr"==k.direction?"right":"left";break;case "start":j="rtl"==k.direction?"right":"left";break;default:j="left"}switch(this.textBaseline){case "hanging":case "top":q=
37i.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":q=-i.size/2.25}switch(j){case "right":d=1E3;o=0.05;break;case "center":d=o=500}b=p(this,b+0,c+q);l.push('<g_vml_:line from="',-d,' 0" to="',o,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!e,'" stroked="',!!e,'" style="position:absolute;width:1px;height:1px;">');e?P(this,l):Q(this,l,{x:-d,y:0},{x:o,y:i.size});e=f[0][0].toFixed(3)+","+f[1][0].toFixed(3)+","+f[0][1].toFixed(3)+
38","+f[1][1].toFixed(3)+",0,0";b=h(b.x/n)+","+h(b.y/n);l.push('<g_vml_:skew on="t" matrix="',e,'" ',' offset="',b,'" origin="',d,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',K(a),'" style="v-text-align:',j,";font:",K(m),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",l.join(""))};d.fillText=function(a,b,c,d){this.drawText_(a,b,c,d,!1)};d.strokeText=function(a,b,c,d){this.drawText_(a,b,c,d,!0)};d.measureText=function(a){this.textMeasureEl_||(this.element_.insertAdjacentHTML("beforeEnd",
39'<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>'),this.textMeasureEl_=this.element_.lastChild);var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};d.clip=function(){};d.arcTo=function(){};d.createPattern=function(a,b){return new F(a,b)};t.prototype.addColorStop=function(a,b){b=D(b);this.colors_.push({offset:a,
40color:b.color,alpha:b.alpha})};d=x.prototype=Error();d.INDEX_SIZE_ERR=1;d.DOMSTRING_SIZE_ERR=2;d.HIERARCHY_REQUEST_ERR=3;d.WRONG_DOCUMENT_ERR=4;d.INVALID_CHARACTER_ERR=5;d.NO_DATA_ALLOWED_ERR=6;d.NO_MODIFICATION_ALLOWED_ERR=7;d.NOT_FOUND_ERR=8;d.NOT_SUPPORTED_ERR=9;d.INUSE_ATTRIBUTE_ERR=10;d.INVALID_STATE_ERR=11;d.SYNTAX_ERR=12;d.INVALID_MODIFICATION_ERR=13;d.NAMESPACE_ERR=14;d.INVALID_ACCESS_ERR=15;d.VALIDATION_ERR=16;d.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=R;CanvasRenderingContext2D=z;CanvasGradient=
41t;
41CanvasPattern=F;DOMException=x}();
42(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
43a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>";
44c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
45"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);
46if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);}
47
48//========benner切换函数========
49function bannerAnimate(o,index2,index2Class){
50	//o={list:,index:,interval:,duration:,eleClass:,indexClass:,prev:,next:,repeat:,ctrlAutoHide:,imgMonitor:,}
51	if(this===window){return new arguments.callee(o,index2,index2Class)}
52	this.ty=o.type==="top"?"Height":"Width";
53	this.dir=o.type==="top"?"top":"left";
54	this.ul=$(o.list);//----
55	this.li=this.ul.children(o.eleClass||"");
56	//根据type设置li的排列
57	if(o.type==="opacity"){
58		this.li.css({position:"absolute",left:0,top:0,opacity:0}).eq(0).css({opacity:1});
59	}else if(this.dir==="left"){
60		this.li.css({display:"inline",float:"left"})
61	}
62	if(!this.ul.length||!this.li.length){return}
63	this.indexUl=$(o.index)||null;
64	this.indexLis=$();
65	this.liSize=o.size||this.li["outer"+this.ty](true);
66	if(!this.liSize){alert("size")};
67	this.n=0;
68	this.continued=true;//自动切换,非用户参数,源码内部定义和使用。
69	this.times=o.interval||false;//----切换间隔,不传则表示不自动切换。
70	this.duration=o.duration||600;//----完成一次切换的持续时间(速度)
71	this.repeat=o.repeat||false;//----是否单个方向重复切换,适合于新闻标题的切换
72	this.ctrlAutoHide=o.ctrlAutoHide||false;//----左右切换控件是否自动隐藏
73	this.imgMonitor=o.imgMonitor||false;//----鼠标移到banner图上时是否暂停切换
74	this.len=this.li.length;
75	this.ul.css({position:"relative",top:0,left:0})[this.ty.toLowerCase()](this.liSize*this.len);
76	var that=this;
77	this.next=o.next&&$(o.next)||$();
78	this.prev=o.prev&&$(o.prev)||$();
79	this.ctrl=this.next.add(this.prev);
80	if(this.indexUl){
81		this.indexLis=this.indexUl.children(o.indexClass||"").eq(0).addClass("current").end();
82		//根据type的值给空间元素绑定相关的监听函数
83		if(o.type==="opacity"){
84			this.indexLis.click(function(e){e.preventDefault();that.changeOpacity(e,this);})
85			this.prev.click(function(e){e.preventDefault();that.action()})
86			this.next.click(function(e){e.preventDefault();that.action(true)})
87		}else {
88			this.indexLis.mouseover(function (e){that.theMouseover(e,this)}).mouseout(function (e){that.theMouseout(e,this)});
89			this.prev.click(function(e){that.theClick(e,false)})
90			this.next.click(function(e){that.theClick(e,true)})
91		}
92	}
93	if(this.times){
94		if(o.type==="opacity"){
95			that.timer=setTimeout(function(){that.action()},that.times)
96		}else{
97			this.timer=setTimeout(function(){that.timerF()},that.times)
98		}
99	}
100	//----扩展,第二个banner索引。banner可以指定两个索引,第一个是监听鼠标指针来控制banner切换,第二个是监听鼠标点击来控制banner切换。若只要索引监听点击行为,就只传第二个索引
101	if(index2){
102		this.indexLis2=$(index2).children(index2Class||null).eq(0).addClass("current").end()
103		.click(function (e){that.externalIndexClink(e,this)});
104	}
105	//扩展,左右切换控件显示与隐藏,鼠标在banner上时暂停切换
106	if(that.ctrlAutoHide){that.ctrl.stop().fadeTo(500,0);}
107	if(that.ctrlAutoHide||that.imgMonitor){
108		this.ul.mouseover(function(e){
109			var $t = $(e.target),$r = $(e.relatedTarget);
110			if($.contains(this,$r[0])||($r[0]==this&&$.contains(this,$t[0]))){return}
111			//鼠标移到左右切换控件时,不做任何操作。(这里是假设左右切换控件在banner图上)
112			if(that.next[0]&&that.next[0]&&($r[0]==that.next[0]||$r[0]==that.prev[0]||$.contains(that.prev[0],$t[0])||$.contains(that.next[0],$t[0]))){return}
113			//控制左右控件显示
114			if(that.ctrlAutoHide){that.ctrl.stop().fadeTo(500,1);}
115			//控制切换暂停
116			if(that.imgMonitor){
117				clearTimeout(that.timer)
118				that.continued=false;
119			}
120		}).mouseout(function(e){
121			var $t = $(e.target),$r = $(e.relatedTarget);
122			if($.contains(this,$r[0])||($r[0]==this&&$.contains(this,$t[0]))){return}
123			if(that.next[0]&&that.next[0]&&($r[0]==that.next[0]||$r[0]==that.prev[0]||$.contains(that.prev[0],$t[0])||$.contains(that.next[0],$t[0]))){return}
124			if(that.ctrlAutoHide){that.ctrl.stop().fadeTo(500,0);}
125			if(that.imgMonitor){
126				that.timer=setTimeout(function(){that.action()},that.times)
127				that.continued=true;
128			}
129		})
130	}
131}
132bannerAnimate.prototype={
133	timerF:function(){
134		var b=this.indexLis[0]?true:false;
135		if(this.timer){clearTimeout(this.timer)}
136		this.n=(!b?this.n:this.indexLis.index(this.indexLis.filter(".current")[0]))+1;
137		this.n=this.n>=this.li.length?0:this.n;
138		this.continued=true;
139		this.toggle();
140	},
141	toggle:function(){
142		var that=this,
143			sty={},
144			b=this.indexLis[0]?true:false,
145			f=function(){if(that.continued&&that.times){that.timer=setTimeout(function(){that.timerF()},that.times);}};
146		sty[this.dir]=-this.liSize*(that.repeat?1:this.n);
147		if(b){
148			this.indexLis.removeClass("current");
149			this.indexLis.eq(this.n).addClass("current");
150			if(this.indexLis2){
151				this.indexLis2.removeClass("current");
152				this.indexLis2.eq(this.n).addClass("current");
153			}
154		}
155		this.ul.stop().animate(sty,this.duration,that.repeat?function(){
156			that.ul.append(that.ul.children(that.eleClass).first().remove())[0].style[that.dir]="0px";//add code 
157			if(that.continued&&that.times){that.timer=setTimeout(function(){that.timerF()},that.times)}
158		}:f);
159	},
160	theMouseover:function (e,ele){
161		var $t = $(e.target),
162			$r = $(e.relatedTarget);
163		if($.contains(ele,$r[0])||($r[0]==ele&&$.contains(ele,$t[0]))){return}
164		if(this.timer){clearTimeout(this.timer)}
165		this.continued=false;
166		if(this.n===this.indexLis.index(ele)){return}
167		this.n=this.indexLis.index(ele);
168		this.toggle();
169	},
170	theMouseout:function (e,ele){
171		var $t = $(e.target),
172			$r = $(e.relatedTarget),
173			that=this;
174		if($.contains(ele,$r[0])||($r[0]==ele&&$.contains(ele,$t[0]))){return}
175		if(that.times){that.timer=setTimeout(function(){that.timerF()},that.times)}
176	},
177	theClick:function(e,b){
178		e.preventDefault();
179		if(parseInt(this.ul.css(this.dir))%this.liSize==0){
180			this.ul.stop();
181			if(this.timer){clearTimeout(this.timer)}
182			var that=this,sty={};
183			this.n=b?this.n+1:this.n-1;
184			this.n=this.n>=this.li.length?0:this.n;
185			this.n=this.n<0?this.li.length-1:this.n;
186			sty[this.dir]=-this.liSize*this.n;
187			this.ul.animate(sty,this.duration);
188			this.indexLis.removeClass("current").eq(this.n).addClass("current");
189			if(this.times){this.timer=setTimeout(function(){that.timerF()},that.times)}
190		}
191	},
192	externalIndexClink:function(e,ele){
193		e.preventDefault();
194		if(this.timer){clearTimeout(this.timer)}
195		var that=this,sty={};
196		this.n=this.indexLis2.index(ele);
197		sty[this.dir]=-this.liSize*this.n;
198		this.ul.stop().animate(sty,this.duration,function(){
199			if(that.times){that.timer=setTimeout(function(){that.timerF()},that.times)}
200		});
201		this.indexLis.add(this.indexLis2).removeClass("current");
202		this.indexLis.eq(this.n).add(this.indexLis2.eq(this.n)).addClass("current");
203	},
204	action:function (e){
205		var that=this,
206			//当e存在或不是事件对象的时候向右切换
207			n=e===true?that.n-1:that.n+1;
208		that.n=n<that.li.length?(n<0?that.len-1:n):0;
209		that.show(function(){if(that.continued){that.timer=setTimeout(function(){that.action()},that.times);}});
210	},
211	//显示序号为n的那一项,其他隐藏。如果有函数h,则在n显示后执行
212	show:function(f){
213		clearTimeout(this.timer);
214		this.li.each(function(){$(this).stop().animate({opacity:0},1200)}).eq(this.n).stop().animate({opacity:1},1200,f);
215		this.indexLis.removeClass("current").eq(this.n).addClass("current");
216	},
217	changeOpacity:function(e,ele){
218		var $t = $(e.target),
219			$r = $(e.relatedTarget),
220			that=this;
221		if($.contains(ele,$r[0])||($r[0]==ele&&$.contains(ele,$t[0]))){return}
222		if(this.timer){clearTimeout(this.timer)}
223		if(this.n===this.indexLis.index(ele)){return}
224		this.n=this.indexLis.index(ele);
225		this.show(function(){if(that.continued)that.timer=setTimeout(function(){that.action()},that.times)});
226	}
227};
228//========tab切换函数========
229function tabChange(nav,box,fn,type){
230	nav=$(nav),box=$(box);
231	if(!nav[0]||!box[0]){return}
232	var li=nav.children().eq(0).addClass("current").end(),
233		i_box=box.children().eq(0).addClass("current").end(),
234		isFn=fn&&typeof fn==="function";
235	nav[type||(fn&&fn==="click"&&fn)||"mouseover"](function(e){
236		var $t=$(e.target);
237		while(!$t.hasClass("i-item")){$t=$t.parent();if(!$.contains(nav[0],$t[0]))return}
238		var q=li.index($t[0]);
239		li.removeClass("current").eq(q).addClass("current");
240		i_box.removeClass("current").eq(q).addClass("current");
241		if(isFn){fn(li.eq(q)[0],i_box.eq(q)[0])}
242	}).click(function(e){e.preventDefault()});
243	//if(isFn){fn(null,box)}
244}
245//========box切换函数========
246function slideSwitch(o){
247	if(this===window){return new arguments.callee(o)}
248	var list2,listSize;
249	this.list=$(o.list);//--------
250	if(!this.list.length){return}
251	this.li=this.list.children();
252	this.len=this.li.length;
253	this.p=this.list.parent().width(9999);
254	listSize=this.list.outerWidth(true);
255	this.p[0].style.width="";
256	this.prev=$(o.prev||"");//---------
257	this.next=$(o.next||"");//---------
258	//如果列表的宽度小于父元素宽度则不执行后面的代码
259	if(listSize<=this.p.width()){this.prev.add(this.next).click(function(e){e.preventDefault();});return}
260	this.p.width(9999).css({position:"relative",left:0});
261	//记录当前li的序号
262	this.n=0;
263	//复制一条列表
264	var list2=document.createElement(this.list[0].nodeName.toLowerCase());
265	list2.innerHTML=this.list[0].innerHTML;
266	list2.style.cssText=this.list[0].style.cssText+o.style||"";
267	list2.className=this.list[0].className;
268	list2.id=this.list[0].id?this.list[0].id+"2":"";
269	this.list2=$(list2).insertAfter(this.list);
270	//配置左右切换
271	var that=this;
272	if(this.prev.length){this.prev.click(function(e){that.slide(e,false,o.speed||600)})}
273	if(this.next.length){this.next.click(function(e){that.slide(e,true,o.speed||600)})}
274}
275slideSwitch.prototype={
276	init:function(){
277
278	},
279	slide:function(e,b,spe){
280		//b的含义。true向前(next),false向后(prev)
281		e.preventDefault()
282		//this.sign为true时,表示切换动画正在执行。(过滤鼠标连击)
283		if(this.sign){return}
284		this.sign=true;
285		var that=this,sty={};
286		this.n=b?this.n+1:--this.n;
287		if(this.n>=this.len){this.n=this.n-this.len;var f=function(){that.p.css({left:0})}}
288		if(this.n<0){this.n=this.len-1;this.p.css({left:-this.list.outerWidth(true)})}
289		sty.left=this.li.eq(this.n).outerWidth(true);
290		sty.left=parseInt(this.p.css("left"))+(b?-sty.left:sty.left);
291		this.p.animate(sty,spe,function(){that.sign=false;f&&f()});
292	}
293};
294//========box切换函数2========
295//通过不断更改排序实现无限重复
296function slideSwitchSort(o){
297	var that=this;
298	if(this===window){return new arguments.callee(o)}
299	this.ul=$(o.list).css({position:"relative",top:0,left:0});
300	this.li=this.ul.children(this.className).css({display:"inline",float:"left"});
301	this.p=this.ul.parent().width(9999);
302	if(!this.ul[0]||this.ul.outerWidth()<=this.p.parent().width()){$(o.prev).add(o.next).css({opacity:0.5});return}
303	this.className=o.className;
304	this.img=this.li.eq(0).children();
305	this.size=this.li.outerWidth()||o.size;
306	this.prev=$(o.prev).click(function(e){e.preventDefault();that.slide(true)});
307	this.next=$(o.next).click(function(e){e.preventDefault();that.slide()});
308}
309//========box切换函数========
310/*
311<ul>
312	<li>
313		<a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a><a href=""></a>
314	</li>
315</ul>
316*/
317function slideBox2(o){
318	var that=this;
319	if(this===window){return new arguments.callee(o)}
320	this.ul=$(o.ul);
321	this.className=o.className;
322	this.li=this.ul.children(this.className);//后面将会改变这个值
323	this.img=this.li.eq(0).children();
324	var i=Math.floor(this.img.length/o.visual);//li复制的次数
325	if(!this.ul[0]||i==0){$(o.prev).add(o.next).css({opacity:0.5});return}
326	var tempLi=this.li.eq(0);
327	for (var j=0;j<i;j++){
328		var tempLi=tempLi.clone().appendTo(this.ul),
329			tempImg=tempLi.children().slice(0,o.visual),
330			tempPar=tempImg[0].parentNode;
331		for (var ii=tempImg.length-1;ii>=0;ii--){
332			tempPar.removeChild(tempImg[ii]);
333		};
334	};
335	this.size=this.li.outerWidth()||o.size;
336	this.li=this.ul.children(this.className).css({display:"inline",float:"left"});//改变this.li的值,并配置样式
337	this.ul.css({position:"relative",top:0,left:0})["width"](this.size*this.li.length);
338	this.prev=$(o.prev).click(function(e){e.preventDefault();that.slide(true)});
339	this.next=$(o.next).click(function(e){e.preventDefault();that.slide()});
340}
341slideSwitchSort.prototype=slideBox2.prototype={
342	slide:function(dir){
343		var sty={},that=this,n=-1,temp$;
344		if(dir){
345			n=0;
346			temp$=that.ul.children(that.eleClass);
347			temp$.first().before(temp$.last().remove());
348			that.ul[0].style["left"]=-this.size+"px";
349		}
350		sty["left"]=n*this.size;
351		this.ul.stop().animate(sty,dir?null:function(){
352			that.ul.append(that.ul.children(that.eleClass).first().remove())[0].style["left"]="0px";
353		});
354	}
355};
356//========图片等比例缩放========
357//注意,本段需要用到函数css
358function cyc_imgSideAuto(e,w,h,enlarge,x,y){
359	//----e是图片、图片集合、包含图片的元素(如div)或包含图片的元素的集合,还可以是id值;w是数字,表示规定的最大宽度;h是数字,表示规定的最大高度
360	if(!e||!w){return}
361	if(typeof e == "string"){
362		e=document.getElementById(e);
363		if(e&&e.nodeName.toLowerCase()!=="img"){
364			e=e.getElementsByTagName("img");
365			if(!e[0]){return}
366		}
367	}
368	if(!e[0]){e=[e];}
369	//----enlarge表示是否到铺满指定尺寸(不会扩大图片),x表示向左偏移的百分比,y表示向右偏移的百分比
370	var img,imgs,enlarge=!!enlarge,x=x&&Number(x.match(/\d*(?=%)/))/100||0.5,y=y&&Number(y.match(/\d*(?=%)/))/100||0.5;
371	function q(){
372		var s;
373		this.removeAttribute('height');
374		this.removeAttribute('width');
375		if(this.clientWidth>w){
376			s=1;
377			this.style.height='auto';
378			this.style.width=w+'px';
379		}
380		if(enlarge){
381			if(s&&this.clientHeight<h){
382				this.style.width='auto';
383				this.style.height=h+'px';
384			}
385			this.style.left=(w-this.clientWidth)*x+"px";
386			this.style.top=(h-this.clientHeight)*y+"px";
387		}
388		else{	
389			if(this.clientHeight>h){
390				this.style.width='auto';
391				this.style.height=h+'px';
392			}
393		}	
394	}
395	for (var j=e.length,i=0;i<j;i++){
396		img=e[i];
397		//如果当前遍历到元素不是img(如div),则取其里面所有img,并追加到集合里(e)参与遍历
398		if(!img.nodeName){continue}
399		if(img.nodeName.toLowerCase()!=="img"){
400			imgs=img.getElementsByTagName("img");
401			for (var ii=imgs.length-1;ii>=0;ii--){
402				e[j]=imgs[ii];
403				j++;
404			}		
405			continue;
406		}
407		if(enlarge){
408			if(css.call(img.parentNode,"position")==="static"){img.parentNode.style.position="relative"}
409			img.style.position="relative";
410		}
411		img.onload=q;q.call(img);
412	}
413}
414//========屏幕侧边浮动函数========
415jQuery.fn.modalWin=function (o){
416	var that=this,o=o||{},dir,pos,sty,timer;
417	dir=o.type||"left";
418	spa=parseInt(o.spacing)||0;
419	pos=parseInt(o.position)||0;
420	spe=o.speed||500;
421	sty={position:"absolute",top:pos,zIndex:10000};
422	sty[dir]=spa;
423	this.css(sty).appendTo($(document.body));
424	$(window).scroll(function(){adjust()}).load(function(){adjust()});
425	function adjust(){
426		if(timer){clearTimeout(timer);}
427		var top=$(document).scrollTop()+pos;
428		if($(document.body).height()<that.height()+top){top=$(document.body).height()-that.height()}
429		timer=setTimeout(function(){that.stop().animate({top:top},spe)},400);
430	}
431}
432//========navigator函数========
433//.the-box最好预先设置为display:none;
434//cycNav03(ul,"top"||"bottom"||"left"||"right",4,{lag:,speed:,response:})
435//----dir为下拉显示的位置,er_val为位置微调值,setting包含各种与交互有关的参数。
436function cycNav03(ul,dir,er_val,setting){
437	var that=this;
438	if(this===window){return new arguments.callee(ul,dir,er_val,setting)}
439
440	var $nav=this.nav=$(ul);
441	$nav.find("li").each(function(){
442		var $li=$(this),
443			$first_box=$li.find("ul").eq(0),
444			boxH=$first_box.height();
445		if($first_box[0]){
446			$li.mouseover(function(e){that.handler(e,$li,$first_box,boxH)}).mouseout(function(e){that.handler(e,$li,$first_box)})
447		}
448	})
449
450	this.setSize();
451	this.setPos();
452
453	$nav.find("ul").css({opacity:0,height:0});
454}
455cycNav03.prototype={
456	speed:400,
457	lag:300,
458	handler:function (e,$ele,$box,h){
459		var t=getHoverTarget($ele[0],e),s,l;
460		if(t){
461			clearTimeout($ele[0].timer);
462			s=this.speed,l=this.lag;
463			if(e.type=="mouseover"){
464				$ele[0].timer=setTimeout(function(){
465					$box.stop().show().animate({opacity:1,height:h},s);
466					$ele.addClass("current");
467				},l)
468			}else {
469				$ele[0].timer=setTimeout(function(){
470					$box.stop().animate({opacity:0,height:0},s,function(){
471						this.style.display="none";
472					});
473					setTimeout(function(){$ele.removeClass("current");},s/2)
474				},l)
475			}
476		}
477	},
478	setSize:function(){
479		this.nav.find("ul").each(function(){
480			var $t=$(this),w=$t.width(),parentW=$t.parent().outerWidth();
481			$t.width(w>parentW?w:parentW);
482		})
483	},
484	setPos:function(){
485
486	}
487};
488//========宽高度平衡========
489//setMaximum(元素集合,"width"||"height")
490function setMaximum(arr,s){
491	var num=[],z=0,m=0,s=s||"width",cs="client"+s.slice(0,1).toUpperCase()+s.slice(1);
492	for (var j=0,len=arr.length;j<len;j++){
493		arr[j].style.zoom=1;
494		z=arr[j][cs]
495		m=z>m?z:m;
496	}
497	if(len<2){z=0;return m||0;}
498	m=m+"px";
499	for(j=0;j<len;j++){arr[j].style[s]=m;}
500	return arr;
501}
502//========元素自动固定定位========
503//如果发现google内核下,感应距离有问题,请在图片加载完成调用(谷歌内核下一般是js执行了,图片才加载完成,这个影响宽高度的判断)
504//位置不对的话请检查是不是margin重合问题?
505//----y:滚动到离浏览器上边框多长距离开始跟随;b:滚动到元素底部离页面底部多长距离后不跟随。
506jQuery.fn.autoFix=function(y,b){
507	if(!this.length||!window.XMLHttpRequest){return}
508	var that=this,
509		$bd=$(document.body),
510		dHtml=document.documentElement,
511		y=y||0,
512		b=b||0,
513		sign=0,//标识滚动条所处区域,让window的scroll监听函数避免重复给元素赋值(位置信息),但也因此不怎么适合动态加载数据的网页。
514		sign2=false,
515		docx=this.offset().left,
516		docy=this.offset().top-y,
517		mTop=parseInt(this.css("marginTop")),
518		pLeft=parseInt(this.css("left"))||0,
519		outerh=this.outerHeight(),
520		//$surrenal=$(document.createElement("div")).height(this.outerHeight(true)).width(this.outerWidth(true)).hide().insertAfter(this),
521		$surrenal=$(document.createElement("div")).height(this.height()).width(this.width()).hide().insertAfter(this),
522		ofsTop=that.offset().top,
523		top=ofsTop-that.offsetParent().offset().top,
524		coun_fixed_val=outerh+b+ofsTop-top,
525		x=this.offset().left-$(window).scrollLeft();
526	$surrenal[0].className=this[0].className;
527	this.width(this.width());
528
529	$(window).scroll(function(){
530		var $this=$(this),
531			pageH=$bd.height(),
532			pageT=$(this).scrollTop();	
533		if(pageH-(outerh+pageT)<b){//判断是否到达底部界线
534			if(pageH-ofsTop-b>outerh){sign2=false;}
535			if(sign===3||sign2/*||b==0*/){return}
536			if($this.scrollTop()<=docy){sign2=true;return}//(到达或超过底部界线且)未越过顶部界线
537			//if(pageH-ofsTop-b<=outerh){sign2=true;return}//顶部界线跟底部界线之间的距离(元素可活动的区域)是否大于元素高度
538			else{sign=3;}//console.log("已到底部限制距离,不再跟随")
539			$surrenal[0].style.display="";
540			that.css({position:"absolute"}).css({top:pageH-coun_fixed_val});
541			var left=that[0].offsetParent&&that[0].offsetParent!==document.body?pLeft:$surrenal.offset().left-$(window).scrollLeft();
542			that[0].style.left=left+"px";
543		}
544		else if($this.scrollTop()>docy){//判断是否超过顶部界线
545			if(sign===1){return}
546			else{sign=1;}//console.log("跟随")
547			$surrenal[0].style.display="";
548			$surrenal[0].style.visibility="hidden";
549			$surrenal[0].style.zIndex="-1";
550			that.css({position:"fixed"}).css({top:y,left:that.offset().left-$this.scrollLeft(),marginTop:0});
551		}else{
552			if(sign===0){return}
553			else{sign=0;}//console.log("未到顶部规定距离,不跟随")
554			//that.css({position:"static"})
555			that.css({position:"",top:"",left:"",marginTop:mTop})
556			$surrenal[0].style.display="none";
557		}
558	}).resize(function(){
559		var pos_type=that[0].style.position;
560		if(pos_type==="fixed"){that[0].style.left=$surrenal.offset().left-$(this).scrollLeft()+"px";}
561		if(pos_type==="absolute"){
562			var left=that[0].offsetParent&&that[0].offsetParent!==document.body?pLeft:$surrenal.offset().left-$(window).scrollLeft();
563			that[0].style.left=left+"px";
564		}
565	});
566}
567//========模拟滚动条========
568//事件设置
569EventUnit={
570	newIE:document.addEventListener?true:false,
571	addHandler:function(ele,type,handler){
572		var that=this;
573		handlerC=function(e){var e=e||window.event;that.handler.call(ele,e,handler)}
574		if(type==="DOMMouseScroll"){
575			type=this.newIE?"DOMMouseScroll":"onmousewheel";
576			if(this.newIE){ele.addEventListener("mousewheel",handlerC,false)}
577		}
578		else{type=this.newIE?type:("on"+type)}
579		ele[this.newIE?"addEventListener":"attachEvent"](type,handlerC,this.newIE?false:undefined);
580	},
581	handler:function(e,f){
582		
583		eventUnit={
584			type:e.type,
585			target:e.target||e.srcElement,
586			relatedTarget:e.relatedTarget||e.toElement||e.fromElement||null,
587			preventDefault:function(){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}},
588			wheelDelta:e.wheelDelta||e.detail*-40,
589			pageY:e.pageYOffset||e.pageY||(e.clientY+document.documentElement.scrollTop),
590			pageX:e.pageXOffset||e.pageX||(e.clientX+document.documentElement.scrollLeft),
591			oriEvent:e
592		};
593		f.call(this,eventUnit)
594	}
595};
596function getOffsetPos(ele){
597	var pos={left:0,top:0},doc=ele;
598	while(doc){
599		pos.left+=doc.offsetLeft;
600		pos.top+=doc.offsetTop;
601		doc=doc.offsetParent;
602	}
603	return pos
604}
605function getPosition(ele){
606	var bd=document.body,p=ele==bd?bd:ele.offsetParent;
607	while(p&&p!==bd&&this.cssFun.call(p,"position")==="static"){
608		p=p.offsetParent;
609	};
610	return this.offPar=p;
611}
612function css(name){
613	if(!this||this.style===null){return}
614	var sty,val,name=name.replace(/-[a-z]/g,function(x){return x.slice(1).toUpperCase()}),b=document.body/*,name=name=="opacity"?name:name;*/
615	if(name=="float"){name=document.defaultView?"cssFloat":"styleFloat";}
616	if(document.defaultView){sty=document.defaultView.getComputedStyle(this, null);}
617	val=this.style[name]||((this.currentStyle&&this.currentStyle[name])||sty[name]);
618	return val.search(/pt/g)!=-1?Math.round(parseInt(val)*4/3)+"px":val
619}
620function srcollBar(o){
621	//srcollBar({wrap:dom元素,height:200,scrLumpClass:"",scrBarClass:"",barSize:10,step:50,})
622	var that=this;
623	if(this===window){return new arguments.callee(o)}
624	if(!o.wrap){return}
625	this.ele=o.wrap;//=======
626	this.step=o.step||50;//=======
627	var tSty=this.ele.style;
628	this.cssFun=css;
629	this.border_top=parseInt(this.cssFun.call(this.ele,"borderTopWidth"))||0;
630	this.border_btm=parseInt(this.cssFun.call(this.ele,"borderBottomWidth"))||0;
631	this.padding_btm=parseInt(this.cssFun.call(this.ele,"padding-bottom"))||0;
632	this.padding_top=parseInt(this.cssFun.call(this.ele,"padding-top"))||0;
633	tSty.zoom="1";
634	this.eleHeight=o.height||this.ele.clientHeight;//========
635	//tSty.height=this.eleHeight-this.padding_top-this.padding_btm+"px";
636	this.init(true);//true表示轻度更新
637	//内容里的图片每加载完都更新一次参数
638	var imgs=this.ele.getElementsByTagName("img");
639	function imgLoadInit(){that.init()}
640	for (var i=imgs.length-1;i>=0;i--){EventUnit.addHandler(imgs[i],"load",imgLoadInit)}
641	tSty.overflow="hidden";
642	if(this.cssFun.call(this.ele,"position")=="static"){tSty.position="relative"};
643	//设置鼠标滚轮事件
644	EventUnit.addHandler(that.ele,"DOMMouseScroll",function(e){that.scrollView(e,this)})
645	//创建滚动条和滚动块,配置好样式
646	this.offPar=this.getOffsetParent(this.ele);
647	this.scrLump=document.createElement("div");
648	this.scrBar=document.createElement("div");
649	this.scrLump.appendChild(this.scrBar);
650	this.scrLump.className=o.scrLumpClass||"";
651	this.scrBar.className=o.scrBarClass||"";
652	var scrLumpSty=this.scrLump.style,scrBarSty=this.scrBar.style;
653	scrLumpSty.cssText="position:absolute;background:#bbb;visibility:hidden;";
654	this.scrLumpHeight=this.eleHeight-(parseInt(this.cssFun.call(this.scrLump,"borderTopWidth"))+parseInt(this.cssFun.call(this.scrLump,"borderBottomWidth")));
655	scrLumpSty.height=this.scrLumpHeight+"px";
656	scrBarSty.cssText="position:absolute;
656left:0;top:0;background:#333;";
657	this.ele.parentNode.appendChild(this.scrLump);
658	scrBarSty.width=scrLumpSty.width=(parseInt(o.barSize)||this.scrLump.clientWidth)+"px";
659	this.getScrBarHeight();
660	this.referLeft=this.ele.offsetWidth-this.scrLump.offsetWidth;
661	//控制滚动条隐藏与显示
662	if(window.$){
663		//$(this.ele).mouseover(function(e){that.toggleScrBar(e,this)}).mouseout(function(e){that.toggleScrBar(e,this)});
664		//this.$scrLump=$(this.scrLump).css({opacity:0});
665	}
666	//窗口大小改变时调整滚动条位置
667	EventUnit.addHandler(window,"resize",function(){that.init()})
668	EventUnit.addHandler(window,"load",function(){that.init()})
669	this.orient();
670	//拖曳功能
671	this.scrBar.style.cursor="s-resize";//-------
672	this._offsParTop=getOffsetPos(this.scrBar.offsetParent).top;
673	this.scrBar.onmousedown=function(e){
674		var e = e || window.event;
675		that.init();
676		that._no_off = true;
677		that._cutValY = (/*e.pageYOffset||*/e.pageY||(e.clientY+document.documentElement.scrollTop))-getOffsetPos(this).top;
678		that.scrBar.style.position="absolute";
679		EventUnit.addHandler(document,"mousemove",function(e){that._moving(e)});
680		EventUnit.addHandler(document,"mouseup",function(e){that._stop(e)})
681		this.setCapture && this.setCapture();		
682		return false
683	};
684	scrLumpSty.visibility="";
685	return this
686}
687srcollBar.prototype={
688	init:function(b){
689		this.offPar=this.getOffsetParent(this.ele);
690		this.eleHeight=this.ele.clientHeight;
691		//this.ele.style.height=this.eleHeight-this.padding_top-this.padding_btm+"px";
692		this.ratio=(this.scrLumpHeight-this.scrBarHeight)/(this.ele.scrollHeight-this.ele.clientHeight);
693		this.limit_bottom=this.scrLumpHeight-this.scrBarHeight;
694		if(!b){//接下来是深度更新
695			this.scrLumpHeight=this.eleHeight-(parseInt(this.cssFun.call(this.scrLump,"borderTopWidth"))+parseInt(this.cssFun.call(this.scrLump,"borderBottomWidth")));
696			this.scrLump.style.height=this.scrLumpHeight+"px";
697			this.orient()
698			this.getScrBarHeight();
699			this.setScrBarPos(this.ele.scrollTop);
700		}
701	},
702	//滚轮函数,设置滚动块位置与容器滚动到的位置
703	scrollView:function(e,ele){
704		this.init();
705		var scrTop=ele.scrollTop;
706		ele.scrollTop=(e.wheelDelta>0?-50:50)+scrTop;
707		this.setScrBarPos();
708		if(ele.scrollTop!==scrTop){e.preventDefault();}
709	},
710	//调整滚动条的位置
711	orient:function(){
712		var eleOffParPos=getOffsetPos(this.offPar),
713			elePos=getOffsetPos(this.ele)
714			lumpLeft=elePos.left-eleOffParPos.left,
715			lumpTop=elePos.top-eleOffParPos.top;
716		this.scrLump.style.top=lumpTop+this.border_top+"px";
717		this.scrLump.style.left=lumpLeft+this.referLeft+"px";
718	},
719	//设置滚动块位置
720	setScrBarPos:function(val){
721		//每次都重新计算是为了避免过多的取整带来误差
722		var barTop=(this.scrLumpHeight-this.scrBarHeight)/(this.ele.scrollHeight-this.ele.clientHeight)*this.ele.scrollTop;
723		this.scrBar.style.top=barTop+"px";
724	},
725	//获得OffsetParent
726	getOffsetParent:function(ele){
727		var bd=document.body,p=ele==bd?bd:ele.offsetParent;
728		while(p&&p!==bd&&this.cssFun.call(p,"position")==="static"){
729			p=p.offsetParent;
730		};
731		return p;
732	},
733	//设置或更正滚动块高度,如初始化时要设置,容器内容改变时需要更正
734	getScrBarHeight:function(){
735		var h=parseInt(this.scrLumpHeight/this.ele.scrollHeight*this.ele.clientHeight);
736		this.scrBar.style.height=(this.scrBarHeight=(h<20?20:h))+"px";
737	},
738	toggleScrBar:function(e,ele){
739		var that=this,$ele=$(ele),t=e.target,r=e.relatedTarget;
740		if($.contains(ele,r)||(r==ele&&$.contains(ele,t))){return}
741		if(e.type=="mouseout"&&(r===this.$scrLump[0]||$.contains(this.$scrLump[0],r))){return}
742		this.$scrLump.stop().animate({opacity:e.type=="mouseover"?1:0})
743	},
744	//拖曳相关
745	_moving:function(e){
746		if(!this._no_off){return}
747		var Tval=e.pageY-this._offsParTop-this._cutValY;
748		if(Tval>this.limit_bottom){Tval=this.limit_bottom}//-----
749		else if(Tval<0){Tval=0}//--------------
750		this.scrBar.style.top=Tval+"px";
751		this.ele.scrollTop=Tval/this.ratio;//---------
752		//return false;	
753	},
754	_stop:function(e){
755		this._no_off=false;
756		this.scrBar.releaseCapture && this.scrBar.releaseCapture();
757	}
758};
759//===========文本框默认提示(占位符)==============
760//iptPlace.call(input,"请输入关键字",{left:,top:,className:,style:""})
761//----left和top是偏移值,className将作为文字class的值,style将补充到文字的style属性。
762function iptPlace(txt,sty){
763	var doc=document,
764		sty=txt&&typeof txt==="object"&&txt||sty||{},
765		that=this,
766		styText=sty.style||"";
767	if(this===window){return}
768	styText.replace(/;?\s*?$/,";");
769	var holder=doc.createElement("div");
770	if(css.call(this.parentNode,"position")==="static"){this.parentNode.style.position="relative";}
771	holder.appendChild(doc.createTextNode(txt&&typeof txt==="string"&&txt||"请输入关键字"));
772	holder.style.cssText="position:absolute;z-index:10;color:#aaa;cursor:text;line-height:"+this.parentNode.offsetHeight+"px;"+styText;
773	holder.style.top=(sty.top&&parseInt(sty.top)||0)+"px";
774	holder.style.left=(sty.left&&parseInt(sty.left)||0)+"px";
775	holder.className=sty.className||"";
776	function hide(){
777		holder.style.display="none";
778		that.focus();
779	}
780	function show(){
781		if(!that.value){holder.style.display="block";}
782	}
783	EventUnit.addHandler(holder,"click",hide);
784	EventUnit.addHandler(this,"focus",hide);
785	EventUnit.addHandler(this,"blur",show);
786	this.parentNode.appendChild(holder);
787}
788//=================
789function insertAfter(newNode,target){
790	var temp=target.nextSibling;
791	while(temp&&temp.nodeType!=1&&target.nextSibling){temp=temp.nextSibling}
792	if(temp){
793		target.parentNode.insertBefore(newNode,temp);
794	}else {
795		target.parentNode.appendChild(newNode);
796	}
797}
798function insideSlide(o,p){
799	if(!o){return}
800	var tab=o,
801		tab2=document.createElement(tab.nodeName.toLowerCase()),
802		dom_parent=tab.parentNode,
803		dom_wrap=p||dom_parent;
804	tab2.innerHTML=tab.innerHTML;//注意ie9-的部分元素innerHTML为只读,比如table
805	tab2.className=tab.className;
806	tab2.cssText=tab.cssText;
807	tab2.id=tab.id;
808	insertAfter(tab2,tab);
809	tab.style.zoom="1";
810	dom_parent.style.width="9999px";
811	function f(){
812		if(dom_wrap.scrollLeft>=tab.offsetWidth){
813			dom_wrap.scrollLeft-=tab.offsetWidth;
814		}else{
815			dom_wrap.scrollLeft++;
816		}
817		timer=setTimeout(arguments.callee,30)
818	}
819	var timer=setTimeout(f,30);
820	dom_parent.onmouseover=function(){clearTimeout(timer);};
821	dom_parent.onmouseout=function(){timer=setTimeout(f,30);};
822}
823
824//============瀑布流=============
825/*
826.flow-init {position:absolute;float:none;display:block;
827	-webkit-transition: top 1s ease, left 1s ease;
828	-moz-transition: top 1s ease, left 1s ease;
829	-o-transition: top 1s ease, left 1s ease;
830	-ms-transition: top 1s ease, left 1s ease;
831}
832*/
833function water(o){
834	if(this==window){return new arguments.callee(o)}
835	var _this=this;
836	this.container=$(o.container);//----容器
837	this.eleClass=o.className||"";//瀑布流的各个流元素的class
838	//this.containerW=o.width||this.container.width()||1002;//容器宽度
839	this.colNum=o.colNum||4;//允许的列数
840	//this.colWidth=o.colWidth||this.container.children().width();//流元素的宽度
841	this.colOuterW=o.colOuterW||this.container.children().outerWidth();
842	this.colY=o.spaceY||0;//流元素的垂直间隔
843	this.colX=o.spaceX||0;//流元素的水平间隔
844	this.init();
845	return this
846}
847water.prototype={
848	//初始化或更新
849	init:function(o){//更新的时候需要传参数o。
850		var _this=this,i=0,$newEle,hasHeightArr;
851		if(o){
852			if(o.colNum){
853				this.colNum=o.colNum;
854			}
855			if(o.ele){
856				$newEle=$(o.ele).appendTo(this.container);
857				this.imgSideAuto($newEle.find("img"),200)
858				hasHeightArr=1;
859			}
860		}
861		if(!hasHeightArr){
862			this.heightArr=[];//列高数据的数组
863			while(i++<this.colNum){this.heightArr.push(0)}//因为还没排位,把数据初始化为0
864		}
865		($newEle||this.container.children(this.eleClass)).each(function(i,ele){
866			_this.updataPos(i,ele);
867		});
868		this.container.height(this.getMaxHeight());
869	},
870	getMaxHeight:function(){
871		return Math.max.apply(Math,this.heightArr);
872	},
873	getMinHeight:function(){
874		return Math.min.apply(Math,this.heightArr);
875	},
876	getIndex:function(val){
877		for (var i=0,len=this.heightArr.length; i<len; i++){
878			if(this.heightArr[i]==val){
879				return i;
880			}
881		}
882		return -1;
883	},
884	updataPos:function(i,ele){
885		var $ele=$(ele).addClass("flow-init"),
886			pos={},//储存位置信息
887			minVal=this.getMinHeight(),//找出最小的列高
888			index=this.getIndex(minVal);//列高的序号,从0开始哦
889		pos.left=index*(this.colOuterW+this.colX);//(流元素的宽度+水平间隔)*系数(即列高序号)
890		pos.top=minVal+this.colY;
891		$ele.css(pos);
892		this.heightArr[index]=pos.top+$ele.outerHeight();//更新高度数组	
893	},
894	imgSideAuto:cyc_imgSideAuto
895}
896
897//============全屏banner  左右型=============
898function FSBanner(o){
899	if(this==window){return new arguments.callee(o)}
900	var _this=this;
901	this.ul=$(o.list);
902	this.nav=$(o.nav);
903	this.li=this.ul.children();
904	this.len=this.li.length;
905	if(this.len<2){return}
906	this.prev=$(o.prev);
907	this.next=$(o.next);
908	this.init();
909}
910FSBanner.prototype={
911	li_css:"float:left;display:inline;overflow:hidden;",
912	ul_css:"position:relative;width:",
913	init:function(){
914		var _this=this;
915		this.n=0;
916		this.addCssText(this.ul,this.ul_css+(this.len+1)+"00%;");
917		this.li_css += "width:"+100/(this.len+1)+"%;";
918		this.addCssText(this.li,this.li_css);
919		this.ul.append(this.li.eq(0).clone());
920
921		this.nav_item=this.nav[0]&&this.nav.children();
922		this.has_nav=this.nav_item.length;
923		if(this.has_nav){
924			this.nav_item.click(function(e){
925				e.preventDefault();
926				_this.nav_handler(this);
927			}).removeClass("current").eq(0).addClass("current");
928		}
929
930		if(this.prev.length){
931			this.prev.click(function(e){e.preventDefault();_this.ctrl_handler()})
932		}
933		if(this.next.length){
934			this.next.click(function(e){e.preventDefault();_this.ctrl_handler(1)})
935		}
936
937		this.liW=this.li.width();
938		$(window).resize(function(){
939			_this.liW=_this.li.width();
940			if(_this.resizeId){clearTimeout(_this.resizeId)}
941			_this.resizing=1;
942			_this.n=_this.n==_this.len?0:_this.n;
943			_this.ul.stop()[0].style.left=-_this.n+"00%";
944			if(_this.changing){
945				_this.readyChange();
946				_this.changing=0;
947			}
948			_this.resizeId=setTimeout(function(){_this.resizing=0;},200);
949		});
950		this.readyChange();
951	},
952	readyChange:function(){
953		var _this=this;
954		this.timer=setTimeout(function(){
955			_this.changeTo();
956		},3000);
957	},
958	changeTo:function(n){
959		if(this.timer){clearTimeout(this.timer);}
960		var index=n===undefined?++this.n:n,
961			_this=this;
962		if(index<0||index>(this.len)){
963			index=index<0?this.len:0;
964		}
965		this.n=index;
966		(function(){
967			if(!_this.resizing){
968				if(_this.has_nav){
969					_this.nav_item.removeClass("current").eq(_this.n==_this.len?0:index).addClass("current");
970				}
971				var effect_sty={left:-_this.liW*index};
972				_this.changing=1;
973				_this.ul.stop().animate(effect_sty,600,function(){
974					if(_this.n==_this.len){
975						_this.ul.css({left:0});
976						_this.n=0;
977					}
978					_this.readyChange();
979					_this.changing=0;
980				})
981			}else{
982				setTimeout(arguments.callee,1200);
983			}
984		})()
985	},
986	ctrl_handler:function(isNext){
987		var curLeft=parseInt(this.ul.css("left"))||0;
988		if(curLeft%this.liW==0){
989			var n=-curLeft/this.liW;
990			this.changeTo(isNext?++n:--n);
991		}
992
993	},
994	nav_handler:function(_self){
995		this.changeTo(this.nav_item.index(_self));
996	},
997	addCssText:function(arr,csstxt){
998		for (var i=arr.length-1;i>=0;i--){
999			arr[i].style.cssText=arr[i].style.cssText.replace(/;?(?=$)/,";"+csstxt);
1000		}
1001	}
1002};
1003function getHoverTarget(ele,e,level){
1004	var hoverEle=t=e.target,r=e.relatedTarget,n=1;
1005	if(level){
1006		if(t==ele){return}
1007		while(t.parentNode!==ele){
1008			t=t.parentNode;
1009			++n;
1010		}
1011		if((n-=level)<0){return}
1012		while(n--){
1013			hoverEle=hoverEle.parentNode;
1014		}
1015	}else{
1016		hoverEle=ele;
1017	}
1018	if($.contains(hoverEle,r)||(r==hoverEle&&$.contains(hoverEle,e.target))){return}
1019	return hoverEle;
1020}
1021//----------各个函数调用--------------
1022$(function(){
1023	//FSBanner({list:".banner-body",nav:".banner-nav"});
1024	//slideSwitchSort({list:$("div.new-toggle").find(".i-item").first().parent(),prev:".pic-new .the-prev",next:".pic-new .the-next"});
1025	bannerAnimate({list:".index-banner ul.the-list",interval:3000,index:".index-banner ol.the-index"});
1026	cycNav03(".nav > ul");
1027	//$(".aside").autoFix(0,30);
1028	//slideSwitch({list:"div.product-mini div.the-list",next:"div.product-mini a.the-next",prev:"div.product-mini a.the-prev",speed:600});
1029	//tabChange(".detail-nav","div.detail-box","click");
1030	iptPlace.call($(".search-form .the-input")[0],{left:12});
1031	//cyc_imgSideAuto($("ul.inside-pro-list").find(".pro-img"),80,80,true);
1032})

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.