// When the document loads do everything inside here ...
$(document).ready(function(){
    $("#archives").hide();
    // When a link is clicked
    $("a#toggle")
        .click(function(event){
            event.preventDefault();
            $("#archives").slideToggle("normal");
        })
});

$(function() { 
 
    // if the function argument is given to overlay, it is assumed to be the onBeforeLoad event listener 
    $("a[rel]").overlay(function() { 
 
        // grab wrapper element inside content 
        var wrap = this.getContent().find("div.wrap"); 
 
        wrap.load(this.getTrigger().attr("href")); 
    }); 
});

