var ValorLink=''
var TTTScrollValue=0
var pos=0
var TTTtimer=0
var TTTeLisCount=0  
TTTeLisimg= new Array()
TTTeLisimg[1]='vti_'
TTTeLisimg[2]= eve.langu+'_compra_'
TTTeLisimg[3]='vti_'
TTTeLisimg[4]='vin_'
TTTeLisimg[5]='vlo_'
TTTeLisimg[6]='vtf_'
TTTeLisimg[7]='vtf_'
TTTeLisimg[8]='sim_'
TTTeLisimg[9]='sex_'
TTTeLisimg[10]='sen_'
TTTeLisimg[11]='next_';
TTTeLisimg[12]='prev_';
TTTeLisimg[13]='rec_';
TTTeLisimg[14]='vlo_';
var TTTeLisNo= new Array()
var css=''
if (eve.css != 0) {css = eve.css}
for (i=1;i<11;i++){
	TTTeLisNo[i]=new Image()
	TTTeLisNo[i].src= '/images/'+TTTeLisimg[i] + 'no'+css+'.gif'
}
var TTTeLisOn= new Array()
for (i=1;i<11;i++){
	TTTeLisOn[i]=new Image()
	TTTeLisOn[i].src= '/images/'+TTTeLisimg[i] + 'on'+css+'.gif'
}
	TTTeLisOn[13]=new Image()
	TTTeLisOn[13].src= '/images/'+TTTeLisimg[13] + 'on'+css+'.gif'
	TTTeLisOn[14]=new Image()
	TTTeLisOn[14].src= '/images/'+TTTeLisimg[14] + 'on'+css+'.gif'
var TTTeLisOff= new Array()
for (i=1;i<11;i++){
	TTTeLisOff[i]=new Image()
	TTTeLisOff[i].src= '/images/'+TTTeLisimg[i] + 'off'+css+'.gif'
}
   TTTeLisOff[11]=new Image()
	 TTTeLisOff[11].src= '/images/'+TTTeLisimg[11] + 'off'+css+'.gif'
	 TTTeLisOff[12]=new Image()
	 TTTeLisOff[12].src= '/images/'+TTTeLisimg[12] + 'off'+css+'.gif'
	TTTeLisOff[13]=new Image()
	TTTeLisOff[13].src= '/images/'+TTTeLisimg[13] + 'off'+css+'.gif'
	TTTeLisOff[14]=new Image()
	TTTeLisOff[14].src= '/images/'+TTTeLisimg[14] + 'off'+css+'.gif'
var TTTeLisTxt= new Array()
for (i=1;i<11;i++){	
	if(i==1 || i==8 || i==9 || i==10){
		TTTeLisTxt[i]=new Image()
		TTTeLisTxt[i].src= '/images/'+eve.langu+'_'+TTTeLisimg[i]+'t.gif'
        }
}
	TTTeLisTxt[13]=new Image()
	TTTeLisTxt[13].src= '/images/'+eve.langu+'_'+TTTeLisimg[13]+'t.gif'
	TTTeLisTxt[14]=new Image()
	TTTeLisTxt[14].src= '/images/'+eve.langu+'_'+TTTeLisimg[14]+'t.gif'

function TestEncoding(inputString)
{
  var encodedInputString=escape(inputString);
  encodedInputString=encodedInputString.replace("+", "%2B");
  encodedInputString=encodedInputString.replace( new RegExp( "/", "g" ), "%2F" );
  return encodedInputString
}

// [Conejo 2009-01-25]: Botón comprar socios	  
function TTTeLis(doc,id,sesion,mask,multi,i,navegador,nasientos,edad,edadtxt,fecha,des_eve,locali,logoim,amigotxt,idtm,stat,ChkCodigoBarras,botonSocios,botonComprar){
  this.multi= multi;
  this.navegador = navegador;
  this.nasientos= nasientos;
	this.name = "eLis"+ TTTeLisCount++;
	this.obj = this.name + "i"
	eval(this.obj + "=this")
	this.id = id
	this.sesion = sesion
	this.doc = doc
	this.mask = parseInt(mask)
	if (eve.css!=0) {this.edad =edad+eve.css}
	else {this.edad = edad}
	this.edadtxt = edadtxt
	this.amigotxt = amigotxt
	this.fecha = fecha
	this.des_eve = des_eve
	this.locali = locali
	this.logoim = logoim
	this.stat = stat
	this.idtm = idtm
	this.ChkCodigoBarras = ChkCodigoBarras
	this.botonSocios = botonSocios // [Conejo 2009-01-25]: Botón comprar socios	  
	this.botonComprar = botonComprar // [Conejo 2009-01-25]: Botón comprar socios	  	
	this.icount = i;
	this.getItem = TTT_Listadogetitem	

	this.writeHtml_N = TTT_Listadowritehtml_N
	this.chImgOn = TTT_Listadochimgon
	this.chImgOff = TTT_Listadochimgoff	
	ValorLink= new Array()
	this.eLisLinks= new Array()

	
	this.eLisLinks[1]='javascript:TTTnewWin_info(\''+this.id+'\',\''+this.sesion+'\',\'INT\',\'PER\',\'t\',\'S\')'
	if (this.id >=1000000) {
		if (eve.tipov=='INT') { 
			  this.eLisLinks[2]='http://www.ticketmaster.es/event/'+this.idtm+'?&origin='+eve.operador
			  if (eve.cfc!=0) {this.eLisLinks[2]=this.eLisLinks[2]+'&camefrom='+eve.cfc}
			}
	  else {
		    this.eLisLinks[2]='javascript:top.deepLinkWrapper(\'action=view_event&event_id='+this.idtm+'\')';
		  }

		this.writeHtml = TTT_Listadowritehtml
		}	
	else {	
		if (multi==1) {
			if (navegador==true){		
					//if (eve.origen==0) {
          if (eve.arquitectura_web==1) {this.eLisLinks[2]='TTT_ListadoCalendario('+i+','+navegador+',\''+this.id+'\')'}
					else {this.eLisLinks[2]='JavaScript:TTT_ListadoCalendario('+i+','+navegador+',\''+this.id+'\')'}
				  //else {this.eLisLinks[2]='JavaScript:TTT_ListadoCalendario('+i+','+navegador+')'}
			}
			else{
				//if (eve.origen==0) {
        if (eve.arquitectura_web==1) {this.eLisLinks[2]='TTT_ListadoCalendario('+i+','+navegador+',\''+this.id+'\')'}
				else {this.eLisLinks[2]='JavaScript:TTT_ListadoCalendario('+i+','+navegador+',\''+this.id+'\')'}
			  //else {this.eLisLinks[2]='JavaScript:TTT_ListadoCalendario('+i+','+navegador+')'}
			}
			// multisesión o no
			this.writeHtml = TTT_Listadowritehtml_m
		}
	        else {
	        	if (navegador==true){
	        		// [Frosty 2009-07-08]: Si hay que chequear código de barras, abre el navegador de zonas con la URL correcta
	        		// if (eve.origen==0) {ValorLink="NavegadorZonas('pkg_detalle_sesion.inicio?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&P_ORIGEN="+eve.origen+"')"}
	        		// else {ValorLink="JavaScript:NavegadorZonas('pkg_detalle_sesion.inicio?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&P_ORIGEN="+eve.origen+"')"}	
              if (ChkCodigoBarras=='S') {
	        		  //if (eve.origen==0) {
                if (eve.arquitectura_web==1) {ValorLink="NavegadorZonas('pkg_tl_lfp_aux.pr_Chk_Codigo_Barras?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&p_origen="+eve.origen+"')"}
	        		  else {
                	if (eve.tipov == 'INT') {ValorLink="JavaScript:NavegadorZonas('pkg_tl_lfp_aux.pr_Chk_Codigo_Barras?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&p_origen="+eve.origen+"')"}	
                	else {ValorLink='pkg_tl_lfp_aux.pr_Chk_Codigo_Barras?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_idioma='+eve.langu+'&P_ORIGEN='+eve.origen}
                }	
              } else {
	        		  //if (eve.origen==0) {
                if (eve.arquitectura_web==1) {ValorLink="NavegadorZonas('pkg_detalle_sesion.inicio?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&P_ORIGEN="+eve.origen+"')"}
	        		  else {
                	if (eve.tipov == 'INT') {ValorLink="JavaScript:NavegadorZonas('pkg_detalle_sesion.inicio?p_evento="+this.id+"&p_sesion="+this.sesion+"&p_usuario="+eve.usuario+"&p_idioma="+eve.langu+"&P_ORIGEN="+eve.origen+"')"}	
                	else {ValorLink='pkg_detalle_sesion.inicio?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_idioma='+eve.langu+'&P_ORIGEN='+eve.origen}	
                }
              } 
	        		this.eLisLinks[2]=ValorLink
	        	}
	        	else {
				    if (ChkCodigoBarras=='S'){
	        		  this.eLisLinks[2]='pkg_tl_lfp_aux.pr_Chk_Codigo_Barras?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_idioma='+eve.langu+'&P_ORIGEN='+eve.origen						
					}else{
	        		  this.eLisLinks[2]='pkg_detalle_sesion.inicio?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_idioma='+eve.langu+'&P_ORIGEN='+eve.origen
					}
	    	       	//if (eve.origen==0) {
                if (eve.arquitectura_web==1) {
	    	       		var path= location.pathname.substring(0,location.pathname.indexOf('pkg'))
	    	       		this.eLisLinks[2]='https://'+location.host+'/entradas/ver.do?origin='+eve.operador+'&url='+TestEncoding(path+this.eLisLinks[2])
	    	       		}
	        	}
        	this.writeHtml = TTT_Listadowritehtml
        }
  }
	this.eLisLinks[3]='pkg_info.pagina_informacion?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_tipo_venta=INT&p_tipo_info=PER&p_idioma='+eve.langu+'&p_origen='+eve.origen
	this.eLisLinks[4]='pkg_info.pagina_informacion?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_tipo_venta=INT&p_tipo_info=INT&p_idioma='+eve.langu+'&p_origen='+eve.origen
	this.eLisLinks[5]='pkg_info.pagina_informacion?p_evento='+this.id+'&p_sesion='+this.sesion+'&p_usuario='+eve.usuario+'&p_tipo_venta=INT&p_tipo_info=TAQ&p_idioma='+eve.langu+'&p_origen='+eve.origen
	this.eLisLinks[6]='pkg_ttsac.pagina_plana?PC_Usuario='+eve.usuario+'&PC_Fichero=/info/pagina_info_mov.htm&p_idioma='+eve.langu+'&NUEVA_PAG=S'+'&p_origen='+eve.origen
	this.eLisLinks[7]='JavaScript:TTTnewWin_plana(\'/info/pagina_info_mov'+eve.sufijo+'_'+eve.langu+'.htm\',\'S\')'
	this.eLisLinks[8]='JavaScript:TTTnewWin_plana(\'/info/pagina_info_ttpri'+eve.sufijo+'_'+eve.langu+'.htm\',\'S\')'
	this.eLisLinks[9]='JavaScript:TTTnewWin_info(\''+this.id+'\',\''+this.sesion+'\',\'INT\',\'EXP\',\'t\',\'S\')'
	this.eLisLinks[10]='JavaScript:TTTnewWin_plana(\'/info/pagina_info_ttcor'+eve.sufijo+'_'+eve.langu+'.htm\',\'S\')'
	this.eLisLinks[13]='JavaScript:TTTnewWin_oficinas2(\''+this.id+'\',\''+eve.usuario+'\',\''+eve.langu+'\',\''+eve.origen+'\',\''+this.sesion+'\')'
	this.eLisLinks[14]='JavaScript:TTTnewWin_info(\''+this.id+'\',\''+this.sesion+'\',\'INT\',\'TAQ2\',\'t\',\'S\')'
}

//0--> No sale, 1 con link, 2 sin link
function TTT_Listadogetitem(i,x,y){
	var st=''
	var vx=0
	var z=0
	var w=this.mask
	if (this.mask>=10000000000 && i==10 && this.mask <1000000000000)
	{
		z=1
	   	w=this.mask - 10000000000 + 1000000000
	}

	vx = Math.round(w/Math.pow(10,i-1))
	vx = vx % 10
	 if (z==1)
	 {
	 	st = '<img border="0" name="'+this.name+i+'" src="'+TTTeLisOff[i].src+'" width="'+x+'" height="'+y+'">'
	 }
	 else
	 {
	  	if (vx==0) st = ''
    	else{
    			if (vx==2) st = '<img src="'+TTTeLisNo[i].src+'" width="'+x+'" height="'+y+'">'
			    else st = '<a href="'+this.eLisLinks[i]+'" onmouseover="'+ this.name +'i.chImgOn('+i+')" onmouseout="'+ this.name +'i.chImgOff('+i+')"><img border="0" name="'+this.name+i+'" src="'+TTTeLisOff[i].src+'" width="'+x+'" height="'+y+'"></a>'
		      }
}
	return st

}
function TTT_Listadochimgon(i){
eval ('document.'+this.name+i+'.src = TTTeLisOn['+i+'].src')
}
function TTT_Listadochimgoff(i){
eval ('document.'+this.name+i+'.src = TTTeLisOff['+i+'].src')
}
function TTT_Listadowritehtml(){
// eventos no multisesión
	var st=''
	var i
	var ffVer =0;
  if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ 
	 ffversion=new Number(RegExp.$1);
	 if (ffversion>=1.9) {ffVer = 3;}
	 else if (ffversion>=1.8) {ffVer = 2;}
	 else if (ffversion>=1.7) {ffVer = 1;}
	} else {ffVer = 0;} 
	if (((Math.round(this.mask/10))%10)==1) {
     //if (eve.origen==0) {
     if (eve.arquitectura_web==1) {
     	st+='<table border="0" class="botcomp" cellspacing="0" cellpadding="0"  valign="top">' 
     	    st+='<script type="text/javascript">'
		      st+='function test(m,as,fv) {' 
			  st+='if (is.ns){'
		   	  st+='   if (m==1) {'
	        st+='       if (fv>=3) {return true;}'
	        st+='       else {alert(\''+l[44]+'\'); return false;}'
	        st+='        }'
		      st+='   else {'
		      st+='        if (as==\'S\') {'     
          st+='           alert(\''+l[43]+'\');return true;}'
			    st+='        else {return true;}' 
			    st+='        }' 
			    st+='} else {return true;}'
			    st+='}'  
		      st+='</script>' 
		      st+='<tr>'
	        st+='<td width="20" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td>'
	        // Boton Comprar
	        if (this.botonComprar != 'N'){ 
  		      if (this.navegador==true){st+='<TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="if (test('+this.multi+',\''+this.nasientos+'\')) '+this.eLisLinks[2]+'">'+l[26]+'</A></TD>'      }
        	  else {
        	  	if (this.id >=1000000) {
        	  	
        	  		st+='<TD align="left" class="but_nar"><a href="javascript:top.wps.deepLink(\'action=view_event&'+'event_id=020040C8876C07F1\');">'+l[26]+'</a></TD>'
        	  		//st+='<TD align="left" class="but_nar"><a href="javascript:void(0);" onclick="openWPS(\'https://ws.es.shared.dev18.websys.tmcs/pos#action=view_event&'+'event_id=020040C8876C07F1\'); return false;">'+l[26]+'</a></TD>'
        	  		
        	  		}
        	  	else {
        	    	st+='<TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="if (test('+this.multi+',\''+this.nasientos+'\','+ffVer+')) parent.TTTmFrame.parent.location.href=\''+this.eLisLinks[2]+'\'">'+l[26]+'</A></TD>'
        	  	  }
        	  	}
        	}
          // Boton Socios            
	        if (this.botonSocios != 'N'){ // [Conejo 2009-01-25]: Botón comprar socios	
			   if (!is.ns){
				   	st+='<tr><td width="20" height="2"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="2"></td><td width="20" height="2"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="2"></td></tr>'
   		       		// [2009-07-08]: pasamos el flag código de barras como parámetro 
   		       		// ValorLinkSocios='TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\')'
   		       		ValorLinkSocios='TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\',\''+this.ChkCodigoBarras+'\')'
			   		if (this.navegador==true){
			   			st+='<tr><td width="20" height="1" id="'+this.id+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td><TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="if (test('+this.multi+',\''+this.nasientos+'\')) '+ValorLinkSocios+'">'+this.botonSocios+'</A></TD>'     
			   		}else{
			    		st+='<tr><td width="20" height="1" id="'+this.id+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td><TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="if (test('+this.multi+',\''+this.nasientos+'\')) parent.TTTmFrame.parent.location.href=\''+ValorLinkSocios+'\'">'+this.botonSocios+'</A></TD>'				  
			   		}
			   }else{
//				    st+='<tr><td width="20" height="1" id="'+this.id+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td><TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="javascript:alert(\''+l[44]+'\');">'+this.botonSocios+'</A></TD>'
				   	st+='<tr><td width="20" height="2"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="2"></td><td width="20" height="2"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="2"></td></tr>'
   		       		// [2009-07-08]: pasamos el flag código de barras como parámetro 
   		       		// ValorLinkSocios='TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\')'
   		       		ValorLinkSocios='TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\',\''+this.ChkCodigoBarras+'\')'
		    		st+='<tr><td width="20" height="1" id="'+this.id+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td><TD align="left" class="but_nar"><A href="javascript:void(0)" onclick="if (test('+this.multi+',\''+this.nasientos+'\')) '+ValorLinkSocios+'">'+this.botonSocios+'</A></TD>'     
			   }
		    }else{
	           st+='<tr><td colspan="2" height="20"><img src="'+TTTwinowa2+'/images/cp.gif" width="25" height="1">' 
		    }
      }
     else {
     st+='<table border="0" cellspacing="0" cellpadding="0"  valign="top">'
   
     if (is.ns){
     
			
      st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="25" height="1"></td><td>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
      st+= '<td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '</tr>'
      st+='</table>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v1" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+='<td class="botoncomp" align="center" width="67">'
      st+='<script type="text/javascript">'
      st+='function redirect(link){'
	  
		if (this.multi==1) {
        st+='   window.alert(\''+l[44]+'\');'
      }else{
        if (this.nasientos=='S') {     
          st+='   window.alert(\''+l[43]+'\');'
          st+='   window.location = link;'
        }else{
          st+='   window.location = link;'        
        }
      }      
      st+='}'
      st+='</script>'
      if ((this.id >=1000000)&& (eve.tipov=='INT')) {
      	   st+='<a href="'+this.eLisLinks[2]+'" target="_blank" onmouseover="javascript:TTT_border_on(\'borde'+TTTbordeCount+'\',\'document\',false)" onmouseout="javascript:TTT_border_off(\'borde'+TTTbordeCount+'\',\'document\',false)" class="v10wh">'+l[26]+'</a>'
      	}
      else {
      	  st+='<a href="JavaScript:redirect(\''+this.eLisLinks[2]+'\');" onmouseover="javascript:TTT_border_on(\'borde'+TTTbordeCount+'\',\'document\',false)" onmouseout="javascript:TTT_border_off(\'borde'+TTTbordeCount+'\',\'document\',false)" class="v10wh">'+l[26]+'</a>'
        }
      st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+= '</tr>'
      st+='</table>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
      st+= '<td width="1" height="1" bgcolor="#666666"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '</tr>'
      st+= '</table>'
      st+= '<table width="70" border="0" cellpadding="0" cellspacing="0">'
      st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '<td width="1" bgcolor="#666666" width="69"><img src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td></tr>'
      st+='</table>'
      }
      else {
        st+='<tr><td style="padding-left:20px; padding-top:10px">'
        // Boton Comprar
        if (this.botonComprar != 'N'){ 
        	
        	if ((this.id >=1000000)&& (eve.tipov=='INT')) {
        		st+=TTT_common_button(l[26],70,14,"#FF6600",this.eLisLinks[2],null,null,'botoncomp','_blank')
        		}
          else {st+=TTT_common_button(l[26],70,14,"#FF6600",this.eLisLinks[2],null,null,'botoncomp')}
        }
        // Boton Socios
			  if (this.botonSocios != 'N'){ // [Conejo 2009-01-25]: Botón comprar socios	  
   		    // [2009-07-08]: pasamos el flag código de barras como parámetro 
   		    // ValorLinkSocios='JavaScript:TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\')'
       		ValorLinkSocios='JavaScript:TTT_LFP_Socios('+this.icount+','+this.navegador+',\''+this.id+'\',\''+this.ChkCodigoBarras+'\')'
				  st+='<br>'
				  st+=TTT_common_button(this.botonSocios,70,14,"#FF6600",ValorLinkSocios,null,null,'botoncomp')
			  }
	   }
   }
    st+='</td></tr>'
		st+='</table>'
	//}
  st+='<div class="info3">'
	st+='<table border="0" cellspacing="5" cellpadding="0"  valign="top" class="v10bl" >'
	
	if (eve.tipov!='INT') st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td colspan="2" align="left" class="v10bl"><b>'+l[37]+':&nbsp;</b>'+this.id+'</td></tr>'
	if (this.getItem(1,21,21)) { st+='<tr ><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(1,21,21)+'</td><td>'+pag.rec1+'</td></tr>'}
		if (this.getItem(8,21,21)) { st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(8,21,21)+'</td><td>'+pag.rec8+'</td></tr>'}
		if (this.getItem(10,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(10,21,21)+'</td><td>'+pag.rec10+'</td></tr>'}
		if (this.getItem(9,21,21)) { st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(9,21,21)+'</td><td>'+pag.rec9+'</td></tr>'}
		if (this.getItem(13,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(13,21,21)+'</td ><td>'+pag.rec13+'</td></tr>'}
		if (this.getItem(7,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(7,21,21)+'</td ><td>'+pag.rec7+'</td></tr>'}
		if (this.getItem(14,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(14,21,21)+'</td ><td>'+pag.rec14+'</td></tr>'}

		st+='<tr colspan="2" align="left"  height="5"><td><img src="/images/cp.gif" height="5"></td></tr>' 
		//if (eve.arquitectura_web==1) {
    if (eve.origen==0) {st+='<tr class="v10bl"><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td><a href="JavaScript:TTTnewWin_amigo(\''+this.des_eve+'\',\''+this.fecha+'\',\''+this.locali+'\',\''+this.logoim+'\','+this.id+',\''+eve.langu+'\')" ><img src="/images/enviar_amigo.gif" border="0" height="21" width="21"></a></td><td>'+this.amigotxt+'</td></tr>' }
		st+='<tr class="v10bl"><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td><img src="/images/'+this.edad+'.gif" height="21" width="21"></td><td>'+this.edadtxt+'</td></tr>' 
		st+='</table>'
		st+='</div>'
	}
	else {
		if ((this.stat == 0) && (this.mask >9)) {
	      st+='<div class="avisador"><span>'+pag.rec100+'</span><br><br>'+pag.rec101+'</div>'
	    }
  }
	return st
}
function NavegadorZonas(ValorLink) {
	var ancho=(screen.width-783)/2
	var alto=(screen.height-530)/2
	if (eve.tipov == 'INT') {
    Ventana=window.open(ValorLink , "Ventana", "scrollbars=yes,status=yes,width=783,height=530,left="+ancho+",top="+alto+"" )
  } else {
    // [2009-07-08]: si estás comprando desde Ttcin, debe abrir dentro del mismo frame
    // parent.location.replace(ValorLink)
    parent.frames[1].location.replace(ValorLink)
  }
}
//eventos con navegador
function TTT_Listadowritehtml_N(){
	var st=''
	var i
	if (((Math.round(this.mask/10))%10)==1) {
		st+='<table border="0" cellspacing="0" cellpadding="0" valign="top">'
		if (eve.tipov!='INT')	{
      //st+='<tr><td style="padding-left:20px; padding-top:10px">'+TTT_common_button(l[26],70,14,"#FF6600",this.eLisLinks[2],null,null,'botoncomp')+'</td></tr>'
			if (is.ns){
        st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="25" height="1"></td><td>'
        st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
        st+= '<tr>'
        st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
        st+= '<td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
        st+= '</tr>'
        st+='</table>'
        st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
        st+= '<tr>'
        st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v1" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
        st+='<td class="botoncomp" align="center" width="67">'
        st+='<a href="JavaScript:window.alert(\''+l[44]+'\')" onmouseover="javascript:TTT_border_on(\'borde'+TTTbordeCount+'\',\'document\',false)" onmouseout="javascript:TTT_border_off(\'borde'+TTTbordeCount+'\',\'document\',false)" class="v10wh">'+l[26]+'</a>'
        st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
        st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
        st+= '</tr>'
        st+='</table>'
        st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
        st+= '<tr>'
        st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
        st+= '<td width="1" height="1" bgcolor="#666666"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
        st+= '</tr>'
        st+= '</table>'
        st+= '<table width="70" border="0" cellpadding="0" cellspacing="0">'
        st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
        st+= '<td width="1" bgcolor="#666666" width="69"><img src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td></tr>'
        st+='</table>'
      }else{
        st+='<tr><td style="padding-left:25px; padding-top:10px">' //st+='<tr><td style="padding-left:20px; padding-top:10px">'
        st+=TTT_common_button(l[26],70,14,"#FF6600",this.eLisLinks[2],null,null,'botoncomp')
      }
      st+='</td></tr>'						
		}
		else
		{	st+='<tr><td align="center" class="v10bk">'+TTT_common_button(l[26],70,14,"#FF6600",NavegadorZonas(this.eLisLinks[2]),null)+'</td></tr>'
		}
		st+='</table>'
	  st+='<div class="info3">'
		st+='<table  border="0" cellspacing="5" cellpadding="0" class="v10bl">'
		if (eve.tipov!='INT') st+='<tr><td colspan="2" align="left" class="v10bl"><b>'+l[37]+':&nbsp;</b>'+this.id+'</td></tr>'
		if (this.getItem(1,21,21)) { st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(1,21,21)+'</td><td>'+pag.rec1+'</td></tr>'}
		if (this.getItem(8,21,21)) { st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(8,21,21)+'</td><td>'+pag.rec8+'</td></tr>'}
		if (this.getItem(10,21,21)) {st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(10,21,21)+'</td><td>'+pag.rec10+'</td></tr>'}
		if (this.getItem(9,21,21)) { st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(9,21,21)+'</td><td>'+pag.rec9+'</td></tr>'}
		if (this.getItem(13,21,21)) {st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(13,21,21)+'</td><td>'+pag.rec13+'</td></tr>'}
		if (this.getItem(7,21,21)) {st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(7,21,21)+'</td><td>'+pag.rec7+'</td></tr>'}	
    if (this.getItem(14,21,21)) {st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td>'+this.getItem(14,21,21)+'</td ><td>'+pag.rec14+'</td></tr>'}
		
		st+='<tr colspan="2" align="left"  height="5"><td><img src="/images/cp.gif" height="5"></td></tr>' //mosh
		//if (eve.arquitectura_web==1){
    if (eve.origen==0) {st+='<tr class="v10bl"><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td><a href="JavaScript:TTTnewWin_amigo(\''+this.des_eve+'\',\''+this.fecha+'\',\''+this.locali+'\',\''+this.logoim+'\','+this.id+',\''+eve.langu+'\')" ><img src="/images/enviar_amigo.gif" border="0" height="21" width="21"></a></td><td>'+this.amigotxt+'</td></tr>' }
		st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="15" height="1"></td><td><img src="/images/'+this.edad+'.gif" height="21" width="21"></td><td>'+this.edadtxt+'</td></tr>' 
		st+='</table>'
		st+='</div>'
		}
	else {
		if ((this.stat == 0) && (this.mask >9)) {
	      st+='<div class="avisador"><span>'+pag.rec100+'</span><br><br>'+pag.rec101+'</div>'
	    }
  }
	return st
}

//eventos multisesión
function TTT_Listadowritehtml_m(){
	var st=''
	var i
	var ffVer =0;
 if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ 
	 ffversion=new Number(RegExp.$1);
	 if (ffversion>=1.9) {ffVer = 3;}
	 else if (ffversion>=1.8) {ffVer = 2;}
	 else if (ffversion>=1.7) {ffVer = 1;}
	} else {ffVer = 0;} 
	if (((Math.round(this.mask/10))%10)==1) {		
  //if (eve.origen==0)
  if (eve.arquitectura_web==1) {
   	st+='<table class="botcomp" border="0" cellspacing="0" cellpadding="0" valign="top">' 
   	    st+='<script type="text/javascript">'
	      st+='function test(m,as,fv) {' 
	      st+='if (is.ns){'
	      st+='   if (m==1) {'
	      st+='       if (fv>=3) {return true;}'
	      st+='       else {alert(\''+l[44]+'\'); return false;}'
	      st+='        }'
	      st+='   else {'
	      st+='        if (as==\'S\') {'     
        st+='           alert(\''+l[43]+'\');return true;}'
		    st+='        else {return true;}' 
		    st+='        }' 
		    st+='} else {return true;}'
		    st+='}'  
	      st+='</script>' 
	    st+='<tr>'
	    st+='<td width="20" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1"></td>'
    	st+='<TD class="but_nar" id="'+this.id+'"><A href="javascript:if (test('+this.multi+',\''+this.nasientos+'\','+ffVer+')) '+this.eLisLinks[2]+'">'+l[26]+'</A></td><tr>'
//    	st+='<TD class="but_nar" id="'+this.id+'"><A href="javascript:'+this.eLisLinks[2]+'">Adios001'+l[26]+'</A></td><tr>'
    	st+='<tr><td colspan="2" height="20" ><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="1">'      
    }
   else {
   	st+='<table border="0" cellspacing="0" cellpadding="0" valign="top">'
		if (is.ns){
		  st+='<tr><td width="15" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="25" height="1"></td><td>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
      st+= '<td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '</tr>'
      st+='</table>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v1" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+='<td class="botoncomp" align="center" width="67">'
      if (ffVer >=3) {st+='<a href="'+this.eLisLinks[2]+'" onmouseover="javascript:TTT_border_on(\'borde'+TTTbordeCount+'\',\'document\',false)" onmouseout="javascript:TTT_border_off(\'borde'+TTTbordeCount+'\',\'document\',false)" class="v10wh">'+l[26]+'</a>'}
      else {st+='<a href="JavaScript:window.alert(\''+l[44]+'\')" onmouseover="javascript:TTT_border_on(\'borde'+TTTbordeCount+'\',\'document\',false)" onmouseout="javascript:TTT_border_off(\'borde'+TTTbordeCount+'\',\'document\',false)" class="v10wh">'+l[26]+'</a>'}
      st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="14"></td>'
      st+= '</tr>'
      st+='</table>'
      st+='<table  width="70" border="0" cellspacing="0" cellpadding="0">'
      st+= '<tr>'
      st+= '<td bgcolor="#CCCCCC" width="69" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td>'
      st+= '<td width="1" height="1" bgcolor="#666666"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '</tr>'
      st+= '</table>'
      st+= '<table width="70" border="0" cellpadding="0" cellspacing="0">'
      st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
      st+= '<td width="1" bgcolor="#666666" width="69"><img src="'+TTTwinowa2+'/images/cp.gif" width="69" height="1"></td></tr>'
      st+='</table>'
	    }else{
	      st+='<tr><td style="padding-left:20px; padding-top:10px" id="'+this.id+'">'
	      st+=TTT_common_button(l[26],70,14,"#FF6600",this.eLisLinks[2],null,null,'botoncomp')	
	    }
	  }
    st+='</td></tr>'
		st+='</table>'

 st+='<div class="info3">'
	st+='<table border="0" cellspacing="5" cellpadding="0"  valign="top" class="v10bl" >'
	
	if (eve.tipov!='INT') st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td colspan="2" align="left" class="v10bl"><b>'+l[37]+':&nbsp;</b>'+this.id+'</td></tr>'
	if (this.getItem(1,21,21)) { st+='<tr ><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(1,21,21)+'</td><td>'+pag.rec1+'</td></tr>'}
		if (this.getItem(8,21,21)) { st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(8,21,21)+'</td><td>'+pag.rec8+'</td></tr>'}
		if (this.getItem(10,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(10,21,21)+'</td><td>'+pag.rec10+'</td></tr>'}
		if (this.getItem(9,21,21)) { st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(9,21,21)+'</td><td>'+pag.rec9+'</td></tr>'}
		if (this.getItem(13,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(13,21,21)+'</td ><td>'+pag.rec13+'</td></tr>'}
		if (this.getItem(7,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(7,21,21)+'</td ><td>'+pag.rec7+'</td></tr>'}
		if (this.getItem(14,21,21)) {st+='<tr><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td>'+this.getItem(14,21,21)+'</td ><td>'+pag.rec14+'</td></tr>'}

		st+='<tr colspan="2" align="left"  height="5"><td><img src="/images/cp.gif" height="5"></td></tr>' 
		//if (eve.arquitectura_web==1) {
    if (eve.origen==0) {st+='<tr class="v10bl"><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td><a href="JavaScript:TTTnewWin_amigo(\''+this.des_eve+'\',\''+this.fecha+'\',\''+this.locali+'\',\''+this.logoim+'\','+this.id+',\''+eve.langu+'\')" ><img src="/images/enviar_amigo.gif" border="0" height="21" width="21"></a></td><td>'+this.amigotxt+'</td></tr>' }
		st+='<tr class="v10bl"><td width="10" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="10" height="1"></td><td><img src="/images/'+this.edad+'.gif" height="21" width="21"></td><td>'+this.edadtxt+'</td></tr>' 
		st+='</table>'
		st+='</div>'

			}
	else {
		if ((this.stat == 0) && (this.mask >9)) {
	      st+='<div class="avisador"><span>'+pag.rec100+'</span><br><br>'+pag.rec101+'</div>'
	    }
  }
	return st
}
function TTT_ListadoCab() {
	var st=''
	st+='<table width="610" cellpadding="0" cellspacing="0" border="0">'
	st+='<tr><td width="7" align="left"><img src="/images/cp.gif" width="7" height="1"></td>' //10
	st+='<td width="603" align="left">'
	st+=TTT_common_BoxCompraInf(l[2]+'|'+l[3]+'|'+l[5],'119|359|125','left|left|left',null) //106|376|118
	st+='</td></tr></table>'
	return st
}
function getAbsoluteElementPosition(element) {
  if (typeof element == "string")
    element = document.getElementById(element)    
  if (!element) return { top:0,left:0 };  
  var y = 0;
  var x = 0;
  while (element.offsetParent) {
    x += element.offsetLeft;
    y += element.offsetTop;
    element = element.offsetParent;
  }
  return {top:y,left:x};
}
function TTT_ListadoCalendario(i,navegador,id) {
	var fa
	fa=TTTAPI_setDefaults('TTT_ListadoCalendario',0,true,0)
	if (fa[2]!=0) {
		var elemento = document.getElementById(id);		
		var pos = getAbsoluteElementPosition(elemento)
		if (TTTCalActive == false) {
			TTTScrollValue = pos.top		
			var cal=new TTTObjCalendario(i,300,TTTScrollValue,280,220)
			cal.write()
		  }
  }
  else {
		if (TTTCalActive == false) {
			if (is.ns) TTTScrollValue =  window.pageYOffset
			else TTTScrollValue = document.body.scrollTop			
			var cal=new TTTObjCalendario(i,300,TTTScrollValue+60,280,220)
			cal.write()
		}
 }
}
// [Conejo 2009-03-10]: Botón comprar socios 
// [Frosty 2009-07-08]: Arrastramos flag código de barras para saber siguiente página 
function TTT_LFP_Socios(i,navegador,id,ChkCodigoBarras) {
	var fa
	fa=TTTAPI_setDefaults('TTT_LFP_Socios',0,true,0,'')
	if (fa[2]!=0) {
		var elemento = document.getElementById(id);		
		var pos = getAbsoluteElementPosition(elemento)
		if (TTTSociosActive == false) {
			TTTScrollValue = pos.top
			//if (eve.origen==0)
      if (eve.arquitectura_web==1) {
				var socios=new TTTObjLFPSocios(i,100,60,380,360,ChkCodigoBarras)
			}else{
				var socios=new TTTObjLFPSocios(i,100,TTTScrollValue+60,430,390,ChkCodigoBarras)
			}
			socios.write()
		  }
  }
  else {
		if (TTTSociosActive == false) {
			if (is.ns) TTTScrollValue =  window.pageYOffset
			else TTTScrollValue = document.body.scrollTop			
			//if (eve.origen==0)
      if (eve.arquitectura_web==1) {
				var socios=new TTTObjLFPSocios(i,100,60,380,360,ChkCodigoBarras)
			}else{
				var socios=new TTTObjLFPSocios(i,100,TTTScrollValue+60,430,390,ChkCodigoBarras)
			}
			socios.write()
		}
 }
}
// [Conejo 2009-03-10]: Botón comprar socios 
function TTT_ListadoTab1(i){
	var st=''
	var aux=''
	st+='<table border="0" cellspacing="0" cellpadding="0" width="118"><tr>'
	if (eve.css!=0) {aux =eve.operador}
	st+='<td height="30" width="23" cellspacing="0" cellpadding="0"><img src="/images/cp.gif" width="7" height="1"><img src="/images/elis_'+e[i].stat+aux+'.gif" width="16" height="16"></td>' //mosh 16
	st+='<td height="30" width="95" class="v10bk" nowrap>&nbsp;'+l[eval(parseInt(eval(parseInt(e[i].stat)+14)))]+'</td>'
	if (e[i].today!='')st+='</tr><tr><td width="118" colspan="2" class="v12or" align="left" valign="top"><table width="45" cellspacing="5" cellpadding="0"><tr><td valign="top" align="left"><img src="/images/destacado.gif" width="11" height="7"></td><td valign="top" align="left" class="v10bk">'+e[i].today+'</td></tr></table></td>'
	st+='</tr><tr><td width="118" height="1" colspan="2" class="linea"><img src="/images/cp.gif" width="118" height="1"></td>'
	st+='</tr><tr><td width="118" colspan="2">'
	st+='<table border="0" cellspacing="10" cellpadding="0" width="118">'
	st+='<tr><td class="v10bk">'+e[i].date+'</td></tr>'
	st+='<tr><td class="v10bk">'+e[i].hour+'</td></tr>'
	st+='</table></td></tr></table>'
	return st
	
}
function TTT_ListadoTab3(i,HayNavegador){
	var st=''
//	eval('v'+i+'= new TTTeLis("document",'+e[i].id+','+e[i].sesion+','+e[i].mask+','+e[i].multisesion+','+i+','+e[i].navegador+',\''+e[i].nasientos+'\','+e[i].edad+',"'+e[i].edadtxt+'",\''+e[i].datea+'\','+'\''+e[i].des_eve+'\','+'\''+e[i].locali+'\','+'\''+e[i].logoim+'\','+'\''+e[i].amigotxt+'\','+'\''+e[i].idtm+'\','+e[i].stat+')') 
//	eval('v'+i+'= new TTTeLis("document",'+e[i].id+','+e[i].sesion+','+e[i].mask+','+e[i].multisesion+','+i+','+e[i].navegador+',\''+e[i].nasientos+'\','+e[i].edad+',"'+e[i].edadtxt+'",\''+e[i].datea+'\','+'\''+e[i].des_eve+'\','+'\''+e[i].locali+'\','+'\''+e[i].logoim+'\','+'\''+e[i].amigotxt+'\','+'\''+e[i].idtm+'\','+e[i].stat+',\''+e[i].ChkCodigoBarras+'\''+')')
// [Conejo 2009-01-25]: Botón comprar socios	  
	eval('v'+i+'= new TTTeLis("document",'+e[i].id+','+e[i].sesion+','+e[i].mask+','+e[i].multisesion+','+i+','+e[i].navegador+',\''+e[i].nasientos+'\','+e[i].edad+',"'+e[i].edadtxt+'",\''+e[i].datea+'\','+'\''+e[i].des_eve+'\','+'\''+e[i].locali+'\','+'\''+e[i].logoim+'\','+'\''+e[i].amigotxt+'\','+'\''+e[i].idtm+'\','+e[i].stat+',\''+e[i].ChkCodigoBarras+'\','+'\''+e[i].botonSocios+'\','+'\''+e[i].botonComprar+'\''+')') 
	if (HayNavegador==true){
		st+=eval('v'+i+'.writeHtml_N();')
	}
	else
	{
		st+=eval('v'+i+'.writeHtml();')
	}
	return st
}
function TTTListadoTablaItem(icolor,i,HayNavegador) {
  if (icolor==1) color='vfondoal1'
	else color='vfondoal2'
	var st=''

	st+='<table width="610" border="0" cellpadding="0" cellspacing="0">'	
	st+='<tr><td width="7" align="left"><img src="/images/cp.gif" width="7"></td><td width="603" align="left">'
	st+='<table width="603" height="10" border="0" cellpadding="0" cellspacing="0" class="'+color+'">'
	st+='<tr>'
	st+='<td height="10" width="118" align="left"><img src="/images/cp.gif" width="118" height="10"></td>'
	st+='<td height="10" width="1" class="lineav"><img src="/images/cp.gif" width="1" height="10"></td>'
	st+='<td height="10" width="358" valign="top"><img src="/images/cp.gif" width="358" height="10"></td>'
	st+='<td height="10" width="1" class="lineav"><img src="/images/cp.gif" height="10" width="1"></td>'
	st+='<td height="10" width="125" align="left" valign="top"><img src="/images/cp.gif" height="10" width="125"></td>'
	st+='</tr></table></td></tr></table>'
	
	st+='<table width="610" border="0" cellpadding="0" cellspacing="0">'	
	st+='<tr><td width="7" align="left"><img src="/images/cp.gif" width="7"></td><td width="603" align="left">'
	st+='<table width="603" border="0" cellpadding="0" cellspacing="0" class="'+color+'">'
	st+='<tr>'
	st+='<td width="118" valign="top" align="left">'+TTT_ListadoTab1(i)+'</td>'	
	st+='<td width="1" class="lineav"><img src="/images/cp.gif" width="1"></td>'
	st+='<td width="358" valign="top">'
	st+='<table width="358" border="0" cellpadding="0" cellspacing="0">'
	st+='<tr>'
		st+='<td width="274" class="v12bk">' 
//	st+='<table cellspacing="5"><tr><td class="v12bk"><b>'+e[i].imp3+'</b></td></tr><tr><td class="v10bk">'+e[i].type+'</td></tr></table></td>'
			st+='<table cellspacing="1" border="0">'
				st+='<tr>'
					st+='<td class="v12bk"><b>'+e[i].imp3+'</b></td>'
				st+='</tr>'
			st+='</table>'
		st+='</td>'
		st+='<td width="1" background="/images/cp.gif"><img src="/images/cp.gif" width="1"></td>'
		st+='<td width="93" valign="top" class="v10bk" align="right">'
			st+='<table cellspacing="1" border="0">'
				st+='<tr>'
					st+='<td class="v10bk">'+"  "+'</td>'
					st+='<td class="v10bk" align="right">'+e[i].type+'</td>'
				st+='</tr>'
			st+='</table>'
		st+='</td>'
	st+='</tr>'
	st+='<tr>'
		st+='<td colspan="3" width="358" class="v10bk">'
			st+='<table cellspacing="1" border="0">'
//				st+='<tr>'
//					st+='<td class="v10bl"><b>'+e[i].place+'&nbsp;-&nbsp;'+e[i].city+'</b></td>'
//				st+='</tr>'
				st+='<tr><td class="v10bl">'+e[i].place+'</td></tr>'
				st+='<tr><td class="v10bl"><b>'+e[i].city+'</b></td></tr>'
			st+='</table>'
			st+='<table cellspacing="2" border="0">'
				st+='<tr><td width="1" background="/images/cp.gif"><img src="/images/cp.gif" width="1"></td></tr>'
			st+='</table>'
			st+='<table cellspacing="2" border="0">'
				if (e[i].imp4.length > 0 ) {
				st+='<tr><td class="vdemo">'+TTT_common_ListBox8(e[i].imp4,344,10)+'</td></tr>' //363
				}
				else {
				st+='<tr><td><img src="/images/cp.gif" width="344" height="1"></td></tr>'
				}
				st+='<tr><td class="v10bk">'+e[i].imp0+'</td></tr>'
				st+='<tr><td class="v10bl">'+e[i].imp8+'</td></tr>'
				st+='<tr><td class="v10bl">'+e[i].imp7+'</td></tr>'
			st+='</table>'
		st+='</td>'
	st+='</tr>'
	st+='</table>'
	st+='</td>'
	st+='<td width="1" class="lineav"><img src="/images/cp.gif" width="1"></td>'
	st+='<td width="125" align="left" valign="top" class="'+color+'">'+TTT_ListadoTab3(i,HayNavegador)+'</td>'
	st+='</tr>'
	st+='</table>'
	st+='</td></tr>'
	st+='</table>'
	
	st+='<table width="610" border="0" cellpadding="0" cellspacing="0">'	
	st+='<tr><td width="7" align="left"><img src="/images/cp.gif" width="7"></td><td width="603" align="left">'
	st+='<table width="603" height="10" border="0" cellpadding="0" cellspacing="0" class="'+color+'">'
	st+='<tr>'
	st+='<td height="10" width="118" align="left"><img src="/images/cp.gif" width="118" height="10"></td>'
	st+='<td height="10" width="1" class="lineav"><img src="/images/cp.gif" width="1" height="10"></td>'
	st+='<td height="10" width="358" valign="top"><img src="/images/cp.gif" width="358" height="10"></td>'
	st+='<td height="10" width="1" class="lineav"><img src="/images/cp.gif" height="10" width="1"></td>'
	st+='<td height="10" width="125" align="left" valign="top"><img src="/images/cp.gif" height="10" width="125"></td>'
	st+='</tr>'
	st+='<tr><td colspan="5" class="vsep1"><img src="/images/cp.gif" width="1" height="4"></td></tr>'
	st+='</table></td></tr></table>'
	
	return st
}
function TTT_ListadoPagHTML() {
	var st=''
	var i=0
	if (pag.can > 1) {
		st+='<table border="0" cellspacing="5" cellpadding="0">'
		st+='<tr>'
		st+='<td width="0"><img src="images/cp.gif" width="0" height="1"></td>'
		if (pag.act!=1) st+='<td class="v10bk" align="left"><a href="'+pag.link+eval(pag.act-1)+'" target="TTTmFrame"><img src="'+TTTeLisOff[12].src+'" border="0" valign="bottom"></a></td>'
		st+='<td class="v10bk" align="left">'+l[23]+'&nbsp;'+pag.act+'/'+pag.can+'&nbsp;</td>'
		 if (pag.act < pag.can) st+='<td align="left"><a href="'+pag.link+eval(pag.act+1)+'" target="TTTmFrame"><img src="'+TTTeLisOff[11].src+'"  border="0" valign="bottom"></a>'
		st+='</tr></table>'
   	}
	return st
}
function TTT_Listado_HTML(HayNavegador){
	var i=0
	var st=''
	var color=1
	st+='<table class="vflista1" width="610" border="0" cellpadding="0" cellspacing="0" ><tr><td>' //617
	st+='<table border="0" cellpadding="0" cellspacing="0" >'
	st+='<tr><td bgcolor="#CCCCCC"><img src="/images/cp.gif"  height="1"></td></tr>'
	st+='</table>'
	st+='<br>'
	st+='<table  border="0" cellpadding="0" cellspacing="0">'
	st+='<tr><td width="10"><img src="/images/cp.gif" width="10"></td><td class="v10bk" align="left"><b>'+l[25]+'</b></td></tr>'
	st+='<tr><td width="10"><img src="/images/cp.gif" width="10"></td><td class="v10bk" align="left">'+l[22]+'</td></tr>'
	st+='</table>'
	st+='<br>'
	st+=TTT_ListadoCab()
	for (i=0;i<e.length;i++) {
		st+=TTTListadoTablaItem(color,i,HayNavegador)
		color=-color
	}
	st+=TTT_ListadoPagHTML()
	
//	if ((eve.origen==0) || (eve.tmaster=='S'))  {
	if ((eve.arquitectura_web==1) || (eve.tmaster=='S'))  {		
    st+='<table width="610" border="0" cellpadding="0" cellspacing="0">'
		st+='<tr><td colspan="3" height="20"><img src="/images/cp.gif"></td></tr>'
		st+='<tr>'
	  st+='<td width="7"><img src="/images/cp.gif" width="7"></td><td colspan="2" class="v10bl" width="590"><img src="/images/cp.gif" width="3">'+l[45]+'</td>'
	  st+='</tr></table>'
	}
  else {
		st+='<br>'
		st+='<table width="610" border="0" cellpadding="0" cellspacing="0">'
		st+='<tr>'
	  st+='<td width="7"><img src="/images/cp.gif" width="7"></td><td colspan="2" class="vccompra0" width="590"><img src="/images/cp.gif" width="3">'+l[13]+'</td>'
	  st+='</tr>'
	  st+='<tr><td colspan="3" height="20"><img src="/images/cp.gif"></td></tr>'
		st+='<tr><td width="7"><img src="/images/cp.gif" width="7"></td><td width="7"><img src="/images/cp.gif" width="7"></td><td width="590" class="v10bk" valign="top">'+l[28]+'<br>&nbsp;</td></tr>'
	  st+='<tr><td width="7"><img src="/images/cp.gif" width="7"></td><td width="7"><img src="/images/cp.gif" width="7"></td></td><td width="590" class="v12bl"><b>'+eform.write(l[13])+'</b></td></tr>'
		st+='<tr><td width="7"><img src="/images/cp.gif" width="7"></td><td width="7"><img src="/images/cp.gif" width="7"></td></td><td width="590" class="v10bk" valign="top"><img src="/images/cp.gif" with="1" height="5"></td></tr>'
		st+='</table>'
		st+='<br>'
	}
	
	st+='</td></tr></table>'
	return st
}
// objeto pestaña multitipoevento
var TTT_mTEvento_count=0
function TTT_mTEvento() {
	this.name='TTT_mTEvento'+TTT_mTEvento_count++
	this.obj=this.name+'obj'
	eval(this.obj+'=this')
	this.index=0
	this.mTEvento=new Array()
	this.add=TTT_mTEvento_add
	this.write=TTT_mTEvento_write
}
function TTT_mTEvento_add(na,id,ln){
	this.mTEvento[this.index] = new Object()
	this.mTEvento[this.index].name = na
	this.mTEvento[this.index].id = id
	this.mTEvento[this.index].ln = ln
	this.index++
}
function TTT_mTEvento_write(){
	var st=''
	st+='<table border="0" cellspacing="0" cellpadding="0" width="100%" height="18"><tr>'
	for (i=0;i<this.mTEvento.length;i++){
		if (i<this.mTEvento.length && i>1) st+='<td class="v11bl3" background="/images/cpbar.gif" height="18">|</td>'
		if (this.mTEvento[i].id==eve.tipo)	st+='<td class="v11na" height="18">&nbsp;&nbsp;<b>'+this.mTEvento[i].name+'</b>&nbsp;&nbsp;</td>'
		else st+='<td class="v11bl3" width="1" background="/images/cpbar.gif" height="18">&nbsp;&nbsp;<a href="'+this.mTEvento[i].ln+'" target="_top" class="v11bl3">'+this.mTEvento[i].name+'</a>&nbsp;&nbsp;</td>'
	}
	st+='<td background="/images/cpbar.gif" width="100%" height="18" class="v11bl3">&nbsp;</td>'
	st+='</tr></table>'
	return st
}
