$(document).ready(function(){
	$checked = false;
	$('#loading').hide();
	$('#submitx').livequery('click', function(){			
		var replacement = 'attack2.php';
		var content_show = "defenderx=" + $('#defenderx').attr("value");
		$.ajax({
			type: "POST", url: replacement, data: content_show,
			async: true,
			beforeSend: function(){
				$("#loading").show("fast"); 
				$('#atkcontent').hide("fast");
			},
			complete: function(){$("#loading").hide("fast");},
			success: function(html){ //so, if data is retrieved, store it in html
				$(".content").html(html); //show the html inside .content div
		 	}
		});	
	});
	$('a.shipdetails').livequery(function(){
		$(this).cluetip({width: '260px', showTitle: false});
	});	
});	
function showRequest(formData, jqForm, options) { 	
    var queryString = $.param(formData); 
    return true; 
} 
// post-submit callback 
function showResponse(responseText, statusText)  { 
}