u = window.location;
m = "I thought this might interest you...";
function mailThisUrl(){
  var e_add= prompt('Enter recipient\'s email address:','');
  if ((e_add=="") || (e_add==" ") || (e_add==null)) {
  e_add="enter-email-address";
  }
  window.location = "mailto:"+e_add+"?subject="+m+"&body="+document.title+" | "+u;
}
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function addToFavorites()
 {
  if (window.external)
  {
   window.external.AddFavorite(window.document.location,window.document.title)
  }
  else
  { 
   alert("Sorry! Your browser doesn't support this function.");
  }
 }

var theSets = new Array();
theSets[0] = 'g_01';
theSets[1] = 'g_02';
theSets[2] = 'g_03';
theSets[3] = 'g_04';
theSets[4] = 'g_05';
theSets[5] = 'g_06';
theSets[6] = 'g_07';
theSets[7] = 'g_08';
theSets[8] = 'g_09';
theSets[9] = 'g_10';
theSets[10] = 'g_11';
theSets[11] = 'g_12';
theSets[12] = 'g_13';
theSets[13] = 'g_14';
theSets[14] = 'g_15';


var s = theSets.length;
var whichNum = Math.round(Math.random()*(s-1));
var whichSet = theSets[whichNum];

var theImage = whichSet+'.jpg';
var preBuffer = new Array();
   preBuffer[0] = new Image();
   preBuffer[0].src = 'http://www.calfund.org/ximages/r_photos/'+theImage;
function showImage(w,h){
   document.write('<img src="http://www.calfund.org/ximages/r_photos/'+theImage+'" border="0" width="'+w+'"'+' height="'+h+'">');
}

var theQuotes = new Array();
theQuotes[0] = 'q_01';
theQuotes[1] = 'q_02';
theQuotes[2] = 'q_03';
theQuotes[3] = 'q_04';
theQuotes[4] = 'q_05';
theQuotes[5] = 'q_06';
theQuotes[6] = 'q_07';
theQuotes[7] = 'q_08';
theQuotes[8] = 'q_09';

var q = theQuotes.length;
var whichQNum = Math.round(Math.random()*(q-1));
var whichQSet = theQuotes[whichQNum];

var theQ = whichQSet+'.gif';
var preBuffer = new Array();
   preBuffer[0] = new Image();
   preBuffer[0].src = 'http://www.calfund.org/ximages/r_quotes/'+theQ;
function showQuote(w,h){
   document.write('<img src="http://www.calfund.org/ximages/r_quotes/'+theQ+'" border="0" width="'+w+'"'+' height="'+h+'">');
}
var theHPSets = new Array();
theHPSets[0] = 'hp_01';
theHPSets[1] = 'hp_02';
theHPSets[2] = 'hp_03';
theHPSets[3] = 'hp_04';
theHPSets[4] = 'hp_05';
theHPSets[5] = 'hp_06';
theHPSets[6] = 'hp_07';
theHPSets[7] = 'hp_08';
theHPSets[8] = 'hp_09';
theHPSets[9] = 'hp_10';
theHPSets[10] = 'hp_11';
theHPSets[11] = 'hp_12';
theHPSets[12] = 'hp_13';

var h = theHPSets.length;
var whichHPNum = Math.round(Math.random()*(h-1));
var whichHPSet = theHPSets[whichHPNum];

var theHPImage = whichHPSet+'.jpg';
var preBuffer = new Array();
   preBuffer[0] = new Image();
   preBuffer[0].src = 'ximages/r_hp/'+theHPImage;
function showHPImage(w,h){
   document.write('<img src="ximages/r_hp/'+theHPImage+'" border="0"  alt="Los Angeles Community" width="'+w+'"'+' height="'+h+'">');
}