<!-- Hide from old browsers
RootDir = "/RemoteSensing"
if (navigator.appVersion.indexOf("2.") != -1){
        check = false;
        }
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
        check = false;
        }
else {
        check = true;
        }

if (check == true){
        image1 = new Image();
        image1.src = RootDir + "/Graphics/about_1.gif";
        image1on = new Image();
        image1on.src = RootDir + "/Graphics/about_2.gif";
        image1stay = new Image();
        image1stay.src = RootDir + "/Graphics/about_1.gif";
        
        image2 = new Image();
        image2.src = RootDir + "/Graphics/join_1.gif";
        image2on = new Image();
        image2on.src = RootDir + "/Graphics/join_2.gif";
        image2stay = new Image();
        image2stay.src = RootDir + "/Graphics/join_1.gif";

        image3 = new Image();
        image3.src = RootDir + "/Graphics/services_1.gif";
        image3on = new Image();
        image3on.src = RootDir + "/Graphics/services_2.gif";
        image3stay = new Image();
        image3stay.src = RootDir + "/Graphics/services_1.gif";

        image4 = new Image();
        image4.src = RootDir + "/Graphics/member_1.gif";
        image4on = new Image();
        image4on.src = RootDir + "/Graphics/member_2.gif";
        image4stay = new Image();
        image4stay.src = RootDir + "/Graphics/member_1.gif";
        
        image5 = new Image();
        image5.src = RootDir + "/Graphics/events_1.gif";
        image5on = new Image();
        image5on.src = RootDir + "/Graphics/events_2.gif";
        image5stay = new Image();
        image5stay.src = RootDir + "/Graphics/events_1.gif";
        
        image6 = new Image();
        image6.src = RootDir + "/Graphics/business_1.gif";
        image6on = new Image();
        image6on.src = RootDir + "/Graphics/business_2.gif";
        image6stay = new Image();
        image6stay.src = RootDir + "/Graphics/business_1.gif";
        
        image7 = new Image();
        image7.src = RootDir + "/Graphics/yellowknife_1.gif";
        image7on = new Image();
        image7on.src = RootDir + "/Graphics/yellowknife_2.gif";
        image7stay = new Image();
        image7stay.src = RootDir + "/Graphics/yellowknife_1.gif";
        
        image8 = new Image();
        image8.src = RootDir + "/Graphics/home_1.gif";
        image8on = new Image();
        image8on.src = RootDir + "/Graphics/home_2.gif";
        image8stay = new Image();
        image8stay.src = RootDir + "/Graphics/home_1.gif";
        
        image9 = new Image();
        image9.src = RootDir + "/Graphics/trade_1.gif";
        image9on = new Image();
        image9on.src = RootDir + "/Graphics/trade_2.gif";
        image9stay = new Image();
        image9stay.src = RootDir + "/Graphics/trade_1.gif";
        
        image10 = new Image();
        image10.src = RootDir + "/Graphics/login_1.gif";
        image10on = new Image();
        image10on.src = RootDir + "/Graphics/login_2.gif";
        image10stay = new Image();
        image10stay.src = RootDir + "/Graphics/login_1.gif";
        
        image11 = new Image();
        image11.src = RootDir + "/Graphics/news_1.gif";
        image11on = new Image();
        image11on.src = RootDir + "/Graphics/news_2.gif";
        image11stay = new Image();
        image11stay.src = RootDir + "/Graphics/news_1.gif";

}
imageStay = ""

function imageon(name){
        if (imageStay != name){
                document[name].src = eval(name + "on.src");
        }
}
function imageoff(name){
        if (imageStay != name){
                document[name].src = eval(name + ".src");
        }
}

function on(name){
        if (check == true){
        imageon(name);
        }
}
function off(name){
        if (check == true){
        imageoff(name);
        }
}

function stay(name){        if (check == true){
        document[name].src = eval(name + "stay.src");
        if (imageStay != name){
                if (imageStay != ""){
                        document[imageStay].src = eval(imageStay + ".src");
                }
        }
        imageStay = name
        }
}


function PopupWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function checkForCharacters(inputString, checkString, startingIndex)
{
  if (!startingIndex) startingIndex = 0;
  return inputString.indexOf(checkString);
}

// -->

