
// Usage:  <A HREF="javascript:PlayMovie('movies/sample.mov')">Play in window<A><BR>
// levitt.com (by webmaster at levitt.com) 7/2003


function PlayMovie(MovieURL) {
	var width=160, height=120;
	var title="Player";
	var autoplay="true";
	var controller="true";
	var properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,"+
	"resizeable=yes,copyhistory=no,"+
	"width="+(width+0)+",height="+(height+16);
	
	var content= "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' " + 
	"width='"+width+"' height='"+(height+0)+"' "+
	"codebase='http://www.apple.com/qtactivex/qtplugin.cab'>"+
	"<param name='SRC' VALUE='"+MovieURL+"'>"+
	"<param name='AUTOPLAY' value='"+autoplay+"'>"+
	"<param name='CONTROLLER' value='"+controller+"'>"+
	"<embed src='"+MovieURL+"' width='"+width+"' height='"+(height+16)+"' "+
	"autoplay='"+autoplay+"' controller='"+controller+"' "+
	"pluginspage='http://www.apple.com/quicktime/download/'>"+
	"<"+"/EMBED><"+"/OBJECT>";
	
	PopUp = window.open("", title, properties);
	PopUp.document.open();
	PopUp.document.write("<html><title>"+title+"<"+"/title>");
	PopUp.document.write("<body style='background-color:black; margin:0 auto; border:0; padding:0;'>");
	PopUp.document.write(content);
	PopUp.document.writeln("<"+"/body><"+"/html>");
	PopUp.document.close();
	PopUp.focus();
} 
