/**
 * Function which replaces all boxes of class EMAIL with 
 * a MAILTO link
 * 
 * @author Vlada Kobetic
 * @see jQuery Framework for dependencies
 */
function processEmailAddresses() {
	var spans = $(".email");
	var	pattern = /(.+)\(zavinac\)(.+)\(tecka\)(.+)/;
	spans.each(function(i) {
		var regexp  = /((\w+)(\(zavinac\))(\w+)(\(tecka\))(\w+))/gi;  
		$(this).html( $(this).html().replace(regexp,'<a href="mailto:$2@$4.$6">$2@$4.$6</a>'));  
	});
}

$(document).ready(function() {
	processEmailAddresses();
});
