function photoStripNav(ide,img_offset) {
	document.getElementById('photo-strip_'+ide).innerHTML = '<div align="center"><img src="/images/loading.gif"></div>';
	AjaxRequest.post({
		'url' : '/photos/photo-strip/?img_offset='+img_offset+'&ide='+ide,
		'onSuccess':function(req){ 
			document.getElementById('photo-strip_'+ide).innerHTML = req.responseText;
		}
	});	
}

function unapprove(ide,table) {
	document.getElementById('photog-admin').innerHTML = '<img src="/images/loading.gif">';
	AjaxRequest.post({
		'url' : '/photos/approve?ide='+ide+'&table='+table,
		'onSuccess':function(req){ 
			document.getElementById('photog-admin').innerHTML = req.responseText;
		}
	});
}

function getzip(obj,identifier,desired_w,desired_h,crop,media_overlay_id,parameters){
	var parent = $(obj).parent();
	$.ajax({
			type: "POST",
			url: "/photos/ajax/functions",
			data: 'function=getzip&identifier='+identifier+'&desired_w='+desired_w+'&desired_h='+desired_w+'&crop='+crop+'&media_overlay_id='+media_overlay_id+'&parameters='+parameters,
			beforeSend : function() {
				$(parent).html("<img src = '/images/loading2.gif'/>");
			},
			success: function(data) {
				$(parent).html(data);
			}
		});
}
