;

registerFrameFunction(function(msg, frameName, frameUrl)
{
	if (msg == "createFrame")
	{
		const frame = document.createElement('iframe');
		frame.name = frameName;
		frame.style.visibility = 'hidden';
		frame.allow = 'microphone *; camera *;';
		frame.src = frameUrl;
		frame.tabIndex = -1;

		citFrames[frameName] = frame;
		zStack.push(frameName);

		const curElement = document.activeElement;
		const hadFocus = (curElement?.tagName.toUpperCase() === 'IFRAME');
		
		document.body.appendChild(frame);

		i