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]="The Rose Garden Meditation";
profile_titles_array[2]="Camai: Eskimo for 'Hello'";
profile_titles_array[3]="An Inconvenient Truth:<br>The Most Important Film You Will See";
profile_titles_array[4]="";
profile_titles_array[5]="Green Tortoise Adventure Travel";
profile_titles_array[6]="For The Birds:<br>The Silent Victims of Big Oil";
profile_titles_array[7]="Astrology: A Humanistic View";
profile_titles_array[8]="All About Aurgasm!";
profile_titles_array[9]="CHANGE THIS";
profile_titles_array[10]="A Simple Secret To Dramatically</br>Change Your Appearance & Health";
profile_titles_array[11]="The Free Hugs Campaign:</br>How Juan Mann Changed The World";
profile_titles_array[12]="Free Hugs Around The World";
profile_titles_array[13]="Introducing Dame Brenda Brett:<br>Knights Templar & Healer";
profile_titles_array[14]="Smallflower.com:<br>An On-Line Apothecary";
profile_titles_array[15]="Kiva Changes Lives!";
profile_titles_array[16]="";
profile_titles_array[17]="Mindwalk: A Movie By Bernt Capra";
profile_titles_array[18]="Child Musical Prodigies";
profile_titles_array[19]="Introducing Contact Improvisation";
profile_titles_array[20]="Saving Kkuchamama: North & South Join to Save The Pacific";

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

profile_info_array[1]="The Rose Garden Meditation is an extraordinary 34 minute journey through seven levels of consciousness.  Combining the voice of reknowned healer and hypnotist, Dame Brenda Brett, and the music of London's World-Fusion band Praying for the Rain, The Rose Garden will relax you, guide you, and enlighten you.</p>Listen to the first 88 seconds online.";
profile_info_array[2]="Camai is an Alaska-based non-profit that uses music to bring people together worldwide. From their work in the former Soviet Union, to the Middle East, and in Central and South America, Camai has an impressive resume.</p>January Project donates a percentage of its profits to Camai for its current efforts aimed at raising consciousness about the deterioration of the Pacific Ocean.</p>Learn about how you can participate!";
profile_info_array[3]="An Inconvenient Truth, featuring former Vice President Al Gore, is a critically acclaimed film detailing the destruction of the environment and the effects of global warming. The film paints a dire picture of what life on earth will be like if we do not make significant changes within the next decade.</p>Your great great great grandchildren told me to tell you to be sure to see this.";
profile_info_array[4]="";
profile_info_array[5]="Green Tortoise is adventure travel like you've never known it, and on a budget that is easy on the pocketbook!</p>Travel possibilities include the West Coast, Burning Man, Mexico and Belize, Alaska, the American Southwest, Mardi Gras, and Great Lakes.</p>Not just travel, but a unique and unforgetable adventure!";
profile_info_array[6]="A pioneering organization called Tri-State Bird Rescue and Research is leading the wildlife rescue efforts in the Gulf of Mexico, working in tandem with volunteers and other organizations such as the U.S. Fish & Wildlife Service to manage the rehabilitation of oiled wildlife who are on the verge of dying, with little or no change of surviving. These amazing volunteers are doing this brilliantly, and out of the kindness of their hearts, without asking for media exposure or instant gratification.";
profile_info_array[7]="Humanistic Astrology is the antithesis to predictive, event-oriented astrology.  It looks at things in a more cyclic way and therefore is a distant cousin to psychology. For those who prefer a more in-depth and intellectual approach, this is for you.</p>The stars are not an agent of change but rather an ever-changing messenger.";
profile_info_array[8]="Aurgasm is 'your favorite music that you haven't heard yet'... Imagine a blog that features new and little-known music that is appealing to a broad-based audience. Listen, then download for free, legally!</p>The man behind the scenes is Paul Irish,</br>self-described music lover and web-geek from Boston. He has a knack for choosing little known but quality music. ";
profile_info_array[9]="The Secret is an exciting movie about harnessing the law of attraction.  Distributed on the internet and by DVD exclusively, it is a huge hit! Includes rare excerpts from the movie and information about a special related weblog.";
profile_info_array[10]="The Raw diet is not going anywhere.  So says Matt Monarch, raw foodist and former meat eater.  Monarch read a book about the effects of processed sugars and starches on the body in one sitting.  That was six years ago. The very next day he adopted a completely raw food diet resulting in radical, positive changes. Includes a movie clip with his story, including his friend Angela who lost over 150 lbs on a raw food diet! Much more information, resources, and success stories!";
profile_info_array[11]="Free Hugs is a real life controversial story of an Australian named Juan Mann (and one man, indeed), whose only mission was to reach out and hug a stranger, here and there, to brighten up their lives. Includes video footage from all over the world!";
profile_info_array[12]="Juan Mann's free hugs campaign touches the world!";
profile_info_array[13]="The story of Dame Brenda Brett, Knights Templar, healer, hypnotherapist, recording artist, futurist, and a dear friend.";
profile_info_array[14]="Merz Apothecary is an institution in Chicago's north side.  Through it's online outlet, Smallflower.com, it distributes many of the same unique and wonderful products. You can order homeopathic remedies to spec!  The story of this amazing place is fascinating!";
profile_info_array[15]="Micro-credit is a really innovative way for large population groups to find ways in which to break out of poverty. This in turn advances democracy and human rights. Micro-credit is basically tiny loans, most of them under $1500, that are lent to people in third world counties to start or grow their business, and then repaid.";
profile_info_array[16]="";
profile_info_array[17]="What is life?  Mindwalk, based on Fritjof Capra's work, The Turning Point, is a deep and mind-bending discussion of the theory of living systems. Featuring John Heard, Sam Waterston, and Liv Ullmann, it is a blending of views of a poet, a politician, and a physicist.  The entire film is posted!</p>Warning: this is not for the faint of heart!";
profile_info_array[18]="Inner Cafe. February 11, 2007. Includes video footage of child musical prodigies. Imagine a five year old playing classical piano perfectly, or a 10 year old playing Duke Ellington masterfully on guitar!"
profile_info_array[19]="Contact Improvisation is a post-modern dance form that combines martial arts, tango, and so much more.  It can be gymnastic as well as meditative. Examples included in video form, plus a resource list so you can check it out in your area.";
profile_info_array[20]="Saving Kkuchamama, a Quechua Andean word for ocean mother, is an annual musical event that raises awareness about the ocean. It is a part of Alaska-based Camai's Turning the Tides project.  The story is at-once heartbreaking and heartwarming. You can be a part of this, too. ";

var profile_image_array=new Array(); // Array contains the references for each thumbnail image
profile_image_array[1]="images/candleburn.jpg";
profile_image_array[2]="images/girleye.jpg";
profile_image_array[3]="images/lighteningred.gif";
profile_image_array[4]="";
profile_image_array[5]="images/cameldesert.jpg";
profile_image_array[6]="images/redumbrella.jpg";
profile_image_array[7]="images/eclipse.gif";
profile_image_array[8]="images/leaves_droplets.gif";
profile_image_array[9]="images/sunrisesit.jpg";
profile_image_array[10]="images/watermelons.jpg";
profile_image_array[11]="images/redridinghood.jpg";
profile_image_array[12]="images/goldengate2.jpg";
profile_image_array[13]="images/bw_lightwindow.jpg";
profile_image_array[14]="images/daisyflower.jpg";
profile_image_array[15]="images/swirlchair.jpg";
profile_image_array[16]="images/redumbrella.jpg";
profile_image_array[17]="images/elephant.jpg";
profile_image_array[18]="images/pedalbike.jpg";
profile_image_array[19]="images/redhairwoman.jpg";
profile_image_array[20]="images/rocksoceanscene.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;
	}
}














