function emailHider(left_array, right_array, linkText, altText)
{
	TheDomain = '';
	for(var i=0;i<right_array.length;i++)
	{
		if(i>0)
		{
			TheDomain += '.';
		}
		TheDomain += right_array[i];
	}
	
	TheName = '';
	for(var i=0;i<left_array.length;i++)
	{
		if(i>0)
		{
			TheName += '.';
		}
		TheName += left_array[i];
	}
	
	TheAddress = TheName+'@'+TheDomain;
	
	document.write('<a href="mailto:' + TheAddress + '?subject=Enquiry for Farrar\'s Bistro Restaurant&body=Please provide me with information on..." title="'+altText+'">' + (linkText == '' ? TheAddress : linkText) + '</a>')
}

function powMod(n,e,m) {
   if (m == 0 || e < 0)
      return 0;

   res = 1;
   pow = n;
   e1  = e;
   while (e1 != 0)
   {
      d   = e1%2;
      e1  = Math.floor(e1/2);
      if (d == 1)
         res = (res*pow)%m;
      pow = (pow*pow)%m;
   }

   if (res < 0)
      res += m;

   return res;
}

function push(parts, d, n)
{
	var location='';
	
	for(i=0;i<parts.length;i++)
		location+=String.fromCharCode(powMod(parts[i], d, n));
		
	window.location='mailto:'+location;
}

function get(parts, d, n)
{
	var add='';
	
	for(i=0;i<parts.length;i++)
		add+=String.fromCharCode(powMod(parts[i], d, n));
		
	return add;

}

