imagepath = 'http://www.sherwoodsfirearms.com/images/nav/';
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
coltImage = new Image();
coltImage.src = imagepath + "gallery/colt-on.jpg";
antiquehImage = new Image();
antiquehImage.src = imagepath + "gallery/antique-handguns-on.jpg";
handgunsImage = new Image();
handgunsImage.src = imagepath + "gallery/handguns-general-on.jpg";
miscellaneousImage = new Image();
miscellaneousImage.src = imagepath + "gallery/miscellaneous-on.jpg";
winchesterImage = new Image();
winchesterImage.src = imagepath + "gallery/winchester-on.jpg";
antiquelImage = new Image();
antiquelImage.src = imagepath + "gallery/antique-long-guns-on.jpg";
riflesImage = new Image();
riflesImage.src = imagepath + "gallery/rifles-general-on.jpg";
shotgunsImage = new Image();
shotgunsImage.src = imagepath + "gallery/shotguns-general-on.jpg";
// preload onmouseout images
coltImage1 = new Image();
coltImage1.src = imagepath + "gallery/colt-off.jpg";
antiquehImage1 = new Image();
antiquehImage1.src = imagepath + "gallery/antique-handguns-off.jpg";
handgunsImage1 = new Image();
handgunsImage1.src = imagepath + "gallery/handguns-general-off.jpg";
miscellaneousImage1 = new Image();
miscellaneousImage1.src = imagepath + "gallery/miscellaneous-off.jpg";
winchesterImage1 = new Image();
winchesterImage1.src = imagepath + "gallery/winchester-off.jpg";
antiquelImage1 = new Image();
antiquelImage1.src = imagepath + "gallery/antique-long-guns-off.jpg";
riflesImage1 = new Image();
riflesImage1.src = imagepath + "gallery/rifles-general-off.jpg";
shotgunsImage1 = new Image();
shotgunsImage1.src = imagepath + "gallery/shotguns-general-off.jpg";
}
// 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')}
	}
}
