function bindOypoDelete() {
	$('li', '.PixxerThumbs').each(function() {
		var id = $(this).attr('id').replace('sel','');
		
		$('.delete', this).remove();
		$(this).append('<span class="delete"><a href="javascript:PixxerOrder(\'' + id + '\')">x</a></span>');
	});
}

$(document).ready(function() {
	$('.addToShoppingCart').click(function() {
		var id = $(this).attr('id').split('-')[1];
		
		addToShoppingCart(id);
		
		return false;
	});
	
	$('.photos').ready(function() {
		$('#oypoWait').hide();
		
		$('li', this).each(function() {
			var val = $('.order', this).text();
			
			if ( val.indexOf('fout') > 0 ) {
				$('.order', this).remove();
			}
		});
	});
});
