


function addEmail() {
	email = $("#emailList").val();
	$("#response").html("Adding...");
	$.ajax( {
		type: "POST",
		url: "http://mahriautumn.com/email/add.php",
		data: "email=" + email,
		success: function(msg) {
			$("#response").html(msg + "<br>");
		}
	});
}


function contact() {
	
	name = $("#name").val();
	email = $("#email").val();
	list = $(".checkbox").val();
	message = $("#message").val();
	
	$("#response").html("Sending...");
	
	$.ajax( {
		type: "POST",
		url: "http://mahriautumn.com/contact.php",
		data: "email=" + email + "&name=" + name + "&list=" + list + "&message="+ message ,
		success: function(msg) {
			$("#response").html(msg + "<br>");
		}
	});
}


function download() {

	email = $("#email").val();
	list = $("#list").val();
	amount = $("#amount").val();
	$("#buy").html("Loading...");
	$.ajax( {
		type: "POST",
		url: "http://mahriautumn.com/download.php",
		data: "email=" + email + "&amount=" + amount + "&list=" + list,
		success: function(msg) {
			$("#buy").html(msg + "<br>");
		}
	});
}


 
$(document).ready(function(){
    
 if (window.XMLHttpRequest) {
	if(document.epando){
	// IE7
	}else{
	// mozilla, safari, opera 9…etc
	}
	}else{
	// IE6, older browsers
	$("body").html('This site requires that you update to a current browser.<li><a href="http://www.apple.com/safari/download/">Safari 3 or later</a> (Mac / PC)</li><li><a href="http://www.mozilla.com/en-US/firefox/">Firefox 2 or later</a> (Mac / PC)</li><li><a href="http://www.microsoft.com/windows/downloads/ie/getitnow.mspx">Internet Explorer 7</a> (Windows only)</li>');
	
}
	
});
