
/*** 
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.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=1
oCMenu.fromLeft=160 
oCMenu.fromTop=35   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="http://www.hilberthomes.com" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
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=83
oCMenu.level[0].height=25 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
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="bottom"

//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=170
oCMenu.level[1].height=25
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width - 25)/2+30
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"



//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=150
oCMenu.level[2].height=25
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
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;&nbsp;Home','/index.php','','65')
	
oCMenu.makeMenu('top1','','&nbsp;Properties','','','90')
	oCMenu.makeMenu('sub10','top1','&nbsp;Featured Properties','/featured/index.php')
	oCMenu.makeMenu('sub11','top1','&nbsp;Homes','')
		oCMenu.makeMenu('','sub11','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=19&submit.y=9&idx=a1')
		oCMenu.makeMenu('','sub11','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a2')
		oCMenu.makeMenu('','sub11','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a3')
		oCMenu.makeMenu('','sub11','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a4')
		oCMenu.makeMenu('','sub11','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a5')
		oCMenu.makeMenu('','sub11','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a6')
		oCMenu.makeMenu('','sub11','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a7')
		oCMenu.makeMenu('','sub11','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=33&submit.y=11&idx=a8')
		oCMenu.makeMenu('','sub11','Over $7 Million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=1&srch=1&max=10&submit.x=31&submit.y=14&idx=a9')
	oCMenu.makeMenu('sub12','top1','&nbsp;Condominiums','')
		oCMenu.makeMenu('','sub12','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=19&submit.y=9&idx=b1')
		oCMenu.makeMenu('','sub12','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b2')
		oCMenu.makeMenu('','sub12','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b3')
		oCMenu.makeMenu('','sub12','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b4')
		oCMenu.makeMenu('','sub12','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b5')
		oCMenu.makeMenu('','sub12','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b6')
		oCMenu.makeMenu('','sub12','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b7')
		oCMenu.makeMenu('','sub12','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b8')
		oCMenu.makeMenu('','sub12','Over $7 million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=2&srch=1&max=10&submit.x=33&submit.y=11&idx=b9')
	oCMenu.makeMenu('sub13','top1','&nbsp;Vacant Land','')
		oCMenu.makeMenu('','sub13','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=19&submit.y=9&idx=c1')
		oCMenu.makeMenu('','sub13','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c2')
		oCMenu.makeMenu('','sub13','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c3')
		oCMenu.makeMenu('','sub13','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c4')
		oCMenu.makeMenu('','sub13','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c5')
		oCMenu.makeMenu('','sub13','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c6')
		oCMenu.makeMenu('','sub13','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c7')
		oCMenu.makeMenu('','sub13','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c8')
		oCMenu.makeMenu('','sub13','Over $7 million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=3&srch=1&max=10&submit.x=33&submit.y=11&idx=c9')
	oCMenu.makeMenu('sub14','top1','&nbsp;Commercial Business','')
		oCMenu.makeMenu('','sub14','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=19&submit.y=9&idx=d1')
		oCMenu.makeMenu('','sub14','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d2')
		oCMenu.makeMenu('','sub14','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d3')
		oCMenu.makeMenu('','sub14','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d4')
		oCMenu.makeMenu('','sub14','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d5')
		oCMenu.makeMenu('','sub14','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d6')
		oCMenu.makeMenu('','sub14','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d7')
		oCMenu.makeMenu('','sub14','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d8')
		oCMenu.makeMenu('','sub14','Over $7 million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=4&srch=1&max=10&submit.x=33&submit.y=11&idx=d9')
	oCMenu.makeMenu('sub15','top1','&nbsp;Commercial Space','')
		oCMenu.makeMenu('','sub15','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=19&submit.y=9&idx=d1')
		oCMenu.makeMenu('','sub15','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d2')
		oCMenu.makeMenu('','sub15','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d3')
		oCMenu.makeMenu('','sub15','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d4')
		oCMenu.makeMenu('','sub15','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d5')
		oCMenu.makeMenu('','sub15','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d6')
		oCMenu.makeMenu('','sub15','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d7')
		oCMenu.makeMenu('','sub15','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d8')
		oCMenu.makeMenu('','sub15','Over $7 million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=5&srch=1&max=10&submit.x=33&submit.y=11&idx=d9')
	oCMenu.makeMenu('sub16','top1','&nbsp;Development','')
		oCMenu.makeMenu('','sub16','All','/current/index.php?kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=19&submit.y=9&idx=d1')
		oCMenu.makeMenu('','sub16','$0 - $250,000','/current/index.php?kval%5Bprice_class_id%5D=1&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d2')
		oCMenu.makeMenu('','sub16','$250,000 - $500,000','/current/index.php?kval%5Bprice_class_id%5D=2&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d3')
		oCMenu.makeMenu('','sub16','$500,000 - $1M','/current/index.php?kval%5Bprice_class_id%5D=3&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d4')
		oCMenu.makeMenu('','sub16','$1M - $2M','/current/index.php?kval%5Bprice_class_id%5D=4&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d5')
		oCMenu.makeMenu('','sub16','$2M - $3.5M','/current/index.php?kval%5Bprice_class_id%5D=5&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d6')
		oCMenu.makeMenu('','sub16','$3.5M - $5M','/current/index.php?kval%5Bprice_class_id%5D=6&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d7')
		oCMenu.makeMenu('','sub16','$5M - $7M','/current/index.php?kval%5Bprice_class_id%5D=7&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d8')
		oCMenu.makeMenu('','sub16','Over $7 million','/current/index.php?kval%5Bprice_class_id%5D=8&kval%5Bproperty_type_id%5D=6&srch=1&max=10&submit.x=33&submit.y=11&idx=d9')
	oCMenu.makeMenu('sub17','top1','&nbsp;Advanced Search','/current/index.php')
		oCMenu.makeMenu('sub19','top1','&nbsp;Search Area Listings','/current/idx.php')
	
oCMenu.makeMenu('top2','','&nbsp;Maps','','','60')
	oCMenu.makeMenu('sub21','top2','&nbsp;Area','/maps/master.php?comm=x')
	oCMenu.makeMenu('sub22','top2','&nbsp;Town of Telluride','/maps/master.php?kval%5Bproperty_name%5D=&kval%5Baddress%5D=&kval%5Bcity%5D=&kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=&kval%5Bcommunity_id%5D=1&kval%5Blocation_type_id%5D=&minval%5Bcount_bedroom%5D=&maxval%5Bcount_bedroom%5D=&minval%5Bcount_bath%5D=&maxval%5Bcount_bath%5D=&minval%5Bsquare_footage%5D=&maxval%5Bsquare_footage%5D=&minval%5Blot_size%5D=&maxval%5Blot_size%5D=&max=20&srch=1%22%82mit.x=29%22%82mit.y=11')
	oCMenu.makeMenu('sub23','top2','&nbsp;Mountain Village','/maps/master.php?kval%5Bproperty_name%5D=&kval%5Baddress%5D=&kval%5Bcity%5D=&kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=&kval%5Bcommunity_id%5D=2&kval%5Blocation_type_id%5D=&minval%5Bcount_bedroom%5D=&maxval%5Bcount_bedroom%5D=&minval%5Bcount_bath%5D=&maxval%5Bcount_bath%5D=&minval%5Bsquare_footage%5D=&maxval%5Bsquare_footage%5D=&minval%5Blot_size%5D=&maxval%5Blot_size%5D=&max=20&srch=1%22%82mit.x=29%22%82mit.y=11')
	oCMenu.makeMenu('sub24','top2','&nbsp;Ski Ranches','/maps/master.php?kval%5Bproperty_name%5D=&kval%5Baddress%5D=&kval%5Bcity%5D=&kval%5Bprice_class_id%5D=&kval%5Bproperty_type_id%5D=&kval%5Bcommunity_id%5D=10&kval%5Blocation_type_id%5D=&minval%5Bcount_bedroom%5D=&maxval%5Bcount_bedroom%5D=&minval%5Bcount_bath%5D=&maxval%5Bcount_bath%5D=&minval%5Bsquare_footage%5D=&maxval%5Bsquare_footage%5D=&minval%5Blot_size%5D=&maxval%5Blot_size%5D=&max=20&srch=1%22%82mit.x=29%22%82mit.y=11')

oCMenu.makeMenu('top3','','&nbsp;Telluride','','','80')
	oCMenu.makeMenu('sub30','top3','&nbsp;Market','/telluride/market.php','','185')
	oCMenu.makeMenu('sub31','top3','&nbsp;History of Telluride','/telluride/history.php','','185')
	oCMenu.makeMenu('sub32','top3','&nbsp;Town of Telluride','/telluride/','','185')
	oCMenu.makeMenu('sub33','top3','&nbsp;Mountain Village','/telluride/mountainvillage.php','','185')
	oCMenu.makeMenu('sub34','top3','&nbsp;Ridgway','/telluride/ridgway.php','','185')
	oCMenu.makeMenu('sub35','top3','&nbsp;Mountain Communities','','','185')
		oCMenu.makeMenu('sub350','sub35','&nbsp;Aldasoro','/telluride/aldasoro.php')
		oCMenu.makeMenu('sub351','sub35','&nbsp;Diamond Ranch','/telluride/diamondranch.php')
		oCMenu.makeMenu('sub352','sub35','&nbsp;Elk Run','/telluride/elkrun.php')
		oCMenu.makeMenu('sub353','sub35','&nbsp;Gray Head','/telluride/grayhead.php')
		oCMenu.makeMenu('sub354','sub35','&nbsp;The Preserve','/telluride/thepreserve.php')
		oCMenu.makeMenu('sub355','sub35','&nbsp;Sunnyside','/telluride/sunnyside.php')
		oCMenu.makeMenu('sub356','sub35','&nbsp;The Ski Ranches','/telluride/theskiranches.php')
		oCMenu.makeMenu('sub357','sub35','&nbsp;West Meadows','/telluride/westmeadows.php')
	oCMenu.makeMenu('sub35x','top3','&nbsp;Resource Links','/linkmachine/resources/resources.html','','185')

oCMenu.makeMenu('top5','','&nbsp;Contact Me','/contact/index.php','','105')

oCMenu.makeMenu('top7','','&nbsp;About','')
	oCMenu.makeMenu('sub70','top7','&nbsp;Biography','/bio/index.php')
	oCMenu.makeMenu('sub71','top7','&nbsp;TREC','http://www.telluriderealtors.com/index.php')
//Leave this line - it constructs the menu
oCMenu.construct()
