var sina={$: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(l,i,i){if(l.attachevent){l.attachevent("on"+i,i)}else{l.addeventlistener(i,i,false)}},delevent:function(l,i,i){if(l.detachevent){l.detachevent("on"+i,i)}else{l.removeeventlistener(i,i,false)}},readcookie:function(o){var o="",l=o+"=";if(document.cookie.length>0){var i=document.cookie.indexof(l);if(i!=-1){i+=l.length;var i=document.cookie.indexof(";",i);if(i==-1)i=document.cookie.length;o=unescape(document.cookie.substring(i,i))}};return o},writecookie:function(i,l,o,c){var o="",i="";if(o!=null){o=new date((new date).gettime()+o*3600000);o="; expires="+o.togmtstring()};if(c!=null){i=";domain="+c};document.cookie=i+"="+escape(l)+o+i},readstyle:function(i,l){if(i.style[l]){return i.style[l]}else if(i.currentstyle){return i.currentstyle[l]}else if(document.defaultview&&document.defaultview.getcomputedstyle){var i=document.defaultview.getcomputedstyle(i,null);return i.getpropertyvalue(l)}else{return null}}}; //婊氬姩鍥剧墖鏋勯€犲嚱鏁? //ui&ue dept. mengjia //090625 var sina={$:function(a){if(document.getelementbyid){return eval('document.getelementbyid("'+a+'")')}else{return eval('document.all.'+a)}},isie:navigator.appversion.indexof("msie")!=-1?true:false,addevent:function(a,b,c){if(a.attachevent){a.attachevent("on"+b,c)}else{a.addeventlistener(b,c,false)}},delevent:function(a,b,c){if(a.detachevent){a.detachevent("on"+b,c)}else{a.removeeventlistener(b,c,false)}},readcookie:function(l){var i="",i=l+"=";if(document.cookie.length>0){var a=document.cookie.indexof(i);if(a!=-1){a+=i.length;var b=document.cookie.indexof(";",a);if(b==-1)b=document.cookie.length;i=unescape(document.cookie.substring(a,b))}};return i},writecookie:function(o,o,l,i){var i="",c="";if(l!=null){i=new date((new date).gettime()+l*3600000);i="; expires="+i.togmtstring()};if(i!=null){c=";domain="+i};document.cookie=o+"="+escape(o)+i+c},readstyle:function(i,i){if(i.style[i]){return i.style[i]}else if(i.currentstyle){return i.currentstyle[i]}else if(document.defaultview&&document.defaultview.getcomputedstyle){var l=document.defaultview.getcomputedstyle(i,null);return l.getpropertyvalue(i)}else{return null}}};function scrollpic(a,b,c,d,e){this.scrollcontid=a;this.arrleftid=b;this.arrrightid=c;this.dotlistid=d;this.listtype=e;this.dotclassname="dotitem";this.dotonclassname="dotitemon";this.dotobjarr=[];this.listevent="onclick";this.circularly=true;this.pagewidth=0;this.framewidth=0;this.speed=10;this.space=10;this.upright=false;this.pageindex=0;this.autoplay=true;this.autoplaytime=5;this._autotimeobj;this._scrolltimeobj;this._state="ready";this.stripdiv=document.createelement("div");this.listdiv01=document.createelement("div");this.listdiv02=document.createelement("div")};scrollpic.prototype.version="1.20";scrollpic.prototype.author="mengjia";scrollpic.prototype.initialize=function(){var a=this;if(!this.scrollcontid){throw new error("蹇呴』鎸囧畾scrollcontid.");return};this.scrollcontdiv=sina.$(this.scrollcontid);if(!this.scrollcontdiv){throw new error("scrollcontid涓嶆槸姝g‘鐨勫璞?(scrollcontid = \""+this.scrollcontid+"\")");return};this.scrollcontdiv.style[this.upright?'height':'width']=this.framewidth+"px";this.scrollcontdiv.style.overflow="hidden";this.listdiv01.innerhtml=this.scrollcontdiv.innerhtml;this.scrollcontdiv.innerhtml="";this.scrollcontdiv.appendchild(this.stripdiv);this.stripdiv.appendchild(this.listdiv01);if(this.circularly){this.stripdiv.appendchild(this.listdiv02);this.listdiv02.innerhtml=this.listdiv01.innerhtml};this.stripdiv.style.overflow="hidden";this.stripdiv.style.zoom="1";this.stripdiv.style[this.upright?'height':'width']="32766px";if(!this.upright){this.listdiv01.style.cssfloat="left";this.listdiv01.style.stylefloat="left";this.listdiv01.style.overflow="hidden"};this.listdiv01.style.zoom="1";if(this.circularly&&!this.upright){this.listdiv02.style.cssfloat="left";this.listdiv02.style.stylefloat="left";this.listdiv02.style.overflow="hidden"};this.listdiv02.style.zoom="1";sina.addevent(this.scrollcontdiv,"mouseover",function(){a.stop()});sina.addevent(this.scrollcontdiv,"mouseout",function(){a.play()});if(this.arrleftid){this.arrleftobj=sina.$(this.arrleftid);if(this.arrleftobj){sina.addevent(this.arrleftobj,"mousedown",function(){a.rightmousedown()});sina.addevent(this.arrleftobj,"mouseup",function(){a.rightend()});sina.addevent(this.arrleftobj,"mouseout",function(){a.rightend()})}};if(this.arrrightid){this.arrrightobj=sina.$(this.arrrightid);if(this.arrrightobj){sina.addevent(this.arrrightobj,"mousedown",function(){a.leftmousedown()});sina.addevent(this.arrrightobj,"mouseup",function(){a.leftend()});sina.addevent(this.arrrightobj,"mouseout",function(){a.leftend()})}};if(this.dotlistid){this.dotlistobj=sina.$(this.dotlistid);this.dotlistobj.innerhtml="";if(this.dotlistobj){var b=math.round(this.listdiv01[this.upright?'offsetheight':'offsetwidth']/this.framewidth+0.4),i,tempobj;for(i=0;i=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+this.space-this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=this.space}}else{if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+this.space>=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]-this.framewidth){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]-this.framewidth;this.leftend()}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=this.space}};this.accountpageindex()};scrollpic.prototype.moveright=function(){if(this.circularly){if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-this.space<=0){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]+this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-this.space}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-=this.space}}else{if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-this.space<=0){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=0;this.rightend()}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-=this.space}};this.accountpageindex()};scrollpic.prototype.leftend=function(){if(this._state!="floating"){return};this._state="stoping";clearinterval(this._scrolltimeobj);var a=this.pagewidth-this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]%this.pagewidth;this.move(a)};scrollpic.prototype.rightend=function(){if(this._state!="floating"){return};this._state="stoping";clearinterval(this._scrolltimeobj);var a=-this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]%this.pagewidth;this.move(a)};scrollpic.prototype.move=function(a,b){var c=this;var d=a/5;if(!b){if(d>this.space){d=this.space};if(d<-this.space){d=-this.space}};if(math.abs(d)<1&&d!=0){d=d>=0?1:-1}else{d=math.round(d)};var e=this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d;if(d>0){if(this.circularly){if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d>=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d-this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=d}}else{if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d>=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]-this.framewidth){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]-this.framewidth;this._state="ready";return}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=d}}}else{if(this.circularly){if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d<0){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]+this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+d}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=d}}else{if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]-d<0){this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]=0;this._state="ready";return}else{this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]+=d}}};a-=d;if(math.abs(a)==0){this._state="ready";if(this.autoplay){this.play()};this.accountpageindex();return}else{this.accountpageindex();this._scrolltimeobj=settimeout(function(){c.move(a,b)},this.speed)}};scrollpic.prototype.pre=function(){if(this._state!="ready"){return};this._state="stoping";this.move(-this.pagewidth,true)};scrollpic.prototype.next=function(a){if(this._state!="ready"){return};this._state="stoping";if(this.circularly){this.move(this.pagewidth,true)}else{if(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]>=this.listdiv01[(this.upright?'scrollheight':'scrollwidth')]-this.framewidth){this._state="ready";if(a){this.pageto(0)}}else{this.move(this.pagewidth,true)}}};scrollpic.prototype.play=function(){var a=this;if(!this.autoplay){return};clearinterval(this._autotimeobj);this._autotimeobj=setinterval(function(){a.next(true)},this.autoplaytime*1000)};scrollpic.prototype.stop=function(){clearinterval(this._autotimeobj)};scrollpic.prototype.pageto=function(a){if(this.pageindex==a){return};cleartimeout(this._scrolltimeobj);this._state="stoping";var b=a*this.framewidth-this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')];this.move(b,true)};scrollpic.prototype.accountpageindex=function(){var a=math.round(this.scrollcontdiv[(this.upright?'scrolltop':'scrollleft')]/this.framewidth);if(a==this.pageindex){return};this.pageindex=a;if(this.pageindex>math.round(this.listdiv01[this.upright?'offsetheight':'offsetwidth']/this.framewidth+0.4)-1){this.pageindex=0};var i;for(i=0;i