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 any number 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]="Welcome to the Just Love Store!<br />...or how it all works.";
profile_titles_array[2]="God Made Easy (Second Edition)<br />";
profile_titles_array[3]="God Made Easy (First Edition)";
profile_titles_array[4]="The Invisible String";
profile_titles_array[5]="The Smile That Went Around The World";
profile_titles_array[6]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[7]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[8]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[9]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[10]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[11]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[12]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[13]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[14]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[15]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[16]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[17]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[18]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[19]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[20]="Welcome to the Just Love Store<br />...more is on the way!";
profile_titles_array[21]="Welcome to the Just Love Store<br />...more is on the way!";


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

profile_info_array[1]="\"What if all we knew was just love?\"-pk<br /><br />The Just Love Store is secure and easy to use. Simply hover over a thumbnail to view a product description. Clicking on the thumbnail adds the item to the shopping cart for purchases.<br /><br />A percentage of all profits made from Patrice Karst and any and all of her work will be donated to The Just Love Project. Detailed information available on request.";
profile_info_array[2]="On 11/11/1995 Patrice Karst woke up from a deep sleep with the title <i>God Made Easy.</i> \"What happened next,\" Patrice describes, \"was one miracle after the other. I was <i>instructed</i> to get up and write it now!\"  Like taking dictation, what flowed out of her pen was a hip, humorous, user-friendly guide to God for people of all religions and spiritual paths. This little book sums up mysteries of our universe in a charming and touching way.<br /><br /><i>God Made Easy</i> draw us into the wonder of the Divine, and helps believers and non-believers alike to find their own spiritual strength.<br /><br />$6.95 - Hardcover.<br />USPS First Class: $5, International $10";
profile_info_array[3]="On 11/11/1995 Patrice Karst woke up from a deep sleep with the title <i>God Made Easy.</i> \"What happened next,\" Patrice describes, \"was one miracle after the other. I was <i>instructed</i> to get up and write it now!\"  Like taking dictation, what flowed out of her pen was a hip, humorous, user-friendly guide to God for people of all religions and spiritual paths. This little book sums up mysteries of our universe in a charming and touching way.<br /><br /><i>God Made Easy</i> draw us into the wonder of the Divine, and helps believers and non-believers alike to find their own spiritual strength.<br /><br />$6.95 - Hardcover.<br />USPS First Class: $5, International $10";
profile_info_array[4]="What began as a way of comforting my own son Elijah when he was sad that I had to go to work and he was going to pre-school, became my best selling book <i>The Invisible String</i>. <br /><br />Children of all ages feel a great sense of peace and joy realizing that we are all connected to the ones that we love through the Invisible String: one that can never be lost, cut or torn, one that can reach all the way to the moon or down to the ocean floor, one that cannot be taken away. No one is too young or old to remember that we are really never all alone. Let's spread the word!<br /><br />$15.95 - Hardcover.<br />USPS First Class: $8.50, International $17";
profile_info_array[5]="When you’re smiling, the whole world smiles with you.  <br /><br />What starts out as a simple act of kindness, sparks a chain reaction of kindness and spreads to everyone who sees it.  A heart-warming story about a smile that went around the world: this smile is very special and easy to follow as it quickly moves from a young boy to another, and then another and another, until finally one day the young boy who first sent the smile on its way finds himself feeling down and the smile he gave to someone finds its way back to put a smile on his face once again. Magic!<br /><br />$14.95 - Hardcover. Ships Spring 2009.<br />USPS First Class: $8.50, International $17.00";
profile_info_array[6]="";
profile_info_array[7]="";
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/products/patricesmall.jpg";
profile_image_array[2]="images/products/easy2.jpg";
profile_image_array[3]="images/products/easy.jpg";
profile_image_array[4]="images/products/string.jpg";
profile_image_array[5]="images/products/smile.jpg";
profile_image_array[6]="images/products/patricesmall.jpg";
profile_image_array[7]="images/products/patricesmall.jpg";
profile_image_array[8]="images/products/patricesmall.jpg";
profile_image_array[9]="images/products/patricesmall.jpg";
profile_image_array[10]="images/products/patricesmall.jpg";
profile_image_array[11]="images/products/patricesmall.jpg";
profile_image_array[12]="images/products/patricesmall.jpg";
profile_image_array[13]="images/products/patricesmall.jpg";
profile_image_array[14]="images/products/patricesmall.jpg";
profile_image_array[15]="images/products/patricesmall.jpg";
profile_image_array[16]="images/products/patricesmall.jpg";
profile_image_array[17]="images/products/patricesmall.jpg";
profile_image_array[18]="images/products/patricesmall.jpg";
profile_image_array[19]="images/products/patricesmall.jpg";
profile_image_array[20]="images/products/patricesmall.jpg";
profile_image_array[21]="images/products/patricesmall.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;
	}
}













