var FuckEolas = new function() {
	
}

FuckEolas.createQuicktimePlayer = function(placeHolderId, src, width, height) {
	oPlaceHolder 	= document.getElementById(placeHolderId);
	
	oObject 		= document.createElement("OBJECT");
	oObject.setAttribute("classid", "clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b");
	oObject.setAttribute("width" , width);
	oObject.setAttribute("height", height);
	oObject.setAttribute("codebase", "http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0");
	
	oController 	= document.createElement("PARAM");
	oController.setAttribute("name"	, "controller");
	oController.setAttribute("value", "true");
	
	oType 			= document.createElement("PARAM");
	oType.setAttribute("name"	, "type");
	oType.setAttribute("value", "video/quicktime");
		
	oAutoplay 		= document.createElement("PARAM");
	oAutoplay.setAttribute("name"	, "autoplay");
	oAutoplay.setAttribute("value", "true");
	
	oBorder 		= document.createElement("PARAM");
	oBorder.setAttribute("name"	, "border");
	oBorder.setAttribute("value", "0");
	
	oBgColor 		= document.createElement("PARAM");
	oBgColor.setAttribute("name"	, "bgcolor");
	oBgColor.setAttribute("value"	, "#000000");
	
	oTarget 		= document.createElement("PARAM");
	oTarget.setAttribute("name"	, "target");
	oTarget.setAttribute("value", "myself");	
	
	oSrc 			= document.createElement("PARAM");
	oSrc.setAttribute("name"	, "src");
	oSrc.setAttribute("value", src);
	
	oPluginspage 	= document.createElement("PARAM");
	oPluginspage.setAttribute("name"	, "pluginspage");
	oPluginspage.setAttribute("value"	, "http://www.apple.com/quicktime/download/index.html");	
	
	oEmbed 			= document.createElement("EMBED");
	oEmbed.setAttribute("width"				, width);
	oEmbed.setAttribute("height"			, height);
	oEmbed.setAttribute("type"				, "video/quicktime");
	oEmbed.setAttribute("autoplay"			, "true");
	oEmbed.setAttribute("controller"		, "true");
	oEmbed.setAttribute("target"			, "myself");
	oEmbed.setAttribute("src"				, src);
	oEmbed.setAttribute("pluginspage"		, "http://www.apple.com/quicktime/download/index.html");
	oEmbed.setAttribute("border"			, "0");
	oEmbed.setAttribute("bgcolor"			, "#000000");
	
	oObject.appendChild(oController);
	oObject.appendChild(oType);
	oObject.appendChild(oAutoplay);
	oObject.appendChild(oBorder);
	oObject.appendChild(oBgColor);
	oObject.appendChild(oTarget);
	oObject.appendChild(oSrc);
	oObject.appendChild(oPluginspage);
	
	if(!document.all) {
		oObject.appendChild(oEmbed);
		oPlaceHolder.appendChild(oObject);
	}
	else {
		oPlaceHolder.innerHTML = oObject.outerHTML;
	}
}