/*
HTML ImageMapper 10.0.24
---------------------------------------------------------------
Here are some variables which can be customized. You can change
behavior by setting either True or False.
---------------------------------------------------------------
*/

function config_IM() {

// startup message
g_startUpMessage = "loading IPIS map";

// does the project contain an overview map?
g_hasOvMap = true;
// should it be visible at startup?
g_showOvMapAtStart = false;

// does the project contain a legend?
g_hasLegend = true;
// should it be visible at startup?
g_showLegendAtStart = false;

// does the project contain a search?
g_hasSearch = true;
// should it be visible at startup?
g_showSearchAtStart = false;

// does the project contain lists?
g_hasLists = true;
// should it be visible at startup?
g_showListsAtStart = false;

// display the information bar (containing title, icon etc...)
g_hasInfoBar = true;
// does the information bar contain a title?
g_hasTitle = true;
g_title = "Interactive map of militarised mining areas in the Kivus (August 2009)";
// does the information bar contain the description (below the title)?
g_hasComments = true;
g_comments = "Cartographic sources&#58; IPIS, R&#233;f&#233;rentiel G&#233;ographique Commun, Royal Museum for Central Africa, MONUC";
// shall the logo be shown in the information bar (right)?
g_hasLogo = true;
// display a scalebar?
g_hasScalebar = true;
// display current mouse coordinates?
g_hasCoordsDisplay = true;

// do buttons exist which enable printing (map, attributes, search result)?
g_hasPrintKnob = true;

// shall we draw a zoombar?
g_hasZoomBar = true;

// disable zoom animation?
g_animatedZoom = true;

// print the whole visible map or constrain on DIN A4
g_printAll = false;


/*
---------------------------------------------------------------------
the following Options Not should Changed without further knowledge
---------------------------------------------------------------------
*/

g_baseMapExt = new Array(818,814);

// fullscreen version
g_viewOff = new Array(0,0);
calc_g_viewExt();
g_viewPosType = "px";

g_picUL = new Array(-1, -1);
g_iniPxDelta = new Array(0,0);

g_zoomFactors = new Array();
g_zoomFactors[0] = 1;
g_zoomFactors[1] = 3.5;
g_zoomFactors[2] = 35;
set_zoomLevel(0);

g_tSize = new Array(256, 256);
g_maptileimageFormat = "png";

g_geoTileSize = new Array(512 ,512);
g_geoTilesDir = "geoTiles/tiles_";

g_ovMapExt = new Array(250, 248);
g_ovMapImgSrc = "maptileimages/ovmap.png";

g_dCLength = 249;

g_legendImgSrc = "maptileimages/legend.png";
g_legendExt = new Array(622,653);

g_searchDir = "searchIndex/";

g_searchFields = new Array();
g_searchFields[0] = '&#78;&#65;&#77;&#69;||STRING';
g_searchFields[1] = '&#68;&#69;&#84;&#65;&#73;&#76;&#83;||STRING';
g_searchFields[2] = '&#76;&#79;&#78;&#71;&#73;&#84;&#85;&#68;&#69;||NUMBER';
g_searchFields[3] = '&#76;&#65;&#84;&#73;&#84;&#85;&#68;&#69;||NUMBER';
g_searchFields[4] = '&#79;&#82;&#73;&#71;&#73;&#78;||STRING';
g_searchFields[5] = '&#71;&#69;&#79;&#71;&#82;&#65;&#80;&#72;&#73;&#67;&#32;&#83;&#79;&#85;&#82;&#67;&#69;||STRING';
g_searchFields[6] = '&#84;&#69;&#82;&#82;&#73;&#84;&#79;&#73;&#82;&#69;||STRING';
g_searchFields[7] = '&#67;&#79;&#76;&#76;&#69;&#67;&#84;&#73;&#86;&#73;&#84;&#201;||STRING';
g_searchFields[8] = '&#71;&#82;&#79;&#85;&#80;&#69;&#77;&#69;&#78;&#84;||STRING';
g_searchFields[9] = '&#76;&#79;&#67;&#65;&#76;&#73;&#84;&#201;||STRING';
g_searchFields[10] = '&#86;&#73;&#76;&#76;&#65;&#71;&#69;||STRING';
g_searchFields[11] = '&#82;&#69;&#83;&#79;&#85;&#82;&#67;&#69;&#32;&#49;||STRING';
g_searchFields[12] = '&#82;&#69;&#83;&#79;&#85;&#82;&#67;&#69;&#32;&#50;||STRING';
g_searchFields[13] = '&#82;&#69;&#83;&#79;&#85;&#82;&#67;&#69;&#32;&#51;||STRING';
g_searchFields[14] = '&#78;&#85;&#77;&#66;&#69;&#82;&#32;&#79;&#70;&#32;&#87;&#79;&#82;&#75;&#69;&#82;&#83;||NUMBER';
g_searchFields[15] = '&#65;&#82;&#77;&#69;&#68;&#32;&#71;&#82;&#79;&#85;&#80;&#32;&#49;||STRING';
g_searchFields[16] = '&#67;&#79;&#77;&#77;&#65;&#78;&#68;&#32;&#49;||STRING';
g_searchFields[17] = '&#65;&#82;&#77;&#69;&#68;&#32;&#71;&#82;&#79;&#85;&#80;&#32;&#50;||STRING';
g_searchFields[18] = '&#67;&#79;&#77;&#77;&#65;&#78;&#68;&#32;&#50;||STRING';
g_searchFields[19] = '&#65;&#82;&#77;&#69;&#68;&#32;&#71;&#82;&#79;&#85;&#80;&#32;&#51;||STRING';
g_searchFields[20] = '&#67;&#79;&#77;&#77;&#65;&#78;&#68;&#32;&#51;||STRING';
g_searchFields[21] = '&#65;&#67;&#84;&#73;&#86;&#73;&#84;&#89;&#32;&#65;&#71;&#32;&#49;||STRING';
g_searchFields[22] = '&#65;&#67;&#84;&#73;&#86;&#73;&#84;&#89;&#32;&#65;&#71;&#32;&#50;||STRING';
g_searchFields[23] = '&#65;&#67;&#84;&#73;&#86;&#73;&#84;&#89;&#32;&#65;&#71;&#32;&#51;||STRING';
g_searchFields[24] = '&#84;&#73;&#84;&#76;&#69;&#32;&#72;&#79;&#76;&#68;&#69;&#82;&#32;&#40;&#67;&#65;&#77;&#73;&#32;&#51;&#49;&#32;&#68;&#69;&#67;&#32;&#50;&#48;&#48;&#56;&#41;||STRING';
g_searchFields[25] = '&#79;&#87;&#78;&#69;&#82;&#83;&#72;&#73;&#80;&#32;&#83;&#84;&#82;&#85;&#67;&#84;&#85;&#82;&#69;||STRING';
g_searchFields[26] = '&#79;&#70;&#70;&#73;&#67;&#73;&#65;&#76;&#32;&#67;&#79;&#77;&#80;&#84;&#79;&#73;&#82;&#83;||STRING';
g_searchFields[27] = '&#79;&#84;&#72;&#69;&#82;&#32;&#67;&#79;&#77;&#80;&#84;&#79;&#73;&#82;&#83;&#47;&#78;&#201;&#71;&#79;&#67;&#73;&#65;&#78;&#84;&#83;||STRING';
g_searchFields[28] = '&#82;&#69;&#77;&#65;&#82;&#75;&#83;||STRING';
g_searchFields[29] = '&#83;&#73;&#84;&#69;&#83;||STRING';
g_searchFields[30] = '&#83;&#73;&#84;&#69;&#83;&#32;&#40;&#67;&#79;&#78;&#84;&#73;&#78;&#85;&#69;&#68;&#41;||STRING';
g_searchFields[31] = '&#71;&#79;&#76;&#68;||STRING';
g_searchFields[32] = '&#67;&#65;&#83;&#83;&#73;&#84;&#69;&#82;&#73;&#84;&#69;||STRING';
g_searchFields[33] = '&#87;&#79;&#76;&#70;&#82;&#65;&#77;&#73;&#84;&#69;||STRING';
g_searchFields[34] = '&#67;&#79;&#76;&#84;&#65;&#78;||STRING';
g_searchFields[35] = '&#68;&#73;&#65;&#77;&#79;&#78;&#68;||STRING';
g_searchFields[36] = '&#70;&#68;&#76;&#82;||STRING';
g_searchFields[37] = '&#77;&#65;&#89;&#73;&#45;&#77;&#65;&#89;&#73;||STRING';
g_searchFields[38] = '&#83;&#85;&#80;&#80;&#79;&#82;&#84;&#32;&#86;&#73;&#76;&#76;&#65;&#71;&#69;||STRING';

g_searchChunks = new Array();
g_searchChunks["&#78;&#85;&#77;&#66;&#69;&#82;&#32;&#79;&#70;&#32;&#87;&#79;&#82;&#75;&#69;&#82;&#83;"] = new Array(525,6000);
g_searchChunks["&#76;&#79;&#78;&#71;&#73;&#84;&#85;&#68;&#69;"] = new Array(28891567,29691233);
g_searchChunks["&#76;&#65;&#84;&#73;&#84;&#85;&#68;&#69;"] = new Array(-65,915667);


g_logoSize = new Array(95,110);
g_logoPath = "design/ipislogo.gif";

g_listsDir = "lists/";
g_lists = new Array();
g_lists[0] = "&#77;&#73;&#78;&#73;&#78;&#71;&#32;&#65;&#82;&#69;&#65;&#83;__&#78;&#65;&#77;&#69;";

g_rwUL = new Array(24.8258326825158,1.28322652769068);
g_rwLR = new Array(31.6382294129778,-5.49585774932176);
g_coordSys = "DRCongo2";
g_coordUnits = "dd";

g_attDir = "attributes/";
g_maptileimagePraefix = "diemap_";
g_maptileimageDir = "maptileimages/images_";

g_mapViewDirs = new Array();

g_designDir = "design/";
g_spaceImg = g_designDir+"spacer_white.gif";
g_transpLayImg = g_designDir+"leer.gif";

g_scaleBarImgSrc = g_designDir + "scalebar.gif";
g_scaleBarWidth = 100;

g_zBSizeMulti = 14;

g_areaCon = "area_Con";
g_areaLay = "area_layer";

g_dBCon = "dB_Con";

g_postToMapGallery = false;

g_mapGalleryAuthor = "";
g_mapGalleryTitle = "";
g_mapGalleryComment = "";
g_mapGalleryCopyright = "";
g_mapGalleryEmail = "";
g_mapGalleryIndustryId = 0;
g_mapGalleryIndustryText = "";

g_hasCopyrightInfo = false;

g_langDir = "languages/";

load_lang();
posCalc();
urlHandler();
}

