
//Contents for menu 2(Heart)
var menu1=new Array()
menu1[0]='<a href="index1.jsp?sect=heart&id=1">Hypertension(High B.P.)</a>'
menu1[1]='<a href="index1.jsp?sect=heart&id=2">Hypotension<Low B.P></a>'
menu1[2]='<a href="index1.jsp?sect=heart&id=3">Cholesterol</a>'

//Contents for menu 2(Lung)
var menu2=new Array()
menu2[0]='<a href="index1.jsp?sect=lung&id=1">Asthma</a>'
menu2[1]='<a href="index1.jsp?sect=lung&id=2">Tuberculosis</a>'
menu2[2]='<a href="index1.jsp?sect=lung&id=3">Bronchitis</a>'
menu2[3]='<a href="index1.jsp?sect=lung&id=4">Pneumonia</a>'

//Contents for menu 3(Kidney)
var menu3=new Array()
menu3[0]='<a href="index1.jsp?sect=kidney&id=1">Renal Stone</a>'
menu3[1]='<a href="index1.jsp?sect=kidney&id=2">Dysuria</a>'
menu3[2]='<a href="index1.jsp?sect=kidney&id=3">Beningn Prostrate Enlargement(BPH)</a>'
menu3[3]='<a href="index1.jsp?sect=kidney&id=4">Renal Failure</a>'
menu3[4]='<a href="index1.jsp?sect=kidney&id=5">Urinary Incontinence</a>'
menu3[5]='<a href="index1.jsp?sect=kidney&id=6">Nephrotic Symdrome</a>'

//Contents for menu 4(Liver)
var menu4=new Array()
menu4[0]='<a href="index1.jsp?sect=liver&id=1"> Hepatitis</a>'
menu4[1]='<a href="index1.jsp?sect=liver&id=2"> Chirossis</a>'
menu4[2]='<a href="index1.jsp?sect=liver&id=3"> Alcohlic Liver Diseases </a>'

//Contents for menu 5(Digestion)
var menu5=new Array()
menu5[0]='<a href="index1.jsp?sect=digestion&id=1">I.B.S</a>'
menu5[1]='<a href="index1.jsp?sect=digestion&id=2">Loss of Appetite</a>'
menu5[2]='<a href="index1.jsp?sect=digestion&id=3">G.E.R.D (Acidity)</a>'
menu5[3]='<a href="index1.jsp?sect=digestion&id=4">Worms</a>'
menu5[4]='<a href="index1.jsp?sect=digestion&id=5">Stomatitis(Aphate)</a>'
menu5[5]='<a href="index1.jsp?sect=digestion&id=6">Constipation</a>'
menu5[6]='<a href="index1.jsp?sect=digestion&id=7">Ulcerative Colitis</a>'

//Contents for menu 6(Blood)
var menu6=new Array()
menu6[0]='<a href="index1.jsp?sect=blood&id=1">Anemia</a>'
menu6[1]='<a href="index1.jsp?sect=blood&id=2">Leukaemia </a>'
menu6[2]='<a href="index1.jsp?sect=blood&id=3">Varicose Veins</a>'

//Contents for menu 7(Mind)
var menu7=new Array()
menu7[0]='<a href="index1.jsp?sect=mind1&id=1"> Loss Of Sleep(Insomnia)</a>'
menu7[1]='<a href="index1.jsp?sect=mind1&id=2"> Depression</a>'
menu7[2]='<a href="index1.jsp?sect=mind1&id=3"> Hysteria</a>'
menu7[3]='<a href="index1.jsp?sect=mind1&id=4"> Schizophrenia</a>'
menu7[4]='<a href="index1.jsp?sect=mind1&id=5"> Obsessive Compulsive Disorder(O.C.D)</a>'
menu7[5]='<a href="index1.jsp?sect=mind1&id=6"> Anxiety Neurosis</a>'
menu7[6]='<a href="index1.jsp?sect=mind1&id=7"> Attention-deficit hyperactivity disorder</a>'

//Contents for menu 8(Nervous)
var menu8=new Array()
menu8[0]='<a href="index1.jsp?sect=nurvus&id=1">Cluster Headache</a>'
menu8[1]='<a href="index1.jsp?sect=nurvus&id=2">Migraine</a>'
menu8[2]='<a href="index1.jsp?sect=nurvus&id=3">Trigeminal Neuralgia</a>'
menu8[3]='<a href="index1.jsp?sect=nurvus&id=4">Parkinsons Diseases</a>'
menu8[4]='<a href="index1.jsp?sect=nurvus&id=5">Alzheimers Diseases</a>'
menu8[5]='<a href="index1.jsp?sect=nurvus&id=6">Peripheral Neuritis</a>'
menu8[6]='<a href="index1.jsp?sect=nurvus&id=7">Myasthenia Gravis</a>'

//Contents for menu 9(Bone & joint)
var menu9=new Array()
menu9[0]='<a href="index1.jsp?sect=bone_joint&id=1"> Sciatica</a>'
menu9[1]='<a href="index1.jsp?sect=bone_joint&id=2"> Gout</a>'
menu9[2]='<a href="index1.jsp?sect=bone_joint&id=3"> Rheumatoid Arthritis</a>'
menu9[3]='<a href="index1.jsp?sect=bone_joint&id=4"> Backache</a>'
menu9[4]='<a href="index1.jsp?sect=bone_joint&id=5"> Fibromyalgia</a>'
menu9[5]='<a href="index1.jsp?sect=bone_joint&id=6"> Osteoarthritis</a>'
menu9[6]='<a href="index1.jsp?sect=bone_joint&id=7"> P.I.D(Prolapse Intervertebral Disc)</a>'
menu9[7]='<a href="index1.jsp?sect=bone_joint&id=8"> Cervival Spondylists</a>'

//Contents for menu 10(Women)
var menu10=new Array()
menu10[0]='<a href="index1.jsp?sect=women&id=1">Leucorrhoea</a>'
menu10[1]='<a href="index1.jsp?sect=women&id=2">Dysmenorrhoea</a>'
menu10[2]='<a href="index1.jsp?sect=women&id=3">P.M.S(Pre Menstrual Syndrome) </a>'
menu10[3]='<a href="index1.jsp?sect=women&id=4">Endometriosis </a>'
menu10[4]='<a href="index1.jsp?sect=women&id=5">Menstrual Irregularities </a>'

//Contents for menu 11(Sex)
var menu11=new Array()
menu11[0]='<a href="index1.jsp?sect=sex&id=1"> Loss of Libido </a>'
menu11[1]='<a href="index1.jsp?sect=sex&id=2"> Erectile Dysfunction</a>'
menu11[2]='<a href="index1.jsp?sect=sex&id=3"> Premature Ejaculation</a>'
menu11[3]='<a href="index1.jsp?sect=sex&id=4"> Syphilis</a>'
menu11[4]='<a href="index1.jsp?sect=sex&id=5"> Gonorrhoea</a>'
menu11[5]='<a href="index1.jsp?sect=sex&id=6"> Impotence</a>'

//Contents for menu 12(Hair)
var menu12=new Array()
menu12[0]='<a href="index1.jsp?sect=hair&id=1">Alopecia</a>'
menu12[1]='<a href="index1.jsp?sect=hair&id=2"> Danduruff</a>'
menu12[2]='<a href="index1.jsp?sect=hair&id=3"> Hair Loss</a>'

//Contents for menu 13(Skin)
var menu13=new Array()
menu13[0]='<a href="index1.jsp?sect=skin&id=1">Acne(Pimples)</a>'
menu13[1]='<a href="index1.jsp?sect=skin&id=2">Psoriasis</a>'
menu13[2]='<a href="index1.jsp?sect=skin&id=3">Eczema</a>'
menu13[3]='<a href="index1.jsp?sect=skin&id=4">Vitiligo (White Patches)</a>'
menu13[4]='<a href="index1.jsp?sect=skin&id=5">Hyperpigmentation(Under Eye Dark Circle)</a>'
menu13[5]='<a href="index1.jsp?sect=skin&id=6">Viral Warts</a>'
menu13[6]='<a href="index1.jsp?sect=skin&id=7">Lichen Planus</a>'
menu13[7]='<a href="index1.jsp?sect=skin&id=8">Urticaria</a>'
menu13[8]='<a href="index1.jsp?sect=skin&id=9">Corns,Callosity</a>'
menu13[9]='<a href="index1.jsp?sect=skin&id=10">Freckles</a>'
menu13[10]='<a href="index1.jsp?sect=skin&id=11">Folliculitis</a>'
menu13[11]='<a href="index1.jsp?sect=skin&id=12">Dry Rough Skin</a>'
menu13[12]='<a href="index1.jsp?sect=skin&id=13">Wrinkle Filters</a>'

//Contents for menu 14(Ent)
var menu14=new Array()
menu14[0]='<a href="index1.jsp?sect=ent&id=1">Hearing Loss</a>'
menu14[1]='<a href="index1.jsp?sect=ent&id=2">Ottitis Media </a>'
menu14[2]='<a href="index1.jsp?sect=ent&id=3">Tinnitus</a>'
menu14[3]='<a href="index1.jsp?sect=ent&id=4">Sinusitis</a>'
menu14[4]='<a href="index1.jsp?sect=ent&id=5">Tonsillitis</a>'
menu14[5]='<a href="index1.jsp?sect=ent&id=6">Allergic Rhinitis </a>'
menu14[6]='<a href="index1.jsp?sect=ent&id=7">Menniers Diseases </a>'
menu14[7]='<a href="index1.jsp?sect=ent&id=8">Vocal Cord nodules,Laryngitis </a>'

//Contents for menu 15(Eye)
var menu15=new Array()
menu15[0]='<a href="index1.jsp?sect=eye&id=1">Conjunctivitis</a>'
menu15[1]='<a href="index1.jsp?sect=eye&id=2">Decereased Vision</a>'
menu15[2]='<a href="index1.jsp?sect=eye&id=3">Eye Fatigue</a>'
menu15[3]='<a href="index1.jsp?sect=eye&id=4">Scurvy</a>'
menu15[4]='<a href="index1.jsp?sect=eye&id=5">Cataract</a>'

//Contents for menu 16(teeth)
var menu16=new Array()
menu16[0]='<a href="index1.jsp?sect=teeth&id=1">Toothache </a>'

//Contents for menu 17(Genitic)
var menu17=new Array()
menu17[0]='<a href="index1.jsp?sect=genitic&id=1">Downs Syndrome</a>'
menu17[1]='<a href="index1.jsp?sect=genitic&id=2">Turners Syndrome</a>'

//Contents for menu 18(It)
var menu18=new Array()
menu18[0]='<a href="index1.jsp?sect=digestion&id=3">Acidity</a>'
menu18[1]='<a href="index1.jsp?sect=bone_joint&id=4">Backache</a>'
menu18[2]='<a href="index1.jsp?sect=mind&id=1">Insomnia </a>'
menu18[3]='<a href="index1.jsp?sect=mind&id=2">Depression</a>'
menu18[4]='<a href="index1.jsp?sect=">Nervousness Anxiety</a>'

//Contents for menu 19(Sessional)
var menu19=new Array()
menu19[0]='<a href="index1.jsp?sect=it&id=1">Malaria</a>'
menu19[1]='<a href="index1.jsp?sect=it&id=2">Dengue</a>'
menu19[2]='<a href="index1.jsp?sect=it&id=3">Leptospirosis</a>'


var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //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)
}

