arrayMain=new Array(
  '<a class="MenuSublink" href="MainSignmeup.aspx">Online Subscription<\/a><br><a class="MenuSublink" href="MainConsulting.aspx">Consulting<\/a><br><a class="MenuSublink" href="MainConsultingClients.aspx">Consulting Client List<\/a><br><a class="MenuSublink" href="Trendreports.aspx">Custom Reports<\/a><br><a class="MenuSublink" href="MainAdvertising.aspx">Advertising<\/a><br><a class="MenuSublink" href="MainChanges.aspx">What\'s New<\/a>',
  '<a class="MenuSublink" href="MainMarketAreaMaps.aspx">Market Area Maps<\/a><br><a class="MenuSublink" href="Sample_StrategicExaminer.pdf">Sample Strategic Examiner<\/a><br><a class="MenuSublink" href="Sample_PushReports.pdf">Sample Insider Advantage Reports<\/a><br><a class="MenuSublink" href="SampleReports_PugetSound.pdf">Sample Reports - Puget Sound<\/a><br><a class="MenuSublink" href="SampleReports_Portland.pdf">Sample Reports - Portland<\/a><br><a class="MenuSublink" href="SampleReports_TreasureValley.pdf">Sample Reports - Treasure Valley<\/a>',
  '<a class="MenuSublink" href="MainCompanyInfo.aspx">About NHT<\/a><br><a class="MenuSublink" href="MainBios.aspx">Meet&nbsp;the&nbsp;Team<\/a><br><a class="MenuSublink" href="MainMission.aspx">Mission<\/a><br><a class="MenuSublink" href="MainAffiliates.aspx">Affiliations<\/a>');
arrayMap=new Array(
  '<b>Seattle</b><br><br>We\'ve been serving the Puget Sound area for the past 17 years.<br><br>We currently offer data and consulting services for King, Pierce, Snohomish, Thurston, Kitsap, and Skagit counties.<br><br>Call or Email <b>Doyle Beekley</b> for more information.<br><br>Phone: 425.953.4718<br>Email: <a class="SmallLink White" href="mailto:d.beekley@newhometrends.com">d.beekley@newhometrends.com</a>',
  '<b>Portland</b><br><br>We\'ve been serving the Portland Metro area for the past 7 years.<br><br>We currently offer data and consulting services for Multnomah, Washington, Clackamas and Clark&nbsp;(WA) counties.<br><br>Call or Email <b>Doyle Beekley</b> for more information.<br><br>Phone: 425.953.4718<br>Email: <a class="SmallLink White" href="mailto:d.beekley@newhometrends.com">d.beekley@newhometrends.com</a>',
  '<b>Salem</b><br><br>We currently offer data and consulting services for Marion and Polk counties.<br><br>Call or Email <b>Doyle Beekley</b> for more information.<br><br>Phone: 425.953.4718<br>Email: <a class="SmallLink White" href="mailto:d.beekley@newhometrends.com">d.beekley@newhometrends.com</a>',
  '<b>Spokane</b><br><br>We currently offer data and consulting services for Spokane and Kootenai (ID) counties.<br><br>Call or Email <b>Doyle Beekley</b> for more information.<br><br>Phone: 425.953.4718<br>Email: <a class="SmallLink White" href="mailto:d.beekley@newhometrends.com">d.beekley@newhometrends.com</a>',
  '<b>Treasure Valley</b><br><br>We currently offer data and consulting services for Ada and Canyon counties.<br><br>Call or Email <b>Doyle Beekley</b> for more information.<br><br>Phone: 425.953.4718<br>Email: <a class="SmallLink White" href="mailto:d.beekley@newhometrends.com">d.beekley@newhometrends.com</a>'
  );

overdivMain="0";overdivMap="0";xMouse=0;yMouse=0;//MSIE=document.all //prepare for IE kludge

if (self.innerWidth) {
  frameWidth = self.innerWidth;
}
else if (document.documentElement && document.documentElement.clientWidth) {
  frameWidth = document.documentElement.clientWidth;
}
else if (document.body) {
  frameWidth = document.body.clientWidth;
}

function popMainLayer(a){
  if (self.innerWidth) {
    frameWidth = self.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
    frameWidth = document.documentElement.clientWidth;
  }
  else if (document.body) {
    frameWidth = document.body.clientWidth;
  }
  offset = 0;
  if(!arrayMain[a]) {
    arrayMain[a]='<span class="divMain">This popup (#'+a+') needs description text!<\/span>';
  }
  desc="<table class='divMain' summary='*'>\n<tr class='divMain'><td class='divMain'>\n";
  desc+=arrayMain[a]+"<\/td><\/tr><\/table>";
  document.getElementById("divMain").innerHTML=desc;
  if (a == 0) {
    offset = 102;
  } else if (a == 1) {
    offset = 172;
  } else if (a == 2) {
    offset = 349;
  }
  document.getElementById("divMain").style.left=(frameWidth-735)/2+offset+'px';
  document.getElementById("divMain").style.top='143px';
}
function hideMainLayer() {
  if (overdivMain == "0") {document.getElementById("divMain").style.top="-500px";}
}

function popMapLayer(a) {
  if (self.innerWidth) {
	  frameWidth = self.innerWidth;
  }
  else if (document.documentElement && document.documentElement.clientWidth) {
	  frameWidth = document.documentElement.clientWidth;
  }
  else if (document.body) {
	  frameWidth = document.body.clientWidth;
  }

  if(!arrayMap[a]) {
    arrayMap[a]='<span class="divMap">This popup (#'+a+') needs description text!<\/span>';
  }
  desc="<table class='divMap'>\n<tr class='divMap'><td class='divMap'>\n";
  desc+=arrayMap[a]+"<\/td><\/tr><\/table>";
  document.getElementById("divMap").innerHTML=desc;
  document.getElementById("divMap").style.left=(frameWidth-735)/2+0+'px';
  document.getElementById("divMap").style.top='500px';
  document.getElementById("divMap").style.width='200px';
}


function hideMapLayer(){
  if (overdivMap == "0") {document.getElementById("divMap").style.top="-500px";}
}

