").css({position:"absolute",left:"0%",right:"auto",top:0,width:"100%",height:"100%"}).css(C,0).append(n(e[l]).clone().css({width:100*v.width/i.width()+"%",height:100*v.height/i.height()+"%",marginLeft:100*v.marginLeft/i.width()+"%"})).appendTo(c),I=n("
").css({position:"absolute",left:"100%",right:"auto",top:0,width:"0%",height:"100%"}).append(n(e[p]).clone().css({width:100*v.width/i.width()+"%",height:100*v.height/i.height()+"%",marginLeft:100*v.marginLeft/i.width()+"%"})).appendTo(c);c.css({left:"auto",right:"auto",top:0}).css(C,0).show(),c.show(),a.hide(),I.animate({width:"100%",left:0},t.duration,"easeInOutExpo",function(){n(this).remove()}),k.animate({width:0},t.duration,"easeInOutExpo",function(){o.trigger("effectEnd"),c.empty().hide()})}}};// -----------------------------------------------------------------------------------
function ws_brick(t,e,a){function r(a){for(var r={},n=e.get(a),o=t.width/f,i=t.height/h,d=0;f*h>d;d++){var a=d%f,l=Math.floor(d/f);r[d]=s(n,{x:a*o,y:l*i,w:o,h:i})}return r}function n(t,e,a,r,n){for(var o in e)e[o].topEdge.css({width:r,height:t,background:a[o],transform:"rotateX(90deg) translate3d(0,-"+t/2+"px,"+t/2+"px)"}),e[o].bottomEdge.css({width:r,height:t,background:a[o],transform:"rotateX(90deg) translate3d(0,-"+t/2+"px,"+(-n+t/2)+"px)"}),e[o].leftEdge.css({width:t,height:n,background:a[o],transform:"rotateY(90deg) translate3d("+t/2+"px,0,-"+t/2+"px)"}),e[o].rightEdge.css({width:t,height:n,background:a[o],transform:"rotateY(90deg) translate3d("+t/2+"px,0,"+(r-t/2)+"px)"})}function o(t,e){var a,r,n,o,i,s=(new Date).getTime(),l=function(){var f=(new Date).getTime();for(var h in t)if(!(s+t[h].animate.delay>f)){var c=(f-(s+t[h].animate.delay))/t[h].animate.duration;if(i={},o="",c>1){if(t[h].part[0].ws_delay[1])return cancelAnimationFrame(l),void e()}else{.5>=c?(a=d.easing.easeInBack(1,2*c,0,1,1,1).toFixed(3),r=d.easing.easeInBackQ(1,2*c,0,1,1,1).toFixed(3),n=d.easing.easeInBackQ2(1,2*c,0,1,1,1).toFixed(3),t[h].back.css("backfaceVisibility","hidden")):(a=d.easing.easeOutBack(1,2*(c-.5),0,1,1,1).toFixed(3),r=d.easing.easeOutBackQ(1,2*(c-.5),0,1,1,1).toFixed(3),n=d.easing.easeOutBackQ2(1,2*(c-.5),0,1,1,1).toFixed(3),t[h].back.css("backfaceVisibility","visible"));for(var p in t[h].animate[.5>=c?"half":"end"]){var g=t[h].animate[.5>=c?"begin":"half"][p]||0,m=t[h].animate[.5>=c?"half":"end"][p]||0;"object"!=typeof m&&(m="scale"===p||"rotateX"===p||"rotateY"===p?g+(m-g)*r:"left"===p||"top"===p?g+(m-g)*n:g+(m-g)*a),"rotateX"===p||"rotateY"===p||"rotateZ"===p?o+=p+"("+m+"deg) ":"scale"===p?o+=p+"("+m+") ":"translate3d"===p?o+=p+"("+(g[0]+(m[0]-g[0])*a).toFixed(3)+"px,"+(g[1]+(m[1]-g[1])*a).toFixed(3)+"px,"+(g[2]+(m[2]-g[2])*a).toFixed(3)+"px) ":i[p]=m}t[h].wrapper.css({transform:"translate3d("+(i.left?i.left:0).toFixed(3)+"px,"+(i.top?i.top:0).toFixed(3)+"px,0)"}),delete i.left,delete i.top,o&&(i.transform=o),t[h].part.css(i)}}requestAnimationFrame(l)};l()}function i(e,r,i,s){var d=a.width(),l=a.height(),c=d/f,p=l/h,g=.4*t.duration>1e3?1e3:.4*t.duration,m=.6*t.duration,u=[0,0];n(w,e,v[r],c,p),x.css({transformOrigin:d/2+"px "+l/2+"px 0",width:d,height:l});for(var b in e){var k=T[b].delay*g;u[1]<=k&&(u[0]=b,u[1]=k),e[b].part[0].ws_delay=[k,0]}e[u[0]].part[0].ws_delay[1]=1;for(var b in e){{var F=e[b];Math.floor(b/f)}F.animate={delay:F.part[0].ws_delay[0],duration:m,begin:{left:0,top:0,width:c,height:p,scale:1,rotateX:0,rotateY:0,translate3d:[0,0,y?w:0]},half:{left:T[b].halfLeft*c,top:T[b].halfTop*p,scale:T[b].halfScale,rotateX:T[b].rotateX/2,rotateY:T[b].rotateY/2,translate3d:[0,0,(y?1:.5)*w]},end:{left:0,top:0,scale:1,rotateX:T[b].rotateX,rotateY:T[b].rotateY,translate3d:[0,0,w]}},F.front.find("img").css(i),F.back.css("backfaceVisibility","hidden").find("img").css(i),F.part.css({width:F.animate.begin.width,height:F.animate.begin.height,left:F.animate.begin.left,top:F.animate.begin.top})}o(e,s)}function s(t,e){e=e||{};{var a,r=1,n=e.exclude||[],o=document.createElement("canvas"),i=o.getContext("2d");o.width=t.naturalWidth,o.height=t.naturalHeight}i.drawImage(t,0,0,t.naturalWidth,t.naturalHeight);try{a=i.getImageData(e.x?e.x:0,e.y?e.y:0,e.w?e.w:t.width,e.h?e.h:t.height).data}catch(s){return console.log("error:unable to access image data: "+s),"#ccc"}for(var d=(e.w?e.w:t.width*e.h?e.h:t.height)||a.length,l={},f="",h=[],c={dominant:{name:"",count:0}},p=0;d>p;){if(h[0]=a[p],h[1]=a[p+1],h[2]=a[p+2],f=h.join(","),l[f]=f in l?l[f]+1:1,-1===n.indexOf(["rgb(",f,")"].join(""))){var g=l[f];g>c.dominant.count&&(c.dominant.name=f,c.dominant.count=g)}p+=4*r}return["rgb(",c.dominant.name,")"].join("")}var d=jQuery,l=d(this),f=t.cols||4,h=t.rows||3,c=2.5,p=2,g=t.perspective||2e3,m=a.find(".ws_list"),u=[],w=30,v={},x=d("
").addClass("ws_effect").css("overflow",t.responsive>1?"hidden":"visible"),b=t.support.transform&&t.support.transition&&t.support.perspective,y=/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent),k=/Firefox/.test(navigator.userAgent);a=a.parent().append(x);var T=[{zIndex:0,rotateX:360,rotateZ:-360,rotateY:180,halfScale:.5,halfLeft:.7,halfTop:.7,delay:.36},{zIndex:1,rotateX:-360,rotateZ:360,rotateY:180,halfScale:.5,halfLeft:.2,halfTop:.4,delay:.81},{zIndex:1,rotateX:360,rotateZ:-360,rotateY:-180,halfScale:.5,halfLeft:-.2,halfTop:.4,delay:.45},{zIndex:0,rotateX:-360,rotateZ:360,rotateY:-180,halfScale:.5,halfLeft:-.7,halfTop:.7,delay:.63},{zIndex:1,rotateX:-360,rotateZ:360,rotateY:-180,halfScale:.5,halfLeft:.7,halfTop:0,delay:.54},{zIndex:2,rotateX:360,rotateZ:-360,rotateY:180,halfScale:.5,halfLeft:.2,halfTop:0,delay:.38},{zIndex:2,rotateX:360,rotateZ:-360,rotateY:-180,halfScale:.5,halfLeft:-.2,halfTop:0,delay:0},{zIndex:1,rotateX:-360,rotateZ:360,rotateY:180,halfScale:.5,halfLeft:-.7,halfTop:0,delay:.72},{zIndex:0,rotateX:-360,rotateZ:360,rotateY:180,halfScale:.5,halfLeft:.7,halfTop:-.7,delay:1},{zIndex:1,rotateX:-360,rotateZ:360,rotateY:-180,halfScale:.5,halfLeft:.2,halfTop:-.4,delay:.7},{zIndex:1,rotateX:360,rotateZ:-360,rotateY:180,halfScale:.5,halfLeft:-.2,halfTop:-.4,delay:.57},{zIndex:0,rotateX:360,rotateZ:-360,rotateY:-180,halfScale:.5,halfLeft:-.7,halfTop:-.7,delay:.9}];x.css({position:"absolute",top:0,left:0,width:a.width(),height:a.height(),transform:"translate3d(0,0,0)",transformOrigin:t.width/2+"px "+t.height/2+"px 0",perspective:g}).hide(),function(){for(var t=0,e=["ms","moz","webkit","o"],a=0;a
g;g++){var Y=g%f,X=Math.floor(g/f),I=d("").css({position:"absolute",left:100*Y/f+"%",top:100*X/h+"%",outline:"1px solid transparent",transformStyle:y||k?"flat":"preserve-3d",zIndex:T[g].zIndex,overflow:b?"visible":"hidden"}).appendTo(x),_=d("
").css({transform:"scale(1) rotateX(0) rotateY(0) translate3d(0,0,0)",outline:"1px solid transparent",transformStyle:"preserve-3d"}).appendTo(I),S=d("
").addClass("ws_front_image").appendTo(_),z=b?d("
").addClass("ws_back_image").appendTo(_):0;S.css({position:"absolute",width:"100%",height:"100%",overflow:"hidden",backfaceVisibility:"hidden",transform:"translate3d(0,0,0)"}).append(d("
").css({left:100*-Y+"%",top:100*-X+"%",position:"absolute",outline:"1px solid transparent"})),b&&z.css({position:"absolute",width:"100%",height:"100%",overflow:"hidden",backfaceVisibility:"hidden",transform:"rotateY(180deg) translate3d(0,0,"+w+"px)"}).append(d("").css({left:100*-Y+"%",top:100*-X+"%",position:"absolute",outline:"1px solid transparent"}));var A={position:"absolute",outline:"1px solid transparent"};u[g]={part:_,front:S,back:z,wrapper:I,leftEdge:b?d("").addClass("ws_left_edge").css(A).appendTo(_):0,rightEdge:b?d("
").addClass("ws_right_edge").css(A).appendTo(_):0,topEdge:b?d("
").addClass("ws_top_edge").css(A).appendTo(_):0,bottomEdge:b?d("
").addClass("ws_bottom_edge").css(A).appendTo(_):0}}x.show();var L=d(e.get(o));if(L={width:L.width(),height:L.height(),marginTop:parseFloat(L.css("marginTop")),marginLeft:parseFloat(L.css("marginLeft"))},b){u[0].front.find("img").on("load",function(){m.hide()});for(var Z in u)u[Z].front.find("img").attr("src",e.get(o).src),u[Z].back.find("img").attr("src",e.get(n).src);v[o]||(v[o]=r(o)),F=new i(u,o,L,function(){m.show(),l.trigger("effectEnd"),x.hide().empty();for(var t in u)u[t].part.css({transition:"",transform:"rotateX(0) rotateY(0) translate3d(0,0,0)"});F=0})}else{F=!0;var B=a.width(),C=a.height(),E=B/f,Q=C/h;x.css({width:B,height:C});var O=0;for(var Z in u){var Y=Z%f,X=Math.floor(Z/f);u[Z].front.find("img").attr("src",e.get(n).src).css(L);var j=t.duration*(1-Math.abs((p*c-Y*X)/(2*h*f))),q=s(-1,1)>0?1:-1,M=s(-1,1)>0?1:-1;u[Z].wrapper.css({width:E,height:Q}),u[Z].part.css({position:"absolute",top:q*Q,left:M*E,opacity:0,width:E,height:Q}).animate({top:0,left:0,opacity:1},j,function(){O++,O==h*f&&(m.stop(1,1),F=!1,l.trigger("effectEnd"),x.empty())})}}}}jQuery.extend(jQuery.easing,{easeInBack:function(t,e,a,r,n,o){return void 0==o&&(o=1.70158),r*(e/=n)*e*((o+1)*e-o)+a},easeOutBack:function(t,e,a,r,n,o){return void 0==o&&(o=1.70158),r*((e=e/n-1)*e*((o+1)*e+o)+1)+a},easeInBackQ:function(t,e,a,r,n){var o=(e/=n)*e;return a+r*o*(4*e*o-8*o+8*e-3)},easeOutBackQ:function(t,e,a,r,n){var o=(e/=n)*e;return a+r*(4*o*e*o-12*o*o+16*o*e-13*o+6*e)},easeInBackQ2:function(t,e,a,r,n){var o=(e/=n)*e;return a+r*o*(1.5*e*o-2.5*o+5*e-3)},easeOutBackQ2:function(t,e,a,r,n){var o=(e/=n)*e;return a+r*(1.5*o*e*o-5*o*o+10*o*e-12*o+6.5*e)}});
function ws_blinds(t,i,e){function n(i,e,n,o,s){t.support.transform&&t.support.transition?(e.transform||(e.transform=""),e.left&&(e.transform+=" translate3d("+(e.left?e.left:0)+"px,0,0)"),delete e.left,(n||o)&&(e.transition=n+"ms all "+o+"ms ease-in-out"),i.css(e),s&&i.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",s)):n?i.animate(e,n,"swing",s):i.css(e)}for(var o=jQuery,s=o(this),d=t.parts||3,r=o("
").addClass("ws_effect").css({position:"absolute",width:"100%",height:"100%",left:0,top:0,"z-index":8}).hide().appendTo(e.parent()),a=o("
").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"}).appendTo(r),f=[],l=0;d>l;l++)f[l]=o("
").css({position:"absolute",height:"100%",width:(100/d).toFixed(3)+"%",border:"none",margin:0,overflow:"hidden",top:0,left:(100*l/d).toFixed(3)+"%"}).appendTo(r);this.go=function(l,h,p){var g=h>l?1:0;if(p)if(-1>=p)l=(h+1)%i.length,g=0;else{if(!(p>=1))return-1;l=(h-1+i.length)%i.length,g=1}r.find("img").stop(!0,!0),r.show();var u=o(".ws_list",e);t.fadeOut&&u.fadeOut((1-1/d)*t.duration);var w=o(i[h]),c={width:w.width()||t.width,height:w.height()||t.height},v=w.clone().css(c).appendTo(a);n(v,{left:0}),n(v,{left:(g?-1:1)*v.width()*.5},t.duration,.1*t.duration);for(var m=0;m=(effects.length-1)?0:(curEffect+1));
new_o.effect = effects[curEffect] || 'blinds';
wowReInitor(wowInstance, new_o);
}
},options);
// run slider
//var result = wow.wowSlider(new_opt);
var result = default_wowSlider.apply(wow, [new_opt]);
if (isNaN(cSlide))
cSlide = 0;
else
wow.get(0).wsStart(cSlide+1);
return result;
}
// for old compability
window.wowReInitor = function (wow,options){
$(wow).wowSlider(options);
};
*/
var wowSlider = $("#wowslider-container").wowSlider({effect: effects || "blinds",prev:"",next:"",fallback:ws_blinds,duration:duration,delay:delay,width:960,height:350,fullScreen:true,autoPlay:true,autoPlayVideo:false,stopOnHover:false,loop:false,bullets:true,caption:true,captionEffect:"move",controls:true});
// change slider size
var sliderCont = $('.slideshow > .holder'),
curResponsive = 1;
function resizeWnd() {
// apply after transition
if(curResponsive > 1)
sliderCont.css('width', '100%');
$(window).resize();
}
$('#devices').on('click', 'a', function(e) {
var thisClass = this.className;
e.preventDefault();
if(/laptop|tablet|mobile/g.test(thisClass)) {
$('#devices').find('.laptop, .tablet, .mobile').removeClass('checked');
if(curResponsive > 1) {
wowSlider[0].wsResponsive(1);
curResponsive = 1;
$('#devices').find('.boxed, .fullwidth, .fullscreen').removeClass('checked');
$('#devices .boxed').addClass('checked');
}
wowSlider[0].wsHideEffect();
wowSlider[0].wsRestart();
if(/laptop/g.test(thisClass)) {
sliderCont.css('maxWidth', sliderCont.width()).animate({
maxWidth: curResponsive>1?$(window).width():960
}, resizeWnd);
} else if(/tablet/g.test(thisClass)) {
sliderCont.css('maxWidth', sliderCont.width()).animate({
maxWidth: 700
}, resizeWnd);
} else if(/mobile/g.test(thisClass)) {
sliderCont.css('maxWidth', sliderCont.width()).animate({
maxWidth: 500
}, resizeWnd);
}
$(this).addClass('checked');
}
else {
wowSlider[0].wsHideEffect();
wowSlider[0].wsRestart();
if(/boxed/g.test(thisClass)) {
wowSlider[0].wsResponsive(1);
curResponsive = 1;
} else if(/fullwidth/g.test(thisClass)) {
sliderCont.css('maxWidth', 'none');
wowSlider[0].wsResponsive(2);
curResponsive = 2;
} else if(/fullscreen/g.test(thisClass)) {
/*
wowSlider[0].wsResponsive(3);
curResponsive = 3;
*/
sliderCont.css('maxWidth', 'none');
if(wowSlider[0].wsToggleFS)
wowSlider[0].wsToggleFS();
return;
}
$('#devices').find('.boxed, .fullwidth, .fullscreen').removeClass('checked');
if(curResponsive > 1) {
$('#devices').find('.tablet, .mobile').removeClass('checked');
$('#devices .laptop').addClass('checked');
resizeWnd();
}
$(this).addClass('checked');
}
});
})(jQuery);
/*slideToggle*/
$(".headerleftimg").click(function() {
$(".headerbottomm").slideToggle();
});
$(".zzsjspantwo").click(function() {
$(".inputone").children("input").val("").focus();
$(".inputtwo").children("input").val("");
$(".inputthree").children("input").val("");
});
$("#liproducts").hover(function(){
$("#liproducts ul").css("display","block");
},
function(){
$("#liproducts ul").css("display","none");
});