// **************************************************************************
// funcions per getio d'anuncis
// ***********************************************************************
// carpeta on hi ha els anuncis
var rel = "http://www.portarro.com/portal/adv/";

// relacio d'anuncis i enllaços. Els dos array han de tenir el meteix num d'elements
var banner = new Array("ceps.jpg",                 "futboldetaula.gif",           "bernat.gif",                    "cgarriga.jpg","discosbatlle.jpg"         ,"centrehipic.jpg","artic-adv.jpg","b-almogaver.gif");
var enlla  = new Array("http://www.ceps-esqui.com","http://www.futboldetaula.net","http://bernatbatlle.apabcn.com","",            "http://www.batllefoto.com",""               ,""             ,"http://www.softcatala.org");

// temps de visualització de cada anunci
var segons = 10;

var imax = banner.length - 1;

// determinació aleatoria del primer anunci de la roda
var i = Math.round(Math.random() * imax);

var temps;

// ***********************************************************************
function advcnv() {
 	document.images[1].src = rel + banner[i];
	document.images[1].height = 60;
	document.images[1].width = 475;

	document.links[0].href = enlla[i];

	(i >= imax) ? i=0 : i++;
	temps = setTimeout("advcnv()", segons * 1000);
}

// ***********************************************************************
// funcio q obre una finestra per connectar amb el xat
function xat(){ finestra = open("http://www.portarro.com/chat/index.htm", "xat", "width=420,height=460 scrollbars=no"); }

// ***********************************************************************
