function drawFlashObject(intWidth, intHeight, strMovie, strText, strLink, strExtraFlashVars, strContainer, strBgColor, varID, strLinkWindow, strStyle, boolSecure) {
	if (!strBgColor) strBgColor = "transparent";
	if (!strLinkWindow) strLinkWindow = "_self";
	if (!boolSecure) boolSecure = false;
	
	var objContainer = getDocumentLayer(strContainer);
	
	var divObject = document.createElement("div");
	divObject.style.width = intWidth;
	divObject.style.height = intHeight;
	
	var strFlashVars = "linkWindow=" + strLinkWindow;
	
	if (strText != "") {
		strFlashVars += "&linkTXT=" + strText;
	}
	if (strLink != "") {
		strFlashVars += "&linkURL=" + strLink;
	}
	if (strExtraFlashVars != "") {
		strFlashVars += "&" + strExtraFlashVars;
	}
	
	var strID = (varID)?"id='"+varID+"'":"";
	var strEstilo = (strStyle)?" style='"+strStyle+"'":"";
	var strHttpProtocol = (boolSecure)?"https":"http";
	
	divObject.innerHTML = "" + 
	    "<OBJECT " + strID + strEstilo + " classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' " + 
	    "        codebase='"+strHttpProtocol+"://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'" + 
	    "        WIDTH='"+intWidth+"' HEIGHT='"+intHeight+"' ALIGN=''>" + 
	    "     <PARAM NAME=movie VALUE='" + strMovie + "'>" + 
	    "	  <PARAM NAME=FlashVars VALUE='" + strFlashVars + "'>" + 
	    "     <PARAM NAME=quality VALUE=high>" + 
	    "     <PARAM NAME=wmode VALUE="+strBgColor+">" + 
	    "     <PARAM NAME=bgcolor VALUE="+strBgColor+">" + 
	    " 	  <EMBED FlashVars='" + strFlashVars + "'" + 
	    "            src='" + strMovie + "' quality=high wmode="+strBgColor+" bgcolor="+strBgColor+"" + 
	    "            WIDTH='"+intWidth+"' HEIGHT='"+intHeight+"' ALIGN=''" + 
	    "            TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>" + 
	    "</OBJECT>";
	    
	objContainer.appendChild(divObject);
}	   