var url = self.location.href;
if (url.indexOf("#")!=-1)
	self.location.href=url.substring(url.indexOf('#'),url.length);


var newH = 36;
if(document.layers){
	document.write('<style type="text/css">.clS,.clSover{border: 0px; }</style>');
	newH += 1;}


oM=new makeCM("oM"); 
oM.resizeCheck=0; 
oM.rows=1;  
oM.onlineRoot=""
oM.offlineRoot=""
oM.pxBetween=0; 
oM.fillImg=imgdir+"clearpix.gif"; 
oM.fromTop=0; 
oM.fromLeft=0; 
oM.wait=300; 
oM.zIndex=400;
oM.useBar=0; 
oM.barWidth="0"; 
oM.barHeight="menu"; 
oM.barX=0;
oM.barY="menu"; 
oM.barClass="clB";
oM.barBorderX=0; 
oM.barBorderY=0;
db="<img src='"+imgdir+"clearpix.gif' width='3' height='1' border='0' alt='' />";

message1="<div width='300'>The security of your financial information is important to your business. That\'s why prosperitybankandtrust.biz has in place various safeguards to help insure your information does not get in the wrong hands.<ul><li>All communications between your computer and our servers are encrypted by a leading national technology firm. Through this partnership, Prosperity Bank and Trust is continuing its vigilance to protect your privacy and your business.</li><li>You decide who in your organization has access to specific features. You designate users to initiate electronic payments and wire transfers; plus, you have the ability to restrict their access to these functions only, further reducing your risk and increasing tracking capabilities. You can even require these transactions be approved by you or another user.</li></ul></div>";

message2="<div width='300'>How would you like to be able to look at your bank accounts anytime day or night? With prosperitybankandtrust.biz, you can! Features include:<ul><li>Review your accounts\' transactions, both debits and credits.</li><li>Real time environment-a transaction posted to that day\'s business will be viewable that same day online.</li><li>Download to popular software applications like Quicken or Money.</li><li>Sort your accounts\' transactions by date or type of transaction.</li></ul></div>";

message3="<div width='300'>Hate making that trip to the bank in the middle of the day just to move your money from one account to another? Wouldn\'t it be nice to be able to do that from your home or office? prosperitybankandtrust.biz gives you this option.<br /><br />With the simple click of your mouse and a few key strokes you can move your money from one account to another-saving valuable time to focus on what you do best, growing your business!</div>";

message4="<div width='300'>If you have ever paid bills online from your personal accounts, then you know how valuable this service could be for your business. Imagine being able to schedule your bill paying weeks, even months in advance. You can even set-up recurring payments for those fixed costs that you have to pay every month. It\'s so easy to use, and right now we\'re offering the first three months free (only a $5 set-up fee) so what better time to give it a try?</div>";

message5="<div width='300'>With prosperitybankandtrust.biz, you can initiate electronic payments, also known as ACH, from your home or office. This function allows you to simplify your payroll with direct deposit to your employees\' accounts and pay vendors who can accept electronic payments. If you can slide a mouse around and type a few keystrokes, then you can take advantage of this convenient service.</div>";

message6="<div width='300'>With prosperitybankandtrust.biz you can perform wire transfers, all from your home or office. If you can slide a mouse around and type a few key strokes, then you can take advantage of this convenient service.</div>";

message7="<div width='300'>What happens if you realize that you need to place a stop payment on a check over the weekend or at night when the bank is closed? This is exactly why prosperitybankandtrust.biz has given you the capabilities to request stop payments online. Now it doesn't matter if the bank is open or not, you will have access anytime you can get to the Internet.</div>";


//oM.level[0]=new cm_makeLevel(width,height,regClass,overClass,borderX,borderY,borderClass,rows,align,offsetX,offsetY,arrow,arrowWidth,arrowHeight)
oM.level[0]=new cm_makeLevel(0,0,"bordercolor","bordercolor",0,0,"clB",0,"bottom",0,0,0,0,0);
oM.level[0].filter="progid:DXImageTransform.Microsoft.Alpha(opacity=100, finishopacity=100, style=3)";
oM.level[1]=new cm_makeLevel(175,25,"item_off","item_on",1,1,"clB",0,"right",0,0,imgdir+"tri.gif",5,10);
oM.level[1].roundBorder=1;
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/


		
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',db+'Personal Deposit Accounts',sitedir+'personal_deposit.html');	
		oM.makeMenu('menu1_1_1','menu1_1',db+'Regular Checking',sitedir+'personal_regular.html');		
		oM.makeMenu('menu1_1_2','menu1_1',db+'Interest Checking',sitedir+'personal_interest.html');	
		oM.makeMenu('menu1_1_3','menu1_1',db+'Money Market Account',sitedir+'personal_money.html');					
	oM.makeMenu('menu1_2','menu1',db+'Loans',sitedir+'personal_loans.html');
		oM.makeMenu('menu1_2_1','menu1_2',db+'Personal Loans',sitedir+'personal_personal.html');		
		oM.makeMenu('menu1_2_2','menu1_2',db+'Construction Loans',sitedir+'personal_construction.html');	
		oM.makeMenu('menu1_2_3','menu1_2',db+'Home Equity Loans &amp; Lines',sitedir+'personal_home.html');		
		oM.makeMenu('menu1_2_4','menu1_2',db+'Mortgages',sitedir+'personal_mortgages.html');	
		oM.makeMenu('menu1_2_5','menu1_2',db+'Auto Loans',sitedir+'personal_auto.html');			
	oM.makeMenu('menu1_3','menu1',db+'Investment Accounts',sitedir+'personal_invest.html');
		oM.makeMenu('menu1_3_1','menu1_3',db+'Statement Savings',sitedir+'personal_savings.html');		
		oM.makeMenu('menu1_3_2','menu1_3',db+'Certificates of Deposit',sitedir+'personal_cd.html');	
		oM.makeMenu('menu1_3_3','menu1_3',db+'Individual Retirement Accounts',sitedir+'personal_ira.html');		
	oM.makeMenu('menu1_4','menu1',db+'Additional Services',sitedir+'personal_additional.html');
		oM.makeMenu('menu1_4_1','menu1_4',db+'Visa Check Card',sitedir+'personal_visa.html');		
		oM.makeMenu('menu1_4_2','menu1_4',db+'Image Checks',sitedir+'personal_image.html');
		oM.makeMenu('menu1_4_3','menu1_4',db+'Telephone Banking',sitedir+'personal_telephone.html');
		oM.makeMenu('menu1_4_4','menu1_4',db+'Check 21','javascript:openWin("' + sitedir + 'Check21Brochure.pdf")');

oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',db+'.biz Banking',sitedir+'business_banking.html');
	oM.makeMenu('menu2_2','menu2',db+'Business Deposit Accounts',sitedir+'business_deposit.html');
		oM.makeMenu('menu2_2_1','menu2_2',db+'Business Checking',sitedir+'business_checking.html');		
		oM.makeMenu('menu2_2_2','menu2_2',db+'Interest Checking',sitedir+'business_interest.html');	
		oM.makeMenu('menu2_2_3','menu2_2',db+'Money Market Account',sitedir+'business_money.html');		
	oM.makeMenu('menu2_3','menu2',db+'Business Loans',sitedir+'business_loans.html');
		oM.makeMenu('menu2_3_1','menu2_3',db+'Business Line of Credit',sitedir+'business_line.html');		
		oM.makeMenu('menu2_3_2','menu2_3',db+'Business Installment Loan',sitedir+'business_install.html');	
		oM.makeMenu('menu2_3_3','menu2_3',db+'Business Real Estate Loans and<br />'+db+'Construction Loans',sitedir+'business_real.html','','',newH);		
		oM.makeMenu('menu2_3_4','menu2_3',db+'Business Ready Reserve',sitedir+'business_ready.html');	
		oM.makeMenu('menu2_3_5','menu2_3',db+'Other Business Loans',sitedir+'business_other.html');		
		oM.makeMenu('menu2_3_6','menu2_3',db+'Loan Officers',sitedir+'business_officers.html');			
	oM.makeMenu('menu2_4','menu2',db+'Investment Accounts',sitedir+'business_invest.html');
		oM.makeMenu('menu2_4_1','menu2_4',db+'Cash Management',sitedir+'business_cm.html');		
		oM.makeMenu('menu2_4_2','menu2_4',db+'Statement Savings',sitedir+'business_savings.html');	
		oM.makeMenu('menu2_4_3','menu2_4',db+'Certificates of Deposit',sitedir+'business_cd.html');	
	oM.makeMenu('menu2_5','menu2',db+'Additional Services',sitedir+'business_additional.html');
		oM.makeMenu('menu2_5_1','menu2_5',db+'Credit Cards',sitedir+'business_credit.html');		
		oM.makeMenu('menu2_5_2','menu2_5',db+'Other Business Service',sitedir+'business_products.html');
		oM.makeMenu('menu2_5_3','menu2_5',db+'Other Business Products','javascript:void(0)');
			oM.makeMenu('menu2_5_3_1','menu2_5_3',db+'Business Links',sitedir+'business_links.html');
	
	
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',db+'Internet Banking',sitedir+'faq-internetbanking.html');
		oM.makeMenu('menu3_1_1','menu3_1',db+'Sign up for Online Banking',sitedir+'online_signup.html');		
		oM.makeMenu('menu3_1_2','menu3_1',db+'Password Reset by Bank',sitedir+'online_bankreset.html');	
		oM.makeMenu('menu3_1_3','menu3_1',db+'Forgotten Password Reset',sitedir+'online_reset.html');		
		oM.makeMenu('menu3_1_4','menu3_1',db+'Microsoft Internet Explorer','javascript:openWin("http://www.microsoft.com/windows/ie/downloads/default.mspx");');	
		oM.makeMenu('menu3_1_5','menu3_1',db+'Netscape Navigator','javascript:openWin("http://channels.netscape.com/ns/browsers/default.jsp");');		
	oM.makeMenu('menu3_2','menu3',db+'.biz Banking Login','javascript:openWin("https://www.prosperitybankva.com/onlineserv/CM");');
	oM.makeMenu('menu3_3','menu3',db+'Reorder Checks','javascript:openWin("http://reorder.harland.net/channelbroker/");');
	oM.makeMenu('menu3_4','menu3',db+'Visa Credit Card Account<br />'+db+'Information','javascript:openWin("https://www.mycardstatement.com");','','',newH);	
	
		
	
		
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',db+'Credit Cards',sitedir+'personal_credit.html');
	oM.makeMenu('menu4_2','menu4',db+'Your Credit Card Account<br />'+db+'Information','javascript:openWin("https://www.mycardstatement.com");','','',newH);
	
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',db+'Guestbook','javascript:openWin("https://www.prosperitybankva.com/Forms/OnlineForm.cgi?form=guestbook_app");');
	oM.makeMenu('menu5_2','menu5',db+'Branch Locations',sitedir+'contactus_locations.html');
	oM.makeMenu('menu5_3','menu5',db+'ATM Locations',sitedir+'contactus_atmlocations.html');
	oM.makeMenu('menu5_4','menu5',db+'Career Opportunities',sitedir+'info_employment.html');
	oM.makeMenu('menu5_5','menu5',db+'FAQ&rsquo;s',sitedir+'faq.html');
	oM.makeMenu('menu5_6','menu5',db+'Calculators',sitedir+'calculators.html');
	oM.makeMenu('menu5_7','menu5',db+'Holiday Schedule',sitedir+'info_schedule.html');					
	
	
oM.makeMenu('menu6');
	//oM.makeMenu('menu6_1','menu6', message1,'javascript:void(0);','','307','262','','','item_off2','item_off2');
	oM.makeMenu('menu6_1','menu6',db+'Security Alert','javascript:openWin(\'' + sitedir + 'security_bp_alert.html\',\'win\',\'500\',\'331\',\'\');');
	oM.makeMenu('menu6_2','menu6',db+'Why Online Banking is Safe','javascript:openWin(\'http://www.diginsite.com/security/idtheft-report.html\');');

oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7', message2,'javascript:void(0);','','307','190','','','item_off2','item_off2');

oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8', message3,'javascript:void(0);','','307','135','','','item_off2','item_off2');

oM.makeMenu('menu9');
	oM.makeMenu('menu9_1','menu9', message4,'javascript:void(0);','','307','125','','','item_off2','item_off2');

oM.makeMenu('menu10');
	oM.makeMenu('menu10_1','menu10', message5,'javascript:void(0);','','307','110','','','item_off2','item_off2');

oM.makeMenu('menu11');
	oM.makeMenu('menu11_1','menu11', message6,'javascript:void(0);','','307','70','','','item_off2','item_off2');

oM.makeMenu('menu12');
	oM.makeMenu('menu12_1','menu12', message7,'javascript:void(0);','','307',' 105','','','item_off2','item_off2');
	
	
	
oM.menuPlacement=new Array(0);
oM.construct();

function FindPosition(image_name){
    if(!document.images[image_name]){
        return null;
    }
    this.image_name = image_name;
    this.xPos = 500;
    this.yPos = 500;
    this.ref_image = document.images[image_name];
    this.getRealLeft = getRealLeft;
    this.getRealTop = getRealTop;
    this.getRealLeft();
    this.getRealTop();
}

function getRealLeft(move) {
   if(!move){
        move = 0;
    }
   if(document.layers){
     this.xPos = this.ref_image.x + move;    
     return this.xPos;
   }
	this.xPos = this.ref_image.offsetLeft;
	tempEl = this.ref_image.offsetParent;
  	while (tempEl != null) {
  		this.xPos += tempEl.offsetLeft;
  		tempEl = tempEl.offsetParent;
  	}
    this.xPos = this.xPos + move;
	return this.xPos;
}

function getRealTop(move) {
    if(!move){
        move = 0;
    }
    if(document.layers){
     this.yPos = this.ref_image.y + move; 
     return this.yPos
   }
	this.yPos = this.ref_image.offsetTop;
	tempEl = this.ref_image.offsetParent;
	while (tempEl != null) {
  		this.yPos += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
    this.yPos = this.yPos + move;
	return this.yPos;
}


var dropmenu1 = new  FindPosition("personal");
var dropmenu2 = new  FindPosition("business");
var dropmenu3 = new  FindPosition("online");
var dropmenu4 = new  FindPosition("creditcards");
var dropmenu5 = new  FindPosition("infocenter");
var dropmenu6 = new  FindPosition("security");

var dropmenu7 = new  FindPosition("Q2");
var dropmenu8 = new  FindPosition("Q3");
var dropmenu9 = new  FindPosition("Q4");
var dropmenu10 = new  FindPosition("Q5");
var dropmenu11 = new  FindPosition("Q6");
var dropmenu12 = new  FindPosition("Q7");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+158,dropmenu1.yPos-2);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos+158,dropmenu2.yPos-4);
		break;		
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+158,dropmenu3.yPos-6);
		break;		
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+158,dropmenu4.yPos-8);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos+158,dropmenu5.yPos-10);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos+158,dropmenu6.yPos-2);
		break;		
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;		
		case "menu8":
		oM.m["menu8"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;		
		case "menu9":
		oM.m["menu9"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;		
		case "menu10":
		oM.m["menu10"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;		
		case "menu11":
		oM.m["menu11"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;		
		case "menu12":
		oM.m["menu12"].b.moveIt(dropmenu6.xPos+150,dropmenu6.yPos-35);
		break;														
	} 
	oM.showsub(menu);
	
}