var ielt7=document.all&&navigator.userAgent.indexOf("MSIE 7")<0&&!window.opera;var isIE=(!!(window.attachEvent&&!window.opera));var _$=function(f,d){if(!d){d=document;}var b=function(s,g){var u,l,h=[];var q=(/\#([a-z0-9_-]+)/i).exec(s);if(q){var p=document.getElementById(q[1]);return p?[p]:h;}var m=(/\.([a-z0-9_-]+)/i).exec(s);var k=s.replace(/(\.|\#|\:)[a-z0-9_-]+/i,"");var t=m?new RegExp("(\\s|^)"+m[1]+"(\\s|$)"):false;for(var o=0;o<g.length;o++){u=k?g[o].getElementsByTagName(k):g[o].getElementsByTagName("*");for(var n=0;n<u.length;n++){l=u[n];try{if(t&&!t.test(l.className)){continue;}if(h.indexOf(l)==-1){h[h.length]=l;}}catch(r){}}}return h;};var a=[d];var e=f.split(" ");for(var c=0;c<e.length;c++){a=b(e[c],a);}return a;};var $E=function(c,b){var a=_$(c,b);return a.length==0?null:(a.length==1?a[0]:a);};var hasClass=function(b,a){if(!a||a==""){return;}return b.className.match(new RegExp("(\\s|^)"+a+"(\\s|$)"));};var addClass=function(b,a){if(!a||a==""){return;}if(!this.hasClass(b,a)){b.className+=" "+a;}};var removeClass=function(c,a){if(!a||a==""){return;}if(hasClass(c,a)){var b=new RegExp("(\\s|^)"+a+"(\\s|$)");c.className=c.className.replace(b," ");}};(window.opera&&![].concat)||(Array.prototype.concat=function(){var e=[];for(var b=0,c=this.length;b<c;b++){e.push(this[b]);}for(var b=0,c=arguments.length;b<c;b++){if(arguments[b].constructor==Array){for(var a=0,d=arguments[b].length;a<d;a++){e.push(arguments[b][a]);}}else{e.push(arguments[b]);}}return e;});var isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]";};Array.prototype._each=function(b){for(var a=0,c=this.length;a<c;a++){b(this[a]);}};Array.prototype.toArray=function(){return[].concat(this);};Array.prototype.each=function(b){var a=0;try{this._each(function(d){try{b(d,a++);}catch(f){}});}catch(c){}return this;};Array.prototype.all=function(b){if(b){for(var a=0;a<this.length;a++){if(!b(this[a])){return false;}}}return true;};Array.prototype.contains=function(b){if(this.length<=0){return false;}for(var a=0;a<this.length;a++){if(this[a].toString()==b.toString()){return true;}}return false;};Array.prototype.remove=function(a){if(a==null||isNaN(a)||a>this.length||a<0){return false;}for(var b=0,c=0;b<this.length;b++){if(this[b]!=this[a]){this[c++]=this[b];}}this.length-=1;};[].indexOf||(Array.prototype.indexOf=function(a){for(var b=this.length;b--&&this[b]!==a;){}return b;return -1;});Array.prototype.pop=function(){if(this.length){var a=this[this.length-1];this.length--;return a;}return undefined;};Array.prototype.push=function(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a];}return this.length;};var $A=function(d){if(!d){return[];}if(d.toArray){return d.toArray();}else{var b=[];for(var a=0,c=d.length;a<c;a++){b.push(d[a]);}return b;}};var addListener=function(f,d,b){if((!!(window.attachEvent&&!window.opera))?true:false){f.attachEvent("on"+d,b);}else{f.addEventListener(d,b,false);}};var preventDefault=function(a){if(a.preventDefault){a.preventDefault();}else{a.returnValue=false;}};window.Fun={d:function(g){var f=Fun.getStyle(g,"display");if(f!="none"&&f!=null){return{width:g.offsetWidth,height:g.offsetHeight};}var b=g.style;var e=b.visibility;var c=b.position;var a=b.display;b.visibility="hidden";b.position="absolute";b.display="block";var h=g.clientWidth;var d=g.clientHeight;b.display=a;b.position=c;b.visibility=e;return{width:h,height:d};},attr:function(c,b,a){if(a){c.setAttribute(b,a);}else{return c.getAttribute(b);}},w:function(b,a){if(a){b.style.width=a+"px";}else{return this.d(b).width;}},h:function(b,a){if(a){b.style.height=a+"px";}else{return this.d(b).height;}},t:function(b,a){if(a){b.style.top=a+"px";}else{return b.offsetTop||((b.documentElement&&b.documentElement.scrollTop)||(b.body&&b.body.scrollTop)||0);}},l:function(b,a){if(a){b.style.left=a+"px";}else{return b.offsetLeft||((b.documentElement&&b.documentElement.scrollLeft)||(b.body&&b.body.scrollLeft)||0);}},getStyle:function(c,b){b=b.replace(/-([a-z])/g,function(e,d){return d.toUpperCase();});if(b=="float"){b="cssFloat";}if(c.style&&c.style[b]){return c.style[b];}else{if(c.currentStyle){return c.currentStyle[b];}else{if(document.defaultView&&document.defaultView.getComputedStyle){var a=document.defaultView.getComputedStyle(c,"");return a&&a.getPropertyValue(b);}else{return null;}}}},getPrev:function(b){var a=b.previousSibling;while(a){if(a.nodeType!=3){break;}a=a.previousSibling;}return a;},getNext:function(b){var a=b.nextSibling;while(a){if(a.nodeType!=3){break;}a=a.nextSibling;}return a;}};window.Effect={s2uTab:function(d,c,b,j,k,h,i,f,g){if(typeof d=="undefined"||!d||typeof c=="undefined"||!c||d.length==0||c.length==0||d.length!=c.length){return;}if(typeof j=="undefined"||j==null){j=0;}if(typeof b=="undefined"||b==null){b="click";}if(typeof i=="undefined"||i==null){i=0;}if(typeof k=="undefined"||k==null){k="show";}if(typeof h=="undefined"||h==null){h="";}if(typeof f=="undefined"||f==null||f<0){f=0;}if(typeof g=="undefined"||g==null||g!=true){g=false;}var e=null;var a=function(){if(f>0){clearTimeout(e);e=window.setTimeout(function(){l((j+1)%d.length);},f);}};var l=function(n){if(n!=j){removeClass(d[n],h);addClass(d[n],k);removeClass(c[n],h);addClass(c[n],k);removeClass(d[j],k);addClass(d[j],h);removeClass(c[j],k);addClass(c[j],h);if(g){var m=function(o){o.style.display="";};c[n].style.display="block";Effect.fadeIn(c[n],300,m);c[j].style.display="block";Effect.fadeOut(c[j],300,m);}}j=n;a();return false;};d.each(function(n,m){if(m!=j){addClass(d[m],h);removeClass(d[m],k);addClass(c[m],h);removeClass(c[m],k);}else{addClass(d[m],k);removeClass(d[m],h);addClass(c[m],k);removeClass(c[m],h);}addListener(n,"focus",function(){n.blur();});addListener(n,b,function(o){if(f>0){clearTimeout(e);}if(b=="mouseover"&&i>0){clearTimeout(n.tabtimer);n.tabtimer=window.setTimeout(function(){l(m);},i);}else{l(m);preventDefault(o);}});if(b=="mouseover"&&i>0){addListener(n,"mouseout",function(){clearTimeout(n.tabtimer);a();});}});a();},s2uTabs:function(){var a=function(e,d){var c=[];e.each(function(f){if(f&&f.parentNode&&f.parentNode.parentNode&&f.parentNode.parentNode==d){c.push(f);}});return c;};var b;b=_$(".tab_box");b.each(function(d){try{var c=a(_$(".tab_title a",d),d);var g=a(_$(".tab_content .tab_con",d),d);Effect.s2uTab(c,g,"mouseover",0,"show","",200);}catch(f){}});b=_$(".tab_box_a");b.each(function(d){try{var c=a(_$(".tab_title a",d),d);var g=a(_$(".tab_content .tab_con",d),d);Effect.s2uTab(c,g,"mouseover",0,"show","",200,5000);}catch(f){}});b=_$(".tab_box_c");b.each(function(d){try{var c=a(_$(".tab_title a",d),d);var g=a(_$(".tab_content .tab_con",d),d);Effect.s2uTab(c,g,"click",0,"show","",200);}catch(f){}});b=_$(".tab_box_f");b.each(function(d){try{var c=a(_$(".tab_title a",d),d);var g=a(_$(".tab_content .tab_con",d),d);Effect.s2uTab(c,g,"mouseover",0,"show","",200,0,true);}catch(f){}});b=_$(".tab_box_fa");b.each(function(d){try{var c=a(_$(".tab_title a",d),d);var g=a(_$(".tab_content .tab_con",d),d);Effect.s2uTab(c,g,"mouseover",0,"show","",200,5000,true);}catch(f){}});},setOpacity:function(a,b){if(isIE){if(b>=100){a.style.filter="";}else{a.style.filter="alpha(opacity="+b+")";}}else{a.style.opacity=(b/100);}},fadeIn:function(c,b,e){var d=b/10;clearInterval(c.ftime);Effect.setOpacity(c,0);c.style.display="block";var g=0;var a=function(){if(g>=100){Effect.setOpacity(c,100);clearInterval(c.ftime);if(e){e(c);}return;}g+=10;Effect.setOpacity(c,g);};c.ftime=window.setInterval(a,d);},fadeOut:function(c,b,e){var d=b/10;clearInterval(c.ftime);Effect.setOpacity(c,100);c.style.display="block";var g=0;var a=function(){if(g>=100){c.style.display="none";Effect.setOpacity(c,0);clearInterval(c.ftime);if(e){e(c);}return;}g+=10;Effect.setOpacity(c,100-g);};c.ftime=window.setInterval(a,d);},hoverShow:function(e,k){if(!e||!k||e==k){return;}var m=5;var j=10;var d=-2;var i=100;var g,a,l;var f=function(c){clearInterval(g);if(c==1){clearTimeout(a);k.style.display="block";if(l&&l<=k.offsetHeight){return;}else{if(!l){k.style.height="auto";l=k.offsetHeight;k.style.height="0px";}}i=i+1;k.style.zIndex=i;g=setInterval(function(){b(1);},j);}else{a=setTimeout(function(){o();},50);}};var o=function(){g=setInterval(function(){b(-1);},j);};var n=function(){clearTimeout(a);clearInterval(g);if(k.offsetHeight<l){g=setInterval(function(){b(1);},j);}};var b=function(p){var h=k.offsetHeight;var c;if(p==1){c=Math.round((l-h)/m);}else{c=Math.round(h/m);}if(c<=1&&p==1){c=1;}k.style.height=h+(c*p)+"px";k.style.opacity=h/l;k.style.filter="alpha(opacity="+(h*100/l)+")";if(h>(l-2)&&p==1){clearInterval(g);k.style.height="auto";k.style.filter="alpha(opacity=100)";k.style.opacity=1;}else{if(c<1&&p!=1){clearInterval(g);k.style.display="none";}}};addListener(e,"mouseover",function(){f(1);});addListener(e,"mouseout",function(){f(-1);});addListener(k,"mouseover",function(){n();});addListener(k,"mouseout",function(){f(-1);});},hoverLists:function(b){b.each(function(a){Effect.hoverList(_$("li",a),"","hover");});},hoverList:function(f,e,h,g){if(e==h){return;}if(!g||g<0||g>=f.length){g=0;}f.each(function(b,a){if(g==a){removeClass(b,e);addClass(b,h);}else{removeClass(b,h);addClass(b,e);}addListener(b,"mouseover",function(){if(g==a){return;}g=a;f.each(function(c){removeClass(c,h);addClass(c,e);});removeClass(b,e);addClass(b,h);});});},setFocus:function(n,l,g){if(typeof n=="undefined"||!n){return;}if(typeof l=="undefined"||l==null){l=5000;}var t=null;var k=0;var a=false;var v=new Array();var o=new Array();var q=new Array();var s=new Array();var b=n.getElementsByTagName("a");var m=n.getElementsByTagName("img");if(m.length!=b.length){return;}var r=0;for(r=0;r<m.length;r++){v[r]=m[r].src;q[r]=m[r].alt;}for(r=0;r<b.length;r++){o[r]=b[r].href;s[r]=b[r].title;}var j,f,p,c,d,w,e,h;var u=function(i){if(!i){i=false;}if(a&&!i){return;}clearInterval(t);k++;if(k>=v.length){k=0;}if(document.all){p.filters("revealTrans").Transition=23;p.filters("revealTrans").apply();p.filters("revealTrans").play();}p.src=v[k];p.alt=q[k];h.innerHTML='<h4><a href="'+o[k]+'" target="_blank">'+s[k]+"</a></h4>";f.href=o[k];t=setInterval(u,l);};(function(){n.innerHTML="";j=document.createElement("div");j.id="imgFocus";f=document.createElement("a");f.id="imgLink";f.href=o[0];f.target="_blank";f.onfocus=function(){this.blur();};p=document.createElement("img");p.style.filter="revealTrans(duration=1,transition=5)";p.src=v[0];p.id="imgInit";p.alt=q[0];f.appendChild(p);j.appendChild(f);e=document.createElement("div");e.id="bgFocus";h=document.createElement("div");h.id="txtFocus";h.innerHTML='<h4><a href="'+o[0]+'" target="_blank">'+s[0]+"</a></h4>";c=document.createElement("span");c.id="btnPrev";c.innerHTML="&lt; Previous";c.onclick=function(){k--;if(k<0){k=v.length-1;}k--;if(k<0){k=v.length-1;}u(true);};d=document.createElement("span");d.id="btnNext";d.innerHTML="Next &gt;";d.onclick=function(){u(true);};w=document.createElement("img");w.id="btnPause";w.src="/"+g+"/ads_pause.gif";w.alt="\u6682\u505c";w.title="\u6682\u505c";w.onclick=function(){clearInterval(t);if(a){a=false;w.src=g+"/ads_pause.gif";w.alt="\u6682\u505c";w.title="\u6682\u505c";t=setInterval(u,l);}else{a=true;w.src=g+"/ads_play.gif";w.alt="\u64ad\u653e";w.title="\u64ad\u653e";}};n.appendChild(j);n.appendChild(e);n.appendChild(h);n.appendChild(c);n.appendChild(d);n.appendChild(w);t=setInterval(u,l);})();}};function addfav(a,d,c){try{if(window.external){window.external.AddFavorite(a,d);}else{if(window.sidebar){window.sidebar.addPanel(d,a,c);}}}catch(b){}}var domReady={add:function(c){var a=function(){if(arguments.callee.done){return;}arguments.callee.done=true;c.apply(document,arguments);};if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a();},false);}else{if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){(function(){try{document.documentElement.doScroll("left");}catch(b){setTimeout(arguments.callee,0);return;}a();})();}else{document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);a();}});}}}}};domReady.add(function(){Effect.s2uTabs();Effect.hoverLists(_$(".hoverlist"));Effect.setFocus($E("#flashimage"),5000,"images/0911/ads");(function(){_$("#menu li.b").each(function(b){var a=_$("a",b);var d=_$("ul",b);if(a&&d&&d.length==1){Effect.hoverShow(a[0],d[0]);}});})();});
