// -->
/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//http://www.dhtmlcentral.com/forums/topic.asp?TOPIC_ID=14477

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=5
oCMenu.fromLeft=-1 
oCMenu.fromTop=60
oCMenu.rows=0
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu" 
oCMenu.barHeight="menu" 
oCMenu.barClass="lawyers_guatemala_menu_2"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=193
oCMenu.level[0].height=15 
oCMenu.level[0].regClass="lawyers_guatemala_menu_3"
oCMenu.level[0].overClass="lawyers_guatemala_menu_3_over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="lawyers_guatemala_menu_3_border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="right"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=280
oCMenu.level[1].height=15
oCMenu.level[1].regClass="lawyers_guatemala_menu_4"
oCMenu.level[1].overClass="lawyers_guatemala_menu_4_over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="lawyers_guatemala_menu_4_border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=1000
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="lawyers_guatemala_menu_5"
oCMenu.level[2].overClass="lawyers_guatemala_menu_5_over"
oCMenu.level[2].borderClass="lawyers_guatemala_menu_5_border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','&nbsp;Home','index.htm','_top')  
oCMenu.makeMenu('top1','','&nbsp;About our law firm','about_the_firm.htm','_top') 
oCMenu.makeMenu('top2','','&nbsp;Business law','')	
    oCMenu.makeMenu('sub20','top2','Commercial law, Bl and contracts','commercial_law_contracts.htm','_top')
	oCMenu.makeMenu('sub21','top2','Corporate and securities','corporate_securities.htm','_top')
	oCMenu.makeMenu('sub22','top2','Securities Transaction','securities_transaction.htm','_top')
	oCMenu.makeMenu('sub23','top2','Securitization and Finance','securitization_structured.htm','_top')
	oCMenu.makeMenu('sub24','top2','International Business','international_business.htm','_top')
	oCMenu.makeMenu('sub25','top2','International Energy Practice','international_energy_practice.htm','_top')
	oCMenu.makeMenu('sub26','top2','Project Finance and Development','project_finance_development.htm','_top')
	oCMenu.makeMenu('sub27','top2','Real State','real_state.htm','_top')
	oCMenu.makeMenu('sub28','top2','Labor and Employment','labor_employment.htm','_top')
	oCMenu.makeMenu('sub29','top2','Banking and Finance','banking_finance.htm','_top')
	oCMenu.makeMenu('sub201','top2','Immigration and Naturalization','immigration_naturalization.htm','_top')
	oCMenu.makeMenu('sub202','top2','Mergers and Acquisitions','merges_acquisitions.htm','_top')
	oCMenu.makeMenu('sub203','top2','Probate and State Planning','probate_state_planning.htm','_top')
	oCMenu.makeMenu('sub204','top2','Litigation and dispute resolution','litigation_dispute_resolution.htm','_top')
	
	
oCMenu.makeMenu('top3','','&nbsp;Procurement law','')	
    oCMenu.makeMenu('sub30','top3','Government contracts and procedures','government_contracts.htm','_top')
	oCMenu.makeMenu('sub31','top3','Concession (BOT)','concession_natural_resource.htm','_top')
	oCMenu.makeMenu('sub32','top3','Project and development','project_finance_development.htm','_top')
	
oCMenu.makeMenu('top4','','&nbsp;Intellectual property','intellectual_property.htm','_top')

 
oCMenu.makeMenu('top5','','&nbsp;Construction law','')	
    oCMenu.makeMenu('sub51','top5','Construction law','construction_law.htm','_top')
	oCMenu.makeMenu('sub52','top5','Proyect finance and development','project_finance_development.htm','_top')
	oCMenu.makeMenu('sub53','top5','Real state','real_state.htm','_top')	
	oCMenu.makeMenu('sub54','top5','Litigation and dispute resolution','litigation_dispute_resolution.htm','_top')
	oCMenu.makeMenu('sub55','top5','Labor and employment','labor_employment.htm','_top')
	oCMenu.makeMenu('sub56','top5','Taxation practice','taxation_practice.htm','_top')
	oCMenu.makeMenu('sub57','top5','Securitization and structured finance','securitization_structured.htm','_top')


oCMenu.makeMenu('top6','','&nbsp;Taxation practice','taxation_practice.htm','_top')
	
		
oCMenu.makeMenu('top7','','&nbsp;Foreign investment','')
	oCMenu.makeMenu('sub70','top7','Foreign investment','foreign_invest_privatization.htm','_top')
	oCMenu.makeMenu('sub71','top7','Taxation practice','taxation_practice.htm','_top')
	oCMenu.makeMenu('sub72','top7','International dispute resolution','international_dispute_resolution.htm','_top')
	

oCMenu.makeMenu('top8','','&nbsp;Litigation and dispute resolution','')
	oCMenu.makeMenu('sub80','top8','Construction law and litigation','construction_law_litigation.htm','_top')
	oCMenu.makeMenu('sub81','top8','International dispute resolution','international_dispute_resolution.htm','_top')	
	
	
oCMenu.makeMenu('top9','','&nbsp;Others','','_top')
	oCMenu.makeMenu('sub90','top9','Telecomunication law practice','telecomunicaciones.htm','_top')
	oCMenu.makeMenu('sub91','top9','Wills, trust and practice immigration','wills_trust_practice.htm','_top')	
	
oCMenu.makeMenu('top10','','&nbsp;Guide doing business','guide.htm','_top')	

oCMenu.makeMenu('top11','','&nbsp;Buying Or Selling Business','buying_selling.htm','_top')

oCMenu.makeMenu('top12','','&nbsp;Power of attorney','power_attorney.htm','_top') 

oCMenu.makeMenu('top13','','&nbsp;Copyright','copyright.htm','_top') 

oCMenu.makeMenu('top14','','&nbsp;Notice of disclaimer','notice_disclamer.htm','_top') 

oCMenu.makeMenu('top15','','&nbsp;Links','links.htm','_top')   
   
oCMenu.makeMenu('top16','','&nbsp;Contact us','contact_us.htm','_top')    
    

//Leave this line - it constructs the menu
oCMenu.construct()		



/******************
CM_ADD-IN - foldoutmenu (last updated: 11/14/02)

Test foldoutmenu behaviour.

Only for level 0

*****************/
makeCM.prototype.onshow+="if(l==1) this.foldout(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
makeCM.prototype.foldout=function(pm,x,y,w,h,l){
	//First only toplevel
	c = this
	curr = 0
	pm.mout=""
	for(var i=0;i<c.l[l].m.length;i++){  
		//move back in place, just in case 
		m = this.m[c.l[l].m[i]]
		if(m.b.orgy){
			if(m.b.y!=m.b.orgy) m.b.moveIt(m.b.x,m.b.orgy)
		}
		//find current
		if(curr){ //move'em
			m.b.orgy = m.b.y
			m.b.orgsuby = m.suby
			m.b.moveIt(m.b.x,m.b.y+h)
			m.mover="pm.b.moveIt(pm.b.x,pm.b.orgy)"
		}
		if(c.l[l].m[i] == pm.name) curr = 0
	}
}
makeCM.prototype.onhide+="this.foldin()"
makeCM.prototype.foldin=function(){
	//First only toplevel
	c = this
	curr = 0
	l=0
	for(var i=0;i<c.l[l].m.length;i++){  
		m = this.m[c.l[l].m[i]]
		if(m.b.orgy) m.b.moveIt(m.b.x,m.b.orgy)
	}
}



