window.onresize=resize;
function resize(){
	self.location.href=self.location.href;}

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="Pasadena Federal Credit Union, Federal, Credit , Union, pfcu, 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.pfcu.org/images/"
sitedir="http://www.pfcu.org/site/"
securedir="http://www.pfcu.org/site/"
homedir="http://www.pfcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.pfcu.org/images/"
sitedir="http://www.pfcu.org/site/"
securedir="https://www.pfcu.org/site/"
homedir="http://www.pfcu.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";
automated_on = new Image(107,27);
automated_on.src = imgdir + "nav-automated-on.gif";

automated_off = new Image(107,27);
automated_off.src = imgdir + "nav-automated-off.gif";

loancenter_on = new Image(70,27);
loancenter_on.src = imgdir + "nav-loancenter-on.gif";

loancenter_off = new Image(70,27);
loancenter_off.src = imgdir + "nav-loancenter-off.gif";

savings_on = new Image(121,27);
savings_on.src = imgdir + "nav-savings-on.gif";

savings_off = new Image(121,27);
savings_off.src = imgdir + "nav-savings-off.gif";

tools_on = new Image(34,27);
tools_on.src = imgdir + "nav-tools-on.gif";

tools_off = new Image(34,27);
tools_off.src = imgdir + "nav-tools-off.gif";

insurance_on = new Image(57,27);
insurance_on.src = imgdir + "nav-insurance-on.gif";

insurance_off = new Image(57,27);
insurance_off.src = imgdir + "nav-insurance-off.gif";

kids_on = new Image(66,27);
kids_on.src = imgdir + "nav-kids-on.gif";

kids_off = new Image(66,27);
kids_off.src = imgdir + "nav-kids-off.gif";

safety_on = new Image(94,27);
safety_on.src = imgdir + "nav-safety-on.gif";

safety_off = new Image(94,27);
safety_off.src = imgdir + "nav-safety-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.pfcu.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 displayThirdPartyAlert()
{
alert('By clicking on any link to other Internet addresses, you are leaving the Pasadena Federal Credit Unions web site. The links provided on this site are for your convenience and reference. PFCU does not endorse any of the products or services offered by these companies. PFCU does not maintain these sites and is not responsible for content or availability of any linked site. Please review the sites privacy policies as they may differ from those of Pasadena Federal Credit Union. Any issue arising from content, use or inability to access these sites should be directed to the actual site owner.');
}

function showWarning(url) {
	displayThirdPartyAlert();
	var newWin = window.open(url);
}

/* calculators stuff */
var calculatorIframeObj = {
		options : [],
		initCalc : function(){
			var calcContainerDiv = arguments[0];
			var qrystr = window.location.href.substring(window.location.href.lastIndexOf("?")+1);
			var qry_groups = qrystr.split("&");
			for(i=0,ii=qry_groups.length; i<ii;i++){
				temp=qry_groups[i].split("=");
				calculatorIframeObj.options[temp[0]] = temp[1];
			}
			document.getElementById(calcContainerDiv).innerHTML=calculatorIframeObj.getFrameCode();
		},
		getFrameCode : function (){
			var returnstring = "<iframe src=\""+calculatorIframeObj.getFrameSrc()+"\" frameborder=\"0\" width=\""+calculatorIframeObj.getFrameWidth()+"\" height=\""+calculatorIframeObj.getFrameHeight()+"\"></iframe>";
			return returnstring;
		},
		getFrameSrc : function() {
			var returnstring = "http://www.culookup.com/IFrameCalculators/"+calculatorIframeObj.options["type"]+"/"+calculatorIframeObj.options["calc"]+"?cuid=62&title=hide&info=hide";
			return returnstring;
		},
		getFrameWidth : function(){
			return calculatorIframeObj.options["width"];
		},
		getFrameHeight : function(){
			return calculatorIframeObj.options["height"];
		}
	}

function gotoCalcPage(sectionID,calcID,height,width){
	if(typeof height=="undefined" || height==null){height=950;}
	if(typeof width=="undefined" || width==null){width=450;}
	
	var calcURLString = sitedir + "calculators_template.html?type="+sectionID+"&calc="+calcID+"&height="+height+"&width="+width;
	window.location.href = calcURLString;
}
/* calculators stuff */

