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] = 'set1';
theSets[1] = 'set2';
theSets[2] = 'set3';
theSets[3] = 'set4';

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

var theImages = new Array();
theImages[0] = whichSet+'a.jpg';
theImages[1] = whichSet+'b.jpg';
theImages[2] = whichSet+'c.jpg';

var x = theImages.length;
var preBuffer = new Array();
for (i = 0; i < x; i++){
   preBuffer[i] = new Image();
   preBuffer[i].src = 'ximages/'+theImages[i];
}
function showImage(whichImage,w,h){
document.write('<img src="ximages/'+theImages[whichImage]+'" width="'+w+'"'+' height="'+h+'">');
}

var theDogs = new Array();
theDogs[0] = 'g_01';
theDogs[1] = 'g_02';
theDogs[2] = 'g_03';
theDogs[3] = 'g_04';
theDogs[4] = 'g_05';
theDogs[5] = 'g_06';
theDogs[6] = 'g_07';
theDogs[7] = 'g_08';
theDogs[8] = 'g_09';
theDogs[9] = 'g_10';
theDogs[10] = 'g_11';
theDogs[11] = 'g_12';
theDogs[12] = 'g_13';
theDogs[13] = 'g_14';
theDogs[14] = 'g_15';
theDogs[15] = 'g_16';
theDogs[16] = 'g_17';
theDogs[17] = 'g_18';
theDogs[18] = 'g_19';
theDogs[19] = 'g_20';
theDogs[20] = 'g_21';
theDogs[21] = 'g_22';
theDogs[22] = 'g_23';
theDogs[23] = 'g_24';
theDogs[24] = 'g_25';
theDogs[25] = 'g_26';
theDogs[26] = 'g_27';
theDogs[27] = 'g_28';
theDogs[28] = 'g_29';
theDogs[29] = 'g_30';
theDogs[30] = 'g_31';
theDogs[31] = 'g_32';
theDogs[32] = 'g_33';
theDogs[33] = 'g_34';
theDogs[34] = 'g_35';
theDogs[35] = 'g_36';
theDogs[36] = 'g_37';
theDogs[37] = 'g_38';
theDogs[38] = 'g_39';
theDogs[39] = 'g_40';
theDogs[40] = 'g_41';
theDogs[41] = 'g_42';
theDogs[42] = 'g_43';
theDogs[43] = 'g_44';
theDogs[44] = 'g_45';
theDogs[45] = 'g_46';
theDogs[46] = 'g_47';
theDogs[47] = 'g_48';
theDogs[48] = 'g_49';
theDogs[49] = 'g_50';
theDogs[50] = 'g_51';
theDogs[51] = 'g_52';
theDogs[52] = 'g_53';
theDogs[53] = 'g_54';
theDogs[54] = 'g_55';
theDogs[55] = 'g_56';
theDogs[56] = 'g_57';
theDogs[57] = 'g_58';
theDogs[58] = 'g_59';
theDogs[59] = 'g_60';
theDogs[60] = 'g_61';
theDogs[61] = 'g_62';
theDogs[62] = 'g_63';
theDogs[63] = 'g_64';
theDogs[64] = 'g_65';
theDogs[65] = 'g_66';

var d = theDogs.length;
var whichRandomNum = Math.round(Math.random()*(d-1));
var whichDog = theDogs[whichRandomNum];

var whichDogImage = whichDog+'.jpg';
var preBufferDog = new Array();
   preBufferDog[0] = new Image();
   preBufferDog[0].src = '../ximages/'+whichDogImage;
function showDog(w,h){
   document.write('<img src="../ximages/'+whichDogImage+'" border="0" width="'+w+'"'+' height="'+h+'">');
}

var featuredDogs = new Array();
featuredDogs[0] = 'fd_01';
featuredDogs[1] = 'fd_02';
featuredDogs[2] = 'fd_03';
featuredDogs[3] = 'fd_04';

var f = featuredDogs.length;
var whichRandomNum2 = Math.round(Math.random()*(f-1));
var whichFDog = featuredDogs[whichRandomNum2];

var whichFDogImage = whichFDog+'.jpg';
var preBufferDog = new Array();
   preBufferDog[0] = new Image();
   preBufferDog[0].src = '../ximages/featured/'+whichFDogImage;
function showFeatured(w,h){
   document.write('<a href="../dog_adoption/"><img border="0" src="../ximages/featured/'+whichFDogImage+'" border="0" width="'+w+'"'+' height="'+h+'"></a>');
}