// =============================================================
//
// Copyright (c) 2000-2003 GE Smallworld. All Rights Reserved.
//
// =============================================================

   // We intentionally define a variable called undefined because variables
   // that are undefined in Javascript have a distinct, non-null value, which
   // is "undefined."  Thus by declaring this variable we can use it to test if
   // other variables are underined (as opposed to null).
	var undefined;

// -----------------------------------------
// GLOBAL CONSTANTS
// This is a list of global constants
	
	var MAX_LISTENERS = 11; // maximum number of simultanious content listeners 
	var MAX_PARAMS = 19; // maximum number of queued parameters to register on submit
	var MAX_REQUESTS = 10; // maximum number of queued requests
	var MAX_OBJECTS = 10; // maximum number of javascript objects under the response object
	var MAX_EVENTS = 20; // maximum number of registered javascript interface events
	
   var MAX_MEASURE_POINTS = 6; // maximum number of measure points 	
	var MAX_TRAIL_POINTS = 15;  // maximum number of trail points

	// Minimal extend of nav Box: if navBox width or height is smaller than this value,
	// a zooming a default zoom in or out around the center of the navbox 
	// is executed and the navBox size is ignored
	var MIN_NAV_BOX_EXT = 3;

	// Defines navBox-Color
	var NAVBOX_COLOR = '#ff0000';

	// Map Size Offsets
	var MAP_WIDTH_OFFSET = 25;
	var MAP_HEIGHT_OFFSET = 60 //40;

	// Variables para imprimir una ficha de IBI
	var parcela='';
	var num_exp=0;
	
	// Variable para ajustar el día santo 
	var diaSanto ='';

// -----------------------------------------
// GLOBAL STATE
//
// This is a list of allowed values for select mode.  They may be
// replace_select, no_select or adjust_select.  The mode determines
// whether if clicking on a map appends features to the current
// selection (adjust_select), replaces the selection (replace_select)
// or does nothing (no_select)
	var FEATURE_SELECT_MODE = 'replace_select'; 

	var LAST_QUERY_SERVICE = '';
	var LAST_FEATURE_START = '0';
	var FEATURE_COUNT = 50; // number of features returned per page in search results
	
	var CURRENT_CONTENT = '';

	var GLOBAL_CONTEXT = new Context();
	
// -----------------------------------------
	
// -----------------------------------------
// GLOBAL MAP SETTINGS
//
var DEFAULT_ACE   = 'callejero_sias';
var DEFAULT_VIEW  = 'Inicio';
var DEFAULT_WORLD = 'swrefVworldVdatasetZgisVuniverseZ0VworldZ0';
var DEFAULT_DRAPP = 'callejero';

// -----------------------------------------
