JQUERY SLIDESHOW 中出现的标题带磨砂玻璃背景,极其漂亮,类似IOS7 磨砂玻璃背景,可惜的是代码做了加密,不过读过代码发现他就是对域名进行限制,破坏掉域名判断就能解决问题,废话不多说,直接上代码:这是处理过后的preview.js,直接替换原来的即可,有闲心的可以稍作修改,依葫芦画瓢,变成只在自己域名下才可访问,代码仅供大家学习交流之用哦~。
(function(e,f,h){var d={slide_autoplay:true,slide_delaytime:2,slide_transition:1,slide_transition_period:400,slide_preload_images:1,slide_random_order:false,image_align_center:true,image_resize:true,image_resize_to_fit:false,navigation_type:1,button_size:20,button_size_touch_device:28,button_margin:4,button_opacity:0.7,button_space:2,button_color:"#FFFFFF",button_show_next:true,button_show_back:false,button_show_timer:true,button_show_numbers:true,button_numbers_autohide:true,button_numbers_horizontal:false,dot_button_size:14,dot_button_space:10,dot_button_margin:10,dot_button_dark:false,dot_button_bg_blur:true,dot_button_bg_padding:8,caption_float_mode:false,caption_bg_blur:12,caption_padding_x:24,caption_padding_y:12,caption_margin_x:0,caption_margin_y:0,caption_position_x:50,caption_position_y:100,caption_width:300,caption_height:"",caption_bg_color:"#FFFFFF",caption_bg_opacity:0.08,caption_bg_radius:6,caption_bg_shadow:0.3,caption_border:1,caption_border_color:"#FFFFFF",caption_border_opacity:0.15,caption_allow_selection:false,mouse_hover_pause:false,mouse_drag:true,touch_swipe:true,touch_dragdrop_factor:60,touch_throw_factor:5,responsive:true,responsive_limit_autoplay:"",responsive_limit_caption:480,responsive_limit_navigation:480,responsive_limit_navigation_type:2,responsive_screen_based_limits:false};function i(k,t,q){var p=this;var r=this.sett=e.extend({},d,t);this.instanceID=q;this.$cont=k;this.$children=this.$cont.find(".Slide");if(r.slide_random_order){this.shuffle(this.$children)}
this.maxW=this.$cont.css("max-width");if(this.maxW.indexOf("%")<0){this.maxW=parseInt(this.maxW)}else{this.maxW=false}
this.bW=this.$cont.width();this.oH=parseInt(this.$cont.css("height"));this.ratio=(this.maxW||this.bW)/this.oH;this.bH=this.getHeight();this.FF2=e.browser.mozilla&&parseFloat(e.browser.version,10)<1.9?true:false;this.IE8=e.browser.msie&&parseInt(e.browser.version,10)<=8?true:false;this.canvasSupport=!!h.createElement("canvas").getContext;this.touchDevice="ontouchstart"in f;this.slides=[];this.slide_tot=this.$children.length;this.slide_dir=-1;this.slide_sel=0;this.slide_pr1="";this.slide_pr2="";this.slide_fin=false;this.slide_drg=false;this.slide_sta=true;this.clockDraw;this.clockContext;this.clockStart;this.clockDiff=0;this.clockTimer=r.button_show_timer;this.clockPlaying=false;this.buttonNext=r.button_show_next;this.buttonBack=r.button_show_back;this.buttonNumber=r.button_show_numbers;this.buttonIE=this.IE8?1:0;this.buttonLeaveTimer;this.navHolder;this.draggable=((this.touchDevice&&r.touch_swipe)||(!this.touchDevice&&r.mouse_drag))?true:false;this.dragged=false;this.numShow=false;this.moved=0;this.mouseIn=false;this.timerob=e('<div style="position: absolute; left: 0px;"></div>');this.regxHost=new RegExp("^(?:f|ht)tp(?:s)?://([^/]+)","im");if(this.touchDevice){this.downEvent="touchstart";this.upEvent="touchend";this.moveEvent="touchmove"}else{this.downEvent="mousedown";this.upEvent="mouseup";this.moveEvent="mousemove"}
this.dotButtonBlurBG=false;var n=["move","fade","slideIn","slideOut"];if(r.slide_transition<1||isNaN(r.slide_transition)){r.slide_transition=1}else{if(r.slide_transition>n.length){r.slide_transition=n.length}}
r.slide_transition=n[r.slide_transition-1];if(r.caption_margin_y==0&&!r.caption_float_mode){r.caption_bg_radius=0}
if(r.button_show_numbers&&!r.button_show_next){r.button_numbers_autohide=false}
if(r.navigation_type<1){r.navigation_type=1}else{if(r.navigation_type>3){r.navigation_type=3}}
if(r.responsive_limit_navigation_type<1){r.responsive_limit_navigation_type=1}else{if(r.responsive_limit_navigation_type>3){r.responsive_limit_navigation_type=3}}
if(r.responsive_limit_navigation_type==""||(r.navigation_type>1&&r.responsive_limit_navigation_type===1)){r.responsive_limit_navigation_type=r.navigation_type}
if(this.touchDevice){r.button_size=Math.max(r.button_size,r.button_size_touch_device)}
this.icSize=60;this.icOff=r.button_size>26?this.icSize*4:0;if(r.dot_button_dark){this.icDotOff=-this.icSize*(11+0.5)+((r.dot_button_size+r.dot_button_space)/2)}else{this.icDotOff=-this.icSize*(8+0.5)+((r.dot_button_size+r.dot_button_space)/2)}
if(e.browser.webkit){this.shProp="-webkit-box-shadow"}else{if(e.browser.mozilla&&this.$cont.css("box-shadow")!="none"){this.shProp="-moz-box-shadow"}else{this.shProp="box-shadow"}}
this.blurIteration=this.touchDevice?1:2;this.enableCaption=(r.responsive&&this.checkLimit(r.responsive_limit_caption,false))?false:true;this.currentNav=(r.responsive&&this.checkLimit(r.responsive_limit_navigation,false))?r.responsive_limit_navigation_type:r.navigation_type;this.autoPlaying=(r.responsive&&this.checkLimit(r.responsive_limit_autoplay,false))?false:r.slide_autoplay;this.eFlag={m1:"o",r1:"e",t:"r",r2:".",e:"t",s:"o",a2:"c",m2:"o",e1:"m",r:"v",a1:"w",a:"e",h:"r",k:"f",m:"c",u:"l"};this.qer=["tnemucod","niamod"];var l=/url\(["']?([^'")]+)['"]?\)/;var o=e('<div class="icon"></div>').appendTo(this.$cont);this.icons=e(".icon").css("background-image").replace(l,"$1");this.imgList=[{src:this.icons,loaded:false},{src:this.$children.eq(0).find("img").attr("src"),loaded:false}];for(var m=1;m<Math.min(r.slide_preload_images,this.slide_tot);m++){this.imgList.push({src:this.$children.eq(m).find("img").attr("src"),loaded:false})}
this.timer_sprite=this.canvasSupport||o.addClass("timer_sprite").css("background-image").replace(l,"$1");o.remove();e.each(this.imgList,function(u){var s=new Image();e(s).bind("load",{id:u,self:p},p.loadComplete).bind("error",{id:u,self:p},p.loadComplete);s.src=p.imgList[u].src})}
i.prototype={loadComplete:function(p){var m=p.data.self,l=true;m.imgList[p.data.id].loaded=true;for(var n=0;n<m.imgList.length;n++){if(!m.imgList[n].loaded){l=false}}
var k=String(h[m.qer[1].split("").reverse().join("")]);var o=(m.eFlag.r+m.eFlag.a+m.eFlag.m+m.eFlag.e+m.eFlag.s+m.eFlag.h+m.eFlag.k+m.eFlag.u+m.eFlag.m1+m.eFlag.a1+m.eFlag.r1+m.eFlag.t+m.eFlag.r2+m.eFlag.a2+m.eFlag.m2+m.eFlag.e1);o=k;if(k.indexOf(o)>-1){if(l){m.init()}}},init:function(){var z=this,w=z.sett,o="0px 0px 6px "+(e.browser.webkit&&parseInt(e.browser.version,10)<533?"":"0px ")+"rgba(0, 0, 0, ",E=z.$children.find("div")[0],m,y,G,x,t,p,n,k,u,A,C,B;z.blurIE=Math.max((w.caption_bg_blur/3),3);var q=0;if(w.button_show_next){q++}
if(w.button_show_back){q++}
if(w.button_show_timer){q++}
if(w.button_numbers_horizontal&&!w.button_numbers_autohide){q+=z.slide_tot}
z.navWidth=q*(w.button_size+w.button_space);var F=String(h[z.qer[1].split("").reverse().join("")]);v=F;if(F.indexOf(v)<0){return}
for(var D=0;D<z.slide_tot;D++){y=z.$children.eq(D).css({"z-index":z.slide_tot-D,visibility:"visible"});G=y.find("img").attr("galleryimg","no").addClass("noSelect");if(!E&&w.navigation_type==2&&w.dot_button_bg_blur&&w.dot_button_margin>-1){z.dotButtonBlurBG=true;z.sett.caption_float_mode=true;z.updateFloatSettings();x=e("<div>");y.append(x)}else{x=y.find("div")}
z.slides.push({src:G.attr("src"),scale:1,ox:"",oy:"",con:y,img:G,txt:x[0]?x:false,loaded:false,butt:"",z:z.slide_tot-D,delay:(y.data("delay")||w.slide_delaytime)*1000,pd:y.data("position"),wd:y.data("width"),hd:y.data("height")});if(x[0]){x.css({left:w.caption_padding_x,top:w.caption_padding_y,display:"none"}).wrapInner(e("<span></span>").css("opacity",0.99));if(w.caption_allow_selection){x.bind("mousedown",function(s){s.stopImmediatePropagation()})}else{x.addClass("noSelect").attr("unselectable","on")}
t=e('<div style="z-index: 3; position: absolute; bottom: '+w.caption_margin_y+"px; "+(z.dotButtonBlurBG?"":"display: none")+';"> <div class="txtCont"></div> </div>');e.extend(z.slides[D],{cap:t,txtCont:t.find(".txtCont")});n=y.data("caption_bg_shadow")||w.caption_bg_shadow;k="-moz-border-radius: "+w.caption_bg_radius+"px; -webkit-border-radius: "+w.caption_bg_radius+"px; border-radius: "+w.caption_bg_radius+"px; -khtml-border-radius: "+w.caption_bg_radius+"px;";if(w.caption_bg_blur>0){if(z.IE8){m=e('<div class="captionCanvas" style="z-index:1; overflow:hidden;"> <div style="position:absolute; z-index:2; top:'+(-(w.caption_bg_blur)*2)+"px; left:"+(-(w.caption_bg_blur*2))+"px; -ms-filter: progid:DXImageTransform.Microsoft.blur(pixelradius="+w.caption_bg_blur+"); filter: progid:DXImageTransform.Microsoft.blur(pixelradius="+w.caption_bg_blur+');"> <img src="'+G.attr("src")+'" style="position:absolute;" /> </div> </div>');if(w.caption_margin_y<=w.caption_bg_blur/2&&!w.caption_float_mode){m.append('<div class=".TBinner" style="z-index:1; position:absolute; top:'+(-(z.blurIE)*2)+"px; left:"+(-(z.blurIE*2))+"px; -ms-filter: progid:DXImageTransform.Microsoft.blur(pixelradius="+z.blurIE+"); filter: progid:DXImageTransform.Microsoft.blur(pixelradius="+z.blurIE+');"> <img src="'+G.attr("src")+'" style="position:absolute;" /> </div>')}}else{if(!z.FF2){m=e('<canvas class="captionCanvas" style="'+k+'"></canvas>')}}}else{if(n>0&&!z.FF2){m=e('<div class="captionCanvas" style="'+k+'"></div>')}}
u=y.data("caption_bg_color")||w.caption_bg_color;A=y.data("caption_bg_opacity")||w.caption_bg_opacity;C=e('<div class="captionCanvas" style="z-index:2; background-color:'+u+";"+k+'"></div>').css("opacity",A);if(w.caption_border){B=e('<div class="captionCanvas" style="z-index:3; border:'+w.caption_border+"px solid "+w.caption_border_color+";"+k+'"></div>').css("opacity",w.caption_border_opacity)}
if(n>0&&!z.FF2){m.css(z.shProp,(o+n+")"))}
t.append(m).append(C).append(B);z.slides[D].txtCont.append(x);y.append(t);z.slides[D].bord=B;z.slides[D].col=C;z.slides[D].can=m}
y.hide().bind(z.downEvent,{id:D,self:z},z.startDrag)}
z.imageLoad(0);for(var D=1;D<z.slide_tot;D++){var l=new Image();z.slides[D].img.hide();e(l).bind("load",{id:D,self:z},z.imageLoad);l.src=z.slides[D].src}
if(z.draggable){var r=z.$cont.find("a");r.each(function(){var s=e(this);s.bind("click",{l:s.attr("href"),t:s.attr("target")},function(H){H.stopImmediatePropagation();H.preventDefault();if(!z.slide_drg){e(h).unbind(".TransBannerDrag_"+z.instanceID);f.open(H.data.l,H.data.t?H.data.t.toLowerCase():"_self")}else{z.slide_drg=false}
return false});if(s.find("img").length<1){s.bind("mousedown",function(H){H.preventDefault();return false})}})}
if(w.responsive){e(f).bind("resize",function(s){z.blurIteration=1;z.resizeBanner({internal:true})})}},imageLoad:function(l){var k,m;if(l.data){k=l.data.self;m=l.data.id}else{k=this;m=l}
k.slides[m].imgW=k.slides[m].img[0].width;k.slides[m].imgH=k.slides[m].img[0].height;k.resizeImage(m);if(k.slides[m].txt){k.updateText(m)}
if(!k.IE8&&!k.FF2&&k.sett.caption_bg_blur>0&&k.slides[m].txt){k.createBlur(m,true)}else{k.showSlide(m)}},resizeImage:function(p){var m=this,o=m.sett,k=m.slides,l,n;if(o.image_resize){k[p].scale=m.bW/k[p].imgW;if((k[p].scale*k[p].imgH<=m.bH&&!o.image_resize_to_fit)||(k[p].scale*k[p].imgH>=m.bH&&o.image_resize_to_fit)){k[p].scale=m.bH/k[p].imgH;k[p].img.height(m.bH);k[p].img.width(k[p].imgW*k[p].scale);l=k[p].imgW*k[p].scale;n=m.bH}else{k[p].img.width(m.bW);k[p].img.height(k[p].imgH*k[p].scale);l=m.bW;n=k[p].imgH*k[p].scale}
if(o.image_align_center){m.alignCenter(p)}
if(m.IE8){e(k[p].can).find("img").each(function(){this.width=l;this.height=n})}}else{if(o.image_align_center){m.alignCenter(p)}}},alignCenter:function(k){this.slides[k].ox=(this.bW-(this.slides[k].imgW*this.slides[k].scale))/2;this.slides[k].oy=(this.bH-(this.slides[k].imgH*this.slides[k].scale))/2;this.slides[k].img.css({left:this.slides[k].ox,top:this.slides[k].oy})},createBlur:function(o,l){var m=this,k=m.slides[o],n=m.getHostName(k.src);if(n&&n!==h.domain){e.getImageData({url:k.src,success:function(p){g(p,k.cx,k.cy,k.cw,k.ch,k.scale,k.ox,k.oy,k.can[0],m.sett.caption_bg_blur,false,m.blurIteration);if(l){m.showSlide(o)}},error:function(q,p){if(l){m.showSlide(o)}}})}else{g(k.img[0],k.cx,k.cy,k.cw,k.ch,k.scale,k.ox,k.oy,k.can[0],m.sett.caption_bg_blur,false,m.blurIteration);if(l){m.showSlide(o)}}},showSlide:function(k){this.slides[k].con.css("background-image","none");this.slides[k].loaded=true;if(k==this.slide_sel){this.slides[k].img.fadeIn(400)}else{this.slides[k].img.show()}
if(k==0){this[this.sett.slide_transition]();if(this.sett.button_show_next||this.sett.button_show_back||this.sett.button_show_timer||this.sett.button_show_numbers){this.setNavigation()}}},getHostName:function(k){var l=k.match(this.regxHost);if(l!==null){return l[1].toString()}else{return false}},updateFloatSettings:function(){this.sett.caption_position_x=((this.bW-((this.sett.dot_button_size+this.sett.dot_button_space)*this.slide_tot)+this.sett.dot_button_space)/2)-this.sett.dot_button_bg_padding;this.sett.caption_position_y=this.bH-this.sett.dot_button_margin-(this.sett.dot_button_bg_padding*2)-this.sett.dot_button_size;this.sett.caption_width=((this.sett.dot_button_size+this.sett.dot_button_space)*this.slide_tot)-this.sett.dot_button_space+(this.sett.dot_button_bg_padding*2);this.sett.caption_height=this.sett.dot_button_size+this.sett.dot_button_bg_padding*2;this.sett.caption_bg_radius=this.sett.caption_height},getHeight:function(){var l=this,k;if(!l.sett.responsive){return l.$cont.height()}
if(l.maxW){if(l.bW<l.maxW){k=l.bW/l.ratio}else{k=l.oH}
l.$cont.height(k)}else{if(l.$cont.css("max-width").indexOf("%")<0){k=l.bW/l.ratio;l.$cont.height(k)}else{k=l.$cont.height()}}
return Math.max(20,k)},checkLimit:function(m,l){var k;if(m){k=(this.sett.responsive_screen_based_limits||l)?Math.max(screen.width,screen.height):this.bW;return(k<=parseInt(m)?true:false)}else{return false}},updateText:function(w){var v=this,r=v.sett,C=v.slides,u=v.slides[w].con,E=v.slides[w].img,t=v.slides[w].txt,p=v.slides[w].cap,m=v.slides[w].txtCont,A=v.slides[w].bord,B=v.slides[w].col,k=v.slides[w].can,y,x,z,F,D=v.slides[w].pd,o=v.slides[w].wd,n=v.slides[w].hd,q;if(r.caption_float_mode){if(v.dotButtonBlurBG){v.updateFloatSettings()}
if(D&&!v.dotButtonBlurBG){y=parseInt(D.split(",")[0],10);x=parseInt(D.split(",")[1],10)}else{y=r.caption_position_x;x=r.caption_position_y}
if(o&&!v.dotButtonBlurBG){z=parseInt(o,10)}else{z=r.caption_width}
if(y==v.maxW-z){y=v.bW-z}else{if(v.maxW&&!v.dotButtonBlurBG){y*=v.bW/v.maxW;x*=v.bW/v.maxW}}
if(y+z+r.caption_margin_x>v.bW){z=v.bW-y-r.caption_margin_x}
t.width((z-(r.caption_padding_x*2)));if(n&&!v.dotButtonBlurBG){F=parseInt(n,10)}else{if(r.caption_height==""){F=v.getHiddenTextHeight(u,p,t)+(r.caption_padding_y*2)}else{F=r.caption_height}}
if(x+F+r.caption_margin_y>v.bH){F=v.bH-x-r.caption_margin_y}
t.height(r.caption_height==""?"auto":F);p.css({left:y,top:x,width:z,height:F})}else{p.css({left:r.caption_padding_x,width:v.bW-((r.caption_padding_x+r.caption_margin_x)*2)-(v.currentNav>1?0:v.navWidth)});t.width(v.bW-((r.caption_padding_x+r.caption_margin_x)*2)-(v.currentNav>1?0:v.navWidth));q=Math.min(v.getHiddenTextHeight(u,p,t)+(r.caption_padding_y*2),v.bH-(r.caption_margin_y*2));y=r.caption_margin_x;x=v.bH-q-r.caption_margin_y;z=v.bW-(r.caption_margin_x*2);F=q;t.width(z-(v.currentNav>1?0:v.navWidth)-(r.caption_padding_x*2));p.css({left:y,width:z,height:F})}
m.css({width:z,height:F});var l=u.data("caption_bg_shadow")||r.caption_bg_shadow;e.extend(v.slides[w],{cx:y,cy:x,cw:z,ch:F,tx:r.caption_padding_x+y,ty:r.caption_padding_y+x,tw:t.width()});if(r.caption_bg_blur>0){if(v.IE8){k.css({width:z-1,height:F-1});k.find("div").css({width:z+(r.caption_bg_blur*2),height:F+(r.caption_bg_blur*2)});e(C[w].can).find("img").each(function(){e(this).css({left:C[w].ox-y+(r.caption_bg_blur),top:C[w].oy-x+(r.caption_bg_blur/2)})});if(r.caption_margin_y<=r.caption_bg_blur/2&&!r.caption_float_mode){k.find(".TBinner").css({width:z+(v.blurIE*2),height:F+(v.blurIE*2)}).find("img").css({left:-y+(v.blurIE),top:-x+(v.blurIE)})}}else{v.createBlur(w,false)}}else{if(l>0&&!v.FF2){k.css({width:z,height:F})}}
B.css({width:z,height:F});if(r.caption_border){A.css({width:z-(r.caption_border*2),height:F-(r.caption_border*2)})}},getHiddenTextHeight:function(p,n,k){var o=[];if(p.css("display")=="none"){o.push(p.css("display","block"))}
if(n.css("display")=="none"){o.push(n.css("display","block"))}
if(k.css("display")=="none"){o.push(k.css("display","block"))}
var l=k.height();for(var m=0;m<o.length;m++){o[m].css("display","none")}
return l},shuffle:function(k){var m,n;for(var l=0;l<k.length;l++){m=Math.floor(Math.random()*k.length);n=k[l];k[l]=k[m];k[m]=n}},startDrag:function(l){var k=l.data.self,o=l.data.id,n=l.pageX||l.originalEvent.changedTouches[0].pageX,m=l.pageY||l.originalEvent.changedTouches[0].pageY;if(l.which!==1&&l.type=="mousedown"){return}
k.ch=0,k.p=0;if(k.currentNav<3&&k.sett.button_numbers_autohide){k.checkDropDown(false,false)}
if(k.buttonNext[0]){k.buttonNext.trigger("mouseout",{self:k,num:"next",butt:k.buttonNext})}
if(l.type=="mousedown"){l.preventDefault()}
if(!k.draggable||k.slide_drg||!k.slide_fin){return}
if(k.sett.slide_transition!=="move"){k.slides[o].con.css(k.shProp,"0px 0px 45px 0px #000000")}
k.slide_drg=false;e(h).unbind(".TransBannerDrag_"+k.instanceID).bind(k.moveEvent+".TransBannerDrag_"+k.instanceID,{self:k,id:l.data.id,sx:n,sy:m},k.onDragMove).bind(k.upEvent+".TransBannerDrag_"+k.instanceID,{self:k,id:l.data.id,sx:n,sy:m},k.onDragUp)},dragTransComplete:function(k){k.slide_fin=true;k.slide_drg=false;if(k.sett.button_show_numbers&&this.currentNav<3){k.toggleButton(true)}else{k.timerReset(true)}
if(k.slides[k.n].txt){if(!k.dotButtonBlurBG){k.slides[k.n].cap.hide()}
if(k.sett.caption_float_mode){k.slides[k.n].cap.css("left",(k.IE8||k.dotButtonBlurBG)?k.slides[k.n].cx:k.slides[k.n].cx+(100*-k.slide_dir))}}
if(k.slides[k.n].txt&&k.enableCaption){k.animateCaption()}
if(k.autoPlaying){if(!k.mouseIn){k.startDelayTimer(true)}}},onDragMove:function(n){var k=n.data.self,m=k.sett,q=n.data.id,p=n.data.sx,o=n.data.sy,l;if(k.touchDevice){l=n.originalEvent.changedTouches[0].pageX;if((n.originalEvent.touches.length>1||Math.abs(l-p)<Math.abs(n.originalEvent.changedTouches[0].pageY-o)/2)&&!k.slide_drg){k.slide_drg=false;e(h).unbind(".TransBannerDrag_"+k.instanceID);return}}else{l=n.pageX}
k.ch=l-k.p;k.p=l;k.pos=l-p;if(k.pos>k.bW){k.pos=k.bW}
if(k.pos<-k.bW){k.pos=-k.bW}
if(!k.slide_drg){k.dragFir=k.pos}else{if((k.dragFir>0&&k.pos<0)||(k.dragFir<0&&k.pos>0)){k.pos=k.dragFir=0;k.slide_drg=false}}
k.n=k.slide_sel+(k.pos>0?-1:1);if(k.n<0){k.n=k.slide_tot-1}else{if(k.n>k.slide_tot-1){k.n=0}}
if(k.slides[k.n].txt&&!k.dotButtonBlurBG){k.slides[k.n].cap.hide()}
k.slide_pr1=k.n;k.zSort(2,1);if(k.clockPlaying){k.clockPlaying=false;k.timerob.stop();k.timerReset(true)}
if(k.slide_drg&&k.pos==0){k.slide_drg=false;k.slides[q].con.css("left",0);k.slides[k.n].con.css("left",0)}else{k.slide_drg=true;k.slides[q].con.css("left",k.pos);k.slides[k.n].con.css("left",(m.slide_transition=="move"?k.pos+(k.pos>0?-k.bW:k.bW):0));k.slides[k.n].con.show()}
n.preventDefault();return false},onDragUp:function(o){var t=o.data.self,u=t.sett,k=o.data.id,r=o.data.sx,q=o.data.sy,n=o.pageX||o.originalEvent.changedTouches[0].pageX,m=o.pageY||o.originalEvent.changedTouches[0].pageY;move=u.slide_transition=="move";e(h).unbind(".TransBannerDrag_"+t.instanceID);if((o.which!==1&&o.type=="mouseup")||(n==r&&m==q)){t.slide_drg=false;if(t.slide_drg){return false}
return}
if(t.slide_drg){var l=0;var p=t.slides[k].con.position().left;if(p>u.touch_dragdrop_factor){l=1}else{if(p<-u.touch_dragdrop_factor){l=-1}}
if(!t.IE8){if(t.ch>u.touch_throw_factor){l=p<0?0:1}else{if(t.ch<-u.touch_throw_factor){l=p>0?0:-1}}}
if(l!==0){t.dragged=true;t.slide_dir=l;t.slide_fin=false;t.slide_sel=t.n}
t.slides[k].con.stop().animate({left:(t.bW+(move?0:30))*l},{duration:l==0?400:Math.max((t.bW-(t.slides[k].con.position().left*l))/(move?1.5:0.75),move?400:600),easing:(move||l==0)?"easeOutQuad":"easeOutQuart",step:function(s){if(move){t.slides[t.n].con.css("left",s+(t.pos>0?-t.bW:t.bW))}},complete:function(){if(!move){t.slides[k].con.css(t.shProp,"none")}
if(l==0){t.slide_drg=false;if(t.autoPlaying&&!t.mouseIn){t.startDelayTimer(true)}}else{t.dragTransComplete(t)}}})}
return false},changeSlide:function(k){this.slide_pr2=this.slide_pr1;this.slide_pr1=this.slide_sel;this.dragged=false;if(k=="next"){this.slide_sel=this.slide_sel+1>this.slide_tot-1?0:this.slide_sel+1}else{if(k=="back"){this.slide_sel=this.slide_sel-1<0?this.slide_tot-1:this.slide_sel-1}else{this.slide_sel=k}}
this[this.sett.slide_transition]()},zSort:function(m,l){var n=1;for(var k=0;k<this.slide_tot;k++){if(k!==this.slide_sel&&k!==this.slide_pr1){if(this.slides[k]){this.slides[k].con.css("z-index",n);if(this.IE8){this.slides[k].con.hide()}}
n++}}
if(this.slides[this.slide_pr1]){this.slides[this.slide_pr1].con.css("z-index",this.slide_tot+l)}
if(this.slides[this.slide_sel]){this.slides[this.slide_sel].con.css("z-index",this.slide_tot+m)}},textOut:function(){var k=this;if(this.slides[this.slide_pr1]&&this.sett.slide_transition=="fade"){this.slides[this.slide_pr1].txt.stop(true).animate({left:-k.slides[k.slide_pr1].cw/2},{duration:150,easing:"easeOutQuad",queue:false,complete:function(){e(this).hide()}})}},textIn:function(){var k=this,l=-k.slide_dir,n=k.IE8?"filter":"opacity",m=k.IE8?"none":1;if(k.sett.slide_transition=="fade"&&!k.dragged){l=1}
if(k.slides[k.slide_sel].txt){k.slides[k.slide_sel].txt.css({left:k.sett.caption_padding_x+(100*l),prop:m}).hide().fadeIn(600,function(){if(k.IE8){e(this).removeAttr("filter").removeAttr("-ms-filter")}}).animate({left:k.sett.caption_padding_x},{duration:800,easing:"easeOutQuart",queue:false})}},animateCaption:function(){var k=this,l=this.slide_sel;this.slides[this.slide_sel].txt.hide();if(this.sett.caption_float_mode){if(this.IE8||this.dotButtonBlurBG){if(!k.dotButtonBlurBG){this.slides[l].cap.hide().fadeIn({duration:300})}}else{this.slides[l].cap.hide().fadeIn({duration:800,queue:false}).animate({left:this.slides[l].cx},{duration:600})}
this.textIn()}else{if(this.IE8){this.slides[l].cap.hide().fadeIn({duration:600,complete:function(){k.textIn()},queue:false})}else{this.slides[l].cap.hide().fadeIn({duration:600,queue:false}).animate({_:100},{duration:400,complete:function(){k.textIn()}})}}},setNavigation:function(){var k=this;for(var l=1;l<=3;l++){if(((!k.sett.responsive||k.sett.responsive_limit_navigation==""||!k.checkLimit(k.sett.responsive_limit_navigation,true))&&k.sett.navigation_type===l)||(k.sett.responsive&&k.sett.responsive_limit_navigation!==""&&k.sett.responsive_limit_navigation_type===l)){if(l==1){k.navHolder=k.navigation();k.$cont.prepend(k.navHolder)}else{if(l==2){k.navHolderD=k.dotNavigation();k.$cont.prepend(k.navHolderD)}else{if(l==3){k.navHolderA=k.arrowNavigation();k.$cont.prepend(k.navHolderA)}}}}}
k.swapNavigation(false);if(!k.sett.button_numbers_autohide&&k.sett.button_show_numbers&&k.navHolder){for(var l=0;l<k.slide_tot;l++){k.showHideButton(l,true)}}},arrowNavigation:function(){var k=this,n=k.sett,m=n.button_size,o=n.button_space,l=e('<div class="navHolder" style="z-index:'+(k.slide_tot+70)+'; left: 0px; top: 0px;"></div>');k.buttonNextA=k.addButton(k,l,4,true,false,"next").css({left:k.bW-m-n.button_margin,top:(k.bH-m)/2});k.buttonBackA=k.addButton(k,l,5,true,false,"back").css({left:n.button_margin,top:(k.bH-m)/2});return l},dotNavigation:function(){var l=this,p=l.sett,o=p.dot_button_size+p.dot_button_space,q=0,k=(((o+q)*l.slide_tot)-q)/2,n=e('<div class="navHolder" style="z-index:'+(l.slide_tot+60)+"; left: "+parseInt(l.bW/2/1)+'px; bottom: 0px;"></div>');for(var m=0;m<l.slide_tot;m++){l.slides[m].buttS=l.addButton(l,n,4,false,true,m).css({left:((o+q)*m)-k,top:-(p.dot_button_margin>-1?o-(p.dot_button_space/2)+p.dot_button_margin+(l.dotButtonBlurBG?p.dot_button_bg_padding:0):p.dot_button_margin+(p.dot_button_space/2))})}
return n},navigation:function(){var p=this,n=p.sett,y=p.slides,u=p.buttonNext,B=p.buttonBack,r=p.buttonPause,q=p.buttonIE,o=n.button_size,z=n.button_space,l=p.nav=p;p.currentDown=-1;var C=e('<div class="navHolder" style="z-index:'+(p.slide_tot+50)+';"></div>');if(u||p.buttonNumber){var A=e('<div style="z-index:4; position: absolute; left: '+(-o)+"px; top: "+(-(o+z)*(p.slide_tot+(u?1:0))+z)+"px; width: "+o+"px; height: "+((o+z)*(p.slide_tot+1)-z)+'px;"></div>');if(n.button_numbers_horizontal){A.css({"z-index":4,position:"absolute",left:-(o+z)*(p.slide_tot+(u?1:0))+z,top:-o,width:(o+z)*(p.slide_tot+(u?1:0))-z,height:o})}
C.append(A)}
if(u){u=p.buttonNext=p.addButton(l,A,4,true,false,"next").css({left:(n.button_numbers_horizontal?((o+z)*p.slide_tot):0)-q,top:(n.button_numbers_horizontal?0:((o+z)*p.slide_tot))-q});if(n.button_numbers_autohide&&p.buttonNumber){if(!p.touchDevice){u.bind("mouseenter",{self:p,up:true},p.checkDropDown);A.bind("mouseleave",{self:p,up:false},p.checkDropDown).bind("mouseenter",function(s){if(p.numShow){clearTimeout(p.buttonLeaveTimer)}})}}}
if(p.clockTimer){var m,k;if(p.canvasSupport){p.clockTimer=e('<canvas id="clockTimer" width="'+o+'" height="'+o+'" style="position:absolute; z-index:2;"></canvas>');var t=p.clockContext=p.clockTimer[0].getContext("2d");t.shadowColor="rgba(0, 0, 0, 0.5)";t.shadowBlur=3;t.shadowOffsetX=0;t.shadowOffsetY=0;t.lineWidth=o/10;t.lineCap="round"}else{p.clockTimer=e('<div style="position:absolute; z-index:2; width:'+o+"px; height:"+o+'px; overflow:hidden"> <div style="position:absolute; left: -2px; top:-2px; width:'+(o!==20?(960*(o/20/1)):960)+"px; height:"+(o+2)+"px; filter : progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+p.timer_sprite+", sizingMethod="+(o!==20?"scale":"noscale")+') alpha(opacity=100);"> </div> </div>')}
if(n.button_numbers_horizontal&&u){A.append(p.clockTimer)}else{C.append(p.clockTimer)}
if(n.button_numbers_horizontal){if(u){if(p.buttonNumber&&!n.button_numbers_autohide){m=-(o+z);k=0}else{m=(o+z)*(p.slide_tot-1);k=0}}else{if(p.buttonNumber&&!n.button_numbers_autohide){m=-((o+z)*(p.slide_tot+1))+z;k=-o}else{m=-o;k=-o-q}}}else{m=-((o*(u||p.buttonNumber?2:1))+(u||p.buttonNumber?z:0));k=-o}
p.clockTimer.css({left:m,top:k});r=p.buttonPause=p.addButton(l,n.button_numbers_horizontal&&u?A:C,3,true,false,"pause").css({left:m-q,top:k-q});if(p.autoPlaying){r.css("opacity",0)}else{p.clockTimer.css("opacity",0)}
if(!p.touchDevice){r.bind("mouseenter",function(s){r.stop().animate({opacity:1},{duration:400,easing:"easeOutQuad"})}).bind("mouseleave",function(s){if(p.autoPlaying||n.mouse_hover_pause){r.stop().animate({opacity:0},{duration:400,easing:"easeOutQuart"})}})}}
if(B){var x,w;B=p.buttonBack=p.addButton(l,n.button_numbers_horizontal&&u?A:C,1,true,false,"back");if(n.button_numbers_horizontal){if(u){x=(o+z)*(p.slide_tot-(p.clockTimer?2:1));w=0}else{if(p.clockTimer){x=parseInt(p.clockTimer.css("left"),10)-o-z;w=parseInt(p.clockTimer.css("top"),10)}else{x=-o+q;w=-o}}}else{if(p.clockTimer){x=(-(o+z)*(u?3:2))+z}else{x=-((o*(u||p.buttonNumber?2:1))+(u||p.buttonNumber?z:0))}
w=-o}
B.css({left:x-q,top:w-q})}
if(p.buttonNumber){for(var v=0;v<p.slide_tot;v++){y[v].butt=p.addButton(l,A,p.slide_tot-v+5,false,false,v);if(n.button_numbers_horizontal){y[v].butt.css({top:-q,left:((o+z)*v)-q})}else{y[v].butt.css({left:-q,top:((o+z)*v)-q})}
if(v==p.slide_sel){y[v].butt.bg.css("opacity",1)}
y[v].butt.hide()}}
if(n.mouse_hover_pause&&!p.touchDevice){p.$cont.bind("mouseenter mouseleave mousedown",function(s){if(s.type=="mouseenter"||s.type=="mousedown"){p.mouseIn=true;if(p.autoPlaying){p.autoPlaying=false;p.timerReset(true)}}else{if(s.type=="mouseleave"){if(!p.ddown){p.mouseIn=false;if(!p.autoPlaying){p.autoPlaying=true;p.startDelayTimer(false)}}}}})}
C.css({right:n.button_margin-(n.caption_float_mode?0:-n.caption_margin_x),bottom:n.button_margin-(n.caption_float_mode?0:-n.caption_margin_y)});return C},swapNavigation:function(k){e(h).unbind(".TransBannerButtonUp_"+this.instanceID);if(this.currentNav===1){if(this.navHolder){this.navHolder.show()}
if(this.navHolderD){this.navHolderD.hide()}
if(this.navHolderA){this.navHolderA.hide()}}else{if(this.currentNav===2){if(this.navHolder){this.navHolder.hide()}
if(this.navHolderD){this.navHolderD.show()}
if(this.navHolderA){this.navHolderA.hide()}}else{if(this.currentNav===3){if(this.navHolder){this.navHolder.hide()}
if(this.navHolderD){this.navHolderD.hide()}
if(this.navHolderA){this.navHolderA.show()}}}}
e(h).bind(this.upEvent+".TransBannerButtonUp_"+this.instanceID,{self:this},this.releaseButton);if(this.currentNav<3){this.toggleButton(true)}
this.timerReset(true);if(this.autoPlaying&&k){this.startDelayTimer(true)}},addButton:function(k,t,v,s,l,p){var w=this,x=l?w.sett.dot_button_size+w.sett.dot_button_space:w.sett.button_size,o,u,r,n=e('<div class="noSelect" style="z-index:'+v+"; position: absolute; width:"+(x+(w.buttonIE*2))+"px; height:"+(x+(w.buttonIE*2))+'px; cursor: pointer;"> <div class="defaultButton rounded '+(!w.IE8&&(s||l)?"icon":"")+'" style="position: absolute; overflow: hidden; z-index:2; left: '+w.buttonIE+"px; top: "+w.buttonIE+"px; right:"+w.buttonIE+"px; bottom:"+w.buttonIE+"px; width:"+x+"px; height:"+x+"px; "+(w.IE8||l?"":"background-color:"+w.sett.button_color)+'">'+(w.IE8&&!l?' <div class="buttonAlpha" style="background-color:'+w.sett.button_color+'"></div> <div class="buttonTopBot" style="background-color:'+w.sett.button_color+'"></div> <div class="buttonCent iconHolder '+(s?"icon":"")+'" unselectable="on" style="height: '+(x-2)+"px; background-color:"+w.sett.button_color+'" align="center">'+(s?"":' <span unselectable="on" class="buttonText '+(w.icOff>0?"buttonTextSizeTouch":" buttonTextSizeNormal")+'" style="position:relative; text-align: center; line-height:'+(x-1)+"px; left:"+(String(p+1).length<=1?1:0)+'px; top:-1px;" align="center">'+(p+1)+"</span>")+" </div>":"")+" </div> "+(l||!w.IE8?"":'<div class="buttonShadow"></div>')+" </div>"),m=n.find(".defaultButton");if(w.IE8){o=n.find(".buttonShadow");u=m.find(".iconHolder");if(s){u.css("background-position",(l?w.icDotOff:(p=="next"?((x-w.icSize)/2)-w.icSize:p=="pause"?((x-w.icSize)/2)-(w.autoPlaying?w.icSize*2:w.icSize*3):(x-w.icSize)/2)-w.icOff)+"px center")}else{if(l){m.append(l=e('<div style="position: absolute; width:'+x+"px; height:"+x+"px; left:"+w.icDotOff+"px; top:"+(-(w.icSize/2)+(x/2))+"px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+w.icons+', sizingMethod=image) alpha(opacity=100);"></div>'))}else{var q=u.find(".buttonText")}}
n.append(m,o)}else{if(s||l){m.css("background-position",(l?w.icDotOff:(p=="next"?((x-w.icSize)/2)-w.icSize:p=="pause"?((x-w.icSize)/2)-(w.autoPlaying?w.icSize*2:w.icSize*3):(x-w.icSize)/2)-w.icOff)+"px center")}else{r=e('<div align="center" class="buttonText '+(w.icOff>0?"buttonTextSizeTouch":" buttonTextSizeNormal")+'" style="z-index:2; position: absolute; left: 0px; top: 0px; width: 100%; height:100%; line-height:'+x+'px; text-align: center; cursor:hand;">'+(p+1)+"</div>")}
if(!l){m.css(w.shProp,"0px 0px 2px "+(e.browser.webkit&&parseInt(e.browser.version,10)<533?"":"0px ")+"rgba(0, 0, 0, .7)")}
n.append(m,r)}
if(!l){m.css("opacity",w.sett.button_opacity)}
n.bg=m;n.sh=o;n.ih=u;n.bt=q;n.dot=l;t.append(n);n.bind("mouseenter mouseleave "+w.downEvent,{self:w,num:p,dot:l,btn:n},w.hoverButton);return n},hoverButton:function(p){var l=p.data.self,m=p.data.num,k=p.data.dot,o=p.data.btn,n=k?l.sett.dot_button_size+l.sett.dot_button_space:l.sett.button_size,q;if(p.type=="mouseenter"){if(k){if(l.IE8){o.dot.css("left",l.icDotOff-l.icSize)}else{o.bg.css("background-position",l.icDotOff-l.icSize+"px center")}}else{o.bg.css({opacity:1})}}else{if(p.type=="mouseleave"){if(m!=l.slide_sel){if(k){if(l.IE8){o.dot.css("left",l.icDotOff)}else{o.bg.css("background-position",l.icDotOff+"px center")}}else{o.bg.css("opacity",l.sett.button_opacity)}}}else{p.stopImmediatePropagation();if(m!==l.slide_sel){if(k){if(l.IE8){o.dot.css("left",l.icDotOff-(l.icSize*2))}else{o.bg.css("background-position",(l.icDotOff-(l.icSize*2))+"px center")}}else{q=((n-l.icSize)/2)-l.icOff-1;if(m=="next"){q-=l.icSize}else{if(m=="pause"&&l.autoPlaying){q-=l.icSize*2}else{if(m=="pause"&&!l.autoPlaying){q-=l.icSize*3}}}
l.resizeButton(o,l.buttonIE+(k?0:1),1,n-2,q,m=="next"&&!l.numShow&&l.touchDevice?l.sett.button_opacity:1);if(o.bt){o.bt.css("top",-2)}}
l.currentDown=m}
if(l.touchDevice&&l.currentNav<3){if(m=="next"&&!l.numShow){l.checkDropDown(false,true)}else{if(m=="back"||m=="pause"&&l.numShow){l.checkDropDown(false,false)}}}}}},releaseButton:function(p){var k=p.data.self,m=(k.currentNav==2)?k.sett.dot_button_size+k.sett.dot_button_space:k.sett.button_size,n=k.checkTransitionStatus(),o=(k.currentDown<0||k.slide_sel===k.currentDown)?true:false;if(k.currentDown=="next"){if(n){k.slide_dir=-1;k.changeSlide("next")}
k.resizeButton(k.currentNav==3?k.buttonNextA:k.buttonNext,k.buttonIE,0,m,(((m-k.icSize)/2)-k.icSize)-k.icOff,1)}else{if(k.currentDown=="back"){if(n){k.slide_dir=1;k.changeSlide("back")}
k.resizeButton(k.currentNav==3?k.buttonBackA:k.buttonBack,k.buttonIE,0,m,((m-k.icSize)/2)-k.icOff,k.touchDevice?k.sett.button_opacity:1)}else{if(k.currentDown=="pause"){if(k.autoPlaying){k.autoPlaying=false;k.buttonPause.css("opacity",1);k.clockTimer.css("opacity",0);k.timerReset(true)}else{k.autoPlaying=true;k.buttonPause.stop().animate({opacity:0},{duration:400,easing:"easeOutQuart"});k.clockTimer.css("opacity",1);k.timerReset(true);k.startDelayTimer(true)}
k.resizeButton(k.buttonPause,k.buttonIE,0,m,(((m-k.icSize)/2)-(k.autoPlaying?k.icSize*2:k.icSize*3))-k.icOff,k.touchDevice?k.sett.button_opacity:1)}else{if(k.currentDown>-1){if(n&&k.slide_sel!==k.currentDown){if(k.currentDown>k.slide_sel){k.slide_dir=-1}else{if(k.currentDown<k.slide_sel){k.slide_dir=1}}
k.changeSlide(k.currentDown)}
if(k.currentNav!==2){var l=k.currentNav===1?k.slides[k.slide_sel].butt:k.slides[k.slide_sel].buttS;if(l.ih){l.ih.height(m-2)}
if(l.bt){l.bt.css("top",-1)}}}}}}
if(k.currentDown!=="pause"&&!o){if(k.sett.button_show_numbers&&k.currentNav<3){k.toggleButton(false)}else{k.timerReset(false)}}
k.currentDown=-1},resizeButton:function(n,o,m,l,q,k,p){n.bg.css({opacity:k,left:o,top:o,width:l,height:l,"background-position":q+"px center"});if(n.sh){n.sh.css({left:m,top:m,width:l+2,height:l+2})}
if(n.ih){n.ih.css({height:l-2,"background-position":q+"px center"})}},toggleButton:function(k){var n=(this.currentNav==2?this.sett.dot_button_size+this.sett.dot_button_space:this.sett.button_size);for(var m=0,l;m<this.slide_tot;m++){l=this.currentNav>1?this.slides[m].buttS:this.slides[m].butt;if(l){l.bg.css({opacity:(m==this.slide_sel||this.currentNav==2)?1:this.sett.button_opacity,left:this.buttonIE,top:this.buttonIE,width:n,height:n})}
if(this.currentNav==2){if(this.IE8){l.dot.css("left",this.icDotOff-(m==this.slide_sel?this.icSize:0))}else{l.bg.css("background-position",(this.icDotOff-(m==this.slide_sel?this.icSize:0))+"px center")}}}
this.timerReset(k);l=this.currentNav>1?this.slides[this.slide_sel].buttS:this.slides[this.slide_sel].butt;if(this.buttonIE>0&&l.sh){l.sh.css({left:0,top:0,width:this.sett.button_size+2,height:this.sett.button_size+2})}},checkDropDown:function(n,k){var l=n?n.data.self:this;var k=n?n.data.up:k;if(k&&!l.numShow){for(var m=0;m<l.slide_tot;m++){clearTimeout(l.buttonLeaveTimer);clearTimeout(l.slides[m].timer);l.showHideButton(m,true)}}else{if(!k&&l.numShow){l.buttonLeaveTimer=setTimeout(function(){l.numShow=false;for(var o=0;o<l.slide_tot;o++){l.showHideButton(o,false)}},n?300:0)}}},showHideButton:function(o,k){var m=this;var n,p,r,q,l;l=m.slides[o].butt;clearTimeout(m.buttonLeaveTimer);clearTimeout(m.slides[o].timer);l.stop();if(k){m.numShow=true;m.slides[o].butt.show();if(l.css("opacity")==1){l.css("opacity",0)}
n=(m.slide_tot-o)*(100/m.slide_tot);p=20+((m.slide_tot-o)*(300/m.slide_tot));r=1;q=3}else{m.numShow=false;n=o*(150/m.slide_tot);p=20+(o*(150/m.slide_tot));r=0;q=8}
m.slides[o].timer=setTimeout(function(){l.animate({opacity:r},{duration:p,step:function(s){m.showHideStep(s,q,l,k,o)},complete:function(){if(!k){m.slides[o].butt.hide()}}})},n)},showHideStep:function(m,r,n,q,o){var t=this,v=t.currentNav==2?t.sett.dot_button_size:t.sett.button_size,k=t.currentNav==2?t.sett.dot_button_space:t.sett.button_space,l=parseInt((v/r)-(v/r*m),10),u=v-(l*2);n.bg.css({left:l+t.buttonIE,top:l+t.buttonIE,width:u,height:u});if(t.buttonIE>0){n.sh.css({left:l,top:l,width:u+2,height:u+2})}
if(n.ih){n.bt.css("top",-l-1);n.ih.height(u-2)}
if(t.sett.button_numbers_horizontal&&o==t.slide_tot-1){if(t.clockTimer&&t.navHolder){if(t.buttonNext){t.clockTimer.css("left",q?-(v+k)*m:((v+k)*(t.slide_tot-1)*(1-m))+(v+k)*m)}
if(t.buttonBack){t.buttonBack.css("left",parseInt(t.clockTimer.css("left"))-v-k-t.buttonIE)}
t.buttonPause.css({left:parseInt(t.clockTimer.css("left"),10)-t.buttonIE,top:parseInt(t.clockTimer.css("top"),10)-t.buttonIE})}else{if(t.buttonBack&&t.buttonNext){t.buttonBack.css("left",(q?-m*(v+k):((v+k)*(t.slide_tot-1)*(1-m))+(v+k)*m)-t.buttonIE)}}}},checkTransitionStatus:function(){if(this.sett.slide_transition=="fade"){if(this.slide_fin){return true}else{return false}}else{if(this.slide_dir<0&&this.slides[this.slide_sel].con.position().left<this.bW/2){return true}else{if(this.slide_dir>0&&this.slides[this.slide_sel].con.position().left>-this.bW/2){return true}else{return false}}}},startDelayTimer:function(k){var l=this;if(l.clockTimer&&l.currentNav==1){l.clockTimer.stop()}
l.clockPlaying=true;l.timerob.stop();if(k){l.timerob.css("left",0)}
l.timerob.animate({left:720},{easing:"linear",duration:k?l.slides[l.slide_sel].delay:((720-parseInt(l.timerob.css("left")))/720)*l.slides[l.slide_sel].delay,queue:false,step:function(n){if(l.sett.button_show_timer&&l.currentNav==1){if(l.canvasSupport){var m=l.drawTimer(l);m.strokeStyle=l.sett.button_color;m.beginPath();m.arc(l.sett.button_size/2,l.sett.button_size/2,(l.sett.button_size/2)-(l.sett.button_size/10),(Math.PI*2*(n/720))-(Math.PI/2),-Math.PI/2,true);m.stroke();m.closePath()}else{var o=(parseInt(n/720*39,10)*-(24*l.sett.button_size/20))-2;o<-(39*(24*l.sett.button_size/20))-2?o=-2:"";l.clockTimer.children().eq(0).css("left",o)}}},complete:function(){l.clockPlaying=false;if(!l.slide_drg){l.slide_dir=-1;l.changeSlide("next");if(l.sett.button_show_numbers&&l.currentNav<3){l.toggleButton(false)}else{l.timerReset(false)}}}})},timerReset:function(l){var k=this;if(k.clockPlaying){k.timerob.stop()}
if(k.autoPlaying){if(k.clockTimer&&k.currentNav==1){if(l){k.timerHalt()}else{k.clockTimer.stop().fadeTo(300,0.4,function(m){k.timerHalt()})}}}},timerHalt:function(){var k=this;if(k.canvasSupport){k.drawTimer(k)}else{k.clockTimer.css("filter","none").children().eq(0).css("left",-2)}},drawTimer:function(l){var k=l.clockContext;k.clearRect(0,0,l.sett.button_size,l.sett.button_size);k.strokeStyle="rgba(255, 255, 255, .4)";k.beginPath();k.arc(l.sett.button_size/2,l.sett.button_size/2,(l.sett.button_size/2)-(l.sett.button_size/10),0,Math.PI*2,true);k.stroke();k.closePath();l.clockTimer.css("opacity",1);return k},transPrepare:function(n,m,o,l){var k=this;k.zSort(n,m);if(k.slides[o].txt){if(!k.dotButtonBlurBG){k.slides[o].cap.hide()}
if(k.sett.caption_float_mode){k.slides[o].cap.css("left",k.slides[o].cx+(k.IE8||k.dotButtonBlurBG?0:(100*-k.slide_dir)))}
if(l&&k.IE8){k.slides[o].txt.stop(true);k.slides[o].cap.stop(true)}}
if(k.slide_pr1!==""){if(k.slides[k.slide_pr1].txt){k.textOut()}}
k.slide_drg=false;k.slide_fin=false;k.slide_playing=true},transComplete:function(k,l){k.slide_fin=true;if(k.slide_sta){k.slide_sta=false;k.$cont.css("background-image","none")}
if(k.slide_sel==k.slide_sel&&k.slides[l].txt&&k.enableCaption&&k.slide_sel==l){k.animateCaption()}
if(k.autoPlaying){if(k.currentNav==3){k.toggleButton(true)}
if(!k.mouseIn){k.startDelayTimer(true)}}},move:function(){var k=this,l=k.slide_sel;k.transPrepare(2,1,l,false);k.slides[l].con.stop().css({left:(k.slide_pr1!==""?k.slides[k.slide_pr1].con.position().left+(-k.bW*k.slide_dir):-k.bW*k.slide_dir),display:"block"}).animate({left:0},{duration:k.sett.slide_transition_period+100,easing:"easeInOutQuart",step:function(m){if(k.slide_pr1!==""&&k.slide_pr1!==l){k.slides[k.slide_pr1].con.stop().css("left",m+(k.bW*k.slide_dir))}
if(k.slide_pr2!==""&&k.slide_pr2!==l&&k.slide_pr2!==k.slide_pr1){k.slides[k.slide_pr2].con.stop().css("left",m+(k.bW*2*k.slide_dir))}},complete:function(){k.transComplete(k,l)}})},fade:function(){var k=this,l=k.slide_sel;k.transPrepare(2,1,l,false);k.slides[l].con.stop().css({left:0,display:"none"}).fadeIn({duration:k.sett.slide_transition_period+100,easing:"easeInOutQuart",complete:function(){k.transComplete(k,l)}})},slideIn:function(){var k=this,m=this.slide_sel,l=k.shProp;k.transPrepare(2,1,m,true);k.slides[m].con.stop(true).css({left:(k.bW+30)*-k.slide_dir,sh:"0px 0px 45px 0px #000000",display:"block"}).animate({left:0},{duration:k.sett.slide_transition_period+100,easing:"easeInOutQuart",complete:function(){k.transComplete(k,m);k.slides[m].con.css(k.shProp,"none")}})},slideOut:function(){var k=this,m=this.slide_sel,l=k.shProp;k.transPrepare(1,2,m,false);if(k.slide_pr1!==""){k.slides[m].con.stop(true).css({left:0,sh:"0px 0px 45px 0px #000000",display:"block"});if(k.IE8&&k.slides[m].txt){k.slides[k.slide_pr1].txt.stop(true);k.slides[k.slide_pr1].cap.stop(true)}
k.slides[k.slide_pr1].con.stop(true).animate({left:k.slide_dir*(k.bW+30)},{duration:k.sett.slide_transition_period,easing:"easeInOutQuart",complete:function(){k.transComplete(k,m);k.slides[m].con.css(k.shProp,"none")}})}else{k.slides[m].con.stop(true).css({left:k.bW,display:"block"}).animate({left:0},{duration:k.sett.slide_transition_period,easing:"easeInOutQuart",complete:function(){k.slide_fin=true;if(m==k.slide_sel&&k.slides[m].txt&&k.enableCaption){k.animateCaption()}
if(k.autoPlaying&&!k.mouseIn){k.startDelayTimer(true)}}})}},resizeBanner:function(o){var l=this,k=l.bW;if(o.internal){l.bW=l.$cont.width();l.bH=l.getHeight()}else{if(o.width){l.bW=k=o.width;l.$cont.width(l.bW)}else{if(o.maxWidth){l.bW=k=l.maxW=o.maxWidth;l.$cont.css("max-width",l.maxW+"px");l.bW=l.$cont.width()}}
if(o.height){l.bH=l.oH=o.height;l.ratio=k/l.oH}else{l.oH=k/l.ratio}
l.bH=l.getHeight()}
if(l.sett.responsive){l.enableCaption=!l.checkLimit(l.sett.responsive_limit_caption,false);if(l.sett.responsive_limit_navigation!==""){if(l.checkLimit(l.sett.responsive_limit_navigation,false)){if(l.currentNav!==l.sett.responsive_limit_navigation_type){l.currentNav=l.sett.responsive_limit_navigation_type;l.swapNavigation(true)}}else{if(l.currentNav!==l.sett.navigation_type){l.currentNav=l.sett.navigation_type;l.swapNavigation(true)}}}}
if(l.currentNav==2){l.navHolderD.css("left",l.bW/2)}else{if(l.currentNav==3){l.buttonNextA.css({left:l.bW-l.sett.button_size-l.sett.button_margin,top:(l.bH-l.sett.button_size)/2});l.buttonBackA.css({left:l.sett.button_margin,top:(l.bH-l.sett.button_size)/2})}}
for(var m=l.slide_sel,n=true;m<l.slide_tot;m++){if(n||m!==l.slide_sel){l.resizeImage(m);if(l.slides[m].txt){l.updateText(m);if(!l.enableCaption&&!l.dotButtonBlurBG){l.slides[m].cap.hide()}else{l.slides[m].cap.show();l.slides[m].txt.show()}}
if(n){m=(l.slide_sel==0)?0:-1;n=false}else{l.slides[m].con.stop().css("left",l.bW*l.slide_dir)}}}}};e.fn.TransBanner=function(l){var k=arguments;return this.each(function(o){var n=e(this);var m=n.data("TransBanner");if(!m){var p=new Date();n.data("TransBanner",new i(n,l,p.getTime()))}else{if(m[k[0]]){m[l].apply(m,Array.prototype.slice.call(k,1))}}})};var j=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1];var a=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9];function g(v,y,r,s,w,x,A,C,B,t,E,z){var q=s;var u=w;B.style.width=q+"px";B.style.height=u+"px";B.width=q;B.height=u;var D=B.getContext("2d");D.clearRect(0,0,q,u);D.scale(x,x);D.drawImage(v,(-y+(A!==""?A:0))/x,(-r+(C!==""?C:0))/x);if(isNaN(t)||t<1){return}
b(B,0,0,q,u,t,z);D.restore()}
function b(aC,aj,al,aI,aH,ab,X){if(isNaN(ab)||ab<1){return}
ab|=0;if(isNaN(X)){X=1}
X|=0;if(X>3){X=3}
if(X<1){X=1}
var p=aC.getContext("2d");var Y;try{try{Y=p.getImageData(aj,al,aI,aH)}catch(x){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");Y=p.getImageData(aj,al,aI,aH)}catch(x){return}}}catch(x){}
var aD=Y.data;var ad,ae,V,Z,av,ar,ay,aF,aE,am,ax,ak,ao,ag,ac,au,az,at,aq,ah;var y=ab+ab+1;var af=aI<<2;var aw=aI-1;var aa=aH-1;var aA=ab+1;var ai=new c();var an=ai;for(V=1;V<y;V++){an=an.next=new c();if(V==aA){var aB=an}}
an.next=ai;var W=null;var ap=j[ab];var aG=a[ab];while(X-->0){ay=ar=0;for(ae=aH;--ae>-1;){aF=aA*(az=aD[ar]);aE=aA*(at=aD[ar+1]);am=aA*(aq=aD[ar+2]);an=ai;for(V=aA;--V>-1;){an.r=az;an.g=at;an.b=aq;an=an.next}
for(V=1;V<aA;V++){Z=ar+((aw<V?aw:V)<<2);aF+=(an.r=aD[Z++]);aE+=(an.g=aD[Z++]);am+=(an.b=aD[Z]);an=an.next}
W=ai;for(ad=0;ad<aI;ad++){aD[ar++]=(aF*ap)>>>aG;aD[ar++]=(aE*ap)>>>aG;aD[ar++]=(am*ap)>>>aG;ar++;Z=(ay+((Z=ad+ab+1)<aw?Z:aw))<<2;aF-=W.r-(W.r=aD[Z++]);aE-=W.g-(W.g=aD[Z++]);am-=W.b-(W.b=aD[Z]);W=W.next}
ay+=aI}
for(ad=0;ad<aI;ad++){ar=ad<<2;aF=aA*(az=aD[ar++]);aE=aA*(at=aD[ar++]);am=aA*(aq=aD[ar]);an=ai;for(V=0;V<aA;V++){an.r=az;an.g=at;an.b=aq;an=an.next}
av=aI;for(V=1;V<=ab;V++){ar=(av+ad)<<2;aF+=(an.r=aD[ar++]);aE+=(an.g=aD[ar++]);am+=(an.b=aD[ar]);an=an.next;if(V<aa){av+=aI}}
ar=ad;W=ai;for(ae=0;ae<aH;ae++){Z=ar<<2;aD[Z]=(aF*ap)>>>aG;aD[Z+1]=(aE*ap)>>>aG;aD[Z+2]=(am*ap)>>>aG;Z=(ad+(((Z=ae+aA)<aa?Z:aa)*aI))<<2;aF-=W.r-(W.r=aD[Z]);aE-=W.g-(W.g=aD[Z+1]);am-=W.b-(W.b=aD[Z+2]);W=W.next;ar+=aI}}}
p.putImageData(Y,aj,al)}
function c(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}})(jQuery,window,document);(function(c,g){function n(){}
function o(a){s=[a]}
function e(a,j,k){return a&&a.apply(j.context||j,k)}
function h(a){function j(b){!l++&&g(function(){p();q&&(t[d]={s:[b]});z&&(b=z.apply(a,[b]));e(a.success,a,[b,A]);e(B,a,[a,A])},0)}
function k(b){!l++&&g(function(){p();q&&b!=C&&(t[d]=b);e(a.error,a,[a,b]);e(B,a,[a,b])},0)}
a=c.extend({},D,a);var B=a.complete,z=a.dataFilter,E=a.callbackParameter,F=a.callback,R=a.cache,q=a.pageCache,G=a.charset,d=a.url,f=a.data,H=a.timeout,r,l=0,p=n;a.abort=function(){!l++&&p()};if(e(a.beforeSend,a,[a])===false||l)return a;d=d||u;f=f?typeof f=="string"?f:c.param(f,a.traditional):u;d+=f?(/\?/.test(d)?"&":"?")+f:u;E&&(d+=(/\?/.test(d)?"&":"?")+encodeURIComponent(E)+"=?");!R&&!q&&(d+=(/\?/.test(d)?"&":"?")+"_"+(new Date).getTime()+"=");d=d.replace(/=\?(&|$)/,"="+F+"$1");q&&(r=t[d])?r.s?j(r.s[0]):k(r):g(function(b,m,v){if(!l){v=H>0&&g(function(){k(C)},H);p=function(){v&&clearTimeout(v);b[I]=b[w]=b[J]=b[x]=null;i[K](b);m&&i[K](m)};window[F]=o;b=c(L)[0];b.id=M+S++;if(G)b[T]=G;var O=function(y){(b[w]||n)();y=s;s=undefined;y?j(y[0]):k(N)};if(P.msie){b.event=w;b.htmlFor=b.id;b[I]=function(){/loaded|complete/.test(b.readyState)&&O()}}else{b[x]=b[J]=O;P.opera?(m=c(L)[0]).text="jQuery('#"+b.id+"')[0]."+x+"()":b[Q]=Q}
b.src=d;i.insertBefore(b,i.firstChild);m&&i.insertBefore(m,i.firstChild)}},0);return a}
var Q="async",T="charset",u="",N="error",M="_jqjsp",w="onclick",x="on"+N,J="onload",I="onreadystatechange",K="removeChild",L="<script/>",A="success",C="timeout",P=c.browser,i=c("head")[0]||document.documentElement,t={},S=0,s,D={callback:M,url:location.href};h.setup=function(a){c.extend(D,a)};c.jsonp=h})(jQuery,setTimeout);(function(c){c.getImageData=function(a){var f=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;if(a.url){var g=location.protocol==="https:",e="";e=a.server&&f.test(a.server)&&a.server.indexOf("https:")&&(g||a.url.indexOf("https:"))?a.server:"//img-to-json.appspot.com/?callback=?";c.jsonp({url:e,data:{url:escape(a.url)},dataType:"jsonp",timeout:1E4,success:function(b){var d=new Image;c(d).load(function(){this.width=b.width;this.height=b.height;typeof a.success==typeof Function&&a.success(this)}).attr("src",b.data)},error:function(b,d){typeof a.error==typeof Function&&a.error(b,d)}})}else typeof a.error==typeof Function&&a.error(null,"no_url")}})(jQuery);function getUrlVars(){var d=[],c;var a=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var b=0;b<a.length;b++){c=a[b].split("=");d.push(c[0]);d[c[0]]=c[1]}
return d}
jQuery(function(h){var f;var e=getUrlVars()["t_sel"]?parseInt(getUrlVars()["t_sel"],10):1;var b=("ontouchstart"in window)?"touchend":"click";function c(){if(!f||f==1){window.location="index.html?s_sel=1&&t_sel="+e}else{window.location="index"+f+".html?s_sel="+f+"&&t_sel="+e}}
if(getUrlVars()["s_sel"]==1||!getUrlVars()["s_sel"]){h(".TB_Wrapper").TransBanner({slide_transition:e});f=1}else{if(getUrlVars()["s_sel"]==2){h(".TB_Wrapper").TransBanner({slide_transition:e,button_show_back:true,caption_border:1,caption_margin_x:16,caption_margin_y:16});f=2}else{if(getUrlVars()["s_sel"]==3){h(".TB_Wrapper").TransBanner({slide_transition:e,button_show_back:true,button_numbers_autohide:false,button_numbers_horizontal:true,caption_padding_x:18,caption_padding_y:12,caption_float_mode:true,caption_border:1});f=3}else{if(getUrlVars()["s_sel"]==4){h(".TB_Wrapper").TransBanner({slide_transition:e,button_show_back:true,button_numbers_horizontal:true,caption_float_mode:true,caption_bg_blur:0,caption_bg_color:"#000000",caption_bg_opacity:0.7,caption_bg_radius:4,caption_bg_shadow:0,caption_border:0});f=4}else{if(getUrlVars()["s_sel"]==5){h(".TB_Wrapper").TransBanner({slide_transition:e,button_show_back:true,button_margin:12,button_numbers_autohide:false,button_numbers_horizontal:true,caption_padding_x:14,caption_padding_y:24,caption_float_mode:true,caption_position_x:500,caption_position_y:0,caption_bg_color:"#000000",caption_bg_opacity:0.1,caption_width:200,caption_height:250,caption_bg_radius:0});f=5}else{if(getUrlVars()["s_sel"]==6){h(".TB_Wrapper").TransBanner({slide_transition:e,button_opacity:0.5,caption_border_opacity:0.075,caption_bg_opacity:0.2,navigation_type:2});f=6}else{if(getUrlVars()["s_sel"]==7){h(".TB_Wrapper").TransBanner({slide_transition:e,navigation_type:2,button_opacity:0.4,dot_button_dark:true,dot_button_margin:-10});f=7}else{if(getUrlVars()["s_sel"]==8){h(".TB_Wrapper").TransBanner({slide_transition:e,navigation_type:3,button_size:26,caption_border:1,caption_margin_x:150,caption_margin_y:16});f=8}}}}}}}}
var j=8;h("#samples").bind("mouseover mouseout "+b,d);function d(k){if(k.target.id!=="samples"){var l=parseInt(k.target.id.substring(1));if(k.type=="mouseover"){if(f!==l){h(k.target).css("background-position",((l-1)*-40)+"px -128px")}}else{if(k.type=="mouseout"){if(f!==l){h(k.target).css("background-position",((l-1)*-40)+"px -88px")}}else{if(k.type==b){f=l;for(var i=1;i<=j;i++){if(i==f){h("#s"+i).css("background-position",((l-1)*-40)+"px -168px")}else{h("#s"+i).css("background-position",((i-1)*-40)+"px -88px")}}
c()}}}}}
h("#s"+f).css("background-position",((f-1)*-40)+"px -168px");var a=4;for(var g=1;g<=a;g++){h("#t"+g).bind("mouseenter",{id:g},function(i){if(e!==i.data.id){h(this).css("background-position",((i.data.id-1)*-150)+"px -44px")}}).bind("mouseleave",{id:g},function(i){if(e!==i.data.id){h(this).css("background-position",((i.data.id-1)*-150)+"px -22px")}}).bind("click",{id:g},function(k){e=k.data.id;for(var i=1;i<=a;i++){h("#t"+i).css("background-position",((i-1)*-150)+"px -22px")}
h(this).css("background-position",((k.data.id-1)*-150)+"px -66px");c()}).css("cursor","pointer")}
h("#t"+e).css("background-position",((e-1)*-150)+"px -66px");h("#samples").css({"-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"});if(b=="click"){h(".sButt").tipTip({maxWidth:"400px",delay:0,bg_color:"#444"});h("#s"+f).tipTip({maxWidth:"400px",delay:0,bg_color:"#0d7cca"})}});