
// install overlay with default settings 
$(function() { 
    $("#overlay").overlay();      
}); 
 
 
// define function that opens the overlay 
function openOverlay() { 
     
    // get access to the overlay API 
    var api = $("#overlay").overlay(); 
 
    // call it's open() method         
    api.load();             
}