// initialize the jquery code
$(document).ready(function() {
    //close all the content divs on page load
    $('.mover').hide();

    // toggle slide
    $('#slideToggle').click(function() {
        // by calling sibling, we can use same div for all demos
        $(this).siblings('.mover').slideToggle();
    });

    // regular toggle with speed of 'slow'
    $('#toggleSlow').click(function() {
        $(this).siblings('.mover').toggle('slow');
    });

    // fade in and out
    $('#fadeInOut').toggle(function() {
        $(this).siblings('.mover').fadeIn('slow');
    }, function() {
        $(this).siblings('.mover').fadeOut('slow');
    });

    // used to open pages in thickboxes
    openThickbox = function(url, title, message, width, height) {
        if (!width) width = 490;
        if (!height) height = 106;
        tb_show(null, url + '?title=' + title + '&message=' + message + '&KeepThis=true&TB_iframe=true&modal=true&width=' + width + '&height=' + height, null);
        return false;
    }

    // used to open pages in thickboxes (SSL version)
    openThickboxSSL = function(url, title, message, width, height) {
        if (!width) width = 490;
        if (!height) height = 106;
        tb_show(null, url + '?ssl=true&title=' + title + '&message=' + message + '&KeepThis=true&TB_iframe=true&modal=true&width=' + width + '&height=' + height, null);
        return false;
    }

});

