
//text resize
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


// Preloader
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		topnav_01 = newImage("../images/topnav_01_on.gif");
		topnav_02 = newImage("../images/topnav_02_on.gif");
		topnav_03 = newImage("../images/topnav_03_on.gif");
		topnav_04 = newImage("../images/topnav_04_on.gif");
		preloadFlag = true;
	}
}

//rotating image level template
function lvlImage(){
	var imgArray = new Array();
	imgArray[0] = '<div style="padding:0px; margin:0px;"><a href="jointhemovement.html"><img src="images/rotatinglevel_01.jpg" width="588" height="200" border="0" alt="Join the Movement" title="Join the Movement" /></a></div>';
	imgArray[1] = '<div style="padding:0px; margin:0px;"><a href="jointhemovement.html"><img src="images/rotatinglevel_02.jpg" width="588" height="200" border="0" alt="Join the Movement" title="Join the Movement" /></a></div>';
	imgArray[2] = '<div style="padding:0px; margin:0px;"><a href="jointhemovement.html"><img src="images/rotatinglevel_03.jpg" width="588" height="200" border="0" alt="Join the Movement" title="Join the Movement" /></a></div>';
	imgArray[3] = '<div style="padding:0px; margin:0px;"><a href="jointhemovement.html"><img src="images/rotatinglevel_04.jpg" width="588" height="200" border="0" alt="Join the Movement" title="Join the Movement" /></a></div>';
	imgArray[4] = '<div style="padding:0px; margin:0px;"><a href="jointhemovement.html"><img src="images/rotatinglevel_05.jpg" width="588" height="200" border="0" alt="Join the Movement" title="Join the Movement" /></a></div>';
	
	var imgNum = Math.floor(Math.random()*imgArray.length);
	
	document.write(imgArray[imgNum]);
	}
	


// Third Column Callout Quote for Join Movement //
var quoteCounted = 0;
var totalQuote = 11;

function getQuote(step){
		
		var quotes = new Array(11) 
		quotes[0] = '<blockquote>"Learning about the disease made it easier for me to cope..."</blockquote><br /><br /><span class="lvl_callout_smtext">-Jody Roberts</span>';
		quotes[1] = '<blockquote>"If I could tell you just one thing, it would it be, There is hope, be strong, people care."</blockquote><br /><br /><span class="lvl_callout_smtext">-Douglas Saunders</span>';  
		quotes[2] = '<blockquote>"Joining the movement gives me hope--hope that a cure will be found, so my grandchildren will not have to live with MS."</blockquote><br /><br /><span class="lvl_callout_smtext">-Bonnie Iglesias, diagnosed 1992</span>'; 
		quotes[3] = '<blockquote>"Through communication the healing begins."</blockquote><br /><br /><span class="lvl_callout_smtext">-Ann Marie Johnson, diagnosed 2002</span>';  
		quotes[4] = '<blockquote>"When I tell people that I have lived with MS for almost 10 years, some are in disbelief."</blockquote><br /><br /><span class="lvl_callout_smtext">-Scott Hanson, diagnosed 1998</span>';
		quotes[5] = '<blockquote>"It makes me happy inside to know that I am working to find a cure for MS."</blockquote><br /><br /><span class="lvl_callout_smtext">-Kelsey Krueger</span>';
		quotes[6] = '<blockquote>"Joining the movement is a good way to realize that you are not alone."</blockquote><br /><br /><span class="lvl_callout_smtext">-Chris Armistead, diagnosed 2005</span>';
		quotes[7] = '<blockquote>"I feel like I am making a difference, and I have learned what a huge impact one person can make."</blockquote><br /><br /><span class="lvl_callout_smtext">-Chris Crawford</span>';
		quotes[8] = '<blockquote>"The hope to find a cure lies in everyone, and I believe that we will find a cure during my lifetime."</blockquote><br /><br /><span class="lvl_callout_smtext">-Cheryl Chatman</span>';
		quotes[9] = '<blockquote>"My advice to you is to push the limits, never stop asking questions, and do not accept anything-fight."</blockquote><br /><br /><span class="lvl_callout_smtext">-Joy Wagner, diagnosed 2001</span>';
		quotes[10] = '<blockquote>"My patients and their partners and I become a team..."</blockquote><br /><br /><span class="lvl_callout_smtext">-Dr. Lily Jung</span>';
		
		quoteCounted += step;
		
		if(quoteCounted < 0){
			quoteCounted = totalQuote-1;
		}
		if(quoteCounted >= totalQuote){
			quoteCounted = 0;
		}
		
		document.getElementById('lvl_callout').innerHTML = '<div>' + quotes[quoteCounted] + '</div>';	
		//tipCounted++;
	
	}
	//getQuote(0);
	
	
	

// Third Column Callout Quote for Stories //
var storiesquoteCounted = 0;
var totalStoriesQuote = 15;

function getStoriesQuote(step){
		
		var storiesquotes = new Array(15) 
		storiesquotes[0] = '<blockquote>"Living with MS can be an inconvenience, but it is more importantly a continual learning experience."</blockquote><br /><br /><span class="lvl_callout_smtext">-Eric Small, diagnosed 1951</span>';
		storiesquotes[1] = '<blockquote>"I have learned that you are not defined by what happens to you but by how you adapt to it."</blockquote><br /><br /><span class="lvl_callout_smtext">-David Kelleher</span>';  
		storiesquotes[2] = '<blockquote>"If I had a friend whose mom or dad was just diagnosed with MS, I would tell her that it is nothing big to worry about and that everything is going to be all right."</blockquote><br /><br /><span class="lvl_callout_smtext">-Raemi Thomas</span>'; 
		storiesquotes[3] = '<blockquote>"I live a wonderful and happy life, despite having MS."</blockquote><br /><br /><span class="lvl_callout_smtext">-Beverly Overton, diagnosed 2000</span>';  
		storiesquotes[4] = '<blockquote>"I am doing what I want to do with my life, even though I have MS."</blockquote><br /><br /><span class="lvl_callout_smtext">-Alyssa Mazur, diagnosed 2000</span>';
		storiesquotes[5] = '<blockquote>"I have learned that MS is a part of me, but it does not define who I am."</blockquote><br /><br /><span class="lvl_callout_smtext">-Carole Bender, diagnosed 2005</span>';
		storiesquotes[6] = '<blockquote>"Living with MS means that I must enjoy each minute of every day and not sit around feeling sorry for myself."</blockquote><br /><br /><span class="lvl_callout_smtext">-Chris Grubbich, diagnosed 1993</span>';
		storiesquotes[7] = '<blockquote>"I have learned that life moves on if you let it, so do not let MS stop you."</blockquote><br /><br /><span class="lvl_callout_smtext">-Tahirah Falah, diagnosed 2004</span>';
		storiesquotes[8] = '<blockquote>"Even thinking about my experiences volunteering makes me smile."</blockquote><br /><br /><span class="lvl_callout_smtext">-Kim Phillips</span>';
		storiesquotes[9] = '<blockquote>"Although MS presents many challenges, we also gain opportunities for personal growth when we learn to live with chronic illness."</blockquote><br /><br /><span class="lvl_callout_smtext">-Dr. Elizabeth H. Morrison, MD, MSED, diagnosed 2001</span>';
		storiesquotes[10] = '<blockquote>"The most important thing I did to cope with my diagnosis both physically and mentally was to cycle."</blockquote><br /><br /><span class="lvl_callout_smtext">-Luis Castaneda, diagnosed 2006</span>';
		storiesquotes[11] = '<blockquote>"You have to take life with MS one day at a time."</blockquote><br /><br /><span class="lvl_callout_smtext">-Kimberly Johnson, diagnosed 2000</span>';
		storiesquotes[12] = '<blockquote>"I love who I am becoming."</blockquote><br /><br /><span class="lvl_callout_smtext">-Erinn Milner, diagnosed 1997</span>';
		storiesquotes[13] = '<blockquote>"Every new day is the first day of the rest of your life."</blockquote><br /><br /><span class="lvl_callout_smtext">-Geoffrey Gee</span>';
		storiesquotes[14] = '<blockquote>"Being involved with the Society has showed me that I am not alone and has also provided guidance in certain aspects of living with MS."</blockquote><br /><br /><span class="lvl_callout_smtext">-Jo Bair, diagnosed 2005</span>';
		
		storiesquoteCounted += step;
		
		if(storiesquoteCounted < 0){
			storiesquoteCounted = totalStoriesQuote-1;
		}
		if(storiesquoteCounted >= totalStoriesQuote){
			storiesquoteCounted = 0;
		}
		
		document.getElementById('lvl_callout').innerHTML = '<div>' + storiesquotes[storiesquoteCounted] + '</div>';	
		//tipCounted++;
	
	}
	//getQuote(0);

	
// Pop up //
