/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,q=Object.prototype.toString,g=false,f=true,o=/\\/g,u=/\W/;[0,0].sort(function(){f=false;return 0});var c=function(A,v,D,E){D=D||[];v=v||document;var G=v;if(v.nodeType!==1&&v.nodeType!==9){return[]}if(!A||typeof A!=="string"){return D}var x,I,L,w,H,K,J,C,z=true,y=c.isXML(v),B=[],F=A;do{m.exec("");x=m.exec(F);if(x){F=x[3];B.push(x[1]);if(x[2]){w=x[3];break}}}while(x);if(B.length>1&&h.exec(A)){if(B.length===2&&j.relative[B[0]]){I=r(B[0]+B[1],v)}else{I=j.relative[B[0]]?[v]:c(B.shift(),v);while(B.length){A=B.shift();if(j.relative[A]){A+=B.shift()}I=r(A,I)}}}else{if(!E&&B.length>1&&v.nodeType===9&&!y&&j.match.ID.test(B[0])&&!j.match.ID.test(B[B.length-1])){H=c.find(B.shift(),v,y);v=H.expr?c.filter(H.expr,H.set)[0]:H.set[0]}if(v){H=E?{expr:B.pop(),set:k(E)}:c.find(B.pop(),B.length===1&&(B[0]==="~"||B[0]==="+")&&v.parentNode?v.parentNode:v,y);I=H.expr?c.filter(H.expr,H.set):H.set;if(B.length>0){L=k(I)}else{z=false}while(B.length){K=B.pop();J=K;if(!j.relative[K]){K=""}else{J=B.pop()}if(J==null){J=v}j.relative[K](L,J,y)}}else{L=B=[]}}if(!L){L=I}if(!L){c.error(K||A)}if(q.call(L)==="[object Array]"){if(!z){D.push.apply(D,L)}else{if(v&&v.nodeType===1){for(C=0;L[C]!=null;C++){if(L[C]&&(L[C]===true||L[C].nodeType===1&&c.contains(v,L[C]))){D.push(I[C])}}}else{for(C=0;L[C]!=null;C++){if(L[C]&&L[C].nodeType===1){D.push(I[C])}}}}}else{k(L,D)}if(w){c(w,G,D,E);c.uniqueSort(D)}return D};c.uniqueSort=function(w){if(p){g=f;w.sort(p);if(g){for(var v=1;v<w.length;v++){if(w[v]===w[v-1]){w.splice(v--,1)}}}}return w};c.matches=function(v,w){return c(v,null,null,w)};c.matchesSelector=function(v,w){return c(w,null,null,[v]).length>0};c.find=function(C,v,D){var B;if(!C){return[]}for(var y=0,x=j.order.length;y<x;y++){var z,A=j.order[y];if((z=j.leftMatch[A].exec(C))){var w=z[1];z.splice(1,1);if(w.substr(w.length-1)!=="\\"){z[1]=(z[1]||"").replace(o,"");B=j.find[A](z,v,D);if(B!=null){C=C.replace(j.match[A],"");break}}}}if(!B){B=typeof v.getElementsByTagName!=="undefined"?v.getElementsByTagName("*"):[]}return{set:B,expr:C}};c.filter=function(G,F,J,z){var B,v,x=G,L=[],D=F,C=F&&F[0]&&c.isXML(F[0]);while(G&&F.length){for(var E in j.filter){if((B=j.leftMatch[E].exec(G))!=null&&B[2]){var K,I,w=j.filter[E],y=B[1];v=false;B.splice(1,1);if(y.substr(y.length-1)==="\\"){continue}if(D===L){L=[]}if(j.preFilter[E]){B=j.preFilter[E](B,D,J,L,z,C);if(!B){v=K=true}else{if(B===true){continue}}}if(B){for(var A=0;(I=D[A])!=null;A++){if(I){K=w(I,B,A,D);var H=z^!!K;if(J&&K!=null){if(H){v=true}else{D[A]=false}}else{if(H){L.push(I);v=true}}}}}if(K!==undefined){if(!J){D=L}G=G.replace(j.match[E],"");if(!v){return[]}break}}}if(G===x){if(v==null){c.error(G)}else{break}}x=G}return D};c.error=function(v){throw"Syntax error, unrecognized expression: "+v};var j=c.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(v){return v.getAttribute("href")},type:function(v){return v.getAttribute("type")}},relative:{"+":function(B,w){var y=typeof w==="string",A=y&&!u.test(w),C=y&&!A;if(A){w=w.toLowerCase()}for(var x=0,v=B.length,z;x<v;x++){if((z=B[x])){while((z=z.previousSibling)&&z.nodeType!==1){}B[x]=C||z&&z.nodeName.toLowerCase()===w?z||false:z===w}}if(C){c.filter(w,B,true)}},">":function(B,w){var A,z=typeof w==="string",x=0,v=B.length;if(z&&!u.test(w)){w=w.toLowerCase();for(;x<v;x++){A=B[x];if(A){var y=A.parentNode;B[x]=y.nodeName.toLowerCase()===w?y:false}}}else{for(;x<v;x++){A=B[x];if(A){B[x]=z?A.parentNode:A.parentNode===w}}if(z){c.filter(w,B,true)}}},"":function(y,w,A){var z,x=n++,v=s;if(typeof w==="string"&&!u.test(w)){w=w.toLowerCase();z=w;v=a}v("parentNode",w,x,y,z,A)},"~":function(y,w,A){var z,x=n++,v=s;if(typeof w==="string"&&!u.test(w)){w=w.toLowerCase();z=w;v=a}v("previousSibling",w,x,y,z,A)}},find:{ID:function(w,x,y){if(typeof x.getElementById!=="undefined"&&!y){var v=x.getElementById(w[1]);return v&&v.parentNode?[v]:[]}},NAME:function(x,A){if(typeof A.getElementsByName!=="undefined"){var w=[],z=A.getElementsByName(x[1]);for(var y=0,v=z.length;y<v;y++){if(z[y].getAttribute("name")===x[1]){w.push(z[y])}}return w.length===0?null:w}},TAG:function(v,w){if(typeof w.getElementsByTagName!=="undefined"){return w.getElementsByTagName(v[1])}}},preFilter:{CLASS:function(y,w,x,v,B,C){y=" "+y[1].replace(o,"")+" ";if(C){return y}for(var z=0,A;(A=w[z])!=null;z++){if(A){if(B^(A.className&&(" "+A.className+" ").replace(/[\t\n\r]/g," ").indexOf(y)>=0)){if(!x){v.push(A)}}else{if(x){w[z]=false}}}}return false},ID:function(v){return v[1].replace(o,"")},TAG:function(w,v){return w[1].replace(o,"").toLowerCase()},CHILD:function(v){if(v[1]==="nth"){if(!v[2]){c.error(v[0])}v[2]=v[2].replace(/^\+|\s*/g,"");var w=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(v[2]==="even"&&"2n"||v[2]==="odd"&&"2n+1"||!/\D/.test(v[2])&&"0n+"+v[2]||v[2]);v[2]=(w[1]+(w[2]||1))-0;v[3]=w[3]-0}else{if(v[2]){c.error(v[0])}}v[0]=n++;return v},ATTR:function(z,w,x,v,A,B){var y=z[1]=z[1].replace(o,"");if(!B&&j.attrMap[y]){z[1]=j.attrMap[y]}z[4]=(z[4]||z[5]||"").replace(o,"");if(z[2]==="~="){z[4]=" "+z[4]+" "}return z},PSEUDO:function(z,w,x,v,A){if(z[1]==="not"){if((m.exec(z[3])||"").length>1||/^\w/.test(z[3])){z[3]=c(z[3],null,null,w)}else{var y=c.filter(z[3],w,x,true^A);if(!x){v.push.apply(v,y)}return false}}else{if(j.match.POS.test(z[0])||j.match.CHILD.test(z[0])){return true}}return z},POS:function(v){v.unshift(true);return v}},filters:{enabled:function(v){return v.disabled===false&&v.type!=="hidden"},disabled:function(v){return v.disabled===true},checked:function(v){return v.checked===true},selected:function(v){if(v.parentNode){v.parentNode.selectedIndex}return v.selected===true},parent:function(v){return !!v.firstChild},empty:function(v){return !v.firstChild},has:function(x,w,v){return !!c(v[3],x).length},header:function(v){return(/h\d/i).test(v.nodeName)},text:function(x){var v=x.getAttribute("type"),w=x.type;return x.nodeName.toLowerCase()==="input"&&"text"===w&&(v===w||v===null)},radio:function(v){return v.nodeName.toLowerCase()==="input"&&"radio"===v.type},checkbox:function(v){return v.nodeName.toLowerCase()==="input"&&"checkbox"===v.type},file:function(v){return v.nodeName.toLowerCase()==="input"&&"file"===v.type},password:function(v){return v.nodeName.toLowerCase()==="input"&&"password"===v.type},submit:function(w){var v=w.nodeName.toLowerCase();return(v==="input"||v==="button")&&"submit"===w.type},image:function(v){return v.nodeName.toLowerCase()==="input"&&"image"===v.type},reset:function(w){var v=w.nodeName.toLowerCase();return(v==="input"||v==="button")&&"reset"===w.type},button:function(w){var v=w.nodeName.toLowerCase();return v==="input"&&"button"===w.type||v==="button"},input:function(v){return(/input|select|textarea|button/i).test(v.nodeName)},focus:function(v){return v===v.ownerDocument.activeElement}},setFilters:{first:function(w,v){return v===0},last:function(x,w,v,y){return w===y.length-1},even:function(w,v){return v%2===0},odd:function(w,v){return v%2===1},lt:function(x,w,v){return w<v[3]-0},gt:function(x,w,v){return w>v[3]-0},nth:function(x,w,v){return v[3]-0===w},eq:function(x,w,v){return v[3]-0===w}},filter:{PSEUDO:function(x,C,B,D){var v=C[1],w=j.filters[v];if(w){return w(x,B,C,D)}else{if(v==="contains"){return(x.textContent||x.innerText||c.getText([x])||"").indexOf(C[3])>=0}else{if(v==="not"){var y=C[3];for(var A=0,z=y.length;A<z;A++){if(y[A]===x){return false}}return true}else{c.error(v)}}}},CHILD:function(v,y){var B=y[1],w=v;switch(B){case"only":case"first":while((w=w.previousSibling)){if(w.nodeType===1){return false}}if(B==="first"){return true}w=v;case"last":while((w=w.nextSibling)){if(w.nodeType===1){return false}}return true;case"nth":var x=y[2],E=y[3];if(x===1&&E===0){return true}var A=y[0],D=v.parentNode;if(D&&(D.sizcache!==A||!v.nodeIndex)){var z=0;for(w=D.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++z}}D.sizcache=A}var C=v.nodeIndex-E;if(x===0){return C===0}else{return(C%x===0&&C/x>=0)}}},ID:function(w,v){return w.nodeType===1&&w.getAttribute("id")===v},TAG:function(w,v){return(v==="*"&&w.nodeType===1)||w.nodeName.toLowerCase()===v},CLASS:function(w,v){return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(v)>-1},ATTR:function(A,y){var x=y[1],v=j.attrHandle[x]?j.attrHandle[x](A):A[x]!=null?A[x]:A.getAttribute(x),B=v+"",z=y[2],w=y[4];return v==null?z==="!=":z==="="?B===w:z==="*="?B.indexOf(w)>=0:z==="~="?(" "+B+" ").indexOf(w)>=0:!w?B&&v!==false:z==="!="?B!==w:z==="^="?B.indexOf(w)===0:z==="$="?B.substr(B.length-w.length)===w:z==="|="?B===w||B.substr(0,w.length+1)===w+"-":false},POS:function(z,w,x,A){var v=w[2],y=j.setFilters[v];if(y){return y(z,x,w,A)}}}};var h=j.match.POS,b=function(w,v){return"\\"+(v-0+1)};for(var d in j.match){j.match[d]=new RegExp(j.match[d].source+(/(?![^\[]*\])(?![^\(]*\))/.source));j.leftMatch[d]=new RegExp(/(^(?:.|\r|\n)*?)/.source+j.match[d].source.replace(/\\(\d+)/g,b))}var k=function(w,v){w=Array.prototype.slice.call(w,0);if(v){v.push.apply(v,w);return v}return w};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(t){k=function(z,y){var x=0,w=y||[];if(q.call(z)==="[object Array]"){Array.prototype.push.apply(w,z)}else{if(typeof z.length==="number"){for(var v=z.length;x<v;x++){w.push(z[x])}}else{for(;z[x];x++){w.push(z[x])}}}return w}}var p,l;if(document.documentElement.compareDocumentPosition){p=function(w,v){if(w===v){g=true;return 0}if(!w.compareDocumentPosition||!v.compareDocumentPosition){return w.compareDocumentPosition?-1:1}return w.compareDocumentPosition(v)&4?-1:1}}else{p=function(D,C){if(D===C){g=true;return 0}else{if(D.sourceIndex&&C.sourceIndex){return D.sourceIndex-C.sourceIndex}}var A,w,x=[],v=[],z=D.parentNode,B=C.parentNode,E=z;if(z===B){return l(D,C)}else{if(!z){return -1}else{if(!B){return 1}}}while(E){x.unshift(E);E=E.parentNode}E=B;while(E){v.unshift(E);E=E.parentNode}A=x.length;w=v.length;for(var y=0;y<A&&y<w;y++){if(x[y]!==v[y]){return l(x[y],v[y])}}return y===A?l(D,v[y],-1):l(x[y],C,1)};l=function(w,v,x){if(w===v){return x}var y=w.nextSibling;while(y){if(y===v){return -1}y=y.nextSibling}return 1}}c.getText=function(v){var w="",y;for(var x=0;v[x];x++){y=v[x];if(y.nodeType===3||y.nodeType===4){w+=y.nodeValue}else{if(y.nodeType!==8){w+=c.getText(y.childNodes)}}}return w};(function(){var w=document.createElement("div"),x="script"+(new Date()).getTime(),v=document.documentElement;w.innerHTML="<a name='"+x+"'/>";v.insertBefore(w,v.firstChild);if(document.getElementById(x)){j.find.ID=function(z,A,B){if(typeof A.getElementById!=="undefined"&&!B){var y=A.getElementById(z[1]);return y?y.id===z[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===z[1]?[y]:undefined:[]}};j.filter.ID=function(A,y){var z=typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id");return A.nodeType===1&&z&&z.nodeValue===y}}v.removeChild(w);v=w=null})();(function(){var v=document.createElement("div");v.appendChild(document.createComment(""));if(v.getElementsByTagName("*").length>0){j.find.TAG=function(w,A){var z=A.getElementsByTagName(w[1]);if(w[1]==="*"){var y=[];for(var x=0;z[x];x++){if(z[x].nodeType===1){y.push(z[x])}}z=y}return z}}v.innerHTML="<a href='#'></a>";if(v.firstChild&&typeof v.firstChild.getAttribute!=="undefined"&&v.firstChild.getAttribute("href")!=="#"){j.attrHandle.href=function(w){return w.getAttribute("href",2)}}v=null})();if(document.querySelectorAll){(function(){var v=c,y=document.createElement("div"),x="__sizzle__";y.innerHTML="<p class='TEST'></p>";if(y.querySelectorAll&&y.querySelectorAll(".TEST").length===0){return}c=function(J,A,E,I){A=A||document;if(!I&&!c.isXML(A)){var H=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(J);if(H&&(A.nodeType===1||A.nodeType===9)){if(H[1]){return k(A.getElementsByTagName(J),E)}else{if(H[2]&&j.find.CLASS&&A.getElementsByClassName){return k(A.getElementsByClassName(H[2]),E)}}}if(A.nodeType===9){if(J==="body"&&A.body){return k([A.body],E)}else{if(H&&H[3]){var D=A.getElementById(H[3]);if(D&&D.parentNode){if(D.id===H[3]){return k([D],E)}}else{return k([],E)}}}try{return k(A.querySelectorAll(J),E)}catch(F){}}else{if(A.nodeType===1&&A.nodeName.toLowerCase()!=="object"){var B=A,C=A.getAttribute("id"),z=C||x,L=A.parentNode,K=/^\s*[+~]/.test(J);if(!C){A.setAttribute("id",z)}else{z=z.replace(/'/g,"\\$&")}if(K&&L){A=A.parentNode}try{if(!K||L){return k(A.querySelectorAll("[id='"+z+"'] "+J),E)}}catch(G){}finally{if(!C){B.removeAttribute("id")}}}}}return v(J,A,E,I)};for(var w in v){c[w]=v[w]}y=null})()}(function(){var v=document.documentElement,x=v.matchesSelector||v.mozMatchesSelector||v.webkitMatchesSelector||v.msMatchesSelector;if(x){var z=!x.call(document.createElement("div"),"div"),w=false;try{x.call(document.documentElement,"[test!='']:sizzle")}catch(y){w=true}c.matchesSelector=function(B,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!c.isXML(B)){try{if(w||!j.match.PSEUDO.test(D)&&!/!=/.test(D)){var A=x.call(B,D);if(A||!z||B.document&&B.document.nodeType!==11){return A}}}catch(C){}}return c(D,null,null,[B]).length>0}}})();(function(){var v=document.createElement("div");v.innerHTML="<div class='test e'></div><div class='test'></div>";if(!v.getElementsByClassName||v.getElementsByClassName("e").length===0){return}v.lastChild.className="e";if(v.getElementsByClassName("e").length===1){return}j.order.splice(1,0,"CLASS");j.find.CLASS=function(w,x,y){if(typeof x.getElementsByClassName!=="undefined"&&!y){return x.getElementsByClassName(w[1])}};v=null})();function a(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var v=E[y];if(v){var z=false;v=v[w];while(v){if(v.sizcache===A){z=E[v.sizset];break}if(v.nodeType===1&&!D){v.sizcache=A;v.sizset=y}if(v.nodeName.toLowerCase()===B){z=v;break}v=v[w]}E[y]=z}}}function s(w,B,A,E,C,D){for(var y=0,x=E.length;y<x;y++){var v=E[y];if(v){var z=false;v=v[w];while(v){if(v.sizcache===A){z=E[v.sizset];break}if(v.nodeType===1){if(!D){v.sizcache=A;v.sizset=y}if(typeof B!=="string"){if(v===B){z=true;break}}else{if(c.filter(B,[v]).length>0){z=v;break}}}v=v[w]}E[y]=z}}}if(document.documentElement.contains){c.contains=function(w,v){return w!==v&&(w.contains?w.contains(v):true)}}else{if(document.documentElement.compareDocumentPosition){c.contains=function(w,v){return !!(w.compareDocumentPosition(v)&16)}}else{c.contains=function(){return false}}}c.isXML=function(v){var w=(v?v.ownerDocument||v:0).documentElement;return w?w.nodeName!=="HTML":false};var r=function(v,C){var A,y=[],z="",x=C.nodeType?[C]:C;while((A=j.match.PSEUDO.exec(v))){z+=A[0];v=v.replace(j.match.PSEUDO,"")}v=j.relative[v]?v+"*":v;for(var B=0,w=x.length;B<w;B++){c(v,x[B],y)}return c.filter(z,y)};window.Sizzle=c})();try{document.domain="verycd.com"}catch(e){}if(typeof(VeryCD)!="object"){var VeryCD={}}VeryCD.userAgent=navigator.userAgent.toLowerCase();VeryCD.is_ios=/(iphone|ipad|ipod)/i.test(VeryCD.userAgent)?true:false;VeryCD.is_firefox=VeryCD.userAgent.indexOf("firefox")>=0?true:false;VeryCD.is_opera=navigator.appName.indexOf("Opera")>=0?true:false;VeryCD.is_safari=VeryCD.userAgent.indexOf("safari")>=0?true:false;VeryCD.is_chrome=VeryCD.userAgent.indexOf("chrome")>=0?true:false;if(VeryCD.is_chrome){VeryCD.is_safari=false}VeryCD.is_ie=navigator.appName=="Microsoft Internet Explorer"?true:false;VeryCD.ie=(VeryCD.userAgent.indexOf("msie")!=-1&&!VeryCD.is_opera)&&VeryCD.userAgent.substr(VeryCD.userAgent.indexOf("msie")+5,3);VeryCD.DOM=(document.compatMode&&document.compatMode=="CSS1Compat")?document.documentElement:document.body;VeryCD.$=function(a){return document.getElementById(a)};var $=VeryCD.$;var trace=function(){if(typeof console=="undefined"){return false}if(arguments.length>1){console.group("Debug",123,456)}for(var a=0;a<arguments.length;a++){console.info(arguments[a])}if(arguments.length>1){console.groupEnd()}};if(typeof console=="undefined"){console={error:function(){},debug:function(){},info:function(){},log:function(){},warn:function(){},trace:function(){},group:function(){},groupEnd:function(){}}}Number.prototype.bytes=String.prototype.bytes=function(d){d=d||["B","KB","MB","GB","TB","PB"];var f=0;var b=this-0;while(b>=1024){f++;b=b/1024}return(Math.round(b*10)/10)+""+d[f]};String.prototype.trim=function(b){if(b==""||b==null){return this.replace(/(^\s*)|(\s*$)/g,"")}else{var a=new RegExp("(^"+b+")|("+b+"$)","g");return this.replace(a,"")}};String.prototype.vcImage=function(d,g,c){var b=/(\d+)\/([0-9a-z]{32}\d+)/i;var f="";var a="";var h=this;if(f=h.match(b)){a="http://i-"+f[1]+".vcimg.com";if(typeof(g)!="undefined"&&g!=""){a+="/"+g}a+="/"+f[2];if(typeof(d)!="undefined"&&d!=""){a+="("+d+")"}if(typeof(c)!="undefined"&&c!=""){a+="/"+c}else{if(typeof(d)!="undefined"&&d!=""){a+="/thumb.jpg"}else{a+="/origin.jpg"}}return a}else{return VeryCD.Url.Statics.V4+"base/images/noimg-125x175.jpg"}};Date.prototype.format=function(h,c){h=h||"Y-m-d H:i:s";if(!(c>=-12&&c<=12)){c=8}c=c*60*60*1000;var g=new Date(this.getTime());g.setUTCMilliseconds(c);var a={Y:g.getUTCFullYear(),m:g.getUTCMonth()+1,d:g.getUTCDate(),H:g.getUTCHours(),i:g.getUTCMinutes(),s:g.getUTCSeconds()};for(var b in a){if(a[b]<10){a[b]="0"+a[b]}var f=new RegExp(b,"g");h=h.replace(f,a[b])}return h};VeryCD.$import=function(jsfile,onloadfun,defer){VeryCD._IMPORT_JSFILE=VeryCD._IMPORT_JSFILE||{};if(!VeryCD._IMPORT_JSFILE[jsfile]){var s="script";VeryCD._IMPORT_JSFILE[jsfile]=1;var obj=document.createElement("script");obj.src=jsfile;if(defer){obj.defer="defer";obj.setAttribute("defer","defer")}if(onloadfun){if(typeof onloadfun!="function"){var onloadfunstr=onloadfun;onloadfun=function(){try{eval(onloadfunstr)}catch(e){}}}if(VeryCD.is_ie){obj.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){onloadfun()}}}else{obj.onload=onloadfun}}var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(obj,s)}};VeryCD.Track=function(a){_gaq.push(["_trackPageview",a]);return false};VeryCD.iniHtml=function(a){a=a||document;VeryCD._iniHtml_run=VeryCD._iniHtml_run||[];for(var b=0;b<VeryCD._iniHtml_run.length;b++){if(typeof VeryCD._iniHtml_run[b]=="function"){try{VeryCD._iniHtml_run[b](a)}catch(c){}}}var d=VeryCD._iniHtml_run_Once||[];VeryCD._iniHtml_run_Once=[];for(var b=0;b<d.length;b++){if(typeof d[b]=="function"){try{d[b](a)}catch(c){}}}};VeryCD.iniHtmlAdd=function(a){if(typeof a=="function"){VeryCD._iniHtml_run=VeryCD._iniHtml_run||[];VeryCD._iniHtml_run.push(a)}};VeryCD.iniHtmlOnce=function(a){if(typeof a=="function"){VeryCD._iniHtml_run_Once=VeryCD._iniHtml_run_Once||[];VeryCD._iniHtml_run_Once.push(a)}};VeryCD.iniHtmlOnce(function(){VeryCD.DOM=(document.compatMode&&document.compatMode=="CSS1Compat")?document.documentElement:document.body});VeryCD.cookie={get:function(b){var f=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var g=a[d];while(g.charAt(0)==" "){g=g.substring(1,g.length)}if(g.indexOf(f)==0){return decodeURIComponent(g.substring(f.length,g.length))}}return null},set:function(c,f,h,g,d){var a="";if(h){var b=new Date();b.setTime(b.getTime()+(h*24*60*60*1000));a=";expires="+b.toGMTString()}if(g==null){g="/"}g=g?";path="+g:"";d=(d==null)?"":";domain="+d;document.cookie=c+"="+encodeURIComponent(f)+a+g+d},del:function(a,b){var c=new Date();c.setTime(c.getTime()-99999);b=(b==null)?"":";domain="+b;document.cookie=a+"=''; expires="+c.toGMTString()+";path=/"+b}};VeryCD.Member={url:function(a){return"http://home.verycd.com/space.php?uid="+a},i_url:function(a){return VeryCD.Url.Root+"base/i/"+a+"/"},avatar:function(b,a){if(!b){b="0"}if(a!="big"&&a!="middle"){a="small"}b="_00000000"+b;b=b.substr(b.length-9);var f=b.substr(0,3);var d=b.substr(3,2);var c=b.substr(5,2);return"http://ucimg.vcimg.com/avatar/"+f+"/"+d+"/"+c+"/"+b.substr(b.length-2)+"_avatar_"+a+".jpg"},renew:function(){VeryCD.Member.Id=parseInt(VeryCD.cookie.get("member_id"));VeryCD.Member.Name=VeryCD.cookie.get("member_name");VeryCD.Member.GroupId=parseInt(VeryCD.cookie.get("mgroupId"))}};VeryCD.Member.renew();window.VeryCD.frameFrame=window.self;window.VeryCD.parentFrame=window.self;VeryCD._set_frame=function(){try{if(typeof(window.VeryCD.frameFrame.win)=="function"){window.VeryCD.parentFrame=window.parent}}catch(a){}VeryCD.parentFrame.VeryCD.frameFrame=window.self};VeryCD.alert=function(g,a,c,f,b){VeryCD._set_frame();if(typeof(g)!="object"){g={message:(g||"")}}g.width=g.width||a;g.height=g.height||c;g.title=g.title||f||"信息提示";g.handler=g.handler||b;if(!window.VeryCD.parentFrame.ymPrompt){window.alert(g.message);if(g.handler){try{g.handler("ok")}catch(d){}}}else{if(g._type=="errorInfo"){window.VeryCD.parentFrame.ymPrompt.errorInfo(g)}else{if(g._type=="succeedInfo"){window.VeryCD.parentFrame.ymPrompt.succeedInfo(g)}else{if(g._type=="win"){g.allowSelect=g.allowSelect||true;g.allowRightMenu=g.allowRightMenu||true;window.VeryCD.parentFrame.ymPrompt.win(g)}else{window.VeryCD.parentFrame.ymPrompt.alert(g)}}}if(window.VeryCD.parentFrame){window.VeryCD.parentFrame.VeryCD.iniHtml($("ym-window"))}}};VeryCD.succeed=function(f,a,c,d,b){if(typeof(f)!="object"){f={message:(f||"")}}f.title=f.title||"操作成功";f._type="succeedInfo";VeryCD.alert(f,a,c,d,b)};VeryCD.error=function(f,a,c,d,b){if(typeof(f)!="object"){f={message:(f||"")}}f.title=f.title||"错误提示";f._type="errorInfo";VeryCD.alert(f,a,c,d,b)};VeryCD.win=function(f,a,c,d,b){if(typeof(f)!="object"){f={message:(f||"")}}f._type="win";f.middlevalign=false;VeryCD.alert(f,a,c,d,b)};VeryCD.confirm=function(k,b,d,j,c){VeryCD._set_frame();if(typeof(k)!="object"){k={message:(k||"是否继续此操作？")}}k.width=k.width||b;k.height=k.height||d;k.title=k.title||"请确认";k.handler=k.handler||c;if(!VeryCD.parentFrame.ymPrompt){var a=window._confirm(k.message);if(!k.handler){return a}else{var f=false;try{f=k.handler(a?"ok":"cancel")}catch(g){}return f}}else{try{VeryCD.parentFrame.ymPrompt.close()}catch(g){}VeryCD.parentFrame.ymPrompt.confirmInfo(k,b,d,j,c)}};VeryCD.closewin=function(a,b){VeryCD._set_frame();try{VeryCD.parentFrame.ymPrompt.doHandler(a,b)}catch(c){}};VeryCD.Msg=function(c,a,j){j=j||3;if(a){VeryCD.cookie.set("flash_message_",c);document.location.href=a;setTimeout("document.location.reload();",500);return true}if(typeof c!="string"){c=VeryCD.cookie.get("flash_message_");if(c){VeryCD.cookie.del("flash_message_")}}if(c){var k=0;var m=0;var b;var f=$("verycd_show_msg_div_");if(VeryCD.is_ie&&VeryCD.ie<7){var d=setInterval(function(){var n=Math.ceil(Math.random()*10);f.style.bottom=n+"px";f.style.bottom="0px"},20)}var h=function(p){k++;m=b*k/20;var n=80-80*k/20;if(k<=20){f.style.left="-"+m+"px";f.style.opacity=n/100;f.style.filter="alpha(opacity="+n+")";setTimeout(function(){h(p)},10)}else{k=0;if(VeryCD.is_ie&&VeryCD.ie<7){clearInterval(d)}VeryCD._msgRunHidden=null;if(typeof p=="function"){try{p()}catch(o){}}}};if(VeryCD._msgRunHidden){clearTimeout(VeryCD._msgRunHidden);b=f.offsetWidth*0.2;h(function(){VeryCD.Msg(c,a,j)});return true}if(!f){f=document.createElement("div");f.style.cssText="z-index:111111;position:fixed;opacity:0.01;filter:alpha(opacity=1);_position:absolute;left:0;bottom:0px;padding:3px 12px;border:1px solid #ccc;overflow:hidden;background:#FF6600;width:27%;color:#fff;text-align:left;";f.id="verycd_show_msg_div_";document.body.appendChild(f)}f.innerHTML=c;b=f.offsetWidth*0.2;var g=b;var l=function(){k++;g=g*7/10;var n=80*k/20;if(k<=20){f.style.left="-"+g+"px";f.style.opacity=n/100;f.style.filter="alpha(opacity="+n+")";setTimeout(l,10)}else{f.style.left="0px";k=0;VeryCD._msgRunHidden=setTimeout(h,j*1000)}};setTimeout(l,500)}};VeryCD.iniHtmlOnce(function(){VeryCD.Msg()});VeryCD.popMsg=function(c,a,d){if(a){VeryCD.cookie.set("flash_pop_message_",c);document.location.href=a;setTimeout("document.location.reload();",500);return true}d=d||5;if(typeof c!="string"){c=VeryCD.cookie.get("flash_pop_message_");if(c){VeryCD.cookie.del("flash_pop_message_")}}if(!c){return false}if(VeryCD._pop_msg_timeout_show){clearTimeout(VeryCD._pop_msg_timeout_show);VeryCD._pop_msg_timeout_show=null}if(VeryCD._pop_msg_timeout_hidden){clearTimeout(VeryCD._pop_msg_timeout_hidden);VeryCD._pop_msg_timeout_hidden=null}var j=function(m,l){if(!$(m)){return}if(l>=0){l-=10;$(m).style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+l+")";$(m).style.opacity=l/100;VeryCD._pop_msg_timeout_show=setTimeout(function(){j(m,l)},50)}else{$(m).style.display="none";$(m).style.filter="";$(m).style.opacity=""}};var k=function(l,r,m,n){var o=(l-r)/10;var q=$("msgwin");var p=(parseInt(q.style.top)-o);if(p>r){q.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+m+")";q.style.opacity=m/100;q.style.top=p+"px";VeryCD._pop_msg_timeout_hidden=setTimeout(function(){k(l,r,m+=10,n)},10)}else{q.style.filter="";q.style.opacity="";VeryCD._pop_msg_timeout_show=setTimeout(function(){j("msgwin",100)},n)}};var h=$("msgwin");if(!h){var g=document.createElement("div");g.style.cssText='position:fixed;_position:absolute;left:0;z-index:100000;top:0;_top:expression((eval(document.compatMode &&document.compatMode=="CSS1Compat") ?documentElement.scrollTop:document.body.scrollTop));';document.body.insertBefore(g,document.body.getElementsByTagName("div")[0]);g.innerHTML='<div id="msgwin" style="position:absolute;display:none;"></div>';h=$("msgwin")}h.style.display="";h.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";h.style.opacity=0;h.innerHTML='<div class="popupmenu_layer">'+c+"</div>";VeryCD.iniHtml(h);var f=(document.documentElement.clientHeight/2);var b=(document.documentElement.clientHeight/5);VeryCD._pop_msg_timeout_show=setTimeout(function(){k(f,b,0,d*1000)},10);h.style.left=((document.documentElement.clientWidth-h.clientWidth)/2)+"px";h.style.top=f+"px"};VeryCD.iniHtmlOnce(function(){VeryCD.popMsg()});VeryCD.set_win_title=function(b){VeryCD._set_frame();try{VeryCD.parentFrame.VeryCD.$("ym-tl").firstChild.firstChild.firstChild.innerHTML=b}catch(a){}};VeryCD.resize_win=function(a,b){VeryCD._set_frame();try{VeryCD.parentFrame.ymPrompt.resizeWin(a,b)}catch(c){}};VeryCD.urlpath="/";VeryCD.ask_del=function(c,a,b){b=b||"您确认要删除此数据？";VeryCD.confirm(b,400,null,"删除确认",function(d){if(d=="ok"){goUrl(VeryCD.urlpath+a+"/"+c,"hiddenFrame")}})};VeryCD.show_loading=function(){var b=this.$("_verycd_loading_div_");if(!b){b=document.createElement("div");b.id="_verycd_loading_div_";b.style.cssText='z-index:10001;position: fixed;_position: absolute;top:0;left:0;text-align:center;width:100%;color:#111;font-size:14px;top:expression((eval(document.compatMode &&document.compatMode=="CSS1Compat") ?documentElement.scrollTop:document.body.scrollTop)+VeryCD._show_loading_ie6_top_);';b.innerHTML='<div style="display:inline-block;width:180px;text-align:left;"><div style="position: absolute;margin:-5px;width:180px;height:42px;background:#fff;opacity:0.8;filter:alpha(opacity=80);-moz-border-radius: 5px;-khtml-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;"></div><div style="position: absolute;"><img src="'+VeryCD.Url.Statics.V4+'global/images/loading_1.gif" align="absmiddle" /> 正在加载，请稍等...</div></div>';document.body.appendChild(b)}var a=VeryCD.DOM.clientHeight/2;VeryCD._show_loading_ie6_top_=a;b.style.top=a+"px";b.style.display=""};VeryCD.hidden_loading=function(){var a=this.$("_verycd_loading_div_");if(a){a.style.display="none"}};VeryCD.copy=function(c,b){if(this.is_ie){var a=window.clipboardData.setData("Text",c);if(a){if(b){VeryCD.alert(b)}return true}}return false};VeryCD.resizeDiv=function(b,j){var k=b.id;var g=false;if(!k){k=b.id="_resize_rand_"+new Date().getTime()+"_"+Math.ceil(Math.random()*100000000);g=true}VeryCD._resizeDiv_runNum=VeryCD._resizeDiv_runNum||{};if(VeryCD._resizeDiv_runNum[k]>0){return false}VeryCD._resizeDiv_runNum[k]=0;var f="hidden";if(b.style.display=="none"){f="show"}var h=b.offsetHeight;if(h==0){b.style.visibility="hidden";b.style.display="";h=b.offsetHeight;b.style.visibility=""}var c=b.style.overflow;b.style.display="";b.style.overflow="hidden";if(f=="show"){b.style.opacity=0;b.style.filter="alpha(opacity=0)"}var d=h;var a=function(){VeryCD._resizeDiv_runNum[k]++;var m=VeryCD._resizeDiv_runNum[k];d=d*4/5;var l;if(f=="show"){b.style.opacity=m*20/100;b.style.filter="alpha(opacity="+(m*10)+")";l=h-d}else{b.style.opacity=1-m*20/100;b.style.filter="alpha(opacity="+(100-m*10)+")";l=d}b.style.height=l+"px";if(m<=5){setTimeout(a,10)}else{if(f=="hidden"){b.style.display="none"}b.style.height="";b.style.opacity="";b.style.filter="";b.style.overflow=c;VeryCD._resizeDiv_runNum[k]=0;delete VeryCD._resizeDiv_runNum[k];if(j){try{j()}catch(n){}}if(g){b.id=""}}};a()};VeryCD.login=function(a){var b=new VeryCD.ajax("/base/ajax/login");b.method="POST";VeryCD._login_callback_fun=a;b.onCompletion=function(){var c=JSON.parse(this.response);if(typeof c=="object"){VeryCD.win({message:c.message,width:460,height:240,title:c.title});try{}catch(d){}}else{VeryCD.error("抱歉，返回数据错误，请重试！")}};b.runAJAX();return false};VeryCD.playlistlogin=function(a){var b=new VeryCD.ajax("/base/ajax/login");b.method="POST";VeryCD._login_callback_fun=a;b.onCompletion=function(){var c=JSON.parse(this.response);c.message=c.message.replace('style="padding:5px 0 0 60px;"','style="padding:5px 0 0 10px;"');if(typeof c=="object"){VeryCD.win({message:c.message,width:260,height:200,title:c.title,winPos:[1,100],showMask:false});try{$("win_username").focus()}catch(d){}}else{VeryCD.error("抱歉，返回数据错误，请重试！")}};b.runAJAX();return false};VeryCD.sigin=function(b,a){if(!b){return false}var c=new VeryCD.ajax(VeryCD.Url.Secure+"signin");c.method="POST";c.setform(b);a=a||VeryCD._login_callback_fun;VeryCD._login_callback_fun=null;c.onCompletion=function(){var d=this.responseJSON?this.responseJSON.status:false;var h=this.responseJSON?this.responseJSON.msg:"";if(d){VeryCD.Member.renew();if(typeof runOnAjaxLoginComplete=="function"){window.runOnAjaxLoginComplete()}else{window.location.reload()}if($("win_username")){VeryCD.closewin()}VeryCD.Msg("登录成功")}else{var f=this.responseJSON.info?this.responseJSON.info:"登录失败，请检查你的输入";if(f&&$("win_username")){$("errors_info").style.display="";$("ym-shadow").style.height="273px";$("ym-window").style.height="273px";$("ym-body-div").style.height="227px";$("errors_info").innerHTML=f}else{window.location.href=VeryCD.Url.Secure+"signin?continue="+window.location.href+"&error_code="+h}}if(a){try{a(d)}catch(g){}}};c.onError=function(){alert("login error")};c.runAJAX();return false};VeryCD._innerhtml_global_html_pool=[];VeryCD._innerhtml_global_script_pool=[];VeryCD._innerhtml_global_script_src_pool=[];VeryCD._innerhtml_global_lock_pool=[];VeryCD._innerhtml_innerhtml_lock=null;VeryCD._innerhtml_document_buffer="";VeryCD.innerHTML=function(c,a,b){if(!c.id){c.id="_innerhtml_tmpid_"+Math.ceil(Math.random()*100000000)}c.innerHTML=a;set_innerHTML(c.id,a)};var global_html_pool=[];var global_script_pool=[];var global_script_src_pool=[];var global_lock_pool=[];var innerhtml_lock=null;var document_buffer="";function set_innerHTML(k,g,b){if(innerhtml_lock==null){innerhtml_lock=k}else{if(typeof(b)=="undefined"){global_lock_pool[k+"_html"]=g;window.setTimeout("set_innerHTML('"+k+"', global_lock_pool['"+k+"_html']);",10);return}else{if(innerhtml_lock!=k){global_lock_pool[k+"_html"]=g;window.setTimeout("set_innerHTML('"+k+"', global_lock_pool['"+k+"_html'], "+b+");",10);return}}}function j(){return"script_"+(new Date()).getTime().toString(36)+Math.floor(Math.random()*100000000).toString(36)}document_buffer="";document.write=function(o){document_buffer+=o};document.writeln=function(o){document_buffer+=o+"\n"};global_html_pool=[];var d=[];g=g.split(/<\/script>/i);for(var f=0;f<g.length;f++){global_html_pool[f]=g[f].replace(/<script[\s\S]*$/ig,"");d[f]={text:"",src:""};d[f].text=g[f].substr(global_html_pool[f].length);d[f].src=d[f].text.substr(0,d[f].text.indexOf(">")+1);d[f].src=d[f].src.match(/src\s*=\s*(\"([^\"]*)\"|\'([^\']*)\'|([^\s]*)[\s>])/i);if(d[f].src){if(d[f].src[2]){d[f].src=d[f].src[2]}else{if(d[f].src[3]){d[f].src=d[f].src[3]}else{if(d[f].src[4]){d[f].src=d[f].src[4]}else{d[f].src=""}}}d[f].text=""}else{d[f].src="";d[f].text=d[f].text.substr(d[f].text.indexOf(">")+1);d[f].text=d[f].text.replace(/^\s*<\!--\s*/g,"")}}var n;if(typeof(b)=="undefined"){n=0}else{n=b}var m,c,a;for(var f=0;f<d.length;f++){var l="document_buffer += global_html_pool["+f+"];\n";m=document.createElement("script");if(d[f].src){m.src=d[f].src;if(typeof(global_script_src_pool[m.src])=="undefined"){global_script_src_pool[m.src]=true;n+=2000}else{n+=10}}else{m.text=d[f].text;n+=10}m.defer=true;m.type="text/javascript";m.id=j();global_script_pool[m.id]=m;c=l;c+="document.getElementsByTagName('head').item(0)";c+=".appendChild(global_script_pool['"+m.id+"']);\n";window.setTimeout(c,n);a="document.getElementsByTagName('head').item(0)";a+=".removeChild(document.getElementById('"+m.id+"'));\n";a+="delete global_script_pool['"+m.id+"'];\n";window.setTimeout(a,n+10000)}var h="if (document_buffer.match(/<\\/script>/i)) {\n";h+="set_innerHTML('"+k+"', document_buffer, "+n+");\n";h+="}\n";h+="else {\n";h+="innerhtml_lock = null;\n";h+="}";window.setTimeout(h,n)}VeryCD.tag=function(c,a,f,g,d){var j;if(g){if(typeof g=="object"){j=g}else{j=VeryCD.$(g)||document.body}}else{j=document.body}d=d||"now";var b=j.getElementsByTagName("li");for(var h=0;h<b.length;h++){if(b[h].id){if(b[h].id.substr(0,a.length+1)==a+"_"){var k=b[h].id.substr(a.length);var j=VeryCD.$(f+k);if(b[h].id!=c){b[h].className="";if(j){j.style.display="none"}}else{b[h].className=d;if(j){j.style.display=""}}}}}};VeryCD.isinFrame=function(){try{if(document.location!=parent.location&&parent.window.name.indexOf("framemain_")){return true}}catch(a){}return false};VeryCD.flash=function(c,a,s,q,d,m,g,r,f){f=f||false;c=c||"";var o=this.$(c);d=(!d)?"Transparent":"Opaque";m=(!m)?true:false;g=g||"";if(typeof r!="object"){r={}}r.allowscriptaccess=r.allowscriptaccess||"sameDomain";var n="",l="";for(var j in r){n+='<param name="'+j+'" value="'+r[j]+'">';l+=" "+j+'="'+r[j]+'"'}var b='<object id="'+(o?c+'_flash"':c)+'" filetype="swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+s+'" height="'+q+'"><param name="movie" value="'+a+'">'+(f?"":'<param name="wmode" value="'+d+'">')+(f?'<param name="allowFullScreen" value="true" />':"")+'<param name="menu" value="'+m+'"><param name="FlashVars" value="'+g+'">'+n+'<embed name="'+(o?c+"_flash":c)+'" src="'+a+'" width="'+s+'" height="'+q+'"'+(f?"":' wmode="'+d+'"')+'flashvars="'+g+'" menu="'+m+'"'+l+' type="application/x-shockwave-flash"'+(f?' allowFullScreen="true"':"")+" /></object>";if(o!=null){o.innerHTML=b}else{document.write(b)}};VeryCD.flash_version=function(){var a=0;var b=0;if(VeryCD.is_ie){var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(d){a=1;VSwf=d.GetVariable("$version");b=parseInt(VSwf.split(" ")[1].split(",")[0])}}else{if(navigator.plugins&&navigator.plugins.length>0){var d=navigator.plugins["Shockwave Flash"];if(d){a=1;var f=d.description.split(" ");for(var c=0;c<f.length;++c){if(isNaN(parseInt(f[c]))){continue}b=parseInt(f[c])}}}}if(a){return b}else{return false}};VeryCD.get_flash=function(a){if(document[a]){return document[a]}else{return this.$((a))}};VeryCD.ajax=function(file){this.domain_suffix_dot_num=1;this.sub_domain_proxy_file="ajax_proxy.html";this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.requestFile=file;this.vars=new Array();this.responseStatus=new Array(2);this.renewData=false;this.needresetvar=false};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){if(this.xmlhttp){return true}if(this.requestFile){if(this.requestFile.substr(0,7).toLowerCase()=="http://"||this.requestFile.substr(0,8).toLowerCase=="https://"){var host=this.requestFile.split("/")[2];if(host!=document.location.host){var domainArr=document.location.host.split(".");var requestFileDomainArr=host.split(".");var topdomain="";var is_same_domain=false;for(var i=0;i<=this.domain_suffix_dot_num;i++){if(domainArr[domainArr.length-i-1]==requestFileDomainArr[requestFileDomainArr.length-i-1]){topdomain=domainArr[domainArr.length-i-1]+"."+topdomain;is_same_domain=true}else{is_same_domain=false;break}}if(is_same_domain){this.top_domain=topdomain.substr(0,topdomain.length-1);this.createIframeAjax()}else{this.createFlashAjax()}return true}}}try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.createFlashAjax()}}};this.createIframeAjax=function(){var host=this.requestFile.split("/")[2];var subIframeSupperUrl=this.requestFile.split("/")[0]+"//"+this.requestFile.split("/")[2]+"/"+this.sub_domain_proxy_file;if(!this.iframeobj){var obj=VeryCD.$("_ajax_iframediv_"+host.replace(/\./g,"_"));if(!obj){obj=document.createElement("IFRAME");obj.id="_ajax_iframediv_"+host.replace(/\./g,"_");obj.style.cssText="display:none";obj.src=subIframeSupperUrl;obj.is_loading=false;obj.pageisloaded=false;obj.onload=obj.onreadystatechange=function(){if(this.readyState!="interactive"){obj.pageisloaded=true}};document.body.insertBefore(obj,$("header_div"))}this.iframeobj=obj}var time=new Date().getTime()+"_"+Math.round(Math.random()*10000);if(this.iframeobj.is_loading==true){var obj=document.createElement("IFRAME");obj.style.cssText="display:none";obj.id="_ajax_iframediv_iframe_"+host.replace(/\./g,"_")+"_"+time;obj.src=subIframeSupperUrl;obj.is_loading=false;obj.pageisloaded=false;document.body.insertBefore(obj,$("header_div"));obj.onload=obj.onreadystatechange=function(){if(this.readyState!="interactive"){obj.pageisloaded=true}};this.iframeobj=obj}var self=this;this.iframeobjajax=null;this.xmlhttp=new function(){var header=[];var method="GET";var url=null;var openb=null;var runnum=0;this.open=function(m,u,b){method=m||self.method;url=u||self.requestFile;openb=b};this.setRequestHeader=function(k,v){header[k]=v};this.send=function(urlstring){self.iframeobj.is_loading=true;var show_error=function(){self.iframeobj.is_loading=false;self.xmlhttp.readyState=4;self.xmlhttp.responseText="";self.xmlhttp.status="500";self.xmlhttp.onreadystatechange()};if(self.iframeobj.pageisloaded){try{var xmlhttp=self.iframeobj.contentWindow.xmlhttp()}catch(e){return show_error()}if(!xmlhttp){return show_error()}xmlhttp.open(method,url,openb);for(var i in header){try{xmlhttp.setRequestHeader(i,header[i])}catch(e){}}xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){self.xmlhttp.status=xmlhttp.status;self.xmlhttp.responseText=xmlhttp.responseText;self.iframeobj.is_loading=false}self.xmlhttp.readyState=xmlhttp.readyState;self.xmlhttp.onreadystatechange()};xmlhttp.send(urlstring);runnum=0}else{if(runnum<300){setTimeout(function(){self.xmlhttp.send(urlstring)},30)}else{show_error()}}runnum++}}};this.createFlashAjax=function(){if(!this.flashobj){var obj=VeryCD.$("_ajax_fdiv");if(!obj){obj=document.createElement("DIV");obj.id="_ajax_fdiv";obj.style.cssText="position:fixed;_position:absolute;top:100px;left:0px;opacity:0.01;";document.body.insertBefore(obj,$("header_div"))}if(!VeryCD.get_flash("_ajax_fdiv_flash")){VeryCD.flash("_ajax_fdiv","/base/images/swf/ajaxcdr.swf",1,1,null,null,null,{allowscriptaccess:"always",swliveconnect:"true",bgcolor:"#ffffff"})}this.flashobj=VeryCD.get_flash("_ajax_fdiv_flash")}var time=new Date().getTime()+"_"+Math.round(Math.random()*10000);if(this.flashobj.is_loading==true){obj=document.createElement("DIV");obj.id="_ajax_fdiv_"+time;obj.style.cssText="position:fixed;_position:absolute;top:100px;left:0px;opacity:0.01;";document.body.insertBefore(obj,$("header_div"));VeryCD.flash("_ajax_fdiv_"+time,"/base/images/swf/ajaxcdr.swf",1,1,null,null,null,{allowscriptaccess:"always",swliveconnect:"true"});this.flashobj=VeryCD.get_flash("_ajax_fdiv_"+time+"_flash")}var self=this;if(typeof VeryCD._flashAjaxCallback!="object"){VeryCD._flashAjaxCallback=[]}this.xmlhttp=new function(){var method=null;var url=null;var randid=time;this.open=function(m,u){method=m||self.method;url=u||self.requestFile};this.setRequestHeader=function(k,v){};this.send=function(urlstring){self.flashobj.is_loading=true;self.xmlhttp.readyState=1;self.xmlhttp.onreadystatechange();var tryNum=0;var loadhttp=function(){setTimeout(function(){tryNum++;if(self.flashobj.XmlHttp){self.flashobj.XmlHttp(url,'VeryCD._flashAjaxCallback["'+randid+'"]',method,urlstring,"application/x-www-form-urlencoded")}else{if(tryNum<300){loadhttp()}else{self.flashobj.is_loading=false;self.xmlhttp.responseText="";self.xmlhttp.readyState=2;self.xmlhttp.onreadystatechange();self.xmlhttp.readyState=3;self.xmlhttp.onreadystatechange();self.xmlhttp.readyState=4;self.xmlhttp.status="500";self.xmlhttp.responseText="";self.xmlhttp.onreadystatechange();delete VeryCD._flashAjaxCallback[time]}}},30)};loadhttp()}};VeryCD._flashAjaxCallback[time]=function(){self.xmlhttp.readyState=2;self.xmlhttp.onreadystatechange();self.xmlhttp.readyState=3;self.xmlhttp.onreadystatechange();self.flashobj.is_loading=false;self.xmlhttp.responseText=self.flashobj.GetVariable("retText");self.xmlhttp.status="200";self.xmlhttp.readyState=4;self.xmlhttp.onreadystatechange();delete VeryCD._flashAjaxCallback[time]}};this.setVar=function(name,value){if(this.needresetvar==true){this.vars=new Array();this.needresetvar=false}this.vars[this.vars.length]=Array(name,value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{if(this.needresetvar==true){this.vars=new Array();this.needresetvar=false}this.vars[this.vars.length]=Array(encodeURIComponent(name),encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){var urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}if(this.method=="GET"&&this.renewData==true){this.setVar("rndval",new Date().getTime())}var urlstringtemp=new Array();for(var key=0;key<this.vars.length;key++){var thekey=this.vars[key][0];var thevalue=this.vars[key][1];if(false==this.vars[key][2]&&true==this.encodeURIString){var encoded=this.encVar(thekey,thevalue,true);thekey=encoded[0];thevalue=encoded[1]}urlstringtemp[urlstringtemp.length]=thekey+"="+thevalue}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);this.createAJAX();if(this.xmlhttp){var self=this;this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseJSON=false;if(self.response.substr(0,1)=="{"||self.response.substr(0,1)=="["){try{self.responseJSON=eval("("+self.response+")")}catch(e){self.responseJSON=false}}self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";self.xmlhttp=null;break}};if(this.method=="GET"){if(this.URLString){totalurlstring=this.requestFile+(this.requestFile.indexOf("?")>=0?this.argumentSeparator:this.queryStringSeparator)+this.URLString}else{totalurlstring=this.requestFile}this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}try{this.xmlhttp.setRequestHeader("X-Requested-With","XMLHttpRequest")}catch(e){}this.xmlhttp.send(this.URLString);this.needresetvar=true}}};this.stop=function(){this.onError=function(){};this.xmlhttp.abort();if(this.onStop){this.onStop()}};this.setform=function(formname){var obj;if(typeof formname=="object"){obj=formname}else{obj=document.forms[formname];if(!obj){obj=document.getElementById(formname);if(!obj){return}if(obj.tagName!="form"){obj=null}}}if(!obj){return}var myform=obj.elements;var tt=0;for(var i=0;i<myform.length;i++){if(myform[i].disabled){continue}if(myform[i].name){if(myform[i].type=="checkbox"||myform[i].type=="radio"){if(myform[i].checked){this.setVar(myform[i].name,myform[i].value)}}else{if(myform[i].type.substr(0,6)=="select"){for(var k=0;k<myform[i].options.length;k++){if(myform[i].options[k].selected){this.setVar(myform[i].name,myform[i].options[k].value)}}}else{this.setVar(myform[i].name,myform[i].value)}}}}};this.submit=function(theform,hander){if(!theform){return}this.reset();this.setform(theform);this.method=(theform.method||"POST").toUpperCase();this.requestFile=theform.action;this.onCompletion=function(){alert("提交成功！")};if(typeof hander=="object"){this.onLoading=hander.onLoading||this.onLoading;this.onLoaded=hander.onLoaded||this.onLoaded;this.onInteractive=hander.onInteractive||this.onInteractive;this.onCompletion=hander.onCompletion||this.onCompletion;this.onError=hander.onError||this.onError;this.onFail=hander.onFail||this.onFail}this.runAJAX();return false};this.reset()};VeryCD.emule=new function(){this.version=function(){return this.object().GetEmuleVersion()};this.object=function(){if(this._activeXobject){return this._activeXobject}try{this._activeXobject=new ActiveXObject("IE2EM.IE2EMUrlTaker")}catch(b){var a=function(){try{var d=navigator.mimeTypes["application/verycd-scriptable-plugin"];if(d){if(d.enablePlugin){return true}}}catch(f){}return false};if(a()){var c=document.createElement("embed");c.style.visibility="hidden";c.type="application/verycd-scriptable-plugin";c.width=0;c.height=0;document.body.appendChild(c);this._activeXobject=c}else{this._activeXobject={SendUrl:function(){return false},GetEmuleVersion:function(){return false}}}}return this._activeXobject};this.installed=function(){if("e"==this.version().substr(0,1)||"miniMule"==this.version().substr(0,8)){return true}else{return false}};this.SendUrl=function(a,c,b){return this.object().SendUrl(a,c,b)}};VeryCD.suggest=function(d,c,a,f){this.value="";this.url=c;this.qstr=a||"keyword";this.method=f||"GET";this.result=[];var b=this;d.setAttribute("autocomplete","off");d.onkeydown=function(k){k=k||event;if(k.keyCode==40||k.keyCode==38){return false}else{if(k.keyCode==13){var j=$("_suggest_div");if(!j){return true}if(j.style.display=="none"){return true}var g=j.getElementsByTagName("LI");if(g.length==0){return true}for(var h=0;h<g.length;h++){if(g[h].ishighlight==true){g[h].onmousedown()}}}}};d.onkeyup=function(j){j=j||event;if(j.keyCode==40||j.keyCode==38){return b.updown(j.keyCode==40?"down":"up")}else{if(d.value==b.value){return true}if(b.timeout_run){clearTimeout(b.timeout_run)}if(d.value==""){b.value="";return d.onblur()}var h=d.value;if(h.length>1){var g=h.substr(0,h.length-1);if(typeof b.result[g]!="undefined"){if(b.result[g].length==0){b.result[h]=[];return d.onblur()}}}if(typeof b.result[h]!="undefined"){b.value=h;b.showList(h);return true}b.timeout_run=setTimeout(function(){b.timeout_run=null;b.value=h;var k=new VeryCD.ajax(b.url);k.method=b.method;k.setVar(b.qstr,h);k.onCompletion=function(){if(this.response!=""&&this.response!="undefined"){b.result[h]=this.response.split("\n")}else{b.result[h]=[];trace(b.result[h].length)}b.showList(h);k=null};k.onError=function(){k=null;trace(h)};k.runAJAX()},300)}};d.onfouce=function(){if(this._blur){clearTimeout(this._blur)}};d.onblur=function(){this._blur=setTimeout(function(){var g=$("_suggest_div");if(g){g.style.display="none"}},100)};this.updown=function(k){var l=$("_suggest_div");if(!l){return true}if(b.value==""){l.style.display="none";return false}var g=l.getElementsByTagName("LI");if(g.length==0){return true}if(k=="down"&&l.style.display=="none"){b.highlight(g[0]);l.style.display="";return false}var j=false;for(var h=0;h<g.length;h++){if(g[h].ishighlight){j=true}if(j){if(k=="up"){if(h==0){d.onblur()}else{b.highlight(g[h-1])}return false}else{if(h<g.length-1){b.highlight(g[h+1])}return false}}}if(j==false){if(k=="up"){b.highlight(g[g.length-1])}else{b.highlight(g[0])}}return true};this.showList=function(l){if(l!=b.value){return true}if(typeof b.result[l]=="undefined"){return true}var o=$("_suggest_div");if(!o){o=document.createElement("div");o.id="_suggest_div";document.body.insertBefore(o,$("header_div"));o.className="mainDiv";o.style.height="0px"}o.style.display="";var g=function(q){var r=q;var p=0;while(r!=null){p+=r.offsetLeft;r=r.offsetParent}return p};var n=function(q){var r=q;var p=0;while(r!=null){p+=r.offsetTop;r=r.offsetParent}return p};var k='<div style="position:absolute;z-index:9999;margin-left:'+(g(d)-g(o))+"px;margin-top:"+(d.clientHeight+n(d))+"px;width:"+d.clientWidth+'px;"><div style="background:#fff;border:1px solid #808080;"><ul class="ul" style="">';for(var j=0;j<10;j++){if(typeof b.result[l][j]=="undefined"){break}var m=b.result[l][j].split("\t");if(m[1]){k+='<li style="float:left;width:100%;cursor:default;line-height:1.8em;height:1.8em;overflow:hidden;" value="'+m[0].replace(/"/g,"&quot;")+'"><div style="padding:0 6px;"><span style="float:left;">'+m[0]+'</span><span style="float:right;color:#008000;">'+m[1]+" 结果</span></div></li>"}}k+="</ul></div></div>";o.innerHTML=k;var h=o.getElementsByTagName("LI");if(h.length==0){o.style.display="none"}for(var j=0;j<h.length;j++){h[j].onmouseover=function(){b.highlight(this)};h[j].onmousedown=function(){d.value=this.getAttribute("value");var p=d;while(p.parentNode){p=p.parentNode;if(p.tagName.toUpperCase()=="FORM"){if(p.onsubmit){if(p.onsubmit()){p.submit()}}else{p.submit()}return true}}}}};this.highlight=function(g){var k=$("_suggest_div");if(!k){return false}var h=k.getElementsByTagName("LI");for(var j=0;j<h.length;j++){h[j].style.background="";h[j].style.color="";h[j].getElementsByTagName("SPAN")[1].style.color="#008000";h[j].ishighlight=false}g.ishighlight=true;g.style.background="#426FD9";g.style.color="#fff";g.getElementsByTagName("SPAN")[1].style.color="#fff"}};VeryCD.addfavorite=function(a,b){a=a||document.location.href;b=b||document.title|"";if(VeryCD.is_ie){window.external.addFavorite(a,b)}else{if(window.sidebar){window.sidebar.addPanel(b,a,"")}else{VeryCD.Msg("您的浏览器不支持此功能，请手动加入，谢谢。")}}};if(typeof JSON!="function"){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function stringify(value,whitelist){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;switch(typeof value){case"string":return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];if(c){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"':'"'+value+'"';case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}if(typeof value.toJSON==="function"){return stringify(value.toJSON())}a=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){l=value.length;for(i=0;i<l;i+=1){a.push(stringify(value[i],whitelist)||"null")}return"["+a.join(",")+"]"}if(whitelist){l=whitelist.length;for(i=0;i<l;i+=1){k=whitelist[i];if(typeof k==="string"){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+":"+v)}}}}else{for(k in value){if(typeof k==="string"){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+":"+v)}}}}return"{"+a.join(",")+"}"}}return{stringify:stringify,parse:function(text,filter){var j;function walk(k,v){var i,n;if(v&&typeof v==="object"){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){n=walk(i,v[i]);if(n!==undefined){v[i]=n}}}}return filter(k,v)}if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){text==""?"":j=eval("("+text+")");return typeof filter==="function"?walk("",j):j}return[];throw new SyntaxError("parseJSON")}}}()}if(!VeryCD.is_ie){HTMLElement.prototype.__defineGetter__("innerText",function(){var b="";var c=this.childNodes;for(var a=0;a<c.length;a++){if(c[a].nodeType==1){b+=c[a].innerText}else{if(c[a].nodeType==3){b+=c[a].nodeValue}}}return b});HTMLElement.prototype.__defineSetter__("innerText",function(a){this.textContent=a})}if(VeryCD.is_ie&&VeryCD.ie<7){VeryCD.iniHtmlAdd(function(c){c=c||document;var a=Sizzle(".png_image",c);if(a.length>0){for(var b=0;b<a.length;b++){a[b]._src=a[b].src;a[b].src=VeryCD.Url.Statics.V4+"global/images/spacer.gif";a[b].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="+a[b]._src+")";a[b].className=a[b].className.replace(/png_image/g,"").trim()}}})}var _scroll=window.scroll;window.scroll=function(c,j){if(VeryCD._scroll_runNum_>0){return true}VeryCD._scroll_runNum_=0;var d=VeryCD._scroll_runNum_;var g=VeryCD.DOM.scrollLeft||document.body.scrollLeft;var f=VeryCD.DOM.scrollTop||document.body.scrollTop;var b=g-c;var h=f-j;var a=function(){d++;var l=0;var k=0;if(h<0){f=f-h/5;k=f;h=h*4/5}else{h=h*4/5;k=j+h}if(d<=20){_scroll(l,k);setTimeout(a,10)}else{_scroll(c,j)}};a()};VeryCD.scroll=scroll;VeryCD.check_hotkey=function(b,a){if(b.altKey&&b.keyCode==83){$(a).click();return}if(b.ctrlKey&&b.keyCode==13){$(a).click();return}};if(typeof(auto_ymPrompt_Run)=="undefined"){var auto_ymPrompt_Run=false}var ym_wintop=0;(function(){if(window.ymPrompt){return}var objType=function(type){return new Function("o","return Object.prototype.toString.call(o)=='[object "+type+"]'")};var isArray=objType("Array"),isObj=objType("Object");window.ymPrompt={version:"4.0",pubDate:"2009-03-02",apply:function(o,c,d){if(d){ymPrompt.apply(o,d)}if(o&&c&&isObj(c)){for(var p in c){o[p]=c[p]}}return o},eventList:[]};var initFn=["setDefaultCfg","show"],_initFn={},t;while(t=initFn.shift()){ymPrompt[t]=eval("0,function(){_initFn."+t+"?_initFn."+t+".push(arguments):(_initFn."+t+"=[arguments])}")}var isIE=!+"\v1";var isCompat=document.compatMode=="CSS1Compat";var IE6=isIE&&/MSIE (\d)\./.test(navigator.userAgent)&&parseInt(RegExp.$1)<7;var useFixed=true;var $=function(id){return document.getElementById(id)};var $height=function(obj){return parseInt(obj.style.height)||obj.offsetHeight};var addEvent=(function(){return new Function("env","fn","obj","obj=obj||document;"+(window.attachEvent?"obj.attachEvent('on'+env,fn)":"obj.addEventListener(env,fn,false)")+";ymPrompt.eventList.push([env,fn,obj])")})();var detachEvent=(function(){return new Function("env","fn","obj","obj=obj||document;"+(window.attachEvent?"obj.detachEvent('on'+env,fn)":"obj.removeEventListener(env,fn,false)"))})();var setStyle=function(el,n,v){if(!el){return}if(isObj(n)){for(var i in n){setStyle(el,i,n[i])}return}if(isArray(el)||/htmlcollection|nodelist/i.test(""+el)){for(var i=el.length-1;i>=0;i--){setStyle(el[i],n,v)}return}if(IE6&&dftCfg.fixPosition&&n=="top"){ym_wintop=parseInt(v)}else{try{el.style[n]=v}catch(e){}}};var btnIndex=0,btnCache,seed=0;var mkBtn=function(txt,sign,autoClose,id){if(!txt){return}if(isArray(txt)){var item,t=[],dftBtn={OK:[curCfg.okTxt,"ok"],CANCEL:[curCfg.cancelTxt,"cancel"]};while(txt.length){(item=txt.shift())&&t[t.push(mkBtn.apply(null,dftBtn[item]||item))-1]||t.pop()}return t}id=id||"ymPrompt_btn_"+seed++;autoClose=autoClose==undefined?"undefined":!!autoClose;return{id:id,html:"<input type='button' id='"+id+"' onclick='ymPrompt.doHandler(\""+sign+'",'+autoClose+")' style='cursor:pointer' class='btnStyle handler' value='"+txt+"' />"}};var joinBtn=function(btn){if(!btn){return btnCache=""}if(!isArray(btn)){btn=[btn]}if(!btn.length){return btnCache=""}btnCache=btn.concat();var html=[];while(btn.length){html.push(btn.shift().html)}return html.join("&nbsp;&nbsp;")};var dftCfg={message:"内容",width:300,height:185,title:"标题",handler:function(){},maskAlphaColor:"#000",maskAlpha:0.5,iframe:false,icoCls:"",btn:null,autoClose:true,fixPosition:true,dragOut:false,titleBar:true,showMask:true,winPos:"c",winAlpha:0.8,closeBtn:true,showShadow:true,useSlide:false,slideCfg:{increment:0.3,interval:50},closeTxt:"关闭",okTxt:" 确 定 ",cancelTxt:" 取 消 ",msgCls:"ym-content",minBtn:false,minTxt:"最小化",maxBtn:false,maxTxt:"最大化",allowSelect:false,allowRightMenu:false,middlevalign:true,supperjs:false},curCfg={};(function(autorun){var rootEl=document.body;window.ymInitialization=arguments.callee;if(!autorun){if(!rootEl||typeof rootEl!="object"){return addEvent("load",window.ymInitialization,window)}if(isIE&&document.readyState!="complete"){return addEvent("readystatechange",function(){if(document.readyState=="complete"&&window.ymInitialization){window.ymInitialization()}})}}if($("ym-shadow")){return false}window.ymInitialization=null;rootEl=isCompat?document.documentElement:rootEl;var frameset=document.getElementsByTagName("frameset").length;if(!isIE&&frameset){return}var getScrollPos=function(){return curCfg.fixPosition&&useFixed?[0,0]:[rootEl.scrollLeft,rootEl.scrollTop]};var saveWinInfo=function(){var pos=getScrollPos();ymPrompt.apply(dragVar,{_offX:parseInt(ym_win.style.left)-pos[0],_offY:parseInt(ym_win.style.top)-pos[1]})};var maskStyle="position:fixed;top:0;left:0;display:none;text-align:center;"+(IE6&&dftCfg.fixPosition?'_position:absolute;top:expression((eval(document.compatMode &&document.compatMode=="CSS1Compat") ?documentElement.scrollTop:document.body.scrollTop));':"");var div=document.createElement("div");div.innerHTML=["<div id='maskLevel' style='"+maskStyle+";z-index:10000;'></div>",isIE?("<iframe id='maskIframe' style='"+maskStyle+";z-index:9999;filter:alpha(opacity=0);' frameborder='0'></iframe>"):"","<div id='ym-shadow' style='display:none;overflow:auto;position:absolute;z-index:10000;"+(IE6&&dftCfg.fixPosition?'top:expression((eval(document.compatMode &&document.compatMode=="CSS1Compat") ?documentElement.scrollTop:document.body.scrollTop)+ym_wintop);':"")+"'>"+(IE6?("<iframe id='maskIframe' style='width:100%;height:100%;filter:alpha(opacity=0);' frameborder='0'></iframe>"):"")+"</div>","<div id='ym-window' style='overflow:hidden;position:absolute;text-align:left;z-index:10001;display:none;",IE6&&dftCfg.fixPosition?'top:expression((eval(document.compatMode &&document.compatMode=="CSS1Compat") ?documentElement.scrollTop:document.body.scrollTop)+ym_wintop);':"","'>","<div class='ym-tl' id='ym-tl'><div class='ym-tr'><div class='ym-tc' style='cursor:move;'><div class='ym-header-text'></div><div class='ym-header-tools'>","<div class='ymPrompt_min' title='最小化'><strong>"+(isIE?"0":"＿")+"</strong></div>","<div class='ymPrompt_max' title='最大化'><strong>"+(isIE?"1":"□")+"</strong></div>","<div class='ymPrompt_close' title='关闭'><strong>"+(isIE?"r":"×")+"</strong></div>","</div></div></div></div>","<div class='ym-ml' id='ym-ml'><div class='ym-mr'><div class='ym-mc'><div id='ym-body-div' class='ym-body' style='position:relative;'>www</div></div></div></div>","<div class='ym-ml' id='ym-btnl'><div class='ym-mr'><div class='ym-btn'></div></div></div>","<div class='ym-bl' id='ym-bl'><div class='ym-br'><div class='ym-bc'></div></div></div>","</div>"].join("");document.body.appendChild(div);var maskLevel=$("maskLevel");var ym_win=$("ym-window");var ym_shadow=$("ym-shadow");var ym_wins;var ym_headbox=$("ym-tl");var ym_head=ym_headbox.firstChild.firstChild;var ym_hText=ym_head.firstChild;var ym_hTool=ym_hText.nextSibling;var ym_body=$("ym-body-div");var ym_btn=$("ym-btnl");var ym_btnContent=ym_btn.firstChild.firstChild;var ym_bottom=$("ym-bl");var maskEl=[maskLevel];isIE&&maskEl.push($("maskIframe"));var ym_ico=ym_hTool.childNodes;var dragVar={};var cur_state="normal",cur_cord=[0,0];var cal_cord=function(){var pos=getScrollPos();cur_cord=[parseInt(ym_win.style.left)-pos[0],parseInt(ym_win.style.top)-pos[1]]};var bodyAmendHeight=false;var tmpScrollTop=0;var doMax=function(){cal_cord();cur_state="max";ym_ico[1].firstChild.innerHTML=isIE?"2":"〓";ym_ico[1].className="ymPrompt_normal";if(IE6&&dftCfg.fixPosition){tmpScrollTop=document.compatMode=="CSS1Compat"?document.documentElement.scrollTop:document.body.scrollTop}setWinSize(rootEl.clientWidth,rootEl.clientHeight,[0,0])};var doMin=function(){cal_cord();cur_state="min";ym_ico[0].firstChild.innerHTML=isIE?"2":"〓";ym_ico[0].className="ymPrompt_normal";ym_btn.style.display="none";$("ym-ml").style.display="none";if(IE6&&dftCfg.fixPosition){ym_wintop=cur_cord[1];cur_cord[1]=cur_cord[1]-(document.compatMode=="CSS1Compat"?document.documentElement.scrollTop:document.body.scrollTop)}setWinSize(0,$height(ym_headbox)+$height(ym_bottom),cur_cord)};var doNormal=function(init){!init&&cur_state=="min"&&cal_cord();ym_ico[0].firstChild.innerHTML=isIE?"0":"＿";ym_ico[1].firstChild.innerHTML=isIE?"1":"□";ym_ico[0].className="ymPrompt_min";ym_ico[1].className="ymPrompt_max";$("ym-ml").style.display="";ym_btn.style.display=ym_btnContent.innerHTML==""?"none":"";if(IE6&&dftCfg.fixPosition){ym_wintop=cur_cord[1];if(cur_state=="min"){tmpScrollTop=document.compatMode=="CSS1Compat"?document.documentElement.scrollTop:document.body.scrollTop}cur_cord[1]=cur_cord[1]-tmpScrollTop}cur_state="normal";setWinSize.apply(this,init?[]:[0,0,cur_cord])};var max,min;addEvent("click",min=function(){cur_state!="normal"?doNormal():doMin()},ym_ico[0]);addEvent("mouseover",function(){ym_ico[0].className=cur_state=="min"?"ymPrompt_normal ymPrompt_normal_hover":"ymPrompt_min ymPrompt_min_hover"},ym_ico[0]);addEvent("mouseout",function(){ym_ico[0].className=cur_state=="min"?"ymPrompt_normal":"ymPrompt_min"},ym_ico[0]);addEvent("click",max=function(){cur_state!="normal"?doNormal():doMax()},ym_ico[1]);addEvent("dblclick",function(e){curCfg.maxBtn&&(e.srcElement||e.target).parentNode!=ym_hTool&&max()},ym_head);addEvent("mouseover",function(){ym_ico[1].className=cur_state=="max"?"ymPrompt_normal ymPrompt_normal_hover":"ymPrompt_big ymPrompt_max_hover"},ym_ico[1]);addEvent("mouseout",function(){ym_ico[1].className=cur_state=="max"?"ymPrompt_normal":"ymPrompt_max"},ym_ico[1]);addEvent("click",function(){ymPrompt.doHandler("close")},ym_ico[2]);addEvent("mouseover",function(){ym_ico[2].className="ymPrompt_close ymPrompt_close_hover"},ym_ico[2]);addEvent("mouseout",function(){ym_ico[2].className="ymPrompt_close"},ym_ico[2]);var getWinSize=function(){return[Math.max(rootEl.scrollWidth,rootEl.clientWidth),Math.max(rootEl.scrollHeight,rootEl.clientHeight),rootEl.clientWidth,rootEl.clientHeight]};var winSize=getWinSize();var bindEl=ym_head.setCapture&&ym_head;var filterWin=function(v){!frameset&&setStyle(ym_win,v==1&&isCompat?{filter:"",opacity:""}:{filter:"Alpha(opacity="+v*100+")",opacity:v})};var mEvent=function(e){var sLeft=dragVar.offX+e.clientX;var sTop=dragVar.offY+e.clientY;if(IE6&&dftCfg.fixPosition){sTop-=rootEl.scrollTop}if(!curCfg.dragOut){var pos=getScrollPos(),sl=pos[0],st=pos[1];sLeft=Math.min(Math.max(sLeft,sl),rootEl.clientWidth-ym_win.offsetWidth+sl);sTop=Math.min(Math.max(sTop,st),rootEl.clientHeight-ym_win.offsetHeight+st)}else{if(curCfg.showMask&&""+winSize!=""+getWinSize()){resizeMask(true)}}setStyle(ym_wins,{left:sLeft+"px",top:sTop+"px"})};var uEvent=function(){filterWin(1);detachEvent("mousemove",mEvent,bindEl);detachEvent("mouseup",uEvent,bindEl);saveWinInfo();curCfg.iframe&&setStyle(getPage().nextSibling,"display","none");bindEl&&(detachEvent("losecapture",uEvent,bindEl),bindEl.releaseCapture())};addEvent("mousedown",function(e){if((e.srcElement||e.target).parentNode==ym_hTool){return false}filterWin(curCfg.winAlpha);ymPrompt.apply(dragVar,{offX:parseInt(ym_win.style.left)-e.clientX,offY:parseInt(ym_win.style.top)-e.clientY});addEvent("mousemove",mEvent,bindEl);addEvent("mouseup",uEvent,bindEl);if(curCfg.iframe){var cfg={display:""},pg=getPage();isCompat&&IE6&&ymPrompt.apply(cfg,{width:pg.offsetWidth,height:pg.offsetHeight});setStyle(pg.nextSibling,cfg)}bindEl&&(addEvent("losecapture",uEvent,bindEl),bindEl.setCapture())},ym_head);var scrollEvent=function(){setStyle(ym_win,{left:dragVar._offX+rootEl.scrollLeft+"px",top:dragVar._offY+rootEl.scrollTop+"px"})};var keydownEvent=function(e){var keyCode=e.keyCode;if(keyCode==27){destroy()}if(btnCache){var l=btnCache.length,nofocus;document.activeElement&&document.activeElement.id!=btnCache[btnIndex].id&&(nofocus=true);if(keyCode==9||keyCode==39){nofocus&&(btnIndex=-1),$(btnCache[++btnIndex==l?(--btnIndex):btnIndex].id).focus()}if(keyCode==37){nofocus&&(btnIndex=l),$(btnCache[--btnIndex<0?(++btnIndex):btnIndex].id).focus()}if(keyCode==13){return true}}return true};var keyEvent=function(e,d,k){e=e||event;if(!d&&/input|select|textarea/i.test((e.srcElement||e.target).tagName)){return true}try{e.returnValue=false;e.keyCode=0}catch(ex){e.preventDefault&&e.preventDefault()}return false};maskLevel.oncontextmenu=keyEvent;var resizeMask=function(noDelay){setStyle(maskEl,"display","none");var size=getWinSize();if(IE6&&!dftCfg.fixPosition){size=[size[0],size[1],size[0],size[1]]}var resize=function(){setStyle(maskEl,{width:size[2]+"px",height:size[3]+"px",display:""})};isIE?noDelay===true?resize():setTimeout(resize,0):resize();cur_state=="min"?doMin():cur_state=="max"?doMax():setWinSize()};var maskVisible=function(visible){if(!curCfg.showMask){return}(visible===false?detachEvent:addEvent)("resize",resizeMask,window);if(visible===false){return setStyle(maskEl,"display","none")}setStyle(maskLevel,{background:curCfg.maskAlphaColor,filter:"Alpha(opacity="+curCfg.maskAlpha*100+")",opacity:curCfg.maskAlpha});resizeMask(true)};var getPos=function(f){f=isArray(f)&&f.length==2?(f[0]+"+{2},{3}+"+f[1]):(posMap[f]||posMap.c);var pos=[rootEl.clientWidth-ym_win.offsetWidth,rootEl.clientHeight-ym_win.offsetHeight].concat(getScrollPos());var arr=f.replace(/\{(\d)\}/g,function(s,s1){return pos[s1]}).split(",");return[eval(arr[0]),eval(arr[1])]};var posMap={c:"{0}/2+{2},{1}/2+{3}",l:"{2},{1}/2+{3}",r:"{0}+{2},{1}/2+{3}",t:"{0}/2+{2},{3}",b:"{0}/2,{1}+{3}",lt:"{2},{3}",lb:"{2},{1}+{3}",rb:"{0}+{2},{1}+{3}",rt:"{0}+{2},{3}"};var setWinSize=function(w,h,pos){var ishidden=ym_win.style.display=="none"?true:false;if(ishidden){ym_win.style.visibility="hidden";ym_win.style.display=""}if(bodyAmendHeight===false){bodyAmendHeight=$height($("ym-ml"))-$height(ym_body)}h=parseInt(h)||curCfg.height;w=parseInt(w)||curCfg.width;setStyle(ym_wins,{width:w+"px",height:h+"px"});pos=getPos(pos||curCfg.winPos);setStyle(ym_wins,{top:pos[1]+"px",left:pos[0]+"px"});saveWinInfo();setStyle(ym_body,"height",h-bodyAmendHeight-$height(ym_headbox)-$height(ym_btn)-$height(ym_bottom)+"px");isCompat&&IE6&&curCfg.iframe&&setStyle(getPage(),{height:ym_body.clientHeight});if(ishidden){ym_win.style.display="none";ym_win.style.visibility=""}};var cacheWin=[];var winVisible=function(visible){var fn=visible===false?detachEvent:addEvent;fn("scroll",curCfg.fixPosition&&!useFixed?scrollEvent:saveWinInfo,window);setStyle(ym_wins,"position",!IE6&&curCfg.fixPosition&&useFixed?"fixed":"absolute");fn("keydown",keydownEvent);if(visible===false){setStyle(ym_shadow,"display","none");var closeFn=function(){setStyle(ym_win,"display","none");cacheWin.shift();if(cacheWin.length){ymPrompt.show.apply(null,cacheWin[0].concat(true))}};var alphaClose=function(){var alpha=1;var hideFn=function(){alpha=Math.max(alpha-curCfg.slideCfg.increment,0);filterWin(alpha);if(alpha==0){maskVisible(false);closeFn();clearInterval(it)}};hideFn();var it=setInterval(hideFn,curCfg.slideCfg.interval)};curCfg.useSlide?alphaClose():closeFn();return}setStyle([ym_hText,ym_hTool],"display",(curCfg.titleBar?"":"none"));ym_head.className="ym-tc"+(curCfg.titleBar?"":" ym-ttc");ym_hText.innerHTML=curCfg.title;for(var i=0,c=["min","max","close"];i<3;i++){ym_ico[i].style.display=curCfg[c[i]+"Btn"]?"":"none";ym_ico[i].title=curCfg[c[i]+"Txt"]}var ifmStyle="position:absolute;width:100%;height:100%;top:0;left:0;opacity:1;filter:alpha(opacity=100)";var msg;if(curCfg.middlevalign){msg='<table cellspacing="0" cellpadding="0" border="0" style="border:0px;height:100%;"><tbody><tr><td><div class="'+curCfg.msgCls+'">'+curCfg.message+"</div></td></tr></tbody></table>"}else{msg='<div class="'+curCfg.msgCls+'">'+curCfg.message+"</div>"}var html=!curCfg.iframe?msg:"<iframe style='"+ifmStyle+"' border='0' frameborder='0' src='"+curCfg.message+"'></iframe><div style='"+ifmStyle+";background:#000;opacity:0.1;filter:alpha(opacity=10);display:none'></div>";if(curCfg.supperjs){VeryCD.innerHTML(ym_body,html)}else{ym_body.innerHTML=html}(function(el,obj){for(var i in obj){try{el[i]=obj[i]}catch(e){}}})(ym_body.firstChild,curCfg.iframe);ym_body.className="ym-body "+curCfg.icoCls;setStyle(ym_btn,"display",((ym_btnContent.innerHTML=joinBtn(mkBtn(curCfg.btn)))?"block":"none"));!curCfg.useSlide&&curCfg.showShadow&&setStyle(ym_shadow,"display","");setStyle(ym_win,"display","");doNormal(true);filterWin(curCfg.useSlide?0:1);curCfg.useSlide&&(function(){var alpha=0;var showFn=function(){alpha=Math.min(alpha+curCfg.slideCfg.increment,1);filterWin(alpha);if(alpha==1){clearInterval(it);curCfg.showShadow&&setStyle(ym_shadow,"display","")}};showFn();var it=setInterval(showFn,curCfg.slideCfg.interval)})();if(btnCache){$(btnCache[btnIndex=0].id).focus();$(btnCache[btnIndex=0].id).className+=" hover"}ym_win.onselectstart=curCfg.allowSelect?null:keyEvent;ym_win.oncontextmenu=curCfg.allowRightMenu?null:keyEvent};var init=function(){ym_wins=[ym_win].concat(curCfg.showShadow?ym_shadow:"");maskVisible();winVisible()};var destroy=function(dd){!curCfg.useSlide&&maskVisible(false);winVisible(false)};var getPage=function(){return curCfg.iframe?ym_body.firstChild:null};ymPrompt.apply(ymPrompt,{close:destroy,max:max,min:min,normal:doNormal,getPage:getPage,show:function(args,fargs,show){var a=[].slice.call(args,0),o={},j=-1;if(!isObj(a[0])){for(var i in dftCfg){if(a[++j]){o[i]=a[j]}}}else{o=a[0]}ymPrompt.apply(curCfg,ymPrompt.apply({},o,fargs),ymPrompt.setDefaultCfg());for(var i in curCfg){curCfg[i]=curCfg[i]!=null?curCfg[i]:ymPrompt.cfg[i]}init()},doHandler:function(sign,autoClose,closeFirst){if(autoClose==undefined?curCfg.autoClose:autoClose){destroy()}try{(curCfg.handler)(sign)}catch(e){alert(e.message)}},resizeWin:function(w,h){curCfg.width=parseInt(w)||curCfg.width;curCfg.height=parseInt(h)||curCfg.height;setWinSize()},setDefaultCfg:function(cfg){return ymPrompt.cfg=ymPrompt.apply({},cfg,ymPrompt.apply({},ymPrompt.cfg,dftCfg))},getButtons:function(){var btns=btnCache||[],btn,rBtn=[];while(btn=btns.shift()){rBtn.push($(btn.id))}return rBtn}});ymPrompt.setDefaultCfg();var t;for(var i in _initFn){while(t=_initFn[i].shift()){ymPrompt[i].apply(null,t)}}addEvent("unload",function(){while(ymPrompt.eventList.length){detachEvent.apply(null,ymPrompt.eventList.shift())}},window)})(auto_ymPrompt_Run)})();ymPrompt.apply(ymPrompt,{alert:function(){ymPrompt.show(arguments,{icoCls:"ymPrompt_alert",btn:["OK"]})},succeedInfo:function(){ymPrompt.show(arguments,{icoCls:"ymPrompt_succeed",btn:["OK"]})},errorInfo:function(){ymPrompt.show(arguments,{icoCls:"ymPrompt_error",btn:["OK"]})},confirmInfo:function(){ymPrompt.show(arguments,{icoCls:"ymPrompt_confirm",btn:["OK","CANCEL"]})},win:function(){ymPrompt.show(arguments)}});function dynamicTime(){this.time=[];this.timeDefault=[];this.arraySecond=[];this.arrayMinute=[];this.arrayHour=[];this.isRun=[];this.updatePage=function(a){a=a||document;this.ini(a);if(!this.isRun[0]&&this.arraySecond.length>0){setInterval("dynamicTime.updateFromArray(dynamicTime.arraySecond)",1000),this.isRun[0]=true}if(!this.isRun[1]&&this.arrayMinute.length>0){setInterval("dynamicTime.updateFromArray(dynamicTime.arrayMinute)",60000),this.isRun[1]=true}if(!this.isRun[2]&&this.arrayHour.length>0){setInterval("dynamicTime.updateFromArray(dynamicTime.arrayHour)",3600000),this.isRun[2]=true}};this.updateFromArray=function(c){if(c.length){for(var a=0;a<c.length;a++){var b=this.formatTime(this.timeDefault[c[a]]);this.time[c[a]].innerHTML=b[0]}}};this.ini=function(f){var a=Sizzle(".date-time",f);if(a.length){for(var c=0;c<a.length;c++){var b=this.timeDefault.length;this.time[b]=a[c];this.timeDefault[b]=a[c].innerHTML;if(this.time[b].title==""){this.time[b].title=this.timeDefault[b]}var d=this.formatTime(this.timeDefault[b]);this.time[b].innerHTML=d[0];if(1==d[1]){this.arraySecond.push(b)}if(2==d[1]){this.arrayMinute.push(b)}if(3==d[1]){this.arrayHour.push(b)}}}};this.formatTime=function(d){var l=1000;var c=l*60;var g=c*60;var f=g*24;var m=this.getMsTime(d);if(m==false){return new Array(d,0)}var k=new Date(m);var b=new Date();var j=b.getTime();var h=j-m;var a;if(Math.floor(h/l)<0){if(Math.floor(h/c)<-15){b.setHours(0,0,0,0);k.setHours(0,0,0,0);h=b.getTime()-k.getTime();offsetDy=Math.floor(h/f);toYear=k.getFullYear();toMonth=k.getMonth()+1;toDay=k.getDate();a=toYear+"/"+toMonth+"/"+toDay;return new Array(a,3)}else{a="刚才";return new Array(a,1)}}else{if(Math.floor(h/l)<60){a=Math.floor(h/l)+"秒前";return new Array(a,1)}else{if(Math.floor(h/c)<60){a=Math.floor(h/c)+"分钟前";return new Array(a,2)}else{if(Math.floor(h/g)<24){a=Math.floor(h/g)+"小时前";return new Array(a,3)}else{b.setHours(0,0,0,0);k.setHours(0,0,0,0);h=b.getTime()-k.getTime();offsetDy=Math.floor(h/f);toYear=k.getFullYear();toMonth=k.getMonth()+1;toDay=k.getDate();if(offsetDy==1){a="昨天 "}else{if(offsetDy==2){a="前天 "}else{if(b.getFullYear()==toYear){a=toMonth+"月"+toDay+"日"}else{a=toYear+"/"+toMonth+"/"+toDay}}}return new Array(a,0)}}}}};this.getMsTime=function(c){var b,d,a,f;b=/(\d{4})[\/-](\d{2})[\/-](\d{2})\s(\d{2})\:(\d{2})\:(\d{2})/;d=c.match(b);if(d==null){return false}a=Date.parse(d[2]+"/"+d[3]+"/"+d[1]+" "+d[4]+":"+d[5]+":"+d[6]);f=this.getTCOffset();a+=f;return(a)};this.getTCOffset=function(){var f,b,c;var a=-480;f=new Date();b=f.getTimezoneOffset();c=(a-b)*60*1000;return(c)}}var dynamicTime=new dynamicTime();VeryCD.iniHtmlAdd(function(a){dynamicTime.updatePage(a)});var Lazyload=function(d,b){var f=d||"lazyload";var b=b||th.getWindowSize().height;var a=document.getElementsByName(f);var c=0;this.imgs=[];var g={};g.ua=window.navigator.userAgent.toLowerCase();g.ie=/msie/.test(g.ua);g.moz=/gecko/.test(g.ua);g.opera=/opera/.test(g.ua);g.safari=/safari/.test(g.ua);this.getWindowSize=function(){var h={};if(window.self&&self.innerWidth){h.width=self.innerWidth;h.height=self.innerHeight;return h}if(document.documentElement&&document.documentElement.clientHeight){h.width=document.documentElement.clientWidth;h.height=document.documentElement.clientHeight;return h}h.width=document.body.clientWidth;h.height=document.body.clientHeight;return h};this._getPageScroll=function(){var h;if(typeof(window.pageYOffset)!="undefined"){h=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){h=document.documentElement.scrollTop}else{if(document.body){h=document.body.scrollTop}}}return h};this.getImgPosition=function(){var k=a;for(var j=0;j<k.length;j++){var h=this.getImgLoadPosition(k[j]);this.imgs.push([k[j],h])}};this.getImgLoadPosition=function(h){var j={imgTop:0,pageTop:0};if(h){j.imgTop=parseInt(this.getObjPosition(h).y);j.pageTop=j.imgTop<1?0:j.imgTop-parseInt(b)}return j};this.getObjPosition=function(j){var h={};h.x=j.offsetLeft,h.y=j.offsetTop;while(j=j.offsetParent){h.x+=j.offsetLeft;h.y+=j.offsetTop}return h};this._addScrollEven=function(){if(g.ie){window.attachEvent("onscroll",this._scrollFn)}else{window.addEventListener("scroll",this._scrollFn,false)}};this._removeScrollEven=function(){if(g.ie){window.detachEvent("onscroll",this._scrollFn)}else{window.removeEventListener("scroll",this._scrollFn,false)}};this._scrollFn=function(){var k=this._getPageScroll();var h=this.getWindowSize().height;if(h==0){this._loadAllImgs();return}var j=0;while(this.imgs[j]){if(this.imgs[j][0]&&(k+h)>this.imgs[j][1].pageTop){this._loadImages(this.imgs[j][0]);this.imgs[j][0]=null;c++}j++;if(c>=this.imgs.length){this._removeScrollEven()}}};this._loadImages=function(h){if(!h){return}var j=h;if(j.getAttribute("_src")){j.setAttribute("src",j.getAttribute("_src"));j.removeAttribute("_src",0)}};this._loadAllImgs=function(){var h=0;while(this.imgs[h]){this._loadImages(this.imgs[h][0]);h++}};this.getImgPosition();this._addScrollEven();this._scrollFn()};
