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