
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('MListNAB').style.visibility = 'hidden';
 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 MenuListShowPRODUCTS(e) {
document.getElementById("MListPRODUCTS").style.visibility = 'visible';
}

function MenuListShowABOUTUS(e) {
document.getElementById("MListABOUTUS").style.visibility = 'visible';
}

function MenuListShowSERVICES(e) {
document.getElementById("MListSERVICES").style.visibility = 'visible';
}

function MenuListShowNAB(e) {
document.getElementById("MListNAB").style.visibility = 'visible';
}

function MenuListShowEVCSTORE(e) {
document.getElementById("MListEVCSTORE").style.visibility = 'visible';
}

function MenuListShowHELP(e) {
document.getElementById("MListHELP").style.visibility = 'visible';
}



function MenuListShowAll(Level1) {

//alert(document.getElementById('PTD').offsetLeft + document.getElementById('MTD').offsetLeft);

 document.getElementById("MListNAB").style.visibility = 'hidden';
 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') {
  popUpTop = document.getElementById('PTD').offsetTop + document.getElementById('MTD').offsetTop + document.getElementById('M'+Level1).offsetTop + 38;
  popUpLeft = document.getElementById('PTD').offsetLeft + document.getElementById('MTD').offsetLeft + document.getElementById('M'+Level1).offsetLeft - 1;
  document.getElementById("MList"+Level1).style.left = popUpLeft+'px';
  document.getElementById("MList"+Level1).style.top = popUpTop+'px';
  document.getElementById("MList"+Level1).style.visibility = 'visible';
 }
 }

}


function MenuListMade() {




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";


newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListABOUTUS');
newDiv.style.position = 'absolute';
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", "157");

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 = "#F1F1F1";
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";


newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListSERVICES');
newDiv.style.position = 'absolute';
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", "157");

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 = "#F1F1F1";
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(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/";




newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListEVCSTORE');
newDiv.style.position = 'absolute';
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", "182");

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 = "#F1F1F1";
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(3);
var linkArray = new Array(3);

captionArray[0] = "Vol. 1, Iss. 1 - Zambia";
linkArray[0] = "/NAB/NABE0101.pdf";

captionArray[1] = "Vol. 1, Iss. 2 - Mozambique";
linkArray[1] = "/NAB/NABE0102.pdf";

captionArray[2] = "Vol. 1, Iss. 3 - Malawi";
linkArray[2] = "/NAB/NABE0103.pdf";

captionArray[3] = "Vol. 1, Iss. 4 - Fiji";
linkArray[3] = "/NAB/NABE0104.pdf";


newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListNAB');
newDiv.style.position = 'absolute';
newDiv.style.visibility = 'hidden';
newDiv.style.backgroundColor = '#FFFFFF';
newDiv.onmouseout = MenuListHide;
newDiv.onmouseover = MenuListShowNAB;

newT = document.createElement("table");
newT.setAttribute("id", 'MListTableNAB');
newT.setAttribute("cellPadding", "3");
newT.setAttribute("cellSpacing", "1");
newT.setAttribute("border", "0");
newT.setAttribute("width", "182");

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 = "#F1F1F1";
newA = document.createElement("a"); 
newA.setAttribute("href", linkArray[x]);
newA.setAttribute("target", "_blank");
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";
linkArray[7] = "/products/metalog.asp";

captionArray[8] = "GeoData E-Commerce";
linkArray[8] = "/products/metalogstore.asp";



newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListPRODUCTS');
newDiv.style.position = 'absolute';
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", "197");

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 = "#F1F1F1";
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";



newDiv = document.createElement("div");
newDiv.setAttribute("id", 'MListHELP');
newDiv.style.position = 'absolute';
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", "197");

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 = "#F1F1F1";
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);



}


function goSurvey() {
 var wind = window.open('http://www.surveymonkey.com/s.asp?u=547723850754','survey','width=800,height=600,left=120,top=120,scrollbars=yes,status=no');
 wind.focus();
}

function dBull() {
dURL = document.getElementById('Topic').value;
if (dURL.length != 0) {
 var wind = window.open(dURL,'survey');
 wind.focus();
 }
}

