/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * init.js
 *
 * Initialization script
 *
 * LICENSE: This source file is subject to version 1.0 of the OpenFlyers
 * license that is available through the world-wide-web at the following
 * URI: http://www.openflyers.com/license/semifreelicense1_0.txt. If you did not receive a
 * copy of the OpenFlyers License and are unable to obtain it through the
 * web, please send a note to contact@openflyers.com so we can mail you
 * a copy immediately.
 *
 * @category    Javascript
 * @package     OpenFlyers
 * @author      Christophe LARATTE <christophe.laratte@openflyers.com>
 * @copyright   2008 OPENFLYERS S.A.R.L. <contact@openflyers.com>
 * @license     http://www.openflyers.com/license/semifreelicense1_0.txt  OpenFlyers License
 * @link       http://www.openflyers.com
 * @since      Mon May 21 2012
 */

var fieldMemory = null; // Used to memorize the content of a form field before editing it
// @link https://work.openflyers.com/index.php?title=JavaScript#D.C3.A9tecter_si_le_moteur_utilis.C3.A9_est_WebKit
var isWebkit    = navigator.userAgent.indexOf('AppleWebKit') > -1 && (navigator.platform != 'Win32' || navigator.vendor === 'Apple Computer, Inc.');
// Prevents the page from being rendered if it is contained in a frame
if (window.top != window.self) {
    window.top.location.href = window.location.href;
}