
function requestOpen(TypeName,Body) {
var wind = window.open('/request/'+TypeName+'_form.asp?Body='+Body,TypeName+'_form','width=740,height=600,left=10,top=50,scrollbars=yes');
wind.focus();
}
 
var win = "closed";
function PopWindow(fil)
{ 
	var src = "/showimage.asp?path=" + fil;
	if(win == "closed")
	win = window.open(src,'Map','width=700,height=500,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes'); 
else{
	win.close();   
	win = window.open(src,'Map','width=700,height=500,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=yes'); 
}
return;
}

function textOpen(page, session) {
page = page;
var wind = window.open(page,'wizard'+session,'width=400,height=300,scrollbars=no,top=50,left=60,status=no');
wind.focus();
}

function wizardOpen(page, session) {
page = page;
var wind = window.open(page,'wizard'+session,'width=700,height=500,scrollbars=yes,top=50,left=60,status=yes');
wind.focus();
}

function contactOpen(mapName) {
var wind = window.open('/contact_us_form.asp'+'?mapName='+mapName,'contact_us_form','width=500,height=600,left=10,top=50,scrollbars=yes');
wind.focus();
}

function termsOpen(needAgree) {
var wind = window.open('/termsandconditions.asp?needAgree='+needAgree,'termsandconditions','width=400,height=600,left=10,top=50,scrollbars=yes');
wind.focus();
}

function shoppingCartDetails(TableProduct) {
var wind = window.open('/shopping_cart_details.asp'+'?TableProduct='+TableProduct,'shoppingCartDetails','width=780,height=460,left=50,top=150,scrollbars=yes');
wind.focus();
}

function showImage(path, imageName, imageText) {
imageName = imageName.replace('#','');
imageText = imageText.replace('#','');
var wind = window.open('/showimage.asp'+'?path='+path+'&imageName='+imageName+'&imageText='+imageText,'showImage','width=680,height=600,left=10,top=50,scrollbars=yes');
wind.focus();
}


function hlMMenu(mpC) {
var mp = document.getElementById('MM'+mpC);
if (mp.style.backgroundColor.toUpperCase() == '#7EA3B6') {
	mp.style.backgroundColor = '#FFDEBB';
	}
else {
	mp.style.backgroundColor = '#7EA3B6';
}
}


function hlCMenu(mpC) {
var mp = document.getElementById('cm'+mpC);
if (mp.style.backgroundColor.toUpperCase() == '#FAFAFA') {
	mp.style.backgroundColor = '#FFFFFF';
	}
else {
	mp.style.backgroundColor = '#FAFAFA';
}
}


function MenuListHide(e) {
 document.getElementById('MListEVCSTORE').style.visibility = 'hidden';
 document.getElementById('MListABOUTUS').style.visibility = 'hidden';
 document.getElementById('MListSERVICES').style.visibility = 'hidden';
 document.getElementById('MListPRODUCTS').style.visibility = 'hidden';
 document.getElementById('MListHELP').style.visibility = 'hidden';
}


function MenuListShowEVCSTORE(e) {
document.getElementById("MListEVCSTORE").style.visibility = 'visible';
}

function MenuListShowABOUTUS(e) {
document.getElementById("MListABOUTUS").style.visibility = 'visible';
}

function MenuListShowSERVICES(e) {
document.getElementById("MListSERVICES").style.visibility = 'visible';
}

function MenuListShowPRODUCTS(e) {
document.getElementById("MListPRODUCTS").style.visibility = 'visible';
}

function MenuListShowHELP(e) {
document.getElementById("MListHELP").style.visibility = 'visible';
}





function MenuListShowAll(Level1) {
 document.getElementById("MListEVCSTORE").style.visibility = 'hidden';
 document.getElementById("MListABOUTUS").style.visibility = 'hidden';
 document.getElementById("MListSERVICES").style.visibility = 'hidden';
 document.getElementById("MListPRODUCTS").style.visibility = 'hidden';
 document.getElementById("MListHELP").style.visibility = 'hidden';
 if (document.getElementById("MList"+Level1)) {
 if (document.getElementById("MList"+Level1).style.visibility = 'hidden') {
  document.getElementById("MList"+Level1).style.visibility = 'visible';
 }
 }
}


window.onload = function MenuListMade() {

var captionArray = new Array(7);
var linkArray = new Array(7);

captionArray[0] = "Topographic Maps";
linkArray[0] = "/topographic-maps/";

captionArray[1] = "DEMs";
linkArray[1] = "/dems/";

captionArray[2] = "Vector Data";
linkArray[2] = "/vector-data/";

captionArray[3] = "Imagery";
linkArray[3] = "/imagery/";

captionArray[4] = "Atlases & Books";
linkArray[4] = "/atlases/";

captionArray[5] = "Geologic Maps";
linkArray[5] = "/geologic-maps/";

captionArray[6] = "Nautical Charts";
linkArray[6] = "/nautical-charts/";


popUpTop = document.getElementById('MTD').offsetTop + document.getElementById('MEVCSTORE').offsetTop + 139;
popUpLeft = document.getElementById('MTD').offsetLeft + document.getElementById('MEVCSTORE').offsetLeft - 1;

newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListEVCSTORE');
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowEVCSTORE;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTableEVCSTORE');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "137");

newTbody = document.createElement('tbody'); 

var x=0; 

for (x=0; x<captionArray.length; x++) {

newTR = document.createElement("tr");
newTD = document.createElement("td");
newTD.style.backgroundColor = "#F1F5F7";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.style.color = '#000';
newTXT = document.createTextNode(captionArray[x]);
newA.appendChild(newTXT);
newTD.appendChild(newA);
newTR.appendChild(newTD);
newTbody.appendChild(newTR);
}

newT.appendChild(newTbody);
newDiv.appendChild(newT);

document.body.appendChild(newDiv);


var captionArray = new Array(6);
var linkArray = new Array(6);

captionArray[0] = "Company";
linkArray[0] = "/about-us/company.asp";

captionArray[1] = "Portfolio";
linkArray[1] = "/profile/index.asp";

captionArray[2] = "Newsroom";
linkArray[2] = "/about-us/corporate.asp";

captionArray[3] = "Partners";
linkArray[3] = "/about-us/partners.asp";

captionArray[4] = "Careers";
linkArray[4] = "/about-us/careers.asp";

captionArray[5] = "Applications";
linkArray[5] = "/products/applications/defense/intelligence.asp";

popUpTop = document.getElementById('MTD').offsetTop + document.getElementById('MABOUTUS').offsetTop + 139;
popUpLeft = document.getElementById('MTD').offsetLeft + document.getElementById('MABOUTUS').offsetLeft - 1;

newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListABOUTUS');
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowABOUTUS;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTableABOUTUS');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "137");

newTbody = document.createElement('tbody'); 

var x=0; 

for (x=0; x<captionArray.length; x++) {

newTR = document.createElement("tr");
newTD = document.createElement("td");
newTD.style.backgroundColor = "#F1F5F7";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.style.color = '#000';
newTXT = document.createTextNode(captionArray[x]);
newA.appendChild(newTXT);
newTD.appendChild(newA);
newTR.appendChild(newTD);
newTbody.appendChild(newTR);
}

newT.appendChild(newTbody);
newDiv.appendChild(newT);

document.body.appendChild(newDiv);


var captionArray = new Array(5);
var linkArray = new Array(5);

captionArray[0] = "Mapping";
linkArray[0] = "/services/topographic/overview.asp";

captionArray[1] = "Global Outsourcing";
linkArray[1] = "/services/outsourcing/overview.asp";

captionArray[2] = "Custom Acquisition";
linkArray[2] = "/services/custom/acquisition/overview.asp";

captionArray[3] = "Geographic Names";
linkArray[3] = "/services/geographic/names/extraction.asp";

captionArray[4] = "Aerial Photo Preservation";
linkArray[4] = "/services/aerial/photo/preservation/scanning.asp";


popUpTop = document.getElementById('MTD').offsetTop + document.getElementById('MSERVICES').offsetTop + 139;
popUpLeft = document.getElementById('MTD').offsetLeft + document.getElementById('MSERVICES').offsetLeft - 1;

newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListSERVICES');
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowSERVICES;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTableSERVICES');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "137");

newTbody = document.createElement('tbody'); 

var x=0; 

for (x=0; x<captionArray.length; x++) {

newTR = document.createElement("tr");
newTD = document.createElement("td");
newTD.style.backgroundColor = "#F1F5F7";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.style.color = '#000';
newTXT = document.createTextNode(captionArray[x]);
newA.appendChild(newTXT);
newTD.appendChild(newA);
newTR.appendChild(newTD);
newTbody.appendChild(newTR);
}

newT.appendChild(newTbody);
newDiv.appendChild(newT);

document.body.appendChild(newDiv);


var captionArray = new Array(9);
var linkArray = new Array(9);

captionArray[0] = "Topographic Maps Overview";
linkArray[0] = "/products/topographic/overview.asp";

captionArray[1] = "DEM Overview";
linkArray[1] = "/products/dem/overview.asp";

captionArray[2] = "GIS / Vector Overview";
linkArray[2] = "/products/gis/overview.asp";

captionArray[3] = "Imagery Overview";
linkArray[3] = "/products/imagery/overview.asp";

captionArray[4] = "Atlases / Books Overview";
linkArray[4] = "/products/books/atlas/overview.asp";

captionArray[5] = "Geological / Thematic Overview";
linkArray[5] = "/products/geological/overview.asp";

captionArray[6] = "Hydrographic / Nautical Overview";
linkArray[6] = "/products/nautical/overview.asp";

captionArray[7] = "GeoData Management Overview";
linkArray[7] = "/products/metalog.asp";

captionArray[8] = "GeoData E-Commerce Overview";
linkArray[8] = "/products/metalogstore.asp";

popUpTop = document.getElementById('MTD').offsetTop + document.getElementById('MPRODUCTS').offsetTop + 139;
popUpLeft = document.getElementById('MTD').offsetLeft + document.getElementById('MPRODUCTS').offsetLeft - 70;

newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListPRODUCTS');
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowPRODUCTS;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTablePRODUCTS');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "206");

newTbody = document.createElement('tbody'); 

var x=0; 

for (x=0; x<captionArray.length; x++) {

newTR = document.createElement("tr");
newTD = document.createElement("td");
newTD.style.backgroundColor = "#F1F5F7";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.style.color = '#000';
newTXT = document.createTextNode(captionArray[x]);
newA.appendChild(newTXT);
newTD.appendChild(newA);
newTR.appendChild(newTD);
newTbody.appendChild(newTR);
}

newT.appendChild(newTbody);
newDiv.appendChild(newT);

document.body.appendChild(newDiv);


var captionArray = new Array(5);
var linkArray = new Array(5);

captionArray[0] = "Contact Us";
linkArray[0] = "/help/contact us.asp";

captionArray[1] = "Shipping";
linkArray[1] = "/help/maps/shipping.asp";

captionArray[2] = "How To Find Maps";
linkArray[2] = "/help/maps/find.asp";

captionArray[3] = "Legal Information";
linkArray[3] = "/help/legal/information/privacy policy.asp";

captionArray[4] = "Resources";
linkArray[4] = "/help/resources/overview.asp";


popUpTop = document.getElementById('MTD').offsetTop + document.getElementById('MHELP').offsetTop + 139;
popUpLeft = document.getElementById('MTD').offsetLeft + document.getElementById('MHELP').offsetLeft - 1;

newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListHELP');
newDiv.style.position = 'absolute';
newDiv.style.left = popUpLeft+'px';
newDiv.style.top = popUpTop+'px';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowHELP;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTableHELP');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "137");

newTbody = document.createElement('tbody'); 

var x=0; 

for (x=0; x<captionArray.length; x++) {

newTR = document.createElement("tr");
newTD = document.createElement("td");
newTD.style.backgroundColor = "#F1F5F7";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.style.color = '#000';
newTXT = document.createTextNode(captionArray[x]);
newA.appendChild(newTXT);
newTD.appendChild(newA);
newTR.appendChild(newTD);
newTbody.appendChild(newTR);
}

newT.appendChild(newTbody);
newDiv.appendChild(newT);

document.body.appendChild(newDiv);

}


