var NS = 0;
var NS4 = 0;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 5)
{ NS = 1; }
if (browserName == "Netscape" && browserVer < 5)
{ NS4 = 1; }

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=100
oCMenu.rows=1
oCMenu.menuPlacement="center"


if (NS == 1) {oCMenu.menuPlacementExtra=9}
else {oCMenu.menuPlacementExtra=-10}
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=300
oCMenu.fillImg="http://castellanarealty.com/images/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=0

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=195
oCMenu.level[0].height=30 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=1
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="left"
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=195
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].rows=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="bottom"

oCMenu.level[1].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[1].clippx=100 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCMenu.level[1].cliptim=100 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the supported browsers
oCMenu.level[1].filter=1 //VALUE: 1 || "filter specs"


/******************************************
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('top6','','buy','','','141','30','http://castellanarealty.com/images/nav_buy.gif','http://castellanarealty.com/images/nav_buy_on.gif','','','','','','','','')
	oCMenu.makeMenu('sub01','top6','Featured Homes','http://castellanarealty.com/featuredhomes.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub02','top6','Search for Your Home','http://castellanahomes.idxre.com/idx/search.cfm?ll=1&cid=2177','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub03','top6','Set up Listings Alert','http://castellanahomes.idxre.com/idx/co/searchProfile.cfm?ll=1&cid=2177','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub04','top6','Property Organizer','http://castellanahomes.mlsb.com/mls/co/login.cfm?cid=2177','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub05','top6','Looking for a Fixer Upper?','http://castellanarealty.com/buy_fixerupper.html','','195','','','','','','','','','','','')
	

oCMenu.makeMenu('top0','','sell','','','130','30','http://castellanarealty.com/images/nav_sell.gif','http://castellanarealty.com/images/nav_sell_on.gif','','','','','','','','')
	oCMenu.makeMenu('sub07','top0','Featured Homes','http://castellanarealty.com/featuredhomes.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub08','top0','Our Sales Strategy','http://castellanarealty.com/sell_strategy.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub09','top0','What is my home worth?','http://ihomefinder.com/idx/valuation.cfm?cid=2177&st=10&fe=1','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub10','top0','Marketing For Top Dollar','http://castellanarealty.com/sell_salesmarketing.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub11','top0','How much did it sell for?','http://castellanarealty.com/sell_howmuch.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub12','top0','Prepare your home to sell','http://castellanarealty.com/sell_prepare.html','','195','','','','','','','','','','','')

oCMenu.makeMenu('top1','','blog','http://www.castellanarealty.com/blog','','126','30','http://castellanarealty.com/images/nav_blog.gif','http://castellanarealty.com/images/nav_blog_on.gif','','','','','','','','')

oCMenu.makeMenu('top2','','success stories','','','216','30','http://castellanarealty.com/images/nav_success.gif','http://castellanarealty.com/images/nav_success_on.gif','','','','','','','','')
	oCMenu.makeMenu('sub14','top2','Extreme makeover generates high sale price','http://castellanarealty.com/case_makeover.html','','285','','','','','','','','','','','')
	oCMenu.makeMenu('sub15','top2','Turnkey in two weeks leads to quick sale','http://castellanarealty.com/case_turnkey.html','','285','','','','','','','','','','','')
	
oCMenu.makeMenu('top3','','resources','','','167','30','http://castellanarealty.com/images/nav_resources.gif','http://castellanarealty.com/images/nav_resources_on.gif','','','','','','','','')
	oCMenu.makeMenu('sub18','top3','Mortgage Calculator','http://ihomefinder.com/idx/mortcalc.cfm?cid=2177&st=2&fe=1','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub19','top3','Community Information','http://castellanarealty.com/resources_communityinfo.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub20','top3','Moving Guide','http://castellanarealty.com/moversguide.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub21','top3','What to Ask Home Inspectors','http://castellanarealty.com/resources_inspection.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub22','top3','What an inspection should cover','http://castellanarealty.com/resources_inspection_cover.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub23','top3','Stress-free Homebuying Tips','http://castellanarealty.com/stressfree.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub24','top3','Reduce Homeowner Insurance Costs','http://castellanarealty.com/resources_insurance.html','','195','','','','','','','','','','','')
	
	
oCMenu.makeMenu('top4','','about castellana','','','195','30','http://castellanarealty.com/images/nav_about.gif','http://castellanarealty.com/images/nav_about_on.gif','','','','','','','','')
	oCMenu.makeMenu('sub27','top4','About Us','http://castellanarealty.com/about_philosophy.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub28','top4','Meet Our Team','http://castellanarealty.com/about_team.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub29','top4','Testimonials','http://castellanarealty.com/testimonials.html','','195','','','','','','','','','','','')
	oCMenu.makeMenu('sub30','top4','Newsletter','http://castellanarealty.com/newsletter.html','','195','','','','','','','','','','','')

oCMenu.construct()			
				

