if(self.location.href.indexOf("jhadev")>0) {
	var fiURL = "http://fnbclarksdale.jhadev.com";
} else if(self.location.href.indexOf("jhauat")>0) {
	var fiURL = "http://fnbclarksdale.jhauat.com";
} else {
	var fiURL = "http://www.fnbclarksdale.com";
}

document.write('<meta name="keywords" content="First National Bank of Clarksdale, Bank, clarksdale, A financial institution of excellence, featuring secure Internet-based services including Home Banking, Bill Payment, Bill Presentment, Quicken and Money interfaces, Stock Quotes, on-line applications, financial calculators, useful links and a wealth of financial information">');
document.write('<meta name="description" content="ATM, ATM Locations, Account Access, Account Transfer, Automobile Loans, AutoVantage, Bank, Bank Account, Banking, Bill Payment, Bill Presentment, Brokerage, Cash, CDs, Certificates of Deposit, Checks, Checking Accounts, Consumer Loans, Convenience Services, Credit, Credit Card, Credit Card Applications, Credit Union, Digital Insight, Finance, Financial Calculator, Financial Institution, Financial Wizard, Loans, Home Loans, IRA, Money, Term Investment, Online Banking, Order Checks, Personal Financial Management, Rates, Mortgage Rates, Loan Rates, Terms, Retirement, Savings Accounts, Savings, Savings and Loan, Stock Quotes, Stocks, Student Loans, Student, Term Share Certificates, Thrifts, Visa Credit Cards">');

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir=fiURL+"/images/"
sitedir=fiURL+"/"
securedir=fiURL+"/"
homedir=fiURL+"/"
}
else if(window.securepage)
{
imgdir=fiURL+"/images/"
sitedir=fiURL+"/"
securedir=fiURL+"/"
homedir=fiURL+"/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}

// ROLLOVER CODE BELOW 
function makeNavImage(name,width,height)
{
this.name_on="nav-" + name +"-on.gif";
this.name_off="nav-" + name +"-off.gif"
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = imgdir + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = imgdir + this.name_off;
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";

var nav_heights = 32;

var navitems = new Array(); 
navitems["onlinebanking"] = new makeNavImage("onlinebanking","116",nav_heights);
navitems["products"] = new makeNavImage("products","137",nav_heights);
navitems["rates"] = new makeNavImage("rates","50",nav_heights);
navitems["calculators"] = new makeNavImage("calculators","92",nav_heights);
navitems["contact"] = new makeNavImage("contact","84",nav_heights);
navitems["news"] = new makeNavImage("news","108",nav_heights);
navitems["about"] = new makeNavImage("about","69",nav_heights);
navitems["help"] = new makeNavImage("help","44",nav_heights);
navitems["home"] = new makeNavImage("home","60",nav_heights);

}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_on.src;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_off.src;
}
}
// ROLLOVER CODE ABOVE
var winWidth = 700;
var winHeight = 600;
var pWidth = (parseInt(screen.width)-winWidth)/2;
var pHeight = (parseInt(screen.height)-winHeight)/2;
var path = fiURL + "/";

function goTo(url)
{
self.location.href = sitedir + "disclaimer.cfm?" + url;
}

function openWin(url,name,options)
{
aWindow = window.open(url,name,options);
}

// This function returns the value of the cookie whose name is passed in as the parameter
function GetCookie(NameOfCookie)
{
	if (document.cookie.length > 0)
	{
		begin = document.cookie.indexOf(NameOfCookie+"=");
		if (begin != -1)
		{
			begin += NameOfCookie.length+1;
			end = document.cookie.indexOf(":", begin);
			if (end == -1) end = document.cookie.length;
			return unescape(document.cookie.substring(begin, end));
		}
	}
	return null;
}

// This function stores the name and color preference in the document.cookie object
function SetCookie(name,value,expiredays)
{
   var ExpireDate = new Date ();
   ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
   document.cookie = name + "=" + value + ":; expires=" + ExpireDate.toGMTString();
   return true;
}

//this function is called upon loading the body of the document
//it checks the number of times a user has visited and pops up
//the window if this is the first visit.
function checkCount()
{
  var count = GetCookie('count');
  if (count == null)
  {
    count=1;
    SetCookie('count', count, 10000);
    self.location.href = "/disclaimer.cfm?http://fnbc.aghost.net/";
  }
  else
  {
    window.open("http://fnbc.aghost.net");
    count++;
    SetCookie('count', count, 10000);
  }
}