--- plup/plup.js 2012-07-04 07:27:04.408387764 -0500
+++ plup-new/plup.js	2012-07-04 07:26:50.600387574 -0500
@@ -1,15 +1,16 @@
 	Drupal.behaviors.plup = {
 		attach: function(context, settings) {
-			// Will run code only once. Using this instead of .once()
-			if (!Drupal.settings.plup.once) {
 				/**
 				* Initial tasks
 				*/
-				$('#plup-list').sortable(); // Activate sortable
-				$('#plup-upload').hide(); // Hide upload button
-				var uploader = new plupload.Uploader(Drupal.settings.plup); // Create Plupload instance
+			$('.plup-list').sortable(); // Activate sortable
+			$('.plup-upload').hide(); // Hide upload button
 				plup_remove_item('.plup-remove-item'); // Bind remove functionality on existing images
-				plup_resize_input('#plup-list > li > input.form-text'); // Bind resizing effect on existing inputs
+			plup_resize_input('.plup-list > li > input.form-text'); // Bind resizing effect on existing inputs
+
+			$('.plupload-container').once(function() {
+				var thisID = $(this).attr('id');
+				var uploader = new plupload.Uploader(Drupal.settings.plup[thisID]); // Create Plupload instance
 
 				/**
 				* Events
@@ -27,24 +28,24 @@
 				// Upload process state
 				uploader.bind('StateChanged', function(up) {
 					if (up.state == 2) {
-						$('#plup-progress').progressbar(); // Activate progressbar
+						$('#'+thisID).find('.plup-progress').progressbar(); // Activate progressbar
 					}
 					if (up.state == 1) {
-						$('#plup-progress').progressbar('destroy'); // Destroy progressbar
-						$('#plup-upload').hide(); // Hide upload button
-						$('.plup-drag-info').show(); // Show info
+						$('#'+thisID).find('.plup-progress').progressbar('destroy'); // Destroy progressbar
+						$('#'+thisID).find('.plup-upload').hide(); // Hide upload button
+						$('#'+thisID).find('.plup-drag-info').show(); // Show info
 					}
 				});
 
 				// Files were added into queue
 				// Only CURRENTLY added files
 				uploader.bind('FilesAdded', function(up, files) {
-					$('.plup-drag-info').hide(); // Hide info
-					$('#plup-upload').show(); // Show upload button
+					$('#'+thisID).find('.plup-drag-info').hide(); // Hide info
+					$('#'+thisID).find('.plup-upload').show(); // Show upload button
 
 					// Put files visually into queue
 					$.each(files, function(i, file) {
-						$('#plup-filelist table').append('<tr id="' + file.id + '">' +
+						$('#'+thisID).find('.plup-filelist table').append('<tr id="' + file.id + '">' +
 							'<td class="plup-filelist-file">' +  file.name + '</td>' +
 							'<td class="plup-filelist-size">' + plupload.formatSize(file.size) + '</td>' +
 							'<td class="plup-filelist-message"></td>' +
@@ -65,15 +66,15 @@
 				uploader.bind('FilesRemoved', function(up, file) {
 					// If there are not files in queue
 					if (up.files.length == 0) {
-						$('#plup-upload').hide(); // Hide upload button
-						$('.plup-drag-info').show(); // Show info
+						$('#'+thisID).find('.plup-upload').hide(); // Hide upload button
+						$('#'+thisID).find('.plup-drag-info').show(); // Show info
 					}
 				});
 
 				// File is being uploaded
 				uploader.bind('UploadProgress', function(up, file) {
 					// Refresh progressbar
-					$('#plup-progress').progressbar({value: uploader.total.percent});
+					$('#'+thisID).find('.plup-progress').progressbar({value: uploader.total.percent});
 				});
 
 				// Error event
@@ -86,8 +87,8 @@
 				uploader.bind('FileUploaded', function(up, file, response) {
 					// Respone is object with response parameter so 2x repsone
 					var fileSaved = jQuery.parseJSON(response.response);
-					var delta = $('#plup-list li').length;
-					var name = Drupal.settings.plup.name +'[' + delta + ']';
+					var delta = $('#'+thisID).find('.plup-list li').length;
+					var name = Drupal.settings.plup[thisID].name +'[' + delta + ']';
 
 					// Plupload has weird error handling behavior so we have to check for errors here
 					if (fileSaved.error_message) {
@@ -96,13 +97,13 @@
 						return;
 					}
 
-					$('#plup-filelist #' + file.id).remove(); // Remove uploaded file from queue
-					var title_field = Drupal.settings.plup.title_field ? '<input title="'+ Drupal.t('Title') +'" type="text" class="form-text plup-title" name="'+ name + '[title]" value="" />' : '';
-					var alt_field = Drupal.settings.plup.alt_field ? '<input title="'+ Drupal.t('Alternative text') +'" type="text" class="form-text plup-alt" name="'+ name + '[alt]" value="" />' : '';
+					$('#'+thisID).find('.plup-filelist #' + file.id).remove(); // Remove uploaded file from queue
+					var title_field = Drupal.settings.plup[thisID].title_field ? '<input title="'+ Drupal.t('Title') +'" type="text" class="form-text plup-title" name="'+ name + '[title]" value="" />' : '';
+					var alt_field = Drupal.settings.plup[thisID].alt_field ? '<input title="'+ Drupal.t('Alternative text') +'" type="text" class="form-text plup-alt" name="'+ name + '[alt]" value="" />' : '';
 					// Add image thumbnail into list of uploaded items
-					$('#plup-list').append(
+					$('#'+thisID).find('.plup-list').append(
 						'<li class="ui-state-default">' +
-						'<div class="plup-thumb-wrapper"><img src="'+ Drupal.settings.plup.image_style_path + file.target_name + '" /></div>' +
+						'<div class="plup-thumb-wrapper"><img src="'+ Drupal.settings.plup[thisID].image_style_path + file.target_name + '" /></div>' +
 						'<a class="plup-remove-item"></a>' +
 						title_field +
 						alt_field +
@@ -123,22 +124,21 @@
 
 				// All fiels from queue has been uploaded
 				uploader.bind('UploadComplete', function(up, files) {
-					$('#plup-list').sortable('refresh'); // Refresh sortable
-					$('.plup-drag-info').show(); // Show info
+					$('#'+thisID).find('.plup-list').sortable('refresh'); // Refresh sortable
+					$('#'+thisID).find('.plup-drag-info').show(); // Show info
 				});
 
-
 				/**
 				* Additional tasks
 				*/
 				// Upload button functionality
-				$('#' + Drupal.settings.plup.upload).click(function(e) {
+				$('#' + Drupal.settings.plup[thisID].upload).click(function(e) {
 					// Forbid upload more than allowed number of files if set
-					if (Drupal.settings.plup.max_files > 0) {
-						var uploaded = $('#plup-list li').length;
-						var selected = $('#plup-filelist td.plup-filelist-file').length;
-						var allowed = Drupal.settings.plup.max_files - uploaded;
-						if ((selected + uploaded) > Drupal.settings.plup.max_files) {
+					if (Drupal.settings.plup[thisID].max_files > 0) {
+						var uploaded = $(this).find('.plup-list li').length;
+						var selected = $(this).find('.plup-filelist td.plup-filelist-file').length;
+						var allowed = Drupal.settings.plup[thisID].max_files - uploaded;
+						if ((selected + uploaded) > Drupal.settings.plup[thisID].max_files) {
 							alert(Drupal.formatPlural(allowed, 'You can upload only 1 file.', 'You can upload only @count files.'));
 							return;
 						}
@@ -151,15 +151,11 @@
 				uploader.init();
 
 				// Change weight values for images when reordering using sortable
-				$('#plup-list').bind('sortupdate', function(event, ui) {
+				$('.plup-list').bind('sortupdate', function(event, ui) {
 					$(this).find('li').each(function(index) {
 						$(this).find('input[name$="[weight]"]').val(index);
 					});
 				});
-
-
-				// Save information that code has run so we don't run it more than once
-				Drupal.settings.plup.once = 1;
-			}
+			});
 		}
 	}
