var STK=(function(){var a={};var b=[];a.inc=function(d,c){return true};a.register=function(e,c){var g=e.split(".");var f=a;var d=null;while(d=g.shift()){if(g.length){if(f[d]===undefined){f[d]={}}f=f[d]}else{if(f[d]===undefined){try{f[d]=c(a)}catch(h){b.push(h)}}}}};a.regShort=function(c,d){if(a[c]!==undefined){throw"["+c+"] : short : has been register"}a[c]=d};a.IE=/msie/i.test(navigator.userAgent);a.E=function(c){if(typeof c==="string"){return document.getElementById(c)}else{return c}};a.C=function(c){var d;c=c.toUpperCase();if(c=="TEXT"){d=document.createTextNode("")}else{if(c=="BUFFER"){d=document.createDocumentFragment()}else{d=document.createElement(c)}}return d};a.log=function(c){b.push("["+((new Date()).getTime()%100000)+"]: "+c)};a.getErrorLogInformationList=function(c){return b.splice(0,c||b.length)};return a})();$Import=STK.inc;STK.register("core.ani.algorithm",function(b){var a={linear:function(f,e,j,h,g){return j*f/h+e},easeincubic:function(f,e,j,h,g){return j*(f/=h)*f*f+e},easeoutcubic:function(f,e,j,h,g){if((f/=h/2)<1){return j/2*f*f*f+e}return j/2*((f-=2)*f*f+2)+e},easeinoutcubic:function(f,e,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+e},easeinback:function(f,e,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+e},easeoutback:function(f,e,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+e},easeinoutback:function(f,e,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+e}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+e}};return{addAlgorithm:function(c,d){if(a[c]){throw"[core.ani.tweenValue] this algorithm :"+c+"already exist"}a[c]=d},compute:function(h,e,d,f,g,c,j){if(typeof a[h]!=="function"){throw"[core.ani.tweenValue] this algorithm :"+h+"do not exist"}return a[h](f,e,d,g,c,j)}}});STK.register("core.func.empty",function(){return function(){}});STK.register("core.obj.parseParam",function(a){return function(d,c,b){var e,f={};c=c||{};for(e in d){f[e]=d[e];if(c[e]!=null){if(b){if(d.hasOwnProperty[e]){f[e]=c[e]}}else{f[e]=c[e]}}}return f}});STK.register("core.ani.tweenArche",function(a){return function(n,o){var h,g,f,c,d,b,j,e;g={};h=a.core.obj.parseParam({animationType:"linear",distance:1,duration:500,callback:a.core.func.empty,algorithmParams:{},extra:5,delay:25},o);var m=function(){f=(+new Date()-c);if(f-1}});STK.register("core.dom.isNode",function(a){return function(b){return(b!=undefined)&&Boolean(b.nodeName)&&Boolean(b.nodeType)}});STK.register("core.json.merge",function(b){var a=function(d){if(d===undefined){return true}if(d===null){return true}if(b.core.arr.inArray(["number","string","function"],(typeof d))){return true}if(b.core.arr.isArray(d)){return true}if(b.core.dom.isNode(d)){return true}return false};var c=function(g,j,f){var h={};for(var e in g){if(j[e]===undefined){h[e]=g[e]}else{if(!a(g[e])&&!a(j[e])&&f){h[e]=arguments.callee(g[e],j[e])}else{h[e]=j[e]}}}for(var d in j){if(h[d]===undefined){h[d]=j[d]}}return h};return function(d,g,f){var e=b.core.obj.parseParam({isDeep:false},f);return c(d,g,e.isDeep)}});STK.register("core.util.color",function(f){var c=/^#([a-fA-F0-9]{3,8})$/;var e=/^rgb[a]?\s*\((\s*([0-9]{1,3})\s*,){2,3}(\s*([0-9]{1,3})\s*)\)$/;var d=/([0-9]{1,3})/ig;var a=/([a-fA-F0-9]{2})/ig;var b=f.core.arr.foreach;var g=function(m){var h=[];var j=[];if(c.test(m)){j=m.match(c);if(j[1].length<=4){h=b(j[1].split(""),function(o,n){return parseInt(o+o,16)})}else{if(j[1].length<=8){h=b(j[1].match(a),function(o,n){return parseInt(o,16)})}}return h}if(e.test(m)){j=m.match(d);h=b(j,function(o,n){return parseInt(o,10)});return h}return false};return function(m,h){var j=g(m);if(!j){return false}var n={};n.getR=function(){return j[0]};n.getG=function(){return j[1]};n.getB=function(){return j[2]};n.getA=function(){return j[3]};return n}});STK.register("core.ani.tween",function(d){var a=d.core.ani.tweenArche;var b=d.core.arr.foreach;var g=d.core.dom.getStyle;var h=d.core.func.getType;var n=d.core.obj.parseParam;var m=d.core.json.merge;var c=d.core.util.color;var f=function(r){var q=/(-?\d\.?\d*)([a-z%]*)/i.exec(r);var p=[0,"px"];if(q){if(q[1]){p[0]=q[1]-0}if(q[2]){p[1]=q[2]}}return p};var o=function(t){for(var r=0,p=t.length;r64&&q<90){var u=t.substr(0,r);var w=t.substr(r,1);var v=t.slice(r+1);return u+"-"+w.toLowerCase()+v}}return t};var j=function(u,w,r){var v=g(u,r);if(h(v)==="undefined"||v==="auto"){if(r==="height"){v=u.offsetHeight}if(r==="width"){v=u.offsetWidth}}var q={start:v,end:w,unit:"",key:r,defaultColor:false};if(h(w)==="number"){var s=[0,"px"];if(h(v)==="number"){s[0]=v}else{s=f(v)}q.start=s[0];q.unit=s[1]}if(h(w)==="string"){var p,t;p=c(w);if(p){t=c(v);if(!t){t=c("#fff")}q.start=t;q.end=p;q.defaultColor=true}}u=null;return q};var e={opacity:function(q,t,p,r){var s=(q*(p-t)+t);return{filter:"alpha(opacity="+s*100+")",opacity:Math.max(Math.min(1,s),0),zoom:"1"}},defaultColor:function(v,q,s,x,y){var p=Math.max(0,Math.min(255,Math.ceil((v*(s.getR()-q.getR())+q.getR()))));var t=Math.max(0,Math.min(255,Math.ceil((v*(s.getG()-q.getG())+q.getG()))));var w=Math.max(0,Math.min(255,Math.ceil((v*(s.getB()-q.getB())+q.getB()))));var u={};u[o(y)]="#"+(p<16?"0":"")+p.toString(16)+(t<16?"0":"")+t.toString(16)+(w<16?"0":"")+w.toString(16);return u},"default":function(s,v,p,t,r){var u=(s*(p-v)+v);var q={};q[o(r)]=u+t;return q}};return function(r,A){var u,v,p,B,C,z,D,s,t,x;A=A||{};v=n({animationType:"linear",duration:500,algorithmParams:{},extra:5,delay:25},A);v.distance=1;v.callback=(function(){var E=A.end||d.core.func.empty;return function(){B(1);D();E(r)}})();p=m(e,A.propertys||{});z=null;C={};t=[];B=function(E){var G=[];var F=b(C,function(L,J){var K;if(p[J]){K=p[J]}else{if(L.defaultColor){K=p.defaultColor}else{K=p["default"]}}var I=K(E,L.start,L.end,L.unit,L.key);for(var H in I){z.push(H,I[H])}});r.style.cssText=z.getCss()};D=function(){var E;while(E=t.shift()){try{E.fn();if(E.type==="play"){break}if(E.type==="destroy"){break}}catch(F){}}};x=a(B,v);var w=function(){if(x.getStatus()!=="play"){r=el}else{t.push({fn:w,type:"setNode"})}};var q=function(E){if(x.getStatus()!=="play"){C=b(E,function(G,F){return j(r,G,F)});z=d.core.dom.cssText(r.style.cssText+(A.staticStyle||""));x.play()}else{t.push({fn:function(){q(E)},type:"play"})}};var y=function(){if(x.getStatus()!=="play"){x.destroy();r=null;u=null;v=null;p=null;B=null;C=null;z=null;D=null;s=null;t=null}else{t.push({fn:y,type:"destroy"})}};u={};u.play=function(E){q(E);return u};u.stop=function(){x.stop();return u};u.pause=function(){x.pause();return u};u.resume=function(){x.resume();return u};u.finish=function(E){q(E);y();return u};u.setNode=function(E){w();return u};u.destroy=function(){y();return u};return u}});STK.register("core.arr.findout",function(a){return function(f,e){if(!a.core.arr.isArray(f)){throw"the findout function needs an array as first parameter"}var c=[];for(var d=0,b=f.length;d+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,d=Object.prototype.toString,s=false,j=true;[0,0].sort(function(){j=false;return 0});var b=function(z,e,C,D){C=C||[];e=e||document;var F=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!z||typeof z!=="string"){return C}var A=[],w,H,K,v,y=true,x=b.isXML(e),E=z,G,J,I,B;do{t.exec("");w=t.exec(E);if(w){E=w[3];A.push(w[1]);if(w[2]){v=w[3];break}}}while(w);if(A.length>1&&o.exec(z)){if(A.length===2&&f.relative[A[0]]){H=h(A[0]+A[1],e)}else{H=f.relative[A[0]]?[e]:b(A.shift(),e);while(A.length){z=A.shift();if(f.relative[z]){z+=A.shift()}H=h(z,H)}}}else{if(!D&&A.length>1&&e.nodeType===9&&!x&&f.match.ID.test(A[0])&&!f.match.ID.test(A[A.length-1])){G=b.find(A.shift(),e,x);e=G.expr?b.filter(G.expr,G.set)[0]:G.set[0]}if(e){G=D?{expr:A.pop(),set:a(D)}:b.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&e.parentNode?e.parentNode:e,x);H=G.expr?b.filter(G.expr,G.set):G.set;if(A.length>0){K=a(H)}else{y=false}while(A.length){J=A.pop();I=J;if(!f.relative[J]){J=""}else{I=A.pop()}if(I==null){I=e}f.relative[J](K,I,x)}}else{K=A=[]}}if(!K){K=H}if(!K){b.error(J||z)}if(d.call(K)==="[object Array]"){if(!y){C.push.apply(C,K)}else{if(e&&e.nodeType===1){for(B=0;K[B]!=null;B++){if(K[B]&&(K[B]===true||K[B].nodeType===1&&b.contains(e,K[B]))){C.push(H[B])}}}else{for(B=0;K[B]!=null;B++){if(K[B]&&K[B].nodeType===1){C.push(H[B])}}}}}else{a(K,C)}if(v){b(v,F,C,D);b.uniqueSort(C)}return C};b.uniqueSort=function(v){if(c){s=j;v.sort(c);if(s){for(var e=1;e":function(A,v){var y=typeof v==="string",z,w=0,e=A.length;if(y&&!/\W/.test(v)){v=v.toLowerCase();for(;w=0)){if(!w){e.push(z)}}else{if(w){v[y]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(v,e){return v[1].toLowerCase()},CHILD:function(e){if(e[1]==="nth"){var v=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(v[1]+(v[2]||1))-0;e[3]=v[3]-0}e[0]=m++;return e},ATTR:function(y,v,w,e,z,A){var x=y[1].replace(/\\/g,"");if(!A&&f.attrMap[x]){y[1]=f.attrMap[x]}if(y[2]==="~="){y[4]=" "+y[4]+" "}return y},PSEUDO:function(y,v,w,e,z){if(y[1]==="not"){if((t.exec(y[3])||"").length>1||/^\w/.test(y[3])){y[3]=b(y[3],null,null,v)}else{var x=b.filter(y[3],v,w,true^z);if(!w){e.push.apply(e,x)}return false}}else{if(f.match.POS.test(y[0])||f.match.CHILD.test(y[0])){return true}}return y},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(w,v,e){return !!b(e[3],w).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)}},setFilters:{first:function(v,e){return e===0},last:function(w,v,e,x){return v===x.length-1},even:function(v,e){return e%2===0},odd:function(v,e){return e%2===1},lt:function(w,v,e){return ve[3]-0},nth:function(w,v,e){return e[3]-0===v},eq:function(w,v,e){return e[3]-0===v}},filter:{PSEUDO:function(w,B,A,C){var e=B[1],v=f.filters[e];if(v){return v(w,A,B,C)}else{if(e==="contains"){return(w.textContent||w.innerText||b.getText([w])||"").indexOf(B[3])>=0}else{if(e==="not"){var x=B[3];for(var z=0,y=x.length;z=0)}}},ID:function(v,e){return v.nodeType===1&&v.getAttribute("id")===e},TAG:function(v,e){return(e==="*"&&v.nodeType===1)||v.nodeName.toLowerCase()===e},CLASS:function(v,e){return(" "+(v.className||v.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(z,x){var w=x[1],e=f.attrHandle[w]?f.attrHandle[w](z):z[w]!=null?z[w]:z.getAttribute(w),A=e+"",y=x[2],v=x[4];return e==null?y==="!=":y==="="?A===v:y==="*="?A.indexOf(v)>=0:y==="~="?(" "+A+" ").indexOf(v)>=0:!v?A&&e!==false:y==="!="?A!==v:y==="^="?A.indexOf(v)===0:y==="$="?A.substr(A.length-v.length)===v:y==="|="?A===v||A.substr(0,v.length+1)===v+"-":false},POS:function(y,v,w,z){var e=v[2],x=f.setFilters[e];if(x){return x(y,w,v,z)}}}};b.selectors=f;var o=f.match.POS,g=function(v,e){return"\\"+(e-0+1)};for(var q in f.match){f.match[q]=new RegExp(f.match[q].source+(/(?![^\[]*\])(?![^\(]*\))/.source));f.leftMatch[q]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[q].source.replace(/\\(\d+)/g,g))}var a=function(v,e){v=Array.prototype.slice.call(v,0);if(e){e.push.apply(e,v);return e}return v};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(p){a=function(y,x){var v=x||[],w=0;if(d.call(y)==="[object Array]"){Array.prototype.push.apply(v,y)}else{if(typeof y.length==="number"){for(var e=y.length;w";var e=document.documentElement;e.insertBefore(v,e.firstChild);if(document.getElementById(w)){f.find.ID=function(y,z,A){if(typeof z.getElementById!=="undefined"&&!A){var x=z.getElementById(y[1]);return x?x.id===y[1]||typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id").nodeValue===y[1]?[x]:undefined:[]}};f.filter.ID=function(z,x){var y=typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id");return z.nodeType===1&&y&&y.nodeValue===x}}e.removeChild(v);e=v=null})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(v,z){var y=z.getElementsByTagName(v[1]);if(v[1]==="*"){var x=[];for(var w=0;y[w];w++){if(y[w].nodeType===1){x.push(y[w])}}y=x}return y}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(v){return v.getAttribute("href",2)}}e=null})();if(document.querySelectorAll){(function(){var e=b,w=document.createElement("div");w.innerHTML="

";if(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0){return}b=function(A,z,x,y){z=z||document;if(!y&&z.nodeType===9&&!b.isXML(z)){try{return a(z.querySelectorAll(A),x)}catch(B){}}return e(A,z,x,y)};for(var v in e){b[v]=e[v]}w=null})()}(function(){var e=document.createElement("div");e.innerHTML="
";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(v,w,x){if(typeof w.getElementsByClassName!=="undefined"&&!x){return w.getElementsByClassName(v[1])}};e=null})();function r(v,A,z,D,B,C){for(var x=0,w=D.length;x0){y=e;break}}}e=e[v]}D[x]=y}}}b.contains=document.compareDocumentPosition?function(v,e){return !!(v.compareDocumentPosition(e)&16)}:function(v,e){return v!==e&&(v.contains?v.contains(e):true)};b.isXML=function(e){var v=(e?e.ownerDocument||e:0).documentElement;return v?v.nodeName!=="HTML":false};var h=function(e,B){var x=[],y="",z,w=B.nodeType?[B]:B;while((z=f.match.PSEUDO.exec(e))){y+=z[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var A=0,v=w.length;A]*\s+node-type\s*=\s*([\'\"])?(\w+)\2.*?>/g;var g={};var j,d,c;while((e=h.exec(m))){d=e[1];j=e[3];c=d+"[node-type="+j+"]";g[j]=g[j]==null?[]:g[j];if(!a.core.arr.inArray(c,g[j])){g[j].push(d+"[node-type="+j+"]")}}return g}return function(g,f){var c=a.core.func.getType(g)=="string";var m=b(c?g:g.innerHTML,f);var d=g;if(c){d=a.C("div");d.innerHTML=g}var n,j,h;h=a.core.dom.sizzle("[node-type]",d);j={};for(n in m){j[n]=a.core.dom.sizzle.matches(m[n].toString(),h)}var e=g;if(c){e=a.C("buffer");while(d.children[0]){e.appendChild(d.children[0])}}return{box:e,list:j}}});STK.register("core.obj.beget",function(b){var a=function(){};return function(c){a.prototype=c;return new a()}});STK.register("core.dom.setStyle",function(a){return function(b,c,d){if(a.IE){switch(c){case"opacity":b.style.filter="alpha(opacity="+(d*100)+")";if(!b.currentStyle||!b.currentStyle.hasLayout){b.style.zoom=1}break;case"float":c="styleFloat";default:b.style[c]=d}}else{if(c=="float"){c="cssFloat"}b.style[c]=d}}});STK.register("core.dom.insertAfter",function(a){return function(c,d){var b=d.parentNode;if(b.lastChild==d){b.appendChild(c)}else{b.insertBefore(c,d.nextSibling)}}});STK.register("core.dom.insertBefore",function(a){return function(c,d){var b=d.parentNode;b.insertBefore(c,d)}});STK.register("core.dom.removeClassName",function(a){return function(c,b){if(c.nodeType===1){if(a.core.dom.hasClassName(c,b)){c.className=c.className.replace(new RegExp("\\b"+b+"\\b")," ")}}}});STK.register("core.dom.trimNode",function(a){return function(c){var d=c.childNodes;for(var b=0;b/g,">").replace(/\'/g,"'").replace(/\u00A0/g," ").replace(/(\u0020|\u000B|\u2028|\u2029|\f)/g," ")}});STK.register("core.str.decodeHTML",function(a){return function(b){if(typeof b!=="string"){throw"decodeHTML need a string as parameter"}return b.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/ /g,"\u00A0").replace(/ /g,"\u0020").replace(/&/g,"&")}});STK.register("core.dom.cascadeNode",function(a){return function(d){var c={};var e=d.style.display||"";e=(e==="none"?"":e);var b=[];c.setStyle=function(g,f){a.core.dom.setStyle(d,g,f);if(g==="display"){e=(f==="none"?"":f)}return c};c.insertAfter=function(f){a.core.dom.insertAfter(f,d);return c};c.insertBefore=function(f){a.core.dom.insertBefore(f,d);return c};c.addClassName=function(f){a.core.dom.addClassName(d,f);return c};c.removeClassName=function(f){a.core.dom.removeClassName(d,f);return c};c.trimNode=function(){a.core.dom.trimNode(d);return c};c.removeNode=function(){a.core.dom.removeNode(d);return c};c.on=function(h,j){for(var g=0,f=b.length;g "'+c+'"'}else{var b=e.ownerDocument.createRange();var f;switch(c){case"beforebegin":b.setStartBefore(e);f=b.createContextualFragment(d);e.parentNode.insertBefore(f,e);return e.previousSibling;case"afterbegin":if(e.firstChild){b.setStartBefore(e.firstChild);f=b.createContextualFragment(d);e.insertBefore(f,e.firstChild);return e.firstChild}else{e.innerHTML=d;return e.firstChild}break;case"beforeend":if(e.lastChild){b.setStartAfter(e.lastChild);f=b.createContextualFragment(d);e.appendChild(f);return e.lastChild}else{e.innerHTML=d;return e.lastChild}break;case"afterend":b.setStartAfter(e);f=b.createContextualFragment(d);e.parentNode.insertBefore(f,e.nextSibling);return e.nextSibling}throw'Illegal insertion point -> "'+c+'"'}}});STK.register("core.dom.insertElement",function(a){return function(d,c,b){d=a.E(d)||document.body;b=b?b.toLowerCase():"beforeend";switch(b){case"beforebegin":d.parentNode.insertBefore(c,d);break;case"afterbegin":d.insertBefore(c,d.firstChild);break;case"beforeend":d.appendChild(c);break;case"afterend":if(d.nextSibling){d.parentNode.insertBefore(c,d.nextSibling)}else{d.parentNode.appendChild(c)}break}}});STK.register("core.dom.next",function(a){return function(c){var b=c.nextSibling;if(!b){return null}else{if(b.nodeType!==1){b=arguments.callee(b)}}return b}});STK.register("core.dom.prev",function(a){return function(c){var b=c.previousSibling;if(!b){return null}else{if(b.nodeType!==1){b=arguments.callee(b)}}return b}});STK.register("core.dom.replaceNode",function(a){return function(c,b){if(c==null||b==null){throw"replaceNode need node as paramster"}b.parentNode.replaceChild(c,b)}});STK.register("core.dom.ready",function(g){var c=[];var o=false;var n=g.core.func.getType;var h=g.core.util.browser;var f=g.core.evt.addEvent;var j=function(){if(!o){if(document.readyState==="complete"){return true}}return o};var d=function(){if(o==true){return}o=true;for(var q=0,p=c.length;q-1&&m[h];h--){var q=m[h].fn;var o=m[h].once;if(q&&q.apply){try{q.apply(g,[{type:p,data:m[h].data}].concat(n));if(o){m.splice(h,1)}}catch(j){c.log("[error][custEvent]"+j.message)}}}return f.key}}},destroy:function(){e={};d=1}}});STK.register("core.str.trim",function(a){return function(e){if(typeof e!=="string"){throw"trim need a string as parameter"}var b=e.length;var d=0;var c=/(\u3000|\s|\t|\u00A0)/;while(dd){if(!c.test(e.charAt(b-1))){break}b-=1}return e.slice(d,b)}});STK.register("core.json.queryToJson",function(a){return function(d,h){var m=a.core.str.trim(d).split("&");var j={};var c=function(o){if(h){return decodeURIComponent(o)}else{return o}};for(var f=0,g=m.length;fg.left&&c.leftg.top&&c.top=c.left&&f<=c.right)&&(e>=c.top&&e<=c.bottom)?true:false}});STK.register("core.evt.stopEvent",function(a){return function(c){var b=c?c:a.core.evt.getEvent();if(a.IE){b.cancelBubble=true;b.returnValue=false}else{b.preventDefault();b.stopPropagation()}return false}});STK.register("core.evt.preventDefault",function(a){return function(c){var b=c?c:a.core.evt.getEvent();if(a.IE){b.returnValue=false}else{b.preventDefault()}}});STK.register("core.evt.hotKey",function(d){var c=d.core.dom.uniqueID;var b={reg1:/^keypress|keydown|keyup$/,keyMap:{27:"esc",9:"tab",32:"space",13:"enter",8:"backspace",145:"scrollclock",20:"capslock",144:"numlock",19:"pause",45:"insert",36:"home",46:"delete",35:"end",33:"pageup",34:"pagedown",37:"left",38:"up",39:"right",40:"down",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:"/",17:"ctrl",16:"shift",109:"-",107:"=",219:"[",221:"]",220:"\\",222:"'",187:"=",188:",",189:"-",190:".",191:"/",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",110:".",111:"/"},keyEvents:{}};b.preventDefault=function(){this.returnValue=false};b.handler=function(g){g=g||window.event;if(!g.target){g.target=g.srcElement||document}if(!g.which&&((g.charCode||g.charCode===0)?g.charCode:g.keyCode)){g.which=g.charCode||g.keyCode}if(!g.preventDefault){g.preventDefault=b.preventDefault}var p=c(this),f,j;if(p&&(f=b.keyEvents[p])&&(j=f[g.type])){var h;switch(g.type){case"keypress":if(g.ctrlKey||g.altKey){return}if(g.which==13){h=b.keyMap[13]}if(g.which==32){h=b.keyMap[32]}if(g.which>=33&&g.which<=126){h=String.fromCharCode(g.which)}break;case"keyup":case"keydown":if(b.keyMap[g.which]){h=b.keyMap[g.which]}if(!h){if((g.which>=48&&g.which<=57)){h=String.fromCharCode(g.which)}else{if((g.which>=65&&g.which<=90)){h=String.fromCharCode(g.which+32)}}}if(h&&g.type=="keydown"){f.linkedKey+=f.linkedKey?(">"+h):h;if(g.altKey){h="alt+"+h}if(g.shiftKey){h="shift+"+h}if(g.ctrlKey){h="ctrl+"+h}}break}var q=/^select|textarea|input$/.test(g.target.nodeName.toLowerCase());if(h){var m=[],n=false;if(f.linkedKey&&f.linkKeyStr){if(f.linkKeyStr.indexOf(" "+f.linkedKey)!=-1){if(f.linkKeyStr.indexOf(" "+f.linkedKey+" ")!=-1){m=m.concat(j[f.linkedKey]);f.linkedKey=""}n=true}else{f.linkedKey=""}}if(!n){m=m.concat(j[h])}for(var o=0;o1||h.type!="keypress"){m=m.toLowerCase()}if(!/(^(\+|>)$)|(^([^\+>]+)$)/.test(m)){var g="";if(/((ctrl)|(shift)|(alt))\+(\+|([^\+]+))$/.test(m)){if(m.indexOf("ctrl+")!=-1){g+="ctr+"}if(m.indexOf("shift+")!=-1){g+="shift+"}if(m.indexOf("alt+")!=-1){g+="alt+"}g+=m.match(/\+(([^\+]+)|(\+))$/)[1]}else{if(!/(^>)|(>$)|>>/.test(m)&&m.length>2){f.linkFlag=true}else{return f}}h.type="keydown"}f.keys=m;f.fn=j;f.opt=h;return f};var a={add:function(g,p,n,f){if(d.core.arr.isArray(p)){for(var j=0;j0&&(+new Date()-j0&&e.onTimeout!=null){d=setTimeout(function(){try{document.getElementsByTagName("head")[0].removeChild(f)}catch(j){}e.onTimeout()},e.timeout)}return f}});STK.register("core.io.jsonp",function(a){return function(f){var d=a.core.obj.parseParam({url:"",charset:"UTF-8",timeout:30*1000,args:{},onComplete:null,onTimeout:null,responseName:null,isEncode:false,varkey:"callback"},f);var g=-1;var e=d.responseName||("STK_"+a.core.util.getUniqueKey());d.args[d.varkey]=e;var b=d.onComplete;var c=d.onTimeout;window[e]=function(h){if(g!=2&&b!=null){g=1;b(h)}};d.onComplete=null;d.onTimeout=function(){if(g!=1&&c!=null){g=2;c()}};return a.core.io.scriptLoader(d)}});STK.register("core.util.templet",function(a){return function(b,c){return b.replace(/#\{(.+?)\}/ig,function(){var g=arguments[1].replace(/\s/ig,"");var e=arguments[0];var h=g.split("||");for(var f=0,d=h.length;f="0"&&b<="9"){r+=b;h()}if(b==="."){r+=".";while(h()&&b>="0"&&b<="9"){r+=b}}if(b==="e"||b==="E"){r+=b;h();if(b==="-"||b==="+"){r+=b;h()}while(b>="0"&&b<="9"){r+=b;h()}}s=+r;if(isNaN(s)){o("Bad number")}else{return s}},j=function(){var u,t,s="",r;if(b==='"'){while(h()){if(b==='"'){h();return s}else{if(b==="\\"){h();if(b==="u"){r=0;for(t=0;t<4;t+=1){u=parseInt(h(),16);if(!isFinite(u)){break}r=r*16+u}s+=String.fromCharCode(r)}else{if(typeof a[b]==="string"){s+=a[b]}else{break}}}else{s+=b}}}}o("Bad string")},n=function(){while(b&&b<=" "){h()}},c=function(){switch(b){case"t":h("t");h("r");h("u");h("e");return true;case"f":h("f");h("a");h("l");h("s");h("e");return false;case"n":h("n");h("u");h("l");h("l");return null}o("Unexpected '"+b+"'")},p,m=function(){var r=[];if(b==="["){h("[");n();if(b==="]"){h("]");return r}while(b){r.push(p());n();if(b==="]"){h("]");return r}h(",");n()}}o("Bad array")},e=function(){var s,r={};if(b==="{"){h("{");n();if(b==="}"){h("}");return r}while(b){s=j();n();h(":");if(Object.hasOwnProperty.call(r,s)){o('Duplicate key "'+s+'"')}r[s]=p();n();if(b==="}"){h("}");return r}h(",");n()}}o("Bad object")};p=function(){n();switch(b){case"{":return e();case"[":return m();case'"':return j();case"-":return f();default:return b>="0"&&b<="9"?f():c()}};return function(u,s){var r;q=u;d=0;b=" ";r=p();n();if(b){o("Syntax error")}return typeof s==="function"?(function t(z,y){var x,w,A=z[y];if(A&&typeof A==="object"){for(x in A){if(Object.hasOwnProperty.call(A,x)){w=t(A,x);if(w!==undefined){A[x]=w}else{delete A[x]}}}}return s.call(z,y,A)}({"":r},"")):r}});STK.register("core.obj.cascade",function(a){return function(e,c){for(var d=0,b=c.length;d]+|<(\/?)([A-Za-z0-9]+)([^<>]*)>/g;var b,e;var c=[];while((b=d.exec(f))){var g=[];for(e=0;eb&&b>0){d=d.slice(0,d.length-1)}return d}});STK.register("core.str.queryString",function(a){return function(e,f){var d=a.core.obj.parseParam({source:window.location.href.toString(),split:"&"},f);var b=new RegExp("(^|)"+e+"=([^\\"+d.split+"]*)(\\"+d.split+"|$)","gi").exec(d.source),c;if(c=b){return c[2]}return null}});STK.register("core.util.cookie",function(b){var a={set:function(g,m,j){var c=[];var h,f;var e=b.core.obj.parseParam({expire:null,path:"/",domain:null,secure:null,encode:true},j);if(e.encode==true){m=escape(m)}c.push(g+"="+m);if(e.path!=null){c.push("path="+e.path)}if(e.domain!=null){c.push("domain="+e.domain)}if(e.secure!=null){c.push(e.secure)}if(e.expire!=null){h=new Date();f=h.getTime()+e.expire*3600000;h.setTime(f);c.push("expires="+h.toGMTString())}document.cookie=c.join(";")},get:function(e){e=e.replace(/([\.\[\]\$])/g,"\\$1");var d=new RegExp(e+"=([^;]*)?;","i");var f=document.cookie+";";var c=f.match(d);if(c){return c[1]||""}else{return""}},remove:function(c,d){d=d||{};d.expire=-10;a.set(c,"",d)}};return a});STK.register("core.util.drag",function(c){var a=function(d){d.cancelBubble=true;return false};var b=function(e,d){e.clientX=d.clientX;e.clientY=d.clientY;e.pageX=d.clientX+c.core.util.scrollPos()["left"];e.pageY=d.clientY+c.core.util.scrollPos()["top"];return e};return function(e,p){if(!c.core.dom.isNode(e)){throw"core.util.drag need Element as first parameter"}var o=c.core.obj.parseParam({actRect:[],actObj:{}},p);var j={};var m=c.core.evt.custEvent.define(o.actObj,"dragStart");var f=c.core.evt.custEvent.define(o.actObj,"dragEnd");var g=c.core.evt.custEvent.define(o.actObj,"draging");var n=function(r){var q=b({},r);document.body.onselectstart=function(){return false};c.core.evt.addEvent(document,"mousemove",h);c.core.evt.addEvent(document,"mouseup",d);c.core.evt.addEvent(document,"click",a,true);if(!c.IE){r.preventDefault();r.stopPropagation()}c.core.evt.custEvent.fire(m,"dragStart",q);return false};var h=function(r){var q=b({},r);r.cancelBubble=true;c.core.evt.custEvent.fire(m,"draging",q)};var d=function(r){var q=b({},r);document.body.onselectstart=function(){return true};c.core.evt.removeEvent(document,"mousemove",h);c.core.evt.removeEvent(document,"mouseup",d);c.core.evt.removeEvent(document,"click",a,true);c.core.evt.custEvent.fire(m,"dragEnd",q)};c.core.evt.addEvent(e,"mousedown",n);j.destroy=function(){c.core.evt.removeEvent(e,"mousedown",n);o=null};j.getActObj=function(){return o.actObj};return j}});STK.register("core.util.nameValue",function(a){return function(b){var j=b.getAttribute("name");var e=b.getAttribute("type");var h=b.tagName;var m={name:j,value:""};var f=function(n){if(n===false){m=false}else{if(!m.value){m.value=a.core.str.trim((n||""))}else{m.value=[a.core.str.trim((n||""))].concat(m.value)}}};if(!b.disabled&&j){switch(h){case"INPUT":if(e=="radio"||e=="checkbox"){if(b.checked){f(b.value)}else{f(false)}}else{if(e=="reset"||e=="submit"||e=="image"){f(false)}else{f(b.value)}}break;case"SELECT":if(b.multiple){var c=b.options;for(var d=0,g=c.length;d0){n=e[m][o];n.data_cache=p;for(j=0,h=n.length;jh.offsetHeight){g=h.scrollWidth;c=h.scrollHeight}else{g=h.offsetWidth;c=h.offsetHeight}}var b=a.core.util.winSize(d);if(c0){return c.shift()}else{return false}};return b}});STK.register("core.util.timer",function(a){return(function(){var g={};var h={};var b=0;var e=null;var f=false;var d=25;var c=function(){for(var j in h){if(!h[j]["pause"]){h[j]["fun"]()}}return g};g.add=function(j){if(typeof j!="function"){throw ("The timer needs add a function as a parameters")}var m=""+(new Date()).getTime()+(Math.random())*Math.pow(10,17);h[m]={fun:j,pause:false};if(b<=0){g.start()}b++;return m};g.remove=function(j){if(h[j]){delete h[j];b--}if(b<=0){g.stop()}return g};g.pause=function(j){if(h[j]){h[j]["pause"]=true}return g};g.play=function(j){if(h[j]){h[j]["pause"]=false}return g};g.stop=function(){clearInterval(e);e=null;return g};g.start=function(){e=setInterval(c,d);return g};g.loop=c;g.get=function(j){if(j==="delay"){return d}if(j==="functionList"){return h}};g.set=function(j,m){if(j==="delay"){if(typeof m==="number"){d=Math.max(25,Math.min(m,200))}}};return g})()});STK.register("core.util.scrollTo",function(a){return function(c,m){if(!a.core.dom.isNode(c)){throw"core.dom.isNode need element as the first parameter"}var d=a.core.obj.parseParam({box:document.documentElement,top:0,step:2,onMoveStop:null},m);d.step=Math.max(2,Math.min(10,d.step));var b=[];var j=a.core.dom.position(c);var h;if(d.box==document.documentElement){h={t:0}}else{h=a.core.dom.position(d.box)}var e=Math.max(0,(j?j.t:0)-(h?h.t:0)-d.top);var f=d.box===document.documentElement?(d.box.scrollTop||document.body.scrollTop||window.pageYOffset):d.box.scrollTop;while(Math.abs(f-e)>d.step&&f!==0){b.push(Math.round(f+(e-f)*d.step/10));f=b[b.length-1]}if(!b.length){b.push(e)}var g=a.core.util.timer.add(function(){if(b.length){if(d.box===document.documentElement){window.scrollTo(0,b.shift())}else{d.box.scrollTop=b.shift()}}else{if(d.box===document.documentElement){window.scrollTo(0,e)}else{d.box.scrollTop=e}a.core.util.timer.remove(g);if(typeof d.onMoveStop==="function"){d.onMoveStop()}}})}});STK.register("core.util.stack",function(a){return function(){var c={};var b=[];c.add=function(d){b.push(d);return c};c.get=function(){if(b.length>0){return b.pop()}else{return false}};return c}});STK.register("core.util.swf",function(c){function a(j,m){var e=c.core.obj.parseParam({id:"swf_"+parseInt(Math.random()*10000,10),width:1,height:1,attrs:{},paras:{},flashvars:{},html:""},m);if(j==null){throw"swf: [sURL] 未定义";return}var h;var g=[];var f=[];for(h in e.attrs){f.push(h+'="'+e.attrs[h]+'" ')}var d=[];for(h in e.flashvars){d.push(h+"="+e.flashvars[h])}e.paras.flashvars=d.join("&");if(c.IE){g.push('');for(h in e.paras){g.push('')}g.push("")}else{g.push('")}e.html=g.join("");return e}var b={};b.create=function(e,g,h){var f=c.E(e);if(f==null){throw"swf: ["+e+"] 未找到";return}var d=a(g,h);f.innerHTML=d.html;return c.E(d.id)};b.html=function(e,f){var d=a(e,f);return d.html};b.check=function(){var e=-1;if(c.IE){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");e=d.GetVariable("$version")}catch(f){}}else{if(navigator.plugins["Shockwave Flash"]){e=navigator.plugins["Shockwave Flash"]["description"]}}return e};return b});STK.register("core.util.easyTemplate",function(b){var a=function(e,g){if(!e){return""}if(e!==a.template){a.template=e;a.aStatement=a.parsing(a.separate(e))}var c=a.aStatement;var f=function(d){if(d){g=d}return arguments.callee};f.toString=function(){return(new Function(c[0],c[1]))(g)};return f};a.separate=function(c){var e=/\\'/g;var d=c.replace(/(<(\/?)#(.*?(?:\(.*?\))*)>)|(')|([\r\n\t])|(\$\{([^\}]*?)\})/g,function(m,j,s,r,q,p,o,n){if(j){return"{|}"+(s?"-":"+")+r+"{|}"}if(q){return"\\'"}if(p){return""}if(o){return"'+("+n.replace(e,"'")+")+'"}});return d};a.parsing=function(o){var n,e,h,d,g,f,j,m=["var aRet = [];"];j=o.split(/\{\|\}/);var c=/\s/;while(j.length){h=j.shift();if(!h){continue}g=h.charAt(0);if(g!=="+"&&g!=="-"){h="'"+h+"'";m.push("aRet.push("+h+");");continue}d=h.split(c);switch(d[0]){case"+et":n=d[1];e=d[2];m.push('aRet.push("");');break;case"-et":m.push('aRet.push("");');break;case"+if":d.splice(0,1);m.push("if"+d.join(" ")+"{");break;case"+elseif":d.splice(0,1);m.push("}else if"+d.join(" ")+"{");break;case"-if":m.push("}");break;case"+else":m.push("}else{");break;case"+list":m.push("if("+d[1]+".constructor === Array){with({i:0,l:"+d[1]+".length,"+d[3]+"_index:0,"+d[3]+":null}){for(i=l;i--;){"+d[3]+"_index=(l-i-1);"+d[3]+"="+d[1]+"["+d[3]+"_index];");break;case"-list":m.push("}}}");break;default:break}}m.push('return aRet.join("");');return[e,m.join("")]};return a});STK.register("core.util.storage",function(d){var a=window.localStorage;if(a){return{get:function(e){return unescape(a.getItem(e))},set:function(e,g,h){a.setItem(e,escape(g))},del:function(e){a.removeItem(e)},clear:function(){a.clear()},getAll:function(){var e=a.length,h=null,j=[];for(var g=0;g-1){(E.styleSheet||E.sheet).removeImport(sheetID);G.splice(sheetID,1)}}else{j.core.dom.removeNode(j.E(H))}delete f[m[H].cssURL];delete m[H]};var d=function(F,I,H){for(var G in g){if(!j.E(G)){delete g[G]}}g[F]={js:{},css:{}};if(H){for(var G=0,E=H.length;G1){return false}return true};var C=function(F){var E=f[F].list;if(E){for(var G=0;G0){setTimeout(I,10)}else{j.log(F+"timeout!");j.core.util.hideContainer.removeChild(G);C(F);n(E);v(E,F)}};setTimeout(I,50)};var q=function(G,F){var E=D+G;if(!x(E,F)){return}j.core.io.scriptLoader({url:E,onComplete:function(){C(E)},onTimeout:function(){j.log(E+"timeout!");delete f[E]}})};var b=function(F,E){if(!y[F]){y[F]=E}};var h=function(E){if(E){if(y[E]){try{A[E]||(A[E]=y[E](j))}catch(G){j.log(E,G)}}else{j.log("start:ns="+E+" ,have not been registed")}return}var F=[];for(E in y){F.push(E)}j.core.func.timedChunk(F,{process:function(H){try{A[H]||(A[H]=y[H](j))}catch(I){j.log(H,I)}}})};var t=function(E){var F=1,M,L,K,I,G,O,H;E=E||{};L=E.pid;K=E.html;G=E.js?[].concat(E.js):[];I=E.css?[].concat(E.css):[];if(L==undefined){j.log("node pid["+L+"] is undefined");return}d(L,G,I);O=function(){if(--F>0){return}B(L,function(P){(K!=undefined)&&(P.innerHTML=K);if(G.length>0){H()}a()})};H=function(P){if(G.length>0){q(G.shift(),H)}if(P&&P.indexOf("/pl/")!=-1){var Q=P.replace(/^.*?\/(pl\/.*)\.js\??.*$/,"$1").replace(/\//g,".");w(Q);h(Q)}};if(I.length>0){F+=I.length;for(var J=0,N;(N=I[J]);J++){u({url:N,load_ID:"js_"+N.replace(/^\/?(.*)\.css\??.*$/i,"$1").replace(/\//g,"_"),complete:O,pid:L})}}O()};var w=function(E){if(E){if(A[E]){j.log("destroy:"+E);try{A[E].destroy()}catch(F){j.log(F)}delete A[E]}return}for(E in A){j.log("destroy:"+E);try{A[E]&&A[E].destroy&&A[E].destroy()}catch(F){j.log(E,F)}}A={}};var o={register:b,start:h,view:t,clear:w,destroy:function(){o.clear();f={};A={};y={};e=undefined}};j.core.dom.ready(function(){j.core.evt.addEvent(window,"unload",function(){j.core.evt.removeEvent(window,"unload",arguments.callee);o.destroy()})});return o});(function(){var b=STK.core;var c={tween:b.ani.tween,tweenArche:b.ani.tweenArche,arrCopy:b.arr.copy,arrClear:b.arr.clear,hasby:b.arr.hasby,unique:b.arr.unique,foreach:b.arr.foreach,isArray:b.arr.isArray,inArray:b.arr.inArray,arrIndexOf:b.arr.indexOf,findout:b.arr.findout,domNext:b.dom.next,domPrev:b.dom.prev,isNode:b.dom.isNode,addHTML:b.dom.addHTML,insertHTML:b.dom.insertHTML,setXY:b.dom.setXY,contains:b.dom.contains,position:b.dom.position,trimNode:b.dom.trimNode,insertAfter:b.dom.insertAfter,insertBefore:b.dom.insertBefore,removeNode:b.dom.removeNode,replaceNode:b.dom.replaceNode,Ready:b.dom.ready,setStyle:b.dom.setStyle,setStyles:b.dom.setStyles,getStyle:b.dom.getStyle,addClassName:b.dom.addClassName,hasClassName:b.dom.hasClassName,removeClassName:b.dom.removeClassName,builder:b.dom.builder,cascadeNode:b.dom.cascadeNode,selector:b.dom.selector,sizzle:b.dom.sizzle,addEvent:b.evt.addEvent,custEvent:b.evt.custEvent,removeEvent:b.evt.removeEvent,fireEvent:b.evt.fireEvent,fixEvent:b.evt.fixEvent,getEvent:b.evt.getEvent,stopEvent:b.evt.stopEvent,delegatedEvent:b.evt.delegatedEvent,preventDefault:b.evt.preventDefault,hotKey:b.evt.hotKey,memorize:b.func.memorize,bind:b.func.bind,getType:b.func.getType,methodBefore:b.func.methodBefore,timedChunk:b.func.timedChunk,funcEmpty:b.func.empty,ajax:b.io.ajax,jsonp:b.io.jsonp,ijax:b.io.ijax,scriptLoader:b.io.scriptLoader,require:b.io.require,jsonInclude:b.json.include,jsonCompare:b.json.compare,jsonClone:b.json.clone,jsonToQuery:b.json.jsonToQuery,queryToJson:b.json.queryToJson,jsonToStr:b.json.jsonToStr,strToJson:b.json.strToJson,objIsEmpty:b.obj.isEmpty,beget:b.obj.beget,cascade:b.obj.cascade,objSup:b.obj.sup,parseParam:b.obj.parseParam,bLength:b.str.bLength,dbcToSbc:b.str.dbcToSbc,leftB:b.str.leftB,trim:b.str.trim,encodeHTML:b.str.encodeHTML,decodeHTML:b.str.decodeHTML,parseURL:b.str.parseURL,parseHTML:b.str.parseHTML,queryString:b.str.queryString,htmlToJson:b.util.htmlToJson,cookie:b.util.cookie,drag:b.util.drag,timer:b.util.timer,jobsM:b.util.jobsM,listener:b.util.listener,winSize:b.util.winSize,pageSize:b.util.pageSize,templet:b.util.templet,queue:b.util.queue,stack:b.util.stack,swf:b.util.swf,URL:b.util.URL,scrollPos:b.util.scrollPos,scrollTo:b.util.scrollTo,getUniqueKey:b.util.getUniqueKey,storage:b.util.storage,pageletM:b.util.pageletM};for(var a in c){STK.regShort(a,c[a])}})();