

var currentFrameId ;
var overlay;
function showOverlayDialog(p_divId, p_width)
{
  $(".ui-widget").css({'z-index' : '1000000'});
   $("#" + p_divId).css({'width':p_width});
   
   
   $(".player").hide();
   overlay = $("#" + p_divId).overlay({
    //effect: 'apple',
    // custom top position
	top: '20%',
 
	// 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.5
	},
 
	// disable this for modal dialog-type of overlays
	closeOnClick: false,
 
	// we want to use the programming API
	api: true


    }).load();
    currentFrameId = p_divId;

}

function HidePopupFrame()
{

   // var overlayEmail = $("#" + currentFrameId).overlay();
   $(".player").show();
    overlay.close();
}
