/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="../james.htm">Meet James</a>'
menu1[1]='<a href="../funding.htm">Funding NS Research</a>'
menu1[2]='<a href="../documents/jonah_lomu.pdf" target="_blank">Message from Jonah Lomu</a>'
menu1[3]='<a href="../people.htm">People</a>'
menu1[4]='<a href="../nest_leaflets.htm">Information Leaflets</a>'
menu1[5]='<a href="../nstrust-community/index.php" target="_blank">NSTrust Community</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="../nephrotic_syndrome.htm">About Nephrotic Syndrome</a>'
menu2[1]='<a href="../nephrotic_syndrome.htm#what">- What is it?</a>'
menu2[2]='<a href="../nephrotic_syndrome.htm#how_many">- How many people does it affect?</a>'
menu2[3]='<a href="../nephrotic_syndrome.htm#affect">- How does it affect sufferers?</a>'
menu2[4]='<a href="../nephrotic_syndrome.htm#treatment">- Treatment</a>'
menu2[5]='<a href="../nephrotic_syndrome.htm#complications">- Complications</a>'
menu2[6]='<a href="../nephrotic_syndrome.htm#research">- Research</a>'
menu2[7]='<a href="../documents/recent_advances.pdf" target="_blank">Advances in Understanding NS</a>'

var menu3=new Array()
menu3[0]='<a href="../bristol_overview.htm">Research Overview</a>'
menu3[1]='<a href="../bristol_cru.htm">Children\'s Renal Unit</a>'
menu3[2]='<a href="../bristol_podocyte.htm">The Podocyte</a>'
menu3[3]='<a href="../latest_news.htm">Latest Research News</a>'

var menu4=new Array()
menu4[0]='<a href="../fundraising.htm">Fundraising</a>'
menu4[1]='<a href="../fundraising.htm#granfondo">- Dr Saleem Cycles Granfondo</a>'
menu4[2]='<a href="../fundraising.htm#cookridge_garden">- Open Garden at Cookridge</a>'
menu4[3]='<a href="../fundraising.htm#mille">- Superhero Help for Millie</a>'
menu4[4]='<a href="../fundraising.htm#philip">- Philip\'s Marathon Pledge</a>'
menu4[5]='<a href="../fundraising.htm#ashley">- Ashley\'s Marathon Pledge</a>'
menu4[6]='<a href="../fundraising.htm#bailey">- Bailey\'s Bandz</a>'
menu4[7]='<a href="../fundraising.htm#gough">- Lyndon\'s Half Marathon</a>'
menu4[8]='<a href="../fundraising.htm#bradshaw">- Bradshaw\'s Books & Biscuits</a>'
menu4[9]='<a href="../fundraising.htm#david">- David\'s Sprint Triathlon</a>'

var menu5=new Array()
menu5[0]='<a href="http://www.kidskidneyresearch.org/" target="_blank">Kids Kidney Research</a>'
menu5[1]='<a href="http://www.brita.net/uk/brita_charity.html?&L=1" target="_blank">BRITA support for NeST</a>'
menu5[2]='<a href="http://www.ubht.nhs.uk/press/view.asp?225" target="_blank">Rugby star backs Bristol research</a>'
menu5[3]='<a href="http://www.bris.ac.uk/clinicalsciencenorth/renal" target="_blank">University of Bristol Renal Unit</a>'
menu5[4]='<a href="http://www.britishkidney-pa.co.uk/" target="_blank">British Kidney Patients Association</a>'
menu5[5]='<a href="http://www.kidney.org.uk/" target="_blank">UK National Kidney Federation</a>'
menu5[6]='<a href="http://www.bbc.co.uk/health/conditions/nephrotic2.shtml">BBC Health - Childhood NS</a>'
menu5[7]='<a href="http://renux.dmed.ed.ac.uk/EdREN/EdRenINFObits/NephroticLong.html" target="_blank">Royal Infirmary of Edinburgh Renal Unit</a>'
menu5[8]='<a href="http://www.orpha.net/associations/AMSN/" target="_blank">AMSN (France)</a>'
menu5[9]='<a href="http://www.nephcure.org/" target="_blank">The NephCure Foundation (USA)</a>'
menu5[10]='<a href="http://en.wikipedia.org/wiki/Nephrotic_syndrome" target="_blank">Nephrotic Syndrome on Wikipedia</a>'


var menu6=new Array()
menu6[0]='<a href="../contact_nest.htm">Contact Us</a>'
menu6[1]='<a href="../contact_nest.htm#donations">- Donations</a>'
menu6[2]='<a href="../contact_nest.htm#gift_aid">- Gift Aid</a>'
menu6[3]='<a href="../contact_nest.htm#standing_order">- Standing Order</a>'
menu6[4]='<a href="../contact_nest.htm#sponsorship_form">- Sponsor Form</a>'
menu6[5]='<a href="../contact_nest.htm#justgiving">- Justgiving.com</a>'
menu6[6]='<a href="../contact_nest.htm#email">- Email Us</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#FFFFFF'  //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=-500
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