	/*
		Rotate Image Script
		-----------------------------------
		Author: Mark Howells
		Last Updated: 02-Mar-2009 10:08 PM
		-----------------------------------
		(c) Copyright Tom Howells (2004)
		http://www.tomhowells.co.uk/
	*/
	// Images to rotate through
	var Imgs = new Array("images/welcome_photo_1.jpg", "images/welcome_photo_2.jpg", "images/welcome_photo_3.jpg", "images/welcome_photo_4.jpg", "images/welcome_photo_5.jpg", "images/welcome_photo_6.jpg", "images/welcome_photo_7.jpg", "images/welcome_photo_8.jpg", "images/welcome_photo_9.jpg", "images/welcome_photo_10.jpg", "images/welcome_photo_11.jpg", "images/welcome_photo_12.jpg", "images/welcome_photo_13.jpg", "images/welcome_photo_14.jpg", "images/welcome_photo_15.jpg", "images/welcome_photo_16.jpg", "images/welcome_photo_17.jpg", "images/welcome_photo_18.jpg", "images/welcome_photo_19.jpg", "images/welcome_photo_20.jpg", "images/welcome_photo_21.jpg", "images/welcome_photo_22.jpg", "images/welcome_photo_23.jpg", "images/welcome_photo_24.jpg", "images/welcome_photo_25.jpg", "images/welcome_photo_26.jpg", "images/welcome_photo_27.jpg", "images/welcome_photo_28.jpg", "images/welcome_photo_29.jpg", "images/welcome_photo_30.jpg", "images/welcome_photo_31.jpg", "images/welcome_photo_32.jpg", "images/welcome_photo_33.jpg", "images/welcome_photo_34.jpg", "images/welcome_photo_35.jpg", "images/welcome_photo_36.jpg", "images/welcome_photo_37.jpg", "images/welcome_photo_38.jpg", "images/welcome_photo_39.jpg", "images/welcome_photo_40.jpg", "images/welcome_photo_41.jpg", "images/welcome_photo_42.jpg", "images/welcome_photo_43.jpg", "images/welcome_photo_44.jpg", "images/welcome_photo_45.jpg", "images/welcome_photo_46.jpg", "images/welcome_photo_47.jpg", "images/welcome_photo_48.jpg", "images/welcome_photo_49.jpg", "images/welcome_photo_50.jpg", "images/welcome_photo_51.jpg", "images/welcome_photo_52.jpg", "images/welcome_photo_53.jpg", "images/welcome_photo_54.jpg", "images/welcome_photo_55.jpg", "images/welcome_photo_56.jpg", "images/welcome_photo_57.jpg", "images/welcome_photo_58.jpg", "images/welcome_photo_59.jpg", "images/welcome_photo_60.jpg", "images/welcome_photo_61.jpg", "images/welcome_photo_62.jpg", "images/welcome_photo_63.jpg", "images/welcome_photo_64.jpg", "images/welcome_photo_65.jpg", "images/welcome_photo_66.jpg", "images/welcome_photo_67.jpg", "images/welcome_photo_68.jpg", "images/welcome_photo_69.jpg", "images/welcome_photo_70.jpg", "images/welcome_photo_71.jpg", "images/welcome_photo_72.jpg", "images/welcome_photo_73.jpg", "images/welcome_photo_74.jpg", "images/welcome_photo_75.jpg", "images/welcome_photo_76.jpg", "images/welcome_photo_77.jpg", "images/welcome_photo_78.jpg", "images/welcome_photo_79.jpg", "images/welcome_photo_80.jpg", "images/welcome_photo_81.jpg", "images/welcome_photo_82.jpg", "images/welcome_photo_83.jpg", "images/welcome_photo_84.jpg");

	// Rotate the image
	function RotateImage() {
		// Declare variables
		var Cell;
		var CellBg;
		var ImgNum;
		// If the W3C DOM is supported
		if (document.getElementById) {
			// Reference cell element
			Cell = document.getElementById("rotation");
			// If the cell background property is supported
			if (Cell.background) {
				// Get the current cell background
				CellBg = Cell.background;
			// If stylesheets are supported
			} else if (Cell.style) {
				// Get the current cell background
				CellBg = Cell.style.backgroundImage;
			}
			// Generate a random image
			ImgNum = RandomImage();
			// Loop while the random image is the current image
			while (CellBg.indexOf(Imgs[ImgNum]) >= 0) {
				// Generate a new random image
				ImgNum = RandomImage();
			}
			// If the cell background property is supported
			if (Cell.background) {
				// Set the cell background image
				Cell.background = Imgs[ImgNum];
			// If stylesheets are supported
			} else if (Cell.style) {
				// Set the cell background image
				Cell.style.backgroundImage = "url('" + Imgs[ImgNum] + "')";
			}
		}
		// Return false, don't follow any links
		return false;
	}
	// Generate a random image
	function RandomImage() {
		// Declare variables
		var Num;
		// Generate a random number between 0 and the last array item
		Num = Math.floor(Math.random() * Imgs.length);
		// Return the random number
		return Num;
	}