function set(b,c,e){for(i=1;i<=e;i++){var d=document.getelementbyid(b+i);var a=document.getelementbyid("con"+b+i);d.classname=i==c?"hover":"";a.style.display=i==c?"block":"none"}}var scroll={$:function(objname){if(document.getelementbyid){return eval('document.getelementbyid("'+objname+'")')}else{return eval("document.all."+objname)}},isie:navigator.appversion.indexof("msie")!=-1?true:false,addevent:function(a,c,b){if(a.attachevent){a.attachevent("on"+c,b)}else{a.addeventlistener(c,b,false)}},delevent:function(a,c,b){if(a.detachevent){a.detachevent("on"+c,b)}else{a.removeeventlistener(c,b,false)}},readcookie:function(d){var e="",a=d+"=";if(document.cookie.length>0){var c=document.cookie.indexof(a);if(c!=-1){c+=a.length;var b=document.cookie.indexof(";",c);if(b==-1){b=document.cookie.length}e=unescape(document.cookie.substring(c,b))}}return e},writecookie:function(d,a,f,g){var e="",b="";if(f!=null){e=new date((new date).gettime()+f*3600000);e="; expires="+e.togmtstring()}if(g!=null){b=";domain="+g}document.cookie=d+"="+escape(a)+e+b},readstyle:function(b,a){if(b.style[a]){return b.style[a]}else{if(b.currentstyle){return b.currentstyle[a]}else{if(document.defaultview&&document.defaultview.getcomputedstyle){var c=document.defaultview.getcomputedstyle(b,null);return c.getpropertyvalue(a)}else{return null}}}}};function scrollpic(b,g,f,e){this.scrollcontid=b;this.arrleftid=g;this.arrrightid=f;this.dotlistid=e;this.dotclassname="dotitem";this.dotonclassname="dotitemon";this.dotobjarr=[];this.pagewidth=0;this.framewidth=0;this.speed=10;this.space=10;this.pageindex=0;this.autoplay=true;this.autoplaytime=5;var a,d,c="ready";this.stripdiv=document.createelement("div");this.listdiv01=document.createelement("div");this.listdiv02=document.createelement("div");if(!scrollpic.childs){scrollpic.childs=[]}this.id=scrollpic.childs.length;scrollpic.childs.push(this);this.initialize=function(){if(!this.scrollcontid){throw new error("\u5fc5\u987b\u6307\u5b9ascrollcontid.");return}this.scrollcontdiv=scroll.$(this.scrollcontid);if(!this.scrollcontdiv){throw new error('scrollcontid\u4e0d\u662f\u6b63\u786e\u7684\u5bf9\u8c61.(scrollcontid = "'+this.scrollcontid+'")');return}this.scrollcontdiv.style.width=this.framewidth+"px";this.scrollcontdiv.style.overflow="hidden";this.listdiv01.innerhtml=this.listdiv02.innerhtml=this.scrollcontdiv.innerhtml;this.scrollcontdiv.innerhtml="";this.scrollcontdiv.appendchild(this.stripdiv);this.stripdiv.appendchild(this.listdiv01);this.stripdiv.appendchild(this.listdiv02);this.stripdiv.style.overflow="hidden";this.stripdiv.style.zoom="1";this.stripdiv.style.width="32766px";this.listdiv01.style.cssfloat="left";this.listdiv01.style.stylefloat="left";this.listdiv02.style.cssfloat="left";this.listdiv02.style.stylefloat="left";scroll.addevent(this.scrollcontdiv,"mouseover",function("scrollpic.childs["+this.id+"].stop()"));scroll.addevent(this.scrollcontdiv,"mouseout",function("scrollpic.childs["+this.id+"].play()"));if(this.arrleftid){this.arrleftobj=scroll.$(this.arrleftid);if(this.arrleftobj){scroll.addevent(this.arrleftobj,"mousedown",function("scrollpic.childs["+this.id+"].rightmousedown()"));scroll.addevent(this.arrleftobj,"mouseup",function("scrollpic.childs["+this.id+"].rightend()"));scroll.addevent(this.arrleftobj,"mouseout",function("scrollpic.childs["+this.id+"].rightend()"))}}if(this.arrrightid){this.arrrightobj=scroll.$(this.arrrightid);if(this.arrrightobj){scroll.addevent(this.arrrightobj,"mousedown",function("scrollpic.childs["+this.id+"].leftmousedown()"));scroll.addevent(this.arrrightobj,"mouseup",function("scrollpic.childs["+this.id+"].leftend()"));scroll.addevent(this.arrrightobj,"mouseout",function("scrollpic.childs["+this.id+"].leftend()"))}}if(this.dotlistid){this.dotlistobj=scroll.$(this.dotlistid);if(this.dotlistobj){var h=math.round(this.listdiv01.offsetwidth/this.framewidth+0.4),k,j;for(k=0;k=this.listdiv01.scrollwidth){this.scrollcontdiv.scrollleft=this.scrollcontdiv.scrollleft+this.space-this.listdiv01.scrollwidth}else{this.scrollcontdiv.scrollleft+=this.space}this.accountpageindex()};this.moveright=function(){if(this.scrollcontdiv.scrollleft-this.space<=0){this.scrollcontdiv.scrollleft=this.listdiv01.scrollwidth+this.scrollcontdiv.scrollleft-this.space}else{this.scrollcontdiv.scrollleft-=this.space}this.accountpageindex()};this.leftend=function(){if(c!="floating"){return}c="stoping";clearinterval(d);var h=this.pagewidth-this.scrollcontdiv.scrollleft%this.pagewidth;this.move(h)};this.rightend=function(){if(c!="floating"){return}c="stoping";clearinterval(d);var h=-this.scrollcontdiv.scrollleft%this.pagewidth;this.move(h)};this.move=function(j,k){var l=j/5;if(!k){if(l>this.space){l=this.space}if(l<-this.space){l=-this.space}}if(math.abs(l)<1&&l!=0){l=l>=0?1:-1}else{l=math.round(l)}var h=this.scrollcontdiv.scrollleft+l;if(l>0){if(this.scrollcontdiv.scrollleft+l>=this.listdiv01.scrollwidth){this.scrollcontdiv.scrollleft=this.scrollcontdiv.scrollleft+l-this.listdiv01.scrollwidth}else{this.scrollcontdiv.scrollleft+=l}}else{if(this.scrollcontdiv.scrollleft-l<=0){this.scrollcontdiv.scrollleft=this.listdiv01.scrollwidth+this.scrollcontdiv.scrollleft-l}else{this.scrollcontdiv.scrollleft+=l}}j-=l;if(math.abs(j)==0){c="ready";if(this.autoplay){this.play()}this.accountpageindex();return}else{this.accountpageindex();settimeout("scrollpic.childs["+this.id+"].move("+j+","+k+")",this.speed)}};this.next=function(){if(c!="ready"){return}c="stoping";this.move(this.pagewidth,true)};this.play=function(){if(!this.autoplay){return}clearinterval(a);a=setinterval("scrollpic.childs["+this.id+"].next()",this.autoplaytime*1000)};this.stop=function(){clearinterval(a)};this.pageto=function(h){if(c!="ready"){return}c="stoping";var j=h*this.framewidth-this.scrollcontdiv.scrollleft;this.move(j,true)};this.accountpageindex=function(){this.pageindex=math.round(this.scrollcontdiv.scrollleft/this.framewidth);if(this.pageindex>math.round(this.listdiv01.offsetwidth/this.framewidth+0.4)-1){this.pageindex=0}var h;for(h=0;h=7){this.start()}}marquee.prototype.start=function(){if(this.id==-1){return}if(this.waittime<800){this.waittime=800}if(this.timer<20){this.timer=20}if(this.width==0){this.width=parseint(this.id.style.width)}if(this.height==0){this.height=parseint(this.id.style.height)}if(typeof this.direction=="string"){this.direction=this.directionarray[this.direction.tostring().tolowercase()]}this.halfwidth=math.round(this.width/2);this.halfheight=math.round(this.height/2);this.bakstep=this.step;this.id.style.width=this.width+"px";this.id.style.height=this.height+"px";if(typeof this.scrollstep!="number"){this.scrollstep=this.direction>1?this.width:this.height}var d="
msclass_temp_htmlmsclass_temp_html
";var b="
msclass_temp_html
msclass_temp_html
";var e=this;e.temphtml=e.id.innerhtml;if(e.direction<=1){e.id.innerhtml=b.replace(/msclass_temp_html/g,e.id.innerhtml)}else{if(e.scrollstep==0&&e.delaytime==0){e.id.innerhtml+=e.id.innerhtml}else{e.id.innerhtml=d.replace(/msclass_temp_html/g,e.id.innerhtml)}}var f=this.timer;var a=this.delaytime;var c=this.waittime;e.startid=function(){e.scroll()};e.continue=function(){if(e.mouseover==1){settimeout(e.continue,a)}else{clearinterval(e.timerid);e.ctl=e.stop=0;e.timerid=setinterval(e.startid,f)}};e.pause=function(){e.stop=1;clearinterval(e.timerid);settimeout(e.continue,a)};e.begin=function(){e.clientscroll=e.direction>1?e.id.scrollwidth/2:e.id.scrollheight/2;if((e.direction<=1&&e.clientscroll<=e.height+e.step)||(e.direction>1&&e.clientscroll<=e.width+e.step)){e.id.innerhtml=e.temphtml;delete (e.temphtml);return}delete (e.temphtml);e.timerid=setinterval(e.startid,f);if(e.scrollstep<0){return}e.id.onmousemove=function(g){if(e.scrollstep==0&&e.direction>1){var g=g||window.event;if(window.event){if(e.isnotopera){e.eventleft=g.srcelement.id==e.id.id?g.offsetx-e.id.scrollleft:g.srcelement.offsetleft-e.id.scrollleft+g.offsetx}else{e.scrollstep=null;return}}else{e.eventleft=g.layerx-e.id.scrollleft}e.direction=e.eventleft>e.halfwidth?3:2;e.abscenter=math.abs(e.halfwidth-e.eventleft);e.step=math.round(e.abscenter*(e.bakstep*2)/e.halfwidth)}};e.id.onmouseover=function(){if(e.scrollstep==0){return}e.mouseover=1;clearinterval(e.timerid)};e.id.onmouseout=function(){if(e.scrollstep==0){if(e.step==0){e.step=1}return}e.mouseover=0;if(e.stop==0){clearinterval(e.timerid);e.timerid=setinterval(e.startid,f)}}};settimeout(e.begin,c)};marquee.prototype.scroll=function(){switch(this.direction){case 0:this.ctl+=this.step;if(this.ctl>=this.scrollstep&&this.delaytime>0){this.id.scrolltop+=this.scrollstep+this.step-this.ctl;this.pause();return}else{if(this.id.scrolltop>=this.clientscroll){this.id.scrolltop-=this.clientscroll}this.id.scrolltop+=this.step}break;case 1:this.ctl+=this.step;if(this.ctl>=this.scrollstep&&this.delaytime>0){this.id.scrolltop-=this.scrollstep+this.step-this.ctl;this.pause();return}else{if(this.id.scrolltop<=0){this.id.scrolltop+=this.clientscroll}this.id.scrolltop-=this.step}break;case 2:this.ctl+=this.step;if(this.ctl>=this.scrollstep&&this.delaytime>0){this.id.scrollleft+=this.scrollstep+this.step-this.ctl;this.pause();return}else{if(this.id.scrollleft>=this.clientscroll){this.id.scrollleft-=this.clientscroll}this.id.scrollleft+=this.step}break;case 3:this.ctl+=this.step;if(this.ctl>=this.scrollstep&&this.delaytime>0){this.id.scrollleft-=this.scrollstep+this.step-this.ctl;this.pause();return}else{if(this.id.scrollleft<=0){this.id.scrollleft+=this.clientscroll}this.id.scrollleft-=this.step}break}};function inputautoclear(a){var a=document.getelementbyid(a);a.onfocus=function(){if(this.value==this.defaultvalue){this.value=""}};a.onblur=function(){if(this.value==""){this.value=this.defaultvalue}}};