<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// Critical Javascript
var tbUtils = {
    bind: function(el, ev, fn) {
        if(window.addEventListener) {
            el.addEventListener(ev, fn, false);
        } else if(window.attachEvent) {
            el.attachEvent('on' + ev, fn);
        } else {
            el['on' + ev] = fn;
        }

        return fn;
    },

    unbind: function(el, ev, fn) {
        if(window.removeEventListener){
            el.removeEventListener(ev, fn, false);
        } else if(window.detachEvent) {
            el.detachEvent('on' + ev, fn);
        } else {
            elem['on' + ev] = null;
        }
    },

    stop: function(ev) {
        var e = ev || window.event;

        e.cancelBubble = true;
        if (e.stopPropagation) {
            e.stopPropagation();
        }
    },

    resizeCallBacks: [],
    resizeContainers: [],

    onSizeChange: function(fn, namespace, unbind_namespace, container_id) {

        if (typeof container_id == "undefined" || !container_id) {
            container_id = String(Math.random());
        }

        if (typeof unbind_namespace != "undefined" &amp;&amp; !unbind_namespace &amp;&amp; this.resizeContainers.indexOf(container_id) &gt;= 0) {
            return;
        }

        this.resizeContainers.push(container_id);

        if (typeof namespace == "undefined" || !namespace) {
            namespace = 'main';
        }

        if (typeof unbind_namespace == "undefined") {
            unbind_namespace = false;
        }

        if (this.resizeCallBacks[namespace] === undefined) {
            this.resizeCallBacks[namespace] = [];
        }

        var eventName = window.hasOwnProperty("onorientationchange") ? "orientationchange" : "resize";

        if (unbind_namespace) {
            var unbind = this.unbind;
            Array.prototype.forEach.call(this.resizeCallBacks[namespace], function(callBack) {
                unbind(window, eventName, callBack);
            });
            this.resizeCallBacks[namespace] = [];
        }

        this.resizeCallBacks[namespace].unshift(fn);

        if (window.hasOwnProperty("onorientationchange")) {
            return this.bind(window, "orientationchange", fn);
        }

        // orientation-change-polyfill
        var currentWidth = window.outerWidth;
        var orientationChanged = function(callBack) {
            var newWidth = window.outerWidth;

            if (newWidth !== currentWidth) {
                currentWidth = newWidth;
                callBack &amp;&amp; callBack();
            }
        };

        return this.bind(window, "resize", function() {
            orientationChanged(fn);
        });
    },

    onWindowLoaded: function(win, fn) {

        var done = false, top = true,

            doc = win.document,
            root = doc.documentElement,
            modern = doc.addEventListener,

            add = modern ? 'addEventListener' : 'attachEvent',
            rem = modern ? 'removeEventListener' : 'detachEvent',
            pre = modern ? '' : 'on',

            init = function(e) {
                if (e.type == 'readystatechange' &amp;&amp; doc.readyState != 'complete') return;
                (e.type == 'load' ? win : doc)[rem](pre + e.type, init, false);
                if (!done &amp;&amp; (done = true)) fn.call(win, e.type || e);
            },

            poll = function() {
                try { root.doScroll('left'); } catch(e) { setTimeout(poll, 50); return; }
                init('poll');
            };

        if (doc.readyState == 'complete') fn.call(win, 'lazy');
        else {
            if (!modern &amp;&amp; root.doScroll) {
                try { top = !win.frameElement; } catch(e) { }
                if (top) poll();
            }
            doc[add](pre + 'DOMContentLoaded', init, false);
            doc[add](pre + 'readystatechange', init, false);
            win[add](pre + 'load', init, false);
        }
    },

    removeClass: function(el, className) {
        if (!el) {
            return;
        }

        if (el.classList) {
            var classValues = className.trim().split(' ');

            for (var i = 0; i &lt; classValues.length; i++) {
                if (el.classList.contains(classValues[i])) {
                    el.classList.remove(classValues[i]);
                }
            }
        } else {
            el.className = el.className.replace(new RegExp('(^|\\b)' + className.trim().split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
        }
    },

    addClass: function(el, className) {
        if (!el) {
            return;
        }

        if (el.classList) {
            var classValues = className.split(' ');

            for (var i = 0; i &lt; classValues.length; i++) {
                el.classList.add(classValues[i]);
            }
        } else {
            el.className += ' ' + className;
        }
    },

    hasClass: function(el, className) {
        if (!el) {
            return;
        }

        if (el.classList) {
            el.classList.contains(className);
        }
        else {
            new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
        }
    },

    globalEval: function(code) {
        var script = document.createElement("script");

        script.text = code;
        document.head.appendChild(script).parentNode.removeChild(script);
    }
};

function adjustItemSize(container, responsive_params, namespace) {

    var $container = typeof container == "string" ? document.querySelector(container) : container;

    if (!$container) {
        return;
    }

    var $el = $container.querySelector(".tb_grid_view");

    if (!$el) {
        return;
    }

    if (responsive_params === undefined) {
        responsive_params = {
            "1900": {"items_per_row": 8, "items_spacing": 30},
            "1600": {"items_per_row": 7, "items_spacing": 30},
            "1400": {"items_per_row": 6, "items_spacing": 30},
            "1200": {"items_per_row": 5, "items_spacing": 30},
            "1000": {"items_per_row": 4, "items_spacing": 30},
            "800" : {"items_per_row": 3, "items_spacing": 30},
            "600" : {"items_per_row": 2, "items_spacing": 30},
            "400" : {"items_per_row": 1, "items_spacing": 20}
        };
    }

    var responsive_keys = [],
        current_per_row = 0;

    for(var k in responsive_params) {
        responsive_keys.push(Number(k));
    }
    responsive_keys.sort(function(a, b){return a-b});

    function getRestrictions(c_width) {
        var result = {};

        for(var i = 0; i &lt; responsive_keys.length; i++){
            result = responsive_params[responsive_keys[i]];
            if(c_width &lt;= responsive_keys[i]) {
                break;
            }
        }

        return result;
    }

    var total_items = $el.childElementCount;

    function responsive() {

        var computed_style  = getComputedStyle($container),
            container_width = $container.querySelector('.tb_side_nav') ? $el.clientWidth : $container.clientWidth - (parseInt(computed_style.paddingRight) + parseInt(computed_style.paddingLeft)),
            restrictions    = getRestrictions(container_width);

        if (current_per_row == restrictions.items_per_row) {
            return;
        }

        tbUtils.removeClass($el, 'tb_size_1 tb_size_2 tb_size_3 tb_size_4 tb_size_5 tb_size_6 tb_size_7 tb_size_8 tb_multiline');
        tbUtils.removeClass($el, 'tb_gut_0 tb_gut_10 tb_gut_20 tb_gut_30 tb_gut_40 tb_gut_50');
        tbUtils.addClass($el, 'tb_size_' + restrictions.items_per_row + ' ' + 'tb_gut_'  + restrictions.items_spacing + (restrictions.items_per_row &lt; total_items ? ' tb_multiline' : ''));

        current_per_row = restrictions.items_per_row;
    }

    //requestAnimationFrame(responsive);
    responsive();

    if (typeof container != 'string' || !container) {
        container = '';
    }

    tbUtils.onSizeChange(responsive, namespace, false, "adjustItemSize_" + container);

    // Add layout classes

    if (!$el.hasAttribute('data-nth_classes')) {
        var last_item_indexes = [];

        if (total_items &gt; 1) {
            [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].forEach(function(key) {
                last_item_indexes[key] = (Math.ceil(total_items / key) - 1) * key;
            });
        }

        [].forEach.call($el.children, function(el, i) {
            [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].forEach(function(key) {
                if (((i)/key) % 1 === 0) {
                    tbUtils.addClass(el, 'clear' + key);
                }
            });

            i++;

            last_item_indexes.forEach(function(key, index) {
                if (i &gt; key) {
                    tbUtils.addClass(el, 'tb_size_' + index + '_last');
                }
            });
        });

        $el.setAttribute('data-nth_classes', '1');
    }

}

function element_query(elements, sizes, child) {

    Array.prototype.forEach.call(document.querySelectorAll(elements), function(el) {

        if (sizes === undefined) {
            sizes = el.getAttribute('data-sizes');
        }

        if (!sizes) {
            sizes = [
                1260,
                1040,
                768,
                480,
                0
            ];
        }

        if (typeof sizes == "string") {
            sizes = sizes.split(",").sort(function(a, b) {
                return b - a;
            });
        }

        var width_detect = (function($element, sizes, child) {

            var max_w = sizes[0],
                min_w = sizes[sizes.length - 1];

            return function() {

                var $el = $element;

                if (child !== undefined) {
                    $el = document.querySelector('#' + $element.id + ' ' + child);
                }

                if (!$el) {
                    return;
                }

                var computedStyle = getComputedStyle($el),
                    width = $el.offsetWidth - parseInt(computedStyle.paddingRight) - parseInt(computedStyle.paddingLeft);

                for(var i = 0; i &lt; sizes.length; i++){
                    if (i == 0) {
                        if (width &gt; sizes[i]) {
                            tbUtils.removeClass($el, 'tb_max_w_' + max_w + ' tb_min_w_' + min_w);
                            max_w = 0;
                            min_w = sizes[i];
                            tbUtils.addClass($el, 'tb_min_w_' + min_w);

                            break;
                        }
                    } else {
                        if (width &gt; sizes[i] &amp;&amp; width &lt;= sizes[i - 1]) {
                            tbUtils.removeClass($el, 'tb_max_w_' + max_w + ' tb_min_w_' + min_w);
                            max_w = sizes[i - 1];
                            min_w = sizes[i];
                            tbUtils.addClass($el, 'tb_max_w_' + max_w + ' tb_min_w_' + min_w);

                            break;
                        }
                    }
                }
            }

        })(el, sizes, child);

        var el_id = 'element_query_' + String(Math.random());
        if (el.id !== undefined) {
            if (el.id) {
                el_id = '#' + el.id;
            } else {
                el_id = el.nodeName + '_' + el.className.replace(" ", "_") + "_" + String(Math.random());
            }
        }

        width_detect();
        tbUtils.onSizeChange(width_detect, false, false, el_id);
    });
}

/*-global-vars-*/

tbUtils.is_touch = 'ontouchstart' in window || navigator.MaxTouchPoints || navigator.msMaxTouchPoints;

(function(window) {
window.tbApp = window.tbApp || {};
var data = {"\/tb\/category_path":null,"\/tb\/route":"product\/product","\/tb\/cache_enabled":0,"\/tb\/url\/shopping_cart":"https:\/\/www.e-aquajazz.lt\/prekiu-krepselis","\/tb\/url\/search":"https:\/\/www.e-aquajazz.lt\/paieska","\/tb\/url\/image_cache":"https:\/\/www.e-aquajazz.lt\/image\/cache\/catalog\/","\/tb\/url\/wishlist":"https:\/\/www.e-aquajazz.lt\/isimintu-prekiu-sarasas","\/tb\/url\/compare":"https:\/\/www.e-aquajazz.lt\/produktu-palyginimas","\/tb\/url\/live_search\/search":"https:\/\/www.e-aquajazz.lt\/index.php?route=live_search\/search","\/tb\/url\/live_search\/seed":"https:\/\/www.e-aquajazz.lt\/index.php?route=live_search\/seed","\/lang\/text_failure":"Failure","\/lang\/text_continue":"Turpin\u00c4\u0081t","\/lang\/text_continue_shopping":"Pievienot grozam","\/lang\/text_shopping_cart":"Lepirk\u00c5\u00a1an\u00c4\u0081s rati\u00c5\u0086i","\/lang\/text_wishlist":"Lai iegaum\u00c4\u0093tu","\/lang\/text_cart_updated":"Lepirkumu grozs ir atjaunin\u00c4\u0081ts!","\/lang\/text_wishlist_updated":"Atjaunots!","\/lang\/text_compare_updated":"Atjaunots!","\/lang\/text_product_comparison":"Sal\u00c4\u00abdzin\u00c4\u0081jumi","\/lang\/text_previous":"Atpaka\u00c4\u00bc","\/lang\/text_next":"Sekojo\u00c5\u00a1ais","\/lang\/text_cookie_policy_title":"Naudojami slapukai","\/lang\/text_cookie_policy_button":"Patvirtinti"};
for(var key in data) tbApp[key] = data[key];
})(window);
if (typeof window.tb_wishlist_label != 'undefined') {
    Array.prototype.forEach.call(document.querySelectorAll('a.wishlist_total, li.wishlist_total &gt; a &gt; .tb_text'), function(el) {
        var holder = document.createElement('span'),
            number = document.createTextNode(window.tb_wishlist_label.replace(/[^0-9]/g, ''));

        holder.appendChild(number);
        holder.classList.add('tb_items');
        el.appendChild(holder);
    });
}


window.tbCriticalLoaded = true;
if (window.tbBoot !== undefined) {
    window.tbBoot();
}(function(window) {

window.tbApp = window.tbApp || {};

function executeInline(tbApp) {
        tbUtils.globalEval("\n  $('.tb_wt_header_logo_system').parent().addClass('tbLogoCol');\n  \n          tbUtils.removeClass(tbRootWindow.document.querySelector('.tb_wt_header_cart_menu_system .table-striped'), 'table-striped');\n          Array.prototype.forEach.call(tbRootWindow.document.querySelectorAll('.tb_wt_header_cart_menu_system td .btn'), function(el) {\n              tbUtils.removeClass(el, 'btn-danger btn-xs');\n              tbUtils.addClass(el, 'btn-default btn-sm tb_no_text');\n          });\n          \ntbApp.onScriptLoaded(function() {\n\n    \/\/ Gallery\n\n    var $slider = new mightySlider(\n        '#product_images .frame',\n        {\n            speed:             500,\n            easing:            'easeOutExpo',\n            viewport:          'fill',\n            autoScale:         1,\n            preloadMode:       'instant',\n            navigation: {\n                slideSize:     '100%',\n                keyboardNavBy: 'slides'\n            },\n            commands: {\n                thumbnails:    0,\n                pages:         0,\n                buttons:       1            },\n                        dragging: {\n                swingSync:     5,\n                swingSpeed:    0.2\n            },\n                        thumbnails: {\n                thumbnailsBar:     '#product_images .tb_thumbs ul',\n                thumbnailsButtons: 0,\n                horizontal:        0,\n                thumbnailNav:      'centered',\n                thumbnailSize:     '20%'\n            },\n                        classes: {\n                loaderClass:   'tb_loading_bar'\n            }\n        }\n    );\n\n    \n    $slider.init();\n    $slider.activatePage(0);\n\n    \n    \/\/ Fullscreen gallery\n\n    var fullscreen_gallery_items = [\n      {\n        src:  'https:\/\/www.e-aquajazz.lt\/image\/cache\/catalog\/kategorijos\/sildymo-katilai\/katilu-detales\/0020097980-1000x1000.webp',\n        w:    1000,\n        h:    1000,\n        msrc: 'https:\/\/www.e-aquajazz.lt\/image\/cache\/catalog\/kategorijos\/sildymo-katilai\/katilu-detales\/0020097980-180x180.webp'\n      }\n          ];\n\n    $('#ProductImagesSystem_B5FObi8G .tbGoFullscreen').bind('click', function() {\n      lightbox_gallery('ProductImagesSystem_B5FObi8G', $slider, false, fullscreen_gallery_items);\n    });\n    \n    \/\/ Gallery changes detection\n\n    var myInterval = null;\n\n    jQuery('#content').on('change', ':input', function() {\n        var callback = function() {\n\n            var gallery,\n                new_gallery = false,\n                $images_src = $('#ProductImagesSystem_B5FObi8G .thumbnails');\n\n            fullscreen_gallery_items = [];\n\n            $images_src.find('a').each(function(index) {\n                gallery += '&lt;div data-mightyslider=\"type: \\'image\\', cover: \\'' + $(this).attr('href') + '\\', thumbnail: \\'' + $(this).find('img').attr('src') + '\\'\"&gt;&lt;\/div&gt;';\n\n                fullscreen_gallery_items.push({\n                  src:  $(this).attr('href'),\n                  w:    1000,\n                  h:    1000,\n                  msrc: $(this).find('img').attr('src')\n                });\n\n                if ($(this).attr('href') != $slider.slides[index].options.cover) {\n                    new_gallery = true;\n                }\n            });\n\n            if ($images_src.find('a').length != $slider.slides.length) {\n                new_gallery = true;\n            }\n\n            if (new_gallery) {\n                var slides_num = $slider.slides.length;\n\n                $slider.off('load');\n                for (var i = 0; i &lt; slides_num; i++) {\n                    $slider.remove('.mSSlide');\n                }\n                $slider.add(gallery);\n                $slider.on('load', function (eventName) {\n                  zoom_preview();\n                });\n            }\n\n            return new_gallery;\n        };\n\n        clearInterval(myInterval);\n\n        if (jQuery.active) {\n            $(document).one(\"ajaxStop.product-images\", function() {\n                var i = 0;\n\n                myInterval = setInterval(function () {\n                    if (callback() || i == 5) {\n                        clearInterval(myInterval);\n                    }\n                    i++;\n                }, 150);\n            });\n        } else {\n            setTimeout(function() {\n                callback();\n            }, 100);\n        }\n    });\n\n});\n\n$(document).ready(function() {\n    $('#content').find('select[name=\"profile_id\"], :input[name^=\"option\"], :input[name^=\"quantity\"]').change(function(){\n        $.ajax({\n            type: 'post',\n            url: 'index.php?route=tb\/getProductPrice',\n            dataType: 'json',\n            data: $('#content :checked, #content select, #content :input[name^=\"quantity\"], #content :input[name^=\"product_id\"]'),\n            success: function (data) {\n                if (typeof data.error != \"undefined\") {\n                    return;\n                }\n\n                var $priceWrap = $('.tb_wt_product_price_system');\n\n                if (!$priceWrap.find('.tb_integer')) {\n                    return;\n                }\n\n                if ($priceWrap.has('.price-old').length) {\n                    $priceWrap.find('.price-old').html(data.price);\n                    $priceWrap.find('.price-new').html(data.special);\n                    $priceWrap.find('.price-savings strong').text(data.savings_sum);\n                } else {\n                    $priceWrap.find('.price-regular').html(data.price);\n                }\n                $priceWrap.find(\".price-tax span\").html(data.subtotal);\n\n\t\t\t$('#elp_model').html(data.option_model);\n            \n            },\n            error: function(xhr, ajaxOptions, thrownError) {\n                alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);\n            }\n        });\n    });\n});\n\ntbApp.onScriptLoaded(function() {\n    $('#input-quantity').TouchSpin({\n        max: 1000000000,\n        verticalbuttons: true,\n        verticalupclass: 'fa fa-caret-up',\n        verticaldownclass: 'fa fa-caret-down'\n    });\n});\n\n$('#button-cart').on('click', function() {\n    var url          = window.location.href,\n        button_width = $('#button-cart').width(),\n        button_text  = $('#button-cart').text();\n\n    $.ajax({\n        url: 'index.php?route=checkout\/cart\/add',\n        type: 'post',\n        data: $('.product-info input[type=\\'text\\'], .product-info input[type=\\'number\\'], .product-info input[type=\\'date\\'], .product-info input[type=\\'datetime\\'], .product-info input[type=\\'hidden\\'], .product-info input[type=\\'radio\\']:checked, .product-info input[type=\\'checkbox\\']:checked, .product-info select, .product-info textarea'),\n        dataType: 'json',\n        beforeSend: function() {\n            $('#button-cart').attr('disabled', true);\n            $('#button-cart').text('');\n            $('#button-cart').width(button_width);\n            $('#button-cart').append('&lt;i class=\"fa fa-circle-o-notch fa-spin\"&gt;&lt;\/i&gt;');\n        },\n        success: function(json) {\n            $('.alert, .text-danger').remove();\n            $('.form-group').removeClass('has-error');\n\n            setTimeout(function(){\n                $('#button-cart').next('.fa-spin').remove();\n                $('#button-cart').css('width','');\n                $('#button-cart').text(button_text);\n                $('#button-cart').attr('disabled', false);\n            },500);\n\n            if (json['error']) {\n                var errors = '';\n\n                if (json['error']['option']) {\n                    for (i in json['error']['option']) {\n                        var element = $('#input-option' + i.replace('_', '-'));\n\n                        element.parents('.form-group').first().find('&gt; label + div').append('&lt;div class=\"text-danger\"&gt;' + json['error']['option'][i] + '&lt;\/div&gt;');\n                    }\n                }\n                if (json['error']['recurring']) {\n                    $('select[name=\"recurring_id\"]').after('&lt;span class=\"error\"&gt;' + json['error']['recurring'] + '&lt;\/span&gt;');\n                }\n                \/\/ Highlight any found errors\n                $('.text-danger').each(function() {\n                    $(this).parents('.form-group').first().addClass('has-error');\n                });\n                \/\/ Popup any found errors\n                \/\/ displayNotice('product', 'failure', 'product', errors);\n            }\n            if (json['success']) {\n                $.get('index.php?route=common\/cart\/info', function(result) {\n                    var $container = $(tbRootWindow.document).find('.tb_wt_header_cart_menu_system');\n\n                    $container.find('.heading').replaceWith($(result).find('.heading').clone());\n                    $container.find('.content').replaceWith($(result).find('.content').clone());\n\n                    tbApp.triggerResizeCallbacks();\n                });\n\n                displayNotice('product', 'success', 7204, json['success']);\n            }\n        },\n        error: function(xhr, ajaxOptions, thrownError) {\n            alert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);\n        }\n    });\n});\n\ntbApp.on(\"inlineScriptsLoaded\", function() {\n        createGroup('Group_Sb3gpBmC', 'accordion');\n    });\n\n\t\t\t \t\t   $('#ComparePricesForm').delegate('#ComparePricesSubmit', 'click', function(){\n\t\t\t \t\t\t   $('input#YourName').removeClass(\"CPA_field_error\");\n\t\t\t \t\t\t   $('input#YourEmail').removeClass(\"CPA_field_error\");\n\t\t\t \t\t\t   $('input#LinkToTheProduct').removeClass(\"CPA_field_error\");\n\t\t\t \t\t\t   $('input#PriceInOtherStore').removeClass(\"CPA_field_error\");\n\t\t\t \t\t\t   $('div.CPError').remove();\n\t\t\t \t\t\t   var email_validate = \/^([A-Za-z0-9_\\-\\.])+\\@([A-Za-z0-9_\\-\\.])+\\.([A-Za-z]{2,4})$\/;\n\t\t\t \t\t\t   var link_validation = \/[-a-zA-Z0-9@:%_\\+.~#?&amp;\/\/=]{2,256}\\.[a-z]{2,4}\\b(\\\/[-a-zA-Z0-9@:%_\\+.~#?&amp;\/\/=]*)?\/gi;\n\t\t\t \t\t\t   var phone_validation = \/^\\s*(?:\\+?(\\d{1,3}))?([-. (]*(\\d{3})[-. )]*)?((\\d{2,3})[-. ]*(\\d{2,4})(?:[-.x ]*(\\d+))?)\\s*$\/gm;\n\t\t\t \t\t\t   if ((document.getElementById(\"YourName\").value == 0) \n\t\t\t \t\t\t   &amp;&amp; (document.getElementById(\"YourEmail\").value.length == 0) \n\t\t\t \t\t\t   &amp;&amp; (document.getElementById(\"PriceInOtherStore\").value.length == 0) \n\t\t\t \t\t\t   &amp;&amp; (document.getElementById(\"LinkToTheProduct\").value.length == 0)){\n\t\t\t \t\t\t\t   $('input#YourName').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#YourName').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t\t   $('input#YourEmail').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#YourEmail').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t\t   $('input#LinkToTheProduct').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#LinkToTheProduct').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t\t   $('input#PriceInOtherStore').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#PriceInOtherStore').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t\t   if (!document.getElementById(\"YourPhone\").value.match(phone_validation) &amp;&amp; $('input[name=\"YourPhone\"]').parent().parent().hasClass('required') ) {\n\t\t\t \t\t\t\t\t   $('input#YourPhone').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t\t   $('input#YourPhone').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t\t   }\n\t\t\t \t\t\t   } else if ((document.getElementById(\"YourName\").value == 0)) {\n\t\t\t \t\t\t\t   $('input#YourName').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#YourName').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (document.getElementById(\"YourEmail\").value.length == 0) {\n\t\t\t \t\t\t\t   $('input#YourEmail').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#YourEmail').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (document.getElementById(\"PriceInOtherStore\").value.length == 0) {\n\t\t\t \t\t\t\t   $('input#PriceInOtherStore').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#PriceInOtherStore').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (document.getElementById(\"LinkToTheProduct\").value.length == 0) {\n\t\t\t \t\t\t\t   $('input#LinkToTheProduct').addClass(\"CPA_field_error\");\n\t\t\t \t\t\t\t   $('input#LinkToTheProduct').after('&lt;div class=\"CPError\"&gt;There is a required field!&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (!document.getElementById(\"YourEmail\").value.match(email_validate)) {\n\t\t\t \t\t\t\t   $('input#YourEmail').after('&lt;div class=\"CPError\"&gt;E-mail Address does not appear to be valid! Please try again.&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (!document.getElementById(\"YourPhone\").value.match(phone_validation) &amp;&amp; ($('input[name=\"YourPhone\"]').parent().parent().hasClass('required'))){\n\t\t\t \t\t\t\t   $('input#YourPhone').after('&lt;div class=\"CPError\"&gt;The phone number appears to be invalid&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if (!document.getElementById(\"LinkToTheProduct\").value.match(link_validation)){\n\t\t\t \t\t\t\t   $('input#LinkToTheProduct').after('&lt;div class=\"CPError\"&gt;The URL appears to be invalid&lt;\/div&gt;');\n\t\t\t \t\t\t   } else if ($('label#CPrPrivacyPolicy input').length &gt; 0 &amp;&amp; $('label#CPrPrivacyPolicy input:checked').length == 0) {\n\t\t\t \t\t\t\t   $('input#CPrPrivacyPolicy').after('&lt;div class=\"CPError\"&gt;You must agree to the Privacy Policy in order to continue.&lt;\/div&gt;');\n\t\t\t \t\t\t   } else {\n\t\t\t \t\t\t\t   $(\"#ComparePricesSubmit\").attr(\"disabled\", true);\n\t\t\t \t\t\t\t   $(\"#ComparePricesSubmit\").text(\"Please wait...\");\n\t\t\t \t\t\t\t   $.ajax({\n\t\t\t \t\t\t\t\t   url: 'index.php?route=extension\/module\/compareprices\/sendemail',\n\t\t\t \t\t\t\t\t   type: 'post',\n\t\t\t \t\t\t\t\t   data: $('#ComparePricesForm').serialize(),\n\t\t\t \t\t\t\t\t   success: function(response) {\n\t\t\t \t\t\t\t\t\t   $('#ComparePricesFormBox').html(\"&lt;div class='alert alert-success CmP' style='display: none;'&gt;Thank you for completing our form!&lt;\/div&gt;\");\n\t\t\t \t\t\t\t\t\t   $('.CmP').fadeIn('slow');\n\t\t\t \t\t\t\t\t\t   $('#YourName').val('');\n\t\t\t \t\t\t\t\t\t   $('#YourEmail').val('');\n\t\t\t \t\t\t\t\t\t   $('#PriceInOtherStore').val('');\n\t\t\t \t\t\t\t\t\t   $('#LinkToTheProduct').val('');\n\t\t\t \t\t\t\t\t\t   $('#YourComments').val('');\n\t\t\t \t\t\t\t\t\t   $(\"#ComparePricesSubmit\").attr(\"disabled\", false);\n\t\t\t \t\t\t\t\t\t   $(\"#ComparePricesSubmit\").text(\"Submit\");\n\t\t\t \t\t\t\t\t   }\n\t\t\t \t\t\t\t   });\n\t\t\t \t\t\t   }\n\t\t\t \t\t   });\n\t\t\t \t   \ntbApp.on(\"inlineScriptsLoaded\", function() {\n        createGroup('Group_Qod963XG', 'accordion');\n    });\n\ntbApp.on(\"inlineScriptsLoaded\", function() {\n        createGroup('Group_YIp5wUCI', 'accordion');\n    });\n\ntbApp.execIconList_KMRQ3X5j = function() {\n    tbApp.onScriptLoaded(function() {\n\n                        $('#IconList_KMRQ3X5j .tb_icon_wrap').each(function() {\n            if ($(this).next('.tb_description_wrap').length) {\n                var tooltip  = $(this).next('.tb_description_wrap').find('.tb_description').html(),\n                    template = '&lt;div class=\"ui-tooltip ui-widget-content\"&gt;' +\n                               '  &lt;div class=\"tooltip-inner\"&gt;&lt;\/div&gt;' +\n                               '&lt;\/div&gt;';\n\n                $(this).tooltip({\n                    placement: 'auto top',\n                    title: tooltip,\n                    html: true,\n                    template: template\n                });\n            }\n        });\n        \n                    });\n};\n\ntbApp.execIconList_KMRQ3X5j();\n\n\tvar isMobile = false; \/\/initiate as false\n\tvar isDesktop = true;\n\n\t\/\/ device detection\n\tif(\/(android|bb\\d+|meego).+mobile|avantgo|bada\\\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino\/i.test(navigator.userAgent) \n    || \/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\\/(k|l|u)|50|54|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\\-|your|zeto|zte\\-\/i.test(navigator.userAgent.substr(0,4))) {\n\n\t\tisMobile = true;\n\t\tisDesktop = false;\n\t}\n\n\tvar showSelectorPopup = function (popup_id, content_type, content, href,width,height,animation,prevent_closing, cssSelector, close_after) {\n\t\tvar overlay_close = true;\n\t\tvar escape_close = true;\n\t\tif(prevent_closing==1) {\n\t\t\toverlay_close = false;\n\t\t\tescape_close = null;\n\t\t}\n\t\telse {\n\t\t\toverlay_close = true;\n\t\t\tescape_close = [27];\n\t\t}\n\t\t$(cssSelector).fancybox({\n\t\t\tcontent: content,\n\t\t\twidth: width,\n\t\t\theight: height,\n\t\t\tautoSize: false,\n\t\t\topenEffect : 'fade',\n\t\t\topenSpeed  : 150,\n\t\t\tcloseBtn  : true,\n\t\t\twrapCSS : 'animated '+ animation + ' popup-id-' + popup_id,\n\t\t\thref    : href.replace(new RegExp(\"watch\\\\?v=\", \"i\"), 'embed\/'),\n\t\t\ttype       : content_type ===\"youtube\" ? 'iframe' : null,\n            \n\n\t\t\t\n\t\t\thelpers : { \n\t\t\t  overlay : {closeClick: overlay_close}\n\t\t\t},\n\t\t\tkeys : {\n\t\t\t    close  : escape_close\n\t\t\t},\n\t\t\tafterShow: function () {\n\t\t\t\tif (close_after &gt; 0) setTimeout(closePopup.bind(null, close_after*1000));\n\t\t\t\t$.ajax({\n\t\t\t\t\turl: 'https:\/\/www.e-aquajazz.lt\/index.php?route=extension\/module\/popupwindow\/updateImpressions',\n\t\t\t\t\ttype: 'GET',\n\t\t\t\t\tdata: {popup_id : popup_id},\n\t\t\t\t\tdataType: 'json',\n\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}\n\t\nvar closePopup = function(cssSelector) {\n\t$.fancybox.close();\n}\n\nvar showPopup = function (popup_id, content_type, content, href, width,height,animation,prevent_closing,auto_size,auto_resize,aspect_ratio,delay,close_after) { \t\n\t\tvar timeout = 500;\n\t\tif(delay&gt;0) {\n\t\t\ttimeout += (delay*1000);\n\t\t}\n\t\tvar overlay_close = true;\n\t\tvar escape_close = true;\n\t\tif(prevent_closing==1) {\n\t\t\toverlay_close = false;\n\t\t\tescape_close = null;\n\t\t}\n\t\telse {\n\t\t\toverlay_close = true;\n\t\t\tescape_close = [27];\n\t\t}\n\t\t\n\t\tsetTimeout(function() {\n\t\t\t$.fancybox.open({\n\t\t\t\tcontent: content,\n\t\t\t\twidth: width,\n\t\t\t\theight: height,\n\t\t\t\tautoSize:false,\t\n\t\t\t\topenEffect : 'fade',\n\t\t\t\topenSpeed  : 150,\n\t\t\t\tcloseBtn  : true,\t\n\t\t\t\twrapCSS : 'animated '+ animation + ' popup-id-' + popup_id,\n\t\t\t\tautoResize: auto_resize === \"false\" ? false : true,\n\t\t\t\taspectRatio: aspect_ratio === \"false\" ? false : true,\n\t\t\t\thref       : href.replace(new RegExp(\"watch\\\\?v=\", \"i\"), 'embed\/'),\n\t            type       : content_type === \"youtube\" ? 'iframe' : null,\n\t            \n\t\t\t\t\n\t\t\t\thelpers : { \n\t\t\t\t  overlay : {closeClick: overlay_close}\n\t\t\t\t},\n\t\t\t\tkeys : {\n\t\t\t\t    close  : escape_close\n\t\t\t\t},\n\t\t\t\tafterShow: function () {\n\t\t\t\t\tif (close_after &gt; 0) setTimeout(closePopup, close_after*1000);\n\t\t\t\t\t$.ajax({\n\t\t\t\t\t\turl: 'https:\/\/www.e-aquajazz.lt\/index.php?route=extension\/module\/popupwindow\/updateImpressions',\n\t\t\t\t\t\ttype: 'GET',\n\t\t\t\t\t\tdata: {popup_id : popup_id},\n\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\tsuccess: function (response) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t}, timeout);\n\t\t\n\t\t\n\t};\n\n\tvar uri = location.pathname + location.search;\n\tvar documentReady = false;\n\tvar windowLoad = false;\n\tvar isBodyClicked = false;\n\t\n\tvar isExitEvent = false;\n\tvar alreadyscrolled = false;\n\n\t\t\n\t$(document).ready(function() {\n\t\tdocumentReady = true;\n\t});\n\t\n\t$(window).load(function() {\n\t\twindowLoad = true;\n\t});\n\t\n\t\/\/var exitEvent = function (){\n\t\t\n\/\/\t};\t\n\t\t\t\t\t\t\t\t\t\t\n\t\n\t$.ajax({\n\t\turl: '\/\/www.e-aquajazz.lt\/index.php?route=extension\/module\/popupwindow\/getPopup',\n\t\ttype: 'GET',\n\t\tdata: {'uri' : uri},\n\t\tdataType: 'json',\n\t\tsuccess: function (response) {\n\n\t\t\tfor(entry in response) {\n\t\t\t\t\/\/ Check if the current popup should be visible on mobile devices\n\t\t\t\tif(response[entry].show_on_mobile == '0' &amp;&amp; isMobile) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif(response[entry].show_on_desktop == '0' &amp;&amp; isDesktop) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tvar set_animation =  response[entry].animation;\n\t\t\t\t\t\t\n\t\t\t\tif (response[entry].content_type === 'youtube'){\n\t\t\t\t\tset_animation = false\n\t\t\t\t}\n\n\t\t\t\tif(response[entry].match) {\n\t\t\t\t\trepeat = response[entry].repeat;\n\t\t\t\t\tpopup_id = response[entry].id;\n\n\t\t\t\t\tif(response[entry].event == 0) { \/\/ Document ready event  \t\t\n\t\t\t\t\t\tif (documentReady) {\t\t\t\t\t\n\t\t\t\t\t\t\tshowPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$(document).ready(function(){   \n\t\t\t\t\t\t\t\tshowPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(response[entry].event == 1) { \/\/ Window load event\n\t\t\t\t\t\tif(windowLoad) {\n\t\t\t\t\t\t\tshowPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$(window).load(function() {\n\n\t\t\t\t\t\t\t\tshowPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\tif(response[entry].event == 2) { \/\/ Body click event\n\t\t\t\t\t\t$('body').click(function() {\n\t\t\t\t\t\t\tif(isBodyClicked == false) {\n\t\t\t\t\t\t\t\tshowPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t\t\tisBodyClicked = true;\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(response[entry].event == 3) { \/\/ Exit intent\n\t\t\t\t\t\t var p_id = response[entry].popup_id;\n\t\t\t\t\t\t var p_content = response[entry].content;\n\t\t\t\t\t\t var p_width = response[entry].width;\n\t\t\t\t\t\t var p_height = response[entry].height;\n\t\t\t\t\t\t var p_animation = set_animation;\n\t\t\t\t\t\t var p_prevent_closing = response[entry].prevent_closing;\n\t\t\t\t\t\t var p_auto_size = response[entry].auto_size;\n\t\t\t\t\t\t var p_auto_resize = response[entry].auto_resize;\n\t\t\t\t\t\t var p_aspect_ratio = response[entry].aspect_ratio;\n\t\t\t\t\t\t var p_content_type = response[entry].content_type;\n\t\t\t\t\t\t var p_video_href = response[entry].video_href;\n\n\t\t\t\t\t\t var bootstrap_enabled = (typeof $().modal == 'function');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t if (!bootstrap_enabled) {\n\t\t\t\t\t\t \t$('head').append('&lt;link rel=\"stylesheet\" type=\"text\/css\" href=\"catalog\/view\/javascript\/popupwindow\/modal\/dol_bootstrap.min.css\" \/&gt;');\n\t\t\t\t\t\t \t$('head').append('&lt;script type=\"text\/javascript\" src=\"catalog\/view\/javascript\/popupwindow\/modal\/dol_bootstrap.min.js\"&gt;&lt;'+'\/script&gt;');\n\t\t\t\t\t\t }\n\t\n\t\t\t\t\t\t var prevY = -1;\n\t\n\t\t\t\t\t\t $(document).bind(\"mouseout\", function(e) {\n\t\t\t\t\t\t \te.preventDefault();\n\t\t\t\t\t\t \te.stopPropagation();\n\t\t\t\t\t\t \tif(prevY == -1) {\n\t\t\t\t\t\t \t\tprevY = e.pageY;\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\treturn;    \n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \tif (!isExitEvent &amp;&amp; (e.pageY&lt;prevY) &amp;&amp; (e.pageY - $(window).scrollTop() &lt;= 1)) {  \t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t \t\tprevY = -1;\n\t\t\t\t\t\t\t\tshowPopup(p_id, p_content_type ,p_content, p_video_href, p_width, p_height, p_animation, p_prevent_closing, p_auto_size, p_auto_resize, p_aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t\t\tisExitEvent = true;\n\t\t\t\t\t\t \t\t\/\/showPopup(response[entry].popup_id, response[entry].content, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing);\n\t\t\t\t\t\t \t} else {\n\t\t\t\t\t\t \t\tprevY = e.pageY;\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t });\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(response[entry].event == 4) { \/\/ Scroll from top event\n\t\t\t\t\t\t$(window).scroll(function() {\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/\/variables to be used\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar startDistance = 0;\n\t\t\t\t\t\t\tvar percentageValue = response[entry].percentage_value;\n\t\t\t\t\t\t\tvar scrollAmount = $(window).scrollTop();\n\t\t\t\t\t\t\tvar documentHeight = $(window).height();\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\/\/ calculate the percentage the user has scrolled down the page\n\t\t\t\t\t\t\tvar scrollPercent = (scrollAmount \/ documentHeight) * 100;\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/\/ detecting the percentage scrolled and calling the pop up\t\n\t\t\t\t\t\t\tif (!alreadyscrolled &amp;&amp; scrollPercent &gt; percentageValue &amp;&amp; scrollPercent &lt; percentageValue + 1) {\n\t\t\t\t\t\t\t   showPopup(response[entry].popup_id, response[entry].content_type, response[entry].content,response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing,response[entry].auto_size, response[entry].auto_resize,response[entry].aspect_ratio,response[entry].seconds,response[entry].close_after);\n\t\t\t\t\t\t\t   alreadyscrolled=true;\n\n\t\t\t\t\t\t\t}\t\t\t\t    \n\n\t\t\t\t\t\t});\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\tif(response[entry].event == 5) { \/\/ CSS Selector\n\n\t\t\t\t\t\t$(response[entry].css_selector).addClass('fancybox');\n\t\t\t\t\t\t$(response[entry].css_selector).addClass('fancybox.iframe');\n\t\t\t\t\t\tshowSelectorPopup(response[entry].popup_id,response[entry].content_type, response[entry].content, response[entry].video_href, response[entry].width, response[entry].height, set_animation, response[entry].prevent_closing, response[entry].css_selector, response[entry].close_after);\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t  \t}\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t});\n\nscroll_to_top ();\n tbApp.trigger(\"inlineScriptsLoaded\");");
    }

if (window.tbApp.onScriptLoaded !== undefined) {
    window.tbApp.onScriptLoaded(function() {
        executeInline.call(window, window.tbApp);
    });
} else {
    window.tbApp.executeInline = executeInline;
}
})(window);
</pre></body></html>