if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Granite State Federal Credit Union, Federal, Credit , Union, sdmfcu, 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">');
/*
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/


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


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.sdmfcu.org/images/"
sitedir="http://www.sdmfcu.org/site/"
securedir="http://www.sdmfcu.org/site/"
homedir="http://www.sdmfcu.org/"
}
else if(window.contactuspage)
{
imgdir="../images/";
sitedir="http://www.sdmfcu.org/site/";
securedir="../site/";
homedir="http://www.sdmfcu.org/";
}
else if(window.securepage)
{
imgdir="https://www.sdmfcu.org/images/"
sitedir="http://www.sdmfcu.org/site/"
securedir="https://www.sdmfcu.org/site/"
homedir="http://www.sdmfcu.org/"
}
else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


// 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";
products_on = new Image(162,24);
products_on.src = imgdir + "nav-products-on.gif";

products_off = new Image(162,24);
products_off.src = imgdir + "nav-products-off.gif";

onlineserv_on = new Image(162,24);
onlineserv_on.src = imgdir + "nav-onlineserv-on.gif";

onlineserv_off = new Image(162,24);
onlineserv_off.src = imgdir + "nav-onlineserv-off.gif";

rates_on = new Image(162,24);
rates_on.src = imgdir + "nav-rates-on.gif";

rates_off = new Image(162,24);
rates_off.src = imgdir + "nav-rates-off.gif";

ourcreditunion_on = new Image(162,24);
ourcreditunion_on.src = imgdir + "nav-ourcreditunion-on.gif";

ourcreditunion_off = new Image(162,24);
ourcreditunion_off.src = imgdir + "nav-ourcreditunion-off.gif";

locations_on = new Image(162,24);
locations_on.src = imgdir + "nav-locations-on.gif";

locations_off = new Image(162,24);
locations_off.src = imgdir + "nav-locations-off.gif";

contact_on = new Image(162,24);
contact_on.src = imgdir + "nav-contact-on.gif";

contact_off = new Image(162,24);
contact_off.src = imgdir + "nav-contact-off.gif";

quickfind_on = new Image(112,32);
quickfind_on.src = imgdir + "nav-quickfind-on.gif";

quickfind_off = new Image(112,32);
quickfind_off.src = imgdir + "nav-quickfind-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
document.write('<scr'+ 'ipt src="' + securedir + '_styles.js"></scr' + 'ipt>');

function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}
function tabover(howmuch)
{
var farover = '';
farover += '<img src="../images/clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.sdmfcu.org/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function showWarning(URL)
{

	var content=""
	content+='<html>';
	content+='<head>';
	content+='<title>Third Party Disclaimer</title>';
	content+='</head>';
	content+='<body bgcolor="#21467B" link="#21467B" vlink="#21467B" alink="#C1424C">';
	content+='<table align="center" width="100% cellspacing="0" cellpadding="0" border="0">';
	content+='	<tr>';
	content+='	    <td bgcolor="#000000">';
	content+='		<table align="center" width="100%" cellspacing="1" cellpadding="4" border="0">';
	content+='			<tr>';
	content+='	    		<td bgcolor="#FFFFFF"><font face="Arial,Verdana,Helvetica" color="#58749C"><b>About Third Party Links from this Site</b></font><br><br><font face="Arial,Verdana,Helvetica" size="-1">SD Medical Federal Credit Union provides links from this web site to other non-SD Medical Federal Credit Union operated web sites for your information only. SD Medical Federal Credit Union neither recommends nor endorses any products or services appearing on these alternate sites. Neither are we responsible for the privacy practices or the contents of any web site other than our own. SD Medical Federal Credit Union does not represent Credit Union members or third parties should the two enter into an online transaction. SD Medical Federal Credit Union suggests that you engage in an appropriate investigation for any products and services prior to purchase. Questions as to the content, availability or maintenance of these web sites should be directed to the site owners.';                            
	content+='				<br><br>';
if (URL == "blank"){	
	content+='				 <div align="center"><span class="ficontent"><a href="javascript:self.close();">Close Window</a></span></div>';
}
else {
	content+='				 <div align="center"><span class="ficontent">Click here to <a href="'+URL+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">Continue</a></span></div>';
}
	content+='				</td>';
	content+='			</tr>';
	content+='		</table>';
	content+='		</td>';
	content+='	</tr>';
	content+='</table>';
	content+='</body>';
	content+='</html>';

	//actual centering popup code
	outsideURL=URL;
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 570) / 2);
     newwin = window.open("","newwin", "width=400,height=340,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open();
	newwin.document.write(content);
	newwin.document.close();
	
}	

function rand(number) {
		return Math.ceil((Math.random()* number));       
}