if (navigator.appName == 'Microsoft Internet Explorer')

  function writemenu(page)
 {
  var menus = "";
 var marray =  Array();

 marray[0] = "skiing";
 marray[1] = "The skiing";
 
  marray[2] = "food";
    marray[3] = "Food&nbsp;&&nbsp;drink";
	
   marray[4] = "facilities";
     marray[5] = "La Grange d'Alice";
	 


    marray[6] = "deuxtetes";
	  marray[7] = "Les Deux Tetes";

	    marray[8] = "location";
	   marray[9] = "Location&nbsp;&&nbsp;travel";
	   
	    marray[10] = "news";
	   marray[11] = "Guests'&nbsp;comments";

	    marray[12] = "summer";
	   marray[13] = "Summer";
	   
	    marray[14] = "prices";
	   marray[15] = "Prices&nbsp;&&nbsp;availability";
	   
	   marray[16] = "liftpasses";
	   marray[17] = "Lift&nbsp;passes,&nbsp;equipment&nbsp;&&nbsp;lessons";
	  
	 marray[18] = "guiding";
	   marray[19] = "Ski&nbsp;leading"
	   
	

	  marray[20] = "children";
	 marray[21] = "Children";

	      marray[22] = "christmas";
	   marray[23] = "Christmas & New Year";
	   
	    marray[24] = "contact";
	   marray[25] = "Contact";
	   
	       marray[26] = "links";
	   marray[27] = "Links";
	   

	   
	      marray[28] = "vacancies";
	   marray[29] = "Jobs";
	   



	   
	 for (loop = 0; loop < marray.length; loop = loop+2)
{


if (marray[loop] != "christmas") 
if (marray[loop] != "summer") 

{

		if (page != marray[loop])
		{
		
		var menus = menus+"<a href='"+marray[loop]+".html' class='amenu' onMouseOver=fillbox('"+marray[loop]+"')>"+marray[loop+1]+"</a> | " ;
		}

		 else menus = menus+"<font color='#FFFF00'>"+marray[loop+1]+"</font> | " ; 
		}
		}
 


document.all['menu'].innerHTML = menus;
  
 	  }
 
 function fillbox(cellno) 
   {
   
	  
	
if (cellno == 'children') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts' >We welcome children and offer generous discounts: under 6 - free ...   <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'food') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts' >Quality meals including 4 course dinner with  wine ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'skiing') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Les Arcs + La Plagne = Paradiski, with 450km pistes and 144 lifts...<img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'facilities') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Tradtional chalets, spacious rooms (mainly ensuite), sauna ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";


if (cellno == 'location') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Where we are, how to get here, useful information and links ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno =='guiding') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Group ski leading, wine tasting, trips to other resorts ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'news') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>What our guests so far this season think of what we offer... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'prices') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Prices and availability, and booking form ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'contact') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Our email, phone, contact details <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'links') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Our partners, resort information and other useful links ... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'liftpasses') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Lift pass options, equipment hire and lessons... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'vacancies') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Interested in working the season in the Alps?.... <img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'christmas') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Celebrate Christmas and New Year in the Alps...<img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";

if (cellno == 'transfers') document.all['cell1'].innerHTML = "<a href='"+cellno+".html' class='conts'>Airport transfer availability for non-clients...<img src='go_on_arrow.gif' width='12' height='14' border='0' alt='Click here'></a>";
  }  
  function goto_URL(object) {
    window.location.href = object.options[object.selectedIndex].value;
}

  

function blankbox(cellnum) {


 document.all['cell'+cellnum].innerHTML = "<img src='1pixel.gif' vspace='0' hspace='0' height='1'>";
}

function addnos()
{

var ad = this.bookform.adults.value - 0;
var ch1 = this.bookform.child1.value - 0;
var ch2 = this.bookform.child2.value - 0;
var  partytotal = (ad + ch1 + ch2);
this.bookform.partytotal.value = partytotal;
}



function validform()
{

	if (document.bookform.leadername.value == "")
	{
	document.bookform.leadername.focus();
	alert ("You must enter your name");	

		 return false;

	}
	
	if (document.bookform.leaderemail.value == "")
	{
	document.bookform.leaderemail.focus();
	alert ("You must enter your email address");	

		 return false;

	}
	if (document.bookform.leaderphone.value == "")
	{
	document.bookform.leaderphone.focus();
	alert ("You must enter a phone number");	

		 return false;

	}

			
			if (document.bookform.stayweeks.selectedIndex== "" )
	{
	
	document.bookform.stayweeks.focus();
	alert ("You select a week or give an arrival date");	

		 return false;
		 
		  	}
	
			
			
	if (document.bookform.staydatearrival.value != "" & document.bookform.staydatedeparture.value == "" )
	{
	
	document.bookform.staydatearrival.focus();
	alert ("You give a departure date");	

		 return false;
		 
		  	}
					
		
if (document.bookform.staydatedeparture.value != "" & document.bookform.staynights.value == "" )
	{
	
	document.bookform.staynights.focus();
	alert ("Please give number of nights accommodation required");	

		 return false;
		 
		  	}
				
					if (document.bookform.partytotal.value == "")
	{
	document.bookform.adults.focus();
	alert ("You must indicate number or people in your party");	

		 return false;

	}
	
		
		
		
	
	return true;
	
		}

		
		var sterlingweekprices = Array(19);
var sterlingdayprices = Array(19);
var sterlingchaletprices = Array(19);
var euroweekprices = Array(19);
var eurodayprices = Array(19);
var eurochaletprices = Array(19);
var rate = 1.46;
dates = 11;




function convert(currency)
{

if (currency == 1)



	{
	
for (loop = 0; loop < dates; loop ++  )

		{
		sterlingweekprices[loop] = document.all['a'+loop].innerText;
		sterlingdayprices[loop] = document.all['b'+loop].innerText;
		sterlingchaletprices[loop] = document.all['c'+loop].innerText;
		}



		for (loop = 0; loop < dates; loop ++  )
		{
		
		
		euroweekprices[loop] = Math.round((sterlingweekprices[loop] - 0) * rate);
		document.all['a'+loop].innerText = '€'+euroweekprices[loop];
		
		eurodayprices[loop] = Math.round((sterlingdayprices[loop] - 0) * rate);
		document.all['b'+loop].innerText = '€'+eurodayprices[loop];
		
		eurochaletprices[loop] = Math.round((sterlingchaletprices[loop] - 0) * rate);
		document.all['c'+loop].innerText = '€'+eurochaletprices[loop];
		
		}
	document.all.topline.innerHTML = "<form> <strong>PRICES IN € EUROS</strong><br><input type='button' value='Show prices in Sterling' onclick=convert(2)></form>";
	}


if (currency == 2)
	{
		for (loop = 0; loop < 19; loop ++  )
		{
	
	
		document.all['a'+loop].innerText = sterlingweekprices[loop];
		document.all['b'+loop].innerText = sterlingdayprices[loop];
		document.all['c'+loop].innerText = sterlingchaletprices[loop];
		
		}
document.all.topline.innerHTML = "<form> <strong>PRICES IN £ STERLING</strong><br> <input type='button' value='Convert to Euros' onclick='convert(1)'></form>";
	}
}
