/*----------------------------------------------------------
  NaviciAjaxConfiguration file
  This Object contains the standard configuration for the NaviciAjaxApi

  @package NaviciAjaxApi
  @author Arnd Beyer, arnd.beyer@wmdata.fi
  @copyright WM-data Novo 2006
  @version $Id: RouteRequests.php,v 1.0 2005/07/26 12:44:42 arnd Exp $

  ---------------------------------------------------------*/
  function NaviciAjaxConfiguration(){
	this.LANGUAGE =  "fi";
	this.IE_FIX_CSS = "styles/ie_specials.css"; //css file loaded to fix IE problems. Set null to disable this feature
	this.SERVER_SIDE_FILE = "ajaxRequest.php";
	
	this.MAP_START_X = 2549164; //Init X coordinate
	this.MAP_START_Y = 6683186; //Init Y coordinate
	this.MAP_MIN_X = 2500000;   //Minimum x coord
	this.MAP_MAX_X = 2567000;   //Maximum x coord
	this.MAP_MIN_Y = 6666000;   //Minimum y coord
	this.MAP_MAX_Y = 7000000;   //Maximum y coord

	this.scales = new Array();
	this.scales[0]=1;
	
	//Array of zoom levels with MIN_COL, MAX_COL, MIN_ROW, MAX_ROW
	//Only Images within these bounds will be requested
	//Set this to null, if all images should be requested
	this.availableImages = new Array();

	this.MAP_TILE_SIZE = 256;   	//tile size: must be equal to .tile setting in .css 
	this.MAP_MAX_ZOOM = 0;   		//Maximum zoom level
	this.MAP_MIN_ZOOM = 0;   		//Minimum zoom level
	this.MAP_INI_ZOOM = 0;   		//Minimum zoom level

	this.MAP_IMAGEPATH = "images";  //Path to the images zoom, scalebar, etc.
	this.MAP_SMOOTHMOVE = true;  	//Path to the images zoom, scalebar, etc.
	
	this.CREATE_MAP_METER = true;
	this.CREATE_MAP_COPYRIGHT = true;

	// Settings for Mapsize:	
	this.MAP_FIXEDSIZE = false;  	//true: Use the MapSize below, 
									//false: resize the Map to windows size save MAP_MARGIN_RIGHT and MAP_MARGIN_BOTTOM
	this.MAP_WIDTH =  600;
	this.MAP_HEIGHT =  400;
	this.MAP_MARGIN_RIGHT =  15;
	this.MAP_MARGIN_BOTTOM =  10;

	this.MAP_AREA = "MapArea";   	//id of the DIV Element the map is created in
	this.MAP_CSS_BASE ="map_image"; //CSS class for map. <MAP_CSS_BASE>_surface and <MAP_CSS_BASE>_backgroundtiles must also be defined

	this.CREATE_MAP_SCALEBAR = true;
	this.SCALEBAR_CSS_BASE = "map_scalebar";
	this.SCALEBAR_TOP = 22;
	this.SCALEBAR_LENGTH = 157; 	//Hight of the image - height of the slider (164 -7)
	
	this.CREATE_MAP_PAN = true;
	this.PAN_CSS_BASE = "map_pan";
	this.PAN_WIDTH = 52;			//Width of image in pixel
	this.PAN_HIGHT = 52;			//Height of image in pixel
	this.PAN_FACTOR = 0.25;			//Factor to position in pan image
	this.PAN_STEP = 100;			//Step width in pixcel

	this.CREATE_MAP_MENU = true;

	this.CREATE_TYPE_MENU = true;

	this.CREATE_PRINT_MENU = true;
	this.PRINT_MENU_BUTTON_PRINT = "Print";
	this.PRINT_MENU_BUTTON_CLOSE = "Close";
	this.PRINT_MENU_DPI = 72;
	this.PRINT_MENU_FORMATS = Array();
	//Calculated with 72pixcel per inch as screen resulution on A4 210x297mm =  8,27x11,69in and 30 pixel border
	this.PRINT_MENU_FORMATS.push({type: "Portrait", width: 535, height: 782, label: "Portrait", printCss: "A4Portrait"});
	this.PRINT_MENU_FORMATS.push({type: "Landscape", width: 782, height: 535, label: "Landscape", printCss: "A4Landscape"});
	
	
	
	this.PRINT_MENU_CSS_BASE ="map_printmenu"; //CSS class for map. <MAP_CSS_BASE>_surface and <MAP_CSS_BASE>_backgroundtiles must also be defined
	
	this.PAN_CURSOR_STYLE = 'pointer';
	//Array of Layers the type will be the service Name in the XML request
	//the view will referes to the CSS class that will be used for this Layer
	//e.g. map_image_background when the MAP_CSS_BASE is map_image
	this.LAYERS = new Array();
	
	this.POI_SERVICE = "navici_poi";
	
	this.CREATE_INDEXMAP = true;
	this.INDEXMAP_WIDTH =  250;
	this.INDEXMAP_HEIGHT =  200;
	this.INDEXMAP_ZOOM_MAPSIZE = 60; //For the zoom in the IndexMap the first zoom level 
											   //is chosen, where the Map is less wide than this Percentange of the IndexMap:  
	this.INDEXMAP_CSS_BASE ="indexmap_image"; //CSS class for map. <MAP_CSS_BASE>_surface and <MAP_CSS_BASE>_backgroundtiles must also be defined
  
  }
