function loadHotel() { 
    var destURL = document.hotelslist.hotelnames.options[document.hotelslist.hotelnames.selectedIndex].value; 
		window.frames["hotelframe"].location = destURL; }

var i;
function hotel_list(i){
var hotelslist = document.getElementById("hotelslist");
	hotelslist.hotelnames.options.length=0;
	
switch(i)
{
case 0: //Promotion
hotelslist.hotelnames.options[0] =new  Option('Rosedale On Robson - SAVE 20%','/en/hotels/british-columbia/vancouver/rosedale-on-robson/');
break;	
case 1: //Baddeck
hotelslist.hotelnames.options[0] =new  Option('Inverary Resort','/en/hotels/atlantic-canada/baddeck/inverary-resort/');
break;
case 2: //Banff
hotelslist.hotelnames.options[0] =new  Option('Buffalo Mountain Lodge','/en/hotels/alberta/banff/buffalo-mountain-lodge/');
hotelslist.hotelnames.options[1] =new  Option('Caribou Lodge & Spa','/en/hotels/alberta/banff/banff-caribou-lodge-and-spa/');
hotelslist.hotelnames.options[2] =new  Option('Fairmont Banff Springs','/en/hotels/alberta/banff/fairmont-banff-springs/');
hotelslist.hotelnames.options[3] =new  Option('Hidden Ridge Resort','/en/hotels/alberta/banff/hidden-ridge-resort/');
hotelslist.hotelnames.options[4] =new  Option('Ptarmigan Inn','/en/hotels/alberta/banff/banff-ptarmigan-inn/');
hotelslist.hotelnames.options[5] =new  Option('Rocky Mountain Resort','/en/hotels/alberta/banff/banff-rocky-mountain-resort/');
hotelslist.hotelnames.options[6] =new  Option('The Fox Hotel & Suites','/en/hotels/alberta/banff/the-fox-hotel-and-suites/');
hotelslist.hotelnames.options[7] =new  Option('The Rimrock Resort','/en/hotels/alberta/banff/the-rimrock-resort/');
break;
case 3: //Calgary
hotelslist.hotelnames.options[0] =new  Option('Fairmont Palliser','/en/hotels/alberta/calgary/fairmont-palliser/');
hotelslist.hotelnames.options[1] =new  Option('International Hotel Suites','/en/hotels/alberta/calgary/international-hotel-suites/');
hotelslist.hotelnames.options[2] =new  Option('Sandman Hotel','/en/hotels/alberta/calgary/sandman-calgary-downtown/');
hotelslist.hotelnames.options[3] =new  Option('The Westin Calgary','/en/hotels/alberta/calgary/the-westin-calgary/');
hotelslist.hotelnames.options[4] =new  Option('Waterton Lakes','/en/hotels/alberta/calgary/waterton-lakes/');
break;
case 4: //Campbell River
hotelslist.hotelnames.options[0] =new  Option('Painters Lodge','/en/hotels/british-columbia/campbell-river/painters-lodge/');
break;
case 5: //Charlottetown
hotelslist.hotelnames.options[0] =new  Option('Best Western Charlottetown','/en/hotels/atlantic-canada/charlottetown/best-western-charlottetown/');
break;
case 6: //Edmonton
hotelslist.hotelnames.options[0] =new  Option('Sandman Hotel','/en/hotels/alberta/edmonton/sandman-edmonton/');
hotelslist.hotelnames.options[1] =new  Option('The Westin Edmonton','/en/hotels/alberta/edmonton/the-westin-edmonton/');
break;
case 7: //Fredericton
hotelslist.hotelnames.options[0] =new  Option('Crowne Plaza','/en/hotels/atlantic-canada/fredericton/crowne-plaza-fredericton/');
hotelslist.hotelnames.options[1] =new  Option('Ramada Hotel','/en/hotels/atlantic-canada/fredericton/ramada-hotel-fredericton/');
break;
case 8: //Halifax
hotelslist.hotelnames.options[0] =new  Option('Atlantica Hotel','/en/hotels/atlantic-canada/halifax/atlantica-hotel/');
hotelslist.hotelnames.options[1] =new  Option('Citadel Halifax Hotel','/en/hotels/atlantic-canada/halifax/citadel-halifax-hotel/');
hotelslist.hotelnames.options[2] =new  Option('Lord Nelson Hotel & Suites','/en/hotels/atlantic-canada/halifax/lord-nelson-hotel-and-suites/');
break;
case 9: //Harrison Hot Springs
hotelslist.hotelnames.options[0] =new  Option('Harrison Hot Springs','/en/hotels/british-columbia/harrison-hot-springs/harrison-hot-springs/');
break;
case 10: //Huntsville
hotelslist.hotelnames.options[0] =new  Option('Deerhurst Resort','/en/hotels/ontario/huntsville/deerhurst-resort/');
hotelslist.hotelnames.options[1] =new  Option('Delta Grand View Resort','/en/hotels/ontario/huntsville/delta-grand-view-resort/');
break;
case 11: //Jasper
hotelslist.hotelnames.options[0] =new  Option('Best Western Jasper Inn','/en/hotels/alberta/jasper/best-western-jasper-inn/');
hotelslist.hotelnames.options[1] =new  Option('Chateau Jasper','/en/hotels/alberta/jasper/chateau-jasper/');
hotelslist.hotelnames.options[2] =new  Option('Faimont Jasper Park Lodge','/en/hotels/alberta/jasper/faimont-jasper-park-lodge/');
hotelslist.hotelnames.options[3] =new  Option('Pocahontas Cabins','/en/hotels/alberta/jasper/pocahontas-cabins/');
break;
case 12: //Kamloops
hotelslist.hotelnames.options[0] =new  Option('Sandman','/en/hotels/british-columbia/kamloops/sandman-kamloops/');
break;
case 13: //Kelowna
hotelslist.hotelnames.options[0] =new  Option('Delta Grand Okanagan Resort','/en/hotels/british-columbia/kelowna/delta-grand-okanagan-resort/');
hotelslist.hotelnames.options[1] =new  Option('Sandman','/en/hotels/british-columbia/kelowna/sandman-kelowna/');
break;
case 14: //Lake Louise
hotelslist.hotelnames.options[0] =new  Option('Fairmont Chateau Lake Louise','/en/hotels/alberta/lake-louise/fairmont-chateau-lake-louise/');
hotelslist.hotelnames.options[1] =new  Option('Lake Louise Inn','/en/hotels/alberta/lake-louise/lake-louise-inn/');
hotelslist.hotelnames.options[2] =new  Option('Moraine Lake Lodge','/en/hotels/alberta/lake-louise/moraine-lake-lodge/');
hotelslist.hotelnames.options[3] =new  Option('The Deer Lodge, Lake Louise','/en/hotels/alberta/lake-louise/the-deer-lodge/');
break;
case 15: //Madeira Park
hotelslist.hotelnames.options[0] =new  Option('Painted Boat Resort','/en/hotels/british-columbia/madeira-park/painted-boat-resort/');
break;
case 16: //Moncton
hotelslist.hotelnames.options[0] =new  Option('Crowne Plaza','/en/hotels/atlantic-canada/moncton/crowne-plaza-moncton/');
break;
case 17: //Montreal
hotelslist.hotelnames.options[0] =new  Option('Clarion Hotel & Suites','/en/hotels/quebec/montreal/clarion-hotel-and-suites/');
hotelslist.hotelnames.options[1] =new  Option('Delta Centre Ville','/en/hotels/quebec/montreal/delta-centre-ville/');
hotelslist.hotelnames.options[2] =new  Option('Delta Montreal','/en/hotels/quebec/montreal/delta-montreal/');
hotelslist.hotelnames.options[3] =new  Option('Fairmont The Queen Elizabeth','/en/hotels/quebec/montreal/fairmont-the-queen-elizabeth/');
hotelslist.hotelnames.options[4] =new  Option('Hotel Le St-James','/en/hotels/quebec/montreal/hotel-le-st-james/');
hotelslist.hotelnames.options[5] =new  Option('Hotel St Paul','/en/hotels/quebec/montreal/hotel-st-paul/');
hotelslist.hotelnames.options[6] =new  Option('Intercontinental','/en/hotels/quebec/montreal/intercontinental/');
hotelslist.hotelnames.options[7] =new  Option('Le Centre Sheraton','/en/hotels/quebec/montreal/le-centre-sheraton-montreal/');
hotelslist.hotelnames.options[8] =new  Option('Loews Hotel Vogue','/en/hotels/quebec/montreal/loews-hotel-vogue/');
hotelslist.hotelnames.options[9] =new  Option('Maritime Plaza','/en/hotels/quebec/montreal/maritime-plaza/');
hotelslist.hotelnames.options[10] =new  Option('W Montreal','/en/hotels/quebec/montreal/w-montreal/');
break;
case 18: //Niagara Falls
hotelslist.hotelnames.options[0] =new  Option('Hilton Niagara Falls','/en/hotels/ontario/niagara-falls/hilton-niagara-falls/');
hotelslist.hotelnames.options[1] =new  Option('Pillar And Post Niagara On The Lake','/en/hotels/ontario/niagara-falls/pillar-and-post-niagara-on-the-lake/');
hotelslist.hotelnames.options[2] =new  Option('Sheraton Fallsview','/en/hotels/ontario/niagara-falls/sheraton-fallsview/');
hotelslist.hotelnames.options[3] =new  Option('The Oakes Hotel Overlooking Falls','/en/hotels/ontario/niagara-falls/the-oakes-hotel-overlooking-falls/');
hotelslist.hotelnames.options[4] =new  Option('The Days Inn Clifton Hill','/en/hotels/ontario/niagara-falls/the-days-inn-clifton-hill/');
break;
case 19: //Nova Scotia
hotelslist.hotelnames.options[0] =new  Option('Oak Island Resort & Spa','/en/hotels/atlantic-canada/nova-scotia/oak-island-resort-and-spa/');
hotelslist.hotelnames.options[1] =new  Option('Pictou Lodge Resort','/en/hotels/atlantic-canada/nova-scotia/pictou-lodge-resort/');
break;
case 20: //Ottawa
hotelslist.hotelnames.options[0] =new  Option('Albert Bay Suite Hotel','/en/hotels/ontario/ottawa/albert-bay-suite-hotel/');
hotelslist.hotelnames.options[1] =new  Option('Capital Hill Hotel & Suites','/en/hotels/ontario/ottawa/capital-hill-hotel-and-suites/');
hotelslist.hotelnames.options[2] =new  Option('Fairmont chateau Laurier','/en/hotels/ontario/ottawa/fairmont-chateau-laurier/');
hotelslist.hotelnames.options[3] =new  Option('Hotel Indigo','/en/hotels/ontario/ottawa/hotelindigo/');
hotelslist.hotelnames.options[4] =new  Option('Lord Elgin Hotel','/en/hotels/ontario/ottawa/lord-elgin-hotel/');
hotelslist.hotelnames.options[5] =new  Option('The Westin','/en/hotels/ontario/ottawa/the-westin-ottawa/');
break;
case 21: //Parksville
hotelslist.hotelnames.options[0] =new  Option('Tigh-Na-Mara Spa','/en/hotels/british-columbia/parksville/tigh-na-mara-spa/');
break;
case 22: //Quathiaski Cove
hotelslist.hotelnames.options[0] =new  Option('April Point Lodge','/en/hotels/british-columbia/quathiaski-cove/april-point-lodge/');
break;
case 23: //Quebec City
hotelslist.hotelnames.options[0] =new  Option('Fairmont Le Chateau Frontenac','/en/hotels/quebec/quebec-city/fairmont-le-chateau-frontenac/');
hotelslist.hotelnames.options[1] =new  Option('Hotel 71','/en/hotels/quebec/quebec-city/hotel_71/');
hotelslist.hotelnames.options[2] =new  Option('Hotel Chateau Laurier','/en/hotels/quebec/quebec-city/hotel-chateau-laurier/');
hotelslist.hotelnames.options[3] =new  Option('Manoir Victoria','/en/hotels/quebec/quebec-city/manoir-victoria/');
break;
case 24: //Revelstoke
hotelslist.hotelnames.options[0] =new  Option('The Sandman Inn','/en/hotels/british-columbia/revelstoke/the-sandman-inn/');
break;
case 25: //Saint John
hotelslist.hotelnames.options[0] =new  Option('Delta St Johns','/en/hotels/atlantic-canada/saint-john/delta-brunswick-saint-john/');
break;
case 26: //Silver Star Mountain
hotelslist.hotelnames.options[0] =new  Option('Snowbird Lodge','/en/hotels/british-columbia/silver-star-mountain/snowbird-lodge');
break;
case 27: //St Andrews By Sea
hotelslist.hotelnames.options[0] =new  Option('Fairmont Algonquin','/en/hotels/atlantic-canada/st-andrews-by-the-sea/fairmont-algonquin/');
break;
case 28: //Sun Peaks
hotelslist.hotelnames.options[0] =new  Option('Nancy Greenes Cahility Lodge','/en/hotels/british-columbia/sun-peaks/nancy-greenes-cahility-lodge/');
break;
case 29: //Tofino
hotelslist.hotelnames.options[0] =new  Option('Best Western Tin Wis','/en/hotels/british-columbia/tofino/best-western-tin-wis/');
break;
case 30: //Toronto
hotelslist.hotelnames.options[0] =new  Option('Best Western Primrose Hotel Downtown','/en/hotels/ontario/toronto/best-western-primrose-hotel-downtown/');
hotelslist.hotelnames.options[1] =new  Option('Delta Chelsea','/en/hotels/ontario/toronto/delta-chelsea/');
hotelslist.hotelnames.options[2] =new  Option('Drake Hotel','/en/hotels/ontario/toronto/drake-hotel/');
hotelslist.hotelnames.options[3] =new  Option('Fairmont Royal York Hotel','/en/hotels/ontario/toronto/fairmont-royal-york-hotel/');
hotelslist.hotelnames.options[4] =new  Option('Hilton Toronto','/en/hotels/ontario/toronto/hilton-toronto/');
hotelslist.hotelnames.options[5] =new  Option('Holiday Inn Toronto Downtown Centre','/en/hotels/ontario/toronto/holiday-inn-toronto-downtown-centre/');
hotelslist.hotelnames.options[6] =new  Option('Hyatt Regency ','/en/hotels/ontario/toronto/hyatt-regency/');
hotelslist.hotelnames.options[7] =new  Option('Intercontinental Toronto Centre ','/en/hotels/ontario/toronto/intercontinental/');
hotelslist.hotelnames.options[8] =new  Option('Le Royal Meridien','/en/hotels/ontario/toronto/le-royal-meridien-king-edward/');
hotelslist.hotelnames.options[9] =new  Option('Metropolitan Hotel','/en/hotels/ontario/toronto/metropoliton-hotel/');
hotelslist.hotelnames.options[10] =new  Option('Residence Inn by Marriott Toronto Downtown','/en/hotels/ontario/toronto/residence-inn/');
hotelslist.hotelnames.options[11] =new  Option('Sandman Signature - Toronto Airport','/en/hotels/ontario/toronto/sandman-signature-toronto-airport/');
hotelslist.hotelnames.options[12] =new  Option('Sheraton Centre Toronto','/en/hotels/ontario/toronto/sheraton-centre-toronto/');
hotelslist.hotelnames.options[13] =new  Option('Westin Harbour Castle','/en/hotels/ontario/toronto/westin-harbour-castle/');
break;
case 31: //Tremblant
hotelslist.hotelnames.options[0] =new  Option('La Chouette','/en/hotels/quebec/tremblant/la-chouette/');
hotelslist.hotelnames.options[1] =new  Option('Westin Resort & Spa','/en/hotels/quebec/tremblant/westin-resort-and-spa/');
break;
case 32: //Ucluelet
hotelslist.hotelnames.options[0] =new  Option('Black Rock Oceanfront Resort','/en/hotels/british-columbia/Ucluelet/blackrock-oceanfront-resort/');
break;

case 33: //Vancouver
hotelslist.hotelnames.options[0] =new  Option('Rosedale On Robson - SAVE 20%','/en/hotels/british-columbia/vancouver/rosedale-on-robson/');
hotelslist.hotelnames.options[1] =new  Option('Coast Coal Harbour Hotel','/en/hotels/british-columbia/vancouver/coast-coal-harbor-hotel/');
hotelslist.hotelnames.options[2] =new  Option('Fairmont Hotel Vancouver','/en/hotels/british-columbia/vancouver/fairmont-hotel-vancouver/');
hotelslist.hotelnames.options[3] =new  Option('Fairmont Waterfront Hotel','/en/hotels/british-columbia/vancouver/fairmont-waterfront-hotel/');
hotelslist.hotelnames.options[4] =new  Option('Le Hermitage Hotel','/en/hotels/british-columbia/vancouver/lhermitage/');
hotelslist.hotelnames.options[5] =new  Option('Opus Hotel','/en/hotels/british-columbia/vancouver/opus-hotel/');
hotelslist.hotelnames.options[6] =new  Option('Pan Pacific','/en/hotels/british-columbia/vancouver/pan-pacific/');

hotelslist.hotelnames.options[7] =new  Option('Sandman Vancouver Downtown','/en/hotels/british-columbia/vancouver/sandman-vancouver-downtown/');
hotelslist.hotelnames.options[8] =new  Option('Sandman Suites On Davie','/en/hotels/british-columbia/vancouver/sandman-suites-on-davie/');
hotelslist.hotelnames.options[9] =new  Option('The Empire Landmark','/en/hotels/british-columbia/vancouver/the-empire-landmark/');
hotelslist.hotelnames.options[10] =new  Option('The Metropolitan','/en/hotels/british-columbia/vancouver/the-metropolitan/');
hotelslist.hotelnames.options[11] =new  Option('Westin Bayshore Vancouver','/en/hotels/british-columbia/vancouver/westin-bayshore-vancouver/');
break;
case 34: //Victoria
hotelslist.hotelnames.options[0] =new  Option('Chateau Victoria','/en/hotels/british-columbia/victoria/chateau-victoria/');
hotelslist.hotelnames.options[1] =new  Option('Executive House Hotel','/en/hotels/british-columbia/victoria/executive-house-hotel/');
hotelslist.hotelnames.options[2] =new  Option('Inn at Laurel Point','/en/hotels/british-columbia/victoria/inn-at-laurel-point/');
hotelslist.hotelnames.options[3] =new  Option('Fairmont Empress','/en/hotels/british-columbia/victoria/fairmont-empress/');
break;
case 35: //Whistler
hotelslist.hotelnames.options[0] =new  Option('Crystal Lodge','/en/hotels/british-columbia/whistler/crystal-lodge');
hotelslist.hotelnames.options[1] =new  Option('Delta Whistler Village Suites','/en/hotels/british-columbia/whistler/delta-whistler-village-suites/');
hotelslist.hotelnames.options[2] =new  Option('Fairmont Chateau Whistler','/en/hotels/british-columbia/whistler/fairmont-chateau-whistler');
hotelslist.hotelnames.options[3] =new  Option('Pan Pacific Whistler Village Centre','/en/hotels/british-columbia/whistler/pan-pacific-whistler-village-centre');
hotelslist.hotelnames.options[4] =new  Option('The Listel Hotel','/en/hotels/british-columbia/whistler/the-listel-hotel');
hotelslist.hotelnames.options[5] =new  Option('Westin Resort & Spa','/en/hotels/british-columbia/whistler/westin-resort-and-spa');
hotelslist.hotelnames.options[6] =new  Option('Whistler Village Inn And Suites','/en/hotels/british-columbia/whistler/whistler-village-inn-and-suites');
break;

}

}


// SWAP IMAGE FUNCTION for MinInfo
// (C) 2005 Panic, Inc. / Cabel Sasser
//
// Cross-fade between the two images, and swap out the thumbnail with the highlighted thumbnail

function swapImage(divID, imageID, imageToSwap) {

  globalDivID = divID;
  globalImageID = imageID;

  if (document.getElementById(imageID).src.indexOf(eval(imageToSwap+".src")) == -1) {

  	// Set the background image to the currently displaying image
        // This is now done on HTML render and when fade is complete
  	// document.getElementById(divID).style.backgroundImage = "url(" + document.getElementById(imageID).src + ")";
  
  	// Set the top image to invisible
  	setOpacity(0, imageID);

  	// Set the top image to the target image
  	document.getElementById(imageID).src = eval(imageToSwap+".src");
  	
  	// Slowly fade in the top image back to visible
  	fadeElementSetup(imageID, 0, 100, 7);

  } else {

	 // alert("Already Set");

  }
}

// HIGHLIGHT image function
//
// Replaces image source with [imagename]-on.[gif]
// Undoes last image (if any).
//
// imageID = the ID of the image to replace
// modeFlag = 0 for don't highlight, 1 for highlight

function highlightImage(imageID) {
  var imageSrc = document.getElementById(imageID).style.backgroundImage;
  if (imageSrc.indexOf("-on") != -1) {
     // alert("Already On");
  } else {
    if (typeof(lastChangedID) != "undefined") {
      // We've changed something previously.
      // Remove the "-on" from the filename and set the image back.
      var lastSrc = document.getElementById(lastChangedID).style.backgroundImage;
      var lastType = lastSrc.substring(lastSrc.lastIndexOf('.'), lastSrc.length);
      var lastName = lastSrc.substring(0, lastSrc.lastIndexOf('-on'));
      document.getElementById(lastChangedID).style.backgroundImage = lastName+lastType;
    }
    // Now add "-on" to the changed one and set the image.
    var fileType = imageSrc.substring(imageSrc.lastIndexOf('.'), imageSrc.length);
    var newSrc = imageSrc.replace(fileType, "-on"+fileType);
    document.getElementById(imageID).style.backgroundImage = newSrc;
    lastChangedID = imageID;
  }
}

// FADE ITEM function
// (C) 2005 Panic, Inc.
//
// Ex: href="javascript:fadeElementSetup('testimg',100,0,10)"
// Because we can't accruately get the opacity of an item (it's always zero),
// we must force a start and an end (it can't be computed on the fly).
// So, call this as a normal function.
//
// Pass opacity values from 1 - 100.

function fadeElementSetup(theID, fdStart, fdEnd, fdSteps) {
  fadeSteps = fdSteps;
  fadeCurrent = 0;
  fadeAmount = (fdStart - fdEnd) / fadeSteps;
  fadeTimer = setInterval("fadeElement('"+theID+"')", 50);
}

function fadeElement(theID) {
  fadeCurrent++;
  // Set the opacity depending on if we're adding or subtracting (pos or neg)
  if (fadeAmount < 0) {
    setOpacity(Math.abs(fadeCurrent * fadeAmount), theID);
  } else {
    setOpacity(100 - (fadeCurrent * fadeAmount), theID);
  }
  if (fadeCurrent == fadeSteps) {
    // We're done, so clear
    clearInterval(fadeTimer);

    // Here's "mininfo" specific code, that sets the background to be prepared for the next fade
    // Set the background image to the currently displaying image
    document.getElementById(globalDivID).style.backgroundImage = "url(" + document.getElementById(globalImageID).src + ")";

  }
}

function setOpacity(opacity, theID) { 

  var object = document.getElementById(theID).style;

  // If it's 100, set it to 99 for Firefox.

  if (navigator.userAgent.indexOf("Firefox") != -1) {
    if (opacity == 100) { opacity = 99.999; } // This is majorly retarded
  }

  // Multi-browser opacity setting

  object.filter = "alpha(opacity=" + opacity + ")"; // IE/Win
  object.KhtmlOpacity = (opacity / 100);            // Safari 1.1 or lower, Konqueror
  object.MozOpacity = (opacity / 100);              // Older Mozilla+Firefox
  object.opacity = (opacity / 100);                 // Safari 1.2, Firefox+Mozilla
}

