$(document).ready(function(){
		new Ajax_upload('#button1', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress1').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress1').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_1" value="'+ file +'" />');				
				}
				
				else $('#progress1').text(response);
			}	
		});		
	
		new Ajax_upload('#button2', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress2').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress2').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_2" value="'+ file +'" />');				
				}
				
				else $('#progress2').text(response);
			}	
		});		

		new Ajax_upload('#button3', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress3').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress3').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_3" value="'+ file +'" />');				
				}
				
				else $('#progress3').text(response);
			}	
		});		


		new Ajax_upload('#button4', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress4').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress4').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_4" value="'+ file +'" />');				
				}
				
				else $('#progress4').text(response);
			}	
		});


		new Ajax_upload('#button5', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress5').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress5').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_5" value="'+ file +'" />');				
				}
				
				else $('#progress5').text(response);
			}	
		});


		new Ajax_upload('#button6', {
			action: 'cop.php',
			name: 'myfile',
			onSubmit : function(file, response){
				$('#progress6').html('<img src="/img/loader.gif" />');
			},	
			onComplete : function(file, response){
				//alert(response);
				if(response=='') {
					$('#progress6').html('<img src="/i.php?name=./tmp/'+file+'&x=70" />');
					$('#upload_form').append('<input type="hidden" name="img_6" value="'+ file +'" />');				
				}
				
				else $('#progress6').text(response);
			}	
		});		
});
