/** * $Id: mcfilemanager.js 584 2008-11-12 16:26:02Z spocke $ * * @author Moxiecode * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. */ (function() { window.mcFileManager = { settings : { document_base_url : '', relative_urls : false, remove_script_host : false, use_url_path : true, remember_last_path : 'auto', target_elements : '', target_form : '', handle : 'file' }, setup : function() { var t = this, o, d = document, cp = []; // Find document_base_url o = d.location.href; if (o.indexOf('?') != -1) o = o.substring(0, o.indexOf('?')); o = o.substring(0, o.lastIndexOf('/') + 1); t.settings.default_base_url = unescape(o); // Find script base URL function get(nl) { var i, n; for (i=0; i