jQuery(document).ready(function($){
 $(document.body).append(flexmenu1.menu) //append menu with variable name "flexmenu1" to document
 $(document.body).append(flexmenu2.menu) //append menu with variable name "flexmenu2" to document
 $(document.body).append(flexmenu3.menu) //append menu with variable name "flexmenu3" to document
 $(document.body).append(flexmenu4.menu) //append menu with variable name "flexmenu4" to document
 $(document.body).append(flexmenu5.menu) //append menu with variable name "flexmenu5" to document

 $('#link1').addflexmenu('flexmenu1') //apply flex menu with ID "flexmenu1" to link with ID="link1"
 $('#link2').addflexmenu('flexmenu2') //apply flex menu with ID "flexmenu2" to link with ID="link2"
 $('#link3').addflexmenu('flexmenu3') //apply flex menu with ID "flexmenu3" to link with ID="link3"
 $('#link4').addflexmenu('flexmenu4') //apply flex menu with ID "flexmenu4" to link with ID="link4"
 $('#link5').addflexmenu('flexmenu5') //apply flex menu with ID "flexmenu5" to link with ID="link5"
})




//1st MENU Contents
var flexmenu1=new ddlistmenu('flexmenu1', 'flexdropdownmenu') //var menuvar=new ddlistmenu('menuid', 'menuclass')
flexmenu1.addItem('http://www.dundeereit.com/AboutUs-CorpProfile.html', 'Company Profile', '_self' ) //addItem(url, text, optionaltarget)
flexmenu1.addItem('http://www.dundeereit.com/AboutUs-CorpGovernance.html', 'Corporate Governance', '_self')
flexmenu1.addItem('http://www.dundeereit.com/AboutUs-Team.html', 'Management Team', '_self')
flexmenu1.addItem('http://www.dundeereit.com/AboutUs-Trustees.html', 'Trustees', '_self')
flexmenu1.addItem('http://www.dundeereit.com/AboutUs-Careers.html', 'Careers', '_self')


//2nd MENU Contents
var flexmenu2=new ddlistmenu('flexmenu2', 'flexdropdownmenu') //var menuvar=new ddlistmenu('menuid', 'menuclass')
flexmenu2.addItem('http://www.dundeereit.com/Portfolio-Overview.html', 'Portfolio Overview', '_self' ) 
flexmenu2.addItem('http://www.dundeereit.com/Portfolio-PropDesc.html', 'View Portfolio', '_self')


//3rd MENU Contents
var flexmenu3=new ddlistmenu('flexmenu3', 'flexdropdownmenu') //var menuvar=new ddlistmenu('menuid', 'menuclass')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-FinReports2011.html', 'Financial Reports', '_self' ) 
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-RegFilings2012.html', 'Regulatory Filings', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-Distributions2012.html', 'Distribution History', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-Drip.html', 'DRIP & Unit Purchase Plan', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-Tax.html', 'Taxation of Unitholders', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-StockQuote.html', 'Stock Quote', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-AnalystCoverage.html', 'Analyst Coverage', '_self')
flexmenu3.addItem('http://www.dundeereit.com/InvestInfo-GInv-G2011.html', 'German Investors', '_self')



//4th MENU Contents
var flexmenu4=new ddlistmenu('flexmenu4', 'flexdropdownmenu') //var menuvar=new ddlistmenu('menuid', 'menuclass')
flexmenu4.addItem('http://www.dundeereit.com/NewsEvents-Calendar.html', 'Calendar of Events', '_self' ) 
flexmenu4.addItem('http://www.dundeereit.com/NewsEvents-PressRel2012.html', 'Press Releases', '_self')


//5th MENU Contents
var flexmenu5=new ddlistmenu('flexmenu5', 'flexdropdownmenu') //var menuvar=new ddlistmenu('menuid', 'menuclass')
flexmenu5.addItem('http://www.dundeereit.com/ContactUs-Info.html', 'Contact Info', '_self' ) 
flexmenu5.addItem('http://www.dundeereit.com/ContactUs-NewsAlert.html', 'News Alert E-mails', '_self')

