imagepath = 'http://www.globalmissionpartners.org/images/';
var goodBrowser = 0;
// let's make sure you can use this script!!
if(navigator.appName == "Netscape")
{
        if(parseInt(navigator.appVersion) >=3)
                {
                 goodBrowser=1;
                }
}
if(navigator.appName == "Microsoft Internet Explorer")
{       
        if(parseInt(navigator.appVersion) >=4)
                {
                goodBrowser=1;
                }
        }
if(goodBrowser == 1)
{
// preload onmouseover images
homeImage = new Image();
homeImage.src = imagepath + "home_a.gif";
missionImage = new Image();
missionImage.src = imagepath + "mission_a.gif";
whoImage = new Image();
whoImage.src = imagepath + "who_a.gif";
whyImage = new Image();
whyImage.src = imagepath + "why_a.gif";
whatImage = new Image();
whatImage.src = imagepath + "what_a.gif";
involvedImage = new Image();
involvedImage.src = imagepath + "involved_a.gif";
opportunitiesImage = new Image();
opportunitiesImage.src = imagepath + "opportunities_a.gif";
futureImage = new Image();
futureImage.src = imagepath + "future_a.gif";
upcomingImage = new Image();
upcomingImage.src = imagepath + "upcoming_a.gif";
contactImage = new Image();
contactImage.src = imagepath + "contact_a.gif";
linksImage = new Image();
linksImage.src = imagepath + "links_a.gif";
pastImage = new Image();
pastImage.src = imagepath + "past_a.gif";
// preload onmouseout images
homeImage1 = new Image();
homeImage1.src = imagepath + "home.gif";
missionImage1 = new Image();
missionImage1.src = imagepath + "mission.gif";
whoImage1 = new Image();
whoImage1.src = imagepath + "who.gif";
whyImage1 = new Image();
whyImage1.src = imagepath + "why.gif";
whatImage1 = new Image();
whatImage1.src = imagepath + "what.gif";
involvedImage1 = new Image();
involvedImage1.src = imagepath + "involved.gif";
opportunitiesImage1 = new Image();
opportunitiesImage1.src = imagepath + "opportunities.gif";
futureImage1 = new Image();
futureImage1.src = imagepath + "future.gif";
upcomingImage1 = new Image();
upcomingImage1.src = imagepath + "upcoming.gif";
contactImage1 = new Image();
contactImage1.src = imagepath + "contact.gif";
linksImage1 = new Image();
linksImage1.src = imagepath + "links.gif";
pastImage1 = new Image();
pastImage1.src = imagepath + "past.gif";
}
// this is the rollover
function over_img(imagename, action) {
   if(goodBrowser==1) 
   {
           if(action=='over') {document[imagename].src=eval(imagename + 'Image.src')}
           if(action=='out') {document[imagename].src=eval(imagename + 'Image1.src')}
	}
}
