var lineasActivas = new Array();

function MarcarLineas(cadena)
{
		

	xlineas = cadena.split(",");
	
	for (t=0; t<xlineas.length; t++) {
		
		l = xlineas[t];
		
		if (lineasActivas[l] != 1) 	CargaLinea(l);
	
	}
	
	
}

function DesMarcarLineas(cadena)
{
		
	xlineas = cadena.split(",");
	
	for (t=0; t<xlineas.length; t++) {
		
		l = xlineas[t];
		
		if (lineasActivas[l] == 1) 	CargaLinea(l);
	
	}
}


function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


 


function CargaLinea(l)
{

	/*var posicion 	= document.sample.TCurrentFrame("_root");*/
	var objectname	= 'LID'+l;
	var colorFuente	= "#000000";
	var estiloFuente= "normal";
	var estiloFondo = "#FFFFFF";
	var estiloCursor= "pointer";
	
	
		
		if (lineasActivas[l]!=1) {

			colorFuente	= "green";
			estiloFuente= "bold";
			estiloFondo = "#e4f4e4";
			estiloCursor= "pointer";
			
			lineasActivas[l]=1;
		
		} else {
			
			lineasActivas[l]=0;
		}
		
		document.getElementById(objectname).style.color	= colorFuente;
		document.getElementById(objectname).style.fontWeight = estiloFuente;
		document.getElementById(objectname).style.backgroundColor = estiloFondo;
		document.getElementById(objectname).style.cursor = estiloCursor;
	
		var flash = getFlashMovieObject("sample");
	
	/*	document.sample.SetVariable("linea", l);	
		document.sample.TCallFrame("_root",5); */

		flash.SetVariable("linea", l);	
		flash.TCallFrame("_root",5);



}
