imageset = new Array(22); //for display on home page
names = [
"/images/fj13",
"/images/fj11",
"/gallery/fa13",
"/gallery/fb17",
//"/gallery/fck64",
"/gallery/fa33",
"/gallery/fa24",
"/images/fck11",
"/images/fj7",
"/images/fd1",
"/images/fck46",
"/images/fd3",
"/images/fd4",
"/images/fd5",
"/images/fd7",
"/images/fd8" ];
descs = [
"Apartments are close to the local skiing<br>36&nbsp;lifts and 100kms of pistes.",
"Mont-Blanc is always a dramatic backdrop<br>to walking and skiing.",
"Queues are rare and pistes are never crowded.<br>&nbsp;",
"Hundreds of the most scenic walks in Europe.<br>&nbsp;",
//"Combloux is typified by wooden chalets and stone farmhouses.",
"Sunset over Mont-Blanc,<br>an unforgettable experience.",
"le Boitet, a typical mountain restaurant.<br>&nbsp;",
"magnificent scenery, tree lined pistes,<br>and panoramic restaurants.",
"Parapenting: fun to learn; fascinating to watch!<br>&nbsp;",
"'L'Etape' gondola station in summer.<br>&nbsp;",
"Very pretty views across the village.<br>&nbsp;",
"Evening meal in the nearby restaurant.<br>&nbsp;",
"Skiing at 'Cote 2000'<br>&nbsp;",
"In summer, rambling is popular and varied.<br>&nbsp;",
"Combloux is excellent for family skiing.<br>&nbsp;",
"One of the Combloux mountain restaurants:<br>'Alpage de Porrez'" ];

// temporary removals:
//"http://www.trinum.com/ibox/megeve/Images/jaillet12", "<b>Live webcam</b> on Jaillet red down to Meg&egrave;ve.",
//"/images/fd6", "Yours truly.",
//"http://www.trinum.com/ibox/megeve/Images/arbois14", "<b>Live webcam</b> on Mont d'Arbois.",

var loaded;
for (loaded=0; loaded<4; loaded++) {
 imageset[loaded] = new Image();
 imageset[loaded].src = names[loaded]+".jpg";
 }

frame=0;
function animate() {
  document.pic.src = imageset[frame].src;
  document.all["capt"].innerHTML = descs[frame];
  frame = (frame+1)%(loaded-1);
  if (frame == 0) {
   for (loaded=4; loaded<names.length+1; loaded++) {
    imageset[loaded] = new Image();
    imageset[loaded].src = names[loaded]+".jpg";
    }
   }
  setTimeout("animate()",3700);
  }

caps = [
"This website does immediate <b>online reservations</b>, therefore ...</b>",
"We always show the <b>true Availability</b>.",
"<b>Avoid delays.</b> Just take an option, then arrange travel.",
"This site has a lot of general tips - add it to your favourites.",
"We have four apartments to let ... or find others to suit you.",
"Don't waste money on currency conversions...",
"Our transactions are in English, and payments in pounds.",
"<b>Save £100s on flights!</b> Avoid Saturday travel.",
"<b>Flexibility.</b> We let standard weeks, or come and go any time!"];

rolls = 0;

function roll() {
  rolls = ++rolls%caps.length;
  document.all["here"].innerHTML = caps[rolls];
  setTimeout("roll()", 3000);
}

function prepform() {
  with(document.quest) {
    for (k=1; k<32; k++) {
      document.quest.day.options[k] = new Option (k,k);
      }
    m=parent.nowmnth;
    y=parent.nowyear;
    for (k=1; k<19; k++) {
      document.quest.month.options[k] = new Option ("JanFebMarAprMayJunJulAugSepOctNovDec".substr(m*3-3,3)+" "+y,m+"/"+y);
	if (++m > 12) {m=1; y++;}
	}
    }
  }
function ny() { //called on submit
  document.quest.start.value = "30/12/06";
  rememberform();
  }
function ht() { //called on submit
  document.quest.start.value = "10/02/07";
  rememberform();
  }
function rememberform() { //called on submit
  with(document.quest) {
    parent.start = start.value;
    parent.trace=parent.trace +"?" +start.value;
    }
  }
function makeadate() {
  with(document.quest) {
    iDay = day.selectedIndex;
    iMonth = month.selectedIndex;
    if (iDay*iMonth == 0) return false;
    start.value = iDay+"/"+month.options[iMonth].value;
    return true;
    }
  }
function checkdate() {
  with(document.quest) {
    if (start.value == "") start.value="10/02/07";
    return true;
    }
  }

