initialOpacity=0.2;// Sets the initial opacity of the thumbnail image, must be same opacity defined in the styles
secondaryOpacity=.63; // Sets what the opacity should fall back to when image is moused off
infoBackgroundOpacity=.70; // Sets the opacity of the pop-up background that the info is displayed over


//There should be an array set for every thumbnail, i.e. profile_titles_array[n], profile_info_array[n], profile_image_array[n], for each image thumbnail
// [n] can be any number it just has to be the same in all 3 sets to match info the thumbnail correctly.
// There can be anynumber of array sets, just add or remove more, depending on how many thumbnails there are.
// If a thumbnail is not to have any info to display with it, then set each array for it's set to '' or "" <- blank strings
var profile_titles_array=new Array(); // Array contains the text for each name/title to be displayed

profile_titles_array[1]="Love of Santa Fe";
profile_titles_array[2]="";
profile_titles_array[3]="Alternatives";
profile_titles_array[4]="Inland Journey";
profile_titles_array[5]="Ode Magazine";
profile_titles_array[6]="Positive News Organization";
profile_titles_array[7]="Nexus Magazine";
profile_titles_array[8]="";
profile_titles_array[9]="Mountain Astrologer";
profile_titles_array[10]="";
profile_titles_array[11]="Caduceus Journal";
profile_titles_array[12]="Excellent Reflexology Training, UK";
profile_titles_array[13]="Holos University";
profile_titles_array[14]="NICABM";
profile_titles_array[15]="";
profile_titles_array[16]="";
profile_titles_array[17]="ISSSEEM";
profile_titles_array[18]="";
profile_titles_array[19]="";
profile_titles_array[20]="College of Psychic Studies";
profile_titles_array[21]="";


var profile_info_array=new Array(); // Array contains the text for each intro/info to be displayed

profile_info_array[1]="New magazine discussing health, wellness, and empowerment.";
profile_info_array[2]="";
profile_info_array[3]="Alternatives seeks to inpsire new visions for living through holistic education and connection to the sacred dimension of life.";
profile_info_array[4]="Inland is a profound story which takes the reader on a shamanistic journey, deep within themselves. Through the author's ability to weave a web of mystery and intrigue, you emerge wiser and more compassionate for yourself and others.";
profile_info_array[5]="Ode is an independent magazine about the people and ideas that are changing the world.";
profile_info_array[6]="Positive news reports on people, events and influences that are creating a positive future, stories on the environment, education, sustainable energy, health and more.";
profile_info_array[7]="NEXUS is a bi-monthly alternative news magazine covering health breakthroughs, future science and technology, suppressed news, free energy, religious revisionism, conspiracy, the environment, history and ancient mysteries, the mind, UFOs, paranormal and the unexplained.";
profile_info_array[8]="";
profile_info_array[9]="The Mountain Astrologer is recognized as the best astrology magazine in the world.";
profile_info_array[10]="";
profile_info_array[11]="An independent magazine and website for the community of healers, seekers and world workers.";
profile_info_array[12]="Some of the best Reflexology Training in the United Kingdom. &quotHands on Reflexology&quot is a learning package designed to show you a practical Reflexology treatment on the feet and hands, and to help you understand the theory of reflexology.";
profile_info_array[13]="Holos University Graduate Seminary provides post-graduate education that prepares mature adults to serve as Ordained Ministers, Spiritual Directors, and Spiritual Intuitive Counselors who integrate the healing triad of body, mind, and spirit as their focus for conducting original research and promoting holistic well-being in individuals and communities.";
profile_info_array[14]="The National Institute for the Clinication Application of Behavioral Medicine";
profile_info_array[15]="";
profile_info_array[16]="";
profile_info_array[17]="The International Society for the Study of Subtle Energies and Energy Medicine (ISSSEEM) is an international non-profit interdisciplinary organization dedicated to exploring and applying subtle energies as they relate to the experience of consciousness, healing, and human potential.";
profile_info_array[18]="";
profile_info_array[19]="";
profile_info_array[20]="Founded in 1884, the College is an educational charity set up for the purpose of investigation into, and the exploration of, psychic phenomena and related spiritual matters including healing.";
profile_info_array[21]="";

var profile_image_array=new Array(); // Array contains the references for each thumbnail image

profile_image_array[1]="images/bigthumbs/1.jpg";
profile_image_array[2]="";
profile_image_array[3]="images/bigthumbs/3.jpg";
profile_image_array[4]="images/bigthumbs/4.jpg";
profile_image_array[5]="images/bigthumbs/5.jpg";
profile_image_array[6]="images/bigthumbs/6.jpg";
profile_image_array[7]="images/bigthumbs/7.jpg";
profile_image_array[8]="";
profile_image_array[9]="images/bigthumbs/9.jpg";
profile_image_array[10]="";
profile_image_array[11]="images/bigthumbs/11.jpg";
profile_image_array[12]="images/bigthumbs/12.jpg";
profile_image_array[13]="images/bigthumbs/13.jpg";
profile_image_array[14]="images/bigthumbs/14.jpg";
profile_image_array[15]="";
profile_image_array[16]="images/bigthumbs/16.jpg";
profile_image_array[17]="images/bigthumbs/17.jpg";
profile_image_array[18]="";
profile_image_array[19]="";
profile_image_array[20]="images/bigthumbs/20.jpg";
profile_image_array[21]="";

//_______________________________DON'T HAVE TO MODIFY ANYTHING PAST THIS POINT______________________________________________________________________

var BrowserType;      //Holdes the browser id info, derived from function below.
//This next function queries browser to see what kind it is, if it's not a version of IE, returns -1
//If it is a version of IE, returns the version number.
function getBrowserType () {
	var infoString=navigator.appVersion;
	var temp=infoString.indexOf('MSIE');
	if (temp==-1) {
		//Not IE browser
		return -1;
	} else {
		//Is IE browser and returns version number
		infoString=infoString.substr(temp);
		temp=infoString.indexOf(';');
		infoString=infoString.substring(0,temp);
		infoString=infoString.split(" ");
		return infoString[1];
	}
}

BrowserType=getBrowserType();
timerId=null;
incr=initialOpacity;
function activate (obj,dataNum) {
	element=obj;
	if (BrowserType==-1) {// Not an IE browser
		if( (element.style.opacity==initialOpacity || !element.style.opacity)&& incr>initialOpacity) {incr=initialOpacity;}
		if(dataNum) {
			document.getElementById("info_background").style.opacity=infoBackgroundOpacity;
			if (profile_image_array[dataNum]!='') {
			document.getElementById("info_pic_container").innerHTML="<img style='border: 1px solid white;' src='"+profile_image_array[dataNum]+"' />";
			} else {
				document.getElementById("info_pic_container").innerHTML=profile_image_array[dataNum];
			}
			document.getElementById("info_title_container").innerHTML=profile_titles_array[dataNum];
			document.getElementById("info_body_container").innerHTML=profile_info_array[dataNum];
		}
	}
	if (BrowserType!=-1) {// IE browser
		if( (element.filters.alpha.opacity==initialOpacity*100 || !element.filters.alpha.opacity)&& incr>initialOpacity) {incr=initialOpacity;}
		if(dataNum) {
			document.getElementById('info_background').filters.alpha.opacity=infoBackgroundOpacity*100;
			if (profile_image_array[dataNum]!='') {
				document.getElementById("info_pic_container").innerHTML="<img style='border: 1px solid white;' src='"+profile_image_array[dataNum]+"' />";
			} else {
				document.getElementById("info_pic_container").innerHTML=profile_image_array[dataNum];
			}
			document.getElementById("info_title_container").innerHTML=profile_titles_array[dataNum];
			document.getElementById("info_body_container").innerHTML=profile_info_array[dataNum];
		}
	}
	timerId=setInterval('fadeIn(element)',50);
}
function fadeIn (element) {

	if (BrowserType==-1) {// Not an IE browser
		if(element.style.opacity<1.0) {
			incr+=.05;
			element.style.opacity=incr;
		}else{
			clearInterval(timerId);
		}
	}
	if (BrowserType!=-1) {// IE browser
		if(element.filters.alpha.opacity<1.0*100) {
			incr+=.05;
			element.filters.alpha.opacity=incr*100;
		}else{
			clearInterval(timerId);
		}
	}
}

function resetEverything (obj) {
	element=obj;
	clearInterval(timerId);
	incr=secondaryOpacity;
	document.getElementById("info_pic_container").innerHTML="";
	document.getElementById("info_title_container").innerHTML="";
	document.getElementById("info_body_container").innerHTML="";
	if (BrowserType==-1) {// Not an IE browser
		element.style.opacity=secondaryOpacity;
		document.getElementById('info_background').style.opacity=0.0;
	}
	if (BrowserType!=-1) {// IE browser
		element.filters.alpha.opacity=secondaryOpacity*100;
		document.getElementById('info_background').filters.alpha.opacity=0;
	}
}














