

/***********************************************
* 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()
http://www.globalfamilydoctor.com/information/gfdinformation/gfdinformation.asp
menu1[0]='<a href="http://www.globalfamilydoctor.com/aboutWonca/aboutwonca.asp?refurl=aw">About Wonca </a>'
menu1[1]='<a href="http://www.globalfamilydoctor.com/aboutWonca/aboutwonca.asp?refurl=aw">Mission</a>'
menu1[2]='<a href="http://www.globalfamilydoctor.com/aboutWonca/executive.asp?refurl=aw">Executive</a>'
menu1[3]='<a href="http://www.globalfamilydoctor.com/aboutWonca/council/council.asp?refurl=aw">Council</a>'
menu1[4]='<a href="http://www.globalfamilydoctor.com/MO/MO.asp?refurl=aw">Member Organizations</a>'
menu1[5]='<a href="http://www.globalfamilydoctor.com/links/molinks.asp?refurl=aw">Member Websites</a>'
menu1[6]='<a href="http://www.globalfamilydoctor.com/membership/indevid/directmemberdirectory.asp?refurl=aw">Direct Members</a>'
menu1[7]='<a href="http://www.globalfamilydoctor.com/information/gfdinformation/gfdinformation.asp">Global Family Doctor</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="http://www.globalfamilydoctor.com/journalwatch/journalwatch.asp?refurl=ed">Journal Watch</a>'
menu2[1]='<a href="http://www.globalfamilydoctor.com/clinicalreviews/clinicalreviews.asp?refurl=ed">Clinical Reviews</a>'
menu2[2]='<a href="http://www.globalfamilydoctor.com/pearls/pearls.asp?refurl=ed">PEARLS</a>'
menu2[3]='<a href="http://www.globalfamilydoctor.com/hda/hda.asp?refurl=ed">HelpDesk Answers</a>'
menu2[4]='<a href="http://www.globalfamilydoctor.com/education/edresourcecentre/edresourcecentre.asp?refurl=ed">Resource Centre</a>'
menu2[5]='<a href="http://www.globalfamilydoctor.com/education/CEMedicus/ceMedicus.asp">Online CME</a>'
menu2[6]='<a href="http://www.globalfamilydoctor.com/education/ClinicalNutrition/ClinicalNutrition.asp?refurl=ed">Clinical Nutrition</a>'
menu2[7]='<a href="http://www.globalfamilydoctor.com/links/link/onlinejournals.asp?refurl=ed">Online Journals</a>'
menu2[8]='<a href="http://www.globalfamilydoctor.com/links/link/PatientEducationsites.asp?refurl=ed">Patient Education</a>'
menu2[9]='<a href="http://www.globalfamilydoctor.com/JournalAlerts/JournalAlertsSpanish.asp?refurl=ed">Espanol</a>'
menu2[10]='<a href="http://www.globalfamilydoctor.com/education/poems%20in%20portuguese/poems_Portuguese.asp?refurl=ed">Portugues</a>'
menu2[11]='<a href="http://www.globalfamilydoctor.com/JournalAlerts/German.asp?refurl=ed">German</a>'
menu2[12]='<a href="http://www.globalfamilydoctor.com/education/GlobalResourceDirectory/GRDIndex.asp">Global Directory</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="http://www.globalfamilydoctor.com/research/research.asp?refurl=r">Research Information</a>'
menu3[1]='<a href="http://www.globalfamilydoctor.com/education/GlobalResourceDirectory/grdindex.asp?refurl=ed">Global Resource Directory</a>'
menu3[2]='<a href="http://www.ifpcrn.org/" target="_blank">IFPCRN</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="http://www.globalfamilydoctor.com/conferences/conferences.asp?refurl=con">Wonca Conferences</a>'
menu4[1]='<a href="http://www.globalfamilydoctor.com/conferences/conferencescalender.asp?refurl=con">Family Medicine Conferences</a>'

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.globalfamilydoctor.com/Information/MedicalEditors/MedicalEditors.asp?refurl=in">Medical Editors</a>'
menu5[1]='<a href="http://www.globalfamilydoctor.com/information/noticeboard/noticeboard.asp?refurl=in">Notice Board</a>'
menu5[2]='<a href="http://www.globalfamilydoctor.com/information/letters_editor/LettersToTheEditor.asp?refurl=in">Letters to the Editor</a>'
menu5[3]='<a href="http://www.globalfamilydoctor.com/aboutWonca/lists/wonca_listservers.asp?refurl=in">Listservers</a>'
menu5[4]='<a href="http://www.globalfamilydoctor.com/information/mailinglists/mailinglists.asp?refurl=in">Mailing Lists</a>'
menu5[5]='<a href="http://www.globalfamilydoctor.com/information/doctor_month/doctor_month.asp?refurl=in">Doctor of the Month</a>'
menu5[6]='<a href="http://www.globalfamilydoctor.com/information/sitemap/sitemap.asp?refurl=in">Site Map</a>'
menu5[7]='<a href="http://www.globalfamilydoctor.com/information/gfdinformation/gfdinformation.asp?refurl=in">Contact Us</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/classification/classification.asp?refurl=wg">Classification</a>'
menu6[1]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/informatics/wonca_informatics.asp?refurl=wg">Informatics</a>'
menu6[2]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/quality_ass/wonca_qualityassurance.asp?refurl=wg">Quality</a>'
menu6[3]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/rural_training/wonca-ruralpractice.asp?refurl=wg">Rural</a>'
menu6[4]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/behaviour/wonca-behaviour.asp?refurl=wg">Health Behaviour</a>'
menu6[5]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/women/wonca-women.asp?refurl=wg">Women in FM</a>'
menu6[6]='<a href="http://www.globalfamilydoctor.com/aboutWonca/sig/sig.asp?refurl=wg">Mental Health</a>'
menu6[7]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/environment/sigenvironment.asp?refurl=wg">Environment</a>'
menu6[8]='<a href="http://www.globalfamilydoctor.com/aboutWonca/working_groups/elderly/sigelderly.asp?refurl=wg">Elderly Care</a>'

var menuwidth='165px' //default menu width
var menubgcolor='#555555;' //menu bgcolor
var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //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"

var IfrRefX = document.getElementById('DivShim');
    IfrRefX.style.width = menuwidth;
    IfrRefX.style.height = dropmenuobj.contentmeasure; //document.getElementById('dropmenudiv').style.height; //dropmenuobj.style.top;
    
	IfrRefX.style.top = dropmenuobj.style.top;
    IfrRefX.style.left = dropmenuobj.style.left;
    IfrRefX.style.zIndex = dropmenuobj.style.zIndex + 10;
    IfrRefX.style.display = "block";

    

}

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"
document.getElementById('DivShim').style.display = "none";
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

//IE6 Select fix - iFrame to stop DHTML disappearing behind Select elements

curelem = ''; 
function over(which) {   
curelem = which.nextSibling;   
curelem.style.display = 'block'; 
} 
function out(which) {   
curelem.style.display = 'none' 
} 

