// JavaScript Document
/*Has to be added to the path of images, otherwise, when this include is exectuted from a page in a sub folder, thec browser will not be able to connect a file with the newly created image. It will not understand /images either, will interpret as 'the folder i execute under now/images' */
var current_server="http://";
current_server=current_server+document.location.host;
current_server=current_server+"/";
<!--
//OVER IMAGES FOR HEADER MENU
langueon = new Image();           // Active images, top row header
langueon.src = current_server+"images/menu/langueon.gif";  
faqon = new Image(); 
faqon.src = current_server+"images/menu/faqon.gif";  
rechercheon = new Image();
rechercheon.src = current_server+"images/menu/rechercheon.gif";
							// Active images, middle row header
formationon = new Image();
formationon.src = current_server+"images/menu/formationon.gif";
collegeon = new Image();
collegeon.src = current_server+"images/menu/collegeon.gif";
telechargementon = new Image();
telechargementon.src = current_server+"images/menu/telechargementon.gif";
centreon = new Image();
centreon.src = current_server+"images/menu/centreon.gif";
admissionson = new Image();
admissionson.src = current_server+"images/menu/admissionson.gif";
contacton = new Image();
contacton.src = current_server+"images/menu/contacton.gif";


//NORMAL IMAGES FOR HEADER MENU
langue = new Image();           // IN Active images, top row header
langue.src = current_server+"images/menu/langue.gif";  
faq = new Image(); 
faq.src = current_server+"images/menu/faq.gif";  
recherche = new Image();
recherche.src = current_server+"images/menu/recherche.gif";
							// IN Active images, middle row header
formation = new Image();
formation.src = current_server+"images/menu/formation.gif";
college = new Image();
college.src = current_server+"images/menu/college.gif";
telechargement = new Image();
telechargement.src = current_server+"images/menu/telechargement.gif";
centre = new Image();
centre.src = current_server+"images/menu/centre.gif";
admissions = new Image();
admissions.src = current_server+"images/menu/admissions.gif";
contact = new Image();
contact.src = current_server+"images/menu/contact.gif";


//REFERENCE for associative array syntax : http://www.lll.uiuc.edu/hum382/syllabus/content/arrays/associativeArrays.html
var informations;           // rollover text to be displayed in the red field under the header, triggered by images
informations={
	langue: "Voir la version française du site",
	faq: "Frequently Asked Questions",
	recherche: "Alternative Medicine College of Canada site map",
	formation: "Learn more about the distance learning courses offered at our college",
	college: "Who are we? Director\'s note, testimonials, our methodology, and much more!",
	telechargement: "Download the AMCC Student Guide and other important documents",
	centre: "For current AMCC students; sign up for practical workshops, download your courses, and more!",
	admissions: "Visit our financial aid section, read our terms and conditions, and sign-up on-line!",
	contact: "Get in touch with us by phone, email, or postal mail",
	vide: "Distance Learning Courses in Naturopathy, Bioenergetics & Homeopathy" 
};

function smallOn(imgName) {
	  if (document.images) {
       document[imgName].src = eval(imgName + "on.src");
	   if(document.getElementById("recepteurTexte").firstChild.nodeValue!=""){
		   document.getElementById("recepteurTexte").firstChild.nodeValue="";
		   }
	   document.getElementById("recepteurTexte").firstChild.nodeValue=informations[imgName];
	  }
}
function smallOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + ".src");
			if(document.getElementById("recepteurTexte").firstChild.nodeValue!=""){
		   document.getElementById("recepteurTexte").firstChild.nodeValue="";
		   }
			document.getElementById("recepteurTexte").firstChild.nodeValue=informations[imgName];
        }
}

//-->

