/*
///////////////////////////////////////////////////////////////////////////////////////////////
Email Shield (eShield) v1.3 - Class version - by Jason Savage

implementation: 
	var ourShield = new eShield('ourcompany','com');

	then either:
		<a href="../../snowyridgefarms_com/js/ourShield.protect('customerservice');">Email us!</a>

///////////////////////////////////////////////////////////////////////////////////////////////
*/

//[Setup]/////////////
var SRFshield = new eShield('snowyridgefarm','com');
//END[Setup]//////////

//class constructor function
function eShield(domain,service){
	this.version 	= 1.3;
	this.domain 	= domain;
	this.service	= service;

	this.protect = function(username){
		var builde = '';
		if(username != null){
			builde = 'm'+'a'+'i'+'l'+'to:'+ username +'@'+ this.domain +'.'+ this.service;
			var tmp = window.open(builde, "ejump");
			try{tmp.close();}catch(e){}
		}else{alert('Error: no email address was supplied!');}
	}
	this.display = function(username){
		var builde = '';
		if(username != null){
			builde = username +'@'+ this.domain +'.'+ this.service;
			document.write(builde);
		}else{alert('Error: no email address was supplied!');}
	}
}
