﻿curMapImage = 5

function swapmap(which) {
  if (which != curMapImage ) {
    //unhilite the previous button
    //alert(curMapImage)
    if (curMapImage == 1) {document.btn_1.src = "images/location/map/off.gif"}
    if (curMapImage == 2) {document.btn_2.src = "images/location/map/off.gif"}
    if (curMapImage == 3) {document.btn_3.src = "images/location/map/off.gif"}
    if (curMapImage == 4) {document.btn_4.src = "images/location/map/off.gif"}
    if (curMapImage == 5) {document.btn_5.src = "images/location/map/off.gif"}

  curMapImage = which
  myMapImage = "images/location/map/" + which + ".jpg"
  document.mapImg.src = myMapImage

    if (which == 1) {document.btn_1.src = "images/location/map/on.gif"}
    if (which == 2) {document.btn_2.src = "images/location/map/on.gif"}
    if (which == 3) {document.btn_3.src = "images/location/map/on.gif"}
    if (which == 4) {document.btn_4.src = "images/location/map/on.gif"}
    if (which == 5) {document.btn_5.src = "images/location/map/on.gif"}

  }
   //alert(curMapImage)
}


function TIMM_swapImgRestore(which) { 
  myRollOffImage = "images/location/map/off.gif"
  if (which != curMapImage ) {
    if (which == 1) {document.btn_1.src = myRollOffImage}
    if (which == 2) {document.btn_2.src = myRollOffImage}
    if (which == 3) {document.btn_3.src = myRollOffImage}
    if (which == 4) {document.btn_4.src = myRollOffImage}
    if (which == 5) {document.btn_5.src = myRollOffImage}
  }
}
  
function TIMM_swapImage(which) {
 myRollOnImage = "images/location/map/on.gif"
   if (which != curMapImage ) {
    if (which == "btn_1") {document.btn_1.src = myRollOnImage}
    if (which == "btn_2") {document.btn_2.src = myRollOnImage}
    if (which == "btn_3") {document.btn_3.src = myRollOnImage}
    if (which == "btn_4") {document.btn_4.src = myRollOnImage}
    if (which == "btn_5") {document.btn_5.src = myRollOnImage}
   }

}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
