Prototype.Browser.IE6 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 6;
Prototype.Browser.IE7 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 7;
Prototype.Browser.IE8 = Prototype.Browser.IE && !Prototype.Browser.IE6 && !Prototype.Browser.IE7;

if(!Prototype.Browser.IE6)
{
	Cufon.replace([
		'div.control-bar ul li a',
		'div#navigation ul li a'
	], {
		hover: true	
	});
	
	Cufon.replace([
		'div.control-bar label',
		'div.control-bar button'
	]);
}

Cufon.replace([
	'h1',
	'h2',
	'h3',
	'div#main p.payoff'
]);

function DecryptEmail (s)
{
	var n = 0;
	var r = "";
	for (var i = 0; i < s.length; i++)
	{
		n = s.charCodeAt(i);
		if (n >= 8364) n = 128;
		r += String.fromCharCode (n - (3));
	}
	return r;
}

function email(s)
{
	location.href = "mailto:" + DecryptEmail(s);
}
