if(window.event + "" == "undefined") event = null;
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();

// CALL TO CORRECT DIRECTORY BELOW
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.uintabank.com/images/"
sitedir="http://www.uintabank.com/site/"
securedir="http://www.uintabank.com/site/"
homedir="http://www.uintabank.com/"
}
else if(window.securepage)
{
imgdir="https://www.uintabank.com/images/"
sitedir="http://www.uintabank.com/site/"
securedir="https://www.uintabank.com/site/"
homedir="http://www.uintabank.com/"
}
// CALL TO CORRECT DIRECTORY ABOVE

// 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;
}

var nav_widths=170;
var nav_heights=27;

var navitems = new Array();
navitems["home"] = new makeNavImage("home",61,nav_heights);
navitems["onlinebanking"] = new makeNavImage("onlinebanking",113,nav_heights);
navitems["products"] = new makeNavImage("products",139,nav_heights);
navitems["calculators"] = new makeNavImage("calculators",138,nav_heights);
navitems["about"] = new makeNavImage("about",78,nav_heights);
navitems["forms"] = new makeNavImage("forms",63,nav_heights);

function img_act(imgName){
document[imgName].src = navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
window.status = "";
document[imgName].src = navitems[imgName].newimage_off.src;
}
// ROLLOVER CODE ABOVE

// OTHER FUNCTIONS BELOW
function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?600:h;
o = (o==null)?"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function open_apps(nameofapp){
self.location.href = "https://www.uintabank.com/Forms/OnlineForm.cgi?onweb=true&form=" + nameofapp;
}

function openIB(page){
if (page=="demo") self.location.href = homedir+"index.html?demo";
else self.location.href = homedir+"index.html";
//if (page=="demo") openWin("https://208.2.188.55/onlineserv/HB/demo.html");
//else openWin("https://208.2.188.55/onlineserv/HB/")
}

function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<div align='center'><h3 style='margin-top: 2px;'>Linking Disclaimer</h3>By accessing any external link on Uinta Bank, you will be leaving the Uinta Bank website and entering a website hosted by an unaffiliated third party. We encourage you to read and evaluate the privacy and security policies of the site you are entering, as they may be different than those at Uinta Bank. Please be advised that Uinta Bank does not offer, endorse or guarantee any products or services available on a third party website, nor are we responsible for that entity's website content. ";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href='javascript:window.location=\""+url+"\";'>Continue</a>&nbsp;&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Decline</a></div></div>";	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}

function showMail(url){
var content = new Array();
var index = 0;
content[index++] = "<div align='center'><h3 align='center'>Please Note</h3>This is <strong>NOT</strong> secure e-mail, do not send personal/financial information. ";
content[index++] = "<br /><br />";
content[index++] = "<div align=\"center\"><a href='"+url+"' onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Continue</a>&nbsp;&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Decline</a></div></div>";	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}




document.write('<div id="ex_dis" style="background-color: #FFF; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: medium solid #9C9E9C; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');



function loadImages () {
dropmenu1 = new  FindPosition("products");
dropmenu2 = new  FindPosition("calculators");
dropmenu3 = new  FindPosition("about");
dropmenu4 = new  FindPosition("forms");
}



// OTHER FUNCTIONS ABOVE

// OTHER FUNCTIONS ABOVE