// JavaScript Document
	function initLayers() {
	Effect.Opacity('Layer_AR');
}

function appearLayer(i) {
//	Element.show(i);
	Effect.Appear(i, { duration: 3.0, from: 0, to: .95 });
}

function fadeLayer(i) {
//	Element.show(i);
	Effect.Fade(i, { duration: 2.0});
}


function hideNotify() {
	Effect.Fade('Layer_Notify');
}

function thankYou() {
	$('Layer_Notify').innerHTML = "<p class='header'>Thank you, your request has been processed, and you will be notified when the report is available for purchase and download.</p>";
	Effect.Fade('Layer_Notify',{duration: 4.0});
}

function errFunc() {
	$('Layer_Notify').innerHTML = "<p class='header'>Sorry, your request could not be processed.  Please email us at <a href='mailto:info@amesrgi.com' onClick='fadeLayer('Layer_Notify');'>info@amesrgi.com</a></p>";
}

function procform() {
	var varString = "first_name=" + $('first_name').value;
	varString += "&last_name=" +  $('last_name').value;
	varString += "&company=" +  $('company').value;
	varString += "&email=" +  $('email').value;
	varString += "&product=" +  $('product').value;
	 new Ajax.Request('/shared/ajax_notify.php', {method:'post', postBody: varString, onSuccess:thankYou, onFailure:errFunc});
}
