/*
Paragon Resources
javascript
01.28.2005

prepared by
Sean Stewart
media firma
www.mediafirma.com
*/

root = 'http://www.paragonresources.com';

// ---- preload rollover images ----
if (document.images) {
	imgArray = new Array('products','services','order','about','newsworthy','callout1','callout2','callout3');
	for (x = 0; x < 8; x++) {
		eval(imgArray[x] + '_off = new Image()');
		eval(imgArray[x] + '_off.src = "' + root + '/new_images/' + imgArray[x] + '.gif"');
		eval(imgArray[x] + '_on = new Image()');
		eval(imgArray[x] + '_on.src = "' + root + '/new_images/' + imgArray[x] + '_on.gif"');
		eval(imgArray[x] + '_ro = new Image()');
		eval(imgArray[x] + '_ro.src = "' + root + '/new_images/' + imgArray[x] + '_ro.gif"');
	}
}

// ---- rollover swapImage ----
function swapImage( img_name, img_state ) {
	document[img_name].src = eval(img_name + '_' + img_state + ".src" );
}

function mailtoLink(input)
{
	// Anti-SPAM mailtoLink function by JT
	// distribute freely, check out http://JTIS.de
	var a=unescape(input.replace(/\|/g,"%"));var b="";
	for(var c=13;c<a.length;c++)b+=String.fromCharCode(a.charCodeAt(c)-c+13);eval(b);
}

