//Extra code to find position:
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
        x+=temp.offsetLeft
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos()


//Create menu object
oCMenu=new makeCM("oCMenu") 

//Set frames off
oCMenu.frames = 0

//Menu properties   
oCMenu.pxBetween=0

// New code
//oCMenu.fromLeft=!bw.ns4?cmpage.x2 - 880:cmpage.x2 - 176
//oCMenu.onresize="oCMenu.fromLeft=cmpage.x2 - 880"
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"
// End new code

//oCMenu.fromTop=155
oCMenu.rows=1 

// New code
oCMenu.menuPlacement=0
// End new code


//New menu properties 02-Jun-03
oCMenu.openOnClick=1
oCMenu.closeOnClick=0
                                                  
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="http://tourism.southburnett.com.au/" 
oCMenu.resizeCheck=1 
oCMenu.wait=600 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties (if 0, background bar is set off)
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=""


//Top level menu properties 
oCMenu.level[0]=new cm_makeLevel() 
oCMenu.level[0].width=84
oCMenu.level[0].height=19 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
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"

//Level 1 menu properties
oCMenu.level[1]=new cm_makeLevel() 
oCMenu.level[1].width=160
oCMenu.level[1].height=19
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
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=-1
oCMenu.level[1].borderClass="clLevel1border"


/******************************************
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','http://tourism.southburnett.com.au/','')
        oCMenu.makeMenu('sub00','top0','&nbsp;South Burnett Tourism','http://tourism.southburnett.com.au/')
        oCMenu.makeMenu('sub01','top0','&nbsp;South Burnett Cuisine','http://cuisine.southburnett.com.au')
        oCMenu.makeMenu('sub02','top0','&nbsp;South Burnett Wine','http://southburnettwine.com.au')
        oCMenu.makeMenu('sub03','top0','&nbsp;South Burnett Online','http://southburnett.com.au')
        oCMenu.makeMenu('sub04','top0','&nbsp;South Burnett Biz','http://southburnett.biz')        
 
oCMenu.makeMenu('top1','','&nbsp;Maps','http://tourism.southburnett.com.au/maplocation.htm')        
        oCMenu.makeMenu('sub10','top1','&nbsp;Location Map','http://tourism.southburnett.com.au/maplocation.htm')
        oCMenu.makeMenu('sub11','top1','&nbsp;Tourist Map','http://tourism.southburnett.com.au/maptour.htm')
        oCMenu.makeMenu('sub12','top1','&nbsp;Wine Trail Map','http://tourism.southburnett.com.au/mapwine.htm')       
	
oCMenu.makeMenu('top2','','&nbsp;Towns','http://tourism.southburnett.com.au/townoverview.htm')
        oCMenu.makeMenu('sub20','top2','&nbsp;Overview','http://tourism.southburnett.com.au/townoverview.htm')
        oCMenu.makeMenu('sub21','top2','&nbsp;Blackbutt','http://tourism.southburnett.com.au/townblackbutt.htm')
        oCMenu.makeMenu('sub22','top2','&nbsp;Yarraman','http://tourism.southburnett.com.au/townyarraman.htm')
	oCMenu.makeMenu('sub23','top2','&nbsp;Nanango','http://tourism.southburnett.com.au/townnanango.htm')
	oCMenu.makeMenu('sub24','top2','&nbsp;Bunya Mountains','http://tourism.southburnett.com.au/townbunya.htm')
	oCMenu.makeMenu('sub25','top2','&nbsp;Kingaroy','http://tourism.southburnett.com.au/townkingaroy.htm')
	oCMenu.makeMenu('sub26','top2','&nbsp;Wondai','http://tourism.southburnett.com.au/townwondai.htm')
	oCMenu.makeMenu('sub27','top2','&nbsp;Proston &amp; Lake Boondooma','http://tourism.southburnett.com.au/townproston.htm')
	oCMenu.makeMenu('sub28','top2','&nbsp;Murgon/Bjelke-Petersen Dam','http://tourism.southburnett.com.au/townmurgon.htm')
	oCMenu.makeMenu('sub29','top2','&nbsp;Cherbourg','http://tourism.southburnett.com.au/towncherbourg.htm')
	oCMenu.makeMenu('sub210','top2','&nbsp;Goomeri','http://tourism.southburnett.com.au/towngoomeri.htm')
	oCMenu.makeMenu('sub211','top2','&nbsp;Kilkivan','http://tourism.southburnett.com.au/townkilkivan.htm')


oCMenu.makeMenu('top3','','&nbsp;Staying Here','http://tourism.southburnett.com.au/accomoverview.htm')
        oCMenu.makeMenu('sub30','top3','&nbsp;Overview','http://tourism.southburnett.com.au/accomoverview.htm')
        oCMenu.makeMenu('sub31','top3','&nbsp;Motels','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=motelx')
	oCMenu.makeMenu('sub32','top3','&nbsp;Hotels','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=hotelx')
	oCMenu.makeMenu('sub33','top3','&nbsp;Hotel-Motels','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=hotel-motelx')
	oCMenu.makeMenu('sub34','top3','&nbsp;Caravan Parks','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=caravan')
	oCMenu.makeMenu('sub35','top3','&nbsp;Tourist Parks','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=tourist')
	oCMenu.makeMenu('sub36','top3','&nbsp;Bed &amp; Breakfasts','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=bed')
	oCMenu.makeMenu('sub37','top3','&nbsp;Host Farms','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=host')
	oCMenu.makeMenu('sub38','top3','&nbsp;Cabins/Holiday Homes','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=cabin')
	oCMenu.makeMenu('sub39','top3','&nbsp;Conference Venues','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=venue')

oCMenu.makeMenu('top4','','&nbsp;Whats On','http://tourism.southburnett.com.au/cgi-bin/calendar/calendart.cgi') 
        oCMenu.makeMenu('sub40','top4','&nbsp;Overview','http://tourism.southburnett.com.au/whatson.htm')        
	oCMenu.makeMenu('sub41','top4','&nbsp;Daily Events Calendar','http://southburnett.com.au/cgi-bin/calendar/calendart.cgi')
	
oCMenu.makeMenu('top5','','&nbsp;Attractions','http://tourism.southburnett.com.au/attractoverview.htm') 
        oCMenu.makeMenu('sub50','top5','&nbsp;Overview','http://tourism.southburnett.com.au/attractoverview.htm')
        oCMenu.makeMenu('sub51','top5','&nbsp;Wineries and Cellar Doors','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=winex')
	oCMenu.makeMenu('sub52','top5','&nbsp;Tours','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=tours')
	oCMenu.makeMenu('sub53','top5','&nbsp;Arts & Crafts','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=art')
	oCMenu.makeMenu('sub54','top5','&nbsp;Antiques','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=antiques')
	oCMenu.makeMenu('sub55','top5','&nbsp;Museums','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=museum')
	oCMenu.makeMenu('sub56','top5','&nbsp;Clubs','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=clubx')
	oCMenu.makeMenu('sub57','top5','&nbsp;Parks','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=parkland')
	oCMenu.makeMenu('sub58','top5','&nbsp;Water Sports','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=aquatics')
	oCMenu.makeMenu('sub59','top5','&nbsp;Entertainment','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=entertainment')
	oCMenu.makeMenu('sub510','top5','&nbsp;All Attractions','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=attraction')
	
oCMenu.makeMenu('top6','','&nbsp;Eating Out','http://tourism.southburnett.com.au/eatoverview.htm') 
        oCMenu.makeMenu('sub60','top6','&nbsp;Overview','http://tourism.southburnett.com.au/eatoverview.htm')	
	oCMenu.makeMenu('sub61','top6','&nbsp;Restaurants','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=restaurant')	
	oCMenu.makeMenu('sub62','top6','&nbsp;Cafes','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=cafex')
	oCMenu.makeMenu('sub63','top6','&nbsp;Fast Food','http://southburnett.com.au/cgi-bin/tourismdb/display.cgi?search=1&searchtext=fast')
	oCMenu.makeMenu('sub64','top6','&nbsp;South Burnett Cuisine','http://cuisine.southburnett.com.au')
        oCMenu.makeMenu('sub65','top6','&nbsp;South Burnett Wine','http://southburnettwine.com.au')	
	
oCMenu.makeMenu('top7','','&nbsp;Amenities','http://tourism.southburnett.com.au/amenoverview.htm')
        oCMenu.makeMenu('sub70','top7','&nbsp;Overview','http://tourism.southburnett.com.au/amenoverview.htm')
        oCMenu.makeMenu('sub71','top7','&nbsp;Visitor Information Centres','http://tourism.southburnett.com.au/amenvics.htm')	
        oCMenu.makeMenu('sub72','top7','&nbsp;Local Media','http://tourism.southburnett.com.au/amenmedia.htm')	
	oCMenu.makeMenu('sub73','top7','&nbsp;Banks','http://tourism.southburnett.com.au/amenbanks.htm')
	oCMenu.makeMenu('sub74','top7','&nbsp;Post Offices','http://tourism.southburnett.com.au/amenpostoffices.htm')	
	oCMenu.makeMenu('sub75','top7','&nbsp;Petrol Stations','http://tourism.southburnett.com.au/amenpetrol.htm')	
	oCMenu.makeMenu('sub76','top7','&nbsp;Internet Cafes','http://tourism.southburnett.com.au/ameninternet.htm')		
        oCMenu.makeMenu('sub77','top7','&nbsp;Weather','http://tourism.southburnett.com.au/amenweather.htm')	
        oCMenu.makeMenu('sub78','top7','&nbsp;South Burnett Online','http://southburnett.com.au')	
            

oCMenu.makeMenu('top8','','&nbsp;Bookings','http://tourism.southburnett.com.au/bookings.htm')
	

//Leave this line - it constructs the menu
oCMenu.construct()		



