function fnCreaSecciones()
{
	//Recorrer Arreglo de Secciones


	//Esta funcion regresa el html del menú principal
	
	var strLog = 'Entra en fnCreaSecciones()\n'

	var strResultado;
	var blnPonerLinea = false;
	var blnPonerFlash = false;
	var blnPonerTextoEnFlash = false;
	strResultado = '';
	
	var strMenuPrincipal = '';
	var strMenuInterno = '';
	var strImagenesPrincipales = '';
	var strImagenesSecundarias = '';
	var strRedacciones = '';
	var strTextoDelFlash = 'Este es un texto muy largo para probar como se comporta el flash';

	var intImagenPrincipalAncho = 780;
	var intImagenPrincipalAlto = 312;
	var intImagenSecundariaAncho = 107;
	var intImagenSecundariaAlto = 153;


	strMenuInterno = '';
	strRedacciones = '';
	strImagenesPrincipales = '';
	strImagenesSecundarias = '';


	strMenuPrincipal = '<table cellspacing=0 cellpadding=0 align=left><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;</td>';

	for (var strLlaveMenuPrincipal in htMenuPrincipal) 
	{
strLog += 'Entra en FOR de Menu Principal --- strLlaveMenuPrincipal = '+strLlaveMenuPrincipal+'\n'

		strMenuPrincipal += '<td><div class="BotonMenuSuperior"><table class="BotonMenuSuperior" cellspacing=0 cellpadding=0 id="' + strLlaveMenuPrincipal +'" onmouseover="fnEntra(this);" onmouseout="fnSale(this)"><tr><td class="BotonMenuSuperiorNoSeleccionado_OrejaIzquierda" id="' + strLlaveMenuPrincipal + '_OrejaIzquierda"></td><td class="BotonMenuSuperiorNoSeleccionado_Contenido" style="vertical-align:middle" valign="middle"><div id="' + htMenuPrincipal[strLlaveMenuPrincipal][1] + '" nowrap></div></td><td class="BotonMenuSuperiorNoSeleccionado_OrejaDerecha"  id="' + strLlaveMenuPrincipal + '_OrejaDerecha"></td></tr></table></div></td>';


		blnPonerLinea = false;
		

		strMenuInterno += '<div class="DivMenuInterno_Oculto" id="'+htMenuPrincipal[strLlaveMenuPrincipal][0]+'">'


		for (var strLlaveMenuInterno in htMenuInterno) 
		{

strLog += '--Entra en FOR de Menu Interno --- strLlaveMenuInterno = '+strLlaveMenuInterno+'\n'
			if (strLlaveMenuInterno.substring(0,htMenuPrincipal[strLlaveMenuPrincipal][0].length) == htMenuPrincipal[strLlaveMenuPrincipal][0])
			{
strLog += '----Entra en IF strCual = '+htMenuPrincipal[strLlaveMenuPrincipal][0]+'\n'
				//Construcción del Menú Interno
				if (blnPonerLinea)
				{
					strMenuInterno += '<div class="DivLineaMenuInterno"></div>\n';
				}

				strMenuInterno += '<div class="DivOpcionMenuInterno" id="' + strLlaveMenuInterno + '" onclick="fnSeleccionaOpcionInterna(this)"><div id="' + htMenuInterno[strLlaveMenuInterno][enmMIntidTextoOpcionMenu ] + '" class="DivOpcionMenuInternoTexto"></div></div>';
				blnPonerLinea = true;


				//Construcción de Redacciones
				strRedacciones += '<div id="'+ strLlaveMenuInterno+'_Redaccion" class="SeccionRedaccion_Oculta"><div id="'+ htMenuInterno[strLlaveMenuInterno][enmMIntidTextoOpcionMenuRedaccion]+'" name="'+ htMenuInterno[strLlaveMenuInterno][enmMIntidTextoOpcionMenuRedaccion]+'">'+ htMenuInterno[strLlaveMenuInterno][enmMIntidTextoOpcionMenuRedaccion]+'</div></div>\n';

				//Construcción de Imágenes Principales

				if (blnPonerFlash)
				{
					strTextoDelFlash = '';
					if (blnPonerTextoEnFlash)
					{
						strTextoDelFlash = htMenuInterno[strLlaveMenuInterno][enmMIntidTextoTitulo];
					}
					strImagenesPrincipales += '<div class="clsContenedorImagenPrincipalYTexto"><object id="'+ strLlaveMenuInterno+'_ImagenPrincipal" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="780" height="312" id="Untitled-1" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="flashvars" value="fvTextoOpcion='+strTextoDelFlash+'" /><param name="movie" value="./'+htMenuInterno[strLlaveMenuInterno][enmMIntArchivoFlash]+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param NAME="wmode" VALUE="opaque"> 	<embed src="./'+htMenuInterno[strLlaveMenuInterno][enmMIntArchivoFlash]+'" flashvars="fvTextoOpcion='+strTextoDelFlash+'" wmode="opaque" quality="high" bgcolor="#ffffff" width="780" height="312" name="Untitled-1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>\n';
					//strImagenesPrincipales += '<div><script>CorreFlash();</script>\n';
				}
				else
				{
					strImagenesPrincipales += '<div class="clsContenedorImagenPrincipalYTexto"><img id="'+ strLlaveMenuInterno+'_ImagenPrincipal" name="'+ strLlaveMenuInterno+'_ImagenPrincipal" class="SeccionImagenPrincipal_Oculta" src="'+ htMenuInterno[strLlaveMenuInterno][enmMIntImagenPrincipalURL]+'" width="'+htMenuInterno[strLlaveMenuInterno][enmMIntImagenPrincipalAncho]+'" height="'+htMenuInterno[strLlaveMenuInterno][enmMIntImagenPrincipalAlto]+'" />\n';
				}

				if (!blnPonerTextoEnFlash)
				{
					strImagenesPrincipales += '<div id="'+ strLlaveMenuInterno+'_TituloImagen" name="'+ strLlaveMenuInterno+'_TituloImagen" class="SeccionImagenPrincipalTexto_Oculta"><div id="'+ htMenuInterno[strLlaveMenuInterno][enmMIntidTextoTitulo]+'" name="'+ htMenuInterno[strLlaveMenuInterno][enmMIntidTextoTitulo]+'"></div></div></div>\n';
				}
				strImagenesPrincipales += '</div></div>\n';

				//Construcción de Imágenes Secundarias
				if (htMenuInterno[strLlaveMenuInterno][enmMIntImagenSecundariaURL] != 'SINIMAGEN')
				{
					strImagenesSecundarias += '<img id="'+ strLlaveMenuInterno+'_ImagenSecundaria" name="'+ strLlaveMenuInterno+'_ImagenSecundaria" class="SeccionImagenSecundaria_Oculta" src="'+ htMenuInterno[strLlaveMenuInterno][enmMIntImagenSecundariaURL]+'" width="'+htMenuInterno[strLlaveMenuInterno][enmMIntImagenSecundariaAncho]+'" height="'+htMenuInterno[strLlaveMenuInterno][enmMIntImagenSecundariaAlto]+'" />\n';
				}
				
			}

		} // Termina ciclo para Menú Interno

		strMenuInterno += '</div>';

	} // Termina ciclo para menú principal


	strMenuPrincipal += '</td></tr></table>';

	fnObjeto('DivCeldaMenuPrincipal').innerHTML = strMenuPrincipal;
	fnObjeto('DivMenuInterno').innerHTML = strMenuInterno;
	fnObjeto('DivImagenesPrincipales').innerHTML = strImagenesPrincipales;
	fnObjeto('DivImagenesSecundarias').innerHTML = strImagenesSecundarias;
	fnObjeto('DivRedacciones').innerHTML = strRedacciones;
	
//fnObjeto('Log').value = strRedacciones;

/*
	var strMenuPrincipal = '';DivCeldaMenuPrincipal
	var strMenuInterno = '';DivMenuInterno
	var strImagenesPrincipales = '';DivImagenesPrincipales
	var strImagenesSecundarias = '';DivImagenesSecundarias
	var strRedacciones = '';DivRedacciones
*/


}
