// JavaScript Document

/***********************************************







* 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="http://www.qinway.org/Holy-Mission.htm"><font color=#124508>Holy Mission</font></a>'



menu1[1]='<a href="http://www.qinway.org/Grandmaster-Foundation.htm"><font color=#124508>Grandmaster Foundation</font></a>'



menu1[2]='<a href="http://www.qinway.org/virtue-tablet.htm"><font color=#124508>Virtue Donation Tablet</font></a>'



menu1[3]='<a href="http://www.qinway.org/Science-Religion.htm"><font color=#124508>Super Science & Religion</font></a>'























//Contents for menu 2, and so on







var menu2=new Array()







menu2[0]='<a href="Qigong-Bio.htm"><font color=#124508>GrandMaster Biography</font></a>'





menu2[1]='<a href="Qigong-Pictures.htm"><font color=#124508>Energy Pictures & Stories</font></a>'





menu2[2]='<a href="Master-Ability-Virtue.htm"><font color=#124508>Special Ability Contribution</font></a>'





menu2[3]='<a href="http://grandmasterqinyin.blogspot.com/"><font color=#124508>Grandmaster Blog</font></a>'







//Contents for menu 3, and so on







var menu3=new Array()



menu3[0] = '<a href="qinway-qigong.htm"><font color=#124508>Qinway Qigong</font></a>'



menu3[1]='<a href="Spiritual-Channelling-System.htm"><font color=#124508>A Super Channelling System</font></a>'



menu3[2]='<a href="Body-Mind-Spirit-Chart.htm"><font color=#124508>Body Mind Spirit Health Chart</font></a>'



menu3[3]='<a href="Energy-Infusion-Detox-Chart.htm"><font color=#124508>Energy Infusion & Detoxification</font></a>'



menu3[4]='<a href="Qi-Layer.htm"><font color=#124508>Bigu Deepening Layers</font></a>'



menu3[5]='<a href="No-Two-Door.htm"><font color=#124508>No-two-door Scientific Approach </font></a>'







//Contents for menu 4, and so on







var menu4=new Array()







menu4[0]='<a href="Heaven-Ladder.htm"><font color=#124508>3.2D Enlightenment Ladder</font></a>'







menu4[1]='<a href="Qigong-Retreat.htm"><font color=#124508>Special Ability Rejuvenation <br> 3.2D Retreat (3-in-1 Furnace)</font></a>'







menu4[2]='<a href="Qigong-Retreat-C.htm"><font color=#124508>Retreat in Chinese</font> <img border="0" src="Chinese-Class.gif" border="0" height="15" width="46"></a>'







menu4[3]='<a href="Wuji-Retreat.htm"><font color=#124508>Enlightenment Wuji-D Retreat</font></a>'







//Contents for menu 5, and so on







var menu5=new Array()







menu5[0]='<a href="qigong-intro-seminar.htm"><font color=#124508>Brief Retreat Secret Course</font></a>'







menu5[1]='<a href="Consultation.htm"><font color=#124508>Individual Consultation</font></a>'







menu5[2]='<a href="Remote-Healing.htm"><font color=#124508>Individual Remote Healing</font></a>'





menu5[3]='<a href="Qigong-Retreat.htm"><font color=#124508>Special Ability Rejuvenation <br>  3.2D Retreat (3-in-1 Furnace)</font></a>'







menu5[4]='<a href="Qigong-retreat-in-china.htm"><font color=#124508>Retreat in China with Bonus</font></a>'















//Contents for menu 6, and so on







var menu6=new Array()







menu6[0]='<a href="qigong-tea.htm"><font color=#124508>Yin Yang Healing Tea</font></a>'







menu6[1]='<a href="qigong-video.htm"><font color=#124508>Fundamental Healing DVD Kit</font></a>'







menu6[2]='<a href="goji-tea.htm"><font color=#124508>Goji Energy Tea</font></a>'







menu6[3]='<a href="Qigong-Food.htm"><font color=#124508>Energized Wild Healing Food</font></a>'







menu6[4]='<a href="qigong-object.htm"><font color=#124508>Protection Fengshui Objects</font></a>'







//Contents for menu 7, and so on







var menu7=new Array()







menu7[0]='<a href="http://qinwayqigong.blogspot.com/"><font color=#124508>Daily Report Blog</font></a>'







menu7[1]='<a href="news/qigong-newsletter.htm"><font color=#124508>Newsletters</font></a>'







menu7[2]='<a href="qigong-testimonial.htm"><font color=#124508>Inspiring Stories</font></a>'







menu7[3]='<a href="qigong-press.htm"><font color=#124508>Media Reports</font></a>'







//Contents for menu 8, and so on







var menu8=new Array()







menu8[0]='<a href="mailto:930@qinway.org"><font color=#124508>Contact Us</font></a>'







menu8[1]='<a href="Dr-John.htm"><font color=#124508>Manager Dr. John</font></a>'







menu8[2]='<a href="login.htm"><font color=#124508>Student Window</font></a>'







menu8[3]='<a href="link.htm"><font color=#124508>Exchange Links</font></a>'























		







var menuwidth='120px' //default menu width







var menubgcolor='#C1A9EB'  //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







