/*
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 Indiana University&mdash;Bloomington's Interactive 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 = false;
// 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 = true;

// display the information bar (containing title, icon etc...)
g_hasInfoBar = false;
// does the information bar contain a title?
g_hasTitle = false;
g_title = "Indiana University Bloomington Campus Map";
// does the information bar contain the description (below the title)?
g_hasComments = false;
g_comments = "";
// shall the logo be shown in the information bar (right)?
g_hasLogo = false;
// 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 = false;

// 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;

// ---------------------------------------------------------------------------------------------------------------- 
// -- Added Jason Barnett - barnetjm@indiana.edu
// -- 3/22/2007
// --
// -- This allows one to place the map popup by default wherever they want using Top and Left styles
	ocs_legendOffsetTop  = 140;
	ocs_legendOffsetLeft = 50;

	ocs_legendRow     = new Array();
	ocs_legendRow[0]  = new Array("apark.gif","Accessible Parking");
	ocs_legendRow[1]  = new Array("aentry.gif","Accessible Entry");
	ocs_legendRow[2]  = new Array("aopen.gif","Accessible Door Openers");
	ocs_legendRow[3]  = new Array("aelev.gif","Accessible Elevators");
	ocs_legendRow[4]  = new Array("ephone.gif","Emergency Phones");
	ocs_legendRow[5]  = new Array("cbldg.gif","Construction - Buildings");
	ocs_legendRow[6]  = new Array("construct.gif","Construction - Limits");
	ocs_legendRow[7]  = new Array("iu.gif","IU Buildings");
	ocs_legendRow[8]  = new Array("garage.gif","IU Parking Garages");
	ocs_legendRow[9]  = new Array("frat.gif","Fraternities and Sororities");
	ocs_legendRow[10] = new Array("noniu.gif","Non-IU Buildings");
	ocs_legendRow[11] = new Array("iupark.gif","IU Parking");
	ocs_legendRow[12] = new Array("lease.gif","IU Leased Parking");
	ocs_legendRow[13] = new Array("nopark.gif","No Parking Zone");
	ocs_legendRow[14] = new Array("street.gif","Street/Sidewalk");
	ocs_legendRow[15] = new Array("water.gif","Water");
	ocs_legendRow[16] = new Array("rec.gif","Recreational");

	ocs_legendContent    = "<table width='100%' cellpadding=2 cellspacing=0 border=0><tr><td colspan=2 style='font-weight:bold;padding-bottom:10px;padding-left:10px;'>CAMPUS MAP LEGEND</td></tr>";
	for(r=0;r<ocs_legendRow.length;r++)
	{ ocs_legendContent += "<tr><td style='padding-left:10px;'><img src='design/"+ocs_legendRow[r][0]+"' alt='"+ocs_legendRow[r][1]+"' border=0></td><td style='font-size:12px'>"+ocs_legendRow[r][1]+"</td></tr>"; }
	ocs_legendContent   += "</table>";
	
	// -- This allows one to place the dashboard popup by default wherever they want using Top and Left styles
	ocs_dashboardTop  = 60;
	ocs_dashboardLeft = 600; // this is negative positioning from the right.
	
// -- This allows one to place the map popup by default wherever they want using Top and Left styles
	ocs_ovMapOffsetTop  = 560;
	ocs_ovMapOffsetLeft = 50;

// -- This allows one to place the search popup by wherever they want using Top and Left styles and the 
//    width/height.
// -- NOTE:: The TOP uses negative math, so the larger the number, the closer to the top it gets.
	ocs_searchOffsetTop = 704;
	ocs_searchOffsetLeft = 250;

// -- This allows one to place the "locations" popup by default wherever they want using Top and Left styles and 
//    the width/height
	ocs_locationPopupHeight = 470;
	ocs_locationPopupWidth  = 225;
	ocs_locationPopupTop    = 140;
	ocs_locationPopupLeft   = 50;	

/*
---------------------------------------------------------------------
the following Options Not should Changed without further knowledge
---------------------------------------------------------------------
*/

g_baseMapExt = new Array(1024,768);

// 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] = 2;
g_zoomFactors[2] = 3.99989;
g_zoomFactors[3] = 8.00101;
g_zoomFactors[4] = 15.99713;
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, 187);
g_ovMapImgSrc = "maptileimages/ovmap.png";

g_dCLength = 530;

g_legendImgSrc = "maptileimages/legend.png";
g_legendExt = new Array(223,374);


g_logoSize = new Array(53,61);
g_logoPath = "design/blockiu2.gif";

g_listsDir = "lists/";
g_lists = new Array();
g_lists[0] = "CAMPUS LOCATIONS__IU BUILDING NAME";
//g_lists[0] = "&#67;&#65;&#77;&#80;&#85;&#83;&#32;&#76;&#79;&#67;&#65;&#84;&#73;&#79;&#78;&#83;__&#73;&#85;&#32;&#66;&#85;&#73;&#76;&#68;&#73;&#78;&#71;&#32;&#78;&#65;&#77;&#69;";

g_rwUL = new Array(3102147.8440063,1440020.65721604);
g_rwLR = new Array(3125411.22451714,1422573.12183291);
g_coordSys = "NAD_1983_StatePlane_Indiana_West_FIPS_1302_Feet";
g_coordUnits = "ft";

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();
}

