
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 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 = 'edição' : s = 'edições';
	if (totaleps[which] > 0) {
		document.write('<div id="totaleps"><a href="'+which+'.jhtm">'+totaleps[which]+' '+s+'</a></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>');	
		}
	}
}

function printEpsInline_force(which,url) {
	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="'+url+'" id="a13nb" style="text-decoration:underline">'+totaleps[which]+' '+s+'</a>');	
		}
	}
}


/* UOL News */

function printNum(which,num) {
	l = location.href; 
	if (l.indexOf(which+'.jhtm') < 1) {
		(num == 1) ? s = 'edição' : s = 'edições';
		if (num > 0) {
			document.write('&nbsp;<a href="'+which+'.jhtm" id="a13nb" style="text-decoration:underline">'+num+' '+s+'</a>');	
		}
	}
}
