﻿$(document).ready(function() {
    $('#news_slider').bxSlider({
        mode: 'fade',
        auto: 'true',
        speed: 1000,
        pause: 4000,
        width: 590,
        prev_text: '',
        next_text: '',
        //prev_img: 'images/button_prev.gif',
        //next_img: 'images/button_next.gif',
        wrapper_class: 'news_wrapper'
    });
    $(".artistbox").hide();
    $(".showartists").click(function() {
        $(".artistbox").hide();
        var elementid = $(this).attr("id");
        $("#" + elementid + "-box").toggle();
    });
    $(".artist").overlay({
        expose: { color: '#000000', opacity: 0.75 },
        closeOnClick: true
    });
    $(".news").overlay({
        expose: { color: '#000000', opacity: 0.75 },
        closeOnClick: true
    });
    $(".artist").tooltip({
        tip: '#image_tooltip',
        offset: [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);
}