 	var theImages = new Array()
    	$(document).ready(function() {
    		$("#" + activeMainMenuId).children(".subNav").show();
    		$("#" + activeMainMenuId).children("a").children(".offImage").hide();
    		$("#" + activeMainMenuId).children("a").children(".onImage").show();
    		$("#" + activeMainMenuId).attr("class", "active");


    		//Random-loading images
    		theImages[0] = '../images/elements/vol_testimonials/volTest_care_1.gif';
    		theImages[1] = '../images/elements/vol_testimonials/volTest_care_2.gif';
    		theImages[2] = '../images/elements/vol_testimonials/volTest_care_3.gif';

    		theImages[3] = '../images/elements/vol_testimonials/volTest_hospice_1.gif';
    		theImages[4] = '../images/elements/vol_testimonials/volTest_hospice_2.gif';
    		theImages[5] = '../images/elements/vol_testimonials/volTest_hospice_3.gif';
    		theImages[6] = '../images/elements/vol_testimonials/volTest_hospice_4.gif';
    		theImages[7] = '../images/elements/vol_testimonials/volTest_hospice_5.gif';
    		theImages[8] = '../images/elements/vol_testimonials/volTest_hospice_6.gif';
    		theImages[9] = '../images/elements/vol_testimonials/volTest_hospice_7.gif';
    		theImages[10] = '../images/elements/vol_testimonials/volTest_hospice_8.gif';
    		theImages[11] = '../images/elements/vol_testimonials/volTest_hospice_9.gif';
    		theImages[12] = '../images/elements/vol_testimonials/volTest_hospice_10.gif';
    		theImages[13] = '../images/elements/vol_testimonials/volTest_hospice_11.gif';

    		theImages[14] = '../images/elements/vol_testimonials/volTest_reach_1.gif';
    		theImages[15] = '../images/elements/vol_testimonials/volTest_reach_2.gif';
    		theImages[16] = '../images/elements/vol_testimonials/volTest_reach_3.gif';

    		theImages[17] = '../images/elements/vol_testimonials/volTest_safe_1.gif';
    		theImages[18] = '../images/elements/vol_testimonials/volTest_safe_2.gif';
    		theImages[19] = '../images/elements/vol_testimonials/volTest_safe_3.gif';

    		theImages[20] = '../images/elements/vol_testimonials/volTest_memorial_1.gif';
    		theImages[21] = '../images/elements/vol_testimonials/volTest_memorial_2.gif';
    		theImages[23] = '../images/elements/vol_testimonials/volTest_memorial_3.gif';
    		theImages[24] = '../images/elements/vol_testimonials/volTest_memorial_4.gif';
    		theImages[25] = '../images/elements/vol_testimonials/volTest_memorial_5.gif';
    		theImages[26] = '../images/elements/vol_testimonials/volTest_memorial_6.gif';
    		theImages[27] = '../images/elements/vol_testimonials/volTest_memorial_7.gif';
    		theImages[28] = '../images/elements/vol_testimonials/volTest_memorial_8.gif';
    		theImages[29] = '../images/elements/vol_testimonials/volTest_memorial_9.gif';
    		theImages[30] = '../images/elements/vol_testimonials/volTest_memorial_10.gif';
    		theImages[31] = '../images/elements/vol_testimonials/volTest_memorial_11.gif';
    		theImages[32] = '../images/elements/vol_testimonials/volTest_memorial_12.gif';
    		theImages[33] = '../images/elements/vol_testimonials/volTest_memorial_13.gif';
    		theImages[34] = '../images/elements/vol_testimonials/volTest_memorial_14.gif';
    		theImages[35] = '../images/elements/vol_testimonials/volTest_memorial_15.gif';
    		theImages[36] = '../images/elements/vol_testimonials/volTest_memorial_16.gif';
    		theImages[37] = '../images/elements/vol_testimonials/volTest_memorial_17.gif';
    		theImages[38] = '../images/elements/vol_testimonials/volTest_memorial_18.gif';
    		theImages[39] = '../images/elements/vol_testimonials/volTest_memorial_19.gif';

    		theImages[40] = '../images/elements/vol_testimonials/volTest_richmond_1.gif';
    		theImages[41] = '../images/elements/vol_testimonials/volTest_richmond_2.gif';
    		theImages[42] = '../images/elements/vol_testimonials/volTest_richmond_3.gif';
    		theImages[43] = '../images/elements/vol_testimonials/volTest_richmond_4.gif';
    		theImages[44] = '../images/elements/vol_testimonials/volTest_richmond_5.gif';
    		theImages[45] = '../images/elements/vol_testimonials/volTest_richmond_6.gif';

    		theImages[46] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[47] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[48] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[49] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[50] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[51] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[52] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[53] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[54] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[55] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[56] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[57] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[58] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[59] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';
    		theImages[60] = '../images/elements/vol_testimonials/volTest_stfrancis_1.gif';

    		theImages[61] = '../images/elements/vol_testimonials/volTest_stmarys_1.gif';
    		theImages[62] = '../images/elements/vol_testimonials/volTest_stmarys_2.gif';
    		theImages[63] = '../images/elements/vol_testimonials/volTest_stmarys_3.gif';
    		theImages[64] = '../images/elements/vol_testimonials/volTest_stmarys_4.gif';
    		theImages[65] = '../images/elements/vol_testimonials/volTest_stmarys_5.gif';
    		theImages[66] = '../images/elements/vol_testimonials/volTest_stmarys_6.gif';
    		theImages[67] = '../images/elements/vol_testimonials/volTest_stmarys_7.gif';
    		theImages[68] = '../images/elements/vol_testimonials/volTest_stmarys_8.gif';

    		var j = 0
    		var max = theImages.length;
    		var min = 0;
    		var preBuffer = new Array()

    		for (i = 0; i < max; i++) {
    			preBuffer[i] = new Image()
    			preBuffer[i].src = theImages[i]
    		}


    		loadSet('');
    	});

    	function loadSet(clickSet) {
		var fast_facts_html = "";

    			switch (clickSet) {

    				case "care":
					min = 0;
    					max = 2;
					fast_facts_html = "<ol style='color:#333;'><li>Must be over 18 to volunteer.</li><li>We currently do not have evening or Sunday hours.</li><li>Minimum requirement is two, four hour shifts per month.</li><li>Locations will vary.</li><li>Personal transportation required.</li></ol>";
    					break;

    				case "hospice":
    					min = 3;
    					max = 13;
					fast_facts_html = "<ol style='color:#333;'><li>Must be over 18 to volunteer.</li><li>Weekend and evening hours are available.</li><li>Minimum requirement is two to four hour per month.</li><li>Locations will vary.</li><li>Personal transportation required.</li></ol>";
    					break;

    				case "reach":
    					min = 14;
    					max = 16;
					fast_facts_html = "<ol style='color:#333;'><li>Must be over 18 to volunteer or, if under 18, have parent's permission.</li><li>We currently do not have evening or Sunday hours.</li><li>Minimum requirement is one three hour shifts per month.</li><li>Locations will vary.</li><li>Personal transportation required.</li></ol>";	
    					break;

    				case "safe":
    					min = 17;
    					max = 19;
					fast_facts_html = "<ol style='color:#333;'><li>Medical and/or background/drug screenings required.</li><li>Weekday, weekend and evening hours available.</li><li>Volunteers should be available an average 10-12 hours per month, for a minimum of 6 months.</li><li>Locations will vary.</li><li>Personal transportation required.</li></ol>";
    					break;

    				case "memorial":
    					min = 20;
    					max = 39;
					fast_facts_html = "<ol style='color:#333;'><li>Must be 15 or older to volunteer.<li>Weekend and evening hours available.<li>Minimum time commitment is two four hour shifts per month.</li><li>You can also visit <a href='http://www.HanoverVolunteers.org' target='_new'>www.HanoverVolunteers.org</a> for opportunities.</li></ol>";
    					break;

    				case "richmond":
    					min = 40;
    					max = 45;
					fast_facts_html = "<ol style='color:#333;'><li>Must be 15 or older to volunteer.</li><li>Weekend and evening hours available.</li><li>No minimum monthly requirement.</li></ol>";
    					break;

    				case "stmary":
    					min = 61;
    					max = 68;
					fast_facts_html = "<ol style='color:#333;'><li>Must be 15 or older to volunteer.</li><li>Weekend and evening hours available.</li><li>Volunteers over 18 have no minimum monthly commitment. Under 18 need to commit to 50 hours per year.</li><li>Multiple locations.</li></ol>";
  					break;

    				case "stfrancis":
    					min = 46;
    					max = 60;
					fast_facts_html = "<ol style='color:#333;'><li>Must be 16 or older to volunteer.</li><li>Weekend and evening hours available.</li><li>Minimum requirement is 100 hours per year.</li></ol>";
    					break;

				case "ironbridge":
					min = 0;
					max = 0;
					fast_facts_html = "<ol style='color:#333;'><li>Must be 12 or older to volunteer. Under 18 need parent's signature.</li><li>Weekend and evening hours available.</li><li>No minimum monthly commitment.</li></ol>";
					break;
				
				case "noah":
					min = 0;
					max = 0;
					fast_facts_html = "";
					break;
								
    				default:
    					min = 0;
    					max = 2;
    			}

			if (max > 0){
  	  			var whichImage = Math.round(Math.random() * (max - min - 1) + min);
    				document.getElementById("testimonialSidebar").innerHTML = '<img src="' + theImages[whichImage] + '" />';
			}
		
			if (fast_facts_html != ""){
				document.getElementById("fast_facts").innerHTML = fast_facts_html;
				$("#fast_facts_header").show();
		
			}else{
				document.getElementById("fast_facts").innerHTML = "";
				$("#fast_facts_header").hide();
			}    			
    		}
