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 + 1 y+=el.offsetTop } //Returning the x and y as an array, iain-numbers below position absolute menu return [x,y] //return [258, 110]; } pos = findPos() ; //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname oCMenu.fromLeft=pos[0] oCMenu.fromTop=pos[1] //We also need to "re place" the menu on resize. So: oCMenu.onresize="pos = findPos();oCMenu.fromLeft=pos[0];oCMenu.fromTop=pos[1];" //Menu properties oCMenu.pxBetween=1; oCMenu.rows=1; oCMenu.menuPlacement=0; oCMenu.offlineRoot="/" ; oCMenu.onlineRoot=""; oCMenu.resizeCheck=1; oCMenu.wait=500; oCMenu.fillImg="/images/menu/cm_fill.gif"; oCMenu.zIndex=0; //Background bar properties oCMenu.useBar=1; oCMenu.barWidth="menu"; oCMenu.barHeight="menu"; oCMenu.barClass="clBar"; oCMenu.barX="menu"; oCMenu.barY="menu"; oCMenu.barBorderX=0; oCMenu.barBorderY=0; oCMenu.barBorderClass=""; //Level properties - ALL properties have to be specified in level 0 oCMenu.level[0]=new cm_makeLevel(); //Add this for each new level - offset - change this to align submenus //oCMenu.level[0].width=100; oCMenu.level[0].height=20; 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=10; oCMenu.level[0].offsetY=0; oCMenu.level[0].rows=0; oCMenu.level[0].align="bottom"; // Alignment of child menu oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"; oCMenu.level[1]=new cm_makeLevel(); //Add this for each new level //oCMenu.level[1].width=180; oCMenu.level[1].regClass="clLevel1"; oCMenu.level[1].overClass="clLevel1over"; oCMenu.level[1].borderClass="clLevel1border"; oCMenu.level[1].align="right"; // Alignment of child menu oCMenu.level[1].offsetX=1; oCMenu.level[1].offsetY=-1; oCMenu.level[1].arrowWidth=5; oCMenu.level[1].arrowHeight=5; oCMenu.makeMenu('0','',' Home', '/','',78.85); oCMenu.makeMenu('0_1','','Destinations', '/destinations','',146.85) oCMenu.makeMenu('0_1_1','0_1','Cape Town', '/destinations/cape_town','',150) oCMenu.makeMenu('0_1_1_1','0_1_1','City Bowl', '/destinations/cape_town/city_bowl','',200) oCMenu.makeMenu('0_1_1_2','0_1_1','Sea Point', '/destinations/cape_town/sea_point','',200) oCMenu.makeMenu('0_1_1_3','0_1_1','Waterfront', '/destinations/cape_town/waterfront','',200) oCMenu.makeMenu('0_1_1_4','0_1_1','De Waterkant Village', '/destinations/cape_town/de_waterkant_village','',200) oCMenu.makeMenu('0_1_1_5','0_1_1','Camps Bay and Clifton', '/destinations/cape_town/camps_bay_and_clifton','',200) oCMenu.makeMenu('0_1_1_6','0_1_1','Cape Town Tours', '/destinations/cape_town/cape_town_tours','',200) oCMenu.makeMenu('0_1_1_7','0_1_1','All Hotels in Cape Town', '/destinations/cape_town/all_hotels_in_cape_town','',200) oCMenu.makeMenu('0_1_1_8','0_1_1','Getting There', '/destinations/cape_town/getting_there','',200) oCMenu.makeMenu('0_1_1_9','0_1_1','Facts and Info', '/destinations/cape_town/facts_and_info','',200) oCMenu.makeMenu('0_1_1_10','0_1_1','Map of Cape Town', '/destinations/cape_town/map_of_cape_town','',200) oCMenu.makeMenu('0_1_2','0_1','Kruger National Park', '/destinations/kruger_national_park','',150) oCMenu.makeMenu('0_1_2_1','0_1_2','Sabi Sand', '/destinations/kruger_national_park/sabi_sand','',200) oCMenu.makeMenu('0_1_2_2','0_1_2','Timbavati Reserve', '/destinations/kruger_national_park/timbavati_reserve','',200) oCMenu.makeMenu('0_1_2_3','0_1_2','Manyeleti Reserve', '/destinations/kruger_national_park/manyeleti_reserve','',200) oCMenu.makeMenu('0_1_2_4','0_1_2','Thornybush Reserve', '/destinations/kruger_national_park/thornybush_reserve','',200) oCMenu.makeMenu('0_1_2_5','0_1_2','Kruger Private Concessions', '/destinations/kruger_national_park/kruger_private_concessions','',200) oCMenu.makeMenu('0_1_2_6','0_1_2','Kruger Surrounds', '/destinations/kruger_national_park/kruger_surrounds','',200) oCMenu.makeMenu('0_1_2_7','0_1_2','Kruger Park Tours', '/destinations/kruger_national_park/kruger_park_tours','',200) oCMenu.makeMenu('0_1_2_8','0_1_2','All Kruger Park Lodges', '/destinations/kruger_national_park/all_kruger_park_lodges','',200) oCMenu.makeMenu('0_1_2_9','0_1_2','Getting There', '/destinations/kruger_national_park/getting_there','',200) oCMenu.makeMenu('0_1_2_10','0_1_2','Facts and Info', '/destinations/kruger_national_park/facts_and_info','',200) oCMenu.makeMenu('0_1_2_11','0_1_2','Map of Kruger Park', '/destinations/kruger_national_park/map_of_kruger_park','',200) oCMenu.makeMenu('0_1_3','0_1','Cape Winelands', '/destinations/cape_winelands','',150) oCMenu.makeMenu('0_1_3_1','0_1_3','Paarl', '/destinations/cape_winelands/paarl','',200) oCMenu.makeMenu('0_1_3_2','0_1_3','Stellenbosch', '/destinations/cape_winelands/stellenbosch','',200) oCMenu.makeMenu('0_1_3_3','0_1_3','Franschhoek', '/destinations/cape_winelands/franschhoek','',200) oCMenu.makeMenu('0_1_3_4','0_1_3','Cape Winelands Tours', '/destinations/cape_winelands/cape_winelands_tours','',200) oCMenu.makeMenu('0_1_3_5','0_1_3','All Cape Winelands Accommodation', '/destinations/cape_winelands/all_cape_winelands_accommodation','',200) oCMenu.makeMenu('0_1_3_6','0_1_3','Getting There', '/destinations/cape_winelands/getting_there','',200) oCMenu.makeMenu('0_1_3_7','0_1_3','Facts and Info', '/destinations/cape_winelands/facts_and_info','',200) oCMenu.makeMenu('0_1_3_8','0_1_3','Cape Winelands Map', '/destinations/cape_winelands/cape_winelands_map','',200) oCMenu.makeMenu('0_1_4','0_1','Garden Route', '/destinations/garden_route','',150) oCMenu.makeMenu('0_1_4_1','0_1_4','Knysna and Plettenberg Bay', '/destinations/garden_route/knysna_and_plettenberg_bay','',200) oCMenu.makeMenu('0_1_4_2','0_1_4','Garden Route Safaris', '/destinations/garden_route/garden_route_safaris','',200) oCMenu.makeMenu('0_1_4_3','0_1_4','Hermanus', '/destinations/garden_route/hermanus','',200) oCMenu.makeMenu('0_1_4_4','0_1_4','Route 62', '/destinations/garden_route/route_62','',200) oCMenu.makeMenu('0_1_4_5','0_1_4','Garden Route Tours', '/destinations/garden_route/garden_route_tours','',200) oCMenu.makeMenu('0_1_4_6','0_1_4','All Garden Route Hotels', '/destinations/garden_route/all_garden_route_hotels','',200) oCMenu.makeMenu('0_1_4_7','0_1_4','Getting There', '/destinations/garden_route/getting_there','',200) oCMenu.makeMenu('0_1_4_8','0_1_4','Facts and Info', '/destinations/garden_route/facts_and_info','',200) oCMenu.makeMenu('0_1_4_9','0_1_4','Map of Garden Route', '/destinations/garden_route/map_of_garden_route','',200) oCMenu.makeMenu('0_1_5','0_1','Sun City Resort', '/destinations/sun_city_resort','',150) oCMenu.makeMenu('0_1_5_1','0_1_5','All Sun City Hotels', '/destinations/sun_city_resort/all_sun_city_hotels','',200) oCMenu.makeMenu('0_1_5_2','0_1_5','Sun City Tours', '/destinations/sun_city_resort/sun_city_tours','',200) oCMenu.makeMenu('0_1_5_3','0_1_5','Getting There', '/destinations/sun_city_resort/getting_there','',200) oCMenu.makeMenu('0_1_5_4','0_1_5','Facts and Info', '/destinations/sun_city_resort/facts_and_info','',200) oCMenu.makeMenu('0_1_5_5','0_1_5','Sun City Map', '/destinations/sun_city_resort/sun_city_map','',200) oCMenu.makeMenu('0_1_6','0_1','Malaria Free Safaris', '/destinations/malaria_free_safaris','',150) oCMenu.makeMenu('0_1_6_1','0_1_6','Pilanesberg National Park', '/destinations/malaria_free_safaris/pilanesberg_national_park','',200) oCMenu.makeMenu('0_1_6_2','0_1_6','Madikwe National Park', '/destinations/malaria_free_safaris/madikwe_national_park','',200) oCMenu.makeMenu('0_1_6_3','0_1_6','All Malaria Free Lodges', '/destinations/malaria_free_safaris/all_malaria_free_lodges','',200) oCMenu.makeMenu('0_1_6_4','0_1_6','Malaria Free Safari Tours', '/destinations/malaria_free_safaris/malaria_free_safari_tours','',200) oCMenu.makeMenu('0_1_6_5','0_1_6','Facts and Info', '/destinations/malaria_free_safaris/facts_and_info','',200) oCMenu.makeMenu('0_1_6_6','0_1_6','Getting There', '/destinations/malaria_free_safaris/getting_there','',200) oCMenu.makeMenu('0_1_6_7','0_1_6','Pilanesberg and Madikwe Map', '/destinations/malaria_free_safaris/pilanesberg_and_madikwe_map','',200) oCMenu.makeMenu('0_1_7','0_1','Victoria Falls', '/destinations/victoria_falls','',150) oCMenu.makeMenu('0_1_7_1','0_1_7','Victoria Falls Zimbabwe', '/destinations/victoria_falls/victoria_falls_zimbabwe','',200) oCMenu.makeMenu('0_1_7_2','0_1_7','Livingstone Zambia', '/destinations/victoria_falls/livingstone_zambia','',200) oCMenu.makeMenu('0_1_7_3','0_1_7','Victoria Falls Activities', '/destinations/victoria_falls/victoria_falls_activities','',200) oCMenu.makeMenu('0_1_7_4','0_1_7','Victoria Falls Tours', '/destinations/victoria_falls/victoria_falls_tours','',200) oCMenu.makeMenu('0_1_7_5','0_1_7','All Hotels in Victoria Falls', '/destinations/victoria_falls/all_hotels_in_victoria_falls','',200) oCMenu.makeMenu('0_1_7_6','0_1_7','Getting There', '/destinations/victoria_falls/getting_there','',200) oCMenu.makeMenu('0_1_7_7','0_1_7','Facts and Info', '/destinations/victoria_falls/facts_and_info','',200) oCMenu.makeMenu('0_1_7_8','0_1_7','Map of Victoria Falls', '/destinations/victoria_falls/map_of_victoria_falls','',200) oCMenu.makeMenu('0_1_8','0_1','Botswana', '/destinations/botswana','',150) oCMenu.makeMenu('0_1_8_1','0_1_8','Okavango Delta', '/destinations/botswana/okavango_delta','',200) oCMenu.makeMenu('0_1_8_2','0_1_8','Chobe Savuti and Linyanti', '/destinations/botswana/chobe_savuti_and_linyanti','',200) oCMenu.makeMenu('0_1_8_3','0_1_8','Botswana Tours', '/destinations/botswana/botswana_tours','',200) oCMenu.makeMenu('0_1_8_4','0_1_8','All Botswana Accommodation', '/destinations/botswana/all_botswana_accommodation','',200) oCMenu.makeMenu('0_1_8_5','0_1_8','Getting There', '/destinations/botswana/getting_there','',200) oCMenu.makeMenu('0_1_8_6','0_1_8','Facts and Info', '/destinations/botswana/facts_and_info','',200) oCMenu.makeMenu('0_1_8_7','0_1_8','Botswana Map', '/destinations/botswana/botswana_map','',200) oCMenu.makeMenu('0_2','','Accommodation', '/accommodation','',163.85) oCMenu.makeMenu('0_3','','Maps', '/maps','',105.85) oCMenu.makeMenu('0_4','','About Us', '/about_us','',125.85) //Leave this line - it constructs the menu oCMenu.construct();