Event.observe(window,'load',function(){
	Tanglewood = new tanglewood();
});

function tanglewood()
{
	//this.inputToggle($('globalsearch'),'Search...');
	//this.search();
	this.decrypt();
	//this.googleAnalytics();
}

tanglewood.prototype.decrypt = function()
{
	var tA = $('body').select('a[class="em_encrypted_native"]');
	for(var i=0;i<tA.length;i++){
		var obj = tA[i];
		var encA = obj.rev.split('_');
		var str = des(_em_key,hexToString('0x' + encA[2]),0,1,hexToString('0x' + encA[3]),0).substring(0,Number(encA[1]));
		obj.update(str);
		Event.observe(obj,'click',function()
		{
			window.location = 'mailto:' + this.innerHTML;
			Event.stop(arguments[0]);
		});
	}
};