
function createQTPlayer(file, width, height) {
	var obj = document.createElement('object');
	obj.setAttribute("width",width);
	obj.setAttribute("height",height);
	obj.setAttribute("classid","clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B");
	obj.setAttribute("codebase","http://www.apple.com/qtactivex/qtplugin.cab");
	
	var p1 = document.createElement('param');
	p1.setAttribute("src",file);
	var p2 = document.createElement('param');
	p2.setAttribute("autoplay",'true');
	var p3 = document.createElement('param');
	p3.setAttribute("controller",'true');
	
	var embed = document.createElement('embed');
	embed.setAttribute("src",file);
	embed.setAttribute("width",width);
	embed.setAttribute("height",height);
	embed.setAttribute("autoplay",'true');
	embed.setAttribute("controller",'true');
	embed.setAttribute("pluginspage",'http://www.apple.com/quicktime/download/');
	
	obj.appendChild(p1);
	obj.appendChild(p2);
	obj.appendChild(p3);
	obj.appendChild(embed);
	
	
	return obj;
}

