
<!--


// Set up the image files to be used.
var theImages = new Array()
var theImagesAlt = new Array()// do not change this
var resizePath = "inc_php/imgresize.inc.php";  //set this to the path of the resizer - must be correct if using showImageResize
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/images/header_rotates/1.jpg'
theImages[1] = '/images/header_rotates/2.jpg'
theImages[2] = '/images/header_rotates/3.jpg'
theImages[3] = '/images/header_rotates/4.jpg'
theImages[4] = '/images/header_rotates/5.jpg'
theImages[5] = '/images/header_rotates/6.jpg'


theImagesAlt[0] = 'The RAD Real Estate Guide'
theImagesAlt[1] = 'The HAL Resort Real Estate Guide'
theImagesAlt[2] = 'The RAD Real Estate Guide'
theImagesAlt[3] = 'The HAL Resort Real Estate Guide'
theImagesAlt[4] = 'The RAD Real Estate Guide'
theImagesAlt[5] = 'The HAL Resort Real Estate Guide'


// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));

/* ================================================================ */
/*  Paste the following code wherever you want the image to appear  */
/*  <script type="text/javascript">showImage();</script>            */
/* ================================================================ */

function showImage(){
	document.write('<img src="'+theImages[whichImage]+'" alt="'+theImagesAlt[whichImage]+'">');
}

// ==============================================================
// w = width , h = height, contrain = 1 or 0 
// constrain = 1 - this will scale the image to fit within the given
//                 w and h while maintaining proportions
// constrain = 0 - this will scale the image to the exact w and h
//
/*  Paste the following code wherever you want the image to appear  */
/*  <script type="text/javascript">showImage(100,100,1);</script>            */
//
// ================================================================
function showImageResize(w,h,constrain){ 
	document.write('<img src="' + resizePath + "?constrain="+constrain+"&img=/" +theImages[whichImage]+"&w="+w+"&h="+h+'" alt="'+theImagesAlt[whichImage]+'">');
}

//-->
