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,10,0,0,0);
//oM.level[0].filter="PROGID:DXImageTransform.Microsoft.Alpha(opacity=97, finishopacity=87, style=1)";
oM.level[1]=new cm_makeLevel(200,28,"item_off","item_on",1,1,"bordercolor",0,"right",0,-3,imgdir+"tri.gif",5,10);
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) 
*************************************/

//ADVOCACY
oM.makeMenu('menu1');
oM.makeMenu('menu1_1','menu1',"Government Influence", "http://www.gcua.org/advocacy/government_influence/index.php");	
oM.makeMenu('menu1_2','menu1',"Public Influence", "http://www.gcua.org/advocacy/public_influence/index.php");
oM.makeMenu('menu1_3','menu1',"Regulatory Influence", "http://www.gcua.org/advocacy/regulatory_influence/index.php");
oM.makeMenu('menu1_4','menu1',"Legislative Issues", "http://www.gcua.org/advocacy/legislative_issues/index.php");	
oM.makeMenu('menu1_5','menu1',"Regulations", "http://www.gcua.org/advocacy/regulations/index.php");	
oM.makeMenu('menu1_6','menu1',"Credit Union Issues", "http://www.gcua.org/advocacy/cu_issues/index.php");
oM.makeMenu('menu1_7','menu1',"Contacts", "http://www.gcua.org/advocacy/contacts/advo_team.php");	
oM.makeMenu('menu1_8','menu1',"Advocacy Roadmap", "http://www.gcua.org/advocacy/docs/advo_roadmap_2012.pdf","_blank");

//COMPLIANCE RESOURCES
oM.makeMenu('menu2');
oM.makeMenu('menu2_1','menu2',"InfoSight On-Line Compliance Resources","http://ga.leagueinfosight.com/","_blank",215,35);	
oM.makeMenu('menu2_18','menu2',"Compliance Calendar","http://ga.leagueinfosight.com/Compliance_Calendar_16378.html","_blank",215,35);
oM.makeMenu('menu2_20','menu2',"Credit Union Compliance Specialist Program","http://www.gcua.org/compliance/cu_compliance/compliance_specialist.php","_self",215,35);
oM.makeMenu('menu2_21','menu2',"Compliance Publications","http://www.gcua.org/compliance/publications/index.php","_self",215,35);
oM.makeMenu('menu2_22','menu2',"Compliance Hotline","http://www.gcua.org/compliance/index.php#hotline","_self",215,35);
oM.makeMenu('menu2_23','menu2',"Compliance Conference Calls","http://www.gcua.org/compliance/cc_calls/index.php","_self",215,35);
oM.makeMenu('menu2_24','menu2',"Other Compliance Resources","http://www.gcua.org/compliance/other/index.php","_self",215,35);
oM.makeMenu('menu2_25','menu2',"Website Marketing &amp; Compliance Guide","http://www.gcua.org/compliance/index.php#webguide","_self",215,35);

//CU GROWTH SUPPORT
oM.makeMenu('menu3');
oM.makeMenu('menu3_1','menu3',"Consultative Assistance", "http://www.gcua.org/products/consulting/index.php","_self",215,35);	
oM.makeMenu('menu3_2','menu3',"Charter Expansion Services", "http://www.gcua.org/cu_growth/charter_svcs/index.php","_self",215,35);
oM.makeMenu('menu3_3','menu3',"Professional Development", "http://training.gcua.org/","_self",215,35);	
oM.makeMenu('menu3_4','menu3',"Strategic Planning", "http://www.gcua.org/products/planning/index.php","_self",215,35);	
oM.makeMenu('menu3_5','menu3',"Marketing Services", "http://www.growthbydesign.org/","_blank",215,35);
oM.makeMenu('menu3_6','menu3',"Member Recruitment & Retention", "http://www.gcua.org/products/consulting/member_retention.php","_self",215,35);
oM.makeMenu('menu3_7','menu3',"Shared Service Distribution","http://www.gcua.org/products/shared_service/index.php","_self",215,35);	
oM.makeMenu('menu3_8','menu3',"Networking Councils", "http://www.gcua.org/cu_growth/councils/index.php","_self",215,35);
oM.makeMenu('menu3_9','menu3',"Foundation", "http://www.gcua.org/cu_growth/foundation/index.php","_self",215,35);	
oM.makeMenu('menu3_10','menu3',"Web Services", "http://www.cusupportnet.org/","_blank",215,35);
	
//PRODUCTS AND SERVICES
oM.makeMenu('menu4');
oM.makeMenu('menu4_1','menu4',"Quick Reference Guide", "http://www.gcua.org/products/quickguide1210.pdf","_blank");
oM.makeMenu('menu4_2','menu4',"Check-Initiated Payments", "http://www.gcua.org/products/check_payments/index.php");	
oM.makeMenu('menu4_3','menu4',"Card-Initiated Payments", "http://www.gcua.org/products/card_payments/index.php");	
oM.makeMenu('menu4_4','menu4',"Shared Service Distribution", "http://www.gcua.org/products/shared_service/index.php");	
oM.makeMenu('menu4_5','menu4',"ACH", "http://www.gcua.org/products/ach/index.php");
oM.makeMenu('menu4_6','menu4',"Member Data Match Services", "http://www.gcua.org/products/member_match/index.php");	
oM.makeMenu('menu4_7','menu4',"Statements", "http://www.gcua.org/products/statements/index.php");	
oM.makeMenu('menu4_8','menu4',"Auditing Services", "http://www.gcua.org/products/audit/index.php");
oM.makeMenu('menu4_9','menu4',"Marketing Services","http://www.growthbydesign.org/","_blank");
oM.makeMenu('menu4_10','menu4',"Human Resources","http://www.gcua.org/products/human_resources/index.php");	
oM.makeMenu('menu4_11','menu4',"Information Technology Services","http://www.gcua.org/products/it_svc/index.php","_self",200,35);
oM.makeMenu('menu4_12','menu4',"Web Services","http://www.cusupportnet.org/","_blank");
oM.makeMenu('menu4_13','menu4',"Consultative Assistance","http://www.gcua.org/products/consulting/index.php");	
oM.makeMenu('menu4_14','menu4',"Professional Development","http://training.gcua.org/");	
oM.makeMenu('menu4_15','menu4',"Strategic Planning","http://www.gcua.org/products/planning/index.php");
oM.makeMenu('menu4_16','menu4',"Brokerage Services","http://www.cunamutual.com/portal/server.pt?open=514&objID=361107&mode=2","_blank");
oM.makeMenu('menu4_17','menu4',"CSSI","http://www.gcua.org/products/cssi/index.php");

//FORMS AND APPLICATIONS
oM.makeMenu('menu5');
oM.makeMenu('menu5_1','menu5',"Publications", "#");
oM.makeMenu('menu5_2','menu5',"CU Press Links", "#");
oM.makeMenu('menu5_6','menu5',"Filene Institute", "#");


//SYSTEM PARTNERS
oM.makeMenu('menu6');
oM.makeMenu('menu6_1','menu6',"CUNA", "http://www.cuna.org/",'_blank',208,35);
oM.makeMenu('menu6_2','menu6',"CUNA Mutual","http://www.cunamutual.com/cmg/home/",'_blank',208,35);
oM.makeMenu('menu6_3','menu6',"Catalyst Corporate FCU","http://www.swcorp.org",'_blank',208,35);
oM.makeMenu('menu6_4','menu6',"Other State Leagues","http://www.cuna.org/cuna/lg_roster.html",'_blank',208,35);
oM.makeMenu('menu6_5','menu6',"Georgia Credit Union Executives Association","http://gcuea.gcua.org/",'_blank',208,35);
oM.makeMenu('menu6_6','menu6',"GettingAhead Association","http://www.gettingaheadassoc.org/",'_blank',208,35);


//ABOUT US
oM.makeMenu('menu7');
oM.makeMenu('menu7_1','menu7',"Contact Us", "http://www.gcua.org/about_us/contact/contact.php","_self",208,35);
oM.makeMenu('menu7_2','menu7',"Cooperative Principles","http://www.gcua.org/about_us/principles/principles.php","_self",208,35);
oM.makeMenu('menu7_3','menu7',"2012 Resource Guide","http://www.gcua.org/about_us/resource_guide/index.php","_self",208,35);
oM.makeMenu('menu7_4','menu7',"2012 Strategic Plan","http://www.gcua.org/about_us/gcul/pvt_pdf/2012_Strategic_Plan.pdf","_blank",208,35);
oM.makeMenu('menu7_5','menu7',"Chapter Information","http://www.gcua.org/about_us/chapters/index.php","_self",208,35);
oM.makeMenu('menu7_6','menu7',"Georgia Credit Union Affiliates","http://www.gcua.org/about_us/gcua/index.php","_self",208,35);	
oM.makeMenu('menu7_7','menu7',"Georgia Credit Union League","http://www.gcua.org/about_us/gcul/index.php","_self",208,35);	
oM.makeMenu('menu7_8','menu7',"Cooperative Services, Inc.","http://www.gcua.org/about_us/csi/index.php","_self",208,35);	
oM.makeMenu('menu7_9','menu7',"PCSi","http://www.gcua.org/about_us/pcsi/index.php","_self",208,35);
oM.makeMenu('menu7_10','menu7',"Other Support Organizations","/about_us/other/index.php","_self",208,35);	
oM.makeMenu('menu7_11','menu7',"Regional &amp; National Support Organizations","/about_us/regional_national_support_orgs/index.php","_self",208,35);

	
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("ADVOCACY");
var dropmenu2 = new FindPosition("COMPLIANCE");
var dropmenu3 = new FindPosition("CUGROWTH");
var dropmenu4 = new FindPosition("PS");
var dropmenu5 = new FindPosition("CONSUMER");
var dropmenu6 = new FindPosition("SYSTEM");
var dropmenu7 = new FindPosition("ABOUT");

function showMenu(menu){
	switch(menu){
		case "menu1":
		oM.m["menu1"].b.moveIt(dropmenu1.xPos,dropmenu1.yPos + 24);
		break;
		case "menu2":
		oM.m["menu2"].b.moveIt(dropmenu2.xPos,dropmenu2.yPos + 24);
		break;
		case "menu3":
		oM.m["menu3"].b.moveIt(dropmenu3.xPos,dropmenu3.yPos + 24);
		break;
		case "menu4":
		oM.m["menu4"].b.moveIt(dropmenu4.xPos,dropmenu4.yPos + 24);
		break;
		case "menu5":
		oM.m["menu5"].b.moveIt(dropmenu5.xPos,dropmenu5.yPos + 24);
		break;
		case "menu6":
		oM.m["menu6"].b.moveIt(dropmenu6.xPos,dropmenu6.yPos + 24);
		break;
		case "menu7":
		oM.m["menu7"].b.moveIt(dropmenu7.xPos,dropmenu7.yPos + 24);
		break;
	} 
	oM.showsub(menu);
}
