function imageUpload()
{
   jQuery("#upload").uploadify({
          'uploader'       : '../js/swf_upload/uploadify.swf',
          'script'         : '../admin/swf_upload_process.php',
          'cancelImg'      : '/images/cancel/cancel.png',
          'folder'         : '/images/user/',
          'queueID'        : 'fileQueue',
          'method'         : 'POST',
          'auto'           : true,
          'multi'          : true,
          'rollover'       : false,
          'simUploadLimit' : 40,
          'queueSizeLimit' : 40,
          'onComplete'     : true,
          'fileDesc'       : 'All',
          'fileExt'                : '*',
          'buttonText'     : 'Upload ',
          'sizeLimit'      : '4194304',
          'onError'        : function(a, b, c , d){
                            if (d.status == 404)
                              alert('Could not find upload script. Use a path relative to: '+'<?= getcwd() ?>');
                            else if (d.type === "HTTP")
                              alert('error '+d.type+": "+d.status);
                           else if (d.type ==="File Size")
                             alert(unescape("Sie k%F6nnen nur Bilder mit 4MB hochladen!"));
                          else
                            alert('error '+d.type+": "+d.text);
                             },
          'fileDataName'   : 'fileData',
          'onAllComplete' : function(){ location.reload();}
        });
}

