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=.50; // 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]="Amma's Home Page";
profile_titles_array[2]="Self Realization Fellowship";
profile_titles_array[3]="The Teachings of White Eagle";
profile_titles_array[4]="Bridging Heaven &amp; Earth Art Project";
profile_titles_array[5]="The Seeker Film";
profile_titles_array[6]="Vaishali";
profile_titles_array[7]="Gille Legacy: The Man Who Paints With His Nose";
profile_titles_array[8]="More of my favorite links coming soon!";
profile_titles_array[9]="More of my favorite links coming soon!";
profile_titles_array[10]="More of my favorite links coming soon!";
profile_titles_array[11]="More of my favorite links coming soon!";
profile_titles_array[12]="More of my favorite links coming soon!";
profile_titles_array[13]="More of my favorite links coming soon!";
profile_titles_array[14]="More of my favorite links coming soon!";
profile_titles_array[15]="More of my favorite links coming soon!";
profile_titles_array[16]="More of my favorite links coming soon!";
profile_titles_array[17]="More of my favorite links coming soon!";
profile_titles_array[18]="More of my favorite links coming soon!";
profile_titles_array[19]="More of my favorite links coming soon!";
profile_titles_array[20]="More of my favorite links coming soon!";
profile_titles_array[21]="More of my favorite links coming soon!";


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

profile_info_array[1]="Amma (Also known as \"The Hugging Saint\") is one of the most Divine Beings alive at this time.  I have been going to see her since 1992.  If you are new to her, your are in for a treat. If there were ever a teacher who emanates Just Love it would be Amma!";
profile_info_array[2]="Parmahansa Yogananda was my very first spiritual teacher.  I started going to the Lake Shrine Temple in Los Angeles when I was twelve years old.  His book <i>Autobiography of a Yogi</i> was the most life-changing I have ever read. He is a master in the truest sense of the word. Enjoy!";
profile_info_array[3]="White Eagle is an indescribably beautiful teacher.  One of the most inspiring and influential guides I have ever experiences.  Let White Eagle's words soothe your soul as they have mine.";
profile_info_array[4]="The intention of the Bridging Heaven &amp; Earth Art Project is to spread/enliven the vibration of Love--that is the Heart of the Project...... This Gallery of art will blow your mind! <br>the collective energies of so many unbelievable, creative, people, from all over the world thinking, meditating on, and manifesting &quot;Bridging Heaven &amp; Earth&quot;";
profile_info_array[5]="The most beautiful amazing film project. If I do say so myself!!!  The script is exquisite. The whole story shoots in India. It is my dream to raise the money to get this project to screen as soon as possible. Any ideas? Let us know. This film will move mountains and has been blessed by masters from around the world<br><img src=\"images/seeker.jpg\" width=\"78\" height=\"120\" vspace=\"10\" hspace=\"120\">";
profile_info_array[6]="Vaishali is one of the most authentic /wild women/voices you will hear in the spiritual movement - so obviously she is my hero for that. She knows her stuff! A renagade and a pioneer, You gotta love a gal who can say  God and F--k in the same sentence!";
profile_info_array[7]="My friend Gill is a &quot;pure love on wheels&quot; he is an extraordinary being, an amazing artist ( using only his nose!) I love him dearly and so will you!";
profile_info_array[8]="";
profile_info_array[9]="";
profile_info_array[10]="";
profile_info_array[11]="";
profile_info_array[12]="";
profile_info_array[13]="";
profile_info_array[14]="";
profile_info_array[15]="";
profile_info_array[16]="";
profile_info_array[17]="";
profile_info_array[18]="";
profile_info_array[19]="";
profile_info_array[20]="";
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]="images/bigthumbs/2.jpg";
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]="images/bigthumbs/8.jpg";
profile_image_array[9]="images/bigthumbs/9.jpg";
profile_image_array[10]="images/bigthumbs/10.jpg";
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]="images/bigthumbs/15.jpg";
profile_image_array[16]="images/bigthumbs/16.jpg";
profile_image_array[17]="images/bigthumbs/17.jpg";
profile_image_array[18]="images/bigthumbs/18.jpg";
profile_image_array[19]="images/bigthumbs/19.jpg";
profile_image_array[20]="images/bigthumbs/20.jpg";
profile_image_array[21]="images/bigthumbs/21.jpg";

//_______________________________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;
	}
}













