﻿// JavaScript Document	/*
	
	*/
	
	function random_imglink(){
	  var myimages=new Array()
	  //specify random images below. You can have as many as you wish
				myimages[1]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic1.jpg"
				myimages[2]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic2.jpg"
				myimages[3]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic3.jpg"
				myimages[4]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic4.jpg"
				myimages[5]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic5.jpg"
				myimages[6]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic6.jpg"
				myimages[7]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic7.jpg"
						
	  //specify corresponding links below
	  var imagelinks=new Array()
				imagelinks[1]="http://www,www.pbtfus.org/assets/images/subpage/rotate/banner_pic1.jpg"
				imagelinks[2]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic2.jpg"
				imagelinks[3]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic3.jpg"
				imagelinks[4]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic4.jpg"
				imagelinks[5]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic5.jpg"
				imagelinks[6]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic6.jpg"
				imagelinks[7]="http://www.pbtfus.org/assets/images/subpage/rotate/banner_pic7.jpg"
				
	  var ry=Math.floor(Math.random()*myimages.length);
	
	  if (ry==0){ry=1;}
	  
	  document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>');
		 
	}
	
	function random_fam_imglink(){
	  var myimages=new Array()
	  //specify random images below. You can have as many as you wish
				myimages[1]="http://www.pbtfus.org/assets/images/subpage/rotate/family1.jpg"
				myimages[2]="http://www.pbtfus.org/assets/images/subpage/rotate/family2.jpg"
				myimages[3]="http://www.pbtfus.org/assets/images/subpage/rotate/family3.jpg"
				myimages[4]="http://www.pbtfus.org/assets/images/subpage/rotate/family4.jpg"
						
	  //specify corresponding links below
	  var imagelinks=new Array()
				imagelinks[1]="http://www.pbtfus.org/assets/images/subpage/rotate/family1.jpg"
				imagelinks[2]="http://www.pbtfus.org/assets/images/subpage/rotate/family2.jpg"
				imagelinks[3]="http://www.pbtfus.org/assets/images/subpage/rotate/family3.jpg"
				imagelinks[4]="http://www.pbtfus.org/assets/images/subpage/rotate/family4.jpg"
				
	  var ry=Math.floor(Math.random()*myimages.length);
	
	  if (ry==0){ry=1;}
	  
	  document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>');
		 
	}
	
	function random_med_imglink(){
	  var myimages=new Array()
	  //specify random images below. You can have as many as you wish
				myimages[1]="http://www.pbtfus.org/assets/images/subpage/rotate/medical1.jpg"
				myimages[2]="http://www.pbtfus.org/assets/images/subpage/rotate/medical2.jpg"
				myimages[3]="http://www.pbtfus.org/assets/images/subpage/rotate/medical3.jpg"
				myimages[4]="http://www.pbtfus.org/assets/images/subpage/rotate/medical4.jpg"
						
	  //specify corresponding links below
	  var imagelinks=new Array()
				imagelinks[1]="http://www.pbtfus.org/assets/images/subpage/rotate/medical1.jpg"
				imagelinks[2]="http://www.pbtfus.org/assets/images/subpage/rotate/medical2.jpg"
				imagelinks[3]="http://www.pbtfus.org/assets/images/subpage/rotate/medical3.jpg"
				imagelinks[4]="http://www.pbtfus.org/assets/images/subpage/rotate/medical4.jpg"
				
	  var ry=Math.floor(Math.random()*myimages.length);
	
	  if (ry==0){ry=1;}
	  
	  document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>');
		 
	}
	
	
	//Stories of Hope
	function random_story(){
	
	var story_image=new Array()
	  //specify image urls; to activate additional images remove the "//" from the beginning of the lines for story_image 2-7 below
	  
story_image[1]="http://www.pbtfus.org/assets/images/stories/small/Cheryl_Perry_small.jpg"
story_image[2]="http://www.pbtfus.org/assets/images/stories/small/Quinn_smaal.jpg "	
story_image[3]="http://www.pbtfus.org/assets/images/stories/small/Jamilyn_small.jpg"
story_image[4]="http://www.pbtfus.org/assets/images/stories/small/james-small.jpg"
story_image[5]="http://www.pbtfus.org/assets/images/stories/small/hannah-small.jpg"
story_image[6]="http://www.pbtfus.org/assets/images/stories/small/Shango-small.jpg"
story_image[7]="http://www.pbtfus.org/assets/images/stories/small/emily-small.jpg"
				
				//story_image[9]="URL HERE"
	
	
	var name_age=new Array()
	  //specify name and age, do not use any single or double quotes within the existing double quotes!
	  //to activate additional images remove the "//" from the beginning of the lines for name_age 2-7 below
	  
				name_age[1]="Cheryl, 18"
				name_age[2]="Quinn, 5"
				name_age[3]="Jamilyn, 10"
				name_age[4]="James, 18"
				name_age[5]="Hannah, 10"
				name_age[6]="Shango, 11"
				name_age[7]="Emily, 14"

				//name_age[9]="NAME, AGE"
				
	var story_blurb=new Array()
	  //enter story blurb, keep it brief, do not use any single or double quotes within the existing double quotes!
	  //to activate additional images remove the "//" from the beginning of the lines for story_blurb 2-6 below
	  
story_blurb[1]="Cheryl began having difficulty reading her school books when she was 11..."
story_blurb[2]="As an active 2-year-old, Quinn seemed an unlikely candidate for a brain tumor..."
story_blurb[3]="Like many 3rd graders, Jamilyn enjoyed scouting and playing soccer. But then..."
story_blurb[4]="Cancer terrified me, says James recalling being diagnosed ... "
story_blurb[5]="When she was in 2nd grade, Hannah had a smile could light up a room ..."
story_blurb[6]="Shango loved playing football, basketball and other active outdoor sports ..."
story_blurb[7]="On Emily's fourth birthday, her parents noticed …"
				
//story_blurb[9]="Lorem ipsum dolor sit amet consectateur nonummy lorenzino."
	
	
	var story_link=new Array()
	  //specify urls of published Stories of Hope
	  //to activate additional images remove the "//" from the beginning of the lines for story_link 2-7 below
	  
				story_link[1]="http://www.pbtfus.org/survivors/stories/cheryl.html"
				story_link[2]="http://www.pbtfus.org/survivors/stories/quinn.html"
				story_link[3]="http://www.pbtfus.org/survivors/stories/jamilyn.html"
				story_link[4]="http://www.pbtfus.org/survivors/stories/james.html"
				story_link[5]="http://www.pbtfus.org/survivors/stories/hannah.html"
				story_link[6]="http://www.pbtfus.org/survivors/stories/shango.html"
				story_link[7]="http://www.pbtfus.org/survivors/stories/emily.html"
								
//story_link[9]="URL HERE"
				
				
	//DO NOT EDIT ANYTHING BELOW THIS LINE!!			
	var r=Math.floor(Math.random()*story_image.length);
	
	  if (r==0){r=1;}
	  
	   document.write('<td><img src='+ story_image[r] +' align=right /></td>');
	   document.write('<td>&nbsp;<img src=http://www.pbtfus.org/assets/images/mainpage/boxes/box_1/title_soh.gif border=0 /></td></tr><tr><td colspan=2>');
	   document.write('<h2>'+ name_age[r] +'</h2>');
       document.write('<p>'+ story_blurb[r] +'<br />');
       document.write('<b>&gt;&gt;</b><a href='+ story_link[r] +'> learn more</p></td>');
	  
	
	}


/* Son of Suckerfish menu */
sfHover = function() {
    if (document.getElementById("nav")) {
    	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
    	for (var i=0; i<sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    }
}
if (window.attachEvent) addOnLoadHandler(sfHover);

