function replaceEmails(emailCount){
	var c, d;
	for(var i = 0; i < emailCount; i++){
		if(d = document.getElementById("em" + i)){
			var em = d.firstChild.nodeValue.replace("(zavinac)", String.fromCharCode(0x40));
			var ti = d.title;
			c = "<a href=\"mailto:"+em+"\">"+em+"</a>";
			d.innerHTML = c;
			var pos = ti.indexOf("(zavinac)");
			if(pos>0){
				var f = ti.substring(0,pos);
				var h = ti.substring(pos+9);
				d.title = f + String.fromCharCode(0x40) + h;
			}
		}
	}
}
