browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);if (browserName == "Netscape" && browserVer>= 3) version = "n3";else version = "n2";if (browserVer >= 4) version = "n3";if (version == "n3") {
pic0on = new Image(); pic0off = new Image();
pic0on.src = "images/homeon.gif"; pic0off.src = "images/homeoff.gif";
pic1on = new Image(); pic1off = new Image();
pic1on.src = "images/dentalon.gif"; pic1off.src = "images/dentaloff.gif";
pic2on = new Image(); pic2off = new Image();
pic2on.src = "images/visionon.gif"; pic2off.src = "images/visionoff.gif";
pic3on = new Image(); pic3off = new Image();
pic3on.src = "images/leasingon.gif"; pic3off.src = "images/leasingoff.gif";
pic4on = new Image(); pic4off = new Image();
pic4on.src = "images/credon.gif"; pic4off.src = "images/credoff.gif";
pic5on = new Image(); pic5off = new Image();
pic5on.src = "images/ssaveon.gif"; pic5off.src = "images/ssaveoff.gif";
pic6on = new Image(); pic6off = new Image();
pic6on.src = "images/qon.gif"; pic6off.src = "images/qoff.gif";
pic7on = new Image(); pic7off = new Image();
pic7on.src = "images/locateon.gif"; pic7off.src = "images/locateoff.gif";
pic8on = new Image(); pic8off = new Image();
pic8on.src = "images/joinon.gif"; pic8off.src = "images/joinoff.gif";
pic9on = new Image(); pic9off = new Image();
pic9on.src = "images/abouton.gif"; pic9off.src = "images/aboutoff.gif";
pic10on = new Image(); pic10off = new Image();
pic10on.src = "images/contacton.gif"; pic10off.src = "images/contactoff.gif";
};function img_act(imgName) {if (version == "n3") {imgOn = eval(imgName + "on.src");document [imgName].src = imgOn;}};function img_inact(imgName) {if (version == "n3") {imgOff = eval(imgName + "off.src");document [imgName].src = imgOff;}}

var theImages = new Array()
theImages[0] = 'images/family0.jpg'
theImages[1] = 'images/family2.jpg'
theImages[2] = 'images/family3.jpg'
theImages[3] = 'images/family4.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<p align="bottom"><img src="'+theImages[whichImage]+'" width="182" height="122" border="0" alt="DentAfford - Quality Dental Plans""></p>');
}
