﻿/*
Created by Landon McCord on Aug 30, 2005
copyright - Landon McCord - All Rights Reserved;

All quotes are owned by their respective authors and
may not be used with out premission.

This script is open source and can be reused or modified
as needed but this comment must stay intact with out change.
This script is provided as is without warranty expressed or implied.
*/
//start array called com
//leading 0 or 1 to specify if a parrent or resident made the quote.

var com = new Array(17);
var comf = new Array(17);
com[0] = "My experience at Capstone was a very good experience. I learned a lot of stuff and met really great people and worked through a lot of issues. I got good stuff through really bad stuff. It&#8217;s changed my life. I got a sweet dog and I got my life back. It&#8217;s really changed the way that I am doing things now.";

com[1] = "My experience is really hard to generalize. I mean Capstone was a life changing and life saving experience. I&#8217;m a totally different person today than I would have been without Capstone.";

com[2] = "The minute I drove up the road, I knew it was the right place. I just felt a peace and a family atmosphere. Capstone changed everyone&#8217;s life in our family.";

com[3] = "I think there are very few people you can trust in general. I think most people have an ulterior motive and at the end of the day don&#8217;t care. Probably the most meaningful thing for me about Capstone is I really felt like they cared not only from a therapeutic perspective but also from a spiritual perspective. You have to deal with the whole person and I think that Capstone cared enough to get down to that level.";

com[4] = "It was God&#8217;s plan. It was hard but Capstone literally saved his life. If he had continued in the direction he was going he probably would have overdosed, had a vehicle accident, or something terrible would have happened. It gave us a chance to spend time together and a chance for us to get stronger and prepare for him to come home. There isn’t any other place like Capstone that I know of and I&#8217;m grateful for our son and family to have come here.";

com[5] = "Capstone is different in the whole approach of understanding that any outward behavior is an indication of inner problems that being the core of the philosophy... I think the intense daily therapy was important for him to get down to the core issues.";

com[6] = "The family therapy was awesome. Family week had the most dramatic affect on me and my family and it was really a wakeup call. You don&#8217;t have that at other places, family may visit on Sunday and you talk about what you had to eat but that may be it. I think without family week I would not have taken it as seriously.";

com[7] = "The fact that you are focused on getting to the core issues and really beneath the surface. In the past with other programs, I felt that they were more pessimistic like once an alcoholic always an alcoholic and stuff like that so you feel doomed for the rest of your life. Here it&#8217;s the whole approach and philosophy that gives you hope and the belief that God can pull you through this.";

com[8] = "I think the most important thing for him was the individual therapy which was what got him to talk about his issues. Everything else that Capstone does is an integral part but it really was in individual therapy where he needed help the most I believe.";

com[9] = "The spiritual aspect of the program is critical. The concern that is shown not only for the resident but for the family as well was also important. I think a lot of treatment centers tend to deal with the individual and maybe place blame on the parents or other family but never really get in to that family connection and see what is really going on there and help family members see what needs to change.";

com[10] = "I appreciated the core model. You put out the entire fire. The individual approach and the individual therapy was important. The canine therapy, I take pride in teaching my dog and it makes me feel good. It also is a good break in the day. Many of us have trouble concentrating for long periods of time. It is good to get outside and be with our dogs and it helps with responsibility.  The staff here is encouraging and challenging like in the weight workout. The work out in general was important, I came in looking terrible and now I have gained 25 pounds and I am much healthier.";

com[11] = "I would never say how I felt about anything. I was never really happy and I never really told anybody how I felt. Now I talk more to my parents and I still get depressed sometimes but I can talk about it. I just have better days, better friends, and a better life.";

com[12] = "I grew in my self image. I drew close to God and learned that He has a plan for me no matter what I do or what I&#8217;ve done and I opened up. I was able to open up with people and learn everything from dating to just how to live a normal life. I can be sober and with sober friends and you can enjoy life that way.";

com[13] = "You gave us a lot of direction; you really equipped us to bring him home. If you didn&#8217;t do that I don’t think that anybody could make it.  You helped us change our way of doing things and to change the things that we need to change in our own lives as parents was important.";

com[14] = "I have grown emotionally, physically, and spiritually. You guys provided a safe place for me to express my sadness and happiness and that has really helped. I have learned to express my emotions. The workout has helped me to feel better about myself. I had been so blinded by drugs and now I have had a good wake up call. I am closer to my family and if it were not for the dog, I don&#8217;t think I would have stayed.";

com[15] = "I felt that Capstone served our son completely. We did not think that the main problem was his addiction to drugs and you cannot treat that problem without treating everything else. We were fighting for his life and for our lives and it was God that led us to Capstone.";

com[16] = "For the first time I felt like I had something to grab on to and it seemed right. When I spoke with Dr. Hickmon we felt right away that he had been spying on us already because he was able to get to what was going on rather quickly, he understood. We had enough experience with other facilities by that time we knew what sounded good and what didn&#8217;t.";

comf[0] = "Resident from Michigan";//
comf[1] = "Resident from Kansas";//
comf[2] = "Mom from Kansas";//
comf[3] = "Dad from Kansas";//
comf[4] = "Mom from Arizona";//
comf[5] = "Mom from Arkansas";//
comf[6] = "Resident from Arkansas";//
comf[7] = "Dad from Texas";//
comf[8] = "Dad from Arkansas";//
comf[9] = "Mom from Michigan";//
comf[10] = "Resident from Texas";//
comf[11] = "Resident from Tennessee";//
comf[12] = "Resident from Michigan";//
comf[13] = "Mom from Michigan";//
comf[14] = "Resident from Louisiana";//
comf[15] = "Dad from Arizona";//
comf[16] = "Mom from Missouri";//

var len = com.length - 1;
var num = Math.round(Math.random() * len); //generated a random number.
function qtfow() { num < len ? num++ : num = 0; return getQt(); } //for foward button call in button on click
function qtrev() { num <= 0 ? num = len : num-- ; return getQt(); } //for rev button call in button on click
function getQt() {
	var f3qw = 0; //set var = 0 f3qw means first 3 quote words
	var comQuo = com[num]
	for (i=0; i<1; i++)	{ f3qw += comQuo.substring(f3qw,comQuo.length).indexOf(" "); f3qw++; } //loop to get the charater number of first three words using space
	comQuo1 = comQuo.substring(0,f3qw-1); //Pulls first 3 words from string stops
	comQuo2 = comQuo.substring(f3qw,comQuo.length); //gets rest of string
	comFrom = comf[num];
	return chDiv(); //calls function
}
function chDiv() {
	function span(fns,ws,lh,fw,fs,fl,con) { return "<span style='font-size:"+fns+";!important;word-spacing:"+ws+";line-height:"+lh+";font-weight:"+fw+";font-style:"+fs+";float:"+fl+";'>"+con+"</span>"; } //function used to retern a var for span tags
	cont = "<div style='height:400px;width:10px;float:left;'>" + span("20px","0px","16px","800","none","none","<span style='word-spacing:6px'>&#8220;</span>") + "</div><div style='width:150px;float:right;display:inline;position:relative;'>" + span("11px","-1px","16px","800","none","none",comQuo1 + " ") + span("11px","0px","15px","800","none","none",comQuo2) + span("20px","0px","0px","800","none","none","<span style='position:relative;top:4px;'>&#8221;</span>") + "<br /><br />" + span("10px","-1px","14px","800","none","right","&#8212;"+comFrom) + "</div>"; //Set up string
	document.all ? document.all("comment").innerHTML=cont : document.getElementById("comment").innerHTML=cont; //test DOMs and change contents of tag with id=comment;
}
