// JavaScript Document
//Sports Medicine Physicians
var menu1=new Array()
menu1[0]='<div align="justify">Sports Physicians consult at Sydney Sportsmed Specialists. All have extensive experience in Sports Medicine.<br>Services provided include the diagnosis and management of all musculoskeletal problems as well as medical problems associated with sport.</div><strong>Practitioners:</strong>'
menu1[1]='<A href="p_ameer_ibrahim.html">Dr Ameer Ibrahim</A>'
menu1[2]='<A href="p_donald_kuah.html">Dr Donald Kuah</A>'
menu1[3]='<A href="p_diana_robinson.html">Dr Diana Robinson</A>'


//Physiotherapy Menu
var menu2=new Array()
menu2[0]='<div align="justify">Physiotherapists treat all musculoskeletal problems arising from muscles and joints, including the back and neck. The Centre physiotherapists have extensive experience with athletes from numerous sports as well as general public patients. They specialise in biomechanical analysis, and practice a very hands-on approach to treatment with an exercise based rehabilitation regime.</div><strong>Practitioners:</strong>'
menu2[1]='<A href="p_kingsley_gibson.html">Kingsley Gibson</A>'
menu2[2]='<A href="p_brent_kirkbride.html">Brent Kirkbride</A>'
menu2[3]='<A href="p_kate_leslie.html">Kate Leslie</A>'
menu2[4]='<A href="p_kylie_robertson.html">Kylie Robertson</A>'
menu2[5]='<A href="p_cameron_elliot.html">Cameron Elliot</A>'

//Podiatry Menu
var menu3=new Array()
menu3[0]='<div align="justify">Podiatrists treat dysfunction in the musculoskeletal system arising from foot and lower limb injuries or imbalance. Such treatment can help alleviate pain and improve performance. Video analysis of walking, running, and sport specific movements is an integral part of each patient’s assessment. Evaluation of sports shoes is also performed and an appropriate shoe can be recommended for each sport.</div><strong>Practitioners</strong>'
menu3[1]='<A href="p_phillip_perry.html">Philip Perry</A>'
menu3[2]='<A href="p_brett_reynish.html">Brett Reynish </A>'
menu3[3]='<A href="p_richard_windybank.html">Richard Windybank</A>'

//Sports Nutrition Menu
var menu4=new Array()
menu4[0]='<div align="justify">Sports Nutrition counselling provides advice on training and competition nutrition. This includes optimising nutrient intake, treatment of nutritional deficiencies, and specialised counselling for weight control (weight loss and muscle bulking). Diabetic, cholesterol lowering, high fibre, and general weight loss counselling is also available for the general public.</div><strong>Practitioners</strong>'
menu4[1]='<A href="p_helen_oconnor.html">Dr Helen O\'Connor</A>'
menu4[2]='<A href="p_alison_miles.html">Alison Miles</A>'

//Sports Psychology Menu
var menu5=new Array()
menu5[0]='<div align="justify">Sport Psychologists work to maximise individual and team performance through the use of tailored mental skills. They provide psychological assessment, performance enhancement programs and counselling for athletes, performing artists, students, corporate clients and exercisers. Mental skills can assist with motivation, enjoyment, goal attainment, concentration, developing routines, overcoming performance slumps, regulating thoughts, feeling and emotions and more. The centre psychologists have extensive training and experience working with elite and developmental athletes as well as the general public.</div><strong>Practitioners</strong>'
menu5[1]='<A href="p_jocelyn_penna.html">Jocelyn Penna</A>'
menu5[2]='<A href="p_paul_penna.html">Paul Penna</A>'

//Sports Massage Menu
var menu6=new Array()
menu6[0]='<div align="justify">Sports Massage Therapy helps aid recovery and relieve muscle spasm through deep tissue massage, stretches, and a variety of muscular releases. Centre therapists provide a range of treatments suitable for everyone from the general public through to the elite athlete.</div><strong>Practitioners</strong>'
menu6[1]='<A href="p_tricia_jenkins.html">Tricia Jenkins</A>'
menu6[2]='<A href="p_georgie_stephens.html">Georgette Stephens</A>'
menu6[3]='<A href="p_cherie_walker.html">Cherie Walker</A>'
menu6[4]='<A href="p_ben_bailey.html">Ben Bailey</A>'
menu6[5]='<A href="p_johanna_morgan.html">Johanna Morgan</A>'
menu6[6]='<A href="p_anthony_kaleel.html">Anthony Kaleel</A>'
menu6[7]='<A href="p_amanda_foulkes.html">Amanda Foulkes</A>'

//Orthopaedic Surgery Menu
var menu7=new Array()
menu7[0]='<div align="justify">Orthopaedic Surgeons consult at Sydney Sportsmed Specialists. All have extensive experience. Referrals are required to see the Surgeons</div><strong>Practitioners</strong>'
menu7[1]='<A href="p_michael_dixon.html">Dr Michael Dixon</A>'
menu7[2]='<A href="p_simon_tan.html">Dr Simon Tan</A>'
menu7[3]='<A href="p_peter_walker.html">Dr Peter Walker</A>'
menu7[4]='<A href="p_doran_sher.html">Dr Doron Sher</A>'
menu7[5]='<A href="p_david_carmody.html">Dr David Carmody</A>'

//General Surgeon Menu
var menu8=new Array()
menu8[0]='<div><strong>Practitioners:</strong></div>'
menu8[1]='<A href="p_nabeel_ibrahim.html">Dr Nabeel Ibrahim</A>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=1 //horizontal offset of menu from default location. (0-5 is a good value)

/////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: 160px" 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=-500
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-obj.offsetWidth < 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 menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
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")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"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)
}