/* Various constants
 *
 * Copyright (C) 2003, 2004  Charles McCathieNevile
 * Copyright (C) 2003  Cédric Kiss
 * Copyright (C) 2004  Florent Mailland
 * Copyright (C) 2004, 2005  Sylvain Beucler
 *
 * This work is distributed under the W3C(R) Software License [1] in
 * the hope that it will be useful, but WITHOUT ANY WARRANTY; without
 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.
 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
 */

// TODO: define the proxy URL outside of the script?

// TODO: define the proxy URL as a relative path?

// The path to your (PHP?) proxy (change this to match your config)
// Sur mon laptop
//var pathToProxy='http://localhost/rdfig/proxy.php.gz';
// Sur le dossier public
// var pathToProxy='http://www.w3.org/2001/sw/Europe/200306/geo/proxy.php';
// var pathToProxy='http://wolf/Project/proxy.php';
// alert(document.URL);

// Apparently ASV's URL parser is broken and when the URL contains
// 'http:' somewhere you get a 'Security violation'..  Hence we build
// a full path from a relative one

var pathToProxy = document.URL.substring(0, document.URL.lastIndexOf('/') + 1) + 'proxy.php';
//CMN ne marchera pas avec que proxy.php ??

