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="Priority One Credit Union of Florida, Federal, Credit , Union, priorityonefl, 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.priorityonefl.org/images/"
sitedir="http://www.priorityonefl.org/site/"
securedir="http://www.priorityonefl.org/site/"
homedir="http://www.priorityonefl.org/"
}
else if(window.securepage)
{
imgdir="https://www.priorityonefl.org/images/"
sitedir="http://www.priorityonefl.org/site/"
securedir="https://www.priorityonefl.org/site/"
homedir="http://www.priorityonefl.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

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 = 28;
var nav_widths = 115;

var navitems = new Array(); 

navitems["home"] = new makeNavImage("home",49,nav_heights);
navitems["advantage"] = new makeNavImage("advantage",82,nav_heights);
navitems["aboutus"] = new makeNavImage("aboutus",71,nav_heights);
navitems["products"] = new makeNavImage("products",142,nav_heights);
navitems["rates"] = new makeNavImage("rates",139,nav_heights);
navitems["help"] = new makeNavImage("help",41,nav_heights);
navitems["email"] = new makeNavImage("email",68,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 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="' + imgdir + '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.priorityonefl.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");

location.href= 'https://www.priorityonefl.org/Forms/OnlineForm.cgi?form=' + nameofapp + '&onWeb=TRUE';

}

function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 225)
var pHeight = (((parseInt(screen.height) / 2)) - 150)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=450,height=300,top=" + pHeight + ",left=" + pWidth);
}



//This is code added by a GRP Metavante Bill Payment and Presentment Demo Implementation Request when removing that demo remove this as well.
var openWin;

function openWindow(theURL,winName,features) { //v2.0

	openWin = window.open(theURL,winName,features);
	//so that the demo window can redirect this page if need be.
	window.name = 'opener';
	
}


/************************************************************************************************************
* This function is used in the onclick of the a tag to display the external site warning. 
* @param msg - Integer specifying the which message to display.
* @param lk - The a link object
* Usage: <a href="http://wwww.mysite.com" onclick="return displayThirdPartyAlert(1,this);">My Site</a>
**************************************************************************************************************/
function displayThirdPartyAlert(msg,lk){
	var description = lk.innerHTML;
	if(description.indexOf('alt="') != -1){
		var x = description.indexOf('alt="')+5;
		var temp = description.substring(x);
		description = temp.substring(0,temp.indexOf("\""));
	}
	showWarning(lk.href, description, lk.target, msg)
	return false;
}

/************************************************************************************************************
* This function is used in the href of the a tag to display the external site warning. 
* @param lk - The url of the site to be opened
* @param desc - The description of the site to be opened, i.e. the name of the site.
* @param target - Allows for the window to opened in a new window
* @param msg - Integer specifying the which message to display.
* Usage: <a href="javascript:showWarning('http://wwww.mysite.com');">My Site</a>
**************************************************************************************************************/

function showWarning(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
	target = (target) ? target : "_blank";
	msg = (msg) ? msg : 0;
	
	var messages = new Array(6);
	// Standard 3rd Party Warning
	messages[0] = messages[1] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' 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 '+fiName+'\'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 '+fiName+'.</p>';
	// Standard Partner Warning
	messages[2] = '<h2 style="text-align:center">Partner Site Disclaimer</h2><p>By accessing the noted link you will be leaving our website and entering a partner site which is hosted by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the site which you are entering, which may be different than those of ours.</p>';
	// Standard Affiliate Warning
	messages[3] = '<h2 style="text-align:center">Affiliate Site Disclaimer</h2><p>By accessing the noted link you will be leaving our website and entering an affiliate site located which is hosted by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the site which you are entering, which may be different than those of ours.</p>';
	// Customize if requested
	messages[4] = messages[0];
	// Standard mailto: Insecure Warning
	messages[5] = '<h2 style="text-align:center">Email Disclaimer</h2><p>This is <strong>NOT</strong> a secured e-mail transmission. Please <strong>do not send personal/financial information</strong> via this method.</p>';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<div style="margin-top:1em;text-align:center"><a href="'+lk+'"'+(target?' target="'+target+'"':'')+' onclick="$(\'#ex_dis\').hide()">Continue</a>&#160;&#160;<a href="#" onclick="$(\'#ex_dis\').hide();return false;">Decline</a></div></div>';	
	$("#ex_dis").html(content.join("")).show();
	scrollTo(0,0);
}

function checkorderAlert() {
	if(arguments.length>0){
		var ibalertflag=false;
		for(i=0;i<arguments.length;i++){
			if(arguments[i]=="ibcheckorder") ibalertflag=true;
		}
	}
    var content = new Array();
    var index = 0;
    content[index++] = '<div style="background-color: #003082"><h2 style="color: #FFFFFF; padding:10px;">Deluxe Check Ordering</h2></div>';
    content[index++] = '<div style="padding:10px;"';
    content[index++] = '<p>If you are ordering checks for the first time, please contact our call center or visit us in person so we can assist you. After your first order, you can order your checks online through Deluxe by clicking on the link below. Please make sure you have PriorityONE\'s current Routing Transit Number (267078286) and your account number available. Thank you!</p>';
    content[index++] = '<p>Your checks will be delivered in a flat mailing package, which provides added security due to its design (which is inconspicuous compared to the easily identifiable check box). For your convenience, you will receive a disassembled regular box in each order to store your checks. </p>';
    if(ibalertflag) {
		content[index++] = '<p><a href="#" onclick="window.open(\'https://www.deluxe-check-order.com/CIMServlet?event=reorderLoginEvent\'); window.close();">Click here</a> to order.</p>';
	} else {
		content[index++] = '<p><a href="https://www.deluxe-check-order.com/CIMServlet?event=reorderLoginEvent">Click here</a> to order.</p>';
	}
    content[index++] = '</div>';
   
   if(ibalertflag) {   
		content[index++] = '<div style="margin-bottom:1em;text-align:center"><a href="#" onclick="window.close();">Close</a></div></div>';
	} else {
		content[index++] = '<div style="margin-bottom:1em;text-align:center"><a href="#" onclick="$(\'#ex_dis\').hide();return false;">Close</a></div></div>';
	}
    $("#ex_dis").html(content.join("")).show();
	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:125px; left:300px; border: thin solid #000000; padding: 0px; display: none; z-index: 3000; width:450px;\"></div>');

