for(i=0;i<document.links.length;i++){
	var lnk = document.links[i];
	if(lnk.href){
		if((lnk.href.indexOf('STDReg')>0) || (lnk.href.indexOf('Login.cgi?runmode=REGISTRATION')>0) ){
				document.links[i].href= "javascript:void(0)";
				document.links[i].target= "_self";
				document.links[i].onclick = openRegNotice;
		}
	}
}


function runSubmit() {
	alert('Temporarily Disabled');
}

document.forms[0].setAttribute("onSubmit","alert('Disabled')");
document.forms[0].setAttribute("action","#");
document.getElementById("Text1").setAttribute("disabled","true");
document.getElementById("Text1").value = "Disabled";
document.getElementById("password").setAttribute("disabled","true");



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='<span class="bullet">&#149; </span>';

//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(213,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) 
*************************************/
//Online Banking
oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1','Personal',sitedir+'banking_online_info.html'); 
oM.makeMenu('menu1_2','menu1','401k','javascript:showWarning("https://www.go-retire.com/bankofky/srtweb1.asp");'); 
oM.makeMenu('menu1_3','menu1','Cash Management','https://www.bankofkyhb.com/onlineserv/CM/'); 	
oM.makeMenu('menu1_4','menu1','Credit Card','javascript:showWarning("https://www.ezcardinfo.com/");');
oM.makeMenu('menu1_5','menu1','Trust Services','javascript:showWarning("https://www.tpars.com/prod/login.asp?fi=0818a");');

//Personal Banking
oM.makeMenu('menu2')
oM.makeMenu('menu2_1','menu2','Checking Accounts',sitedir+'banking_personal_checking.html');
oM.makeMenu('menu2_2','menu2','Savings Accounts & Money Markets',sitedir+'banking_personal_savings.html');
oM.makeMenu('menu2_3','menu2','CDs',sitedir+'banking_personal_cds.html');
oM.makeMenu('menu2_4','menu2','IRA',sitedir+'banking_personal_iras.html');
oM.makeMenu('menu2_5','menu2','HSA',sitedir+'banking_personal_hsa.html');

oM.makeMenu('menu2_6','menu2','Card Products',sitedir+'banking_personal_cards.html');
	
	oM.makeMenu('menu2_6_1','menu2_6','Credit Cards ',sitedir+'banking_card_credit.html');
	oM.makeMenu('menu2_6_2','menu2_6','Debit Cards ',sitedir+'banking_card_debit.html');
	oM.makeMenu('menu2_6_3','menu2_6','Gift Cards ',sitedir+'banking_card_gift.html');
	oM.makeMenu('menu2_6_4','menu2_6','Payroll Cards ','https://pulseaccess.bankofky.com/consumer/');	

oM.makeMenu('menu2_7','menu2','Trust and Investment Services',sitedir+'banking_personal_trust.html');

oM.makeMenu('menu2_8','menu2','Other Services',sitedir+'banking_personal_other.html');
	oM.makeMenu('menu2_8_1','menu2_8','Safe Deposit Box',sitedir+'banking_other_safebox.html');
	oM.makeMenu('menu2_8_2','menu2_8','Bill Payer',sitedir+'banking_online_info.html');
	oM.makeMenu('menu2_8_3','menu2_8','Overdraft Protection',sitedir+'banking_other_overdraft.html');
	oM.makeMenu('menu2_8_4','menu2_8','E-mail Statements',sitedir+'banking_other_email.html');
	
	
oM.makeMenu('menu2_9','menu2','Account Assistance',sitedir+'banking_personal_assistance.html');
	oM.makeMenu('menu2_9_1','menu2_9','Lost/Stolen Card',sitedir+'banking_assistance_lost.html');
	oM.makeMenu('menu2_9_2','menu2_9','Reorder Checks','javascript:showWarning("http://www.clarkeamerican.com/www/reorder.cfm");');
	oM.makeMenu('menu2_9_3','menu2_9','Direct Deposit',sitedir+'banking_assistance_deposit.html');
	oM.makeMenu('menu2_9_4','menu2_9','Secure Code',sitedir+'banking_assistance_secure.html');
	oM.makeMenu('menu2_9_5','menu2_9','Telephone Banking',sitedir+'banking_assistance_tele.html');

//Business Banking
oM.makeMenu('menu3')
oM.makeMenu('menu3_1','menu3','Depository Services',sitedir+'banking_business_depository.html');  
oM.makeMenu('menu3_2','menu3','Loans',sitedir+'banking_business_loans.html');
	
	oM.makeMenu('menu3_2_1','menu3_2','Construction Loans',sitedir+'banking_business_construction.html');
	oM.makeMenu('menu3_2_2','menu3_2','Commercial Term Loans',sitedir+'banking_business_termloans.html');
	oM.makeMenu('menu3_2_3','menu3_2','Letter of Credit',sitedir+'banking_business_lettercredit.html');
	oM.makeMenu('menu3_2_4','menu3_2','Line of Credit',sitedir+'banking_business_lineofcredit.html');
	oM.makeMenu('menu3_2_5','menu3_2','Small Business Administration Loans',sitedir+'banking_business_sbaloans.html');
	oM.makeMenu('menu3_2_6','menu3_2','Contact a Commercial Lending Officer',sitedir+'commercial_loan_off.html');	
	
oM.makeMenu('menu3_3','menu3','Card Products',sitedir+'banking_business_card.html');
	oM.makeMenu('menu3_3_1','menu3_3','Business Debit Card',sitedir+'banking_business_debit.html');
	oM.makeMenu('menu3_3_2','menu3_3','Business Credit Card',sitedir+'banking_business_credit.html');
	oM.makeMenu('menu3_3_3','menu3_3','Payroll Cards',sitedir+'banking_business_payroll.html');
	oM.makeMenu('menu3_3_4','menu3_3','Gift Cards',sitedir+'banking_card_gift.html');
	

oM.makeMenu('menu3_4','menu3','Cash Management Services',sitedir+'banking_business_cm.html');
	oM.makeMenu('menu3_4_1','menu3_4','Lockbox Services',sitedir+'banking_business_cm_lock.html');
	oM.makeMenu('menu3_4_2','menu3_4','ACH - The Banker',sitedir+'banking_business_cm_ach.html');
	oM.makeMenu('menu3_4_3','menu3_4','Investment Sweep',sitedir+'banking_business_cm_sweep.html');
	oM.makeMenu('menu3_4_4','menu3_4','Commercial Sweep',sitedir+'banking_business_cm_comsweep.html');
	oM.makeMenu('menu3_4_5','menu3_4','Zero Balance Account (ZBA)',sitedir+'banking_business_cm_zero.html');
	oM.makeMenu('menu3_4_6','menu3_4','Electronic Data Interchange (EDI)',sitedir+'banking_business_other_edi.html');

   
oM.makeMenu('menu3_5','menu3','Employee Services',sitedir+'banking_business_employee.html');
	oM.makeMenu('menu3_5_1','menu3_5','Group Banking',sitedir+'banking_business_employee_group.html');
	oM.makeMenu('menu3_5_2','menu3_5','401K Services',sitedir+'banking_business_employee_401k.html');
	oM.makeMenu('menu3_5_3','menu3_5','HSA Accounts',sitedir+'banking_business_employee_hsa.html');
	oM.makeMenu('menu3_5_4','menu3_5','Payroll Card',sitedir+'banking_business_employee_payroll.html');
	

oM.makeMenu('menu3_6','menu3','Other Services',sitedir+'banking_business_other.html');  
	oM.makeMenu('menu3_6_1','menu3_6','Merchant Services',sitedir+'banking_business_other_merchant.html');
	oM.makeMenu('menu3_6_2','menu3_6','CD ROM Statements',sitedir+'banking_business_other_cdrom.html');
	oM.makeMenu('menu3_6_3','menu3_6','E-mail Statements',sitedir+'banking_business_other_email.html');
	oM.makeMenu('menu3_6_4','menu3_6','Electronic Data Interchange (EDI)',sitedir+'banking_business_other_edi.html');

//Loans
oM.makeMenu('menu4')
oM.makeMenu('menu4_1','menu4','Mortgages',sitedir+'loans.html');  
oM.makeMenu('menu4_2','menu4','Home Equity Accounts',sitedir+'loans_equityaccounts.html');
oM.makeMenu('menu4_3','menu4','Construction Loans',sitedir+'loans_construction.html');
oM.makeMenu('menu4_4','menu4','Auto Loans',sitedir+'loans_auto.html'); 
oM.makeMenu('menu4_5','menu4','Credit Cards',sitedir+'banking_card_credit.html'); 

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("olb");
var dropmenu2 = new  FindPosition("pbk");
var dropmenu3 = new  FindPosition("bbk");
var dropmenu4 = new  FindPosition("loans");


function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos+0,dropmenu1.yPos+26);
		break;
		case "menu2":
        oM.m["menu2"].b.moveIt(dropmenu2.xPos+0,dropmenu2.yPos+26);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos+0,dropmenu3.yPos+26);
		break;   
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos+0,dropmenu4.yPos+26);
		break;  
	} 
	oM.showsub(menu);
	
}



