/******** START OF RANDOM IMAGE SCRIPT ********/

	var TotalImages = 10; //number of images and links available to rotate through
	var ImagesArray = new Array(); //create an array for the image paths
	//set the array entries for the image array
	ImagesArray[0] = "header/image-1.jpg"; ImagesArray[1] = "header/image-2.jpg"; ImagesArray [2] = "header/image-3.jpg";
	ImagesArray[3] = "header/image-4.jpg"; ImagesArray[4] = "header/image-5.jpg"; ImagesArray [5] = "header/image-6.jpg";
	ImagesArray[6] = "header/image-7.jpg"; ImagesArray[7] = "header/image-8.jpg"; ImagesArray [8] = "header/image-9.jpg";
	ImagesArray[9] = "header/image-10.jpg";
	//pick an image to go in the space from those available
	function GetRandomImage(range) {
			if (Math.random) {
					return Math.round(Math.random() * (range - 1));
			} else {
					var now = new Date();
					return (now.getTime() / 1000) % range;
			}
	}
	//call the function to do the business...
	var RandomImage = GetRandomImage(TotalImages);


/********* END OF RANDOM IMAGE SCRIPT **********/


function ShowFlashTour() {
  tourwindow = window.open("/resources/tour.html", "mywindow","location=0,status=0,scrollbars=0,width=550,height=500");
  tourwindow.moveTo(100,100);
}


$(document).ready(function(){
  $('.popup').click(function(){
    window.open(this.href + '?layout=popup', 'Popup', 'width=550,height=500,scrollbars=1');
    return false;
  });
});