
function hmaker(text) {
	e = text.split('|');
	if (e[2]) document.write("<a href="+e[2]+">");
}

function linkmaker(text) {
	e = text.split('|');
	for (n=0; n<e.length; n=n+3) {
		if (e[n] != '') {
			document.write('<div id=icoline><div class=icoimg><img src=http://img.uol.com.br/ico_'+e[n]+'.gif></div><div class=icotext><a href='+e[n+2]+' id=a10nb>'+e[n+1].toUpperCase()+'</a></div></div>');
		}
	}
}

function linkmaker_right(text) {
	e = text.split('|');
	for (n=0; n<e.length; n=n+3) {
		if (e[n] != '') {
			document.write('<div id=icoline_right><div class=icoimg_right><img src=http://img.uol.com.br/ico_'+e[n]+'.gif></div><div class=icotext_right><a href='+e[n+2]+' id=a10nb>'+e[n+1].toUpperCase()+'</a></div></div>');
		}
	}
}

function listenmaker(text) {
	e = text.split('|');
	document.write('<div class=icoimg><img src=http://img.uol.com.br/ico_'+e[0]+'.gif></div><div class=icotext2><a href='+e[1]+' id=a10nb>'+e[0].toUpperCase()+'</a></div>');
}

function printEps(which) {
	(totaleps[which] == 1) ? s = '' : s = 's';
	if (totaleps[which] > 0)
		document.write('<div id=totaleps><a href='+which+'.jhtm>'+totaleps[which]+' episódio'+s+'</a></div>');	
}
