<!--
var eCounter = 1;

function flash_main(movie_name,args,name,width,height,newfile) 
{
	var path_root = 'flash/';
	var bgcolor = '#161719';
	var sHtml;
	
	var width;
	var height;
	
	if (!width) var width = 239;
	if (!height) var height = 294;

/*
if (!newfile)
		sArgs = 'xmlfile=images.php?' + args;
	else
		sArgs = 'xmlfile=' + newfile + ".php?" + args;
*/
		
	path = path_root + movie_name + '.swf?r=' + Math.round(Math.random() * 99999) + '&' + args;
	
	sHtml = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '" id="' + name + '" align="middle">';
	sHtml += '<param name="allowScriptAccess" value="sameDomain" />';
	sHtml += '<param name="movie" value="' + path + '" />';
	sHtml += '<param name="quality" value="high" />';
	sHtml += '<param name="bgcolor" value="' + bgcolor + '" />';
	sHtml += '<param name="FlashVars value="' + args + '" />';
	sHtml += '<embed src="' + path + '" quality="high" bgcolor="' + bgcolor + '" width="' + width + '" height="' + height + '" FlashVars="' + args + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	sHtml += '</object>';
	
	document.write (sHtml);
}

function newEditor()
{
	var objEdit = Array;
	
	objEdit[eCounter] = new InnovaEditor("objEdit" + eCounter);

	objEdit[eCounter].loadHTML(idTemporary01.innerHTML); //load content to the editor

	objEdit[eCounter].scriptPath="<% $ROOT %>/includes/scripts/"; //specify location of the editor scripts
	objEdit[eCounter].width="100%"; //specify width of the editor
	objEdit[eCounter].height="100%"; //specify height of the editor

	objEdit[eCounter].btnTextFormatting = false;
	objEdit[eCounter].btnCssText = false;
	objEdit[eCounter].btnParagraph = false;
	objEdit[eCounter].btnFontName = false;
	objEdit[eCounter].btnFontSize = false;
	objEdit[eCounter].btnCut = false;
	objEdit[eCounter].btnCopy = false;
	objEdit[eCounter].btnPaste = false;
	objEdit[eCounter].btnUndo = false;
	objEdit[eCounter].btnRedo = false;
	objEdit[eCounter].btnBold = false;
	objEdit[eCounter].btnItalic = false;
	objEdit[eCounter].btnUnderline = false;
	objEdit[eCounter].btnJustifyLeft = false;
	objEdit[eCounter].btnJustifyCenter = false;
	objEdit[eCounter].btnJustifyRight = false;
	objEdit[eCounter].btnJustifyFull = false;
	objEdit[eCounter].btnNumbering = false;
	objEdit[eCounter].btnBullets = false;
	objEdit[eCounter].btnIndent = false;
	objEdit[eCounter].btnOutdent = false;
	objEdit[eCounter].btnForecolor = false;
	objEdit[eCounter].btnBackcolor = false;
	objEdit[eCounter].btnHyperlink = false;
	objEdit[eCounter].btnImage = false;
	objEdit[eCounter].btnTable = false;
	objEdit[eCounter].btnGuidelines = false;
	objEdit[eCounter].btnPasteWord = false;
	objEdit[eCounter].btnLine = false;
	objEdit[eCounter].btnClean = false;
	objEdit[eCounter].btnXHTMLSource = false;
									
	objEdit[eCounter].arrStyle = [["BODY",false,"","font-family: tahoma;font-size: 10px;color: #C1C1C1;background-color:#404348;margin-left: 1px;margin-top: 1px;margin-right: 1px;margin-bottom: 1px;"]]
	objEdit[eCounter].RENDER(); //display the editor		

	eCounter ++;
}
//-->


