<!--

var speed = 10000000;
var crossFadeDuration = 5;
var Pic = new Array();

// Get file name and set background colour
var myFile = window.location.pathname;

switch(myFile) {

	// Hotel
	case"/hotel-the-rutland.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-the-rutland-2.html":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-gallery.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/mailing-list-hotel.php":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-booking.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/indulgence-breaks-the-rutland-hotel.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/indulgence-breaks-the-rutland-hotel-1.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/indulgence-breaks-the-rutland-hotel-2.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms-castle-view.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms-executive-1.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms-standard-1.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms-standard-2.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-rooms-junior-suite.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-packages.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-packages-1.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-packages-2.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
	case"/hotel-packages-3.htm":
		Pic[0] = 'images/background-hotel.jpg';
		break;
		case"../lookoffer/index.html":
		Pic[0] = 'images/background-hotel.jpg';
		break;

	// Bar
	case"/bar-rutland-hotel.htm":
		Pic[0] = 'images/background-bar.jpg';
		break;
	case"/bar-rutland-hotel-2.htm":
		Pic[0] = 'images/background-bar.jpg';
		break;
	case"/bar-menus.htm":
		Pic[0] = 'images/background-bar.jpg';
		break;
	case"/bar-gallery.htm":
		Pic[0] = 'images/background-bar.jpg';
		break;
	case"/mailing-list-bar.php":
		Pic[0] = 'images/background-bar.jpg';
		break;

	// Restaurant
	case"/restaurant-rutland-hotel.htm":
		Pic[0] = 'images/background-restaurant.jpg';
		break;
	case"/restaurant-rutland-hotel-2.htm":
		Pic[0] = 'images/background-restaurant.jpg';
		break;
	case"/restaurant-menus.htm":
		Pic[0] = 'images/background-restaurant.jpg';
		break;
	case"/restaurant-gallery.htm":
		Pic[0] = 'images/background-restaurant.jpg';
		break;
	case"/mailing-list-restaurant.php":
		Pic[0] = 'images/background-restaurant.jpg';
		break;
	case"/restaurant-book-table.htm":
		Pic[0] = 'images/background-restaurant.jpg';
		break;

	// One Below
	case"/the-one-below.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-2.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-menus.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-gallery.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/mailing-list-one-below.php":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-lipgloss-lounge.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-industry-lounge.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
			case"/the-one-below-table-packages.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	case"/the-one-below-events.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;
	
		
	// Corporate Entertaining
	case"/corporate-entertainment-2.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;	
	case"/corporate-entertainment.htm":
		Pic[0] = 'images/background-one-below.jpg';
		break;	
		
		
	// Default
	default:
		Pic[0] = 'images/background_main.jpg';
		break;
}

var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];}
   
function runSlideShow(){

if (document.all){
    document.body.style.filter="blendTrans(duration=crossFadeDuration)";
    document.body.filters.blendTrans.Apply();
    document.body.filters.blendTrans.Play();}  

if (document.body){
    document.body.background = Pic[j];    
    j = j + 1
    if (j > (p-1)) j=0
    t = setTimeout('runSlideShow()', speed)}    

}

-->