Here is the code we use. I left out the licensing line for obvious reasons:
//<![CDATA[
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "./Components/ImageUploader6.cab";
iu.activeXControlVersion = "6,0,11,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "./Components/ImageUploader6.jar";
iu.javaAppletCodeBase = "./";
iu.javaAppletCached = true;
iu.javaAppletVersion = "6.0.11.0";
iu.showNonemptyResponse = "dump";
iu.addParam("SilentMode", "false");
//Configure appearance.
iu.addParam("PaneLayout", "OnePane");
iu.addParam("ShowDebugWindow", "true");
iu.addParam("BackgroundColor", "#ffffff");
iu.addParam("AllowRotate", "true");
iu.addParam("AllowAutoRotate", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("AllowMultipleRemove", "true");
iu.addParam("AllowMultipleRotate", "true");
iu.addParam("FilesPerOnePackageCount", "4");
//iu.addParam("UploadView", "Thumbnails");
iu.addParam("UploadView", "AdvancedDetails");
iu.addParam("AdvancedDetailsPreviewThumbnailSize", "40");
iu.addParam("MaxFileCount", "500");
iu.addParam("MessageMaxFileCountExceededText", "You cannot select to upload more then 500 images at once.");
//if( $.browser.safari() == false){
iu.addParam("MessageUploadCompleteText", "");
//}
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "164");
iu.addParam("UploadThumbnail1Height", "164");
iu.addParam("UploadThumbnail1JpegQuality", "80");
iu.addParam("UploadThumbnail1CopyExif", "true");
iu.addParam("FileMask", "*.jpg;*.jpeg");
//Configure URL files are uploaded to.
iu.addParam("Action", "UploadHandler.aspx?ControlType=" + iu.getControlType())
//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "http://ccstransfer.candid.com/CCSTransferWeb/Conflicts.aspx")
//iu.addParam("RedirectUrl", "http://localhost/CCSTransferWeb/Conflicts.aspx")
//Attach Event Listeners
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");
//Image Uploader to the page.
iu.writeHtml();