

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.weight-loss-health.com.au">Home</a>'

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="/weight_loss_home.htm">Weight Loss Centre</a>'
menu2[1]='<a href="/getting_started.htm">Getting Started</a>'
menu2[2]='<a href="/diets_food.htm">Diets & Food</a>'
menu2[3]='<a href="/overcoming_challenges.htm">Overcoming Challenges</a>'
menu2[4]='<a href="/motivation.htm">Motivation</a>'
menu2[5]='<a href="/metabolism.htm">Metabolism</a>'
menu2[6]='<a href="/carbohydrates_home.htm">Carbohydrates</a>'
menu2[7]='<a href="/protein_home.htm">Protein</a>'
menu2[8]='<a href="/glycemic_home.htm">Glycemic Index</a>'
menu2[9]='<a href="/portion_control_home.htm">Portion Control</a>'
menu2[10]='<a href="/success_stories.htm">Success Stories</a>'
		
//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/health_home.htm">Health Centre</a>'
menu3[1]='<a href="/alzheimers_home.htm">Alzheimers</a>'
menu3[2]='<a href="/cancer_home.htm">Cancer & Diet</a>'
menu3[3]='<a href="/diabetes/diabetes_home.htm">Diabetes</a>'
menu3[4]='<a href="/healthy_bones_home.htm">Healthy Bones</a>'
menu3[5]='<a href="/healthy_blood_home.htm">Healthy Blood</a>'
menu3[6]='<a href="/healthy_heart_home.htm">Healthy Heart</a>'
menu3[7]='<a href="/healthy_kidneys_home.htm">Healthy Kidneys</a>'
menu3[8]='<a href="/healthy_teeth_home.htm">Healthy Teeth</a>'
menu3[9]='<a href="/sleep_apnea/sleep_apnea_home.htm">Sleep Apnea</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="/nutrition_home.htm">Nutrition Centre</a>'
menu4[1]='<a href="/antioxidants_home.htm">Antioxidants</a>'
menu4[2]='<a href="/carbohydrates_home.htm">Carbohydrates</a>'
menu4[3]='<a href="/cholesterol_home.htm">Cholesterol</a>'
menu4[4]='<a href="/dairy_home.htm">Dairy</a>'
menu4[5]='<a href="/fats_home.htm">Fats & Oil</a>'
menu4[6]='<a href="/fibre_home.htm">Fibre</a>'
menu4[7]='<a href="/fruit_home.htm">Fruit & Vegetables</a>'
menu4[8]='<a href="/glycemic_home.htm">Glycemic Index</a>'
menu4[9]='<a href="/grains_home.htm">Grains</a>'
menu4[10]='<a href="/protein_home.htm">Protein</a>'
menu4[11]='<a href="/vitamins_home.htm">Vitamins & Minerals</a>'
menu4[12]='<a href="/water_home.htm">Water</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="/fitness_home.htm">Fitness Centre</a>'
menu5[1]='<a href="/fitness_getting_started_home.htm">Getting Started</a>'
menu5[2]='<a href="/workouts_home.htm">Workouts</a>'
menu5[3]='<a href="/home_workouts_home.htm">Fitness at Home</a>'
menu5[4]='<a href="/strength_development_home.htm">Strength Development</a>'
menu5[5]='<a href="/injury_prevention_home.htm">Injury Prevention</a>'
menu5[6]='<a href="/fitness_seniors_guide_home.htm">Guide For Seniors</a>'
menu5[7]='<a href="/fitness_equipment_home.htm">Fitness Equipment</a>'
menu5[8]='<a href="/find_a_trainer_home.htm">Find A Trainer</a>'
menu5[9]='<a href="/gymnasiums_home.htm">Gymnasiums</a>'
menu5[10]='<a href="/fitness_general_home.htm">Fitness</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="/skin_hair_home.htm">Beauty for Life Centre</a>'
menu6[1]='<a href="/acne_home.htm">Acne</a>'
menu6[2]='<a href="/alopecia_home.htm">Alopecia</a>'
menu6[3]='<a href="/anti_ageing_home.htm">Anti-Ageing</a>'
menu6[4]='<a href="/diet_skin_care_home.htm">Diet & Skin Care</a>'
menu6[5]='<a href="/exercise_ageing_home.htm">Exercise & Ageing</a>'
menu6[6]='<a href="/beauty_product_reviews_home.htm">Product Reviews</a>'

//Contents for menu 7
var menu7=new Array()
menu7[0]='<a href="/recipes_home.htm">Recipes</a>'

//Contents for menu 8
var menu8=new Array()
menu8[0]='<a href="/lifestyle_home.htm">Lifestyle</a>'


		
var menuwidth='165px' //default menu width
var menubgcolor='#F3F3F3'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

