var tinyMCE_GZ = { settings : { plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced', languages : 'en', disk_cache : true, page_name : 'tiny_mce_gzip.php', debug : false }, init : function(s) { var n, d = document, nl, i, b = '', sr, db; this.isIE = (navigator.appName == "Microsoft Internet Explorer"); this.isOpera = navigator.userAgent.indexOf('Opera') != -1; for (n in s) this.settings[n] = s[n]; for (i=0, nl = d.getElementsByTagName('base'); i= 6 && sp2) return 1; // IE 7.0+ seems fine if (ver >= 7) return 1; // All others might fail return 0; }, loadFile : function(u) { var x, ex; if (this.settings['debug']) alert('JS: ' + u); if (this.isIE) { // Synchronous AJAX load gzip JS file try { x = new ActiveXObject("Microsoft.XMLHTTP"); } catch (ex) { x = new ActiveXObject("Msxml2.XMLHTTP"); } x.open("GET", u.replace(/%2C/g, ','), false); x.send(null); this.scriptData = x.responseText; document.write(''); } else document.write(''); }, start : function() { var s = this.settings, p = TinyMCE_Engine.prototype; p.__loadScript = p.loadScript; p.__importThemeLanguagePack = p.importThemeLanguagePack; p.__importPluginLanguagePack = p.importPluginLanguagePack; p.__loadNextScript = p.loadNextScript; p.loadScript = p.importThemeLanguagePack = p.importPluginLanguagePack = p.loadNextScript = function() {}; tinyMCE.baseURL = this.baseURL.substring(0, this.baseURL.length - 1); tinyMCE.settings = {}; tinyMCE.srcMode = ''; }, end : function() { var s = this.settings, l = tinyMCE.loadedFiles, la, i, p = TinyMCE_Engine.prototype; this.addFiles(s.plugins, 'plugins', 'editor_plugin.js'); this.addFiles(s.themes, 'themes', 'editor_template.js'); la = s.languages.replace(/\s+/, '').split(',') for (i=0; i