//This is my scripts file.

function timedMsg(oldnum)
{
	homeBannerMsg(oldnum);
	if (oldnum == 0) newnum = 1;
	if (oldnum == 1) newnum = 0;
	var t=setTimeout("timedMsg(newnum)",7000);
}


function timedRefresh(timeoutPeriod)
{
	setTimeout("location.reload(true);",timeoutPeriod);
}


function homeBannerMsg(num)
{
	var myAd = new Array();
	myAd[0] = '<h3 margin:0px;>Changes Presents:<br />Free educational seminars on topics like drugs, cutting, and ADHD</h3><p>Professionals from the Puget Sound area give FREE seminars. <a href="saturday-seminars.php">Find out more.</a></p>';
	myAd[1] = '<h3 margin:0px;>CPSN Presents: Parent Talk with Dr. Kathy Masarie<br /><em>Raising Our Kids Really Does Take A Village</em></h3><p>Monday, March 5, 7-9 pm at the Great Hall at Green Lake, <br />7220 Woodlawn Ave NE, Seattle 98115<br />Tickets are $15. <a href="http://tiny.cc/ParentTalkMasarie">Purchase tickets online</a>. <a href="docs/Kathy_Masarie_Handout_and_Email_Flyer_v1.pdf">Find out more.</a></p>';
	document.getElementById('banner').innerHTML=myAd[num];
}

function littleTestimonial()
{
	var text_st = new Array("<em>The support I feel at Changes helps me get through the week as a happier person. <br /></em>mom of son, 17", "<em>Changes was literally an answer to my prayers for help with my desperate situation with our 17-year-old son.</em>", "<em>Changes gave me new hope that my son will find his way, and that one day we will be close again. <br /></em>mom of son, 18", "<em>Changes is a place where other parents really understand what I'm going through. <br /></em>mom of son, 17", "<em>Changes offered hope when our child's future looked bleak. <br /></em>mom of son, 20 and daughter, 18", "<em>Changes saved our marriage. <br /></em>mom of daughter, 18 and sons, 23 and 20", "<em>Changes empowers you to change yourself with simple, common-sense tools. <br /></em>mom of son, 17", "<em>Because of attending Changes meetings, I learned how to walk away from the drama.<br /></em>mom of son, 17", "<em>Changes helped me take control of my life, my outlook, and my actions.<br /></em>mom of son, 18", "<em>Changes offers a safe haven for parents with challenging children.<br /></em>mom of son, 20 and daughter, 18", "<em>Changes gave me confidence in my decisions.<br /></em>mom of son, 17");
	
	var l = text_st.length;
	var rnd_no = Math.floor(l*Math.random());
	document.write(text_st[rnd_no]);
}

