var offset = new Array();
function simple_paginate(container_name, function_name, direction, limit) {
	if (direction == "previous") {
		offset[container_name] = offset[container_name] - limit;
	} else if (direction == "next") {
		offset[container_name] = offset[container_name] + limit;
	}
	$("#" + container_name + "_next").hide();
	$("#" + container_name + "_previous").hide();
	$("#" + container_name + "_wait").show();
	$("#" + container_name + "_ajax").load("armory_ajax.php", { action: function_name,  offset: offset[container_name], limit: limit}, function() {
		$("#" + container_name + "_wait").hide();
		if (offset[container_name] > 0) {
			$("#" + container_name + "_previous").show();
		}
		$("#" + container_name + "_next").show();
		Shadowbox.init({ skipSetup: true });
		Shadowbox.setup(); 

	});
}


function openRecentMap(hours) {
	Shadowbox.open({
		content:    "http://l2tritan.com/peteArmory/armory_map_recent.php?hours=" + hours,
		player:     "img",
		title:      "Recent Activity in the last " + hours + " hours",
		handleOversize: "drag"
	});
}

function showCountDown() {
	//launch = new Date("February 20, 2010 12:00:00 EST");
	//$('#countdown').countdown({until: launch}); 

	/*$('#countdown').jnotifica({
	  position  : 'bottom',
	  background: 'black',
	  clickClose: false,
	  timeout   : 0,
	  cursor    : 'default'
	});
*/
}