camino_g = camino + "pubs\/grupos\/g" + grupo + "\/" 
actual = Math.floor(Math.random()*C[0].length)
function escribe_cortinilla(){
	texcor = "<div style='color:#000;font-size:.8em;line-height:14px;letter-spacing:.5em;font-family: helvetica,sans serif; position: relative; top:2px'>publicidad<\/div><div style='background:#ccc;padding:2px 18px 2px; width: 468px; height: 60px'>&nbsp;</div>"
 	ti('pub0',texcor)
	rota_banner(1000)
	}
function escribe_actual(){
	texpub = "<div style='color:#000;font-size:.8em;line-height:14px;letter-spacing:.5em;font-family: helvetica,sans serif; position: relative; top:2px'>publicidad<\/div><div style='background:#ccc;padding:2px 18px 2px;'><a href='" + C[0][actual][1] + "' onclick=\"window.open('http://www.tectonica.es/cgi-bin/pubs/contadores/index.pl?enlace=" + C[0][actual][1] + "');return false\"><img  src='" + camino_g + C[0][actual][0] + "' alt='publicidad: " + C[0][actual][4] + "' title='publicidad: " + C[0][actual][4] + "' width='468' height='60'  onload=\"rota_cortinilla(" + C[0][actual][5]+ ")\" onError='rota_cortinilla(" + C[0][actual][5]+ ")'><\/a></div>"
 	ti('pub0',texpub)
	if (actual == 0) {
		actual = 1
		} else {
		actual = 0
		}
	}
function rota_cortinilla(tiempo){
	rotacion =  setTimeout("escribe_cortinilla()", tiempo)
	}
function rota_banner(tiempo){
	rotacion =  setTimeout("escribe_actual()", tiempo)
	}


