// javascript document
/* colorbox v1.3.20 */
(function(c){function r(b,d){d=d==="x"?m.width():m.height();return typeof b==="string"?math.round(b.match(/%/)?d/100*parseint(b,10):parseint(b,10)):b}function m(b){b=c.isfunction(b)?b.call(i):b;return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function y(){for(var b in a)if(c.isfunction(a[b])&&b.substring(0,2)!=="on")a[b]=a[b].call(i);a.rel=a.rel||i.rel;a.href=a.href||i.href;a.title=a.title||i.title}function z(b){i=b;a=c.extend({},c(i).data(q));y();if(a.rel&&a.rel!=="nofollow"){g= c(".cboxelement").filter(function(){return(c(this).data(q).rel||this.rel)===a.rel});j=g.index(i);if(j<0){g=g.add(i);j=g.length-1}}else{g=c(i);j=0}if(!b){c=b=n;n=i;n.blur();c(document).bind("keydown.cbox_close",function(d){if(d.keycode===27){d.preventdefault();e.close()}}).bind("keydown.cbox_arrows",function(d){if(g.length>1)if(d.keycode===37){d.preventdefault();d.click()}else if(d.keycode===39){d.preventdefault();e.click()}});a.overlayclose&&s.css({cursor:"pointer"}).one("click",e.close);c.event.trigger(aa); a.onopen&&a.onopen.call(i);s.css({opacity:a.opacity}).show();a.w=r(a.initialwidth,"x");a.h=r(a.initialheight,"y");e.position(0);o&&m.bind("resize.cboxie6 scroll.cboxie6",function(){s.css({width:m.width(),height:m.height(),top:m.scrolltop(),left:m.scrollleft()})}).trigger("scroll.cboxie6")}p.add(d).add(e).add(t).add(q).hide();r.html(a.close).show();e.slideshow();e.load()}var q="colorbox",f="hover",n=true,e,x=c.browser.msie&&!c.support.opacity,o=x&&c.browser.version<7,aa="cbox_open",h="cbox_load",s= "cbox_complete",t="resize.cbox_resize",s,k,u,p,u,v,w,x,g,m,l,i,j,k,q,p,t,e,d,r,y,z,v,w,i,n,j,a,b,c,$={transition:"elastic",speed:350,width:false,height:false,innerwidth:false,innerheight:false,initialwidth:"400",initialheight:"400",maxwidth:false,maxheight:false,scalephotos:n,scrolling:n,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.2,preloading:n,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,overlayclose:n, slideshow:false,slideshowauto:n,slideshowspeed:2500,slideshowstart:"start slideshow",slideshowstop:"stop slideshow",onopen:false,onload:false,oncomplete:false,oncleanup:false,onclosed:false};e=c.fn.colorbox=function(b,d){var h=this;if(!h.length)if(h.selector===""){h=c("");b.open=n}else return this;h.each(function(){var f=c.extend({},c(this).data(q)?c(this).data(q):$,b);c(this).data(q,f).addclass("cboxelement");if(d)c(this).data(q).oncomplete=d});b&&b.open&&z(h);return this};e.init=function(){function b(d){return c('
')}m=c(window);k=c('');s=b("overlay").hide();u=b("wrapper");p=b("content").append(l=b("loadedcontent").css({width:0,height:0}),j=b("loadingoverlay"),k=b("loadinggraphic"),q=b("title"),p=b("current"),t=b("slideshow"),e=b("next"),d=b("previous"),r=b("close"));u.append(c("").append(b("topleft"),u=b("topcenter"),b("topright")),c("").append(v=b("middleleft"),p,w=b("middleright")),c("").append(b("bottomleft"),x=b("bottomcenter"),b("bottomright"))).children().children().css({"float":"left"}); i=c("");c("body").prepend(s,k.append(u,i));if(x){k.addclass("cboxie");o&&s.css("position","absolute")}p.children().bind("mouseover mouseout",function(){c(this).toggleclass(f)}).addclass(f);y=u.height()+x.height()+p.outerheight(n)-p.height();z=v.width()+w.width()+p.outerwidth(n)-p.width();v=l.outerheight(n);w=l.outerwidth(n);k.css({"padding-bottom":y,"padding-right":z}).hide();e.click(e.next);d.click(e.prev);r.click(e.close);p.children().removeclass(f); c(".cboxelement").live("click",function(d){if(d.button!==0&&typeof d.button!=="undefined")return n;else{z(this);return false}})};e.position=function(b,d){function h(a){u[0].style.width=x[0].style.width=p[0].style.width=a.style.width;k[0].style.height=j[0].style.height=p[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var f=m.height();f=math.max(f-a.h-v-y,0)/2+m.scrolltop();var o=math.max(document.documentelement.clientwidth-a.w-w-z,0)/2+m.scrollleft();b=k.width()===a.w+w&&k.height()=== a.h+v?0:b;u[0].style.width=u[0].style.height="9999px";k.dequeue().animate({width:a.w+w,height:a.h+v,top:f,left:o},{duration:b,complete:function(){h(this);c=false;u[0].style.width=a.w+w+z+"px";u[0].style.height=a.h+v+y+"px";d&&d()},step:function(){h(this)}})};e.resize=function(b){function d(){a.w=a.w||l.width();a.w=a.mw&&a.mw");l.show();q.show().html(a.title);if(g.length>1){p.html(a.current.replace(/\{current\}/,j+1).replace(/\{total\}/,g.length)).show();e.html(a.next).show();d.html(a.previous).show();a.slideshow&&t.show()}j.hide();k.hide();c.event.trigger(s);a.oncomplete&&a.oncomplete.call(i);a.transition==="fade"&&k.fadeto(l,1,function(){x&&k[0].style.removeattribute("filter")}); m.bind(t,function(){e.position(0)})}})}if(b){var o,a,l=a.transition==="none"?0:a.speed;m.unbind(t);if(b){l.remove();l=c('').html(b);l.hide().appendto(i).css({width:d(),overflow:a.scrolling?"auto":"hidden"}).css({height:h()}).prependto(p);c("#cboxphoto").css({cssfloat:"none"});o&&c("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("cbox_cleanup",function(){this.style.visibility="inherit"});a.transition=== "fade"&&k.fadeto(l,0,function(){f(0)})||f(l);if(a.preloading&&g.length>1){b=j>0?g[j-1]:g[g.length-1];o=j").attr("src",o);m(b)&&c("").attr("src",b)}}else settimeout(function(){var g=l.wrapinner("").children();a.h=g.height();l.css({height:a.h});g.replacewith(g.children());e.position(l)},1)}};e.load=function(){var b,d,h,f=e.resize;c=n;i=g[j];a=c.extend({},c(i).data(q)); y();c.event.trigger(h);a.onload&&a.onload.call(i);a.h=a.height?r(a.height,"y")-v-y:a.innerheight?r(a.innerheight,"y"):false;a.w=a.width?r(a.width,"x")-w-z:a.innerwidth?r(a.innerwidth,"x"):false;a.mw=a.w;a.mh=a.h;if(a.maxwidth){a.mw=r(a.maxwidth,"x")-w-z;a.mw=a.w&&a.w').hide().insertbefore(c(b)[0]).bind(h+" cbox_cleanup",function(){c(this).replacewith(l.children())}); f(c(b))}else if(a.iframe)f(" ");else if(a.html)f(a.html);else if(m(b)){d=new image;d.onload=function(){var o;d.onload=null;d.id="cboxphoto";c(d).css({margin:"auto",border:"none",display:"block",cssfloat:"left"});if(a.scalephotos){h=function(){d.height-=d.height*o;d.width-=d.width*o};if(a.mw&&d.width>a.mw){o=(d.width-a.mw)/d.width;h()}if(a.mh&&d.height>a.mh){o=(d.height-a.mh)/d.height;h()}}if(a.h)d.style.margintop=math.max(a.h-d.height,0)/2+"px";f(d);g.length>1&&c(d).css({cursor:"pointer"}).click(e.next); if(x)d.style.msinterpolationmode="bicubic"};d.src=b}else c("").appendto(i).load(b,function(o,a){a==="success"?f(this):f(c("request unsuccessful.
"))})};e.next=function(){if(!c){j=j0?j-1:g.length-1;e.load()}};e.slideshow=function(){function b(){t.text(a.slideshowstop).bind(s,function(){h=settimeout(e.next,a.slideshowspeed)}).bind(h,function(){cleartimeout(h)}).one("click",function(){d();c(this).removeclass(f)});k.removeclass(f+ "off").addclass(f+"on")}var d,h,f="cboxslideshow_";t.bind("cbox_closed",function(){t.unbind();cleartimeout(h);k.removeclass(f+"off "+f+"on")});d=function(){cleartimeout(h);t.text(a.slideshowstart).unbind(s+" "+h).one("click",function(){b();h=settimeout(e.next,a.slideshowspeed);c(this).removeclass(f)});k.removeclass(f+"on").addclass(f+"off")};if(a.slideshow&&g.length>1)a.slideshowauto?b():d()};e.close=function(){c.event.trigger("cbox_cleanup");a.oncleanup&&a.oncleanup.call(i);b=false;c(document).unbind("keydown.cbox_close keydown.cbox_arrows"); m.unbind(t+" resize.cboxie6 scroll.cboxie6");s.css({cursor:"auto"}).fadeout("fast");k.stop(n,false).fadeout("fast",function(){c("#colorbox iframe").attr("src","about:blank");l.remove();k.css({opacity:1});try{n.focus()}catch(b){}c.event.trigger("cbox_closed");a.onclosed&&a.onclosed.call(i)})};e.element=function(){return c(i)};e.settings=$;c(e.init)})(jquery);
//////////////////////////////////////////////////////////////////////////////////
// cloud zoom v1.0.2放大镜效果
// (c) 2010 by r cecco.
// mit license
//
// please retain this copyright header in all versions of the software
//////////////////////////////////////////////////////////////////////////////////
(function(b){function n(g){for(var e=1;eloading...',c/3,c/2-c/6)).find(":last").css("opacity",0.5)}},1);var i=function(){if(u!==null){u.remove();
u=null}b(".cloud_zoom_wrap iframe").remove()};this.removebits=function(){if(h){h.remove();h=null}if(m){m.remove();m=null}if(l){l.remove();l=null}i();b(".cloud_zoom_loading",g.parent()).remove()};this.destroy=function(){g.data("zoom",null);if(i){i.unbind();i.remove();i=null}if(f){f.remove();f=null}this.removebits()};this.fadedout=function(){if(f){f.remove();f=null}this.removebits()};this.controlloop=function(){if(h){var c=a-d.offset().left-s*0.5>>0,j=b-d.offset().top-t*0.5>>0;if(c<0)c=0;else if(c>
d.outerwidth()-s)c=d.outerwidth()-s;if(j<0)j=0;else if(j>d.outerheight()-t)j=d.outerheight()-t;h.css({left:c,top:j});h.css("background-position",-c+"px "+-j+"px");d=c/d.outerwidth()*o.width>>0;e=j/d.outerheight()*o.height>>0;z+=(d-z)/e.smoothmove;y+=(e-y)/e.smoothmove;f.css("background-position",-(z>>0)+"px "+(-(y>>0)+"px"))}c=settimeout(function(){v.controlloop()},30)};this.init2=function(c,j){f++;if(j===1)o=c;f===2&&this.init()};this.init=function(){b(".cloud_zoom_loading",g.parent()).remove();
i=g.parent().append(n("",d.outerwidth(),d.outerheight(),0,0)).find(":last");i.bind("mousemove",this,function(c){a=c.pagex;b=c.pagey});i.bind("mouseleave",this,function(){cleartimeout(c);h&&h.fadeout(299);m&&m.fadeout(299);l&&l.fadeout(299);f.fadeout(300,function(){v.fadedout()});return false});i.bind("mouseenter",this,function(c){a=c.pagex;b=c.pagey;g=c.data;if(f){f.stop(true,
false);f.remove()}c=e.adjustx;var j=e.adjusty,w=d.outerwidth(),x=d.outerheight(),p=e.zoomwidth,q=e.zoomheight;if(e.zoomwidth=="auto")p=w;if(e.zoomheight=="auto")q=x;var r=g.parent();switch(e.position){case "top":j-=q;break;case "right":c+=w;break;case "bottom":j+=x;break;case "left":c-=p;break;case "inside":p=w;q=x;break;default:r=b("#"+e.position);if(r.length){p=r.innerwidth();q=r.innerheight()}else{r=g;c+=w;j+=x}}f=r.append(n('',
c,j,p,q,o.src)).find(":last");d.attr("title")&&e.showtitle&&f.append(n('%0
',d.attr("title"))).find(":last").css("opacity",e.titleopacity);if(b.browser.msie&&b.browser.version<7)u=b('').css({position:"absolute",left:c,top:j,zindex:8,width:p,height:q}).insertbefore(f);f.fadein(500);if(h){h.remove();h=null}s=d.outerwidth()/o.width*f.width();t=d.outerheight()/o.height*f.height();h=g.append(n("",
s,t)).find(":last");i.css("cursor",h.css("cursor"));c=false;if(e.tint){h.css("background",'url("'+d.attr("src")+'")');m=g.append(n('',d.outerwidth(),d.outerheight(),e.tint)).find(":last");m.css("opacity",e.tintopacity);c=true;m.fadein(500)}if(e.softfocus){h.css("background",'url("'+d.attr("src")+'")');l=g.append(n('',
d.outerwidth()-2,d.outerheight()-2,e.tint)).find(":last");l.css("background",'url("'+d.attr("src")+'")');l.css("opacity",0.5);c=true;l.fadein(500)}c||h.css("opacity",e.lensopacity);e.position!=="inside"&&h.fadein(500);g.controlloop()})};k=new image;b(k).load(function(){v.init2(this,0)});k.src=d.attr("src");k=new image;b(k).load(function(){v.init2(this,1)});k.src=g.attr("href")}b(document).ready(function(){b(".cloud_zoom, .cloud_zoom_gallery").cloudzoom()});b.fn.cloudzoom=function(g){try{document.execcommand("backgroundimagecache",
false,true)}catch(e){}this.each(function(){var d,k;eval("var\ta = {"+b(this).attr("rel")+"}");d=a;if(b(this).is(".cloud_zoom")){b(this).css({position:"relative",display:"block"});b("img",b(this)).css({display:"block"});b(this).parent().attr("class")!="cloud_zoom_wrap"&&b(this).wrap('');k=b.extend({},b.fn.cloudzoom.defaults,g);k=b.extend({},k,d);b(this).data("zoom",new h(b(this),k))}else if(b(this).is(".cloud_zoom_gallery")){k=
b.extend({},d,g);b(this).data("relopts",k);b(this).bind("click",b(this),function(f){var i=f.data.data("relopts");b("#"+i.usezoom).data("zoom").destroy();b("#"+i.usezoom).attr("href",f.data.attr("href"));b("#"+i.usezoom+" img").attr("src",f.data.data("relopts").smallimage);b("#"+i.usezoom+" img").attr("title",f.data.data("relopts").title);b("#"+f.data.data("relopts").usezoom).cloudzoom();b(this).addclass("small_img_select").parent().siblings().find('a.cloud_zoom_gallery').removeclass("small_img_select");return false})}});return this};b.fn.cloudzoom.defaults={zoomwidth:"560",zoomheight:"368",position:"right",
tint:false,tintopacity:0.5,lensopacity:0.5,softfocus:false,smoothmove:3,showtitle:true,title:"",titleopacity:0.5,adjustx:17,adjusty:0}})(jquery);
/*左右滚动*/
(function(a){a.fn.mslidiy=function(b){b=a.extend({num:5,controls:true,vertical:false,speed:200,step:1,auto:false,pause:2e3,continuous:true,controlsfade:false,html:'
'},b);this.each(function(){function e(l,r){var n=i;switch(l){case "next":i=n+b.num>g?b.continuous?0:n:i+b.step;break;case "prev":i=i<=0?b.continuous?g-b.num+1:0:i-b.step;break;default:break}n=math.abs(n-i);var s=
n*b.speed;if(b.vertical){p=i*j*-1;a("ul",c).animate({margintop:p},s)}else{p=i*f*-1;a("ul",c).animate({marginleft:p},s)}if(!b.continuous&&b.controlsfade){i==g-g%b.num?k.hide():k.show();i==0?o.hide():o.show()}r&&cleartimeout(q);if(b.auto&&l=="next"&&!r)q=settimeout(function(){e("next",false)},n*b.speed+b.pause)}var c=a(this);a(".clearer",c).remove();a(".first_child",c).removeclass("first_child");var d=a("li",c).length,f=a("li",c).outerwidth(),j=a("li",c).outerheight(),h=0;a("li",c).each(function(){var l=
a(this).outerheight();if(l>h)h=l});var m=0;a("li",c).each(function(){var l=a(this).height();if(l>m)m=l});if(b.vertical){c.css("overflow-y","hidden");c.width(f);db.num&&c.after(b.html);var k=a(".next",c.parent()),o=a(".prev",c.parent());k.click(function(){e("next",true)});o.click(function(){e("prev",true)});var q;if(b.auto)q=settimeout(function(){e("next",
false)},b.pause);!b.continuous&&b.controlsfade&&o.hide()})}})(jquery);