// ==ClosureCompiler== // @output_file_name default.js // @compilation_level SIMPLE_OPTIMIZATIONS // ==/ClosureCompiler== /* * Author: Digital Zoom Studio * Website: http://digitalzoomstudio.net/ * Portfolio: http://codecanyon.net/user/ZoomIt/portfolio?ref=ZoomIt * This is not free software. * Advanced Scroller v1.44 */ (function($) { var target_swiper; $.fn.advancedscroller = function(o) { var defaults = { settings_slideshowTime: '5' //in seconds , settings_autoHeight: 'on' , design_itemwidth: '200' , design_itemheight: '200' , design_arrowsize: 'default' // -- set the left and right arrow size, this is the size of an arrow , design_bulletspos: 'default' // --- set the bullets position top, bottom or default ( set by the skin ) , design_forceitemwidth: '' ,settings_transition: 'slide' // slide or fade ,settings_direction: 'horizontal' ,settings_responsive: 'on' ,settings_mode: 'normal'//normal or onlyoneitem ,settings_swipe: "on" ,settings_swipeOnDesktopsToo: "off" ,settings_makeFunctional: true ,settings_centeritems: false ,settings_slideshow: 'off' ,settings_lazyLoading: 'off' ,settings_slideshowDontChangeOnHover: 'on' ,settings_secondCon: null } if(typeof o =='undefined'){ if(typeof $(this).attr('data-options')!='undefined'){ var aux = $(this).attr('data-options'); aux = 'var aux_opts = ' + aux; eval(aux); o = aux_opts; } } o = $.extend(defaults, o); this.each(function() { var cthis = $(this) ; var nrItems = 0; var currNr = -1; var busy = true; var i = 0 ,startIndex = 0 ; var ww , wh , tw // total width of the container and h , th , cw // clip w and h , ch , realcw // clip w and h , realch ; var items_per_page = 0 ; var _items ,_thumbsCon ,_thumbsClip ,_bulletsCon ,_arrowsCon ; var pag_total_thumbsizes = 0 ,pag_total_thumbnr = 0 // = total number of thumbnails ,pag_total_pagenr = 0 // = total number of pages ,pag_excess_thumbnr = 0 // = the excess thumbs which go ; var currPage = 0 ,currPageX = 0 ,tempPage = 0 ; //===slideshow vars var slideshowInter ,slideshowCount = 0 ,slideshowTime ; var sw_ctw = 0 ,sw_tw = 0 ; var loadedArray = [] ,lazyLoadingArray = [] ,itemsToBeArray = [] ; var inter_calculate_hard = 0; var is_over = false; var busy = false; var aux; if(String(o.design_itemwidth)!='auto' && String(o.design_itemwidth).indexOf("%")==-1){ o.design_itemwidth = parseInt(o.design_itemwidth, 10); } o.design_itemheight = parseInt(o.design_itemheight, 10); if(isNaN(Number(o.design_arrowsize))==false){ o.design_arrowsize = Number(o.design_arrowsize); } o.settings_slideshowTime = parseInt(o.settings_slideshowTime, 10); o.design_forceitemwidth = parseInt(o.design_forceitemwidth, 10); slideshowTime = o.settings_slideshowTime; //console.info(cthis, o.design_forceitemwidth>0); init(); document.addEventListener("fullscreenchange", handle_fs, false); document.addEventListener("webkitfullscreenchange", handle_fs, false); document.addEventListener("mozfullscreenchange", handle_fs, false); function handle_fs(e){ var fs = window.fullScreenApi.isFullScreen(); if (fs) { } else { setTimeout(function(){ handleResize(); },100); } } function init(){ if(cthis.hasClass('inited')){ return; } th = cthis.outerHeight(false); if(cthis.attr('class').indexOf("skin-")==-1){ cthis.addClass(o.settings_skin); } if(cthis.hasClass('skin-default')){ o.settings_skin = 'skin-default'; } if(cthis.hasClass('skin-inset')){ o.settings_skin = 'skin-inset'; } if(cthis.hasClass('skin-agata-inset')){ o.settings_skin = 'skin-inset'; o.design_arrowsize = 0; } if(cthis.hasClass('skin-black')){ o.settings_skin = 'skin-black'; skin_tableWidth = 192; skin_normalHeight = 158; } if(cthis.hasClass('skin-regen')){ o.settings_skin = 'skin-black'; if(o.design_arrowsize=='default'){ o.design_arrowsize = 0; } if(o.design_bulletspos=='default'){ o.design_bulletspos = 'none'; } } if(cthis.hasClass('skin-avanti-inset')){ o.settings_skin = 'skin-avanti-inset'; if(o.design_arrowsize=='default'){ o.design_arrowsize = 0; } if(o.design_bulletspos=='default'){ o.design_bulletspos = 'none'; } } if(cthis.hasClass('skin-bubble-inset')){ o.settings_skin = 'skin-bubble-inset'; if(o.design_arrowsize=='default'){ o.design_arrowsize = 0; } if(o.design_bulletspos=='default'){ o.design_bulletspos = 'none'; } } if(cthis.hasClass('skin-nonav')){ o.settings_skin = 'skin-nonav'; if(o.design_arrowsize=='default'){ o.design_arrowsize = 0; } if(o.design_bulletspos=='default'){ o.design_bulletspos = 'none'; } } if( !(is_ie() && version_ie<9) && (o.settings_swipeOnDesktopsToo=='on' || (o.settings_swipeOnDesktopsToo=='off'&& (is_ios() || is_android() ))) ){ o.settings_transition = 'slide'; } cthis.addClass('mode-' + o.settings_mode); cthis.addClass('transition-' + o.settings_transition); if(o.design_arrowsize=='default'){ o.design_arrowsize = 40; } if(o.design_bulletspos=='default'){ o.design_bulletspos = 'bottom'; } if(o.design_bulletspos=='top'){ cthis.append('
'); } cthis.append('
'); if(o.design_bulletspos=='bottom'){ cthis.append('
'); } cthis.append('
'); _items = cthis.children('.items').eq(0); _bulletsCon = cthis.children('.bulletsCon').eq(0); _thumbsCon = cthis.children('.thumbsCon').eq(0); _thumbsClip = cthis.find('.thumbsClip').eq(0); _arrowsCon = cthis.find('.arrowsCon').eq(0); nrItems = _items.children().length; var ind = 0; itemsToBeArray = _items.children('.item-tobe'); _items.children('.item-tobe').each(function(){ var _t = $(this); var ind2 = _t.parent().children().index(_t); //console.log(_t, _t.parent().children(), ind); aux = o.design_itemwidth; ///console.info(aux); _t.addClass('item').removeClass('item-tobe'); if(aux!='auto' && aux!='' && cthis.hasClass('mode-onlyoneitem')==false){ _t.css({ 'width' : aux }); } _thumbsClip.append(_t); if(o.settings_lazyLoading=='on'){ if(_t.find('.imagediv').length==0 && _t.find('img').length==0){ lazyLoadingArray[ind] = 'tobeloaded'; }else{ lazyLoadingArray[ind] = 'loaded'; } } loadedArray[ind]=1; ind++; }); _arrowsCon.append('
'); _arrowsCon.append('
'); //console.log(cthis.find('.needs-loading')); if(o.settings_skin=='skin-avanti-inset'){ _arrowsCon.find('.arrow-left').eq(0).append(' '); _arrowsCon.find('.arrow-right').eq(0).append(' '); } if(o.settings_skin=='skin-bubble-inset'){ _arrowsCon.find('.arrow-left').eq(0).append(' '); _arrowsCon.find('.arrow-right').eq(0).append(' '); } cthis.addClass('inited'); cthis.find('.imagediv').each(function(){ var _t = $(this); // console.info(_t, _t.parent().hasClass('item')); if(_t.parent().hasClass('item')){ if(_t[0].style.height=='' || _t[0].style.height=='auto'){ _t.parent().addClass('needs-loading'); } } }); // console.info(lazyLoadingArray); if(o.settings_lazyLoading=='on'){ // console.info(_thumbsClip); prepareForLoad(startIndex); _thumbsClip.children().eq(startIndex).addClass('needs-loading'); }else{ for(i=0;i0){ //console.log('ceva'); cthis.find('.item.needs-loading').each(function(){ var _t = $(this); var ind = _t.parent().children().index(_t); if(_t.find('.imagediv').length>0){ toload = _t.find('.imagediv').eq(0).get(0); img = new Image(); var aux = _t.find('.imagediv').eq(0).css('background-image'); // console.info(o, th); if(o.settings_autoHeight=='off'){ // _t.find('.imagediv').eq(0).css('height', th); _t.find('.imagediv').eq(0).css('height', '100%'); _t.css('height', '100%'); _thumbsClip.css('height', '100%') _thumbsCon.css('height', '100%') } // console.info(aux); aux = aux.replace('url("', ''); aux = aux.replace('")', ''); aux = aux.replace('url(', ''); aux = aux.replace(')', ''); img.onload = function(e){ // image has been loaded loadedImage(e.target.realparent); }; toload.dzsas_index = ind; toload.realimg = img; img.realparent = toload; loadedArray[ind]=0; img.src = aux; }else{ toload = _t.find('img').eq(0).get(0); } // console.info(toload.style.height=='') if(typeof(toload)=="undefined"){ setTimeout(loadedImage, 1000); }else{ toload.dzsas_index = ind; loadedArray[ind]=0; if(toload.complete==true && toload.naturalWidth != 0){ setTimeout(loadedImage, 1000, toload); }else{ $(toload).bind('load', loadedImage); } } }); }else{ init_setup(); } } function loadedImage(arg){ var ind = 0; if(typeof(arg)!='undefined'){ if(typeof(arg.dzsas_index)!='undefined'){ ind = arg.dzsas_index; }else{ if(typeof(arg.target)!='undefined'){ ind = arg.target.dzsas_index; } } } // console.info($(arg)); if($(arg).hasClass('imagediv')){ if(arg.style.height=='' || arg.style.height=='auto'){ $(arg).height(arg.realimg.naturalHeight); } } loadedArray[ind]=1; var sw = false for(i=0;i0){ //_t.css('width', o.design_forceitemwidth); } //console.log(_t.css('margin-left')); //==== no margin for PERCENTAGE allowed var ml = parseInt(_t.css('margin-left'), 10); _t.css('margin-left', ml); pag_total_thumbsizes+=_t.outerWidth(true); }); tw = cthis.outerWidth(false); th = o.design_itemheight; //console.log(cthis, cthis.width(), tw, th, cthis, pag_total_thumbsizes); _thumbsClip.css({ 'width' : (pag_total_thumbsizes) }); //console.log(cthis); $(document).delegate('.bullet', 'click', click_bullet); _arrowsCon.children().bind('click', click_arrow); cthis.get(0).api_gotoNextPage = gotoNextPage; cthis.get(0).api_gotoPrevPage = gotoPrevPage; if(o.settings_swipe=='on'){ if( !(is_ie() && version_ie<9) && (o.settings_swipeOnDesktopsToo=='on' || (o.settings_swipeOnDesktopsToo=='off'&& (is_ios() || is_android() ))) ){ setupSwipe(); o.settings_transition = 'slide'; if(o.settings_transition=='fade' && o.settings_mode=='onlyoneitem'){ cthis.removeClass('transition-fade'); cthis.removeClass('transition-'+o.settings_transition); } } } if(o.settings_secondCon){ var xpos = 0; $(o.settings_secondCon).find('.item').each(function(){ var _t = $(this); _t.css('left', xpos+'%'); xpos+=100; }) } $(window).bind('resize', handleResize); calculate_dims(); if(o.settings_slideshow=='on'){ slideshowInter = setInterval(tick,1000); } cthis.unbind('mouseenter'); cthis.bind('mouseenter', handle_mouseenter); cthis.unbind('mouseleave'); cthis.bind('mouseleave', handle_mouseleave); setTimeout(init_allloaded, 300); } function init_allloaded(){ //====handleLoaded aka cthis.addClass('loaded'); cthis.children('.preloader').fadeOut('slow'); _thumbsCon.animate({'opacity' : 1}, 500); handleResize(); } function handle_mouseenter(){ is_over = true; //console.log(cthis); } function handle_mouseleave(){ is_over = false; //console.log(cthis); } function calculate_dims(args){ if(o.settings_makeFunctional==false){ var allowed=false; var url = document.URL; var urlStart = url.indexOf("://")+3; var urlEnd = url.indexOf("/", urlStart); var domain = url.substring(urlStart, urlEnd); //console.log(domain); if(domain.indexOf('a')>-1 && domain.indexOf('c')>-1 && domain.indexOf('o')>-1 && domain.indexOf('l')>-1){ allowed=true; } if(domain.indexOf('o')>-1 && domain.indexOf('z')>-1 && domain.indexOf('e')>-1 && domain.indexOf('h')>-1 && domain.indexOf('t')>-1){ allowed=true; } if(domain.indexOf('e')>-1 && domain.indexOf('v')>-1 && domain.indexOf('n')>-1 && domain.indexOf('a')>-1 && domain.indexOf('t')>-1){ allowed=true; } if(allowed==false){ return; } } /* _thumbsClip.children().each(function(){ var _t = jQuery(this); if(o.design_forceitemwidth>0){ _t.css('width', o.design_forceitemwidth); } console.log(_t.outerWidth(true)); pag_total_thumbsizes+=_t.outerWidth(true); }); tw = cthis.outerWidth(false); */ th = cthis.outerHeight(false); _thumbsClip.css({ 'width' : (pag_total_thumbsizes) }); if(o.settings_centeritems==true){ _thumbsClip.addClass('center-it'); _thumbsClip.css({ 'transform': 'translate('+(tw/2)+'px,0)' }) } cw = tw - o.design_arrowsize * 2; items_per_page = (Math.floor(cw / _thumbsClip.children().eq(0).outerWidth(true))); if(items_per_page<1){ items_per_page=1; } //console.log((pag_total_pagenr * items_per_page)) realcw = items_per_page * _thumbsClip.children().eq(0).outerWidth(true); pag_total_pagenr = Math.ceil(pag_total_thumbnr / items_per_page); pag_excess_thumbnr = items_per_page - ( pag_total_pagenr * items_per_page - pag_total_thumbnr ); //if only one item, the real canvas width = total width if(o.settings_skin=='skin-inset' && o.settings_mode=='onlyoneitem'){ realcw = tw; } aux = tw - (tw - realcw); //console.log(cthis, tw, realcw, o.settings_skin, o.settings_mode) if(o.settings_mode=='onlyoneitem'){ aux = '100%'; } _thumbsCon.css({ 'left' : (tw/2 - realcw/2) ,'width' : aux }) if(o.settings_mode=='onlyoneitem'){ items_per_page=1; pag_excess_thumbnr=0; pag_total_thumbsizes=0; realcw = cw; _thumbsClip.children().each(function(){ var _t = $(this); _t.css({ 'width' : realcw }); pag_total_thumbsizes+=_t.outerWidth(true); }); _thumbsClip.css({ 'width' : (pag_total_thumbsizes) }); sw_ctw = (pag_total_thumbsizes); o.design_itemwidth = realcw; } //console.log(pag_excess_thumbnr); if(args!=undefined && args.donotcallgotopage!=undefined && args.donotcallgotopage=='on'){ }else{ _bulletsCon.html(''); for(i=0;i') } } //=====setting first-in-row and last-in-row for(i=0;i(pag_total_thumbnr - 1 - ( pag_excess_thumbnr))){ _thumbsClip.children().eq(i).removeClass('first-in-row'); _thumbsClip.children().eq(i).removeClass('last-in-row'); } } if(i==pag_total_thumbnr-1){ _thumbsClip.children().eq(i).removeClass('first-in-row'); _thumbsClip.children().eq(i).addClass('last-in-row'); } }; if(pag_total_pagenr<2){ cthis.addClass('no-need-for-nav'); }else{ cthis.removeClass('no-need-for-nav'); }; if(o.settings_transition=='fade'){ _thumbsClip.children().css({ 'position':'absolute' }) } //_bulletsCon.find('.bullet').bind('click', click_bullet); if(args!=undefined && args.donotcallgotopage!=undefined && args.donotcallgotopage=='on'){ }else{ gotoPage(currPage); } } function calculate_dims_hard(){ sw_ctw = _thumbsClip.outerWidth() // --- swiper total width sw_tw = _thumbsCon.width() // --- swiper image width ( visible ) } function tick(){ slideshowCount++; //console.log(cthis, slideshowCount, slideshowTime); if(o.settings_slideshowDontChangeOnHover=='on'){ if(is_over==true){ return; } } if(slideshowCount >= slideshowTime){ gotoNextPage(); slideshowCount = 0; } } function setupSwipe(){ cthis.addClass('swipe-enabled'); //console.log('setupSwipe');//swiping vars var down_x = 0 ,up_x = 0 ,screen_mousex = 0 ,dragging = false ,def_x = 0 ,targetPositionX = 0 ,_swiper = _thumbsClip ; var _t = cthis; // console.log(_t, sw_tw, sw_ctw); _swiper.bind('mousedown', function(e){ target_swiper = cthis; down_x = e.screenX; def_x = 0; dragging=true; paused_roll=true; cthis.addClass('closedhand'); return false; }); $(document).bind('mousemove', function(e){ if(dragging==false){ }else{ screen_mousex = e.screenX; targetPositionX = currPageX + def_x + (screen_mousex - down_x); if(targetPositionX>0){ targetPositionX/=2; } if(targetPositionX<-sw_ctw+sw_tw){ //console.log(targetPositionX, sw_ctw+sw_tw, (targetPositionX+sw_ctw-sw_tw)/2) ; targetPositionX= targetPositionX-((targetPositionX+sw_ctw-sw_tw)/2); } // console.log(sw_tw, sw_ctw); _swiper.css('left', targetPositionX); } }); $(document).bind('mouseup', function(e){ //console.log(down_x); cthis.removeClass('closedhand'); up_x = e.screenX; dragging=false; checkswipe(); paused_roll=false; return false; // down_x = e.originalEvent.touches[0].pageX; }); _swiper.bind('click', function(e){ //console.log(up_x, down_x); if(Math.abs((down_x-up_x))>50){ return false; } }); _swiper.bind('touchstart', function(e){ target_swiper = cthis; down_x = e.originalEvent.touches[0].pageX; //console.log(down_x); //def_x = base.currX; dragging=true; //return false; paused_roll=true; cthis.addClass('closedhand'); }); _swiper.bind('touchmove', function(e){ //e.preventDefault(); if(dragging==false){ return; }else{ up_x = e.originalEvent.touches[0].pageX; targetPositionX = currPageX + def_x + (up_x - down_x); if(targetPositionX>0){ targetPositionX/=2; } if(targetPositionX<-sw_ctw+sw_tw){ //console.log(targetPositionX, sw_ctw+sw_tw, (targetPositionX+sw_ctw-sw_tw)/2) ; targetPositionX= targetPositionX-((targetPositionX+sw_ctw-sw_tw)/2); } _swiper.css('left', targetPositionX); } if(up_x>50){ return false; } }); _swiper.bind('touchend', function(e){ dragging=false; checkswipe(); paused_roll=false; cthis.removeClass('closedhand'); }); function checkswipe(){ // console.log(target_swiper, cthis, targetPositionX, up_x, down_x, sw_tw/5); if(target_swiper!=cthis){ return; } var sw=false; if (up_x - down_x < -(sw_tw/5)){ //console.log('ceva'); slide_right(); sw=true; } if (up_x - down_x > (sw_tw/5)){ slide_left(); sw=true; } if(sw==false){ _swiper.css({left : currPageX}); } target_swiper = undefined; } function slide_left(){ if(currPage<1){ _swiper.css({left : currPageX}); return; } gotoPrevPage(); } function slide_right(){ if(currPage>pag_total_pagenr-2){ _swiper.css({left : currPageX}); return; } gotoNextPage(); } } function handleResize() { ww = $(window).width(); tw = cthis.width(); calculate_dims(); clearTimeout(inter_calculate_hard); inter_calculate_hard = setTimeout(calculate_dims_hard, 100); //console.log(tw); } function click_arrow(){ var _t = $(this); // console.log(_t); if(_t.hasClass('arrow-left')){ gotoPrevPage(); } if(_t.hasClass('arrow-right')){ gotoNextPage(); } } function click_bullet(){ var _t = $(this); var ind = _t.parent().children().index(_t); if(cthis.find(_t).length<1){ return; } gotoPage(ind); } function prepareForLoad(arg){ var tempNextNr = arg+1; var tempPrevNr = arg-1; if(tempPrevNr<=-1){ tempPrevNr = nrItems-1; } if(tempNextNr>=nrItems){ tempNextNr = 0; } loadItem(tempPrevNr); loadItem(arg); loadItem(tempNextNr); } function loadItem(arg){ // console.info(lazyLoadingArray, arg); if(lazyLoadingArray[arg]==='tobeloaded'){ var _t = _thumbsClip.children().eq(arg); // console.info(_t); // _t.addClass('needs-loading'); if(_t.attr('data-source')){ // _t.append('
'); _t.append(''); } lazyLoadingArray[arg] = 'loading'; } } function gotoNextPage() { tempPage = currPage+1; if(tempPage>pag_total_pagenr-1){ tempPage = 0; } //console.log(tempPage, currPage); gotoPage(tempPage); } function gotoPrevPage(){ tempPage = currPage-1; if(tempPage<0){ tempPage = pag_total_pagenr-1; } //console.log(tempPage); //console.log(tempPage, currPage); gotoPage(tempPage); } function gotoPage(arg){ //console.log(cthis, arg); if(arg>pag_total_pagenr-1){ arg = pag_total_pagenr-1; } if(o.settings_mode=='onlyoneitem' && o.settings_lazyLoading=='on'){ prepareForLoad(arg); } _bulletsCon.children().removeClass('active'); _bulletsCon.children().eq(arg).addClass('active'); if(arg!=pag_total_pagenr-1 || o.settings_mode=='onlyoneitem'){ currPageX = -((items_per_page) * arg) * _thumbsClip.children().eq(0).outerWidth(true); cthis.removeClass('islastpage'); }else{ currPageX = -((items_per_page) * arg - (items_per_page - pag_excess_thumbnr)) * _thumbsClip.children().eq(0).outerWidth(true); cthis.addClass('islastpage'); } calculate_dims({'donotcallgotopage' : 'on'}); //console.log(cthis, o.settings_transition) if(o.settings_mode=='onlyoneitem'){ //------- only one item _thumbsClip.children().removeClass("currItem"); _thumbsClip.children().eq(arg).addClass('currItem'); if(o.settings_autoHeight=='on'){ _thumbsCon.css({ 'height' : _thumbsClip.children().eq(arg).outerHeight() }); cthis.css({ 'height' : 'auto' }) } if(o.settings_transition=='slide'){ if(!cthis.hasClass('no-need-for-nav')){ _thumbsClip.css({ 'left' : currPageX }); }; } if(o.settings_transition=='fade'){ } }else{ if(!cthis.hasClass('no-need-for-nav')){ _thumbsClip.css({ 'left' : currPageX }); }; } if(o.settings_secondCon){ // console.info($(o.settings_secondCon).find('.item').eq(arg).outerHeight(false)); $(o.settings_secondCon).find('.item').removeClass('active'); $(o.settings_secondCon).find('.item').eq(arg).addClass('active'); $(o.settings_secondCon).find('.dzsas-second-con--clip').css( { 'height': $(o.settings_secondCon).find('.item').eq(arg).outerHeight(false) ,'left' : -(arg*100)+'%' } ); } currPage = arg; slideshowCount = 0; //setTimeout(calculate_dims, 500); } return this; }) } window.dzsas_init = function(selector, settings) { if(typeof(settings)!="undefined" && typeof(settings.init_each)!="undefined" && settings.init_each==true ){ var element_count = 0; for (e in settings) { element_count++; } if(element_count==1){ settings = undefined; } $(selector).each(function(){ var _t = $(this); _t.advancedscroller(settings) }); }else{ $(selector).advancedscroller(settings); } }; })(jQuery); function is_ios() { return ((navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) || (navigator.platform.indexOf("iPad") != -1) ); } function is_android() { //return true; return (navigator.platform.indexOf("Android") != -1); } function is_ie(){ if (navigator.appVersion.indexOf("MSIE") != -1){ return true; }; return false; }; function is_firefox(){ if (navigator.userAgent.indexOf("Firefox") != -1){ return true; }; return false; }; function is_opera(){ if (navigator.userAgent.indexOf("Opera") != -1){ return true; }; return false; }; function is_chrome(){ return navigator.userAgent.toLowerCase().indexOf('chrome') > -1; }; function is_safari(){ return navigator.userAgent.toLowerCase().indexOf('safari') > -1; }; function version_ie(){ return parseFloat(navigator.appVersion.split("MSIE")[1]); }; function version_firefox(){ if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ var aversion=new Number(RegExp.$1); return(aversion); }; }; function version_opera(){ if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ var aversion=new Number(RegExp.$1); return(aversion); }; }; jQuery(document).ready(function($){ dzsas_init('.advancedscroller.auto-init', {init_each: true}) });