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]="Linda Drake";
profile_titles_array[2]="Vaishali on YouTube";
profile_titles_array[3]="Element Emporium";
profile_titles_array[4]="Steven Maines";
profile_titles_array[5]="Karen Anderson - Animal Communicator";
profile_titles_array[6]="The Ghost Club";
profile_titles_array[7]="Contact Talk Radio";
profile_titles_array[8]="Julia Cole";
profile_titles_array[9]="Grandma Purple";
profile_titles_array[10]="Souls Code";
profile_titles_array[11]="Mellen-Thomas Benedict</br>Journey Through The Light and Back";
profile_titles_array[12]="Swedenborg Foundation";
profile_titles_array[13]="Seeing Beyond";
profile_titles_array[14]="Author One Stop - Randy Peyser";
profile_titles_array[15]="";
profile_titles_array[16]="";
profile_titles_array[17]="Brian Narelle, Cartoonist";
profile_titles_array[18]="";
profile_titles_array[19]="";
profile_titles_array[20]="Swedenborgian Church of Puget Sound";
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]="Linda Drake is an author and healer, a true channel for Spirit. She does individual consultations.  Her latest book is called, <i>Reaching Through the Veil to Heal.</i>";
profile_info_array[2]="See V's video and the amazing Longinus flash animation trailer.";
profile_info_array[3]="Element Emporium is a project of Bethany Argisle, an excellent resource for any author.";
profile_info_array[4]="Steven Maines.  Author of Longinus and Myrriddin, two amazing books!";
profile_info_array[5]="Karen Anderson is a world-class animal communicator and author.  Please visit her website and check out her new book <i>Hearing All Creatures.</i>";
profile_info_array[6]="Are Ghost's real?  The Ghost Club can answer that, including documenting first-hand eyewitness accounts, books, and much more.";
profile_info_array[7]="Contact Talk Radio is consciousness in action.  Heard in over 220 countries.";
profile_info_array[8]="Author of <i>Children of Luminaries</i> and <i>Interview With Spirit Guide</i>.  Hostess of Namaste Beloved (www.namastebeloved.com), Blog Talk Radio, The Empress of Empowerment, Julia Cole.";
profile_info_array[9]="Do you love purple or know someone who does? If purple is your passion, and you are a purple lover or have a friend who is, or if you are a Red Hat Society Diva, you have found the most unique and fabulous purple store. Grandma Purple specializes in all things Purple. She offers purple accessories for your home, for yourself, your pets, purple gifts, scrumptious soft purple leather goods. unique and handmade gifts such as lavender soaps, bath products and purple jewelry. In fact she has everything purple.";
profile_info_array[10]="Souls Code - publishing a different chapter from V's new book <i>Wisdom Rising</i> every month.";
profile_info_array[11]="After suffering from a terminal illness, in 1982 Mellen-Thomas Benedict ‘died’ and for an hour and a half he was monitored showing no vital signs. Miraculously he returned to his body with a complete remission of the disease – and what may be the most inspirational near-death experience story known to date.";
profile_info_array[12]="The Swedenborg Foundation website is a comprehensive listing of works related to Emanuel Swedenborg, an 18th century Swedish mystic, and Vaishali's other boyfriend.";
profile_info_array[13]="Seeing Beyond is a radio show broadcast over the internet and the airwaves.  Hostess Bonnie Coleen Bonnie connects listeners to Spirit, personal fitness, right livelihood, the entrepreneurial edge, health, nutrition, spritual vacations, everyday heroes, metaphysical phenomena, psychological information and technological updates.";
profile_info_array[14]="Author One Stop is the complete resource for anyone who ever wants to write a book but doesn't know how to go about it.";
profile_info_array[15]="";
profile_info_array[16]="";
profile_info_array[17]="Visit Brian's cafepress site.  There, you’ll find an ever-increasing array of cartoons to adorn your coffee mugs, t-shirts and more. They make fantastic gifts. The topmost images are actually portals into a wide array of products. If you’d like a custom made gift for someone just click on the NARELLE logo above and contact Brian via his web site. Happy shopping!";
profile_info_array[18]="";
profile_info_array[19]="";
profile_info_array[20]="Creating Heaven on earth by celebrating Divine love and wisdom through worship, the arts, and service. Rev. Eric Allison, Minister.";
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]="";
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;
	}
}













