/***
// Codigo para correcao de links. Ex:
// De: /fichas/pc/nome-jogo.jhtm Para: /pc/fichas/nome-jogo.jhtm
hCorrectLink = e[2].substring(e[2].indexOf('.br/')+4,e[2].lastIndexOf('/')).replace(/(\w*.?)\/(\w*.?)/,"$2/$1");
hDocument = e[2].substring(e[2].lastIndexOf('/'));
document.write('<a href="/'+hCorrectLink+hDocument+'">');
***/

function hmaker(text) {
	e = text.split('|');
	if (e[2] != '')
		document.write('<a href="'+e[2]+'">');
}

function linkmaker(text) {
	if (text != '|||||||||||') {
		document.write('<div class=ico>');
		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>');
			}
		}
		document.write('</div>');
	}
}

function printEpsInline(which) {
	l = location.href; 
	if (l.indexOf(which+'.jhtm') < 1) {
		(totaleps[which] == 1) ? s = 'edição' : s = 'edições';
		if (totaleps[which] > 0) {
			document.write('&nbsp;<a href="'+which+'.jhtm" id="a13nb" style="text-decoration:underline">'+totaleps[which]+' '+s+'</a>');	
		}
	}
}