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=I thought this might interest you...&body=HASPI | "+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 theHPSets = new Array();
theHPSets[0] = 'hp_main_01_';
theHPSets[1] = 'hp_main_02_';
theHPSets[2] = 'hp_main_03_';
theHPSets[3] = 'hp_main_04_';
theHPSets[4] = 'hp_main_05_';

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

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

var hpil = theHPImages.length;
var preBuffer = new Array();
for (b = 0; b < hpil; b++){
   preBuffer[b] = new Image();
   preBuffer[b].src = 'ximages/hp_main/'+theHPImages[b];
}
function showHPImage(whichImage,w,h){
document.write('<img src="ximages/hp_main/'+theHPImages[whichImage]+'" width="'+w+'"'+' height="'+h+'">');
}

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';
theSets[15] = 'g_16';

var j = 0;
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 = '../ximages/'+theImage;
function showImage(w,h){
   document.write('<img src="/ximages/'+theImage+'" border="0" width="'+w+'"'+' height="'+h+'">');
}
