//showQuicktime.js v1.2 by Jon Anderson :: jon@prologue.com
//showQuicktime(URL,TITLE,WIDTH,HEIGHT);

var popWindow;
function showQuicktime(qtURL,qtTitle,qtW,qtH) {
	if (popWindow && !popWindow.closed) {	
		popWindow.close();
	};
	qtH = parseInt(qtH) + 16; 
	
	text = "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>";
	text += "<html xmlns='http://www.w3.org/1999/xhtml'>\n";
	text += "<head>\n<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />\n";
	text += "<title>" + qtTitle + "</title>\n";
	text += "<scr"+"ipt src='Scripts/AC_ActiveX.js' type='text/javascript'><\/scr"+"ipt>\n";
	text += "<scr"+"ipt src='Scripts/AC_RunActiveContent.js' type='text/javascript'><\/scr"+"ipt>\n";
	text += "</head>\n<body style='margin:0px; padding:0px;'>";
	text += "<scr"+"ipt type='text/javascript'>AC_AX_RunContent( 'classid','clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B','width','" + qtW + "','height','" + qtH + "','codebase','http://www.apple.com/qtactivex/qtplugin.cab','src','" + qtURL + "','autoplay','true','controller','true','pluginspage','http://www.apple.com/quicktime/download/' )<\/scr"+"ipt>\n";
	text += "<noscript><object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='" + qtW + "' height='" + qtH + "' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>";
	text += "<param name='SRC' value='" + qtURL + "'>";
	text += "<param name='AUTOPLAY' value='false'>";
	text += "<param name='CONTROLLER' value='true'>";
	text += "<embed style='width="+qtW+"; height="+qtH+"' src='" + qtURL + "' width='" + qtW + "' height='" + qtH + "' autoplay='false' controller='true' pluginspage='http://www.apple.com/quicktime/download/'></embed></object></noscript>";
	text += "</body>\n</html>";
	
	popWindow = window.open('','quicktimePlayer','width='+qtW+',height='+(qtH));
	popWindow.document.write(text);
	popWindow.refresh();
	popWindow.focus();
	popWindow.document.close();
}



