function ajaxFileUpload()
{
	$("#loading")
	.ajaxStart(function(){
		$(this).show();
	})
	.ajaxComplete(function(){
		$(this).hide();
	});

	$.ajaxFileUpload
	(
		{
			url:'php/do_uploader.php',
			secureuri:false,
			fileElementId:'fileToUpload',
			dataType: 'json',
			success: function (data, status)
			{
				if(typeof(data.error) != 'undefined')
				{
					if(data.error != '')
					{     

						$("#response").html("<b>error</b>")

						//alert(data.error);
					}else
						{   
							var msgArray = data.msg.split("|");
							$("#response").html("<img src='http://mijneigenpartij.nl/php/image.php/"+msgArray[1]+"?width=100&height=100&cropratio=1:1&image="+msgArray[1]+"' />");
							$("#plaatje_id").attr("value", msgArray[0]);
							$("#logo").attr("value", 0);           
							/*  
							$("#response").html("<img src='http://mijneigenpartij.nl/_beta/php/image.php/"+data.msg+"?width=100&height=100&cropratio=1:1&image="+data.msg+"' />");
							$("#plaatje_id").attr("value", data.plaatje_id);
							*/
						}
					}
				},
				error: function (data, status, e)
				{
					alert(e);
				}
			}
		)

		return false;

 }