﻿$(document).ready(function () {
    /*$("#page_container").css("display", "none");
    $("#page_container").fadeIn(400);
    $("#navbar a").click(function (event) {
        event.preventDefault();
        linkLocation = this.href;
        $("#page_container").fadeOut(200, redirectPage);
    });
    function redirectPage() {
        window.location = linkLocation;
    }*/
    $('#news_slider').bxSlider({
        mode: 'fade',
        auto: 'true',
        speed: 1000,
        pause: 4000,
        width: 590,
        prev_text: '',
        next_text: '',
        wrapper_class: 'news_wrapper'
    });
    $(".artistbox").hide();
    $(".showartists").hover(function () {
        $(".artistbox").hide();
        var elementid = $(this).attr("id");
        $("#" + elementid + "-box").toggle();
    });
    $(".artist").overlay({
        expose: { color: '#000000', opacity: 0.75 },
        fixed: false,
        closeOnClick: true
    });
    $(".news").overlay({
        expose: { color: '#000000', opacity: 0.75 },
        fixed: false,
        closeOnClick: true
    });
    $(".artist").tooltip({
        tip: '#image_tooltip',
        offset: [-21, 0], //122, -190
        effect: 'fade'
    }).dynamic();
    $(".news").tooltip({
        tip: '#image_tooltip',
        offset: [122, -190],
        effect: 'fade'
    }).dynamic();
    /*$("#title_right").click(function() {
    // eerst 50px aftrekken om de padding-left te neutraliseren
    document.getElementById("content_left").style.width = getStyle("content_left", "width") - 50 + "px";
    colLeft = setInterval("CollapseLeft()", 10);
    expRight = setInterval("ExpandRight()", 10);
    });
    $("#title_left").click(function() {
    // eerst 50px aftrekken om de padding-left te neutraliseren
    document.getElementById("content_right").style.width = getStyle("content_right", "width") - 50 + "px";
    colRight = setInterval("CollapseRight()", 10);
    expLeft = setInterval("ExpandLeft()", 10);
    });
    setTimeout("waitAndExpand()", 1000);*/
});

/*function waitAndExpand() {
    expLeft = setInterval("ExpandLeft()", 10);
}*/
