/************************************************************************* * * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2008 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * if any. The intellectual and technical concepts contained * herein are proprietary to Adobe Systems Incorporated and its * suppliers and may be covered by U.S. and Foreign Patents, * patents in process, and are protected by trade secret or copyright law. * Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained * from Adobe Systems Incorporated. * * AdobePatentID="B564" * AdobePatentID="B565" * **************************************************************************/ ICE = {}; // Set the ICE.useConfig flag to false in case you do not want to use the ice.conf.js file or if // this file is missing form your server. This should be done to avoid HTTP error code 404. ICE.useConfig = true; (function () { var isNotInIde = parent == window || ( parent != window && !(/ide\.htm/i).test(parent.location.href) ); if (isNotInIde) { /* * This setting defines the default shortcut for launching the InContext Editing Login * dialog on any PC machine. * * DO NOT MODIFY THIS CONSTANT! * * Instead modify the ICE.USER_LOGIN_PC variable inside the ice.conf.js file. */ ICE.DEFAULT_LOGIN_PC = "CTRL+E"; /* * This setting defines the default shortcut for launching the InContext Editing Login * dialog on any MAC machine. * * DO NOT MODIFY THIS CONSTANT! * * Instead modify the ICE.USER_LOGIN_MAC variable inside the ice.conf.js file. */ ICE.DEFAULT_LOGIN_MAC = "CMD+E"; /** * Gets the relative path based on the ice.js includes. */ ICE.getSiteRoot = function() { var searchPath = "includes/ice/ice.js"; var s = null; var url = ''; var scripts = document.getElementsByTagName("script"); for (var i=0; i= 0) ? newLength : 0; path = temp.join('/') + '/'; s = loca.protocol + '//'+ loca.hostname + (loca.port?':' + loca.port:'') + path; } return s; }; /** * Adds a link to the current configuration file to the page HEAD so the values in this file become available */ ICE.getConfig = function() { var scr = document.createElement('SCRIPT'); scr.type = 'text/javascript'; var head=document.getElementsByTagName('HEAD')[0]; head.appendChild(scr); scr.onreadystatechange = scr.onload = function(e) { e = e || event; if (e.type == 'readystatechange') { if (typeof this.jsloaded == 'undefined' && (this.readyState == 'complete')){ this.jsloaded = true; ICE.attachKeyEvent(); } } else { ICE.attachKeyEvent(); } }; var siteRoot = ICE.getSiteRoot(); scr.src = siteRoot + 'includes/ice/ice.conf.js'; }; /** * This function returns the available transport object as instance * * @return Object The transport instance */ ICE.getTransport = function() { var ret = false; var options = ['new XMLHttpRequest()', 'new ActiveXObject("Msxml2.XMLHTTP")', 'new ActiveXObject("Microsoft.XMLHTTP")']; for (var i=0; i