Wykorzystujemy pliki Cookies do celów statystycznych, analitycznych, personalizacji przedstawianych ofert oraz celów związanych z bezpieczeństwem naszego sklepu, aby zapewnić przyjemne wrażenia podczas przeglądania naszego serwisu. Korzystanie ze strony mediamarkt.pl bez zmiany ustawień przeglądarki lub zastosowania funkcjonalności rezygnacji opisanych w Polityce Prywatności Cookies oznacza, że pliki Cookies będą zamieszczana na urządzeniu, z którego korzystasz. Więcej na temat Cookies znajdziesz w Polityce Prywatności Cookies dostępnej pod linkiem >> Tutaj

×
  • Płać prosto i bezpiecznie
  • Bezpieczne i sprawdzone zakupy
  • Zadzwoń i zamów: 799 366 936

zadzwoń i zamów

799 366 936

Microsoft Surface

[script]/** source: /home/sisbuilder/public/web/builder/ebpcomponents/1665/_ebplibrary/js/vendors/ebpQuery.min.js **//*! ebpQuery v2.1.3 | (c) 2005, 2014 ebpQuery Foundation, Inc. | jquery.org/license *//** source: /home/sisbuilder/public/web/builder/ebpcomponents/1665/_ebplibrary/js/plugins/slick.min.js **//** source: /home/sisbuilder/public/web/builder/ebpcomponents/1665/_ebplibrary/js/plugins/imagesloaded.pkgd.min.js **//*! * imagesLoaded PACKAGED v4.1.1 * JavaScript is all like "You images are done yet or what?" * MIT License */(function ($) { if ($('#mw_ebp #mc_ebp [data-ebp] [id^="kv_"]').attr('data-exported_ebp') == "true') { $(document).ready(function () { $('#mw_ebp #mc_ebp [data-ebp]').imagesLoaded({background: true}) .done(function (instance) {//show sections $('#mw_ebp #mc_ebp [data-ebp] .loader_ebp').fadeOut(); $('#mw_ebp #mc_ebp [data-ebp] [id^="kv_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="fnb_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="compare-table_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="acc_"]').show(); $('#mw_ebp #mc_ebp [data-ebp] [id^="disclaimer_"]').show();//init kv $(document).on('click', '[data-scroll-to_ebp]', function () { var scrollTarget = $(this).attr('data-scroll-to_ebp'); $('html, body').animate({ scrollTop: $('[data-scroll-target="' + scrollTarget + '"]').offset().top }, 1000); }); function createSliderKv(slider) { $(slider).on('init', function (event, slick, currentSlide, nextSlide) { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); $(slider).find('.slick-active').find('.copy_ebp').addClass('revealed_ebp'); $(slider).find('.slick-active').find('.logo_ebp').addClass('revealed_ebp'); $(document).on('click', '#mw_ebp #mc_ebp [data-ebp] [id^="kv_"] .icon-arrow-left', function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); }); $(document).on('click', '#mw_ebp #mc_ebp [data-ebp] [id^="kv_"] #slick-slide00', function () { if ($(this).hasClass('slick-active')) { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); } }); $(document).on('click', '#mw_ebp #mc_ebp [data-ebp] [id^="kv_"] #slick-slide01', function () { if ($(this).hasClass('slick-active')) { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); } }); $(document).on('click', '#mw_ebp #mc_ebp [data-ebp] [id^="kv_"] .icon-arrow-right', function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); }); }); function createSlick() { $(slider).not('.slick-initialized').slick({ infinite: true, loop: true, mobileFirst: true, dots: true, arrows: false, slidesToShow: 1, slidesToScroll: 1, fade: true, speed: 0.1, appendArrows: $(slider).parent().find('.slide-nav_ebp'), prevArrow: '', nextArrow: '', responsive: [ { breakpoint: 559, settings: { arrows: true } } ] }); } createSlick(); $(slider).on('afterChange', function (event, slick, currentSlide, nextSlide) { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); $(slider).find('.slick-active').find('.copy_ebp').addClass('revealed_ebp'); $(slider).find('.slick-active').find('.logo_ebp').addClass('revealed_ebp'); if (currentSlide == 1) { $('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"] .prod-container_ebp .gallery-two_ebp').addClass('active_ebp'); } else { $('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"] .prod-container_ebp .gallery-two_ebp').removeClass('active_ebp'); } }); $(slider).on('beforeChange', function (event, slick, currentSlide, nextSlide) { $(slider).find('.overlay_ebp').removeClass('revealed_ebp'); $(slider).find('.overlay_ebp').removeClass('revealed-oposite_ebp'); $(slider).find('.slick-active').find('.copy_ebp').removeClass('revealed_ebp'); $(slider).find('.slick-active').find('.logo_ebp').removeClass('revealed_ebp'); }); $(slider).on('swipe', function (event, slick, direction) { if (direction == 'left') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); } else if (direction == 'right') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); } }); } createSliderKv('.slider_ebp')//waypoints// //product description// var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ? true : false; if (isMobile) { $('[id^="prod-desc_"]').addClass('mobile_ebp') } function createSliderProdDesc(slider) { $(slider).on('init', function (event, slick) { $(this).parent().find('.slide-nav_ebp').prepend('
1 / ' + slick.slideCount + '
'); slick.$nextArrow.click(function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); }); slick.$prevArrow.click(function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); }); }); function createSlick() { $(slider).not('.slick-initialized').slick({ infinite: true, dots: false, loop: true, arrows: true, slidesToShow: 1, slidesToScroll: 1, fade: true, speed: 0.1, appendArrows: $(slider).parent().find('.slide-nav_ebp'), prevArrow: '', nextArrow: '' }); } createSlick(); $(slider).on('afterChange', function (event, slick, currentSlide, nextSlide) { $(slider).parent().find('.slider-count_ebp .current_ebp').html(currentSlide + 1); $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); }); $(slider).on('beforeChange', function (event, slick, currentSlide, nextSlide) { $(slider).find('.overlay_ebp').removeClass('revealed_ebp'); $(slider).find('.overlay_ebp').removeClass('revealed-oposite_ebp'); }); $(slider).on('swipe', function (event, slick, direction) { if (direction == 'left') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); } else if (direction == 'right') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); } }); } createSliderProdDesc('[data-product_ebp="surface-pro"]') createSliderProdDesc('[data-product_ebp="surface-laptop"]') $('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"] [data-animate-prod-desc_ebp]').each(function (index, element) { $(element).attr('data-animate-prod-desc_ebp', index); $(element).css('opacity', 0); if ($(element).attr('data-animate-prod-desc_ebp') == 0) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInRight_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-prod-desc_ebp') == 1) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('revealed-oposite_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-prod-desc_ebp') == 2) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInLeftButton_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-prod-desc_ebp') == 3) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInLeft_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-prod-desc_ebp') == 4) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('revealed_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-prod-desc_ebp') == 5) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInRightButton_ebp') } }, {offset: '90%'}); }// if ($(element).attr('data-animate-prod-desc_ebp') == 5) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInRightButton_ebp')// }// }, {offset: '90%'});// } });//////////////// //features and benefits//// function createSliderFnb(slider) { $(slider).find('.slide_ebp').each(function (index, element) { if (index >= 0 && index ' + '' + ''; } $(element).find('.slide-pagination_ebp').append(buttons); }); $(slider).on('init', function (event, slick) { $(this).find('.slide-pagination_ebp').prepend('
1 / ' + slick.slideCount + '
'); $(this).find('.device-slide-title_ebp').attr('data-attr', '01'); slick.$nextArrow.click(function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); }); slick.$prevArrow.click(function () { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); }); }); function createSlick() { $(slider).not('.slick-initialized').slick({ infinite: true, adaptiveHeight: true, loop: true, dots: false, arrows: true, fade: true, speed: 0.1, slidesToShow: 1, slidesToScroll: 1, prevArrow: $(slider).find('[data-slide_ebp="left"]'), nextArrow: $(slider).find('[data-slide_ebp="right"]') }); } createSlick(); $(slider).on('afterChange', function (event, slick, currentSlide, nextSlide) { $(slider).find('.slider-count_ebp .current_ebp').html(currentSlide + 1); $(slider).find('.device-slide-title_ebp').attr('data-attr', '0' + (currentSlide + 1).toString()); }); $(slider).on('beforeChange', function (event, slick, currentSlide, nextSlide) { $(slider).find('.overlay_ebp').removeClass('revealed_ebp'); $(slider).find('.overlay_ebp').removeClass('revealed-oposite_ebp'); }); $(slider).on('swipe', function (event, slick, direction) { if (direction == 'left') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed-oposite_ebp'); } else if (direction == 'right') { $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp'); } }); } createSliderFnb('[data-slider-fnb="surface-pro"]'); createSliderFnb('[data-slider-fnb="surface-laptop"]'); $('#mw_ebp #mc_ebp [data-ebp] [id^="fnb_"] [data-animate-fnb_ebp]').each(function (index, element) { $(element).attr('data-animate-fnb_ebp', index); $(element).css('opacity', 0); if ($(element).attr('data-animate-fnb_ebp') == 0) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-fnb_ebp') == 1) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('revealed-oposite_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-fnb_ebp') == 2) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInUp_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-fnb_ebp') == 3) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('revealed_ebp') } }, {offset: '90%'}); } });//////// //video//// $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"] .video-container_ebp').each(function (i, el) { var iframe = $(el).find('.video-content_ebp iframe'), button = $(el).find('.play-icon_ebp'), container = $(el).attr('data-video_ebp'), timing = 300; button.click(function (e) { e.preventDefault(); $('html, body').animate({ scrollTop: $(el).offset().top }, 1000); if ($(window).width() > 559) { $('[data-video_ebp]:not([data-video_ebp="' + container + '"])').fadeOut(timing); setTimeout(function () { $(el).find('.cover_ebp').fadeOut(timing); $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').addClass('active_ebp'); $(el).find('.video-content_ebp').fadeIn(timing); $(el).addClass('active_ebp'); $(el).find('.video-content_ebp').append('') iframe[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*'); }, timing); $(document).on('click', '.close-video_ebp', function () { $(el).find('.cover_ebp').fadeIn(timing); $(el).find('.video-content_ebp').fadeOut(timing); $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').removeClass('active_ebp'); setTimeout(function () { $('[data-video_ebp]:not([data-video_ebp="' + container + '"])').fadeIn(timing); }, timing + 900); $(el).removeClass('active_ebp'); $(this).remove(); iframe[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*'); }); } else { $(el).find('.cover_ebp').fadeOut(timing); setTimeout(function () { $(el).find('.video-content_ebp').fadeIn(timing); $(el).addClass('active_ebp'); iframe[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*'); }, timing); } }); }); $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"] [data-animate-video_ebp]').each(function (index, element) { $(element).attr('data-animate-video_ebp', index); $(element).css('opacity', 0); if ($(element).attr('data-animate-video_ebp') == 0) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('scaleUp_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-video_ebp') == 1) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInUp_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-video_ebp') == 2) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('scaleUp_ebp') } }, {offset: '90%'}); } if ($(element).attr('data-animate-video_ebp') == 3) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInUp_ebp') } }, {offset: '90%'}); } });//////////// //compare table//// var moreBtn = $('#mw_ebp #mc_ebp [data-ebp] [id^="compare-table_"] [data-expand="true"]'); $('.content_ebp').niceScroll( { cursorcolor: '#1573b1', cursorborder: '1px solid #fff', autohidemode: false, cursoropacitymin: 1, smoothscroll: false, directionlockdeadzone: 30, cursorborderradius: "0px", cursorwidth: '2px', railpadding: {top: 1, right: 1, left: 1, bottom: 1} }); function tableResize() { $('.content_ebp').find('tr').each(function (i, el) { $('.headers_ebp').find('tr').eq(i).height($(el).height()); }); } $(document).on('click', '[data-expand="true"]', function () { tableResize(); if (moreBtn.hasClass('less_ebp')) { setTimeout(function () { $('.expandable-content_ebp').removeClass('expanded_ebp'); }, 1000); $(this).find('span').first().text('rozwiń') $('.expandable-content_ebp').find('table').css('height', 0); moreBtn.removeClass('less_ebp'); } else { $('.expandable-content_ebp').addClass('expanded_ebp'); $(this).find('span').first().text('zwiń') $('.expandable-content_ebp').find('table').css('height', $('.expandable-content_ebp').find('table').height($('#mw_ebp #mc_ebp [data-ebp] [id^="compare-table_"] .content_ebp tr td table tbody').height())); moreBtn.addClass('less_ebp'); } setTimeout(function () { $('html, body').animate({ scrollTop: $('.expandable-content_ebp').offset().top }, 1000); $('.content_ebp').getNiceScroll(0).resize(); }, 1000); }); $(window).on('resize', function () { tableResize(); }); $(document).ready(function () { tableResize(); });// $(window).on('load', function () {// tableResize();// }); $('#mw_ebp #mc_ebp [data-ebp] [id^="compare-table_"] [data-animate-table_ebp]').each(function (index, element) { $(element).attr('data-animate-table_ebp', index); $(element).css('opacity', 0); if ($(element).attr('data-animate-table_ebp') == 0) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-table_ebp') == 1) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-table_ebp') == 2) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); } }, {offset: '90%'}); } });//////// //accessiories//// $('#mw_ebp #mc_ebp [data-ebp] [id^="acc_"] [data-animate-acc_ebp]').each(function (index, element) { $(element).attr('data-animate-acc_ebp', index); $(element).css('opacity', 0); if ($(element).attr('data-animate-acc_ebp') == 0) { $(element).waypoint(function (direction) { if (direction == "down') { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); } }, {offset: '90%'}); } if ($(element).attr('data-animate-acc_ebp') == 1) { $(element).waypoint(function (direction) { if (direction == "down') { setTimeout(function () { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); }, 500 * index) } }, {offset: '90%'}); } if ($(element).attr('data-animate-acc_ebp') == 2) { $(element).waypoint(function (direction) { if (direction == "down') { setTimeout(function () { $(element).css('opacity', 1); $(element).addClass('fadeInDown_ebp'); }, 500 * index) } }, {offset: '90%'}); } }); setTimeout(function () { Waypoint.refreshAll(); }, 1000); }) .progress(function (instance, image) {// console.log(Math.round((Date.now() - timerStart) / 100));// console.log(Math.floor((instance.progressedCount * 100) / instance.images.length)); $('.counter_ebp span:first-of-type').html(Math.floor((instance.progressedCount * 100) / instance.images.length)); var result = image.isLoaded ? 'loaded' : 'broken'; $('.loader-logo_ebp div').each(function (i, el) { setTimeout(function () { $(el).addClass('loading_ebp');// $('.loading_ebp').css({//// 'animationIterationCount': Math.round((Date.now() - timerStart) / 100),// '-webkit-animation-iteration-count': Math.round((Date.now() - timerStart) / 100),//// }); }, 500 * i); }); }); }); }})(ebpQuery);/** source: /home/sisbuilder/public/web/builder/ebpcomponents/1665/_ebplibrary/js/plugins/ebpQuery.waypoints.min.js **//*!Waypoints - 3.1.1Copyright © 2011-2015 Caleb TroughtonLicensed under the MIT license.https://github.com/imakewebthings/waypoints/blog/master/licenses.txt*/!function(){"use strict";function t(o){if(!o)throw new Error('No options passed to Waypoint constructor');if(!o.element)throw new Error('No element option passed to Waypoint constructor');if(!o.handler)throw new Error('No handler option passed to Waypoint constructor');this.key="waypoint-'+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll('destroy')},t.disableAll=function(){t.invokeAll('disable')},t.enableAll=function(){t.invokeAll('enable')},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-'+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off('.waypoints'),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on('resize.waypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on('scroll.waypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldScroll=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var s in this.waypoints[n]){var a,l,h,p,u,c=this.waypoints[n][s],d=c.options.offset,f=c.triggerPoint,w=0,y=null==f;c.element!==c.element.window&&(w=c.adapter.offset()[r.offsetProp]),"function"==typeof d?d=d.apply(c):"string"==typeof d&&(d=parseFloat(d),c.options.offset.indexOf('%')>-1&&(d=Math.ceil(r.contextDimension*d/100))),a=r.contextScroll-r.contextOffset,c.triggerPoint=w+a-d,l=f=r.oldScroll,p=l&&h,u=!l&&!h,!y&&p?(c.queueTrigger(r.backward),o[c.group.id]=c.group):!y&&u?(c.queueTrigger(r.forward),o[c.group.id]=c.group):y&&r.oldScroll>=c.triggerPoint&&(c.queueTrigger(r.forward),o[c.group.id]=c.group)}}for(var g in o)o[g].flushTriggers();return this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+'-'+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.ebpQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.Waypoint;window.ebpQuery&&(window.ebpQuery.fn.waypoint=t(window.ebpQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();(function ($) { if ($('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"]').attr('data-exported_ebp') == "true') {// var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ? true : false;// if (isMobile) {// $('[id^="prod-desc_"]').addClass('mobile_ebp')// }// function createSlider(slider) {// $(slider).on('init', function (event, slick) {// $(this).parent().find('.slide-nav_ebp').prepend('
1 / ' + slick.slideCount + '
');// });// function createSlick() {// $(slider).not('.slick-initialized').slick({// infinite: false,// dots: false,// arrows: true,// slidesToShow: 1,// slidesToScroll: 1,// fade: true,// speed: 0.1,// appendArrows: $(slider).parent().find('.slide-nav_ebp'),// prevArrow: '',// nextArrow: ''// });// }// createSlick();// $(slider).on('afterChange', function (event, slick, currentSlide, nextSlide) {// $(slider).parent().find('.slider-count_ebp .current_ebp').html(currentSlide + 1);// $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp');// });// $(slider).on('beforeChange', function (event, slick, currentSlide, nextSlide) {// $(slider).find('.overlay_ebp').removeClass('revealed_ebp')//// });// }// createSlider('[data-product_ebp="surface-pro"]')// createSlider('[data-product_ebp="surface-laptop"]')//// $('#mw_ebp #mc_ebp [data-ebp] [id^="prod-desc_"] [data-animate-prod-desc_ebp]').each(function (index, element) {//// $(element).attr('data-animate-prod-desc_ebp', index);// $(element).css('opacity', 0);//// if ($(element).attr('data-animate-prod-desc_ebp') == 0) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInRight_ebp');//////////// }// }, {offset: 'top-iv-view'});// }// if ($(element).attr('data-animate-prod-desc_ebp') == 1) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('revealed_ebp')////////// }// }, {offset: '90%'});// }// if ($(element).attr('data-animate-prod-desc_ebp') == 2) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInLeftButton_ebp')////// }// }, {offset: 'top-iv-view'});// }////// if ($(element).attr('data-animate-prod-desc_ebp') == 3) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('fadeInLeft_ebp')////////// }// }, {offset: '90%'});// }// if ($(element).attr('data-animate-prod-desc_ebp') == 4) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('revealed_ebp')////////// }// }, {offset: '90%'});// }// if ($(element).attr('data-animate-prod-desc_ebp') == 5) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('fadeInRightButton_ebp')////////// }// }, {offset: '90%'});// }// //////////// }); }})(ebpQuery);(function ($) { if ($('#mw_ebp #mc_ebp [data-ebp] [id^="fnb_"]').attr('data-exported_ebp') == "true') {// function createSlider(slider) {// $(slider).find('.slide_ebp').each(function (index, element) {//// if (index >= 0 && index ' +// '' +// '';// }// $(element).find('.slide-pagination_ebp').append(buttons);// });// $(slider).on('init', function (event, slick) {// $(this).find('.slide-pagination_ebp').prepend('
1 / ' + slick.slideCount + '
');// $(this).find('.device-slide-title_ebp').attr('data-attr', '01');// });// function createSlick() {// $(slider).not('.slick-initialized').slick({// infinite: false,// adaptiveHeight: true,// dots: false,// arrows: true,// fade: true,// speed: 0.1,// slidesToShow: 1,// slidesToScroll: 1,// prevArrow: $(slider).find('[data-slide_ebp="left"]'),// nextArrow: $(slider).find('[data-slide_ebp="right"]')// });// }// createSlick();// $(slider).on('afterChange', function (event, slick, currentSlide, nextSlide) {// $(slider).find('.slider-count_ebp .current_ebp').html(currentSlide + 1);// $(slider).find('.device-slide-title_ebp').attr('data-attr', '0' + (currentSlide + 1).toString());// $(slider).find('.slick-active').find('.overlay_ebp').addClass('revealed_ebp');// });// $(slider).on('beforeChange', function (event, slick, currentSlide, nextSlide) {// $(slider).find('.overlay_ebp').removeClass('revealed_ebp')//// });//// }// createSlider('[data-slider-fnb="surface-pro"]');// createSlider('[data-slider-fnb="surface-laptop"]');////// $('#mw_ebp #mc_ebp [data-ebp] [id^="fnb_"] [data-animate-fnb_ebp]').each(function (index, element) {//// $(element).attr('data-animate-fnb_ebp', index);// $(element).css('opacity', 0);//// if ($(element).attr('data-animate-fnb_ebp') == 0) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInDown_ebp');//////////// }// }, {offset: 'top-iv-view'});// }// if ($(element).attr('data-animate-fnb_ebp') == 1) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('revealed_ebp')////////// }// }, {offset: '90%'});// }// if ($(element).attr('data-animate-fnb_ebp') == 2) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInUp_ebp')////// }// }, {offset: 'top-iv-view'});// }////// if ($(element).attr('data-animate-fnb_ebp') == 3) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('revealed_ebp')////////// }// }, {offset: '90%'});// }////////////// }); }})(ebpQuery);(function ($) { if ($('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').attr('data-exported_ebp') == "true') {// $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"] .video-container_ebp').each(function (i, el) {// var iframe = $(el).find('.video-content_ebp iframe'),// button = $(el).find('.play-icon_ebp'),// container = $(el).attr('data-video_ebp'),// timing = 300;// button.click(function (e) {// e.preventDefault();////////////// if ($(window).width() > 559) {// $('[data-video_ebp]:not([data-video_ebp="' + container + '"])').fadeOut(timing);//// setTimeout(function () {// $(el).find('.cover_ebp').fadeOut(timing);// $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').addClass('active_ebp');// $(el).find('.video-content_ebp').fadeIn(timing);// $(el).addClass('active_ebp');//// $(el).find('.video-content_ebp').append('')// iframe[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');// }, timing);//// $(document).on('click', '.close-video_ebp', function () {//// $(el).find('.cover_ebp').fadeIn(timing);// $(el).find('.video-content_ebp').fadeOut(timing);// $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"]').removeClass('active_ebp');// setTimeout(function () {//// $('[data-video_ebp]:not([data-video_ebp="' + container + '"])').fadeIn(timing);// }, timing + 900);// $(el).removeClass('active_ebp');// $(this).remove();// iframe[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*');// });// } else {// $(el).find('.cover_ebp').fadeOut(timing);// setTimeout(function () {// $(el).find('.video-content_ebp').fadeIn(timing);// $(el).addClass('active_ebp');// iframe[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');// }, timing);// }// });////////// });// $('#mw_ebp #mc_ebp [data-ebp] [id^="video_"] [data-animate-video_ebp]').each(function (index, element) {//// $(element).attr('data-animate-video_ebp', index);// $(element).css('opacity', 0);//// if ($(element).attr('data-animate-video_ebp') == 0) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('scaleUp_ebp');// }// }, {offset: 'top-iv-view'});// }// if ($(element).attr('data-animate-video_ebp') == 1) {// $(element).waypoint(function (direction) {// if (direction == "down') {////// $(element).css('opacity', 1);// $(element).addClass('fadeInUp_ebp')////////// }// }, {offset: 'top-in-view'});// }// if ($(element).attr('data-animate-video_ebp') == 2) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('scaleUp_ebp')////// }// }, {offset: 'top-iv-view'});// }// if ($(element).attr('data-animate-video_ebp') == 3) {// $(element).waypoint(function (direction) {// if (direction == "down') {// $(element).css('opacity', 1);// $(element).addClass('fadeInUp_ebp')// }// }, {offset: 'top-in-view'});// }// }); };})(ebpQuery);/** source: /home/sisbuilder/public/web/builder/ebpcomponents/1665/_ebplibrary/js/plugins/ebpquery.nicescroll.min.js **/!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require('jquery')):e(ebpQuery)}(function(e){"use strict";function o(){var e=document.getElementsByTagName('script'),o=e.length?e[e.length-1].src.split('?')[0]:"";return o.split('/').length>0?o.split('/').slice(0,-1).join('/')+'/":""}function t(e,o,t){for(var r=0;r=9,n.isie10=n.isie&&"performance"in window&&10==document.documentMode,n.isie11="msRequestFullscreen"in o&&document.documentMode>=11,n.isieedge=navigator.userAgent.match(/Edge\/12\./),n.isie9mobile=/iemobile.9/i.test(r),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(r),n.ismozilla="MozAppearance"in t,n.iswebkit="WebkitAppearance"in t,n.ischrome="chrome"in window,n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&"transition"in t,n.cantouch="ontouchstart"in document.documentElement||"ontouchstart"in window,n.hasmstouch=window.MSPointerEvent||!1,n.hasw3ctouch=(window.PointerEvent||!1)&&(navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0),n.ismac=/^mac$/i.test(i),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(i),n.isios4=n.isios&&!('seal"in Object),n.isios7=n.isios&&"webkitHidden"in document,n.isandroid=/android/i.test(r),n.haseventlistener="addEventListener"in o,n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1;var s,l=["transform","msTransform","webkitTransform","MozTransform","OTransform"];for(s=0;s0;){if(9==e[0].nodeType)return!1;var o=e.css('zIndex');if(!isNaN(o)&&0!=o)return parseInt(o);e=e.parent()}return!1}function h(e,o,t){var r=e.css(o),i=parseFloat(r);if(isNaN(i)){i=k[r]||0;var n=3==i?t?v.win.outerHeight()-v.win.innerHeight():v.win.outerWidth()-v.win.innerWidth():1;return v.isie8&&i&&(i+=1),n?i:0}return i}function p(e,o,t,r){v._bind(e,o,function(r){var r=r?r:window.event,i={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==r.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return"mousewheel"==o?(i.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(i.deltaX=-1/40*r.wheelDeltaX)):i.deltaY=r.detail,t.call(e,i)},r)}function g(e,o,t){var r,i;if(0==e.deltaMode?(r=-Math.floor(e.deltaX*(v.opt.mousescrollstep/54)),i=-Math.floor(e.deltaY*(v.opt.mousescrollstep/54))):1==e.deltaMode&&(r=-Math.floor(e.deltaX*v.opt.mousescrollstep),i=-Math.floor(e.deltaY*v.opt.mousescrollstep)),o&&v.opt.oneaxismousemode&&0==r&&i&&(r=i,i=0,t)){var n=0>r?v.getScrollLeft()>=v.page.maxw:v.getScrollLeft()i){if(v.getScrollTop()>=v.page.maxh)return!0}else if(v.getScrollTop()o?this.ed:this.st+Math.round(this.df*t)},update:function(e,o){return this.st=this.getNow(),this.ed=e,this.spd=o,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},x.hastranslate3d&&x.isios&&this.doc.css('-webkit-backface-visibility","hidden'),this.getScrollTop=function(e){if(!e){var o=t();if(o)return 16==o.length?-o[13]:-o[5];if(v.timerscroll&&v.timerscroll.bz)return v.timerscroll.bz.getNow()}return v.doc.translate.y},this.getScrollLeft=function(e){if(!e){var o=t();if(o)return 16==o.length?-o[12]:-o[4];if(v.timerscroll&&v.timerscroll.bh)return v.timerscroll.bh.getNow()}return v.doc.translate.x},this.notifyScrollEvent=function(e){var o=document.createEvent('UIEvents');o.initUIEvent('scroll",!1,!0,window,1),o.niceevent=!0,e.dispatchEvent(o)};var T=this.isrtlmode?1:-1;x.hastranslate3d&&v.opt.enabletranslate3d?(this.setScrollTop=function(e,o){v.doc.translate.y=e,v.doc.translate.ty=-1*e+'px",v.doc.css(x.trstyle,"translate3d('+v.doc.translate.tx+','+v.doc.translate.ty+',0px)'),o||v.notifyScrollEvent(v.win[0])},this.setScrollLeft=function(e,o){v.doc.translate.x=e,v.doc.translate.tx=e*T+'px",v.doc.css(x.trstyle,"translate3d('+v.doc.translate.tx+','+v.doc.translate.ty+',0px)'),o||v.notifyScrollEvent(v.win[0])}):(this.setScrollTop=function(e,o){v.doc.translate.y=e,v.doc.translate.ty=-1*e+'px",v.doc.css(x.trstyle,"translate('+v.doc.translate.tx+','+v.doc.translate.ty+')'),o||v.notifyScrollEvent(v.win[0])},this.setScrollLeft=function(e,o){v.doc.translate.x=e,v.doc.translate.tx=e*T+'px",v.doc.css(x.trstyle,"translate('+v.doc.translate.tx+','+v.doc.translate.ty+')'),o||v.notifyScrollEvent(v.win[0])})}else this.getScrollTop=function(){return v.docscroll.scrollTop()},this.setScrollTop=function(e){return setTimeout(function(){v.docscroll.scrollTop(e)},1)},this.getScrollLeft=function(){return v.detected.ismozilla&&v.isrtlmode?Math.abs(v.docscroll.scrollLeft()):v.docscroll.scrollLeft()},this.setScrollLeft=function(e){return setTimeout(function(){v.docscroll.scrollLeft(v.detected.ismozilla&&v.isrtlmode?-e:e)},1)};this.getTarget=function(e){return e?e.target?e.target:e.srcElement?e.srcElement:!1:!1},this.hasParent=function(e,o){if(!e)return!1;for(var t=e.target||e.srcElement||e||!1;t&&t.id!=o;)t=t.parentNode||!1;return t!==!1};var k={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:window.pageYOffset||document.documentElement.scrollTop,left:window.pageXOffset||document.documentElement.scrollLeft}},this.getOffset=function(){if(v.isfixed){var e=v.win.offset(),o=v.getDocumentScrollOffset();return e.top-=o.top,e.left-=o.left,e}var t=v.win.offset();if(!v.viewport)return t;var r=v.viewport.offset();return{top:t.top-r.top,left:t.left-r.left}},this.updateScrollBar=function(e){if(v.ishwscroll)v.rail.css({height:v.win.innerHeight()-(v.opt.railpadding.top+v.opt.railpadding.bottom)}),v.railh&&v.railh.css({width:v.win.innerWidth()-(v.opt.railpadding.left+v.opt.railpadding.right)});else{var o=v.getOffset(),t={top:o.top,left:o.left-(v.opt.railpadding.left+v.opt.railpadding.right)};t.top+=h(v.win,"border-top-width",!0),t.left+=v.rail.align?v.win.outerWidth()-h(v.win,"border-right-width')-v.rail.width:h(v.win,"border-left-width');var r=v.opt.railoffset;if(r&&(r.top&&(t.top+=r.top),r.left&&(t.left+=r.left)),v.railslocked||v.rail.css({top:t.top,left:t.left,height:(e?e.h:v.win.innerHeight())-(v.opt.railpadding.top+v.opt.railpadding.bottom)}),v.zoom&&v.zoom.css({top:t.top+1,left:1==v.rail.align?t.left-20:t.left+v.rail.width+4}),v.railh&&!v.railslocked){var t={top:o.top,left:o.left},r=v.opt.railhoffset;r&&(r.top&&(t.top+=r.top),r.left&&(t.left+=r.left));var i=v.railh.align?t.top+h(v.win,"border-top-width",!0)+v.win.innerHeight()-v.railh.height:t.top+h(v.win,"border-top-width",!0),n=t.left+h(v.win,"border-left-width');v.railh.css({top:i-(v.opt.railpadding.top+v.opt.railpadding.bottom),left:n,width:v.railh.width})}}},this.doRailClick=function(e,o,t){var r,i,n,s;v.railslocked||(v.cancelEvent(e),o?(r=t?v.doScrollLeft:v.doScrollTop,n=t?(e.pageX-v.railh.offset().left-v.cursorwidth/2)*v.scrollratio.x:(e.pageY-v.rail.offset().top-v.cursorheight/2)*v.scrollratio.y,r(n)):(r=t?v.doScrollLeftBy:v.doScrollBy,n=t?v.scroll.x:v.scroll.y,s=t?e.pageX-v.railh.offset().left:e.pageY-v.rail.offset().top,i=t?v.view.w:v.view.h,r(n>=s?i:-i)))},v.hasanimationframe=d,v.hascancelanimationframe=u,v.hasanimationframe?v.hascancelanimationframe||(u=function(){v.cancelAnimationFrame=!0}):(d=function(e){return setTimeout(e,15-Math.floor(+new Date/1e3)%16)},u=clearInterval),this.init=function(){if(v.saved.css=[],x.isie7mobile)return!0;if(x.isoperamini)return!0;if(x.hasmstouch&&v.css(v.ispage?a('html'):v.win,{"-ms-touch-action":"none"}),v.zindex="auto",v.ispage||"auto"!=v.opt.zindex?v.zindex=v.opt.zindex:v.zindex=c()||"auto",v.ispage||"auto"==v.zindex||v.zindex>l&&(l=v.zindex),v.isie&&0==v.zindex&&"auto"==v.opt.zindex&&(v.zindex="auto'),!v.ispage||!x.cantouch&&!x.isieold&&!x.isie9mobile){var e=v.docscroll;v.ispage&&(e=v.haswrapper?v.win:v.doc),x.isie9mobile||v.css(e,{"overflow-y":"hidden"}),v.ispage&&x.isie7&&('BODY"==v.doc[0].nodeName?v.css(a('html'),{"overflow-y":"hidden"}):"HTML"==v.doc[0].nodeName&&v.css(a('body'),{"overflow-y":"hidden"})),!x.isios||v.ispage||v.haswrapper||v.css(a('body'),{"-webkit-overflow-scrolling":"touch"});var o=a(document.createElement('div'));o.css({position:"relative",top:0,"float":"right",width:v.opt.cursorwidth,height:"0px","background-color":v.opt.cursorcolor,border:v.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":v.opt.cursorborderradius,"-moz-border-radius":v.opt.cursorborderradius,"border-radius":v.opt.cursorborderradius}),o.hborder=parseFloat(o.outerHeight()-o.innerHeight()),o.addClass('nicescroll-cursors'),v.cursor=o;var t=a(document.createElement('div'));t.attr('id",v.id),t.addClass('nicescroll-rails nicescroll-rails-vr');var s,d,u=["left","right","top","bottom"];for(var h in u)d=u[h],s=v.opt.railpadding[d],s?t.css('padding-'+d,s+'px'):v.opt.railpadding[d]=0;t.append(o),t.width=Math.max(parseFloat(v.opt.cursorwidth),o.outerWidth()),t.css({width:t.width+'px",zIndex:v.zindex,background:v.opt.background,cursor:"default"}),t.visibility=!0,t.scrollable=!0,t.align="left"==v.opt.railalign?0:1,v.rail=t,v.rail.drag=!1;var p=!1;!v.opt.boxzoom||v.ispage||x.isieold||(p=document.createElement('div'),v.bind(p,"click",v.doZoom),v.bind(p,"mouseenter",function(){v.zoom.css('opacity",v.opt.cursoropacitymax)}),v.bind(p,"mouseleave",function(){v.zoom.css('opacity",v.opt.cursoropacitymin)}),v.zoom=a(p),v.zoom.css({cursor:"pointer","z-index":v.zindex,backgroundImage:"url('+v.opt.scriptpath+'zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),v.opt.dblclickzoom&&v.bind(v.win,"dblclick",v.doZoom),x.cantouch&&v.opt.gesturezoom&&(v.ongesturezoom=function(e){return e.scale>1.5&&v.doZoomIn(e),e.scale<.8 f o="a(document.createElement('div'));o.css({position:"absolute",top:0,height:v.opt.cursorwidth,width:"0px","background-color":v.opt.cursorcolor,border:v.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":v.opt.cursorborderradius,"-moz-border-radius":v.opt.cursorborderradius,"border-radius":v.opt.cursorborderradius}),x.isieold&&o.css({overflow:"hidden"}),o.wborder=parseFloat(o.outerWidth()-o.innerWidth()),o.addClass('nicescroll-cursors'),v.cursorh=o,f=a(document.createElement('div')),f.attr('id",v.id+'-hr'),f.addClass('nicescroll-rails" nicescroll-rails-hr g="HTML" w="v.isfixed?"fixed":"absolute";v.isfixed||(v.viewport=v.getViewport(v.win[0])),v.viewport&&(v.body=v.viewport,0==/fixed|absolute/.test(v.viewport.css('position'))&&v.css(v.viewport,{position:"relative"})),t.css({position:w}),v.zoom&&v.zoom.css({position:w}),v.updateScrollBar(),v.body.append(t),v.zoom&&v.body.append(v.zoom),v.railh&&(f.css({position:w}),v.body.append(f))}x.isios&&v.css(v.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),x.isie&&v.opt.disableoutline&&v.win.attr('hideFocus","true'),x.iswebkit&&v.opt.disableoutline&&v.win.css({outline:"none"})}if(v.opt.autohidemode===!1?(v.autohidedom=!1,v.rail.css({opacity:v.opt.cursoropacitymax}),v.railh&&v.railh.css({opacity:v.opt.cursoropacitymax})):v.opt.autohidemode===!0||"leave"===v.opt.autohidemode?(v.autohidedom=a().add(v.rail),x.isie8&&(v.autohidedom=v.autohidedom.add(v.cursor)),v.railh&&(v.autohidedom=v.autohidedom.add(v.railh)),v.railh&&x.isie8&&(v.autohidedom=v.autohidedom.add(v.cursorh))):"scroll"==v.opt.autohidemode?(v.autohidedom=a().add(v.rail),v.railh&&(v.autohidedom=v.autohidedom.add(v.railh))):"cursor"==v.opt.autohidemode?(v.autohidedom=a().add(v.cursor),v.railh&&(v.autohidedom=v.autohidedom.add(v.cursorh))):"hidden"==v.opt.autohidemode&&(v.autohidedom=!1,v.hide(),v.railslocked=!1),x.isie9mobile){v.scrollmom=new" b e="v.getScrollTop(),o=v.getScrollLeft();if(e==v.scrollmom.lastscrolly&&o==v.scrollmom.lastscrollx)return!0;var" t="e-v.mangotouch.sy,r=o-v.mangotouch.sx,i=Math.round(Math.sqrt(Math.pow(r,2)+Math.pow(t,2)));if(0!=i){var" n="0">t?-1:1,s=0>r?-1:1,l=+new Date;if(v.mangotouch.lazy&&clearTimeout(v.mangotouch.lazy),l-v.mangotouch.tm>80||v.mangotouch.dry!=n||v.mangotouch.drx!=s)v.scrollmom.stop(),v.scrollmom.reset(o,e),v.mangotouch.sy=e,v.mangotouch.ly=e,v.mangotouch.sx=o,v.mangotouch.lx=o,v.mangotouch.dry=n,v.mangotouch.drx=s,v.mangotouch.tm=l;else{v.scrollmom.stop(),v.scrollmom.update(v.mangotouch.sx-r,v.mangotouch.sy-t),v.mangotouch.tm=l;var a=Math.max(Math.abs(v.mangotouch.ly-e),Math.abs(v.mangotouch.lx-o));v.mangotouch.ly=e,v.mangotouch.lx=o,a>2&&(v.mangotouch.lazy=setTimeout(function(){v.mangotouch.lazy=!1,v.mangotouch.dry=0,v.mangotouch.drx=0,v.mangotouch.tm=0,v.scrollmom.doMomentum(30)},100))}}};var y=v.getScrollTop(),S=v.getScrollLeft();v.mangotouch={sy:y,ly:y,dry:0,sx:S,lx:S,drx:0,lazy:!1,tm:0},v.bind(v.docscroll,"scroll",v.onmangotouch)}else{if(x.cantouch||v.istouchcapable||v.opt.touchbehavior||x.hasmstouch){v.scrollmom=new b(v),v.ontouchstart=function(e){if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(v.hasmoving=!1,!v.railslocked){var o;if(x.hasmstouch)for(o=e.target?e.target:!1;o;){var t=a(o).getNiceScroll();if(t.length>0&&t[0].me==v.me)break;if(t.length>0)return!1;if('DIV"==o.nodeName&&o.id==v.id)break;o=o.parentNode?o.parentNode:!1}if(v.cancelScroll(),o=v.getTarget(e)){var r=/INPUT/i.test(o.nodeName)&&/range/i.test(o.type);if(r)return v.stopPropagation(e)}if(!('clientX"in e)&&"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),v.forcescreen){var i=e;e={original:e.original?e.original:e},e.clientX=i.screenX,e.clientY=i.screenY}if(v.rail.drag={x:e.clientX,y:e.clientY,sx:v.scroll.x,sy:v.scroll.y,st:v.getScrollTop(),sl:v.getScrollLeft(),pt:2,dl:!1},v.ispage||!v.opt.directionlockdeadzone)v.rail.drag.dl="f";else{var n={w:a(window).width(),h:a(window).height()},s={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},l=Math.max(0,s.h-n.h),c=Math.max(0,s.w-n.w);!v.rail.scrollable&&v.railh.scrollable?v.rail.drag.ck=l>0?"v":!1:v.rail.scrollable&&!v.railh.scrollable?v.rail.drag.ck=c>0?"h":!1:v.rail.drag.ck=!1,v.rail.drag.ck||(v.rail.drag.dl="f')}if(v.opt.touchbehavior&&v.isiframe&&x.isie){var d=v.win.position();v.rail.drag.x+=d.left,v.rail.drag.y+=d.top}if(v.hasmoving=!1,v.lastmouseup=!1,v.scrollmom.reset(e.clientX,e.clientY),!x.cantouch&&!this.istouchcapable&&!e.pointerType){var u=o?/INPUT|SELECT|TEXTAREA/i.test(o.nodeName):!1;if(!u)return!v.ispage&&x.hasmousecapture&&o.setCapture(),v.opt.touchbehavior?(o.onclick&&!o._onclick&&(o._onclick=o.onclick,o.onclick=function(e){return v.hasmoving?!1:void o._onclick.call(this,e)}),v.cancelEvent(e)):v.stopPropagation(e);/SUBMIT|CANCEL|BUTTON/i.test(a(o).attr('type'))&&(pc={tg:o,click:!1},v.preventclick=pc)}}},v.ontouchend=function(e){if(!v.rail.drag)return!0;if(2==v.rail.drag.pt){if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(v.scrollmom.doMomentum(),v.rail.drag=!1,v.hasmoving&&(v.lastmouseup=!0,v.hideCursor(),x.hasmousecapture&&document.releaseCapture(),!x.cantouch))return v.cancelEvent(e)}else if(1==v.rail.drag.pt)return v.onmouseup(e)};var z=v.opt.touchbehavior&&v.isiframe&&!x.hasmousecapture;v.ontouchmove=function(e,o){if(!v.rail.drag)return!1;if(e.targetTouches&&v.opt.preventmultitouchscrolling&&e.targetTouches.length>1)return!1;if(e.pointerType&&2!=e.pointerType&&"touch"!=e.pointerType)return!1;if(2==v.rail.drag.pt){if(x.cantouch&&x.isios&&"undefined"==typeof e.original)return!0;v.hasmoving=!0,v.preventclick&&!v.preventclick.click&&(v.preventclick.click=v.preventclick.tg.onclick||!1,v.preventclick.tg.onclick=v.onpreventclick);var t=a.extend({original:e},e);if(e=t,"changedTouches"in e&&(e.clientX=e.changedTouches[0].clientX,e.clientY=e.changedTouches[0].clientY),v.forcescreen){var r=e;e={original:e.original?e.original:e},e.clientX=r.screenX,e.clientY=r.screenY}var i,n;if(n=i=0,z&&!o){var s=v.win.position();n=-s.left,i=-s.top}var l=e.clientY+i,c=l-v.rail.drag.y,d=e.clientX+n,u=d-v.rail.drag.x,h=v.rail.drag.st-c;v.ishwscroll&&v.opt.bouncescroll?0>h?h=Math.round(h/2):h>v.page.maxh&&(h=v.page.maxh+Math.round((h-v.page.maxh)/2)):(0>h&&(h=0,l=0),h>v.page.maxh&&(h=v.page.maxh,l=0));var p;v.railh&&v.railh.scrollable&&(p=v.isrtlmode?u-v.rail.drag.sl:v.rail.drag.sl-u,v.ishwscroll&&v.opt.bouncescroll?0>p?p=Math.round(p/2):p>v.page.maxw&&(p=v.page.maxw+Math.round((p-v.page.maxw)/2)):(0>p&&(p=0,d=0),p>v.page.maxw&&(p=v.page.maxw,d=0)));var m=!1;if(v.rail.drag.dl)m=!0,"v"==v.rail.drag.dl?p=v.rail.drag.sl:"h"==v.rail.drag.dl&&(h=v.rail.drag.st);else{var f=Math.abs(c),g=Math.abs(u),w=v.opt.directionlockdeadzone;if('v"==v.rail.drag.ck){if(f>w&&.3*f>=g)return v.rail.drag=!1,!0;g>w&&(v.rail.drag.dl="f",a('body').scrollTop(a('body').scrollTop()))}else if('h"==v.rail.drag.ck){if(g>w&&.3*g>=f)return v.rail.drag=!1,!0;f>w&&(v.rail.drag.dl="f",a('body').scrollLeft(a('body').scrollLeft()))}}if(v.synched('touchmove",function(){v.rail.drag&&2==v.rail.drag.pt&&(v.prepareTransition&&v.prepareTransition(0),v.rail.scrollable&&v.setScrollTop(h),v.scrollmom.update(d,l),v.railh&&v.railh.scrollable?(v.setScrollLeft(p),v.showCursor(h,p)):v.showCursor(h),x.isie10&&document.selection.clear())}),x.ischrome&&v.istouchcapable&&(m=!1),m)return v.cancelEvent(e)}else if(1==v.rail.drag.pt)return v.onmousemove(e)}}if(v.onmousedown=function(e,o){if(!v.rail.drag||1==v.rail.drag.pt){if(v.railslocked)return v.cancelEvent(e);v.cancelScroll(),v.rail.drag={x:e.clientX,y:e.clientY,sx:v.scroll.x,sy:v.scroll.y,pt:1,hr:!!o};var t=v.getTarget(e);return!v.ispage&&x.hasmousecapture&&t.setCapture(),v.isiframe&&!x.hasmousecapture&&(v.saved.csspointerevents=v.doc.css('pointer-events'),v.css(v.doc,{"pointer-events":"none"})),v.hasmoving=!1,v.cancelEvent(e)}},v.onmouseup=function(e){return v.rail.drag?1!=v.rail.drag.pt?!0:(x.hasmousecapture&&document.releaseCapture(),v.isiframe&&!x.hasmousecapture&&v.doc.css('pointer-events",v.saved.csspointerevents),v.rail.drag=!1,v.hasmoving&&v.triggerScrollEnd(),v.cancelEvent(e)):void 0},v.onmousemove=function(e){if(v.rail.drag){if(1!=v.rail.drag.pt)return;if(x.ischrome&&0==e.which)return v.onmouseup(e);if(v.cursorfreezed=!0,v.hasmoving=!0,v.rail.drag.hr){v.scroll.x=v.rail.drag.sx+(e.clientX-v.rail.drag.x),v.scroll.xo&&(v.scroll.x=o)}else{v.scroll.y=v.rail.drag.sy+(e.clientY-v.rail.drag.y),v.scroll.yt&&(v.scroll.y=t)}return v.synched('mousemove",function(){v.rail.drag&&1==v.rail.drag.pt&&(v.showCursor(),v.rail.drag.hr?v.hasreversehr?v.doScrollLeft(v.scrollvaluemaxw-Math.round(v.scroll.x*v.scrollratio.x),v.opt.cursordragspeed):v.doScrollLeft(Math.round(v.scroll.x*v.scrollratio.x),v.opt.cursordragspeed):v.doScrollTop(Math.round(v.scroll.y*v.scrollratio.y),v.opt.cursordragspeed))}),v.cancelEvent(e)}v.checkarea=0},x.cantouch||v.opt.touchbehavior)v.onpreventclick=function(e){return v.preventclick?(v.preventclick.tg.onclick=v.preventclick.click,v.preventclick=!1,v.cancelEvent(e)):void 0},v.bind(v.win,"mousedown",v.ontouchstart),v.onclick=x.isios?!1:function(e){return v.lastmouseup?(v.lastmouseup=!1,v.cancelEvent(e)):!0},v.opt.grabcursorenabled&&x.cursorgrabvalue&&(v.css(v.ispage?v.doc:v.win,{cursor:x.cursorgrabvalue}),v.css(v.rail,{cursor:x.cursorgrabvalue}));else{var T=function(e){if(v.selectiondrag){if(e){var o=v.win.outerHeight(),t=e.pageY-v.selectiondrag.top;t>0&&o>t&&(t=0),t>=o&&(t-=o),v.selectiondrag.df=t}if(0!=v.selectiondrag.df){var r=2*-Math.floor(v.selectiondrag.df/6);v.doScrollBy(r),v.debounced('doselectionscroll",function(){T()},50)}}};"getSelection"in document?v.hasTextSelected=function(){return document.getSelection().rangeCount>0}:"selection"in document?v.hasTextSelected=function(){return"None"!=document.selection.type}:v.hasTextSelected=function(){return!1},v.onselectionstart=function(e){v.ispage||(v.selectiondrag=v.win.offset())},v.onselectionend=function(e){v.selectiondrag=!1},v.onselectiondrag=function(e){v.selectiondrag&&v.hasTextSelected()&&v.debounced('selectionscroll",function(){T(e)},250)}}x.hasw3ctouch?(v.css(v.rail,{"touch-action":"none"}),v.css(v.cursor,{"touch-action":"none"}),v.bind(v.win,"pointerdown",v.ontouchstart),v.bind(document,"pointerup",v.ontouchend),v.bind(document,"pointermove",v.ontouchmove)):x.hasmstouch?(v.css(v.rail,{"-ms-touch-action":"none"}),v.css(v.cursor,{"-ms-touch-action":"none"}),v.bind(v.win,"MSPointerDown",v.ontouchstart),v.bind(document,"MSPointerUp",v.ontouchend),v.bind(document,"MSPointerMove",v.ontouchmove),v.bind(v.cursor,"MSGestureHold",function(e){e.preventDefault()}),v.bind(v.cursor,"contextmenu",function(e){e.preventDefault()})):this.istouchcapable&&(v.bind(v.win,"touchstart",v.ontouchstart),v.bind(document,"touchend",v.ontouchend),v.bind(document,"touchcancel",v.ontouchend),v.bind(document,"touchmove",v.ontouchmove)),(v.opt.cursordragontouch||!x.cantouch&&!v.opt.touchbehavior)&&(v.rail.css({cursor:"default"}),v.railh&&v.railh.css({cursor:"default"}),v.jqbind(v.rail,"mouseenter",function(){return v.ispage||v.win.is(':visible')?(v.canshowonmouseevent&&v.showCursor(),void(v.rail.active=!0)):!1}),v.jqbind(v.rail,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}),v.opt.sensitiverail&&(v.bind(v.rail,"click",function(e){v.doRailClick(e,!1,!1)}),v.bind(v.rail,"dblclick",function(e){v.doRailClick(e,!0,!1)}),v.bind(v.cursor,"click",function(e){v.cancelEvent(e)}),v.bind(v.cursor,"dblclick",function(e){v.cancelEvent(e)})),v.railh&&(v.jqbind(v.railh,"mouseenter",function(){return v.ispage||v.win.is(':visible')?(v.canshowonmouseevent&&v.showCursor(),void(v.rail.active=!0)):!1}),v.jqbind(v.railh,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}),v.opt.sensitiverail&&(v.bind(v.railh,"click",function(e){v.doRailClick(e,!1,!0)}),v.bind(v.railh,"dblclick",function(e){v.doRailClick(e,!0,!0)}),v.bind(v.cursorh,"click",function(e){v.cancelEvent(e)}),v.bind(v.cursorh,"dblclick",function(e){v.cancelEvent(e)})))),x.cantouch||v.opt.touchbehavior?(v.bind(x.hasmousecapture?v.win:document,"mouseup",v.ontouchend),v.bind(document,"mousemove",v.ontouchmove),v.onclick&&v.bind(document,"click",v.onclick),v.opt.cursordragontouch&&(v.bind(v.cursor,"mousedown",v.onmousedown),v.bind(v.cursor,"mouseup",v.onmouseup),v.cursorh&&v.bind(v.cursorh,"mousedown",function(e){v.onmousedown(e,!0)}),v.cursorh&&v.bind(v.cursorh,"mouseup",v.onmouseup))):(v.bind(x.hasmousecapture?v.win:document,"mouseup",v.onmouseup),v.bind(document,"mousemove",v.onmousemove),v.onclick&&v.bind(document,"click",v.onclick),v.bind(v.cursor,"mousedown",v.onmousedown),v.bind(v.cursor,"mouseup",v.onmouseup),v.railh&&(v.bind(v.cursorh,"mousedown",function(e){v.onmousedown(e,!0)}),v.bind(v.cursorh,"mouseup",v.onmouseup)),!v.ispage&&v.opt.enablescrollonselection&&(v.bind(v.win[0],"mousedown",v.onselectionstart),v.bind(document,"mouseup",v.onselectionend),v.bind(v.cursor,"mouseup",v.onselectionend),v.cursorh&&v.bind(v.cursorh,"mouseup",v.onselectionend),v.bind(document,"mousemove",v.onselectiondrag)),v.zoom&&(v.jqbind(v.zoom,"mouseenter",function(){v.canshowonmouseevent&&v.showCursor(),v.rail.active=!0}),v.jqbind(v.zoom,"mouseleave",function(){v.rail.active=!1,v.rail.drag||v.hideCursor()}))),v.opt.enablemousewheel&&(v.isiframe||v.bind(x.isie&&v.ispage?document:v.win,"mousewheel",v.onmousewheel),v.bind(v.rail,"mousewheel",v.onmousewheel),v.railh&&v.bind(v.railh,"mousewheel",v.onmousewheelhr)),v.ispage||x.cantouch||/HTML|^BODY/.test(v.win[0].nodeName)||(v.win.attr('tabindex')||v.win.attr({tabindex:n++}),v.jqbind(v.win,"focus",function(e){r=v.getTarget(e).id||!0,v.hasfocus=!0,v.canshowonmouseevent&&v.noticeCursor()}),v.jqbind(v.win,"blur",function(e){r=!1,v.hasfocus=!1}),v.jqbind(v.win,"mouseenter",function(e){i=v.getTarget(e).id||!0,v.hasmousefocus=!0,v.canshowonmouseevent&&v.noticeCursor()}),v.jqbind(v.win,"mouseleave",function(){i=!1,v.hasmousefocus=!1,v.rail.drag||v.hideCursor()}))}if(v.onkeypress=function(e){if(v.railslocked&&0==v.page.maxh)return!0;e=e?e:window.e;var o=v.getTarget(e);if(o&&/INPUT|TEXTAREA|SELECT|OPTION/.test(o.nodeName)){var t=o.getAttribute('type')||o.type||!1;if(!t||!/submit|button|cancel/i.tp)return!0}if(a(o).attr('contenteditable'))return!0;if(v.hasfocus||v.hasmousefocus&&!r||v.ispage&&!r&&!i){var n=e.keyCode;if(v.railslocked&&27!=n)return v.cancelEvent(e);var s=e.ctrlKey||!1,l=e.shiftKey||!1,c=!1;switch(n){case 38:case 63233:v.doScrollBy(72),c=!0;break;case 40:case 63235:v.doScrollBy(-72),c=!0;break;case 37:case 63232:v.railh&&(s?v.doScrollLeft(0):v.doScrollLeftBy(72),c=!0);break;case 39:case 63234:v.railh&&(s?v.doScrollLeft(v.page.maxw):v.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:v.doScrollBy(v.view.h),c=!0;break;case 34:case 63277:v.doScrollBy(-v.view.h),c=!0;break;case 36:case 63273:v.railh&&s?v.doScrollPos(0,0):v.doScrollTo(0),c=!0;break;case 35:case 63275:v.railh&&s?v.doScrollPos(v.page.maxw,v.page.maxh):v.doScrollTo(v.page.maxh),c=!0;break;case 32:v.opt.spacebarenabled&&(l?v.doScrollBy(v.view.h):v.doScrollBy(-v.view.h),c=!0);break;case 27:v.zoomactive&&(v.doZoom(),c=!0)}if(c)return v.cancelEvent(e)}},v.opt.enablekeyboard&&v.bind(document,x.isopera&&!x.isopera12?"keypress":"keydown",v.onkeypress),v.bind(document,"keydown",function(e){var o=e.ctrlKey||!1;o&&(v.wheelprevented=!0)}),v.bind(document,"keyup",function(e){var o=e.ctrlKey||!1;o||(v.wheelprevented=!1)}),v.bind(window,"blur",function(e){v.wheelprevented=!1}),v.bind(window,"resize",v.lazyResize),v.bind(window,"orientationchange",v.lazyResize),v.bind(window,"load",v.lazyResize),x.ischrome&&!v.ispage&&!v.haswrapper){var k=v.win.attr('style'),M=parseFloat(v.win.css('width'))+1;v.win.css('width",M),v.synched('chromefix",function(){v.win.attr('style",k)})}v.onAttributeChange=function(e){v.lazyResize(v.isieold?250:30)},m!==!1&&(v.observerbody=new m(function(e){return e.forEach(function(e){return"attributes"==e.type?a('body').hasClass('modal-open')&&!a.contains(a('.modal-dialog')[0],v.doc[0])?v.hide():v.show():void 0}),document.body.scrollHeight!=v.page.maxh?v.lazyResize(30):void 0}),v.observerbody.observe(document.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),v.ispage||v.haswrapper||(m!==!1?(v.observer=new m(function(e){e.forEach(v.onAttributeChange)}),v.observer.observe(v.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),v.observerremover=new m(function(e){e.forEach(function(e){if(e.removedNodes.length>0)for(var o in e.removedNodes)if(v&&e.removedNodes[o]==v.win[0])return v.remove()})}),v.observerremover.observe(v.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(v.bind(v.win,x.isie&&!x.isie9?"propertychange":"DOMAttrModified",v.onAttributeChange),x.isie9&&v.win[0].attachEvent('onpropertychange",v.onAttributeChange),v.bind(v.win,"DOMNodeRemoved",function(e){e.target==v.win[0]&&v.remove()}))),!v.ispage&&v.opt.boxzoom&&v.bind(window,"resize",v.resizeZoom),v.istextarea&&(v.bind(v.win,"keydown",v.lazyResize),v.bind(v.win,"mouseup",v.lazyResize)),v.lazyResize(30)}if('IFRAME"==this.doc[0].nodeName){var E=function(){v.iframexd=!1;var e;try{e="contentDocument"in this?this.contentDocument:this.contentWindow.document;e.domain}catch(o){v.iframexd=!0,e=!1}if(v.iframexd)return"console"in window&&console.log('NiceScroll error: policy restriced iframe'),!0;if(v.forcescreen=!0,v.isiframe&&(v.iframe={doc:a(e),html:v.doc.contents().find('html')[0],body:v.doc.contents().find('body')[0]},v.getContentSize=function(){return{w:Math.max(v.iframe.html.scrollWidth,v.iframe.body.scrollWidth),h:Math.max(v.iframe.html.scrollHeight,v.iframe.body.scrollHeight)}},v.docscroll=a(v.iframe.body)),!x.isios&&v.opt.iframeautoresize&&!v.isiframe){v.win.scrollTop(0),v.doc.height('');var t=Math.max(e.getElementsByTagName('html')[0].scrollHeight,e.body.scrollHeight);v.doc.height(t)}v.lazyResize(30),x.isie7&&v.css(a(v.iframe.html),{"overflow-y":"hidden"}),v.css(a(v.iframe.body),{"overflow-y":"hidden"}),x.isios&&v.haswrapper&&v.css(a(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?v.bind(this.contentWindow,"scroll",v.onscroll):v.bind(e,"scroll",v.onscroll),v.opt.enablemousewheel&&v.bind(e,"mousewheel",v.onmousewheel),v.opt.enablekeyboard&&v.bind(e,x.isopera?"keypress":"keydown",v.onkeypress),(x.cantouch||v.opt.touchbehavior)&&(v.bind(e,"mousedown",v.ontouchstart),v.bind(e,"mousemove",function(e){return v.ontouchmove(e,!0)}),v.opt.grabcursorenabled&&x.cursorgrabvalue&&v.css(a(e.body),{cursor:x.cursorgrabvalue})),v.bind(e,"mouseup",v.ontouchend),v.zoom&&(v.opt.dblclickzoom&&v.bind(e,"dblclick",v.doZoom),v.ongesturezoom&&v.bind(e,"gestureend",v.ongesturezoom))};this.doc[0].readyState&&"complete"==this.doc[0].readyState&&setTimeout(function(){E.call(v.doc[0],!1)},500),v.bind(this.doc,"load",E)}},this.showCursor=function(e,o){if(v.cursortimeout&&(clearTimeout(v.cursortimeout),v.cursortimeout=0),v.rail){if(v.autohidedom&&(v.autohidedom.stop().css({opacity:v.opt.cursoropacitymax}),v.cursoractive=!0),v.rail.drag&&1==v.rail.drag.pt||('undefined"!=typeof e&&e!==!1&&(v.scroll.y=Math.round(1*e/v.scrollratio.y)),"undefined"!=typeof o&&(v.scroll.x=Math.round(1*o/v.scrollratio.x))),v.cursor.css({height:v.cursorheight,top:v.scroll.y}),v.cursorh){var t=v.hasreversehr?v.scrollvaluemaxw-v.scroll.x:v.scroll.x;!v.rail.align&&v.rail.visibility?v.cursorh.css({width:v.cursorwidth,left:t+v.rail.width}):v.cursorh.css({width:v.cursorwidth,left:t}),v.cursoractive=!0}v.zoom&&v.zoom.stop().css({opacity:v.opt.cursoropacitymax})}},this.hideCursor=function(e){v.cursortimeout||v.rail&&v.autohidedom&&(v.hasmousefocus&&"leave"==v.opt.autohidemode||(v.cursortimeout=setTimeout(function(){v.rail.active&&v.showonmouseevent||(v.autohidedom.stop().animate({opacity:v.opt.cursoropacitymin}),v.zoom&&v.zoom.stop().animate({opacity:v.opt.cursoropacitymin}),v.cursoractive=!1),v.cursortimeout=0},e||v.opt.hidecursordelay)))},this.noticeCursor=function(e,o,t){v.showCursor(o,t),v.rail.active||v.hideCursor(e)},this.getContentSize=v.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:v.haswrapper?function(){return{w:v.doc.outerWidth()+parseInt(v.win.css('paddingLeft'))+parseInt(v.win.css('paddingRight')),h:v.doc.outerHeight()+parseInt(v.win.css('paddingTop'))+parseInt(v.win.css('paddingBottom'))}}:function(){return{w:v.docscroll[0].scrollWidth,h:v.docscroll[0].scrollHeight}},this.onResize=function(e,o){if(!v||!v.win)return!1;if(!v.haswrapper&&!v.ispage){if('none"==v.win.css('display'))return v.visibility&&v.hideRail().hideRailHr(),!1;v.hidden||v.visibility||v.showRail().showRailHr()}var t=v.page.maxh,r=v.page.maxw,i={h:v.view.h,w:v.view.w};if(v.view={w:v.ispage?v.win.width():parseInt(v.win[0].clientWidth),h:v.ispage?v.win.height():parseInt(v.win[0].clientHeight)},v.page=o?o:v.getContentSize(),v.page.maxh=Math.max(0,v.page.h-v.view.h),v.page.maxw=Math.max(0,v.page.w-v.view.w),v.page.maxh==t&&v.page.maxw==r&&v.view.w==i.w&&v.view.h==i.h){if(v.ispage)return v;var n=v.win.offset();if(v.lastposition){var s=v.lastposition;if(s.top==n.top&&s.left==n.left)return v}v.lastposition=n}if(0==v.page.maxh?(v.hideRail(),v.scrollvaluemax=0,v.scroll.y=0,v.scrollratio.y=0,v.cursorheight=0,v.setScrollTop(0),v.rail&&(v.rail.scrollable=!1)):(v.page.maxh-=v.opt.railpadding.top+v.opt.railpadding.bottom,v.rail.scrollable=!0),0==v.page.maxw?(v.hideRailHr(),v.scrollvaluemaxw=0,v.scroll.x=0,v.scrollratio.x=0,v.cursorwidth=0,v.setScrollLeft(0),v.railh&&(v.railh.scrollable=!1)):(v.page.maxw-=v.opt.railpadding.left+v.opt.railpadding.right,v.railh&&(v.railh.scrollable=v.opt.horizrailenabled)),v.railslocked=v.locked||0==v.page.maxh&&0==v.page.maxw,v.railslocked)return v.ispage||v.updateScrollBar(v.view),!1;v.hidden||v.visibility?!v.railh||v.hidden||v.railh.visibility||v.showRailHr():v.showRail().showRailHr(),v.istextarea&&v.win.css('resize')&&"none"!=v.win.css('resize')&&(v.view.h-=20),v.cursorheight=Math.min(v.view.h,Math.round(v.view.h*(v.view.h/v.page.h))),v.cursorheight=v.opt.cursorfixedheight?v.opt.cursorfixedheight:Math.max(v.opt.cursorminheight,v.cursorheight),v.cursorwidth=Math.min(v.view.w,Math.round(v.view.w*(v.view.w/v.page.w))),v.cursorwidth=v.opt.cursorfixedheight?v.opt.cursorfixedheight:Math.max(v.opt.cursorminheight,v.cursorwidth),v.scrollvaluemax=v.view.h-v.cursorheight-v.cursor.hborder-(v.opt.railpadding.top+v.opt.railpadding.bottom),v.railh&&(v.railh.width=v.page.maxh>0?v.view.w-v.rail.width:v.view.w,v.scrollvaluemaxw=v.railh.width-v.cursorwidth-v.cursorh.wborder-(v.opt.railpadding.left+v.opt.railpadding.right)),v.ispage||v.updateScrollBar(v.view),v.scrollratio={x:v.page.maxw/v.scrollvaluemaxw,y:v.page.maxh/v.scrollvaluemax};var l=v.getScrollTop();return l>v.page.maxh?v.doScrollTop(v.page.maxh):(v.scroll.y=Math.round(v.getScrollTop()*(1/v.scrollratio.y)),v.scroll.x=Math.round(v.getScrollLeft()*(1/v.scrollratio.x)),v.cursoractive&&v.noticeCursor()),v.scroll.y&&0==v.getScrollTop()&&v.doScrollTo(Math.floor(v.scroll.y*v.scrollratio.y)),v},this.resize=v.onResize,this.lazyResize=function(e){return e=isNaN(e)?30:e,v.debounced('resize",v.resize,e),v},this.jqbind=function(e,o,t){v.events.push({e:e,n:o,f:t,q:!0}),a(e).bind(o,t)},this.bind=function(e,o,t,r){var i="jquery"in e?e[0]:e;if('mousewheel"==o)if('onwheel"in v.win)v._bind(i,"wheel",t,r||!1);else{var n="undefined"!=typeof document.onmousewheel?"mousewheel":"DOMMouseScroll";p(i,n,t,r||!1),"DOMMouseScroll"==n&&p(i,"MozMousePixelScroll",t,r||!1)}else if(i.addEventListener){if(x.cantouch&&/mouseup|mousedown|mousemove/.test(o)){var s="mousedown"==o?"touchstart":"mouseup"==o?"touchend":"touchmove";v._bind(i,s,function(e){if(e.touches){if(e.touches.length0)return t;o=o.parentNode?o.parentNode:!1}return!1},this.triggerScrollEnd=function(){if(v.onscrollend){var e=v.getScrollLeft(),o=v.getScrollTop(),t={type:"scrollend",current:{x:e,y:o},end:{x:e,y:o}};v.onscrollend.call(v,t)}},this.onmousewheel=function(e){if(!v.wheelprevented){if(v.railslocked)return v.debounced('checkunlock",v.resize,250),!0;if(v.rail.drag)return v.cancelEvent(e);if('auto"==v.opt.oneaxismousemode&&0!=e.deltaX&&(v.opt.oneaxismousemode=!1),v.opt.oneaxismousemode&&0==e.deltaX&&!v.rail.scrollable)return v.railh&&v.railh.scrollable?v.onmousewheelhr(e):!0;var o=+new Date,t=!1;if(v.opt.preservenativescrolling&&v.checkarea+600o?o=0:o>v.page.maxh&&(o=v.page.maxh),0>e?e=0:e>v.page.maxw&&(e=v.page.maxw)),v.scrollrunning&&e==v.newscrollx&&o==v.newscrolly?!1:(v.newscrolly=o,v.newscrollx=e,v.newscrollspeed=t||!1,v.timer?!1:void(v.timer=setTimeout(function(){var t=v.getScrollTop(),r=v.getScrollLeft(),i={};i.x=e-r,i.y=o-t,i.px=r,i.py=t;var n=Math.round(Math.sqrt(Math.pow(i.x,2)+Math.pow(i.y,2))),s=v.newscrollspeed&&v.newscrollspeed>1?v.newscrollspeed:v.getTransitionSpeed(n);if(v.newscrollspeed&&v.newscrollspeed0){if(!v.scrollrunning&&v.onscrollstart){var l={type:"scrollstart",current:{x:r,y:t},request:{x:e,y:o},end:{x:v.newscrollx,y:v.newscrolly},speed:s};v.onscrollstart.call(v,l)}x.transitionend?v.scrollendtrapped||(v.scrollendtrapped=!0,v.bind(v.doc,x.transitionend,v.onScrollTransitionEnd,!1)):(v.scrollendtrapped&&clearTimeout(v.scrollendtrapped),v.scrollendtrapped=setTimeout(v.onScrollTransitionEnd,s));var a=t,c=r;v.timerscroll={bz:new z(a,v.newscrolly,s,0,0,.58,1),bh:new z(c,v.newscrollx,s,0,0,.58,1)},v.cursorfreezed||(v.timerscroll.tm=setInterval(function(){v.showCursor(v.getScrollTop(),v.getScrollLeft())},60))}v.synched('doScroll-set",function(){v.timer=0,v.scrollendtrapped&&(v.scrollrunning=!0),v.setScrollTop(v.newscrolly),v.setScrollLeft(v.newscrollx),v.scrollendtrapped||v.onScrollTransitionEnd()})},50)))},this.cancelScroll=function(){if(!v.scrollendtrapped)return!0;var e=v.getScrollTop(),o=v.getScrollLeft();return v.scrollrunning=!1,x.transitionend||clearTimeout(x.transitionend),v.scrollendtrapped=!1,v._unbind(v.doc[0],x.transitionend,v.onScrollTransitionEnd),v.prepareTransition(0),v.setScrollTop(e),v.railh&&v.setScrollLeft(o),v.timerscroll&&v.timerscroll.tm&&clearInterval(v.timerscroll.tm),v.timerscroll=!1,v.cursorfreezed=!1,v.showCursor(e,o),v},this.onScrollTransitionEnd=function(){v.scrollendtrapped&&v._unbind(v.doc[0],x.transitionend,v.onScrollTransitionEnd),v.scrollendtrapped=!1,v.prepareTransition(0),v.timerscroll&&v.timerscroll.tm&&clearInterval(v.timerscroll.tm),v.timerscroll=!1;var e=v.getScrollTop(),o=v.getScrollLeft();return v.setScrollTop(e),v.railh&&v.setScrollLeft(o),v.noticeCursor(!1,e,o),v.cursorfreezed=!1,0>e?e=0:e>v.page.maxh&&(e=v.page.maxh),0>o?o=0:o>v.page.maxw&&(o=v.page.maxw),e!=v.newscrolly||o!=v.newscrollx?v.doScrollPos(o,e,v.opt.snapbackspeed):(v.onscrollend&&v.scrollrunning&&v.triggerScrollEnd(),void(v.scrollrunning=!1))}):(this.doScrollLeft=function(e,o){var t=v.scrollrunning?v.newscrolly:v.getScrollTop();v.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=v.scrollrunning?v.newscrollx:v.getScrollLeft();v.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){function r(){if(v.cancelAnimationFrame)return!0;if(v.scrollrunning=!0,h=1-h)return v.timer=d(r)||1;var e,o,t=0,i=o=v.getScrollTop();if(v.dst.ay){i=v.bzscroll?v.dst.py+v.bzscroll.getNow()*v.dst.ay:v.newscrolly;var n=i-o;(0>n&&i0&&i>v.newscrolly)&&(i=v.newscrolly),v.setScrollTop(i),i==v.newscrolly&&(t=1)}else t=1;var s=e=v.getScrollLeft();if(v.dst.ax){s=v.bzscroll?v.dst.px+v.bzscroll.getNow()*v.dst.ax:v.newscrollx;var n=s-e;(0>n&&s0&&s>v.newscrollx)&&(s=v.newscrollx),v.setScrollLeft(s),s==v.newscrollx&&(t+=1)}else t+=1;2==t?(v.timer=0,v.cursorfreezed=!1,v.bzscroll=!1,v.scrollrunning=!1,0>i?i=0:i>v.page.maxh&&(i=v.page.maxh),0>s?s=0:s>v.page.maxw&&(s=v.page.maxw),s!=v.newscrollx||i!=v.newscrolly?v.doScrollPos(s,i):v.onscrollend&&v.triggerScrollEnd()):v.timer=d(r)||1}var o="undefined"==typeof o||o===!1?v.getScrollTop(!0):o;if(v.timer&&v.newscrolly==o&&v.newscrollx==e)return!0;v.timer&&u(v.timer),v.timer=0;var i=v.getScrollTop(),n=v.getScrollLeft();((v.newscrolly-i)*(o-i)v.page.maxh&&(v.newscrolly=v.page.maxh)),v.bouncescroll&&v.railh.visibility||(v.newscrollxv.page.maxw&&(v.newscrollx=v.page.maxw)),v.dst={},v.dst.x=e-n,v.dst.y=o-i,v.dst.px=n,v.dst.py=i;var s=Math.round(Math.sqrt(Math.pow(v.dst.x,2)+Math.pow(v.dst.y,2)));v.dst.ax=v.dst.x/s,v.dst.ay=v.dst.y/s;var l=0,a=s;0==v.dst.x?(l=i,a=o,v.dst.ay=1,v.dst.py=0):0==v.dst.y&&(l=n,a=e,v.dst.ax=1,v.dst.px=0);var c=v.getTransitionSpeed(s);if(t&&1>=t&&(c*=t),c>0?v.bzscroll=v.bzscroll?v.bzscroll.update(a,c):new z(l,a,c,0,1,0,1):v.bzscroll=!1,!v.timer){(i==v.page.maxh&&o>=v.page.maxh||n==v.page.maxw&&e>=v.page.maxw)&&v.checkContentSize();var h=1;if(v.cancelAnimationFrame=!1,v.timer=1,v.onscrollstart&&!v.scrollrunning){var p={type:"scrollstart",current:{x:n,y:i},request:{x:e,y:o},end:{x:v.newscrollx,y:v.newscrolly},speed:c};v.onscrollstart.call(v,p)}r(),(i==v.page.maxh&&o>=i||n==v.page.maxw&&e>=n)&&v.checkContentSize(),v.noticeCursor()}},this.cancelScroll=function(){return v.timer&&u(v.timer),v.timer=0,v.bzscroll=!1,v.scrollrunning=!1,v}):(this.doScrollLeft=function(e,o){var t=v.getScrollTop();v.doScrollPos(e,t,o)},this.doScrollTop=function(e,o){var t=v.getScrollLeft();v.doScrollPos(t,e,o)},this.doScrollPos=function(e,o,t){var r=e>v.page.maxw?v.page.maxw:e;0>r&&(r=0);var i=o>v.page.maxh?v.page.maxh:o;0>i&&(i=0),v.synched('scroll",function(){v.setScrollTop(i),v.setScrollLeft(r)})},this.cancelScroll=function(){}),this.doScrollBy=function(e,o){var t=0;if(o)t=Math.floor((v.scroll.y-e)*v.scrollratio.y);else{var r=v.timer?v.newscrolly:v.getScrollTop(!0);t=r-e}if(v.bouncescroll){var i=Math.round(v.view.h/2);-i>t?t=-i:t>v.page.maxh+i&&(t=v.page.maxh+i)}v.cursorfreezed=!1;var n=v.getScrollTop(!0);return 0>t&&0>=n?v.noticeCursor():t>v.page.maxh&&n>=v.page.maxh?(v.checkContentSize(),v.noticeCursor()):void v.doScrollTop(t)},this.doScrollLeftBy=function(e,o){var t=0;if(o)t=Math.floor((v.scroll.x-e)*v.scrollratio.x);else{var r=v.timer?v.newscrollx:v.getScrollLeft(!0);t=r-e}if(v.bouncescroll){var i=Math.round(v.view.w/2);-i>t?t=-i:t>v.page.maxw+i&&(t=v.page.maxw+i)}v.cursorfreezed=!1;var n=v.getScrollLeft(!0);return 0>t&&0>=n?v.noticeCursor():t>v.page.maxw&&n>=v.page.maxw?v.noticeCursor():void v.doScrollLeft(t)},this.doScrollTo=function(e,o){var t=o?Math.round(e*v.scrollratio.y):e;0>t?t=0:t>v.page.maxh&&(t=v.page.maxh),v.cursorfreezed=!1,v.doScrollTop(e)},this.checkContentSize=function(){var e=v.getContentSize();(e.h!=v.page.h||e.w!=v.page.w)&&v.resize(!1,e)},v.onscroll=function(e){v.rail.drag||v.cursorfreezed||v.synched('scroll",function(){v.scroll.y=Math.round(v.getScrollTop()*(1/v.scrollratio.y)),v.railh&&(v.scroll.x=Math.round(v.getScrollLeft()*(1/v.scrollratio.x))),v.noticeCursor()})},v.bind(v.docscroll,"scroll",v.onscroll),this.doZoomIn=function(e){if(!v.zoomactive){v.zoomactive=!0,v.zoomrestore={style:{}};var o=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],t=v.win[0].style;for(var r in o){var i=o[r];v.zoomrestore.style[i]="undefined"!=typeof t[i]?t[i]:""}v.zoomrestore.style.width=v.win.css('width'),v.zoomrestore.style.height=v.win.css('height'),v.zoomrestore.padding={w:v.win.outerWidth()-v.win.width(),h:v.win.outerHeight()-v.win.height()},x.isios4&&(v.zoomrestore.scrollTop=a(window).scrollTop(),a(window).scrollTop(0)),v.win.css({position:x.isios4?"absolute":"fixed",top:0,left:0,"z-index":l+100,margin:"0px"});var n=v.win.css('backgroundColor');return('"==n||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(n))&&v.win.css('backgroundColor","#fff'),v.rail.css({"z-index":l+101}),v.zoom.css({"z-index":l+102}),v.zoom.css('backgroundPosition","0px -18px'),v.resizeZoom(),v.onzoomin&&v.onzoomin.call(v),v.cancelEvent(e)}},this.doZoomOut=function(e){return v.zoomactive?(v.zoomactive=!1,v.win.css('margin","'),v.win.css(v.zoomrestore.style),x.isios4&&a(window).scrollTop(v.zoomrestore.scrollTop),v.rail.css({"z-index":v.zindex}),v.zoom.css({"z-index":v.zindex}),v.zoomrestore=!1,v.zoom.css('backgroundPosition","0px 0px'),v.onResize(),v.onzoomout&&v.onzoomout.call(v),v.cancelEvent(e)):void 0},this.doZoom=function(e){return v.zoomactive?v.doZoomOut(e):v.doZoomIn(e)},this.resizeZoom=function(){if(v.zoomactive){var e=v.getScrollTop();v.win.css({width:a(window).width()-v.zoomrestore.padding.w+'px",height:a(window).height()-v.zoomrestore.padding.h+'px"}),v.onResize(),v.setScrollTop(Math.min(v.page.maxh,e))}},this.init(),a.nicescroll.push(this)},b=function(e){var o=this;this.nc=e,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.time=function(){return+new Date},this.reset=function(e,t){o.stop();var r=o.time();o.steptime=0,o.lasttime=r,o.speedx=0,o.speedy=0,o.lastx=e,o.lasty=t,o.lastscrollx=-1,o.lastscrolly=-1},this.update=function(e,t){var r=o.time();o.steptime=r-o.lasttime,o.lasttime=r;var i=t-o.lasty,n=e-o.lastx,s=o.nc.getScrollTop(),l=o.nc.getScrollLeft(),a=s+i,c=l+n;o.snapx=0>c||c>o.nc.page.maxw,o.snapy=0>a||a>o.nc.page.maxh,o.speedx=n,o.speedy=i,o.lastx=e,o.lasty=t},this.stop=function(){o.nc.unsynched('domomentum2d'),o.timer&&clearTimeout(o.timer),o.timer=0,o.lastscrollx=-1,o.lastscrolly=-1},this.doSnapy=function(e,t){var r=!1;0>t?(t=0,r=!0):t>o.nc.page.maxh&&(t=o.nc.page.maxh,r=!0),0>e?(e=0,r=!0):e>o.nc.page.maxw&&(e=o.nc.page.maxw,r=!0),r?o.nc.doScrollPos(e,t,o.nc.opt.snapbackspeed):o.nc.triggerScrollEnd()},this.doMomentum=function(e){var t=o.time(),r=e?t+e:o.lasttime,i=o.nc.getScrollLeft(),n=o.nc.getScrollTop(),s=o.nc.page.maxh,l=o.nc.page.maxw;o.speedx=l>0?Math.min(60,o.speedx):0,o.speedy=s>0?Math.min(60,o.speedy):0;var a=r&&60>=t-r;(0>n||n>s||0>i||i>l)&&(a=!1);var c=o.speedy&&a?o.speedy:!1,d=o.speedx&&a?o.speedx:!1;if(c||d){var u=Math.max(16,o.steptime);if(u>50){var h=u/50;o.speedx*=h,o.speedy*=h,u=50}o.demulxy=0,o.lastscrollx=o.nc.getScrollLeft(),o.chkx=o.lastscrollx,o.lastscrolly=o.nc.getScrollTop(),o.chky=o.lastscrolly;var p=o.lastscrollx,m=o.lastscrolly,f=function(){var e=o.time()-t>600?.04:.02;o.speedx&&(p=Math.floor(o.lastscrollx-o.speedx*(1-o.demulxy)),o.lastscrollx=p,(0>p||p>l)&&(e=.1)),o.speedy&&(m=Math.floor(o.lastscrolly-o.speedy*(1-o.demulxy)),o.lastscrolly=m,(0>m||m>s)&&(e=.1)),o.demulxy=Math.min(1,o.demulxy+e),o.nc.synched('domomentum2d",function(){if(o.speedx){var e=o.nc.getScrollLeft();e!=o.chkx&&o.stop(),o.chkx=p,o.nc.setScrollLeft(p)}if(o.speedy){var t=o.nc.getScrollTop();t!=o.chky&&o.stop(),o.chky=m,o.nc.setScrollTop(m)}o.timer||(o.nc.hideCursor(),o.doSnapy(p,m))}),o.demulxy;t++)e.call(o[t],r++);return>||n>||n>&&(v.nativescrollingarea=v.isscrollable(e),t=!0),v.checkarea=o,v.nativescrollingarea)return!0;var>;e++){var>;s++)if('undefined"!=typeof>;r++)t(e,o[r])}var>
,h=c.triggerpoint>
,h=o.newscroll>
[script][/script]
[script][/script]
[script][/script]
[script][/script]
[script][/script]
0%

KV

Nowy
Surface Pro

Jeszcze bardziej
wszechstronny.

Przedstawiamy
Surface Laptop

Wydajność w osobistym
formacie.

Product Descrription

Poznaj nowe komputery Surface

Features and Benefits

Cechy produktów

Surface Pro
3 tryby użytkowania

Surface Pro to nie tylko laptop. Po obniżeniu podstawki przełączysz się w tryb studio, który umożliwia wygodne pisanie i rysowanie piórem Surface Pen. Po zamknięciu podstawki i odłączeniu klawiatury otrzymasz poręczny tablet

Lekki i mobilny

Niebywała smukłość (8,5 mm grubości) i lekkość (od 768 g), a także klawiatura, którą można złożyć lub odpiąć sprawiają, że Surface Pro nie zajmuje dużo miejsca w torbie czy plecaku i możesz mieć go zawsze ze sobą.

Olśniewający ekran

Wyświetlacz PixelSense™ o przekątnej 12,3” i rozdzielczości 2736 x 1824 zapewnia wspaniały kontrast i czyste kolory. Dodatkowo ekran reaguje na dotyk i pióro Surface Pen.

Procesory Intel® Core™

Urządzenie Surface Pro działa jeszcze szybciej i wydajniej dzięki procesorom Intel® Core™ 7. generacji. Wybierz konfigurację z procesorem m3, i5 lub i7 i uzyskaj moc odpowiednią dla programów i aplikacji, z których korzystasz.

Do 13,5 godziny na baterii

Z nowym Surface Pro bez problemu oderwiesz się od biurka. Bateria wystarcza nawet na 13,5 godziny odtwarzania wideo2.

Ciche chłodzenie

Modele Surface Pro m3 i i5 wyposażono w nowy system chłodzenia bez wentylatorów, a model i7 w ulepszone chłodzenie hybrydowe — możesz więc w spokoju pracować lub oglądać ulubione seriale.

Ty jesteś hasłem

Funkcja Windows Hello z technologią rozponawania twarzy umożliwia szybkie i bezpieczne logowanie bez użycia haseł.

Obsługa pióra

Szkicuj, pisz i zmazuj w całkowicie naturalny sposób na ekranie urządzenia Surface Pro. Pióro umożliwia pisanie w czasie rzeczywistym, ułatwia cieniowanie dzięki ulepszonej funkcji nachylenia i reaguje na 4096 poziomów nacisku.

Nowa klawiatura

Najnowsza klawiatura Surface Pro Signature Type Cover4 została stworzona z wykorzystaniem luksusowej tkaniny Alcantara® z Włoch, jest niezwykle elegancka i miękka w dotyku.

Surface Laptop
Klawiatura pokryta Alcantarą®

Klawiatura Laptopa została pokryta cudownie miękkim i niezwykle wytrzymałym materiałem Alcantara®. Klawiatura została specjalnie zaimpregnowana, aby była odporna na zalania, zabrudzenia i pochłanianie, a także łatwa w czyszczeniu.

Otworzysz go jedną ręką

Surface Laptop to piękno detali i łatwość użycia, dzięki którym korzystanie z komputera jest przyjemnością — przemyślana konstrukcja pozwala otworzyć laptop jedną ręką.

Przepiękne wzornictwo i wykonanie

Dzięki perfekcyjnej kombinacji faktur, drobnych detali i minimalistycznym, eleganckim kształtom Surface Laptop wygląda bardzo stylowo.

Ultracienki i lekki

Surface Laptop waży zaledwie 1,25 kg, więc bez problemu mieści się w torbie. Kompaktowa aluminiowa obudowa zapewnia najwyższą mobilność i trwałość.

Wydajność, której potrzebujesz

Surface Laptop wyposażono w procesor Intel® Core™ 7. generacji, który obsłuży nawet najbardziej wymagające programy klasyczne.

Dźwięk klasy premium

Ciesz się krystalicznie czystym dźwiękiem dzięki dyskretnie ukrytym pod klawiaturą głośnikom Omnisonic z dynamicznym, wielokierunkowym dźwiękiem i systemowi Dolby® Audio™ Premium.

Niezwykły ekran dotykowy

13,5" wyświetlacz PixelSense™ z doskonałym ekranem dotykowym zapewnia najbardziej naturalną nawigację. Wyświetlacz z bardzo cienką ramką zapewnia więcej przestrzeni do pracy.

Najlepsze funkcje systemu Windows

Laptop został zaprojektowany z myślą o systemie Windows 10 S — zoptymalizowanym pod kątem bezpieczeństwa i najwyższej wydajności.

Video

Obejrzyj wideo

Surface Pro
Surface Laptop

Compare Table

Porównaj urządzenia Surface

Procesor
Pamięć RAM
Pamięć masowa
Czas pracy baterii
Masa
Ekran
Sieć bezprzewodowa
Złącza
Głośnik
Zabezpieczenia
Czujniki
Oprogramowanie
Surface Pro
Zobacz warianty
Surface Laptop
Zobacz warianty
Intel® Core™ m3, i5 lub i7 7. generacji Intel® Core™ i5
4 GB, 8 GB albo 16 GB 4 GB, 8 GB
128 GB, 256 GB, 512 GB albo 1 TB 128 GB, 256 GB
Do 13,5 godzin odtwarzania wideo2 Do 14,5 godzin odtwarzania wideo3
Od 768 g 1252 g
Wyświetlacz PixelSense™ o przekątnej 12,3”
Ekran dotykowy
Wyświetlacz PixelSense™ o przekątnej 13,5”
Ekran dotykowy
Wi-Fi: Sieci Wi-Fi w standardzie 802.11ac; zgodność ze standardem IEEE 802.11a/b/g/n Bluetooth: Technologia bezprzewodowa Bluetooth 4.1 Wi-Fi: Sieci Wi-Fi w standardzie 802.11ac; zgodność ze standardem IEEE 802.11a/b/g/n Bluetooth: Technologia bezprzewodowa Bluetooth 4.0
Pełnowymiarowy port USB 3.0
Czytnik kart microSD™
Złącze Mini DisplayPort
Port klawiatury Type Cover
Wejście słuchawkowe
Złącze Surface Connect
Jeden pełnowymiarowy port USB 3.0
Złącze Mini DisplayPort
Wejście słuchawkowe
Złącze Surface Connect
Głośniki stereofoniczne z obsługą technologii Dolby® Audio™ Premium Głośniki Omnisonic z obsługą technologii Dolby® Audio™ Premium
Układ TPM zapewniający bezpieczeństwo w firmach Układ TPM zapewniający bezpieczeństwo w firmach
Czujnik światła otoczenia
Akcelerometr
Żyroskop
Czujnik światła otoczenia
Windows 10 Pro
30-dniowa wersja próbna pakietu Office
Windows 10 S5
Oferta początkowa: roczna subskrypcja usługi Office 365 Personal6

Accessories

Akcesoria

Surface Pro Type Cover
działa z Surface Pro
Kup teraz
Surface Pen
działa z Surface Pro i surface laptop
Kup teraz
Mysz
działa z Surface Pro i surface laptop
Kup teraz

Video

  • 1 Sprzedawane oddzielnie.
  • 2 Do 13,5 godziny odtwarzania wideo. Testy przeprowadzone przez firmę Microsoft w kwietniu 2017 roku przy użyciu przedprodukcyjnych jednostek wyposażonych w procesor Intel Core i5, 256 GB przestrzeni dyskowej i 8 GB pamięci RAM. Test polegały na pełnym rozładowaniu baterii podczas odtwarzania wideo. Wszystkie ustawienia były skonfigurowane domyślnie oprócz funkcji Wi-Fi, która była połączona z siecią, i funkcji automatycznego ustawiania jasności, która była wyłączona. Czas pracy na baterii różni się zależnie od ustawień, sposobu użycia urządzenia i innych czynników.
  • 3 Do 14 godzin odtwarzania filmów. Testy zostały przeprowadzone przez firmę Microsoft w kwietniu 2017 roku z wykorzystaniem urządzenia z procesorem Intel® Core™ i5, 256 GB przestrzeni dyskowej oraz 8 GB pamięci RAM. Testowanie polegało na całkowitym rozładowaniu baterii podczas odtwarzania filmu. Użyto ustawień domyślnych, wyjątki: nawiązano połączenie z siecią Wi-Fi. Czas pracy baterii różni się znacząco w zależności od ustawień, sposobu użytkowania i innych czynników.
  • 4 Klawiatura Signature Type Cover dostępna po 20 lipca 2017.
  • 5 Windows 10 S działa wyłącznie z aplikacjami ze Sklepu Windows zweryfikowanymi przez firmę Microsoft. Niektóre akcesoria zgodne z systemem Windows 10 mogą nie działać, a wydajność może się różnić. Niektórych domyślnych ustawień, funkcji i aplikacji nie można zmienić. W dowolnej chwili można łatwo i niedrogo przejść na system Windows 10 Pro. Oferta bezpłatnej zmiany Windows 10 S na Windows 10 Pro aktualna jest do 31 grudnia 2017. Zmiany dokonać można za pośrednictwem Sklepu Windows. Możliwa jest tylko zmiana systemu na wersję Pro. Po jej przeprowadzeniu nie będzie możliwy powrót do systemu Windows 10 S. Więcej informacji umieszczono na stronie: https://www.microsoft.com/pl-pl/windows/windows-10-s
  • 6 Zawiera ważną przez 1 rok subskrypcję pakietu Office 365 Personal. Obecnie w wersji Preview na tym urządzeniu. Oprogramowanie instalowane jest ze Sklepu Windows. Aktywacja musi nastąpić w ciągu 180 dni. Ważność oferty kończy się 30.09.2017 r.

Menu