function closeCallback()
{
	$.address.value( "" );
	$("a[rel]").overlay().close();
}

$(function() 
{	
	// if the function argument is given to overlay, 
	// it is assumed to be the onBeforeLoad event listener 
	$("a[rel]").overlay({ 
 
		expose: '#000000', 	
		
		top: 20,

		closeOnClick: false,			
 
		onBeforeLoad: function() 
		{ 
			// grab wrapper element inside content 
			var wrap = this.getContent().find(".contentWrap"); 
			
			$.address.value( "show" );
			// load the page specified in the trigger 
			wrap.load(this.getTrigger().attr("href")); 				
		},

		onHidden: function()
		{
			$.address.value( "" );
		}
	});
	$.address.change(function()
	{
		if( $.address.value().indexOf( "show" ) >= 0 )
		{
			$("a[rel]").data("overlay").load();
		}
	});
});	
