/*
var server = "http://webgis4.int.ngi.be";//parent.document.location.host;
var service = "expo";

var url = server + "/servlet/com.esri.esrimap.Esrimap?ServiceName=" + service + "&Form=False&ClientVersion=4.0";*/
var url = "http://www.ngi.be/forward_axl/expo_axl.jsp";
var resourceURL;
var lang;
if (lang=="NL") { resourceURL = "http://www.ngi.be/expo/js/resource_nl.js" }
if (lang=="FR") { resourceURL = "http://www.ngi.be/expo/js/resource_fr.js" }
var top;
var left;
var width = 600;
var height = 400;
var border = 1;
var DivId1 = 'mapArea1';
var DivId2 = 'mapArea2';
	
var	hspc ;
var	vspc ;

var mapWidth  =  width  - (border*2);
var mapHeight =  height - (border*2);
var iHeight =	mapHeight;
var iWidth	=	mapWidth;

var i2Width  = 69;  //parseInt(document.ovImage.width);
var i2Height = 46; //parseInt(document.ovImage.height);
var ovBorderWidth =	0;
var ovExtentBoxSize = 2;

//ovmap div's location and size
var OVlayerLeft;// = 700;
var OVlayerTop = 273;//  = 10;

//initial map extent
var startLeft =  	 20500.0;//0.0
var startRight =  	 300080.0;//307080.0;
var startTop =    	 247700.0;//267700.0;
var startBottom =    10000.0;//15000.0;

//pve - ovmap extent
var fullOVLeft = startLeft;// = eLeft;
var fullOVRight = startRight;// = eRight;
var fullOVTop = startTop;// = eTop;
var fullOVBottom = startBottom;// = eBottom;
fullOVWidth = Math.abs(fullOVRight - fullOVLeft);
fullOVHeight = Math.abs(fullOVTop - fullOVBottom);
var fullWidth, fullHeight;

var enforceFullExtent=true;
//maximum map extent
var extentLeft = 0.0;//20500.0; 
var extentRight = 307080.0;//300080.0;
var extentTop =  267700.0;//247700.0
var extentBottom = 15000.0;//;10000.0

var limitLeft = 20500.0; //0.0
var limitRight = 300080.0;//307080.0;
var limitTop = 247700.0; //267700.0;
var limitBottom = 10000.0;//15000.0;

var zoomBoxColor= "#fff";
var zoomFactor = 2

var ScaleBarPrecision = 2;
var numDecimals = ScaleBarPrecision;

//identify result div's location
var idLeft=0;
var idTop=0;

var ScaleBarPrecision = 2;
var numDecimals = ScaleBarPrecision;

//identify result div's location
var idLeft=0;
var idTop=0;

var drawCopyright = true;
var CopyrightFont = "Arial";
var CopyrightStyle = "normal";
var CopyrightSize = "10";
var CopyrightCoords = "3 2";
var CopyrightColor = "102,102,102";
var CopyrightBackground = "false";
var CopyrightBGColor = "255,255,255";
var CopyrightGlow = "False";
var CopyrightGlowColor = "255,255,255";
var CopyrightShadow = "False";
var CopyrightShadowColor = "32,32,32";
//r CopyrightText = "© NGI-IGN 2005. Reproductions or adaptations in any form are forbidden.";
var CopyrightText = "NGI-IGN &#169; 2006";

// place bar behind Copyright text and scalebars
var drawBottomBar = true;
//var bottomBarColor = "187,206,212";
var bottomBarColor = "255,255,255";
var bottomBarOutline = "255,255,255";
var bottomBarHeight = "15";
//pve nieuwe variabele
var bottombartransparency = "0.7";

var MapUnits = "Meters";
//var ScaleBarUnits = "Kilometers";	
	// Scale Bar
var drawScaleBar = true;
	// MapUnits=DEGREES,FEET,METERS
	// can MapUnits be changed by user?
var setMapUnits=false;
var ScaleBarUnits="KILOMETERS";
var ScaleBarCoords = "400 5";
var ScaleBarBackground = "true";
var ScaleBarBackColor = "102,102,102";
var ScaleBarFontColor = "102,102,102";
var ScaleBarColor = "255,255,255";
var ScaleBarFont = "";
var ScaleBarStyle = "Regular";
var ScaleBarRound = "10";
var ScaleBarSize = "10";
var ScaleBarWidth = "5";
var ScaleBarPrecision = 2;
var numDecimals = ScaleBarPrecision;

function getHTTPObject() {
    var xmlhttp;
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    // branch for IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
	return xmlhttp;
}
var http ;

var isNav = (window.navigator.appName.toLowerCase().indexOf("netscape")>=0);
var isIE = (window.navigator.appName.toLowerCase().indexOf("microsoft")>=0);

//var url = "http://www.geographynetwork.com/servlet/com.esri.esrimap.Esrimap?ServiceName=ESRI_World&Form=False&ClientVersion=4.0";

var isWorking = false;
var minx, miny, maxx, maxy;
// setup test for Nav 4.0
var isNav = (navigator.appName.indexOf("Netscape")>=0);
var isNav4 = false;
var isIE4 = false;
var is5up = false;
//alert(navigator.appVersion);
if (isNav) {
	
	if (parseFloat(navigator.appVersion)<5) {
		isNav4=true;
		//alert("Netscape 4.x or older");
	} else {
		is5up = true;
	}
} else {
	isIE4=true;
	isIE=true;
	if ((navigator.appVersion.indexOf("MSIE 5")>0) || (navigator.appVersion.indexOf("MSIE 6")>0)) {
		isIE4 = false;
		is5up = true;
		//alert("IE5");
	}
}	