var txt		= new Array();

txt['carley']	= "I saw the infomercial on TV one night when I couldn't sleep and I wrote down the number and called the very next day.  By my second week into the Attacking Anxiety and Depression  program I was able to talk myself out of having panic attacks and I haven't had one since and I feel like I can do just about anything I want to.<p>- <b>Carley</b></p>";

txt['ginny']	= "I had been on medication for ten years prior to using the Attacking Anxiety and Depression Program.  Ten years and even my psychiatrist said I may have to be on drugs for the rest of my life.  Now without medication I feel wonderful.  The Attacking Anxiety & Depression Program was a miracle for me.<p>- <b>Ginny</b></p>";

txt['roderick']	= "I first stated experiencing anxiety and panic attacks when I was in college.  I didn't understand what was happening so I started isolating myself and I started drinking more.  I started feeling better when I first got the program.  Life now to me is very good.  There is more for me to do and I can do anything if I put my mind to it.<p>- <b>Roderick</b></p>";

txt['mike'] = "I knew I was broken and I needed fixed but I didn't have the skills and tools to do that myself.  Then I got the program and went through it.  As a result of this program - after two suicide attempts, drug and alcohol rehabilitation - now I'm drug and alcohol free and I'm in college.  This is a very exciting time for me.<p>- <b>Mike</b></p>";

txt['elizabeth']		= "Before I found the program I had trouble just walking out to the mailbox to get the mail.  I thought I was going to drop over and die or faint.  After the program, everything's changed.  I'm just glad that I can live my life and not be afraid of what people think.  I'm not afraid to go for my dreams, I don't sit around and wait as life passes my by.<p>- <b>Elizabeth</b></p>";

txt['victor'] = "I'm looking forward to life now knowing all of the skills and all of the useful information from the Attacking Anxiety and Depression Program.  It will change the way you live, change the way you eat, change the way you exercise.  This program has made me look at life and the way I feel in ways I never had before.<p>- <b>Victor</b></p>";

txt['mona'] = "So there I was, a nurse, working in the emergency room taking care of people who have this and I couldn't help myself.  I am different now because of the program. I'm living life, I am connected.  I feel more energetic.  I enjoy silly things.  I used to say that I just didn't have time for that.  If I wouldn't have found the program I think I would still be on a very dark road.<p>- <b>Mona</b></p>";
var scriptvar;
var para;
var ival;
ival ="ginny";


function showstory (photoid)
{

	if(ival != photoid)
	{
		
		var objtxt	= document.getElementById('success_lftcont');
		var objflash= document.getElementById('success_rgtcont');
		var zoom	= document.getElementById('zoom');
		
		var obj		= document.getElementById(photoid);	
		var path= obj.src;
	
		var arr		= path.split("_");
	
		obj.src	= eval("'"+arr[0] + "_smallon.jpg'");
	
		objtxt.innerHTML	=	txt[photoid];
		
		var oldobj		= document.getElementById(ival);	
		var oldpath= oldobj.src;

		var oldarr		= oldpath.split("_");

		oldobj.src	= eval("'"+oldarr[0] + "_smalloff.jpg'");
		
		ival	= photoid;
		para = "images/gallery/player.swf?videoName=images/gallery/"+ival+".xml&playValue=false";

		scriptvar = eval("AC_SSS_RunContent('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','width','250','height','215','align','middle','allowScriptAccess','sameDomain', 'type', 'application/x-shockwave-flash','movie','"+para+"','src','"+para+"','menu','false','wmode','transparent','quality','high','name','stories','id','stories','pluginspage','http://www.macromedia.com/go/getflashplayer','swliveconnect','true')");

		objflash.innerHTML = scriptvar;		

	}

}
function showVideo (photoid)
{

	if(ival != photoid)
	{				
		var objflash	= document.getElementById('videoDiv');
				
		var obj		= document.getElementById(photoid);	
		

		var path= obj.src;
	
		var arr		= path.split("_");
	
		obj.src	= eval("'"+arr[0] + "_smallon.jpg'");
		

		var oldobj		= document.getElementById(ival);	
		var oldpath= oldobj.src;

		var oldarr		= oldpath.split("_");

		oldobj.src	= eval("'"+oldarr[0] + "_smalloff.jpg'");
		
		ival	= photoid;

		para = "images/gallery/player.swf?videoName=images/gallery/"+ival+".xml&playValue=false";

		scriptvar = eval("AC_SSS_RunContent('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','width','250','height','215','align','middle','allowScriptAccess','sameDomain', 'type', 'application/x-shockwave-flash','movie','"+para+"','src','"+para+"','menu','false','wmode','transparent','quality','high','name','stories','id','stories','pluginspage','http://www.macromedia.com/go/getflashplayer','swliveconnect','true')");

		objflash.innerHTML = scriptvar;		

	}

}
function selectImg (photoid)
{
	if(ival != photoid)
	{
		
		var obj		= document.getElementById(photoid);	
		var path= obj.src;
	
		var arr		= path.split("_");
	
		obj.src	= eval("'"+arr[0] + "_smallon.jpg'");	
	}

}


function unselectImg (photoid)
{
	if(ival != photoid)
	{
		
		var obj		= document.getElementById(photoid);	
		var path= obj.src;
	
		var arr		= path.split("_");

		obj.src	= eval("'"+arr[0] + "_smalloff.jpg'");		
	}

}