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",1,1,"clB",0,"bottom",0,0,0,0,0);
//oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=90, finishopacity=90, style=1)";
oM.level[1]=new cm_makeLevel(195,22,"item_off","item_on",1,1,"bordercolor",0,"right",0,0,imgdir+"tri.gif",12,12);
oM.level[1].roundBorder=0;


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

//Personal Deposits
oM.makeMenu('menu1');
	oM.makeMenu('menu1_1','menu1',"Checking Accounts", sitedir+"personal_checking.html");
	oM.makeMenu('menu1_2','menu1',"Savings Accounts", sitedir+"personal_savings.html");
	oM.makeMenu('menu1_3','menu1',"Certificates of Deposit", sitedir+"personal_savings.html#cds");
	oM.makeMenu('menu1_4','menu1',"Individual Retirement Accounts", sitedir+"personal_savings.html#ira");
	oM.makeMenu('menu1_5','menu1',"GWSB Debit Card", sitedir+"services.html#atm");

//Business Deposits
oM.makeMenu('menu2');
	oM.makeMenu('menu2_1','menu2',"Business Checking", sitedir+"business_accounts.html#checking");
	oM.makeMenu('menu2_2','menu2',"Business Money Market", sitedir+"business_accounts.html#moneymarket");
	oM.makeMenu('menu2_3','menu2',"GWSB Debit Card", sitedir+"services.html#atm");
	oM.makeMenu('menu2_4','menu2',"Merchant Services", sitedir+"business_accounts.html#merchant");

//Online Banking
oM.makeMenu('menu3');
	oM.makeMenu('menu3_1','menu3',"Online Banking FAQ", sitedir+"online_bankingFAQ.html");
	oM.makeMenu('menu3_2','menu3',"Access Agreement", sitedir+"online_eft.html");
	oM.makeMenu('menu3_3','menu3',"Security",  sitedir+"online_banking_safe.html");
	oM.makeMenu('menu3_4','menu3',"Application", "javascript:openIB('apply');");
	
//Online Bill Payment
oM.makeMenu('menu4');
	oM.makeMenu('menu4_1','menu4',"Online Bill Payment FAQ", sitedir+"online_billpayFAQ.html");
	oM.makeMenu('menu4_2','menu4',"Access Agreement", sitedir+"online_eft.html");
	oM.makeMenu('menu4_3','menu4',"Security",  sitedir+"online_banking_safe.html");
	oM.makeMenu('menu4_4','menu4',"Application", "javascript:openIB('apply');");
	
//Loans
oM.makeMenu('menu5');
	oM.makeMenu('menu5_1','menu5',"Consumer Loans", sitedir+"loans_consumer.html");
	oM.makeMenu('menu5_2','menu5',"Residential Loans", sitedir+"loans_residential.html");
	oM.makeMenu('menu5_3','menu5',"Commercial and Business Loans", sitedir+"loans_business.html");
	
//Info
oM.makeMenu('menu6');
	oM.makeMenu('menu6_1','menu6',"AOL Users", "https://www.gwsbank.com/onlineserv/HB/aol.html","_blank",150);
	oM.makeMenu('menu6_2','menu6',"EFT Disclosure", sitedir+"online_eft.html","",150);
	oM.makeMenu('menu6_3','menu6',"New Users", "javascript:openIB('apply');","",150);
	oM.makeMenu('menu6_4','menu6',"Difficulty Logging in", "https://www.gwsbank.com/onlineserv/HB/login_help.html","_blank",150);
	oM.makeMenu('menu6_5','menu6',"Safe Online Banking", sitedir+"online_banking_safe.html","",150);

//Consumer Alerts
oM.makeMenu('menu7');
	oM.makeMenu('menu7_1','menu7',"Fraud Alerts", sitedir + "consumeralerts.html","",150);
	oM.makeMenu('menu7_2','menu7',"FDIC Consumer News", "javascript:showWarning('http://www.fdic.gov/consumernews');","",150);
	oM.makeMenu('menu7_3','menu7',"Identity Theft", "javascript:showWarning('http://www.idtheft.gov/');","",150);

oM.makeMenu('menu8');
	oM.makeMenu('menu8_1','menu8',"Reset password yourself", "https://www.gwsbank.com/onlineserv/HB/ForgottenPW.html","_blank",150);
	oM.makeMenu('menu8_2','menu8',"Have GWSB reset for you", "https://www.gwsbank.com/onlineserv/HB/dimlDisplayer.cgi?DIML_FILE=passwordReset.diml","_blank",150);


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("deposits");
var dropmenu2 = new FindPosition("busdeposits");
var dropmenu3 = new FindPosition("onlinebanking");
var dropmenu4 = new FindPosition("billpay");
var dropmenu5 = new FindPosition("loans");
var dropmenu6 = new FindPosition("info");
var dropmenu7 = new FindPosition("consumeralerts");
var dropmenu8 = new FindPosition("fpw");

function showMenu(menu){
	switch(menu){
		case "menu1":
			oM.m["menu1"].b.moveIt(dropmenu1.xPos-200,dropmenu1.yPos-2);
			break;
		case "menu2":
			oM.m["menu2"].b.moveIt(dropmenu2.xPos-200,dropmenu2.yPos-2);
			break;
		case "menu3":
			oM.m["menu3"].b.moveIt(dropmenu3.xPos-200,dropmenu3.yPos-2);
			break;
		case "menu4":
			oM.m["menu4"].b.moveIt(dropmenu4.xPos-200,dropmenu4.yPos-2);
			break;
		case "menu5":
			oM.m["menu5"].b.moveIt(dropmenu5.xPos-200,dropmenu5.yPos-2);
			break;
		case "menu6":
			oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos+14);
			break;
		case "menu7":
			oM.m["menu7"].b.moveIt(dropmenu7.xPos-155,dropmenu7.yPos-2);
			break;
		case "menu8":
			oM.m["menu8"].b.moveIt(dropmenu8.xPos+40,dropmenu8.yPos+11);
			break;
	} 
	oM.showsub(menu);
}
//end of file