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]="You Are What You Love";
profile_titles_array[2]="You Are What You Love - Compact Disc"
profile_titles_array[3]="You Are What You Love - Playbook";
profile_titles_array[4]="Wisdom Rising";
profile_titles_array[5]="Longinus: Book I Of The Merlin Factor</br>by Steven Maines";
profile_titles_array[6]="Myrriddin: Book II of the Merlin Factor</br>by Steven Maines";
profile_titles_array[7]="Information For Bookstores";

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

profile_info_array[1]="You Are What You Love makes Eastern mysticism Western mind friendly, says author Vaishali, an intellectual, yet highly irreverent mystic.  Magically mixes story-telling and concepts from Buddhism, Christianity, Judaism, Hinduism, and Sufism, ancient mystic Emanuel Swedenborg, as well as unconventional sources like Groucho Marx, Cheech and Chong, Jimi Hendrix, James Dean, and Homer Simpson.  Empowers readers to befriend their minds and resolve their issues, instead of justifying limitation, and delivers the secret to finding happiness and one’s purpose.";
profile_info_array[2]="The You Are What You Love book on CD is an 80 minute condensed and abridged version of its 400 page book counterpart.  The book on CD is read by the author and offers the listeners a simple and easy way to assimilate the book's key ideas. Perfect for learning quickly how to understand comprehensive, highly penetrating Spiritual wisdom, and to accelerate the personal growth techniques the You Are What You Love book is designed to facilitate and illuminate. Entertaining and fun to listen to as the original text is to read. Perfect for listening to in your car while commuting or traveling.";
profile_info_array[3]="This is the companion book to the You Are What You Love.  The author states, ‘I could not inflict a workbook on you, but I could Bless you with a Playbook!’ The Playbook is designed to further develop and implement the core ideas and principles presented in You Are What You Love, and is divided into three main parts including dreaming techniques, an explanation of the dream time language, a copy of the author’s personal lucid dream diary, a complete 13 month course, and creative, fun and light hearted exercises to infuse and joy, happiness and the fine art of play back into the readers life!";
profile_info_array[4]="Vaishali, spiritual wild child, author of You Are What You Love, and internet radio host, creates another slam-dunk success for spiritual seekers with the release of her new book, Wisdom Rising. From alien life to the afterlife, to enlightenment, to the genius of Emanuel Swedenborg and Edgar Cayce, Wisdom Rising will have readers feasting on spiritual nuggets that go straight to the heart, gut and other body parts. In Wisdom Rising, readers will learn the answers to the all-important questions they NEVER EVEN THOUGHT TO ASK!<br \><br \>From non-ordinary reality to wet burka contests, from the gospel according to the Talking Heads to a duel to the death with wallpaper, Wisdom Rising is chock full of enough mystical insights and humor to raise laugh-out-loud spiritual wisdom to a whole new dimension.";
profile_info_array[5]="Longinus: Book I Of The Merlin Factor tells the story of Gaius Cassius Longinus, the battle-hardened centurion of Rome who is assigned to guard the crucified Jesus. Longinus follows the centurion's life from his love for the prostitute Irena to his mystical studies with the Druids of Gaul, revealing Longinus' profound spiritual awakening through his Druidic studies and the spear that speaks to him with the voice of Jesus.<br \><br \>Available in paperback or compact disc.";
profile_info_array[6]="Many generations have passed since the harrowing journey of Centurion Longinus, the Roman soldier who pierced the side of Jesus with his spear while the condemned one hung from the cross, as told in LONGINUS: Book I Of The Merlin Factor. Now, in MYRRIDDIN: Book II Of The Merlin Factor, it is the 4th Century A.D. A young boy has found sacred relics of the early Christians in the ruins of an ancient Druid temple on the Isle Of Mystery in Old Britain. For reasons beyond his immediate comprehension, the lad connects with one item in particular; the Spear Of Longinus, the very spear that pierced the side of Jesus. The boy’s name is Myrriddin. This is the tale of the boy turned young man, as Myrriddin learns the power within his own being and the power within the Spear - now disguised as a magic-laced Druid Staff - that speaks to him of ancient times and eternal knowledge.";
profile_info_array[7]="We are distributed by Atlas Books Distribution Service, 30 Amberwood Parkway, Ashland, Ohio 44805. </p>Phone: (800)539-6727 or fax (419)281-0200. info@atlasbooks.com</p>Our titles are available from Ingram, Baker and Taylor, and many other wholesalers.";


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

profile_image_array[1]="images/book_sm.jpg";
profile_image_array[2]="images/cd_sm.jpg";
profile_image_array[3]="images/playbook_sm.jpg";
profile_image_array[4]="images/wrising.jpg";
profile_image_array[5]="images/maines.jpg";
profile_image_array[6]="images/myrriddin.jpg";
profile_image_array[7]="images/buddha.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;
	}
}













