function openQuicktime(href)
{
	var w = window.open(site_url + "/empty.html", "video", "height=260,width=364,scrollbars=no,resizable=no");

	if (w)
	{
		try
		{
			w.focus();

			w.document.open();
			w.document.write('\
<html>\
	<head>\
		<title>Quicktime Video</title>\
		<link rel="stylesheet" type="text/css" href="' + site_url + '/default/css/index.css" />\
	</head>\
	<body style="background: black !important;">\
		<div id="video-container"></div>\
	</body>\
</html>\
		');
			w.document.close();

			function finish()
			{
				writeQuickTime("video-container", href, w.document);
			}

			window.setTimeout(finish, 0);
		}
		catch (e)
		{
			return false;
		}
	}

	return false;
}

function writeQuickTime(el_id, video, doc)
{
	if (!doc)
		doc = document;

	doc.getElementById(el_id).innerHTML = '<embed id="popup-video" src="' + video + '" width="360" height="256" autoplay="true" controller="true" loop="false" bgcolor="000000" enablejavascript="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed>';
}