/*
window.onresize=resize;
function resize(){
self.location.href=self.location.href;
}
*/

if(window.event + "" == "undefined") event = null;
//FOR COOLMENU BELOW
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();
// FOR COOLMENU ABOVE

// CALL TO CORRECT DIRECTORY BELOW
var imgdir = "../images/";
var sitedir = "../site/";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="http://www.peoplestrustcu.org/site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.peoplestrustcu.org/images/"
sitedir="http://www.peoplestrustcu.org/site/"
securedir="http://www.peoplestrustcu.org/site/"
homedir="http://www.peoplestrustcu.org/"
}
else if(window.securepage)
{
imgdir="../images/"
sitedir="http://www.peoplestrustcu.org/site/"
securedir="../site/"
homedir="http://www.peoplestrustcu.org/"
}
// 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_heights=25;

var navitems = new Array();
navitems["home"] = new makeNavImage("home",46,nav_heights);
navitems["electronic"] = new makeNavImage("electronic",124,nav_heights);
navitems["loans"] = new makeNavImage("loans",53,nav_heights);
navitems["savings"] = new makeNavImage("savings",217,nav_heights);
navitems["rates"] = new makeNavImage("rates",49,nav_heights);
navitems["other"] = new makeNavImage("other",97,nav_heights);
navitems["join"] = new makeNavImage("join",78,nav_heights);
navitems["about"] = new makeNavImage("about",68,nav_heights);
navitems["quick"] = new makeNavImage("quick",112,20);

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 openIB(page){
	if(page=="demo") self.location.href=homedir+"index.html?demo";
	else if(page=="register") ibRegister();
	else if(page=="moreinfo") self.location.href=sitedir+"hometeller.html";
	else goHome();
}

function ibRegister(){
var content = new Array();
var index = 0;
content[index++] = '<h1>First Time Members</h1>Please Use Your "QT" PIN Code as Your Password.';
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:goHome();" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\';">Back to Home Page to Login</a></div></div>';	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}

function goHome(){
	self.location.href=homedir+"index.html";
}

function open_apps(nameofapp){
	self.location.href="https://www.peoplestrustcu.org/Forms/OnlineForm.cgi?onweb=true&form=" + nameofapp;
}

function showTopPhoto(){
	var num = Math.floor(Math.random()*1)+1;
	document.write('<img src="' + imgdir + 'topPic' + num + '.jpg" width="81" height="94" alt="" class="topPic" />');
}

function expressLender(){
	openWin('http://www.loans24.net/atl/clientSelect.do?clientID=7538');
}

function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = '<h1>Third Party Site Disclaimer</h1>By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution has not approved this as a reliable partner site.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.';
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}
document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:185px; left:300px; border: thin solid #6E2639; padding: 15px; visibility: hidden;z-index: 300; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=#CCCCCC,offX=7,offY=8,positive=true); "></div>');


/*  SITEWIDE QUICKLINKS NAV */


function goToLink(theSelectedValue) {
  location.href=theSelectedValue;
}

function writeQuickLinksNav()
{

var theQuickLinks = new Array();
var quicklinkscounter=0;

theQuickLinks[quicklinkscounter] = '';
theQuickLinks[quicklinkscounter++] = '<form id="navform" name="navform" align="left">';
theQuickLinks[quicklinkscounter++] = '	<select style="font-family:Arial; font-size:8pt; z-Index:1;" name="nav" onchange="goToLink(document.navform.nav.value);">';
theQuickLinks[quicklinkscounter++] = '    <option value="" selected="selected">Make a selection --&gt;</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+homedir+'index.html">Site Index</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#insuranceservices">AAA Automobile &amp; Homeowners Insurance</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations_atm.html">ATMs</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="https://www.peoplestrustcu.org/onlineserv/HB/">Automated Bill Payment</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_auto.html">Automobile Loans</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'about_events.html">Calendar of Events</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'accounts_checking.html">Checking Accounts</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_links.html">Community Links</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'youth_links.html">Cool Links for Young Members</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations_servicecenters.html">Credit Union Family Service Centers</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'rates_savings.html">Current Savings Rates</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'rates_loan.html">Current Loan Rates</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#directdeposit">Direct Deposit</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="javascript:open_apps(\'email_app\');">E-Mail PTCU</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations_branches.html">PTCU Office &amp; Telephone Numbers</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_calcs.html">Financial Calculators</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_heloc.html">Home Equity Lines of Credit</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="https://www.peoplestrustcu.org/onlineserv/HB/">Home Teller</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'accounts_savings_ira.html">Individual Retirement Accounts</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#insuranceservices">Insurance Products &amp; Services</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_investplan.html">Investments and Financial Planning</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_unsecured.html">Lines of Credit</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="javascript:expressLender();">Loan Application</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations.html">Locations &amp; Hours</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'join_eligibility.html">Membership Eligibility</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_secured.html">Mobile Home Loans</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'accounts_savings_money.html">Money Market Plus Accounts</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_mortgage.html">Mortgage Loans</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations_servicecenters.html#sharedbranching">Nationwide Shared Branching</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#otherservices">Notary Service</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'electronic_telesys.html">QT Telephone System</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#routingnumber">Routing Number</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'accounts_savings_cert.html">Savings Certificates</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'fee.html">Schedule of Fees</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'youth_scholarship.html">Scholarship Program</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'locations_branches.html#telephonenumber">Telephone Numbers</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'accounts_savings_trust.html">Trust  Accounts</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#dental">United Concordia Dental Insurance</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'join_vipclub.html">VIP Club</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'electronic_visacheck.html">VISA Debit Cards</option>';

theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#visa_gift_cards">Visa Gift Cards</option>';


theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'loans_visa.html">VISA Credit Card Accounts</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'promotions.html">What\'s New</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'other_services.html#wiretransfers">Wire Transfer</option>';
theQuickLinks[quicklinkscounter++] = '    <option value="'+sitedir+'youth.html">Youth Services</option>';
theQuickLinks[quicklinkscounter++] = '	</select>';
theQuickLinks[quicklinkscounter++] = '</form>';

document.write(theQuickLinks.join(""));
}
