/*
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
 CALL TO CORRECT DIRECTORY
*/

var URLtoCheck=self.location.href;

if (window.homepage){
	directCall=""	
	directCall2="site/"
	}

	else if (window.rates) {
	directCall="http://www.bankofmaysville.com/"
	directCall2="http://www.bankofmaysville.com/site/"
	}
else {
	directCall="../"
	directCall2=""
}



// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


  browserName = navigator.appName;
  browserVer = parseInt(navigator.appVersion);
  if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName == "Microsoft Internet Explorer") && (browserVer >= 4))) {
    version = "ok";

        onlinebanking_on = new Image(150,26);   onlinebanking_on.src = directCall + "images/nav-onlinebanking-on.gif";
		onlinebanking_off = new Image(150,26);  onlinebanking_off.src = directCall + "images/nav-onlinebanking-off.gif";
		
        cashmanagement_on = new Image(150,26);  cashmanagement_on.src = directCall + "images/nav-cashmanagement-on.gif";
		cashmanagement_off = new Image(150,26); cashmanagement_off.src = directCall + "images/nav-cashmanagement-off.gif";
		
        personal_on = new Image(150,26);	     personal_on.src = directCall + "images/nav-personal-on.gif";
		personal_off = new Image(150,26);       personal_off.src = directCall + "images/nav-personal-off.gif";
		
		business_on = new Image(150,26);	     business_on.src = directCall + "images/nav-business-on.gif";
		business_off = new Image(150,26);       business_off.src = directCall + "images/nav-business-off.gif";
		
		trust_on = new Image(150,38);	     trust_on.src = directCall + "images/nav-trust-on.gif";
		trust_off = new Image(150,38);      trust_off.src = directCall + "images/nav-trust-off.gif";
		
        calculators_on = new Image(150,38);     calculators_on.src = directCall + "images/nav-calculators-on.gif";
		calculators_off = new Image(150,38);    calculators_off.src = directCall + "images/nav-calculators-off.gif";
	
		contactus_on = new Image(150,26);       contactus_on.src = directCall + "images/nav-contactus-on.gif";
		contactus_off = new Image(150,26);      contactus_off.src = directCall + "images/nav-contactus-off.gif";
		
        aboutus_on = new Image(150,37);         aboutus_on.src = directCall + "images/nav-aboutus-on.gif";
		aboutus_off = new Image(150,37);        aboutus_off.src = directCall + "images/nav-aboutus-off.gif";
		
		privacy_on = new Image(150,26);     privacy_on.src = directCall + "images/nav-privacy-on.gif";
		privacy_off = new Image(150,26);    privacy_off.src = directCall + "images/nav-privacy-off.gif";
		
        faqs_on = new Image(150,39);            faqs_on.src = directCall + "images/nav-faqs-on.gif";
		faqs_off = new Image(150,39);           faqs_off.src = directCall + "images/nav-faqs-off.gif";
        
        home_on = new Image(150,26);            home_on.src = directCall + "images/nav-home-on.gif";
        home_off = new Image(150,26);           home_off.src = directCall + "images/nav-home-off.gif";
  }
  else 
    version = "x";
  
  
  function img_act(imgName) {
    if (version == "ok") {
       imgOn = eval(imgName + "_on.src");
       document [imgName].src = imgOn;
    }
  }
  function img_inact(imgName) {
    window.status = "";
    if (version == "ok") {
      imgOff = eval(imgName + "_off.src");
      document [imgName].src = imgOff;
    }
  }
  
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE  


//style sheet sniffer 
navigator.userAgent.indexOf('Mac') != -1 ? document.write('<link href="' + directCall2 + '_macstyle.css" rel="stylesheet"') : document.write('<link href="' + directCall2 + '_winstyle.css" rel="stylesheet">');

