var TTTbordeCount=0
var TTTborde=new Image(1,1)
TTTborde.src=TTTwinowa2+"/images/cp.gif"
var TTTborde2=new Image(1,1)
TTTborde2.src=TTTwinowa2+"/images/cpyellow.gif"
function TTTAPI_checkParameters(obj,n){
    	var argc=eval(obj+'.arguments.length')
    	if(argc<n) {
    		alert('APIError: En la función ' + String(obj) + '. Se esperaban '+n+' parametros y se le pasaron ' + argc +'.')
    		return false
    	}
    	else return true
}
function TTTAPI_setDefaults(obj){
	var argv=eval(obj+'.arguments')
	var argc=eval(obj+'.arguments.length')
	for(i=1;i<TTTAPI_setDefaults.arguments.length;i++){
		if (argv[i-1]==null || argv[i-1]=='undefined') {
			argv[i-1]=TTTAPI_setDefaults.arguments[i]
		}
	}
	return argv
}
function TTT_menu_title_red(txt1,txt2,size,fsize,fsize2,height) {
	var st=''
	var fa
	st+=TTT_pintaBarra(false)
	if (TTTAPI_checkParameters('TTT_menu_title_red',6)){
		fa=TTTAPI_setDefaults('TTT_menu_title_red','&nbsp','&nbsp',615,11,11,20)
		fa[2]=614
		st+='<table border="0"  width="'+(fa[2]-1)+'" cellpadding="0" cellspacing="0">'
		if (fa[1]!='&nbsp;') st+='<tr><td class="v'+fa[3]+'wh" align="left" bgcolor="#FF0000" nowrap><b>&nbsp;'+fa[0]+'</b></td><td class="v'+fa[4]+'wh" align="right" bgcolor="#FF0000" nowrap><b>'+fa[1]+'&nbsp;</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>'
		else st+='<tr><td colspan="2" class="v'+fa[3]+'wh" align="left" bgcolor="#FF0000" width="'+(fa[2]-2)+'"><b>&nbsp;'+fa[0]+'</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#666666"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#999999"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#CCCCCC"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='</table>'
	}
	return st
}
function TTT_menu_title(txt1,txt2,size,fsize,fsize2,height,otros) {
	var st=''
	var fa
	if (TTTAPI_checkParameters('TTT_menu_title',6)){
		fa=TTTAPI_setDefaults('TTT_menu_title','&nbsp','&nbsp',610,11,11,20)
		fa[5] = 15
		//fa[2] = 615
		st+='<table border="0"  width="'+(fa[2]-1)+'" cellpadding="0" cellspacing="0">'
		if (fa[1]!='&nbsp;') st+='<tr><td class="vtit0" align="left" nowrap><b>&nbsp;&nbsp;&nbsp;'+fa[0]+'</b></td><td class="vtit0" align="right" nowrap><b>'+fa[1]+'&nbsp;</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>' ///class="v'+fa[4]+'wh" bgcolor="#2C4096" 
		else st+='<tr><td colspan="2" class="vtit0" align="left" width="'+(fa[2]-2)+'"><b>&nbsp;&nbsp;&nbsp;'+fa[0]+'</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>' //class="v'+fa[3]+'bl"  bgcolor="#2C4096"
		st+='<tr><td class="vtit00" colspan="2" width="'+(fa[2]-2)+'" ><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td class="vtit000" colspan="2" width="'+(fa[2]-2)+'" ><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td class="vtit0000" colspan="2" width="'+(fa[2]-2)+'" ><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='</table>'
		
	}
	return st
}
function TTT_menu_title_local(txt1,txt2,size,fsize,fsize2,height) {
	var st=''
	var fa
	if (TTTAPI_checkParameters('TTT_menu_title_local',6)){
		fa=TTTAPI_setDefaults('TTT_menu_title_local','&nbsp','&nbsp',610,11,11,20)
		fa[5] = 15
		fa[2] = 615
		st+='<table border="0"  width="'+(fa[2]-1)+'" cellpadding="0" cellspacing="0">'
		if (fa[1]!='&nbsp;') st+='<tr><td class="v11bl2" bgcolor="#2C4096" align="left" nowrap><b>'+fa[0]+'</b></td><td class="v'+fa[4]+'wh" align="right" bgcolor="#2C4096" nowrap><b>'+fa[1]+'</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>'
		else st+='<tr><td colspan="2" class="v'+fa[3]+'bl" align="left" bgcolor="#2C4096" width="'+(fa[2]-2)+'"><b>'+fa[0]+'</b></td><td width="1" height="'+fa[5]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[5]+'"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#666666"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#999999"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='<tr><td colspan="2" width="'+(fa[2]-2)+'" bgcolor="#CCCCCC"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[2]+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
		st+='</table>'
	}
	return st
}
function TTT_common_boxInfo(str,size){
	
	var color='#3399CC'
	var st=''
	var st2=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_boxInfo',2)){
		fa=TTTAPI_setDefaults('TTT_common_boxInfo','&nbsp',200)
		st2+='<table width="'+(fa[1]-10)+'" border="0" cellspacing="5" cellpadding="0">'
		st2+='<tr><td align="left" class="vboxaten">'+fa[0]+'</td></tr>'
		st2+='</table>'
		if (fa[1]==null) fa[1]=200
		else color="#3399CC"
		st+='<table width="'+fa[1]+'" cellspacing="0" cellpadding="0" border="0"><tr><td>'
		st+='<tr><td colspan="3"  class="vboxatenb" width="'+fa[1]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr><tr>'
		st+='<td  class="vboxatenb" width="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
		st+='<td width="'+(fa[1]-2)+'" class="vboxaten" align="left">'+st2+'</td>'
		st+='<td  class="vboxatenb" width="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td>'
		st+='</tr><tr><td colspan="3" class="vboxatenb" width="'+fa[1]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr></table>'
	}
	return st
}
function TTT_common_BoxTit(str,size) {
	var st=''
	var fa
	var aux
	if (TTTAPI_checkParameters('TTT_common_BoxTit',2)){
		fa=TTTAPI_setDefaults('TTT_common_BoxTit','&nbsp',200)
		//if (window.eve) {aux = eve.origen} else {aux=1}
		//if (aux==0) { /*if (eve.origen==0) {*/
    if (window.eve) {aux = eve.arquitectura_web} else {aux=0}		
		if (aux==1) { 
			st+='<table width="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
			st+='<tr><td class="vsep1" width="'+fa[1]+'" align="left" height="4"><b><img src="'+TTTwinowa2+'/images/cp.gif" height="4"></b></td></tr>'
			st+='</table>'
			st+='<table width="'+fa[1]+'" border="0" cellpadding="5" cellspacing="0">'
			st+='<tr><td class="vbox0" width="'+fa[1]+'" align="left" height="25"><b>'+fa[0]+'</b></td></tr>'
			st+='</table>'
		}
		else {
			st+='<table width="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
			st+='<tr><td width="10" class="vbox0"><img src="'+TTTwinowa2+'/images/cp.gif" height="1" width="10"></td><td width="'+(fa[1]-11)+'" bgcolor="#F7FBFF"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-11)+'" height="1"></td><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td></tr>'
			st+='<tr><td width="10" class="vbox0" height="19"><img src="'+TTTwinowa2+'/images/cp.gif" width="10"></td><td width="'+(fa[1]-11)+'" align="left" class="vlbox0"><b>&nbsp;'+fa[0]+'</b></td><td width="1" class="vbox0"><img src="'+TTTwinowa2+'/images/cp.gif" width="1"></td></tr>'
			st+='</table>'
			st+='<table width="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
			st+='<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" height="1" class="vbox0"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
			st+='</table>'
	  }
	}
	return st
}

function TTT_common_BoxCompraInf(items,size,aligns,bottom) {
	var st=''
	var v=new Array()
	var s=new Array()
	var a=new Array()
	var tbsize,i
	var fa
	if (TTTAPI_checkParameters('TTT_common_BoxCompraInf',4)){
		fa=TTTAPI_setDefaults('TTT_common_BoxCompraInf','1|2|3','20|20|20','left|left|left',true)
		v=fa[0].split('|')
		s=fa[1].split('|')
		a=fa[2].split('|')
		if (v.length == s.length) {
			tbsize= 0
			for (i=0;i<s.length;i++) tbsize=tbsize + parseInt(s[i])
			st+='<table  width="'+tbsize+'" border="0" cellspacing="0" cellpadding="0"  class="vccompra" ><tr >'
			st+='<td  width="'+(parseInt(s[0])-2)+'" >&nbsp;'+v[0]+'&nbsp;</td>'
			st+='<td width="1" class="lineav"><img src="'+TTTwinowa2+'/images/cp.gif" width="1"></td>'
			for (i=1;i<v.length;i++) {
				st+='<td width="'+(parseInt(s[i])-1)+'" align="'+a[i]+'">&nbsp;'+v[i]+'&nbsp;</td>'
				if (i < v.length -1 ) st+='<td width="1" class="lineav"></td>' //<img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="21"></td>'
			}
			if (fa[3] == true) st+='</tr><tr><td colspan="'+(2*s.length+1)+'" class="vsep0" width="'+fa[1]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+fa[1]+'" height="4"></td></tr>' //h4
			st+='</table>'
		}
	}
	return st
}
function TTT_common_infoEvento_resumen(grafico,artista,fecha,localizacion,size,tama) {
	var st=''
	var logo=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_infoEvento_resumen',6)){
		fa=TTTAPI_setDefaults('TTT_common_infoEvento_resumen',''+TTTwinowa2+'/images/cp.gif','Sin Artista','01/01/1001',null,'300')
		if (tama!='S') {
				if (fa[0].substring(0,1) != '<') logo='<img src="'+fa[0]+'" width="66" height="57">'
				else logo=fa[0]
				st+='<table width="'+fa[4]+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr>'
				st+='<td width="66"><img src="'+TTTwinowa2+'/images/cp.gif" width="66" height="1"></td>'
				st+='<td width="'+(fa[4]-66)+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[4]-66)+'" height="1"></td>'
				st+='</tr>'
				st+='<tr>'
				st+='<td width="66" align="left" valign="top"><table><tr><td>'+logo+'</td></tr></table></td>'
				st+='<td width="'+(fa[4]-66)+'" valign="top" align="left">'
				st+='<table width="'+(fa[4]-66)+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="'+(fa[4]-66)+'" align="left" class="v14or" nowrap><b>'+fa[1]+'</b></td></tr>'
				st+='<tr><td width="'+(fa[4]-66)+'" align="left" class="v10bk" nowrap><b>'+fa[2]+'</b></td></tr>'
				st+='<tr><td width="'+(fa[4]-66)+'" align="left" class="v10bk" nowrap><b>'+fa[3]+'</b></td></tr>'
			}
	  else {
	  	  if (fa[0].substring(0,1) != '<') logo='<img src="'+fa[0]+'" width="170" height="76">'
				else logo=fa[0]
				st+='<table width="'+fa[4]+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr>'
				st+='<td width="170"><img src="'+TTTwinowa2+'/images/cp.gif" width="170" height="1"></td>'
				st+='<td width="'+(fa[4]-170)+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[4]-170)+'" height="1"></td>'
				st+='</tr>'
				st+='<tr>'
				st+='<td width="170" align="left" valign="top"><table><tr><td>'+logo+'</td></tr></table></td>'
				st+='<td width="'+(fa[4]-170)+'" valign="top" align="left">'
				st+='<table width="'+(fa[4]-170)+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="10"><img src="'+TTTwinowa2+'/images/cp.gif" width="10"></td><td width="'+(fa[4]-180)+'" align="left" class="v14or" nowrap><b>'+fa[1]+'</b></td></tr>'
				st+='<tr><td width="10"><img src="'+TTTwinowa2+'/images/cp.gif" width="10"></td><td width="'+(fa[4]-180)+'" align="left" class="v10bk" nowrap><b>'+fa[2]+'</b></td></tr>'
				st+='<tr><td width="10"><img src="'+TTTwinowa2+'/images/cp.gif" width="10"></td><td width="'+(fa[4]-180)+'" align="left" class="v10bk" nowrap><b>'+fa[3]+'</b></td></tr>'
	  }
		st+='</table>'
		st+='</td>'
		st+='</tr>'
		st+='</table>'
	}
	return st
}
function TTT_common_infoEvento(grafico,artista,fecha,actuaciones,pases,size,localizacion, cod_evento,tama) {
	var st=''
	var fa
	var logo=''
	var vpases=new Array()
	var cont=1
	var i=0
	size = 496
	if (TTTAPI_checkParameters('TTT_common_infoEvento',9)){
		fa=TTTAPI_setDefaults('TTT_common_infoEvento',TTTwinowa2+'/images/cp.gif','Sin Artista','01/01/1001',null,null,'300',null)
	  if (fa[8] !='S') {
			  if (fa[0].substring(0,1) != '<') logo='<img src="'+fa[0]+'" width="66" height="57">'
				else logo=fa[0]
				st+='<table width="'+fa[5]+'" border="0" cellpadding="0" cellspacing="5">'
			  st+='<tr>'
				st+='<td width="66"><img src="'+TTTwinowa2+'/images/cp.gif" width="66" height="1"></td>'
				st+='<td width="'+(fa[5]-66)+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[5]-66)+'" height="1"></td>'
			 
				st+='</tr>'
				st+='<tr>'
				st+='<td width="66" valign="top" align="left"><table><tr><td>'+logo+'</td></tr></table></td>'
				st+='<td width="'+(fa[5]-66)+'">'
				st+='<table width="'+(fa[5]-66)+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="'+(fa[5]-146)+'" align="left" class="v14or" nowrap><b>&nbsp;'+fa[1]+'&nbsp;</b></td><td width="80" align="left" class="v10bl" nowrap>'+fa[7]+'</td></tr>'
				st+='<tr><td width="'+(fa[5]-66)+'" align="left" class="v10bk" nowrap><b>&nbsp;'+fa[2]+'&nbsp;</b></tr>'
				if (localizacion != null) st+='<tr><td width="'+(fa[5]-66)+'" align="left" class="v10bk" nowrap><b>&nbsp;'+fa[6]+'&nbsp;</b></tr>'
				if (fa[4]!=null) st+='<tr><td width="'+(fa[5]-66)+'" align="left" class="v10bl" nowrap><b>&nbsp;'+fa[4]+'&nbsp;</b></tr>'
				st+='</table>'
				if (fa[3]!=null) {
					vpases=fa[3].split('|')
					st+='<table width="'+(fa[5]-66)+'" border="0" cellpadding="0" cellspacing="0">'
					st+='<tr>'
					for (i=0;i<vpases.length;i++) {
						if (cont > 1) {st+='</tr><tr>';cont=1;} //if (cont > 2) {st+='</tr><tr>';cont=1;}
						st+='<td align="left" class="v10bl">&nbsp;'+vpases[i]+'&nbsp;</td>'
						cont++
					}
					if (vpases.length%2!=0) st+='<td align="left" class="v10bl">&nbsp;</td>'
					st+='</tr>'
					st+='</table>'
				}	
		 }
	  else { //Grande
	  		if (fa[0].substring(0,1) != '<') logo='<img src="'+fa[0]+'" width="170" height="76">'
				else logo=fa[0]
				st+='<table width="'+fa[5]+'" border="0" cellpadding="0" cellspacing="5">'
			  st+='<tr>'
	  	  st+='<td width="170"><img src="'+TTTwinowa2+'/images/cp.gif" width="170" height="1"></td>'
				st+='<td width="'+(fa[5]-170)+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[5]-170)+'" height="1"></td>'
			 
				st+='</tr>'
				st+='<tr>'
				st+='<td width="170" valign="top" align="left"><table><tr><td>'+logo+'</td></tr></table></td>'
				st+='<td width="'+(fa[5]-170)+'">'
				st+='<table width="'+(fa[5]-170)+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="'+(fa[5]-250)+'" align="left" class="v14or" nowrap><b>&nbsp;'+fa[1]+'&nbsp;</b></td><td width="80" align="left" class="v10bl" nowrap>'+fa[7]+'</td></tr>'
				st+='<tr><td width="'+(fa[5]-170)+'" align="left" class="v10bk" nowrap><b>&nbsp;'+fa[2]+'&nbsp;</b></tr>'
				if (localizacion != null) st+='<tr><td width="'+(fa[5]-170)+'" align="left" class="v10bk" nowrap><b>&nbsp;'+fa[6]+'&nbsp;</b></tr>'
				if (fa[4]!=null) st+='<tr><td width="'+(fa[5]-170)+'" align="left" class="v10bl" nowrap><b>&nbsp;'+fa[4]+'&nbsp;</b></tr>'
				st+='</table>'
				if (fa[3]!=null) {
					vpases=fa[3].split('|')
					st+='<table width="'+(fa[5]-170)+'" border="0" cellpadding="0" cellspacing="0">'
					st+='<tr>'
					for (i=0;i<vpases.length;i++) {
						if (cont > 1) {st+='</tr><tr>';cont=1;} //if (cont > 2) {st+='</tr><tr>';cont=1;}
						st+='<td align="left" class="v10bl">&nbsp;'+vpases[i]+'&nbsp;</td>'
						cont++
					}
					if (vpases.length%2!=0) st+='<td align="left" class="v10bl">&nbsp;</td>'
					st+='</tr>'
					st+='</table>'
				}	
	  }
		st+='</td>'
		st+='</tr>'
		st+='</table>'
	}
	return st
}
function TTT_border_on(img,doc,frame) {
	if ((is.ns) && (doc!='document') && (frame==false)) doc=doc+'.document'
	var marc = eval(doc+'.'+img+'h1')
	eval(doc+'.'+img+'h1.src="'+TTTborde2.src+'"')
	eval(doc+'.'+img+'h2.src="'+TTTborde2.src+'"')
	eval(doc+'.'+img+'v1.src="'+TTTborde2.src+'"')
	eval(doc+'.'+img+'v2.src="'+TTTborde2.src+'"')
}
function TTT_border_off(img,doc,frame) {
	if ((is.ns) && (doc!='document') && (frame==false)) doc=doc+'.document'
	eval(doc+'.'+img+'h1.src="'+TTTborde.src+'"')
	eval(doc+'.'+img+'h2.src="'+TTTborde.src+'"')
	eval(doc+'.'+img+'v1.src="'+TTTborde.src+'"')
	eval(doc+'.'+img+'v2.src="'+TTTborde.src+'"')
}
function TTT_common_ListBox(txt,size,altura,fcolor) {
	var st=''
	var st2=''
	var par=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_ListBox',4)){
		fa=TTTAPI_setDefaults('TTT_common_ListBox','&nbsp;',null,20,'#0066CC')
		if (fa[5]!='document') par='parent.'
  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="1">'
  		st+= '<tr>'
		if (fa[1]!=null) st+= '<td width="'+(fa[1]-2)+'" bgcolor="'+fa[3]+'" align="left" class="v10wh">'+fa[0]+'</td>'
  		else st+= '<td bgcolor="'+fa[3]+'" align="left" class="v10wh">'+fa[0]+'</td>'
  		st+= '</tr>'
  		st+='</table>'
  	}
	return st
}
function TTT_common_ListBox8(txt,size,altura) {
	var st=''
	var st2=''
	var par=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_ListBox8',3)){
		fa=TTTAPI_setDefaults('TTT_common_ListBox8','&nbsp;',null,20)
		if (fa[5]!='document') par='parent.'
  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="5">'
  		st+= '<tr>'
		if (fa[1]!=null) st+= '<td width="'+(fa[1]-2)+'" align="left" class="vdemo">'+fa[0]+'</td>'
  		else st+= '<td align="left" class="vdemo">'+fa[0]+'</td>'
  		st+= '</tr>'
  		st+='</table>'
  	}
	return st
}
function TTT_common_button(txt,size,altura,fcolor,href,doc,Layer,clase,dest) {
	var st=''
	var st2=''
	var par=''
	var fa
	var aux
	//if (TTTAPI_checkParameters('TTT_common_button',6)){
		fa=TTTAPI_setDefaults('TTT_common_button','&nbsp;',100,20,'#2C4096','javascript:void(0);','document',false,null,'TTTmFrame')

		if (fa[5]!='document') par='parent.'
		//if (window.eve) {aux = eve.origen} else {aux=1}
		//if (aux==0) { /*if (eve.origen==0) {*/
    if (window.eve) {aux = eve.arquitectura_web} else {aux=0}		
		if (aux==1) { 
					     st+='<table class="v10bot" border="0" cellpadding="0" cellspacing="0"  width="'+fa[1]+'"><tr>'
					     st+='<TD class="but"><A href="'+fa[4]+'">'+fa[0]+'</A></TD>'
					     st+='</tr></table>'
	   }
	  else {
			  if (fa[3] == '#0066CC') {fa[3] = '#2C4096';}
				if (fa[3] == '#0055CC') {fa[3] = '#2C4096';}	
				st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+= '<tr>'
				st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
				if (clase==null) {
				st+= '<td width="'+(fa[1]-3)+'" bgcolor="'+fa[3]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh" target="'+fa[8]+'">'+fa[0]+'</a></td>'
			  }
			  else {
			  			st+= '<td width="'+(fa[1]-3)+'" class="'+fa[7]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh" target="'+fa[8]+'">'+fa[0]+'</a></td>'
			  }
				st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
				st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		  		st+= '</tr>'
		  		st+='</table>'
		  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+= '<tr>'
				st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
				st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
				st+='</table>'
				TTTbordeCount++
			}
	return st
}
function TTT_common_buttoncompra(txt,size,altura,fcolor,href,doc,Layer,clase) {
  var st=''
	var st2=''
	var par=''
	var fa
		fa=TTTAPI_setDefaults('TTT_common_buttoncompra','&nbsp;',100,20,'#2C4096','javascript:void(0);','document',false,null)
		if (fa[5]!='document') par='parent.'
		
		//if (eve.origen==0) {
		if(eve.arquitectura_web==1) {
					     st+='<table class="v10bot" border="0" cellpadding="0" cellspacing="0"  width="'+fa[1]+'"><tr>'
					     st+='<TD class="but_nar"><A href="'+fa[4]+'">'+fa[0]+'</A></TD>'
					     st+='</tr></table>'
	   }
	  else {
		if (fa[3] == '#0066CC') {fa[3] = '#2C4096';}
		if (fa[3] == '#0055CC') {fa[3] = '#2C4096';}
		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
		if (clase==null) {
		st+= '<td width="'+(fa[1]-3)+'" bgcolor="'+fa[3]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh" target="TTTmFrame">'+fa[0]+'</a></td>'
	  }
	  else {
	  			st+= '<td width="'+(fa[1]-3)+'" class="'+fa[7]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh" target="TTTmFrame">'+fa[0]+'</a></td>'
	  }
		st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
  		st+= '</tr>'
  		st+='</table>'
  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
		st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
		st+='</table>'
		TTTbordeCount++
	}
	//}
	return st
}
function TTT_common_button_pro(txt,size,altura,fcolor,href,doc,Layer,clase) {
	var st=''
	var st2=''
	var par=''
	var fa
	//if (TTTAPI_checkParameters('TTT_common_button_pro',6)){
		fa=TTTAPI_setDefaults('TTT_common_button_pro','&nbsp;',100,20,'#2C4096','javascript:void(0);','document',false)
		if (fa[5]!='document') par='parent.'
		if (fa[3] == '#0066CC') {fa[3] = '#2C4096';}
		if (fa[3] == '#0055CC') {fa[3] = '#2C4096';}
		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
	  if (clase==null) {
		   st+= '<td width="'+(fa[1]-3)+'" bgcolor="'+fa[3]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh">'+fa[0]+'</a></td>'
		  }
		else {
			 st+= '<td width="'+(fa[1]-3)+'" class="'+fa[7]+'" align="center"><a href="'+fa[4]+'" onmouseover="javascript:'+par+'TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="javascript:'+par+'TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh">'+fa[0]+'</a></td>'
		  }
		st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
  		st+= '</tr>'
  		st+='</table>'
  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
		st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
		st+='</table>'
		TTTbordeCount++
	//}
	return st
}
function TTT_common_button_2(txt,size,altura,fcolor,href,doc,layer) {
	var st=''
	var st2=''
	var par=''
	var fa
	var aux	
	if (TTTAPI_checkParameters('TTT_common_button_2',6)){
		fa=TTTAPI_setDefaults('TTT_common_button_2','&nbsp;',100,20,'#0066CC','javascript:void(0);','document',false)
		if (fa[5]!='document') par='parent.'
	//	if (window.eve) {aux = eve.origen} else {aux=1}
	//	if (aux==0) { /*if (sesionusuario.origen==0) {*/
		     st+='<table class="v10bot" border="0" cellpadding="0" cellspacing="0"  width="'+fa[1]+'"><tr>'
		     st+='<TD class="but_nar"><A href="'+fa[4]+'">'+fa[0]+'</A></TD>'
		     st+='</tr></table>'
	/*   }
	  else {
				if (fa[3] == '#0066CC') {fa[3] = '#2C4096';}
				if (fa[3] == '#0055CC') {fa[3] = '#2C4096';}
				st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+= '<tr>'
				st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
				st+= '<td width="'+(fa[1]-3)+'" bgcolor="'+fa[3]+'" align="center"><a href="'+fa[4]+'" class="v10wh">'+fa[0]+'</a></td>'			
				st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
				st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		  		st+= '</tr>'
		  		st+='</table>'
		  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+= '<tr>'
				st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
				st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
				st+='</table>'
				TTTbordeCount++
			}*/
	}
	return st
}
function TTT_common_button_volver(txt,size,altura,fcolor,href,doc,Frame) {
	var st=''
	var st2=''
	var par=''
	var fa
	var aux
	if (TTTAPI_checkParameters('TTT_common_button_volver',6)){
		fa=TTTAPI_setDefaults('TTT_common_button_volver','&nbsp;',100,20,'#2C4096','javascript:void(0);','document',false)
		if (fa[5]!='document') par='parent.'
		//if (window.eve) {aux = eve.origen} else {aux=1}
		//if (aux==0) { /*if (eve.origen==0) {*/
    if (window.eve) {aux = eve.arquitectura_web} else {aux=0}		
		if (aux==1) { 		
					     st+='<table class="v10bot" border="0" cellpadding="0" cellspacing="0"  width="'+fa[1]+'"><tr>'
					     st+='<TD class="but"><A href="javascript:void(0);" onclick="parent.TTTmFrame.parent.location.href=\''+fa[4]+'\'">'+fa[0]+'</A></TD>'
					     //<A href="javascript:void(0)" onclick="parent.TTTmFrame.parent.location.href=\''+this.eLisLinks[2]+'\'">
					     st+='</tr></table>'
	   }
	  else {
				if (fa[3] == '#0066CC') {fa[3] = '#2C4096'}
				if (fa[3] == '#0055CC') {fa[3] = '#2C4096'}
				st2+='<table width="'+(fa[1]-4)+'" border="0" cellpadding="0" cellspacing="0">'
				st2+='<tr><td width="17" height="17"><a href="'+fa[4]+'" onmouseover="TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh"><img src="'+TTTwinowa2+'/images/fle_der.gif" width="17" height="17" border="0"></a></td><td align="center" width="'+(fa[1]-20)+'"><a href="'+fa[4]+'" onmouseover="TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh">&nbsp;'+fa[0]+'</a></td></tr>'
				st2+='</table>'
				st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+='<tr>'
				st+='<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
		
			  	st+='<td width="'+(fa[1]-3)+'" class="botvolver" align="center">'+st2+'</td>'
				st+='<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
				st+='<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		  		st+='</tr>'
		  		st+='</table>'
		  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+='<tr>'
				st+='<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-2)+'" height="1"></td></tr>'
				st+='</table>'
				TTTbordeCount++
		}
	}
	return st
}
function TTT_common_button_continuar(txt,size,altura,fcolor,href,doc,frame){
	var st=''
	var st2=''
	var par=''
	var fa
	var aux
	if (TTTAPI_checkParameters('TTT_common_button_continuar',6)){
		fa=TTTAPI_setDefaults('TTT_common_button_continuar','&nbsp;',100,20,'#2C4096','javascript:void(0);','document',false)
		if (fa[5]!='document') par='parent.'
		//if (window.eve) {aux = eve.origen} else {aux=1}
		//if (aux==0) { /*if (eve.origen==0) {*/
    if (window.eve) {aux = eve.arquitectura_web} else {aux=0}		
		if (aux==1) { 		
	     st+='<table class="v10bot" border="0" cellpadding="0" cellspacing="0"  width="'+fa[1]+'"><tr>'
	     st+='<TD class="but"><A href="'+fa[4]+'">'+fa[0]+'</A></TD>'
	     st+='</tr></table>'
	   }
	  else {
				if (fa[3] == '#0066CC') {fa[3] = '#2C4096'}
				if (fa[3] == '#0055CC') {fa[3] = '#2C4096'}
				st2+='<table width="'+(fa[1]-6)+'" border="0" cellpadding="0" cellspacing="0">'
				st2+='<tr><td width="'+(fa[1]-21)+'" align="center"><a href="'+fa[4]+'" onmouseover="TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v10wh">&nbsp;'+fa[0]+'</a></td><td width="17" height="17"><a href="'+fa[4]+'" onmouseover="TTT_border_on(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" onmouseout="TTT_border_off(\'borde'+TTTbordeCount+'\',\''+fa[5]+'\','+fa[6]+')" class="v11wh"><img src="'+TTTwinowa2+'/images/flecha_izq.gif" width="17" height="17" border="0"></a></td></tr>'
				st2+='</table>'
				st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+='<tr>'
				st+='<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
				st+='<td width="'+(fa[1]-3)+'" class="botcont" align="center">'+st2+'</td>'
				st+='<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
				st+='<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		  		st+='</tr>'
		  		st+='</table>'
		  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
		  		st+='<tr>'
				st+='<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
				st+='<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-2)+'" height="1"></td></tr>'
				st+='</table>'
				TTTbordeCount++
	  }
	}
	return st
}
function TTT_common_boxFoot(txt,size) {
	var st=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_boxFoot',2)){
		fa=TTTAPI_setDefaults('TTT_common_boxFoot','&nbsp;',400)
		st+='<table width="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0" class="boxfoot" height="60">'
		st+='<tr><td class="linea"><img src="'+TTTwinowa2+'/images/cp.gif" height="1" width="'+fa[1]+'"></td></tr>'
		st+='<tr><td width="'+fa[1]+'"><img src="'+TTTwinowa2+'/images/cp.gif" width="20" height="60" align="left">&nbsp;&nbsp;'+fa[0]+'</td></tr>'
		st+='<tr><td class="linea"><img src="'+TTTwinowa2+'/images/cp.gif" height="1" width="'+fa[1]+'"></td></tr>'
		st+='<tr><td bgcolor="#999999"><img src="'+TTTwinowa2+'/images/cp.gif" height="1" width="'+fa[1]+'"></td></tr>'
		st+='<tr><td bgcolor="#B0B0B0"><img src="'+TTTwinowa2+'/images/cp.gif" height="1" width="'+fa[1]+'"></td></tr>'
		st+='</table>'
	}
	return st
}
function TTT_common_button_ventana(txt,size,altura,fcolor,href,doc,layer) {
	var st=''
	var st2=''
	var par=''
	var fa
	if (TTTAPI_checkParameters('TTT_common_button_ventana',6)){
		fa=TTTAPI_setDefaults('TTT_common_button_ventana','&nbsp;',100,20,'#0066CC','javascript:void(0);','document',false)
		if (fa[5]!='document') par='parent.'
		if (fa[3] == '#0066CC') {fa[3] = '#2C4096'}
		if (fa[3] == '#0055CC') {fa[3] = '#2C4096'}
		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h1" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" 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="'+fa[2]+'"></td>'
		st+= '<td width="'+(fa[1]-3)+'" bgcolor="'+fa[3]+'" align="center"><a href="'+fa[4]+'" class="v10wh">'+fa[0]+'</a></td>'
		st+= '<td width="1" bgcolor="#CCCCCC" align="left"><img name="borde'+(TTTbordeCount)+'v2" src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
		st+= '<td width="1" bgcolor="#666666" align="left"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="'+fa[2]+'"></td>'
  		st+= '</tr>'
  		st+='</table>'
  		st+='<table  width="'+fa[1]+'" border="0" cellspacing="0" cellpadding="0">'
  		st+= '<tr>'
		st+= '<td bgcolor="#CCCCCC" width="'+(fa[1]-1)+'" height="1" align="left" ><img name="borde'+(TTTbordeCount)+'h2" src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" 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="'+fa[1]+'" border="0" cellpadding="0" cellspacing="0">'
		st+= '<tr><td width="1" height="1"><img src="'+TTTwinowa2+'/images/cp.gif" width="1" height="1"></td><td width="'+(fa[1]-1)+'" bgcolor="#666666"><image src="'+TTTwinowa2+'/images/cp.gif" width="'+(fa[1]-1)+'" height="1"></td></tr>'
		st+='</table>'
		TTTbordeCount++
	}
	return st
}
