
    
    
    

    (function () {
            var v,w,k,F,q,z,
                f = true,
                j = false,
                x = window.attachEvent || null,
                l = window.addEventListener || null,
                t = "string",
                i = "function",
                N = "object",
                n = "src";
            if (typeof window.gSL === "undefined")
                window.gSL = function () {
                    function y(a) {
                        var b;
                        try {
                            b = a.offsetWidth;
                        } catch (c) {
                            b =
                                document.all ? document.documentElement.clientWidth
                                    : window.innerWidth;
                        }
                        if (b === 0 && a !== document.body)
                            b = y(a.parentNode);
                        return b;
                    }

                    function B(a) {
                        var b = 0;
                        if (a)
                            try {
                                b += a.offsetTop;
                                b += B(a.offsetParent);
                            } catch (c) {
                            }
                        return b;
                    }

                    function o(a) {
                        var b,c;
                        b = a.split(".");
                        a = window;
                        for (c = 0; c < b.length; c++)
                            if (typeof a[b[c]] === N || typeof a[b[c]] === i)
                                a = a[b[c]];
                            else {
                                a = null;
                                break;
                            }
                        return a;
                    }

                    function u(a) {
                        var b = "";
                        if (a.charAt(0) !== "/")
                            b = window.location.pathname.substr(0, window.location.pathname.lastIndexOf("/") + 1);
                        return /^http[s]{0,1}\:\/\//.test(a) ? H(a) : H(window.location.protocol
                                                                        + "//"
                                                                        + window.location.host + b
                                                                        + a);
                    };

                    function r() {
                        var a,b,c,g;
                        if (p.length > 0)
                            if (p[0].scripts.length > 0) {
                                a = p[0].scripts[0];
                                b = typeof a.test === t ? o(a.test) : typeof a.test === i ? a.test() : j;
                                c = typeof a.exec === t ? o(a.exec) : typeof a.exec === i ? a.exec : null;
                                if (typeof a.load === t) {
                                    g = u(a.load);
                                    if (m[g] >= 100 || b) {
                                        if (m[g] === 100 && typeof c === i) {
                                            c();
                                            m[g] = 101;
                                        }
                                        p[0].scripts.shift();
                                        r();
                                    } else if (m[g]) {
                                        m[g]++;
                                        if (m[g] < 10)
                                            window.setTimeout(r, 150);
                                    } else {
                                        a = document.createElement("script");
                                        a.onload = function () {
                                            m[this[n]] = 100;
                                            r();
                                        };
                                        if (document.all)
                                            a.onreadystatechange = function () {
                                                if (this.readyState === "complete"
                                                    || this.readyState === "loaded") {
                                                    m[this[n]] = 100;
                                                    r()
                                                }
                                            };
                                        a.setAttribute(n, u(g));
                                        a.setAttribute("type", "text/javascript");
                                        I.appendChild(a);
                                        m[g] = 1;
                                    }
                                } else {
                                    if (typeof c === i)
                                        b || c();
                                    p[0].scripts.shift();
                                    r();
                                }
                            } else {
                                b = p[0];
                                c = typeof b.runCode === t ? o(b.runCode) : typeof b.runCode === i ? b.runCode : null;
                                if (b && typeof c === i)
                                    if ((a = new c(b.bootScriptNode, b.bootConfig)) && a.features && a.selfNode) {
                                        b = new O(a, c, b.bootConfig);
                                        if (l)
                                            if (a.features.orientationchange) {
                                                l("orientationchange", b.checkOrientationchange, f);
                                                l("MozOrientation", b.checkOrientationchange, f);
                                            }
                                        if (typeof a.features.exposure === i) {
                                            b.setExposure(f);
                                            if (l) {
                                                l("scroll", b.checkExposure, f);
                                                l("resize", b.checkExposure, f);
                                            } else if (x) {
                                                x("onscroll", b.checkExposure);
                                                x("onresize", b.checkExposure);
                                            }
                                            b.checkExposure();
                                        } else
                                            typeof o("window.gadgets.window.adjustHeight") === i && window.gadgets.window.adjustHeight();

                                        typeof a.features.listener === i && J.push(b);
                                    }
                                p.shift();
                                r();
                            }
                        return f;
                    }

                    function P(a) {
                        var b, c;
                        a = u(a);
                        b = document.getElementsByTagName("link");
                        for (c = b.length; c-- > 0;)
                            if (b[c].rel === "stylesheet" && b[c].href === a)
                                c = -2;
                        if (c === -1) {
                            b = document.createElement("link");
                            b.setAttribute("rel", "stylesheet");
                            b.setAttribute("type", "text/css");
                            b.setAttribute("href", a);
                            I.appendChild(b);
                        }
                    }

                    function K(a, b) {
                        var c = 0;
                        if (typeof a === t)
                            for (; c < J.length && J[c].messageListener(a, b);)
                                c++;
                        L && L(a, b);
                    }

                    function Q(a) {
                        K(a.data, null);
                    }

                    var p = [],
                        I,
                        m = {},
                        V = 0,
                        M,
                        O,
                        J = [],
                        L = null,
                        H = null;
                    M = window.innerHeight ? function () {
                        return window.innerHeight;
                    } : function () {
                        return document.documentElement.clientHeight;
                    };

                    if (window.addEventListener)
                        window.addEventListener("message", Q, f);
                    else
                        window.attachEvent && window.attachEvent("onmessage", Q);
                    H = typeof o("window.gadgets.io.getProxyUrl") === i
                        ? window.gadgets.io.getProxyUrl : function (a) {
                            return a;
                        };
                    I = document.getElementsByTagName("head")[0];
                    O = function (a, b, c) {
                        function g() {
                            var e;
                            if (!d.e) {
                                d.e = f;
                                e = h.features.exposure();
                                typeof o("window.gadgets.window.adjustHeight") === i && window.gadgets.window.adjustHeight();
                                if (e)
                                    h.selfNode = e;
                            }
                        }

                        function C() {
                            var e;
                            if (s !== -1 && !d.c) {
                                d.c = f;
                                if (d.et) {
                                    window.clearTimeout(d.et);
                                    d.et = null
                                }
                                if (s !== -1) {
                                    e = (document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop ? document.documentElement.scrollTop : window.pageYOffset ? window.pageYOffset : 0) + M();
                                    s = B(h.selfNode);
                                    if (s <= e) {
                                        s = -1;
                                        g();
                                    }
                                }
                                d.c = j;
                            }
                            return f;
                        }

                        function R() {
                            var e;
                            e = y(h.selfNode.parentNode);
                            if (!d.r) {
                                d.r = f;
                                if (d.rt) {
                                    window.clearTimeout(d.rt);
                                    d.rt = null;
                                }
                                if (Math.abs(D - e) > 7) {
                                    D = e;
                                    if (typeof h.features.resize === i) {
                                        if (e = h.features.resize())
                                            h.selfNode = e;
                                    } else
                                        h = new S(h.selfNode, T);
                                    d.e = j;
                                    if (d.x) {
                                        s = 0;
                                        C();
                                    }
                                }
                                d.r = j;
                            }
                            return f;
                        }

                        function U() {
                            h.features.resize && R();
                            d.x && C();
                            return f;
                        }

                        var h = a,
                            S = b,
                            D = y(a.selfNode.parentNode),
                            s = B(a.selfNode),
                            T = c,
                            d = {
                                e: j,
                                c: j,
                                x: j,
                                r: j,
                                o: j,
                                rt: null,
                                et: null
                            };
                        window.setInterval(U, 80);
                        return {
                            setExposure: function (e) {
                                d.x = e;
                            },
                            callExposure: g,
                            checkExposure: C,
                            checkResize: R,
                            checkSubTree: U,
                            checkOrientationchange: function () {
                                var e,
                                    E = y(h.selfNode.parentNode);
                                if (!d.o) {
                                    d.o = f;
                                    if (Math.abs(D - E) > 7) {
                                        D = E;
                                        if (typeof h.features.orientationchange === i)
                                            e = h.features.orientationchange();
                                        else
                                            h = new S(h.selfNode, T);
                                        if (e)
                                            h.selfNode = e;
                                        d.e = j;
                                        if (d.x) {
                                            s = 0;
                                            C();
                                        }
                                    }
                                    d.o = j;
                                }
                                return f;
                            },
                            messageListener: function (e, E) {
                                return typeof h.features.listener === i ? h.features.listener(e, E) : j
                            }
                        }
                    };
                    return {
                        setBootLoader: function (a, b) {
                            var c,
                                g = {
                                    id: gSL.getInstance(),
                                    scripts: b.scripts,
                                    styles: b.styles,
                                    runCode: b.bootObject,
                                    bootConfig: b.bootConfig,
                                    bootScriptNode: a
                                };
                            if (g.runCode && a) {
                                if (typeof g.styles === t)
                                    P(u(g.styles));
                                else
                                    for (c = g.styles.length; c-- > 0;)
                                        P(u(g.styles[c]));
                                p.push(g);
                                return f;
                            } else
                                return j;
                        },
                        startBootLoading: r,
                        getInnerHeight: M,
                        getInstance: function () {
                            return V++
                        }
                    }
                }();
            v = q = null;
            z = document.body.getElementsByTagName("script");

            for (w = 0; w < z.length && !v; w++) {
                k = z[w];

                F = k[n] ? k[n].indexOf("/inter/app/boot/IGA_Tropenhalle_20170514_04.JPG") : -1;

                if (F != -1) {
                    v = k;
                    break;
                }
            }
            q = 



{
    "scripts": [
        {
            "test": "window.jQuery",
            "load": "https://dam.stadt-berlin.de/inter/js/jquery-1.10.2.min.js"
        },
        {
            "test": "window.jQuery.flexslider",
            "load": "https://dam.stadt-berlin.de/inter/js/jquery.flexslider.js"
        },
        {
            "test": "window.Lytebox",
            "load": "https://dam.stadt-berlin.de/inter/js/lytebox_de.js"
        },
        {
            "test": "window.Gallery",
            "load": "https://dam.stadt-berlin.de/inter/js/gallery.js"
        }
    ],
    "styles": [
        "https://dam.stadt-berlin.de/inter/css/gallery.css"
    ],
    "bootObject": "window.Gallery",
    "bootConfig": {
        "contentContext": [
            
        ],
        "cssprefix": "galleryBootLoader0",
        "textProperty": "description",
        "sortProperty": "id",
        "baseUrl": "https://dam.stadt-berlin.de/inter"
    }
}


            if (v && q && typeof q === N)
                if (gSL.setBootLoader(v, q)) {
                    if (l) {
                        l("load", gSL.startBootLoading, f);
                        l("DOMContentLoaded", gSL.startBootLoading, f);
                    } else
                        x ? x("onload", gSL.startBootLoading) : gSL.startBootLoading();
                    return f;
                } else
                    return j;
            else
                return j;
        }
    )();

