PageSourceSearch

http://www.katalog24.pl/script.js

js katalog24.pl collected 2026-10-07 01:33:07 UTC 56,385 bytes, 1,526 lines download raw bytes

1/* Created by Artisteer v4.3.0.60745 */
2/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, curly:false, browser:true, jquery:false */
3/*global jQuery BackgroundHelper */
4
5// css helper
6browser = function ($) {
7    'use strict';
8    var data = [
9        { str: navigator.userAgent, sub: 'Chrome', ver: 'Chrome', name: 'chrome' },
10        { str: navigator.vendor, sub: 'Apple', ver: 'Version', name: 'safari' },
11        { prop: window.opera, ver: 'Opera', name: 'opera' },
12        { str: navigator.userAgent, sub: 'Firefox', ver: 'Firefox', name: 'firefox' },
13        { str: navigator.userAgent, sub: 'MSIE', ver: 'MSIE', name: 'ie' },
14        { str: navigator.userAgent, sub: 'Trident/7.0', ver: 'rv', name: 'ie' }
15    ];
16    var v = function (s, n) {
17        var i = s.indexOf(data[n].ver);
18        return (i !== -1) ? parseFloat(s.substring(i + data[n].ver.length + 1)) : 0;
19    };
20    var result = { name: 'unknown', version: 0 };
21    var html = $('html');
22    for (var n = 0; n < data.length; n++) {
23        if (!result[data[n].name]) {
24            result[data[n].name] = false;
25        }
26        if ((data[n].str && (data[n].str.indexOf(data[n].sub) !== -1)) || data[n].prop) {
27            result.name = data[n].name;
28            result[result.name] = true;
29            result.version = v(navigator.userAgent, n) || v(navigator.appVersion, n);
30            html.addClass(result.name + ' ' + result.name + parseInt(result.version, 10));
31        }
32    }
33    return result;
34} (jQuery);
35
36jQuery(function ($) {
37    if (typeof responsiveDesign === "undefined") {
38        $("html").addClass("desktop");
39    }
40});
41
42jQuery(function ($) {
43    'use strict';
44    var i, j, k, l, m;
45    if (!browser.ie || browser.version !== 9) {
46        return;
47    }
48    var splitByTokens = function (str, startToken, endToken, last) {
49        if (!last) {
50            last = false;
51        }
52        var startPos = str.indexOf(startToken);
53        if (startPos !== -1) {
54            startPos += startToken.length;
55            var endPos = last ? str.lastIndexOf(endToken) : str.indexOf(endToken, startPos);
56
57            if (endPos !== -1 && endPos > startPos) {
58                return str.substr(startPos, endPos - startPos);
59            }
60        }
61        return '';
62    };
63
64    var splitWithBrackets = function (str, token, brackets) {
65        /*jshint nonstandard:true */
66        if (!token) {
67            token = ',';
68        }
69        if (!brackets) {
70            brackets = '()';
71        }
72        var bracket = 0;
73        var startPos = 0;
74        var result = [];
75        if (brackets.lenght < 2) {
76            return result;
77        }
78        var pos = 0;
79        while (pos < str.length) {
80            var ch = str[pos];
81            if (ch === brackets[0]) {
82                bracket++;
83            }
84            if (ch === brackets[1]) {
85                bracket--;
86            }
87            if (ch === token && bracket < 1) {
88                result.push(str.substr(startPos, pos - startPos));
89                startPos = pos + token.length;
90            }
91            pos++;
92        }
93        result.push(str.substr(startPos, pos - startPos));
94        return result;
95    };
96
97    var byteToHex = function (d) {
98        var hex = Number(d).toString(16);
99        while (hex.length < 2) {
100            hex = "0" + hex;
101        }
102        return hex;
103    };
104
105    for (i = 0; i < document.styleSheets.length; i++) {
106        var s = document.styleSheets[i];
107        var r = [s];
108        for (j = 0; j < s.imports.length; j++) {
109            r.push(s.imports[j]);
110        }
111        for (j = 0; j < r.length; j++) {
112            s = r[j];
113            var n = [];
114            for (k = 0; k < s.rules.length; k++) {
115                var css = s.rules[k].cssText || s.rules[k].style.cssText;
116                if (!css) {
117                    continue;
118                }
119                var value = splitByTokens(css, '-svg-background:', ';');
120                if (value === '') {
121                    continue;
122                }
123                var values = splitWithBrackets(value);
124                for (l = 0; l < values.length; l++) {
125                    var g = splitByTokens(values[l], 'linear-gradient(', ')', true);
126                    if (g === '') {
127                        continue;
128                    }
129                    var args = splitWithBrackets(g);
130                    if (args.length < 3) {
131                        continue;
132                    }
133                    var maxOffset = 0;
134                    var stops = [];
135                    for (m = 1; m < args.length; m++) {
136                        var stopValues = splitWithBrackets($.trim(args[m]), ' ');
137                        if (stopValues.length < 2) {
138                            continue;
139                        }
140                        var stopColor = $.trim(stopValues[0]);
141                        var stopOpacity = 1;
142                        if (stopColor == 'transparent') {
143                            stopColor = '#000000';
144                            stopOpacity = 0;
145                        }
146                        var colorRgba = splitByTokens(stopColor, 'rgba(', ')', true);
147                        var stopOffset = $.trim(stopValues[1]);
148                        if (colorRgba !== "") {
149                            var rgba = colorRgba.split(',');
150                            if (rgba.length < 4) {
151                                continue;
152                            }
153                            stopColor = '#' + byteToHex(rgba[0]) + byteToHex(rgba[1]) + byteToHex(rgba[2]);
154                            stopOpacity = rgba[3];
155                        }
156                        var isPx = stopOffset.indexOf('px') !== -1;
157                        if (isPx) {
158                            maxOffset = Math.max(maxOffset, parseInt(stopOffset, 10) || 0);
159                        }
160                        stops.push({ offset: stopOffset, color: stopColor, opacity: stopOpacity, isPx: isPx });
161                    }
162                    var stopsXML = '';
163                    var lastStop = null;
164                    for (m = 0; m < stops.length; m++) {
165                        if (stops[m].isPx) {
166                            stops[m].offset = ((parseInt(stops[m].offset, 10) || 0) / (maxOffset / 100)) + '%';
167                        }
168                        stopsXML += '<stop offset="' + stops[m].offset + '" stop-color="' + stops[m].color + '" stop-opacity="' + stops[m].opacity + '"/>';
169                        if (m === stops.length - 1) {
170                            lastStop = stops[m];
171                        }
172                    }
173                    var isLeft = $.trim(args[0]) === 'left';
174                    var direction = 'x1="0%" y1="0%" ' + (isLeft ? 'x2="100%" y2="0%"' : 'x2="0%" y2="
174100%"');
175                    var gradientLength = '100%';
176                    if (maxOffset > 0) {
177                        gradientLength = maxOffset + 'px';
178                    }
179                    var size = (isLeft ? 'width="' + gradientLength + '" height="100%"' : 'width="100%" height="' + gradientLength + '"');
180                    var last = "";
181                    if (lastStop !== null && maxOffset > 0) {
182                        last = '<rect ' +
183                            (isLeft ?
184                                'x="' + maxOffset + '" y="0"' :
185                                'x="0" y="' + maxOffset + '"') +
186                            ' width="100%" height="100%" style="fill:' + lastStop.color + ';opacity:' + lastStop.opacity + ';"/>';
187
188                    }
189                    var svgGradient = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><linearGradient id="g" gradientUnits="objectBoundingBox" ' + direction + '>' + stopsXML + '</linearGradient><rect x="0" y="0" ' + size + ' fill="url(#g)" />' + last + '</svg>';
190                    values[l] = values[l].replace('linear-gradient(' + g + ')', 'url(data:image/svg+xml,' + escape(svgGradient) + ')');
191                }
192                n.push({ s: s.rules[k].selectorText, v: 'background: ' + values.join(",") });
193            }
194            for (k = 0; k < n.length; k++) {
195                s.addRule(n[k].s, n[k].v);
196            }
197        }
198    }
199});
200
201
202jQuery(function ($) {
203    "use strict";
204    // ie8
205    if (!browser.ie || browser.version > 8) return;
206    $('.art-shapes').each(function () {
207        if ($(this).siblings('.art-slider').length) {
208            $(this).remove();
209        } else {
210            $(this).css('z-index', 1);
211        }
212    });
213
214    // ie7
215    if (!browser.ie || browser.version > 7) return;
216    var textblockTexts = $('.art-textblock div[class$="-text"]');
217    textblockTexts.each(function () {
218        var tbText = $(this);
219        var valign = tbText.css('vertical-align') ? tbText.css('vertical-align') : 'top';
220        if (valign === 'middle') {
221            var wrapper = tbText.wrap('<div/>').parent();
222            tbText.css({
223                'position': 'relative',
224                'top': '-50%',
225                'height': 'auto'
226            });
227            wrapper.css({
228                'position': 'absolute',
229                'top': '50%'
230            });
231        } else if (valign === 'bottom') {
232            tbText.css({
233                'position': 'absolute',
234                'height': 'auto',
235                'bottom': 0
236            });
237        }
238    });
239});
240
241/* Set wmode=transparent for youtube and other video hostings to show it under the menus, lightboxes etc. */
242jQuery(function ($) {
243    "use strict";
244    var video = ["youtube"];
245
246    $("iframe[src]").each(function () {
247        var iframe = $(this),
248            src = iframe.attr("src"),
249            isVideo = false,
250            i;
251
252        for (i = 0; i < video.length; i++) {
253            if (src.toLowerCase().indexOf(video[i].toLowerCase()) !== -1) {
254                isVideo = true;
255                break;
256            }
257        }
258
259        if (!isVideo) {
260            return;
261        }
262
263        if (src.lastIndexOf("?") !== -1) {
264            src += "&amp;wmode=transparent";
265        } else {
266            src += "?wmode=transparent";
267        }
268        iframe.attr("src", src);
269    });
270});
271
272jQuery(function ($) {
273    "use strict";
274    $(window).bind("resize", function () { navigatorResizeHandler($("html").hasClass("responsive")); });
275});
276
277var navigatorResizeHandler = (function ($) {
278    "use strict";
279    return function (responsiveDesign) {
280        if (responsiveDesign) return;
281        $(".art-slider").each(function () {
282            var slider = $(this);
283            var sliderWidth = slider.width();
284            var nav = slider.siblings(".art-slidenavigator");
285            var navWidth = nav.outerWidth();
286            if (nav.length && navWidth < sliderWidth) {
287                // left offset
288                var left = nav.attr("data-left");
289                // (margin = containerWidth - (objectPosition + objectWidth)) < 0
290                var margin = sliderWidth - sliderWidth * parseFloat(left) / 100 - nav.outerWidth(false);
291                if (margin < 0) {
292                    nav.css("margin-left", margin);
293                }
294            }
295        });
296    };
297})(jQuery);
298
299var processElementMultiplyBg = (function ($) {
300    return (function (selector, info) {
301        if (!selector || !info || !info.bgimage || !info.bgposition || !info.images || !info.positions) return;
302        var path = "";
303        var script = $('head script[src*="script.js"]');
304        if (script.length) {
305            path = (script.attr('src') || '');
306            path = path.substr(0, path.lastIndexOf('/') + 1);
307        }
308        var html = '';
309        var el = $(selector);
310        var bgimages = info.images.split(",");
311        var bgpositions = info.positions.split(",");
312        for (var i = bgimages.length - 1; i >= 0; i--) {
313            var bgimage = $.trim(bgimages[i]);
314            if (bgimage === "")
315                continue;
316            var imgIdx = bgimage.lastIndexOf('images/');
317            var className = bgimage.substring(imgIdx + 7, bgimage.length - 6);
318            el.append("<div class=\"ie8fix " + className + "\" style=\"position:absolute;top:0;left:0;width:100%;height:100%;background:" + bgimage.replace(/(images\/[^\/]+)$/, path + '$1') + " " + bgpositions[i] + " no-repeat\"></div>");
319        }
320        el.css('background-image', info.bgimage.replace(/(images\/[^\/]+)$/, path + '$1'));
321        el.css('background-position-x', "50%");
322        el.css('background-position-y', "50%");
323    });
324})(jQuery);
325
326
327var responsiveNavigator = (function ($) {
328    "use strict";
329    return function () {
330        if (typeof headerObjectResizer !== 'undefined' && headerObjectResizer.isPreview) return;
331
332        var sheet = $('.art-sheet');
333        var sheetWidth = sheet.outerWidth();
334
335        $(".art-slider").each(function () {
336            var currentSlider = $(this);
337            var currentSliderWidth = currentSlider.width();
338
339            var sliderNavigator = currentSlider.siblings(".art-slidenavigator");
340            if (sliderNavigator.length) {
341                var off = sheetLeftFunc(sheet, sliderNavigator);
342                var calcWidth = isContentSlider(sliderNavigator) ? currentSliderWidth : sheetWidth;
343
344                var navigatorWidth = sliderNavigator.outerWidth();
345                var offset = parseInt(sliderNavigator.attr('data-offset') || 0, 10);
346
347                // left offset
348                sliderNavigator.css('margin-left', '0px');
349
350                var left = parseFloat(sliderNavigator.attr("data-left"), 10);
351                var newLeft = off + uniToPx(left, navigatorWidth, calcWidth);
352                sliderNavigator.css('left', newLeft + 'px');
353
354
355                // reset top to original value
356                sliderNavigator.css("top", "");
357
358                // top
359                var navigatorHeight = sliderNavigator.outerHeight();
360                var uniy = parseFloat(sliderNavigator.attr('data-top'), 10);
361
362                var sliderHeight = parseInt(currentSlider.css('height'), 10);
363                var newTop = uniToPx(uniy, navigatorHeight, sliderHeight);
364
365                sliderNavigator.css("top", (newTop + offset) + 'px');
366            }
367        });
368    };
369})(jQuery);
370
371jQuery(function ($) {
372    "use strict";
373
374    if (typeof responsiveDesign === "undefined") {
375        $(window).bind("resize", responsiveNavigator);
376    }
377
378    $(window).on("load", function pageInitialize() {
379        $(window).trigger("resize");
380        $(window).off("load", pageInitialize);
381    });
382});
383
384
385/* Icons in Header should have display block.
386 * Otherwise, in case of inline-block there's a space gap in some browsers (Opera 12.16) and icon is cutted.
387 */
388if (browser.opera) {
389    jQuery(function ($) {
390        $(".art-header a[class$='tag-icon']").css("display", "block");
391    });
392}
393
394jQuery(function($) {
395    "use strict";
396     $(window).bind("resize", function () {
397        /*global responsiveDesign */
398        "use strict";
399        if (typeof responsiveDesign !== "undefined" && responsiveDesign.isResponsive)
400            return;
401        var sheetLeft = $(".art-sheet").offset().left;
402        $("header.art-header #art-flash-area").each(function () {
403            var object = $(this);
404            object.css("left", sheetLeft + "px");
405        });
406    });
407});
408
409jQuery(function($) {
410    "use strict";
411    $('nav.art-nav').addClass("desktop-nav");
412});
413
414
415jQuery(function ($) {
416    "use strict";
417    if (!browser.ie || browser.version > 7) {
418        return;
419    }
420    $('ul.art-hmenu>li:not(:first-child)').each(function () { $(this).prepend('<span class="art-hmenu-separator"> </span>'); });
421});
422
423jQuery(function ($) {
424    "use strict";
425    $("ul.art-hmenu a:not([href])").attr('href', '#').click(function (e) { e.preventDefault(); });
426});
427
428
429jQuery(function ($) {
430    "use strict";
431    if (!browser.ie || browser.version > 7) {
432        return;
433    }
434
435    /* Fix width of submenu items.
436    * The width of submenu item calculated incorrectly in IE6-7. IE6 has wider items, IE7 display items like stairs.
437    */
438    $.each($("ul.art-hmenu ul"), function () {
439        var maxSubitemWidth = 0;
440        var submenu = $(this);
441        var subitem = null;
442        $.each(submenu.children("li").children("a"), function () {
443            subitem = $(this);
444            var subitemWidth = subitem.outerWidth(false);
445            if (maxSubitemWidth < subitemWidth) {
446                maxSubitemWidth = subitemWidth;
447            }
448        });
449        if (subitem !== null) {
450            var subitemBorderLeft = parseInt(subitem.css("border-left-width"), 10) || 0;
451            var subitemBorderRight = parseInt(subitem.css("border-right-width"), 10) || 0;
452            var subitemPaddingLeft = parseInt(subitem.css("padding-left"), 10) || 0;
453            var subitemPaddingRight = parseInt(subitem.css("padding-right"), 10) || 0;
454            maxSubitemWidth -= subitemBorderLeft + subitemBorderRight + subitemPaddingLeft + subitemPaddingRight;
455            submenu.children("li").children("a").css("width", maxSubitemWidth + "px");
456        }
457    });
458});
459
460jQuery(function ($) {
461    "use strict";
462    var setDirection = function() {
463        setHMenuOpenDirection({
464            container: "div.art-sheet",
465            defaultContainer: "#art-main",
466            menuClass: "art-hmenu",
467            leftToRightClass: "art-hmenu-left-to-right",
468            rightToLeftClass: "art-hmenu-right-to-left"
469        });
470    };
471    if (typeof responsiveDesign !== "undefined") {
472        $(window).on('responsive', setDirection);
473    } else {
474        setDirection();
475    }
476});
477
478var setHMenuOpenDirection = (function ($) {
479    "use strict";
480    return (function(menuInfo) {
481        var defaultContainer = $(menuInfo.defaultContainer);
482        defaultContainer = defaultContainer.length > 0 ? defaultContainer = $(defaultContainer[0]) : null;
483
484        $("ul." + menuInfo.menuClass + ">li>ul").each(function () {
485            var submenu = $(this);
486
487            var submenuWidth = submenu.outerWidth(false);
488            var submenuLeft = submenu.offset().left;
489
490            var mainContainer = submenu.parents(menuInfo.container);
491            mainContainer = mainContainer.length > 0 ? mainContainer = $(mainContainer[0]) : null;
492
493            var container = mainContainer || defaultContainer;
494            if (container !== null) {
495                var containerLeft = container.offset().left;
496                var containerWidth = container.outerWidth(false);
497
498                if (submenuLeft + submenuWidth >= containerLeft + containerWidth) {
499                    /* right to left */
500                    submenu.addClass(menuInfo.rightToLeftClass).find("ul").addClass(menuInfo.rightToLeftClass);
501                } else if (submenuLeft <= containerLeft) {
502                    /* left to right */
503                    submenu.addClass(menuInfo.leftToRightClass).find("ul").addClass(menuInfo.leftToRightClass);
504                }
505            }
506        });
507    });
508})(jQuery);
509
510
511var menuExtendedCreate = (function ($) {
512    "use strict";
513    return function () {
514        var sheet = $(".art-sheet");
515        var sheetLeft = sheet.offset().left;
516        var sheetWidth = sheet.width();
517
518        $(".art-hmenu>li").each(function(i, v) {
519            var itm = $(this);
520            var subm = itm.children("ul");
521            if (subm.length === 0) {
522                return;
523            }
524
525            // reset
526            itm.removeClass("ext ext-r ext-l");
527            itm.css("width", "").find(".ext-off,.ext-m,.ext-l,.ext-r").remove();
528            subm.children("li").children("a").css("width", "");
529
530            var lw = 0, rw = 0;
531        
532            if (typeof subm.attr("data-ext-l") !== "undefined" && typeof subm.attr("data-ext-r") !== "undefined") {
533                lw = parseInt(subm.attr("data-ext-l"), 10) + 0;
534                rw = parseInt(subm.attr("data-ext-r"), 10) + 0;
535                itm.addClass("ext-r").addClass("ext-l");
536            } else {
537                var ltr = !subm.hasClass("art-hmenu-right-to-left");
538                itm.addClass(ltr ? "ext-r" : "ext-l");
539            }
540
541            var shadow = 0;
542            if (subm.length > 0) {
543                var lnk = itm.children("a");
544                var lnkWidth = lnk.outerWidth(false);
545                itm.css("width", Math.round(parseFloat(lnkWidth, 10)) + "px");
546                var menubarMargin = 5 * 2; // margin * 2 sides
547                var menubarBorder = 1 * 2; // border 1 side
548                var submWidth = subm.width() + shadow + menubarMargin + menubarBorder;
549                var w = submWidth - lnkWidth;
550                $("<div class=\"ext-m\"></div>").insertBefore(lnk);
551                if (w < 0) {
552                    var submA = subm.children("li").children("a");
553                    var pL = parseInt(submA.css("padding-left").replace("px", ""), 10) || 0;
554                    var pR = parseInt(submA.css("padding-right").replace("px", ""), 10) || 0;
555                    var bL = parseInt(submA.css("border-left").replace("px", ""), 10) || 0;
556                    var bR = parseInt(submA.css("border-right").replace("px", ""), 10) || 0;
557                    subm.children("li").children("a").css("width", (lnkWidth - pL - pR - bL - bR) + "px");
558                    submWidth = subm.width() + shadow + menubarMargin + menubarBorder;
559                    w = submWidth - lnkWidth;
560                }
561                $("<div class=\"ext-l\" style=\"width: " + (lw > 0 ? lw : Math.round(parseFloat(w, 10))) + "px;\"></div>").insertBefore(lnk);
562                $("<div class=\"ext-r\" style=\"width: " + (rw > 0 ? rw : Math.round(parseFloat(w, 10))) + "px;\"></div>").insertBefore(lnk);
563                itm.addClass("ext");
564            }
565        });
566    };
567})(jQuery);
568jQuery(window).load(menuExtendedCreate);
569
570jQuery(function ($) {
571    'use strict';
572
573    if (browser.ie && browser.version < 8) {
574        $(window).bind('resize', function() {
575            var c = $('div.art-content');
576            var s = c.parent().children('.art-layout-cell:not(.art-content)');
577            var w = 0;
578            c.hide();
579            s.each(function() { w += $(this).outerWidth(true); });
580            c.w = c.parent().width(); c.css('width', c.w - w + 'px');
581            c.show();
582        });
583    }
584
585    $(window).trigger('resize');
586});
587
588jQuery(function($) {
589    "use strict";
590    if (!$('html').hasClass('ie7')) {
591        return;
592    }
593    $('ul.art-vmenu li:not(:first-child),ul.art-vmenu li li li:first-child,ul.art-vmenu>li>ul').each(function () { $(this).append('<div class="art-vmenu-separator"> </div><div class="art-vmenu-separator-bg"> </div>'); });
594});
595
596
597
598var artButtonSetup = (function ($) {
599    'use strict';
600    return (function (className) {
601        $.each($("a." + className + ", button." + className + ", input." + className), function (i, val) {
602            var b = $(val);
603            if (!b.hasClass('art-button')) {
604                b.addClass('art-button');
605            }
606            if (b.is('input')) {
607                b.val(b.val().replace(/^\s*/, '')).css('zoom', '1');
608            }
609            b.mousedown(function () {
610                var b = $(this);
611                b.addClass("active");
612            });
613            b.mouseup(function () {
614                var b = $(this);
615                if (b.hasClass('active')) {
616                    b.removeClass('active');
617                }
618            });
619            b.mouseleave(function () {
620                var b = $(this);
621                if (b.hasClass('active')) {
622                    b.removeClass('active');
623                }
624            });
625        });
626    });
627})(jQuery);
628jQuery(function () {
629    'use strict';
630    artButtonSetup("art-button");
631});
632
633jQuery(function($) {
634    'use strict';
635    $('input.art-search-button, form.art-search input[type="submit"]').attr('value', '');
636});
637
638var Control = (function ($) {
639    'use strict';
640    return (function () {
641        this.init = function(label, type, callback) {
642            var chAttr = label.find('input[type="' +type + '"]').attr('checked');
643            if (chAttr === 'checked') {
644              label.addClass('art-checked');
645            }
646
647            label.mouseleave(function () {
648              $(this).removeClass('hovered').removeClass('active');
649            });
650            label.mouseover(function () {
651              $(this).addClass('hovered').removeClass('active');
652            });
653            label.mousedown(function (event) {
654              if (event.which !== 1) {
655                  return;
656              }
657              $(this).addClass('active').removeClass('hovered');
658            });
659            label.mouseup(function (event) {
660              if (event.which !== 1) {
661                  return;
662              }
663              callback.apply(this);
664              $(this).removeClass('active').addClass('hovered');
665            });
666        };
667    });
668})(jQuery);
669
670
671jQuery(function ($) {
672    'use strict';
673    $('.art-pager').contents().filter(
674        function () {
675            return this.nodeType === this.TEXT_NODE;
676        }
677    ).remove();
678});
679var fixRssIconLineHeight = (function ($) {
680    "use strict";
681    return function (className) {
682        $("." + className).css("line-height", $("." + className).height() + "px");
683    };
684})(jQuery);
685
686jQuery(function ($) {
687    "use strict";
688    var rssIcons = $(".art-rss-tag-icon");
689    if (rssIcons.length){
690        fixRssIconLineHeight("art-rss-tag-icon");
691        if (browser.ie && browser.version < 9) {
692            rssIcons.each(function () {
693                if ($.trim($(this).html()) === "") {
694                    $(this).css("vertical-align", "middle");
695                }
696            });
697        }
698    }
699});
700var ThemeLightbox = (function ($) {
701    'use strict';
702    return (function () {
703        var images = $(".art-lightbox");
704        var current;
705        this.init = function (ctrl) {
706            $(".art-lightbox").mouseup({ _ctrl: ctrl }, function (e) {
707                if ((e.data._ctrl === true && !e.ctrlKey) || (e.which && e.which !== 1)) {
708                    return;
709                }
710
711                images = $(".art-lightbox");
712
713                current = images.index(this);
714
715                var imgContainer = $('.art-lightbox-wrapper');
716                if (imgContainer.length === 0) {
717                    imgContainer = $('<div class="art-lightbox-wrapper">').css('line-height', $(window).height() + "px")
718                    .appendTo($("body"));
719
720                    var closeBtn = $('<div class="close"><div class="cw"> </div><div class="ccw"> </div><div class="close-alt">&#10007;</div></div>')
721                .click(close);
722                    closeBtn.appendTo(imgContainer);
723                    showArrows();
724                }
725
726                move(current);
727            });
728        };
729
730        function move(index) {
731            if (index < 0 || index >= images.length) {
732                return;
733            }
734
735            showError(false);
736
737            current = index;
738
739            $(".art-lightbox-wrapper .art-lightbox-image:not(.active)").remove();
740
741            var active = $(".art-lightbox-wrapper .active");
742            var target = $('<img class="art-lightbox-image" alt="" src="' + getFullImgSrc($(images[current]).attr("src")) + '" />').click(function () {
743                if ($(this).hasClass("active")) {
744                    move(current + 1);
745                }
746            });
747
748            if (active.length > 0) {
749                active.after(target);
750            } else {
751                $(".art-lightbox-wrapper").append(target);
752            }
753
754            showArrows();
755            showLoader(true);
756
757            bindMouse($(".art-lightbox-wrapper").add(target));
758
759            target.load(function () {
760                showLoader(false);
761
762                active.removeClass("active");
763                target.addClass("active");
764            });
765
766            target.error(function () {
767                showLoader(false);
768                active.removeClass("active");
769                target.addClass("active");
770                target.attr("src", $(images[current]).attr("src"));
771            });
772        }
773
774        function showArrows() {
775            if ($(".art-lightbox-wrapper .arrow").length === 0) {
776                $(".art-lightbox-wrapper").append(
777                    $('<div class="arrow left"><div class="arrow-t ccw"> </div><div class="arrow-b cw"> </div><div class="arrow-left-alt">&#8592;</div></div>')
778                        .css("top", $(window).height() / 2 - 40)
779                        .click(function () {
780                            if (!$(this).hasClass("disabled")) {
781                                move(current - 1);
782                            }
783                        })
784                );
785                $(".art-lightbox-wrapper").append(
786                    $('<div class="arrow right"><div class="arrow-t cw"> </div><div class="arrow-b ccw"> </div><div class="arrow-right-alt">&#8594;</div></div>')
787                        .css("top", $(window).height() / 2 - 40)
788                        .click(function () {
789                            if (!$(this).hasClass("disabled")) {
790                                move(current + 1);
791                            }
792                        })
793                );
794            }
795
796            if (current === 0) {
797                $(".art-lightbox-wrapper .arrow.left").addClass("disabled");
798            } else {
799                $(".art-lightbox-wrapper .arrow.left").removeClass("disabled");
800            }
801
802            if (current === images.length - 1) {
803                $(".art-lightbox-wrapper .arrow.right").addClass("disabled");
804            } else {
805                $(".art-lightbox-wrapper .arrow.right").removeClass("disabled");
806            }
807        }
808
809        function showError(enable) {
810            if (enable) {
811                $(".art-lightbox-wrapper").append($('<div class="lightbox-error">The requested content cannot be loaded.<br/>Please try again later.</div>')
812                        .css({ "top": $(window).height() / 2 - 60, "left": $(window).width() / 2 - 170 }));
813            } else {
814                $(".art-lightbox-wrapper .lightbox-error").remove();
815            }
816        }
817
818        function showLoader(enable) {
819            if (!enable) {
820                $(".art-lightbox-wrapper .loading").remove();
821            }
822            else {
823                $('<div class="loading"> </div>').css({ "top": $(window).height() / 2 - 16, "left": $(window).width() / 2 - 16 }).appendTo($(".art-lightbox-wrapper"));
824            }
825        }
826
827        var close = function () {
828            $(".art-lightbox-wrapper").remove();
829        };
830
831        function bindMouse(img) {
832            img.bind('mousewheel DOMMouseScroll', function (e) {
833                var orgEvent = window.event || e.originalEvent;
834                var delta = (orgEvent.wheelDelta ? orgEvent.wheelDelta : orgEvent.detail * -1) > 0 ? 1 : -1;
835                move(current + delta);
836                e.preventDefault();
837            }).mousedown(function (e) {
838                // close on middle button click
839                if (e.which === 2) {
840                    close();
841                }
842                e.preventDefault();
843            });
844        }
845
846        function getFullImgSrc(src) {
847            var fileName = src.substring(0, src.lastIndexOf('.'));
848            var ext = src.substring(src.lastIndexOf('.'));
849            return fileName + "-large" + ext;
850        }
851
852    });
853})(jQuery);
854
855jQuery(function () {
856    'use strict';
857    new ThemeLightbox().init();
858});
859
860(function ($) {
861    'use strict';
862    // transition && transitionEnd && browser prefix
863    $.support.themeTransition = (function () {
864        var thisBody = document.body || document.documentElement,
865            thisStyle = thisBody.style,
866            support = thisStyle.transition !== undefined ||
867                thisStyle.WebkitTransition !== undefined ||
868                thisStyle.MozTransition !== undefined ||
869                thisStyle.MsTransition !== undefined ||
870                thisStyle.OTransition !== undefined;
871        return support && {
872            event: (function () {
873                return "transitionend webkitTransitionEnd otransitionend oTransitionEnd";
874            })(),
875            prefix: (function () {
876                return ({
877                    opera: "-o-",
878                    firefox: "-moz-",
879                    chrome: "-webkit-",
880                    safari: "-webkit-",
881                    ie: ""
882                }[browser.name] || "");
883            })()
884        };
885    })();
886
887    window.BackgroundHelper = function () {
888        var slides = [];
889        var direction = "next";
890        var motion = "horizontal";
891        var width = 0;
892        var height = 0;
893        var multiplier = 1;
894        var originalWidth = 0;
895        var originalHeight = 0;
896        var transitionDuration = "";
897
898        this.init = function (motionType, dir, duration) {
899            direction = dir;
900            motion = motionType;
901            slides = [];
902            width = 0;
903            height = 0;
904            multiplier = 1;
905            originalWidth = 0;
906            originalHeight = 0;
907            transitionDuration = duration;
908        };
909
910        this.processSlide = function (element, modify) {
911            this.updateSize(element, null);
912            var pos = [];
913
914            var bgPosition = element.css("background-position");
915            var positions = bgPosition.split(",");
916            $.each(positions, function (i) {
917                var position = $.trim(this);
918                var point = position.split(" ");
919                var zeroValue = browser.ie && browser.version >= 10 ? 0.1 : 0;
920                if (point.length > 1) {
921                    var x = point[0].indexOf('%') === -1 ? parseFloat(point[0], 10) : zeroValue;
922                    var y = point[1].indexOf('%') === -1 ? parseFloat(point[1], 10) : zeroValue;
923                    pos.push({ x: x, y: y });
924                } else {
925                    pos.push({ x: zeroValue, y: zeroValue });
926                }
927            });
928
929            slides.push({
930                "images": element.css("background-image"),
931                "sizes": element.css("background-size"),
932                "positions": pos
933            });
934
935            if (modify)
936                element.css("background-image", "none");
937        };
938
939        this.updateSize = function (element, initialSize) {
940            width = element.outerWidth(false);
941            height = element.outerHeight();
942            if (initialSize && parseInt(initialSize.width, 10) !== 0) {
943                originalWidth = parseInt(initialSize.width, 10);
944                originalHeight = parseInt(initialSize.height, 10);
945                if (motion === "fade") {
946                    $.each(element.children(), function (i) {
947                        $(this).css("background-position", getCssPositions(slides[i].positions, { x: 0, y: 0 }));
948                    });
949                }
950            }
951        };
952
953        this.setBackground = function (element, items) {
954            var bg = [];
955            var sizes = [];
956            $.each(items, function (i, o) {
957                bg.push(o.images);
958                sizes.push(o.sizes);
959            });
960            element.css({
961                "background-image": bg.join(", "),
962                //"background-size": sizes.join(", "),
963                "background-repeat": "no-repeat"
964            });
965        };
966
967        this.setPosition = function (element, items) {
968            var pos = [];
969            $.each(items, function (i, o) {
970                pos.push(o.positions);
971            });
972            element.css({
973                "background-position": pos.join(", ")
974            });
975        };
976
977        this.current = function (index) {
978            return slides[index] || null;
979        };
980
981        this.next = function (index) {
982            var next;
983            if (direction === "next") {
984                next = (index + 1) % slides.length;
985            } else {
986                next = index - 1;
987                if (next < 0) {
988                    next = slides.length - 1;
989                }
990            }
991            return slides[next];
992        };
993
994        this.items = function (prev, next, move) {
995            var prevItem = { x: 0, y: 0 };
996            var nextItem = { x: 0, y: 0 };
997            var isDirectionNext = direction === "next";
998            var verticalOffset = -(originalHeight - height) / 2;
999            var horizontalOffset = -(originalWidth - width) / 2;
1000            if (motion === "horizontal") {
1001                prevItem.y = nextItem.y = -(originalHeight - height) / 2;
1002                prevItem.x = horizontalOffset;
1003                nextItem.x = (isDirectionNext ? originalWidth : -originalWidth) + horizontalOffset;
1004                if (move) {
1005                    prevItem.x += isDirectionNext ? -originalWidth : originalWidth;
1006                    nextItem.x += isDirectionNext ? -originalWidth : originalWidth;
1007                }
1008            } else if (motion === "vertical") {
1009                prevItem.x = nextItem.x = horizontalOffset;
1010                prevItem.y = verticalOffset;
1011                nextItem.y = (isDirectionNext ? originalHeight : -originalHeight) + verticalOffset;
1012                if (move) {
1013                    prevItem.y += isDirectionNext ? -originalHeight : originalHeight;
1014                    nextItem.y += isDirectionNext ? -originalHeight : originalHeight;
1015                }
1016            }
1017            var result = [];
1018            if (!!prev) {
1019                result.push({ images: prev.images, positions: getCssPositions(prev.positions, prevItem), sizes: prev.sizes });
1020            }
1021            if (!!next) {
1022                result.push({ images: next.images, positions: getCssPositions(next.positions, nextItem), sizes: next.sizes });
1023            }
1024
1025            if (direction === "next") {
1026                result.reverse();
1027            }
1028
1029            return result;
1030        };
1031
1032        this.transition = function (container, on) {
1033            container.css($.support.themeTransition.prefix + "transition", on ? "background-position " + transitionDuration + " ease-in-out" : "");
1034        };
1035
1036        function getCssPositions(positions, offset) {
1037            var result = [];
1038            if (positions === undefined) {
1039                return "";
1040            }
1041            offset.x = offset.x || 0;
1042            offset.y = offset.y || 0;
1043            for (var i = 0; i < positions.length; i++) {
1044                result.push((positions[i].x * 1 + offset.x) + "px " + (positions[i].y * 1 + offset.y) + "px");
1045            }
1046            return result.join(", ");
1047        }
1048    };
1049
1050
1051    var ThemeSlider = function (element, settings) {
1052
1053        var interval = null;
1054        var active = false;
1055        var children = element.find(".active").parent().children();
1056        var last = false;
1057        var running = false;
1058
1059        this.settings = $.extend({}, {
1060            "animation": "horizontal",
1061            "direction": "next",
1062            "speed": 600,
1063            "pause": 2500,
1064            "auto": true,
1065            "repeat": true,
1066            "navigator": null,
1067            "clickevents": true,
1068            "hover": true,
1069            "helper": null
1070        }, settings);
1071
1072        this.move = function (direction, next) {
1073            var activeItem = element.find(".active"),
1074                nextItem = next || activeItem[direction](),
1075                innerDirection = this.settings.direction === "next" ? "forward" : "back",
1076                reset = direction === "next" ? "first" : "last",
1077                moving = interval,
1078                slider = this, tmp;
1079
1080            active = true;
1081
1082            if (moving) { this.stop(true); }
1083
1084            if (!nextItem.length) {
1085                nextItem = element.find(".art-slide-item")[reset]();
1086                if (!this.settings.repeat) { last = true; active = false; return; }
1087            }
1088
1089            if ($.support.themeTransition) {
1090                nextItem.addClass(this.settings.direction);
1091                tmp = nextItem.get(0).offsetHeight;
1092
1093                activeItem.addClass(innerDirection);
1094                nextItem.addClass(innerDirection);
1095
1096                element.trigger("beforeSlide", children.length);
1097
1098                element.one($.support.themeTransition.event, function () {
1099                    nextItem.removeClass(slider.settings.direction)
1100                        .removeClass(innerDirection)
1101                        .addClass("active");
1102                    activeItem.removeClass("active")
1103                        .removeClass(innerDirection);
1104                    active = false;
1105                    setTimeout(function () {
1106                        element.trigger("afterSlide", children.length);
1107                    }, 0);
1108                });
1109            } else {
1110                element.trigger("beforeSlide", children.length);
1111
1112                activeItem.removeClass("active");
1113                nextItem.addClass("active");
1114                active = false;
1115
1116                element.trigger("afterSlide", children.length);
1117            }
1118
1119            this.navigate(nextItem);
1120
1121            if (moving) { this.start(); }
1122        };
1123
1124        this.navigate = function (position) {
1125            var index = children.index(position);
1126            $(this.settings.navigator).children().removeClass("active").eq(index).addClass("active");
1127        };
1128
1129        this.to = function (index) {
1130            var activeItem = element.find(".active"),
1131                children = activeItem.parent().children(),
1132                activeIndex = children.index(activeItem),
1133                slider = this;
1134
1135            if (index > (children.length - 1) || index < 0) {
1136                return;
1137            }
1138
1139            if (active) {
1140                return element.one("afterSlide", function () {
1141                    slider.to(index);
1142                });
1143            }
1144
1145            if (activeIndex === index) {
1146                return;
1147            }
1148
1149            this.move(index > activeIndex ? "next" : "prev", $(children[index]));
1150        };
1151
1152        this.next = function () {
1153            if (!active) {
1154                if (last) { this.stop(); return; }
1155                this.move("next");
1156            }
1157        };
1158
1159        this.prev = function () {
1160            if (!active) {
1161                if (last) { this.stop(); return; }
1162                this.move("prev");
1163            }
1164        };
1165
1166        this.start = function (force) {
1167            if (!!force) {
1168                setTimeout($.proxy(this.next, this), 10);
1169            }
1170            interval = setInterval($.proxy(this.next, this), this.settings.pause);
1171            running = true;
1172        };
1173
1174        this.stop = function (pause) {
1175            clearInterval(interval);
1176            interval = null;
1177            running = !!pause;
1178            active = false;
1179        };
1180
1181        this.active = function () {
1182            return running;
1183        };
1184
1185        this.moving = function () {
1186            return active;
1187        };
1188
1189        this.navigate(children.filter(".active"));
1190
1191        if (this.settings.clickevents) {
1192            $(this.settings.navigator).on("click", "a", { slider: this }, function (event) {
1193                var activeIndex = children.index(children.filter(".active"));
1194                var index = $(this).parent().children().index($(this));
1195                if (activeIndex !== index) {
1196                    event.data.slider.to(index);
1197                }
1198                event.preventDefault();
1199            });
1200        }
1201
1202        if (this.settings.hover) {
1203            var slider = this;
1204            element.add(this.settings.navigator)
1205                   .add(element.siblings(".art-shapes")).hover(function () {
1206                       if (element.is(":visible") && !last) { slider.stop(true); }
1207                   }, function () {
1208                       if (element.is(":visible") && !last) { slider.start(); }
1209                   });
1210        }
1211    };
1212
1213    $.fn.themeSlider = function (arg) {
1214        return this.each(function () {
1215            var element = $(this),
1216                data = element.data("slider"),
1217                options = typeof arg === "object" && arg;
1218
1219            if (!data) {
1220                data = new ThemeSlider(element, options);
1221                element.data("slider", data);
1222            }
1223
1224            if (typeof arg === "string" && data[arg]) {
1225                data[arg]();
1226            } else if (data.settings.auto && element.is(":visible")) {
1227                data.start();
1228            }
1229        });
1230    };
1231
1232})(jQuery);
1233
1234
1235
1236
1237if (typeof window.resizeData === 'undefined') window.resizeData = {};
1238window.resizeData.headerPageWidth = false;
1239if (typeof window.defaultResponsiveData === 'undefined') window.defaultResponsiveData = [false, true, true, true, true, ];
1240
1241resizeData['headline'] = {
1242   responsive: [
1243                  { left: 0.01, top: 0.05, visible: true }, 
1244                  { left: 0.01, top: 0.05, visible: true }, 
1245                  { left: 0.01, top: 0.05, visible: true }, 
1246                  { left: 0.01, top: 0.05, visible: true }, 
1247                  { left: 0.01, top: 0.05, visible: true }, 
1248               ],
1249   area: {
1250       x: 0,
1251       y: 0
1252   },
1253   width: 158,
1254   height: 28,
1255   autoWidth: true};
1256
1257resizeData['object227400126'] = {
1258   responsive: [
1259                  { left: 0.98, top: 0.06, visible: true }, 
1260                  { left: 0.98, top: 0.06, visible: true }, 
1261                  { left: 0.98, top: 0.06, visible: true }, 
1262                  { left: 0.98, top: 0.06, visible: true }, 
1263                  { left: 0.98, top: 0.06, visible: true }, 
1264               ],
1265   area: {
1266       x: 0,
1267       y: 0
1268   },
1269   width: 200,
1270   height: 28,
1271   autoWidth: false};
1272
1273// used to apply compicated values in style like '!important!
1274function applyCss(object, param, value) {
1275    var rg = new RegExp(param + '\s*:\s*[^;]+;', "i");
1276    var style = object.attr('style');
1277    var str = param + ': ' + value + ';';
1278    if (rg.test(style)) {
1279        style = style.replace(rg, str);
1280    }
1281    else {
1282        style += '; ' + str;
1283    }
1284
1285    object.attr('style', style);
1286}
1287
1288// convert universal coord to pixels
1289function uniToPx(uni, size, parentSize) {
1290    uni = parseFloat(uni || '0');
1291    if (uni < 0) {
1292        uni = uni * size;
1293    } else if (uni >= 1) {
1294        uni = parentSize - (2 - uni) * size;
1295    } else {
1296        uni = uni * (parentSize - size);
1297    }
1298
1299    return uni;
1300}
1301
1302function isContentSlider(object) {
1303    var isHeader = object.parents('header').length > 0;
1304    if (isHeader) {
1305        return false;
1306    }
1307    var isPageSlider = object.parents('.art-pageslider').length > 0;
1308    if (isPageSlider)
1309        return false;
1310
1311    return true;
1312}
1313
1314function sheetLeftFunc(sheet, object) {
1315    var sheetLeft = sheet.offset().left;
1316
1317    var isHeader = object.parents('header').length > 0;
1318    if (isHeader) {
1319        if (resizeData.headerPageWidth) return sheetLeft;
1320    } else {
1321        var isPageSlider = object.parents('.art-pageslider').length > 0;
1322        if (isPageSlider) {
1323            if (resizeData.pageSliderPageWidth) return sheetLeft;
1324        }
1325    }
1326
1327    return 0;
1328}
1329
1330var headerObjectResizer = {
1331    
1332    postInit: false,
1333
1334    resize: (function ($) {
1335        'use strict';
1336        return function () {
1337            if (!headerObjectResizer.postInit && typeof responsiveDesign !== 'undefined') {
1338                $(window).on('responsiveResize', headerObjectResizer.resize);
1339                headerObjectResizer.postInit = true;
1340            }
1341
1342            var responsiveType = 0;
1343            // if we don't use full custom responsive so we MUST cleanup all styles
1344            var cleanUpStyles = false;
1345            // when use default respo so while in desktop mode always use 0-type, in other case cleanup our styles
1346            if (typeof responsiveDesign !== 'undefined' && 
1347                    defaultResponsiveData[responsiveDesign.responsiveTypeIdx] &&
1348                    responsiveDesign.isResponsive) {
1349                cleanUpStyles = true;
1350            }
1351
1352            if (typeof responsiveDesign !== 'undefined') {
1353                if (responsiveDesign.responsiveType === 'tabletlandscape') {
1354                    responsiveType = 1;
1355                } else if (responsiveDesign.responsiveType === 'tabletportrait') {
1356                    responsiveType = 2;
1357                } else if (responsiveDesign.responsiveType === 'phonelandscape') {
1358                    responsiveType = 3;
1359                } else if (responsiveDesign.responsiveType === 'phoneportrait') {
1360                    responsiveType = 4;
1361                }
1362            }
1363
1364            var sheet = $('.art-sheet');
1365            var sheetWidth = sheet.outerWidth();
1366
1367            var header = $('header');
1368            var height = 0;
1369            var cssPrefix = 'art-';
1370
1371            // move html shapes
1372            var headerQuery = 'header.art-header .art-shapes>
1372*, header.art-header .art-textblock, header.art-header>.art-headline, header.art-header>.art-slogan, header.art-header>.art-positioncontrol, header.art-header>.art-logo';
1373            var pageSliderQuery = '.art-pageslider .art-slide-item>*';
1374            if (headerObjectResizer.isPreview) {
1375                headerQuery = 'header .art-slider';
1376                pageSliderQuery = '.art-pageslider .art-slider, .art-pageslider .art-textblock';
1377            }
1378            $(headerQuery + ', ' + pageSliderQuery).each(function () {
1379                var object = $(this);
1380                height = object.parent().height();
1381
1382                var off = sheetLeftFunc(sheet, object);
1383
1384                var cls = object.attr('class').split(' ');
1385                $.each(cls, function (key, val) {
1386                    val = $.trim(val);
1387                    if (val.length === 0) return;
1388                    if (val.indexOf(cssPrefix) !== 0) return;
1389
1390                    val = val.substring(cssPrefix.length);
1391                    var data = resizeData[val];
1392                    if (typeof data === 'undefined') return;
1393
1394                    if (cleanUpStyles) {
1395                        object.css('display', '');
1396                        object.css('left', '');
1397                        object.css('margin-left', '');
1398                    }
1399
1400                    var respData = data.responsive[responsiveType];
1401                    if (respData.visible) {
1402                        object.css('display', '');
1403                    } else {
1404                        applyCss(object, 'display', 'none !important');
1405                    }
1406
1407                    if (cleanUpStyles || !respData.visible) return false;
1408
1409                    var x = uniToPx(respData.left, data.autoWidth ? object.width() : data.width, sheetWidth);
1410                    x += off;
1411
1412                    var y = uniToPx(respData.top, data.height, height);
1413
1414                    object.css('left', x + 'px');
1415                    object.css('top', y + 'px');
1416                    applyCss(object, 'margin-left', '0px !important');
1417                    return false;
1418                });
1419            });
1420
1421            // move images in slide's background-images
1422            var slides = $('.art-slide-item').add(header);
1423            if (browser.ie && browser.version <= 8) {
1424                slides = slides.add('.art-slide-item .ie8fix');
1425            }
1426            $.each(slides, function (slideIdx, slide) {
1427                slide = $(slide);
1428
1429                if (slide.closest('.art-collage').length > 0 || cleanUpStyles) {
1430                    slide.css('background-position', '');
1431                    return;
1432                }
1433
1434                var slideVisible = slide.is(':visible');
1435                if (!slideVisible && browser.ie) {
1436                    slide.css('display', 'block');
1437                }
1438
1439                var off = sheetLeftFunc(sheet, slide);
1440
1441                if (browser.ie && browser.version <= 8) {
1442                    var s = slide.attr('style');
1443                    if (s) {
1444                        s = s.replace(/background\-position[^;]+/, '');
1445                        slide.attr('style', s);
1446                    }
1447                } else {
1448                    slide.css('background-position', '');
1449                }
1450                slide.css('background-size', '');
1451
1452                var bgImage = slide.css('background-image') ? slide.css('background-image').split(',') : [];
1453                var bgPosition = slide.css('background-position') && (slide.css('background-position').replace(/[0][^\d]+/gi, '')).length > 0 ?
1454                    slide.css('background-position').split(',') :
1455                    [];
1456                if (bgImage.length !== bgPosition.length) {
1457                    slide.css('display', '');
1458                    return;
1459                }
1460
1461                height = slide.height();
1462                if (height === 0) height = slide.parent().height();
1463
1464                $.each(bgImage, function (idx, val) {
1465                    var findImageIdx = val.lastIndexOf('images/');
1466                    var findDotIdx = val.lastIndexOf('.');
1467                    if (findImageIdx === -1 || findDotIdx === -1) return;
1468
1469                    var name = val.substring(findImageIdx + 7, findDotIdx);
1470
1471                    var data = resizeData[name];
1472                    if (typeof data === 'undefined') return;
1473
1474                    var respData = data.responsive[responsiveType];
1475                    // big default coordinates for hiding
1476                    var x = 9999, y = 9999;
1477                    if (respData.visible) {
1478                        x = uniToPx(respData.left, data.width, sheetWidth);
1479                        x += off + data.area.x;
1480
1481                        y = uniToPx(respData.top, data.height, height);
1482                        y += data.area.y;
1483                    }
1484
1485                    bgPosition[idx] = x + 'px ' + y + 'px';
1486                });
1487
1488                slide.css('background-position', bgPosition.join(','));
1489
1490                if (!slideVisible && browser.ie) {
1491                    slide.css('display', '');
1492                }
1493            });
1494
1495        };
1496    })(jQuery),
1497
1498    initialize: function ($) {
1499        if (!browser.ie || browser.version > 8) {
1500            $(window).on('resize', this.resize);
1501        } else {
1502            var resizeTimeout;
1503            var self = this;
1504            $(window).on("resize", function () {
1505                clearTimeout(resizeTimeout);
1506                resizeTimeout = setTimeout(function () { self.resize(); }, 25);
1507            });
1508        }
1509    }
1510};
1511
1512headerObjectResizer.initialize(jQuery);
1513jQuery(function ($) {
1514    "use strict";
1515    if (!browser.ie || browser.version > 8)
1516        return;
1517    processElementMultiplyBg(".art-header", {
1518        "bgimage": "url('images/header.png')",
1519        "bgposition": "0 0",
1520        "images": "",
1521        "positions": ""
1522    });
1523});
1524if (typeof window.resizeData === 'undefined') window.resizeData = {};
1525
1526window.resizeData.pageSliderPageWidth = false;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.