$(document).ready(function() {
//CONTACT
	$().ajaxStart(function() {
		$('#loading').show();
	}).ajaxStop(function() {
		$('#loading').hide();
	});

	$('#isicontact').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').fadeOut('slow');
				$('#isicontact').fadeOut('slow');
				$('#myForm').fadeIn('slow');
			}
		})
		return false;
	});

	$('#shoutbox').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#shoutboxdata').html(data);
			}
		})
		return false;
	});

//CONTACT


//EDIT MEMBR
	$().ajaxStart(function() {
		$('#loading-komen3').show();
	}).ajaxStop(function() {
		$('#loading-komen3').hide();
	});

	$("#isicontact").click(function () {
		$.ajax({
			type: 'POST',
			success: function(data) {
			$("#myForm1").show("slide", { direction: "up" }, 800);
				$('#result').fadeOut('slow');
				$('#isicontact').fadeOut('slow');
			}
		})
		return false;
	});

	$('#myForm1').submit(function() {
		$.ajax({
			type: 'POST',
			url: $(this).attr('action'),
			data: $(this).serialize(),
			success: function(data) {
				$('#result').html(data);
				$('#myForm1').fadeOut('slow');
				$('#result').fadeIn('slow');
				$('#isicontact').fadeIn('slow');
			}
		})
		return false;
	});
//EDIT MEMBR

//CSHOUT

	$("#gambreng").click(function () {
			$("#shoutbox").show("slide", { direction: "up" }, 800);
			$("#gambreng").fadeOut("slow");
			$("#closegambreng").fadeIn("slow");
	});

	$("#closegambreng").click(function () {
			$("#shoutbox").hide("slide", { direction: "up" }, 500);
			$("#gambreng").fadeIn("slow");
			$("#closegambreng").fadeOut("slow");
	});

//CSHOUT




})
