//
// mailto.js
//
// Original idea from http://innerpeace.org/escrambler.shtml
//
// Scramble your email address from SPAM Email Crawlers.
//

//
// Add the following to the <head> section of a HTML page:
//
//	<script language="JavaScript1.1" src="/Lib/mailto.js"></script>
//
// For every place you use the URL "mailto:user@my.domain.tld",
// replace the URL with:
//
//	javascript:mailto()
//
// To support multiple email addresses, just copy/paste the function
// below once for each address, rename the function, and specify the
// account name and host name variables.
//
// The scrambling comes two fold: first, the JavaScript is in a
// separate file which probably won't be fetched; second, the email
// is address broken up into pieces.
//
// Works in IE 4, 5, 6 and Netscape 4.7, 6.
//

function mailto(here)
{
	here = here.replace(/\s+at\s+/, '@');
	here = here.replace(/\s+dot\s+/g, '.');
	location.href = "mailto:" + here;
}

function info()
{
	mailto('info at starsnbars dot com');
}

function staff()
{
	mailto('staff at starsnbars dot com');
}

function jobs()
{
	mailto('jobs at starsnbars dot com');
}

function party()
{
	mailto('party at starsnbars dot com');
}

function gm()
{
	mailto('gm at starsnbars dot com');
}

function purchasing()
{
	mailto('purchasing at starsnbars dot com');
}
