var imageArray = new Array();
imageArray[0] = "images/photo_collage.png";
imageArray[1] = "images/photo_collage_2.png";
imageArray[2] = "images/photo_collage_3.png";
imageArray[3] = "images/photo_collage_4.png";
imageArray[4] = "images/photo_collage_5.png";
imageArray[5] = "images/photo_collage_6.png";
imageArray[6] = "images/collage-new1.jpg";
imageArray[7] = "images/collage-new2.jpg";
imageArray[8] = "images/collage-new3.jpg";
imageArray[9] = "images/collage-new4.jpg";
imageArray[10] = "images/collage-new5.jpg";
imageArray[11] = "images/collage-new6.jpg";
imageArray[12] = "images/collage-new7.jpg";
/*
imageArray[4] = "images/collage1.png";
imageArray[5] = "images/collage2.png";
imageArray[6] = "images/collage3.png";
imageArray[7] = "images/collage4.png";
imageArray[8] = "images/collage5.png";
imageArray[9] = "images/collage6.png";
imageArray[10] = "images/collage7.png";
imageArray[11] = "images/collage8.png";
imageArray[12] = "images/collage9.png";
*/

var quoteArray = new Array();

quoteArray[0] = "I'm involved in SADD because it gives me the chance to stand out and say I'm different, I don't drink and I still know how to have fun!<br /><em style='font-size: 0.8em; margin-left: 1em;'>&mdash; Kaitlyn, Senior at Santa Fe High School.</em>";
quoteArray[1] = "SADD gives me a chance to meet people who have the same morals I do and to join those same people in making a difference in others lives.<br /><em style='font-size: 0.8em; margin-left: 1em;'>&mdash; Alexandria, Junior at Vero Beach High School.</em>";

/*
quoteArray[0] = "As a member of SADD, I don't drink or use drugs. That is not an option for me and it's not a risk I'm willing to take. There are so many cool things I can do without the use of harmful substances.";
quoteArray[1] = "I joined SADD because it was a club that fell into conjunction with my own morals. I found people who support my decisions to stay safe rather than being ostracized for wanting to make a difference.";
quoteArray[2] = "Decisions that seem fun at the time can result in the loss of friendships, trust of parents and peers, and even lives. No matter the reasons for poor decision making, the good news is SADD provides an opportunity to turn it around!";
quoteArray[3] = "We all experience peer pressure, but not all peer pressure has to be negative. SADD gives me a circle of friends who share my choice for a healthy lifestyle. Together, we encourage our peers to make smarter choices.";
*/

function loadRandomQuote() {
var randnum = Math.floor(Math.random() * quoteArray.length);
return quoteArray[randnum];
	}

function loadRandomImage() {
var randnum = Math.floor(Math.random() * imageArray.length);
return imageArray[randnum];
	}
	
	
function showElement(theElement) {
	document.getElementById(theElement).style.visibility = "visible";
	}
	
function hideElement(theElement) {
	document.getElementById(theElement).style.visibility = "hidden";
	}


var sfHover = function() {
	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) window.attachEvent("onload", sfHover);


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'collapse':v; }
    obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}



