+ document.location.href = 'install.php?installer=' + installer;
+}
+
+// User has clicked on 'finish'
+function doFinishInstallation () {
+ // First disable all buttons button
+ resetFooterNavigation();
+
+ // Display progress window
+ displayProgressWindow('install', 'Init ...');
+
+ // Wait for window fader
+ $().ready(function () {
+ // Start installation loop delayed
+ window.setTimeout('doInstallationLoop()', 500);
+
+ // Wait here
+ $('body').delay(500);
+ });
+}
+
+// Does the "installation loop"
+function doInstallationLoop () {
+ // For-loop for all installation steps
+ for (var i = 0; i < installationSteps.length; i++) {
+ // Output message
+ outputInstallationStepMessage(installationSteps[i]);
+
+ // Initialize next step
+ if (sendInstallationStepRequest(i) === false) {
+ // Failed step, so remember it for later display
+ failedStep = installationSteps[i];
+
+ // Stop here
+ break;
+ } // END - if
+
+ // Wait a little
+ $('body').delay(500);
+
+ // Update progress bar
+ updateProgressBar(installationSteps.length);
+ } // END - for
+
+ // Is success counter same as array size
+ if (counterSuccess != installationSteps.length) {
+ // Display error message
+ displayErrorWindow('install', getAjaxContent() + ':' + counterSuccess + '/' + installationSteps.length + ':' + failedStep);
+ } else {
+ // Redirect to admin.php
+ document.location.href = 'admin.php';
+ }
+}
+
+// Sends an "installation step" request out
+function sendInstallationStepRequest (i) {
+ // Is it set?
+ if (installationSteps[i] == undefined) {
+ // Not set installation step, so don't send it out
+ throw new 'installationSteps[' + i + '] is not set.';
+ } // END - if
+
+ // Send out the request
+ return sendAjaxRequest('install', 'do_step', '&step=' + installationSteps[i], false);
+}
+
+// Outputs a "step message"
+function outputInstallationStepMessage (step) {
+ // Set content
+ // @TODO Progress bar is out-of-order: + '<div id="progressbar"></div>'
+ setProgressContent('install', step);