// JavaScript Document

	/*
	Important:
	For this function to work, all the field id's have to start with a 'm' !
	*/
	// This opens a new window without bars to show a message.

	function ShowBox(fileType, width, height, centre, scrollYN) {
		var theURL;
		var winName;
		var features;
		var x = 0, y = 0; 
		
		switch(fileType){
			case 'steiner':
				theURL = ("steiner.htm");
				winName = ("About Rudolf Steiner");
				break;
			case 'cell_health':
				theURL = ("cell_health.htm");
				winName = ("Blood Cellular Health");
				break;
			case 'blood_assess':
				theURL = ("blood_assessment.htm");
				winName = ("Blood Assessment");
				break;
			case 'nutritional':
				theURL = ("nutritional_therapy.htm");
				winName = ("Nutritional Therapy");
				break;
			case 'massage':
				theURL = ("rhythmical_massage.htm");
				winName = ("Rhytmical Massage");
				break;
			case 'mistletoe':
				theURL = ("mistletoe_therapy.php");
				winName = ("Mistletoe Therapy");
				break;
			case 'art':
				theURL = ("art_therapy.htm");
				winName = ("Art Therapy");
				break;
			case 'metal':
				theURL = ("metal_therapy.htm");
				winName = ("Metal Therapy");
				break;
			case 'eurythmy':
				theURL = ("therapeutic_eurythmy.htm");
				winName = ("Therapeutic Eurythmy");
				break;
			case 'organ_rep':
				theURL = ("organ_system_rep.htm");
				winName = ("Organ System Repair");
				break;
			case 'nutritional':
				theURL = ("ntritional_therapy.htm");
				winName = ("Nutritional Therapy");
				break;
			case 'hydrotherapy':
				theURL = ("colonic_hydrotherapy.htm");
				winName = ("Colonic Hydrotherapy");
				break;
			case 'bowelClinic':
				theURL = ("bowel_clinic.htm");
				winName = ("Chronic Fatigue / Bowel Clinic");
				break;
			case 'magnetic':
				theURL = ("magnetic_field_therapy.htm");
				winName = ("Magnetic Field Therapy");
				break;
			case 'cancer':
				theURL = ("approach_to_cancer.htm");
				winName = ("Integrated Approach to Cancer Therapy");
				break;
			case 'ozone':
				theURL = ("ozone_therapy.htm");
				winName = ("Ozone Therapy");
				break;
			case 'homeopathy':
				theURL = ("homeopathy.htm");
				winName = ("Homeopathy");
				break;
			case 'naturopathy':
				theURL = ("naturopathy.htm");
				winName = ("Naturopathy");
				break;
			case 'phonetics':
				theURL = ("psychophonetics.htm");
				winName = ("Psychophonetics");
				break;
			case 'acupuncture':
				theURL = ("acupuncture.htm");
				winName = ("Acupuncture");
				break;
			case 'sound':
				theURL = ("sound_therapy.htm");
				winName = ("Sound Therapy");
				break;
			case 'cranio':
				theURL = ("craniosacral_therapy.htm");
				winName = ("Craneosacral Therapy");
				break;
			case 'phyto':
				theURL = ("phyto_therapy.htm");
				winName = ("Phytotherapy");
				break;
			case 'vibrant':
				theURL = ("vibrant_health.php");
				winName = ("Vibrant Health Solutions");
				break;
			case 'train':
				theURL = ("katherine_train.htm");
				winName = ("About Katherine Train");
				break;
			case 'nola':
				theURL = ("nola_davidson.htm");
				winName = ("About Nola Davidson");
				break;
			
			
		}
		//alert("Type = " + fileType + " URL = " + theURL + ", winName = " + winName);
		if (centre == 1){
			x = (screen.width / 2) - (width / 2);
			y = (screen.height / 2) - (height / 2);
			features = "width=" + width + ", height=" + height + ", left=" + x + ", top=" + y;
			}
		else{
			features = "width=" + width + ", height=" + height;
		}
		if (scrollYN ==1){
			features = features + ", scrollbars=yes"; 
		}
		features = features + ", dependent=yes";
		//alert("URL = " + theURL + ", winName = " + winName + ", Features = " + features);
//		window.open(theURL,winName,features);
		window.open(theURL,"",features);
	}
	
	
	function test(){
		alert("Hey, have a good day!");
	}
	
	function ClearAll(){
		var nTag;
		var i;
		for (i = 0; i < document.all.length; i++){
			nTag = document.all[i];
			if (nTag.id.length > 0 ){
				if ((nTag.id.charAt(0) == "m")&& (nTag.className != "Button")){
					//alert(nTag.id + " i = " + i);
					if (nTag.className != "Button"){
						nTag.className = "Button";
						nTag.style.background = "#FFCC99";
					}
				}
			}
			
		}
	}
	
	function menuOver(thisTag) {
		//alert ("got his far: " + thisTag.id);
		//ClearAll();
		
		//alert ("got to SetGreen " + thisTag.id);
		with (thisTag){
			className = "menuLinksOver";
			//style.background = "#FFFF99"; //"rgb(240,240,240)";
			//class = "menuLinksOver";
		}
	}
	
	function menuOut(thisTag) {
		//alert ("got his far: " + thisTag.id);
		//ClearAll();
		
		//alert ("got to SetGreen " + thisTag.id);
		with (thisTag){
			className = "menuLinks";
			//style.background = ""; //"#FFCC99"; //"rgb(240,240,240)";
			//class = "menuLinks"; 
		}
	}
	
	function print_page(where){ 
		var is_mac=(navigator.platform.indexOf("ac") != -1); 
		(document.all &&  is_mac)? 
		alert("Select  \"Print\" from the menu") : where? where.window.print() : 
		window.print(); 
	} 

