﻿
$(function(){
	$('span.email').each(function(){
	var element=$(this);
	var text=element.text();
	var newText='';
	newText=text.replace(/(\w)\@(\w)/g, function(match, first, second){
		var str='';
		if(($.browser.mozilla))
		{str=first+ '<wbr/>@<wbr/>' +second}
		else
		{str=first+ '@' +second}			
	return str});
	newText=newText.replace(/(\w)\.(\w)/g, function(match, first, second){
		var str='';
		if(($.browser.mozilla))
		{str=first+ '<wbr/>.<wbr/>' +second}
		else
		{str=first+ '.' +second}
	return str});
	newText=newText.replace(/(\w)\-(\w)/g, function(match, first, second){
		var str='';
		if(($.browser.mozilla))
		{str=first+ '<wbr/>-<wbr/>' +second}
		else
		{str=first+ '-' +second}
	return str});
	element.html(newText);
	})
});