function getActions() {

	$(".ajax").bind('click',showNewSection);

}



function showNewSection() {

		var activeLink = this;

			  $("#body").fadeOut(500, function() {

						$(this).html("<div style='text-align: center; padding:114px 0 115px 150px; '><img src='img/ajax-loader.gif' height='15' /></div>").fadeIn(500, function() { ajaxMe(activeLink); });

			  });

		return false;

}

	

function ajaxMe(activeLink) {

		$.ajax({

		  type: "GET",

		  url: $(activeLink).attr("href"),

		  data: "ajax=yes",

		  success: function(msg){

				$("#body").fadeOut(500, function() { $("#body").html(msg).fadeIn(500, catchForm()); getActions();});

				if(typeof(randomMe) == 'undefined') {

					randomMe = 1;

					randomMeTmp = 1;

				}

				while(randomMeTmp == randomMe) {

					randomMeTmp = Math.ceil((7)*Math.random())

				}

				randomMe = randomMeTmp;

				$("body").css("background-image", "url('img/back"+randomMe+".jpg')");

		  }

		});

}