function getClassNameEstiloMapaIE()
{
	return "portugalIE";
}

function actualizarHTMLInicialEspanaIE(text)
{
	var oRow;
	var oCell;
	oTable = document.getElementById("tableDistribuidoresTABLE");

	var curr_row, curr_cell;
	var lenght = oTable.rows.length;

	for (curr_row = 0; curr_row < lenght; curr_row++)
	{
		oTable.deleteRow(0);
	}
	
	oRow = oTable.insertRow();
	oCell = oRow.insertCell();
	oCell.innerHTML = "<img src=\"../images/pixel.gif\" height=\"150px\" />";//</td></tr><tr valign=\"center\">";

	oRow = oTable.insertRow();
	oRow.valign = "center";
	oCell = oRow.insertCell();
	oCell.className = "tituloTexto";
	oCell.innerHTML = text;
}

function establecerTextoInicialEspanaIE(text)
{
	establecerTituloProvincia("");
	document.getElementById("provincias").value = "";
	actualizarHTMLInicialEspanaIE(text);
}

function tratarProvinciasIE(xmlText)
{
	var xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	xmlDoc.async="false";
	xmlDoc.loadXML(xmlText);

	actualizarHTMLInicialEspanaIE("");
	borrarFilasTablaIE(document.getElementById("detailContainerTable"));
	borrarFilasTablaIE(document.getElementById("tableDistribuidoresTABLE"));
	if (xmlDoc.getElementsByTagName("nombre").length == 0)
	{
		actualizarHTMLInicialEspanaIE("No existen distribuidores para la zona seleccionada");
	}
	else
	{
		var i = 0;
		for (i = 0; i < xmlDoc.getElementsByTagName("nombre").length; i++)
		{
			var distribuidorDescriptor = createDistribuidorDescriptor(xmlDoc, i);
			crearCapasDetalleIE(distribuidorDescriptor);
			crearEnlacesDistribuidorIE(distribuidorDescriptor);
		}
	}
}

function borrarFilasTablaIE(oTable)
{
	var curr_row, curr_cell;
	var lenght = oTable.rows.length;

	var curr_row = 0;
		
	for (curr_row = 0; curr_row < lenght; curr_row++)
	{
		oTable.deleteRow(0);
	}
}

function crearCapasDetalleIE(distribuidorDesc)
{
	var oRow;
	var oCell;
	oTable = document.getElementById("detailContainerTable");
	oRow = oTable.insertRow();
	oCell = oRow.insertCell();
	oCell.valign = "top";
	oCell.height = "100%";
	oCell.id="detailContainer";
	oCell.innerHTML = crearHTMLCapa(distribuidorDesc);
}

function crearEnlacesDistribuidorIE(distribuidorDesc)
{
	var oRow;
	var oCell;
	oTable = document.getElementById("tableDistribuidoresTABLE");
	oRow = oTable.insertRow();
	oRow.valing = "center";
	oCell = oRow.insertCell();
	oCell.innerHTML = "<a class='distribuidor' href=\"#\" onmouseover=\"javascript:gestionarCapa('" + distribuidorDesc.idDiv + "');\">" + distribuidorDesc.nombre + "</a>";
}

function crearCapasDetalleArtistaIE(distribuidorDesc)
{
	var oRow;
	var oCell;
	oTable = document.getElementById("detailContainerTable");
	oRow = oTable.insertRow();
	oCell = oRow.insertCell();
	oCell.valign = "top";
	oCell.height = "100%";
	oCell.id="detailContainer";
	oCell.innerHTML = crearHTMLCapa(distribuidorDesc);
}

