$(document).ready(function(){

$("img[rel]").overlay({

    // custom top position
    top: 65,
    left: 180,

    // some expose tweaks suitable for facebox-looking dialogs
    expose: {

        // you might also consider a "transparent" color for the mask
        color: '#fff',

        // load mask a little faster
        loadSpeed: 200,

        // highly transparent
        opacity: 0.0
    },

    // disable this for modal dialog-type of overlays
    closeOnClick: false,
    
    onClose: function(event) {  
      $("#static_images").toggle();
      $("#flash_images").show("fast");
    },

    // we want to use the programming API
    api: true

// load it immediately after the construction
}).load();   
   
});
