$(function() {
    $('#s1').cycle({ 
        fx:    'fade', 
        speed:  1000 
    });
});
$(document).ready(function() {
    $.facebox.settings.closeImage = 'images/facebox/closelabel.png';
    $.facebox.settings.loadingImage = 'images/facebox/loading.gif';
    $('a[rel*=facebox]').facebox();
});

$(document).ready(function(){
    $("#pr_link img").hover(
     function()
     {
      this.src = this.src.replace("_gray","_blk");
     },
     function()
     {
      this.src = this.src.replace("_blk","_gray");
     }
    );

    
    $('.gallery_g_unstyled').addClass('gallery_g'); // adds new class name to maintain degradability
    $('.nav').css('display','none'); // hides the nav initially
    
    $('ul.gallery_g').galleria({
        history   : false, // deactivates the history object for bookmarking, back-button etc.
        clickNext : false, // helper for making the image clickable. Let's not have that in this example.
        insert    : undefined, // the containing selector for our main image. 
                               // If not found or undefined (like here), galleria will create a container 
                               // before the ul with the class .galleria_container (see CSS)
        onImage   : function() { $('.nav').css('display','block'); } // shows the nav when the image is showing
    });
});


