var videoContainer;
function readInLightbox(articleId, title, width, height)
{
	while (title.indexOf("[SQM]") >=0 )
	{
		title = title.replace("[SQM]","'")
	}
	while (title.indexOf("[DQM]") >=0 )
	{
		title = title.replace("[DQM]","\"")
	}
	tb_show(title, unaPath + "NakedArticle.aspx?ArticleId=" + articleId + "&?TB_iframe=true&height=" + height + "&width=" + width + "", null);
}

function playInLightbox_EX(title, code, width, height)
{
	ensureVideoContainer();
	videoContainer.innerHTML = code;
	tb_show(title, "#TB_inline?height=" + height + "&width=" + width + "&inlineId=" + videoContainer.id, null);
}

function ensureVideoContainer()
{
	if (!videoContainer)
	{
		videoContainer = document.createElement("div");
		videoContainer.style.display = "none";
		videoContainer.id = "videoContainer";
		document.body.appendChild(videoContainer);
	}
}

var j$ = jQuery.noConflict();
