var _flashobj = null;
var _is_cp_ready = false;

function showComPanel(order_id, thumbnail, path_remote)
{
	if( !_is_cp_ready )
	{
		alert("COM Panel is loading..");
		return;
	}

	// reload the COM Panel
	if( navigator.appName.indexOf("Microsoft") != -1 )
	{
		_flashobj = window.send;
	}
	else
	{
		_flashobj = window.document.send;
	}

	// update network list
	_flashobj.setOrderInfo(order_id, thumbnail);

	// show COM Panel
	createLyteBox('flash', null, null, path_remote);
}

function comPanelCloseHandler()
{
	deleteLyteBox();
}

function CPReady()
{
	_is_cp_ready = true;
}
