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 - MP3<br \>by Vaishali";
profile_titles_array[2]="Wisdom Rising - MP3<br \>by Vaishali"
profile_titles_array[3]="Longinus: Book I Of The Merlin Factor - MP3<br \>by Steven Maines";
profile_titles_array[4]="Myrriddin: Book II of the Merlin Factor - MP3<br \>by Steven Maines";
profile_titles_array[5]="";
profile_titles_array[6]="";
profile_titles_array[7]="";
profile_titles_array[8]="";
profile_titles_array[9]="";
profile_titles_array[10]="";
profile_titles_array[11]="";
profile_titles_array[12]="";
profile_titles_array[13]="";
profile_titles_array[14]="";


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.<br \><br \><b>Downloadable MP3 - $9.95</b>. Abridged from the book; read by the author.<br \>Receive private download link upon payment.<br \>Listen now or at your leisure. For your computer, iPod&#174, or burn to CD.";
profile_info_array[2]="Vaishali, spiritual wild child, author of You Are What You Love, creates another slam-dunk 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. 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.<br \><br \><b>Downloadable MP3 - $9.95</b>. Abridged from the book; read by the author.<br \>Receive private download link upon payment.<br \>Listen now or at your leisure. For your computer, iPod&#174, or burn to CD.";
profile_info_array[3]="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 \><b>Downloadable MP3 - $9.95</b>. Abridged from the book; read by the author.<br \>Receive private download link upon payment.<br \>Listen now or at your leisure. For your computer, iPod&#174, or burn to CD.";
profile_info_array[4]="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. Now, 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 unseen reasons, the lad, named Myrridin, connects with the Spear Of Longinus. 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 that speaks to him of ancient times and eternal knowledge.<br \><br \><b>Downloadable MP3 - $9.95</b>. Abridged from the book; read by the author.<br \>Receive private download link upon payment.<br \>Listen now or at your leisure. For your computer, iPod&#174, or burn to CD.";
profile_info_array[5]="";
profile_info_array[6]="";
profile_info_array[7]="";
profile_info_array[9]="";
profile_info_array[10]="";
profile_info_array[11]="";
profile_info_array[12]="";
profile_info_array[13]="";
profile_info_array[14]="";

var profile_image_array=new Array(); // Array contains the references for each thumbnail image
profile_image_array[1]="images/products/book_sm.jpg";
profile_image_array[2]="images/products/wrising.jpg";
profile_image_array[3]="images/products/maines.jpg";
profile_image_array[4]="images/products/myrriddin.jpg";
profile_image_array[5]="";
profile_image_array[6]="";
profile_image_array[7]="";
profile_image_array[8]="";
profile_image_array[9]="";
profile_image_array[10]="";
profile_image_array[11]="";
profile_image_array[12]="";
profile_image_array[13]="";
profile_image_array[14]="";

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













