var base_path                   = '/';
var pretty_photo_initialized    = false;

$(window).resize(function() {
    // what is the width of the body/browser
    var window_width = $(window).width();

    // only set up prettyPhoto if the browser width is greater than set width
    if(window_width > 767 && pretty_photo_initialized !== true)
    {
        initialize_pretty_photo();
    }
});

jQuery(document).ready(function($){
    // set up the action on any 'hide message' links
    $('a#hide-notice-message').click(function(e){
        // make sure the link isn't followed
        e.preventDefault();

        // hide the parent container
        $(this).parent().fadeOut('slow');
    });

    // what is the width of the body/browser
    var window_width = $(window).width();

    // only set up prettyPhoto if the browser width is greater than set width
    if(window_width > 767 && pretty_photo_initialized !== true)
    {
        initialize_pretty_photo();
    }
});

function initialize_pretty_photo()
{
    // set up the prettyPhoto links
    $("a[rel^='prettyPhoto']").prettyPhoto({
        theme:          'light_rounded',
        show_title:     false,
        social_tools:   false,
        deeplinking:    false
    });

    pretty_photo_initialized = true;
}
