var openedWhichSlide = "";
var openedWhich = "";
var openedLabel = "";

function slideMe(which, sourceLabel) {
    // check if clicked label is already opened
    if (openedWhichSlide != which) {
        // check if already a label opened
        if (openedWhichSlide != '') {
            // close this label
            $("#" + openedWhichSlide).slideUp('slow');
            $("#" + openedLabel).attr("class","trigger");
            openedWhichSlide == '';
        }

        // open clicked label
        $("#" + which).slideDown('slow');
        // set label to active
        $("#" + sourceLabel).attr("class","triggerexpanded");
        // mark label as opened
        openedWhichSlide = which;
        openedLabel = sourceLabel;

    } else {
        $("#" + openedWhichSlide).slideUp('slow');
        $("#" + openedLabel).attr("class","trigger");

        openedWhichSlide = '';
        openedLabel = '';
    }
}

function hoverMe(path, which, suffix) {
	$("#banner" + which).attr("style",'background: url("' + path + 'images/banner/banner' + which + suffix + '.png") 0 0 no-repeat');
}

function getlink(url) {
    location.href = url;
}
