function addonload(func) {
	if (typeof window.addEventListener != 'undefined') {
		window.addEventListener('load', func, false);
	} else if (typeof window.attachEvent != "undefined") { // IE
		window.attachEvent('onload', func );
	} else {
		if (window.onload != null) {
			// maintain any other onload events
			var oldOnload = window.onload;
			window.onload = function (e) {
				oldOnload(e);
				func();
			};
		} else {
			window.onload = func;
		}
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (loaded == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			if (document[changeImages.arguments[i]]) {
				document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			} else {
				changeImages.arguments[i].src = changeImages.arguments[i+1];
			}
		}
	}
}
var loaded;
function preloadImages() {
	for (var i=0;i<preloadImages.arguments.length;i++) {
		newImage(preloadImages.arguments[i]);
	}
	loaded = true;
}

function popImage(img, alt) {
	url = '/imageviewer.php?pic='+img+'&alt='+alt;
	window.open(url, 'ImageZoom', 'width=435,height=495');
}

function externalLinks() { 
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "blank")
		anchor.target = "_blank";
	}
}
addonload(externalLinks);

function customerserviceEmail() {
	ML="<cbht:ims>o/.\"uafvr@e= l";
	MI="0?F3BD@E=7?6G4:51>84:7DB8DBA61DC2D?4:<1?=91>84:7DB8DBA61DC2D?4:<1?0;?9";
	OT="";
	for(j=0;j<MI.length;j++){
	OT+=ML.charAt(MI.charCodeAt(j)-48);
	}document.write(OT);
}

function cowboycoffeeEmail() {
	ML="i@oh. y/lb<amrce:t=fw\">";
	MI=":;53=?CBE<;08A2@>2D926>2CC??19?;A24>;EF>2D926>2CC??19?;A24>;:7;F";
	OT="";
	for(j=0;j<MI.length;j++){
	OT+=ML.charAt(MI.charCodeAt(j)-48);
	}document.write(OT);
}
function corporatecoffeeEmail() {
	ML="<mal>erpb o=\".it/hcf@:";
	MI="029A65C;<12>3?:EB:67:62?5B:CC55D852?:=B2<4B:67:62?5B:CC55D852?:=B20@24";
	OT="";
	for(j=0;j<MI.length;j++){
	OT+=ML.charAt(MI.charCodeAt(j)-48);
	}document.write(OT);
}

function coffeesubscriptionEmail() {
	ML="o/chlt>s=ap .ef@<u:mi\"nbr";
	MI="@9;3H=>8EC9D450B20>>==7AG72HD:5D0F?G=950<29E620>>==7AG72HD:5D0F?G=950<29@196";
	OT="";
	for(j=0;j<MI.length;j++){
	OT+=ML.charAt(MI.charCodeAt(j)-48);
	}document.write(OT);
}

