/*** 
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=0
oCMenu.fromLeft=nav_left
oCMenu.fromTop=nav_top   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/" 
oCMenu.onlineRoot="http://www.robbreportcollection.com" 
oCMenu.resizeCheck=1 
oCMenu.wait=250 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=10

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth=nav_width
oCMenu.barHeight="menu" 
oCMenu.barClass=""
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=110
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=-1
oCMenu.level[0].offsetY=-1
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=oCMenu.level[0].width-2
oCMenu.level[1].width=130
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
//oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetX=-1
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=oCMenu.level[0].width-2
oCMenu.level[2].width=140
oCMenu.level[2].height=22
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderX=1
oCMenu.level[2].borderY=0
oCMenu.level[2].align="right" 
//oCMenu.level[2].offsetX=-(oCMenu.level[0].width-2)/2+20
    oCMenu.level[2].offsetX=0    
oCMenu.level[2].offsetY=0
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('topPublications','','&nbsp;Publications','','',118)
oCMenu.makeMenu('subRR_Pub',           'topPublications','Robb Report',                'http://www.robbreport.com/',            '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subRRChina_Pub',      'topPublications','Robb Report China',          'http://www.robbreport.cn/',             '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subRRRussia_Pub',     'topPublications','Robb Report Russia',         'http://www.robbreport.ru/',             '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subRRTurkey_Pub',     'topPublications','Robb Report Turkey',         'http://www.robbreport.com.tr/',         '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subTRRC_Pub',         'topPublications','The Robb Report Collection', 'http://www.robbreportcollection.com/',  '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subShowboats_Pub',    'topPublications','ShowBoats International',    'http://www.showboats.com/',             '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover') 
oCMenu.makeMenu('subAA_Pub',           'topPublications','Art & Antiques',             'http://www.artandantiquesmag.com/',     '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subVacation_Pub',     'topPublications','Robb Report Vacation Homes', 'http://www.vacationhomesmag.com/',      '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover') 
oCMenu.makeMenu('subSarasota_Pub',     'topPublications','Sarasota Magazine',          'http://www.sarasotamagazine.com/',      '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subGulf_Pub',         'topPublications','Gulfshore Life',             'http://www.gulfshorelife.com/',         '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
oCMenu.makeMenu('subSD_Pub',           'topPublications','San Diego Magazine',         'http://www.sandiegomagazine.com/',      '',175, '', '', '', 'clLevel1Small', 'clLevel1Smallover')
*/    
//################################ Article Section is longer required CHANGED BY Michael 10/12/2007

//################################ END NO MORE ARTICLE SECTION

oCMenu.makeMenu('topView_Ads','','&nbsp;View Ads','http://classifieds.robbreportcollection.com/','_blank',102)    
oCMenu.makeMenu('topView_Ads_ArtS_Entertainment',   'topView_Ads','Art &amp; Entertainment',    'http://classifieds.robbreportcollection.com/AdList.aspx?cid=12','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Autos_Other_Vehicles', 'topView_Ads','Autos &amp; Other Vehicles', 'http://classifieds.robbreportcollection.com/AdList.aspx?cid=2','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Aviation',             'topView_Ads','Aviation',                   'http://classifieds.robbreportcollection.com/AdList.aspx?cid=3','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Boats_Yachts',         'topView_Ads','Boats &amp; Yachts',         'http://classifieds.robbreportcollection.com/AdList.aspx?cid=7','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Clubs_Memberships',    'topView_Ads','Clubs &amp; Memberships',    'http://classifieds.robbreportcollection.com/AdList.aspx?cid=4','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Events',               'topView_Ads','Events',                     'http://classifieds.robbreportcollection.com/AdList.aspx?cid=5','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Health_Wellness',      'topView_Ads','Health &amp; Wellness',      'http://classifieds.robbreportcollection.com/AdList.aspx?cid=6','_blank', '175')             
oCMenu.makeMenu('topView_Ads_Home_Products_Decor',  'topView_Ads','Home Products &amp; Decor',  'http://classifieds.robbreportcollection.com/AdList.aspx?cid=8','_blank', '175')  
oCMenu.makeMenu('topView_Ads_Merchandise_Retailers','topView_Ads','Merchandise &amp; Retailers','http://classifieds.robbreportcollection.com/AdList.aspx?cid=9','_blank', '175')  
oCMenu.makeMenu('topView_Ads_Professional_Services','topView_Ads','Professional Services',      'http://classifieds.robbreportcollection.com/AdList.aspx?cid=10','_blank', '175')  
oCMenu.makeMenu('topView_Ads_Real_Estate',          'topView_Ads','Real Estate',                'http://classifieds.robbreportcollection.com/AdList.aspx?cid=1','_blank', '175')  
oCMenu.makeMenu('topView_Ads_Travel',               'topView_Ads','Travel',                   	'http://classifieds.robbreportcollection.com/AdList.aspx?cid=11','_blank', '175')  


oCMenu.makeMenu('topSubscribe','','&nbsp;Subscribe','','',102)
// oCMenu.makeMenu('subRR_Subscr',        'topSubscribe','Robb Report',               'https://www.kable.com/pub/rbrt/subservices.asp')
// Publication was sold    CHANGED BY Michael 02/12/2008 ###### oCMenu.makeMenu('subWorth_Subscr',     'topSubscribe','Worth',                     'https://www.kable.com/pub/rwth/subservices.asp')
// Publication was sold    CHANGED BY Michael 01/23/2009 ###### oCMenu.makeMenu('subMotor_Subscr',     'topSubscribe','Robb Report MotorCycling',  'https://www.kable.com/pub/rmtc/subservices.asp','', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
//oCMenu.makeMenu('subVH_Subscr',        'topSubscribe','Robb Report Vacation Homes','https://www.kable.com/pub/rvch/subservices.asp','', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
oCMenu.makeMenu('subShowboats_Subscr', 'topSubscribe','ShowBoats International',   'https://www.kable.com/pub/shbi/subservices.asp','', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 

/* CHANGE JPR "AA" Subscribe May 2006 */
//oCMenu.makeMenu('subAA_Subscr',        'topSubscribe','Art & Antiques',            'https://www.kable.com/pub/araq/subServices.asp') 

/* CHANGE Juan "AA" Subscribe March 2007 */
//oCMenu.makeMenu('subSD_Subscr',        'topSubscribe','San Diego Magazine',        'https://www.kable.com/pub/sdgm/suball.asp') 
//oCMenu.makeMenu('subSRA_Subscr',       'topSubscribe','Sarasota Magazine',         'http://www.sarasotamagazine.com/subscriptions/New-Subscription-Order-Form.asp') 
//oCMenu.makeMenu('subGSL_Subscr',       'topSubscribe','Gulfshore Life',            'http://www.gulfshorelife.com/subscriptions/New-Subscription-Order-Form.asp') 

oCMenu.makeMenu('topAdvertise','','&nbsp;Advertise','','',98)
//oCMenu.makeMenu('subRR_Advert',        'topAdvertise','Robb Report',               'http://www.robbreport.com/Advertise')
//oCMenu.makeMenu('subTRRC_Advert',      'topAdvertise','The Robb Report Collection','http://www.robbreportcollection.com/Advertise','', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover')    
//oCMenu.makeMenu('subVacation_Advert',  'topAdvertise','Robb Report Vacation Homes','http://www.vacationhomesmag.com/Advertise-Vacation-Homes',                         '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
oCMenu.makeMenu('subShowboats_Advert', 'topAdvertise','ShowBoats International',   'http://www.showboats.com/Resources/Media-Kit',                                '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
//oCMenu.makeMenu('subAA_Advert',        'topAdvertise','Art & Antiques',            'http://www.artandantiquesmag.com/Advertise',                        '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
    
//oCMenu.makeMenu('topPress','','&nbsp;Press','','',68)
//oCMenu.makeMenu('subRR_Press',         'topPress','Robb Report',                   'http://www.robbreport.com/News-and-Press')
// Publication was sold    CHANGED BY Michael 01/23/2009 ###### oCMenu.makeMenu('subMotor_Press',      'topPress','Robb Report MotorCycling',      'http://www.motorcyclingmag.com/News/Index.asp',                                  '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
//oCMenu.makeMenu('subVacation_Press',   'topPress','Robb Report Vacation Homes',    'http://www.vacationhomesmag.com/News/Index.asp',                                 '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 
//oCMenu.makeMenu('subShowboats_Press',  'topPress','ShowBoats International',       'http://www.showboats.com/News-Press/Press-Releases/Index.asp',                   '', '', '35', '', '', 'clLevel1Small', 'clLevel1Smallover') 

//Leave this line - it constructs the menu
oCMenu.construct()