<!--

var NN4;                    // Check for Netscape Navigator 4.x (NN4 requires 'special' handling)
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("msie") > -1 || agent.indexOf("netscape6") > -1) NN4 = false; // check IE and NN6 first
else if (agent.indexOf("mozilla") > -1) NN4 = true;   // check for NN4
else NN4 = false;           // default to not NN4, not IE, and not NN6

if (NN4) {                  // save window size in case redraw needed (necessary because of NN4 bug)
  if (typeof document.bpf == "undefined")
    document.bpf = new Object;
  document.bpf.winSize = new Object;
  document.bpf.winSize.winWidth = window.innerWidth;
  document.bpf.winSize.winHeight = window.innerHeight;
  window.onresize = NNbug;  // function to be invoked on window resize
}

function NNbug() {          // redraw the screen on a window resize (necessary because of NN4 bug)
  if (document.bpf.winSize.winWidth != window.innerWidth ||
      document.bpf.winSize.winHeight != window.innerHeight)
    document.location = document.location;
}

function imgOn(imgName) {   // roll-over button 'on'
  if (NN4 && document.layers["background"].document.images)
    document.layers["background"].document[imgName].src = eval(imgName + "on.src");
  else if (document.images)
    document[imgName].src = eval(imgName + "on.src");
}

function imgOff(imgName) {  // roll-over button 'off'
  if (NN4 && document.layers["background"].document.images)
    document.layers["background"].document[imgName].src = eval(imgName + "off.src");
  else if (document.images)
    document[imgName].src = eval(imgName + "off.src");
}

greymanOn = new Image();		// Logo mouse-over and mouse-out images
greymanOn.src = "images/banners/greyman_on.gif";
greymanOff = new Image();
greymanOff.src = "images/banners/greyman.gif";

img1on = new Image();		  	// Navbar mouse-over images
img1on.src = "images/navigation/home_on.gif"; 
img2on = new Image();
img2on.src = "images/navigation/why_on.gif";  
img3on = new Image();
img3on.src = "images/navigation/about_on.gif";
img4on = new Image();
img4on.src = "images/navigation/services_on.gif";
img5on = new Image();
img5on.src = "images/navigation/whybpf_on.gif";
img6on = new Image();
img6on.src = "images/navigation/testimonials_on.gif";
img7on = new Image();
img7on.src = "images/navigation/contact_on.gif";

img1off = new Image();		  // Navbar mouse-out images
img1off.src = "images/navigation/home_off.gif"; 
img2off = new Image();          
img2off.src = "images/navigation/why_off.gif";
img3off = new Image();
img3off.src = "images/navigation/about_off.gif";
img4off = new Image();
img4off.src = "images/navigation/services_off.gif";
img5off = new Image();
img5off.src = "images/navigation/whybpf_off.gif";
img6off = new Image();
img6off.src = "images/navigation/testimonials_off.gif";
img7off = new Image();
img7off.src = "images/navigation/contact_off.gif";

// -->

