hs.graphicsDir      = "3rdparty/highslide/graphics/";
hs.align            = "center";
hs.transitions      = ["expand", "crossfade"];
hs.fadeInOut        = true;
hs.outlineType      = "glossy-dark";
hs.wrapperClassName = "dark";
hs.captionEval      = "this.img.alt";
hs.numberPosition   = "caption";
hs.useBox           = true;
hs.width            = 1000;
hs.height           = 1000;
hs.dimmingOpacity   = 0.85;

hs.addSlideshow(
{
    interval: 5000,
    repeat: false,
    useControls: true,
    fixedControls: "fit",
    overlayOptions:
    {
        position: "bottom center",
        opacity: 0.75,
        hideOnMouseOut: true
    },
    thumbstrip:
    {
        position: "above",
        mode: "horizontal",
        relativeTo: "expander"
    }
});

function highslide_event(event)
{
        if (event != "window_load") return;

        var list   = document.getElementsByTagName("a");
        var object = null;
        var c      = list.length;
        var func   = function() { return hs.expand(this); };

        for (var i = 0; i < c; i++)
        {
                object = list.item(i);
                if (object.className.match(/(^| )highslide($| )/)) object.onclick = func;
        };
};

fx_register_callback(highslide_event);
