/*
 * MappaTo JavaScript Library v1.0.0
 * http://www.comune.torino.it/
 * Copyright (c) 2009 Comune di Torino
 * Module licensed under GNU Affero GPL licenses.
 * http://www.gnu.org/licenses/agpl.html
 * Date: 2009
 */
function Labels()
{
	this.debugBoxId = "debugBox";
	//this.currentServer = "http://webmeucci03.comune.torino.it/memento/";
	this.currentServer = "http://www.local.it/memento/";
	//this.currentServer = "http://www.comune.torino.it/servizionline/memento/";
	this.colorReloadWaitGrey = "#D7C2C1"; //più saturo
	this.colorReloadGrey = "#D2C6C6"; // meno saturo
	this.colorReloadWait = "#F9F2F2";
	this.colorReload = "#FBF9F9";
	this.mod = "";
	this.id = "";
	this.nav = "";
	this.urlMemento = "";
	if(typeof objParams != 'undefined')
	{
		this.mod = objParams.getParamValue("mod");
		this.id = objParams.getParamValue("id");
		this.nav = objParams.getParamValue("nav");
	}
}

/* Initialize Lib sigleton */
function initLabels()
{
	if (typeof oldOnLoadLabels == 'function') oldOnLoadLabels();
	objLabels = new Labels();
}

/* Var sigleton instance*/
var objLabels;

/* Event initialize */
var oldOnLoadLabels;
if (typeof window.onload == 'function') 
	oldOnLoadLabels = window.onload;
window.onload = initLabels;
