// JavaScript Document
	/*THIS SCRIPT IS FOR THE SLIDING SIDE MENU
*/	
		function toggleMenu(currMenu) {
			if (document.getElementById) {
				thisMenu = document.getElementById(currMenu).style
				if (thisMenu.display == "block") {
					thisMenu.display = "none"
				}
				else {
					thisMenu.display = "block"
				}
				return false
			}
			else {
				return true
			}
		}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

	/*This Script is to view a slideshow with captions
*/	
	myPix = new Array("images/slideImg0.jpg","images/slideImg1.jpg","images/slideImg2.jpg","images/slideImg3.jpg","images/slideImg4.jpg","images/slideImg5.jpg","images/slideImg6.jpg","images/slideImg7.jpg","images/slideImg8.jpg","images/slideImg9.jpg","images/slideImg10.jpg","images/slideImg11.jpg","images/slideImg12.jpg","images/slideImg13.jpg")
	thisPic = 0
	imgCt = myPix.length - 1

	function processPrevious() {
		if (document.images && thisPic > 0) {
			thisPic--
			document.myPicture.src=myPix[thisPic]
		}
	}

	function processNext() {
		if (document.images && thisPic < imgCt) {
			thisPic++
			document.myPicture.src=myPix[thisPic]
		}
	}
		

/*THIS SCRIPT IS FOR THE PASSWORD IN THE REGISTER OF MEMBERS  
 page*/
function pasuser(form) {
if (form.id.value=="arrc") { 
if (form.pass.value=="w5") {              
location="members.html" 
} else {
alert("Invalid Password")
}
} else {  alert("Invalid UserID")
}
}

/*This Script allows pop up windows
*/
        leftPos=0
        if (screen) {
                  leftPos=screen.width-330
        }
	function newWindow(papers) {
		papersWindow = window.open(papers, "papers", "width=310,height=310,left=50,top=100,scrollbars=yes")
papersWindow.focus()

	}

/*THIS SCRIPT IS FOR THE SUB MENU IN INFORMATION SOURCES 
website page*/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<a href="databases.html">Databases</a>'
linkset[0]+='<a href="acupuncture.html">Acupuncture Resources</a>'
linkset[0]+='<a href="cam.html">CAM Resources</a>'
linkset[0]+='<a href="libraries.html">Libraries</a>'
linkset[0]+='<a href="medical.html">Medical Resources</a>'
linkset[0]+='<a href="gynaecology.html">Gyn &amp; Obst</a>'
linkset[0]+='<a href="substancemis.html">Substance Misuse</a>'

linkset[2]='<a href="uniresearch.html">Acupuncture research</a>'
linkset[2]+='<a href="unicourses.html">Acupuncture courses</a>'

////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu



/*THIS SCRIPT IS FOR THE TEXTUAL TOOLTIP SCRIPT IN INFORMAITON SOURCES 
WEBSITE MENU PAGE*/	

var content=new Array()
//change the array below to the text associated with your links Expand or contract the array, depending on how many links you have
content[0]='<b>Research centres & societies</b><br><br>Foundation for Traditional Chinese Medicine (UK charitable trust)<br><a href="http://www.ftcm.org.uk/" target="_blank">www.ftcm.org.uk</a><br><br>Society for Acupuncture Research (US acupuncturists)<br><a href="http://www.acupunctureresearch.org/"target="_blank">www.acupunctureresearch.org</a><br>.'
content[1]='<b>Online publishers, journals, research articles</b><br><br>Acupuncture Today<br><a href="http://www.acupuncturetoday.com/mpacms/at/home.php" target="_blank">http://www.acupuncturetoday.com/mpacms/at/home.php</a><br><br>Blue Poppy Press<br><a href="http://www.bluepoppy.com/" target="_blank">www.bluepoppy.com</a><br><br>Institute for Traditional Medicine<br><a href="http://www.itmonline.org/disorder.htm" target="_blank">www.itmonline.org/disorder.htm</a><br><br>Internet Health Library - acupuncture research articles<br><a href="http://www.internethealthlibrary.com/Therapies/Acupuncture-Research.htm#top" target="_blank">www.internethealthlibrary.com/Therapies/Acupuncture-Research.htm#top</a><br>.'
content[2]='<b>Professional bodies & Societies</b><br><br>British Acupuncture Council<br><a href="http://www.acupuncture.org.uk/" target="_blank">www.acupuncture.org.uk</a><br><br>French medical acupuncturists<br><a href="http://www.meridiens.org/acudoc2/portail.html" target="_blank">www.meridiens.org/acudoc2/portail.html</a><br><br>The British Medical Acupuncture Society<br><a href="http://www.medical-acupuncture.co.uk/" target="_blank">www.medical-acupuncture.co.uk</a><br><br>RCHM - Register of Chinese Herbal Medicine<br><a href="http://www.rchm.co.uk/" target="_blank">http://www.rchm.co.uk/</a><br>.'
content[3]='<b>Colleges/training courses in the UK</b><br><br><a href="universities.html">See Websites - UK Universities</a><br>.'
content[4]='<b>Miscellaneous</b><br><br>Acupuncture and Chinese Medicine in China<br>(in Chinese)<br><a href="http://tcm.medboo.com/" target="_blank">tcm.medboo.com</a><br><br>Al Stone\'s Site<br><a href="http://gancao.net/" target="_blank">gancao.net</a>.'
content[5]='<b>Government/National/International</b><br><br>National Centre for Complementary and Alternative Medicine - USA<br><a href="http://nccam.nih.gov/research/" target="_blank">nccam.nih.gov/research</a><br><br>National Electronic Library for Health<br><a href="http://www.library.nhs.uk/" target="_blank">http://www.library.nhs.uk/</a><br><br>The Prince of Wales\'s Foundation for Integrated Health - UK<br><a href="http://www.fih.org.uk/" target="_blank">www.fih.org.uk</a><br><br>Research Council for Complementary Medicine - UK<br><a href="http://www.rccm.org.uk/" target="_blank">www.rccm.org.uk</a><br><br>World Health Organization (WHO)<br><a href="http://www.who.int/medicines/areas/traditional/en/index.html" target="_blank">www.who.int/medicines/areas/traditional/en/index.html</a><br><br>National Cancer Institute - CAM section - USA<br><a href="http://www.cancer.gov/cam/" target="_blank">www.cancer.gov/cam</a><br><br>NIHR Health Technology Assessment Programme<br><a href="http://www.ncchta.org/" target="_blank">http://www.ncchta.org/</a><br>.'
content[6]='<b>Non-UK Universities</b><br><br>University of Pittsburgh Alternative Medicine (US)<br><a href="http://www.pitt.edu/~cbw/altm.html" target="_blank">www.pitt.edu/~cbw/altm.html</a><br><br>Rosenthal Centre for Complementary and Alternative Medicine (US)<br><a href="http://www.rosenthal.hs.columbia.edu/CAM.html" target="_blank">www.rosenthal.hs.columbia.edu/CAM.html</a><br><br>University of Maryland CAM Resource Centre (US)<br><a href="http://www.lib.umd.edu/guides/alternative_medicine.html" target="_blank">http://www.lib.umd.edu/guides/alternative_medicine.html</a><br><br>Harvard Medical School, Osher Institute (US)<br><a href="http://www.osher.hms.harvard.edu/" target="_blank">http://www.osher.hms.harvard.edu/</a><br><br>Australian College of Natural Medicine [e-guide to internet resources]<br><a href="http://www.acnm.edu.au/library-eguides.html" target="_blank" target="_blank">www.acnm.edu.au/library-eguides.html</a><br>.'
content[7]='<b>Other research centres & societies</b><br><br>International Society for Complementary Medicine Research<br><a href="http://www.iscmr.org/" target="_blank">www.iscmr.org</a><br><br>The Samueli Institute [the science of healing]<br><a href="http://www.siib.org/" target="_blank">www.siib.org</a><br>.'
content[8]='<b>Charitable trusts/non-profit bodies</b><br><br>Alternative Medicine Foundation<br><a href="http://www.amfoundation.org/info.htm" target="_blank">www.amfoundation.org/info.htm</a><br><br>Geneva Foundation for Medical Education and Research<br><a href="http://www.gfmer.ch/Medical_journals/Traditional_medicine_and_complementary_alternative_medicine.htm" target="_blank">www.gfmer.ch/Medical_journals/Traditional_medicine_<br>and_complementary_alternative_medicine.htm</a><br>.'
content[9]='<b>Research tools</b><br><br>Measure Yourself Medical Outcome Profile<br><a href="http://www.pms.ac.uk/MYMOP/" target="_blank">http://www.pms.ac.uk/MYMOP/</a><br>.'
content[10]='<b>Other</b><br><br>Complementary Healthcare Information Service<br><a href="http://www.chisuk.org.uk/" target="_blank">http://www.chisuk.org.uk/</a><br><br>Internet Health Library <br><a href="http://www.internethealthlibrary.com/index.htm" target="_blank">www.internethealthlibrary.com/index.htm</a><br><br>BMJ - CAM resources - online collections of articles<br><a href="http://bmj.bmjjournals.com/cgi/collection/complementary_medicine" target="_blank">bmj.bmjjournals.com/cgi/collection/complementary_medicine</a><br>.'

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML='<font face="Arial">'+whichcontent+'<font>'
}
else if (document.layers){
document.d1.document.d2.document.write('<font face="Arial">'+whichcontent+'</font>')
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2

