/*

	alert('Lightbox is not supported in this browser!');
	[' + glow.env.version + ']
	var winLighbox = window.open(_src, 'lightbox', 'height=400,width=550,top=0,left=0,scrollbars=auto,resizable');

*/

function showLightbox(_src){
	// Check Browser Env for versions and allocate lightbox code as needed.
	if (isNaN(glow.env.ie) && isNaN(glow.env.khtml) && isNaN(glow.env.opera)) {
		if (glow.env.gecko <= 1.8) {
			if (glow.env.version == '1.8.0.12') {
				document.getElementById('simplePanel').innerHTML = '<iframe id="lightbox" src="' + _src + '" frameborder="0" height="400" width="550"></iframe>';
				if (document.getElementById('lightbox')) { document.getElementById('lightbox').src = _src; }
				myPanel.show();
			} else {
				document.getElementById('simplePanel').innerHTML = '<iframe id="lightbox" src="' + _src + '" frameborder="0" height="400" width="550"></iframe>';
				if (document.getElementById('lightbox')) { document.getElementById('lightbox').src = _src; }
				myPanel.show();
			}
		} else {
			document.getElementById('simplePanel').innerHTML = '<iframe id="lightbox" src="' + _src + '" frameborder="0" height="400" width="550"></iframe>';
			if (document.getElementById('lightbox')) { document.getElementById('lightbox').src = _src; }
			myPanel.show();
		}
	} else {
		document.getElementById('simplePanel').innerHTML = '<iframe id="lightbox" src="' + _src + '" frameborder="0" height="400" width="550"></iframe>';
		if (document.getElementById('lightbox')) { document.getElementById('lightbox').src = _src; }
		myPanel.show();
	}
	return false;

}


function lightbox_OnClose_RenderFlash() {
	document.getElementById('blq-content').innerHTML = '<div id="cw-flash-container" class="cw-css-flash-content"></div></div>';
	swfobject.embedSWF("http://downloads.bbc.co.uk/cbbc/cartoonworks/main.swf", "cw-flash-container", "974", "685", "9", "", flashvars, params, attributes);
}

