/*************************************************************************
*
* 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ');