// What is $(document).ready ? See: http://flowplayer.org/tools/using.html#document_ready
$(document).ready(function() {

// select the overlay element - and "make it an overlay"
$("#facebox").overlay({

	// custom top position
	top: 100,

	// some expose tweaks suitable for facebox-looking dialogs
	expose: {

		// you might also consider a "transparent" color for the mask
		color: '#000',

		// load mask a little faster
		loadSpeed: 200,

		// highly transparent
		opacity: 0.5
	},

	// we want to use the programming API
	api: true

// load it immediately after the construction
}).load();

	$("#facebox a").click(function(event){
		window.open ($(this).attr("href"));
     });
});