// JavaScript Document

function slideSwitch() { //This function controlls the slideshow in the home section
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});
	   
function gohere(a){ //This function grabs the number coresponding to witch title to scroll to
	goto = a;
	if(goto == 1){
		$(window).scrollTo('#ttl1', 800);	//Window will take 0.8 second to scroll
	}else if(goto == 2){
		$(window).scrollTo('#ttl2', 800);	
	}else if(goto == 3){
		$(window).scrollTo('#ttl3', 800);	
	}else if(goto == 4){
		$(window).scrollTo('#ttl4', 800);	
	}else if(goto == 5){
		$(window).scrollTo('#footer', 800);	
	}else{
		$(window).scrollTo('#home', 800);
	}
}

	   
$(document).ready(function(){
		$(".menu_img").fadeTo("slow", 0.5); // This sets the opacity of the thumbs to fade down to 50% when the page loads
		$(".menu_img").hover(function(){
		$(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
		},function(){
		$(this).fadeTo("fast", 0.5); // This should set the opacity back to 50% on mouseout
		});
});

$(document).ready(function(){
		$(".menu_img2").hover(function(){
		$(this).fadeTo("slow", 0.6); // This should set the opacity to 60% on hover
		},function(){
		$(this).fadeTo("slow", 1.0); // This should set the opacity back to 100% on mouseout
		});
});


var slideMenu=function(){  //This functions controlls the accordian menu for the services section
	var sp,st,t,m,sa,l,w,gw,ot;
	return{
		build:function(sm,sw,mt,s,sl,h){
			sp=s; st=sw; t=mt;
			m=document.getElementById(sm);
			sa=m.getElementsByTagName('li');
			l=sa.length; w=m.offsetWidth; gw=w/l;
			ot=Math.floor((w-st)/(l-1)); var i=0;
			for(i;i<l;i++){s=sa[i]; s.style.width=gw+'px'; this.timer(s)}
			if(sl!=null){m.timer=setInterval(function(){slideMenu.slide(sa[sl-1])},t)}
		},
		timer:function(s){
			s.onmouseover=function(){$(this).fadeTo("slow", 0.8);} // This should set the opacity to 80% on hover
			s.onmouseout=function(){$(this).fadeTo("slow", 1.0);} // This should set the opacity back to 100% on mouseout
			s.onmousedown=function(){$(this).fadeTo("slow", 1.0);clearInterval(m.htimer);clearInterval(m.timer);m.timer=setInterval(function(){slideMenu.slide(s)},t)}
			//s.onmouseout=function(){clearInterval(m.timer);clearInterval(m.htimer);m.htimer=setInterval(function(){slideMenu.slide(s,true)},t)}
		},
		slide:function(s,c){
			var cw=parseInt(s.style.width);
			if((cw<st && !c) || (cw>gw && c)){
				var owt=0; var i=0;
				for(i;i<l;i++){
					if(sa[i]!=s){
						var o,ow; var oi=0; o=sa[i]; ow=parseInt(o.style.width);
						if(ow<gw && c){oi=Math.floor((gw-ow)/sp); oi=(oi>0)?oi:1; o.style.width=(ow+oi)+'px';
						}else if(ow>ot && !c){oi=Math.floor((ow-ot)/sp); oi=(oi>0)?oi:1; o.style.width=(ow-oi)+'px'}
						if(c){owt=owt+(ow+oi)}else{owt=owt+(ow-oi)}}}
				s.style.width=(w-owt)+'px';
			}else{clearInterval(m.timer);clearInterval(m.htimer)}
		}
	};
}();


function addprogram1(){
	document.getElementById("content").innerHTML = "<h1>Adolescent Extended Day Treatment Program</h1><p>Access Family Services Extended Day Treatment program, <b>\"Access Academy\"</b> provides an array of behavioral and therapeutic interventions for children and adolescents in a highly structured treatment setting. Access Academy is nationally accredited by CARF (The Council on Accreditation of Rehabilitation Facilities) and is a licensed non-public school with the North Carolina Division of Non Public Education.</p><p>Access Academy serves children who have special education and treatment needs and have had difficulty functioning in a mainstream school setting.  Access Academy is open year round from Monday through Friday 8:00-4:30 pm.</p><p>Access Academy employs licensed therapists, qualified and associate professionals and teachers who provide structured positive behavioral supports and mental health treatment using evidenced based and best practice treatment models including:</p><p><b>Positive Action Curriculum:</b> Positive Action works for all types of people, PA works for numerous problem behaviors, including: violence, alcohol, behavioral problems, tobacco, drug use, disciplinary referrals, suspensions, and school absenteeism, and PA improves academic achievement.</p><p>The Positive Action approach incorporates evidence based strategies such as increasing perception of personal risk, life skills training, promoting pro-social norms and connecting to community prevention efforts. The Positive Action approach teaches physical, intellectual, social, and emotional positive actions. The program has been effective in increasing protective factors such as social skills, positive personal characteristics, knowledge regarding risks associated with substance use, information on positive health behaviors, promoting negative attitude toward drug-related topics, positive relationships with adults, positive bonding to social institutions, and commitment to pro-social values.</p><p>The Positive Action program has been recognized by National Registry of Evidence-based Programs and Practices (NREPP) and SAMHSA/CSAP as a model program for drug, alcohol, and tobacco use prevention. (December 2000).</p><p><b>Cognitive Behavioral Therapy:</b> Cognitive-Behavioral Therapy or (CBT) is a general term for a classification of therapies. There are several approaches to cognitive-behavioral therapy, including Rational Emotive Behavior Therapy, Rational Behavior Therapy, Rational Living Therapy, Cognitive Therapy, and Dialectic Behavior Therapy.</p><p>CBT is based on the Cognitive Model of Emotional Response.  Cognitive-behavioral therapy is based on the idea that our thoughts cause our feelings and behaviors, not external things, like events, situations or people.  CBT's overarching theme is that we can change the way we think to feel and act better even if the situation does not change. Children and adolescents receiving Cognitive Behavioral Therapy as part of their treatment at Access Academy Day Treatment Program can expect their therapist to be active, problem-focused, and goal-directed.</p><p><b>Positive Life Changes (Group):</b> Positive Life Changes is a cognitive behavioral intervention for adolescents and young adults.  It is designed to teach social and emotional skills.  Positive Life Changes curriculum represents key social and emotional skills that increase the chance of healthy adjustment and decrease the chance of problem behaviors such as violence, substance use, and high-risk sexual behavior. The three workbooks in the Positive Life Changes series weave together lessons addressing five core competencies for adolescents and young adults, as follows:</p><ol><li><b>Positive Sense of Self:</b> Self-awareness, self-esteem, and self-efficacy (a belief in one's ability to influence outcomes)</li><li><b>Self-Control:</b> Emotional and behavioral regulation needed to resist temptation and control reactive behavior</li><li><b>Moral System of Belief:</b> Concern for fairness, justice, integrity, responsibility, and the welfare of others (including empathy)</li><li><b>Pro-social Connectedness:</b> A psychological state of belonging in which youth perceive they are cared for, acknowledged, and trusted within a given context</li><li><b>Decision-Making Skills:</b> The ability to identify problems and relevant information, set goals, generate solutions, and evaluate consequences in problematic social situations (also called social problem solving skills)</li></ol><p><b>Seeking Safety:</b> Seeking Safety is a present-focused therapy to help people attain safety from trauma/PTSD and substance abuse. Treatment in the Seeking Safety program is designed for flexible use. Access Academy uses the Seeking Safety Program in group and individual formats; using all topics or fewer topics.  Seeking Safety was begun in 1992, under grant funding from the National Institute on Drug Abuse. It was developed by Lisa M. Najavits, PhD at Harvard Medical School/McLean Hospital.</p><p>The Access Academy Seeking Safety program consists of 25 topics:</p><p>Introduction/Case Management, Safety, PTSD: Taking Back Your Power, When Substances Control You, Honesty, Asking for Help, Setting Boundaries in Relationships, Getting Others to Support Your Recovery, Healthy Relationships, Community Resources, Compassion, Creating Meaning, Discovery, Integrating the Split Self, Recovery Thinking, Taking Good Care of Yourself, Commitment, Respecting Your Time, Coping with Triggers, Self-Nurturing, Red and Green Flags, Detaching from Emotional Pain (Grounding). Life Choices, and Termination.</p><p><b>Additional best practices in use at Access Academy:</b></p><ul><li>Comprehensive anger management program and groups</li><li>Structured Life-Skills Training</li><li>Life-space interviewing</li><li>Art Therapy</li></ul><br /><hr />";	
}

function addprogram2(){
	document.getElementById("content").innerHTML = "<h1>Intensive In Home Services</h1><p>Intensive In-Home services are time limited (usually 5-6 months) intensive family preservation intervention, intended to stabilize the living environment, promote reunification of the family or prevent out of home placement of children and adolescents.</p><p>This intervention is primarily delivered to children in their family home and community settings, focusing on:</p> <ul><li>Diffusing any current crisis and intervening to reduce the likelihood of reoccuring conflicts</li> <li>Ensuring connections to needed community resources and services</li><li>Providing self-help and living skills training for youth</li><li>Providing parenting skills training and support to help the family build skills for coping with the youth's disorders and for healthy interactions in the home</li><li>Monitoring and managing psychiatric symptoms</li></ul><p>Access Family Services utilizes evidenced based treatment practices including Motivational Interviewing and the \"Seeking Safety\" models.  Intensive In Home Services utilizes a team approach.</p><p>This service utilizes a team approach designed to address identified needs of children and adolescents who are transitioning from out-of-home placement (or are at risk of out of home placement) and need interventions to remain stable in the community.  Teams are headed by licensed clinicians and highly trained service providers.</p><p>Consumers have access to interventions via crisis response 24 hours a day and 7 days per week by our on-call staff.</p><br /><hr>";
	}
	
function addprogram3(){
	document.getElementById("content").innerHTML = "<h1>Foster Care Program</h1><p>Children and adolescents more suited for a home environment instead of a group setting or secure facility are placed in our Therapeutic Foster Care Program.  Each child entering our program is closely matched with a therapeutic foster family that meets the needs of that child.  All of our families are pre-qualified and have received over 40 hours of training.  Each home is licensed by the Department of Social Services.<br /><br />Every child's care is individualized in a program of intense treatment that is structured to teach good decision making skills and reinforce positive social behavior, while implementing interventions to discourage and help eliminate inappropriate behavior.  Foster families work as part of a treatment team to maximize support and care, allowing for the best treatment and positive outcomes for children.<br /><br />The requirements to become a therapeutic foster parent are:<br /><ul><li>Must be 21 years of age or older</li><li>Both husband, wife, and or significant others in the same household must complete the foster parent training and become licensed</li><li>Anyone in the household 18 years of age or older must also complete the training</li><li>Must have a minimum of a high school diploma or GED</li><li>Foster child has his/her own bedroom</li><li>Must have a clean criminal background check</li><li>Must have a flexible schedule to provide services for the foster child (medical appointments, school disruptions, mental health appointments, etc)</li><li>Must have a physical exam to include a TB test</li><li>Must have a good driving record</li><li>Must have transportation</li></ul></p><p>If licensed, must be able to attend monthly in-service trainings and turn in paperwork monthly<br /><br />Typically serve children between the ages of 12-17 with a mental illness (emotional/behavioral challenges)<br /><br />If you are interested in becoming a foster parent, please contact Marvina Gatlin at 704-521-4977 ext 228  or mgatlin@accessfamilyservices.com</p><br /><hr>";
	}
	

function addprogram4(){
	document.getElementById("content").innerHTML = "<h1>Targeted Case Management</h1><p>A time limited service that involves the facilitation of the Person Centered Planning process to include family, friends and providers; completion of a comprehensive and culturally appropriate case management assessment to address the consumer's needs, strengths, resources, and preferences; monitoring and evaluating the effectiveness of interventions as evidenced by symptom reduction and progress towards identified goals in the Person Centered Plan; coordination and oversight of initial and ongoing assessment activities; and ensuring linkage to the most clinically appropriate and effective rehabilitative services to include but not limited to Community Care of North Carolina, primary care physicians, Obstetrics and Gynecology.</p><br /><hr>";
	}
	
function addprogram5(){
	document.getElementById("content").innerHTML = "<h1>Outpatient Therapy</h1><p>Access Family Services provides individual, family and group therapy to children and adults.  Our providers are licensed Clinical Social Workers (LCSWs), Licensed Professional Counselors (LPCs) and Qualified Professionals (QPs).</p><p>We currently specialize in treating children and adolescents with behavioral disorders, trauma, anxiety, grief and loss issues and depression.  We employ a strength-based holistic approach to therapy and believe everyone has the capacity for growth and change.</p><p>Therapy may be provided at different sites including our offices, school, home and various community settings.</p><br /><hr>";
	}
	
function addprogram6(){
	document.getElementById("content").innerHTML = "<h1>Assessments</h1><p>Diagnostic Assessment is an intensive clinical and functional face-to-face evaluation of a person's mental health, developmental disability, or substance abuse condition that results in the issuance of a Diagnostic Assessment report with a recommendation regarding whether you meet the state mandated criteria to receive services. The Diagnostic Assessment process with Access Family Services includes the following elements:</p><ol><li>A chronological general health and behavioral health history (includes both mental health and substance abuse) of symptoms, treatment, treatment response and attitudes about treatment over time, emphasizing factors that have contributed to or inhibited previous recovery efforts.</li><br><li>Biological, psychological, familial, social, developmental and environmental dimensions and identified strengths and weaknesses in each area.</li><br><li>A description of the presenting problems, including source of distress, precipitating events, associated problems or symptoms, recent progressions; and current medications.</li><br><li>A strengths/ problem summary which addresses risk of harm, functional status, co-morbidity, recovery environment, and treatment and recovery history;</li><br><li>Diagnoses on all five (5) axes of DSM-IV;</li><br><li>Evidence of an interdisciplinary team progress note that documents the teams review and discussion of the assessment.</li><br><li>A recommendation regarding target population eligibility; and</li><br><li>Evidence of recipient participation including families, or when applicable, guardians or other caregivers.</li></ol><br /><hr>";
	}
	
function addprogram7(){
	document.getElementById("content").innerHTML = "<h1>Medication Management</h1><p>As part of an interdisciplinary approach to the treatment of mental illness, many of our consumers receive medication to address, stabilize and improve their symptoms. Our psychiatry team provides ongoing medication monitoring to those consumers receiving medication.</p><br /><hr>";
	}
