d = document;

d.write('<style>')
d.write('select {font-family:helvetica; font-size:80%; width:250px; background-color:#c0dbb7;}')
d.write('.caption {font-size:70%;color:#666666;text-align:center;}') /* image captions */
d.write('#bling {font-size:90%;}')
d.write('</style>')


wind = window.location.href;
file = wind.substring (wind.lastIndexOf('/') +1);

/* Array's: North Mahe beaches, South Mahe beaches, Western Mahe beaches */
/* Praslin, La Digue, Bird Island, North Island*/

var NorthMaheURLs = new Array

("beau_vallon_mahe.html",
 "glacis_mahe.html",
 "carana_mahe.html",
 "north_east_point_mahe.html");

var NorthMaheNames = new Array

("Beau Vallon",
 "Glacis",
 "Carana",
 "North East Point");

/***********************************/

var SouthMaheURLs = new Array

("anse_aux_pins_mahe.html",
 "anse_royale_mahe.html",
 "anse_baleine_mahe.html",
 "anse_parnel_mahe.html",
 "anse_forbans.html",
 "anse_marie_louise_mahe.html",
 "anse_marie_louise_petite_mahe.html",
 "intendance_mahe.html",
 "anse_takamaka_mahe.html",
 "anse_gaullette_mahe.html",
 "anse_val_mer_mahe.html",
 "anse_soleil_mahe.html",
 "anse_a_la_mouche_mahe.html",
 "anse_louis_mahe.html",
 "anse_boileau_mahe.html",
 "anse_cimitiere_mahe.html",
 "anse_barbarons_mahe.html");

var SouthMaheNames = new Array

("Anse Aux Pins",
 "Anse Royale",
 "Anse Baleine",
 "Anse Parnel",
 "Anse Forbans",
 "Anse Marie Louise",
 "Anse Petite Marie Louise",
 "Anse Intendance",
 "Anse Takamaka",
 "Anse Gaullette",
 "Anse Val Mer",
 "Anse Soleil",
 "Anse a La Mouche",
 "Anse Louis",
 "Anse Boileau",
 "Anse Cimitiere",
 "Anse Barbarons",
 "other South Mahé beaches");

/***********************************/

var WestMaheURLs = new Array

("grand_anse_mahe.html",
 "port_launay_mahe.html",
 "cap_ternay_mahe.html",
 "anse_du_riz_mahe.html",
 "anse_major_mahe.html");

var WestMaheNames = new Array

("Grand Anse",
 "Port Launay",
 "Cap Ternay",
 "Anse du Riz",
 "Anse Major");

/************************************/

var PraslinURLs = new Array

("anse_volbert_praslin.html",
 "anse_petite_cour_praslin.html",
 "anse_possession_praslin.html",
 "anse_takamaka_praslin.html",
 "anse_boudin_praslin.html",
 "anse_lazio_praslin.html",
 "anse_georgette_praslin.html",
 "anse_kerlan_praslin.html",
 "grand_anse_praslin.html",
 "anse_citron_and_anse_bateau_praslin.html",
 "anse_st_sauveur_praslin.html",
 "anse_takamaka_south_praslin.html",
 "anse_cimitiere_praslin.html",
 "anse_bois_de_rose_praslin.html",
 "anse_consolation_praslin.html",
 "anse_marie_louise_praslin.html",
 "anse_madge_praslin.html",
 "anse_takamaka_east_praslin.html");

var PraslinNames = new Array

("Anse Volbert",
 "Anse Petite Cour",
 "Anse Possession",
 "Anse Takamaka #1",
 "Anse Boudin",
 "Anse Lazio",
 "Anse Georgette",
 "Anse Kerlan",
 "Grand Anse",
 "Anse Citron & Anse Batau",
 "Anse St. Sauveur",
 "Anse Takamaka #2",
 "Anse Cimitiere",
 "Anse Bois de Rose",
 "Anse Consolation",
 "Anse Marie-Louise",
 "Anse Madge",
 "Anse Takamaka #3");

/**************************************/

var LaDigueURLs = new Array

("anse_source_dargent_ladigue.html",
 "grand_anse_&_petite_anse_&_anse_cocos_ladigue.html");

var LaDigueNames = new Array

("Anse Source D'argent",
 "Grand, Petite & Anse Cocos");

/***************************************/

var NorthIslandURLs = new Array

("anse_d_est_north_island.html",
 "grand_anse_north_island.html",
 "bonnet_carre_north_island.html",
 "petite_anse_north_island.html");
 
var NorthIslandNames = new Array

("Anse d'Est",
 "Grand Anse",
 "Bonnet Carré",
 "Petite Anse"); 


var FregateIslandURLs = new Array

("anse_victorin_fregate.html",
 "grand_anse_fregate.html",
 "anse_macquereau_fregate.html",
 "anse_bambous_fregate.html",
 "anse_park_fregate.html",
 "la_cour_fregate.html",
 "anse_marina_fregate.html");
 
var FregateIslandNames = new Array

("Anse Victorin",
 "Grand Anse",
 "Anse Macquereau",
 "Anse Bambous",
 "Anse Park",
 "La Cour",
 "Anse Marina");



/****************************************/

var OtherIslandsURLs = new Array

("bird_island_beach.html",
 "aride_island_beach.html");

var OtherIslandsNames = new Array

("Bird Island Beach",
 "Aride Island");

/****************************************/

d.write('<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td>')
d.write('<font size="3" face="helvetica"><b>'+document.title+'</b></font><br>')

/* Get the title and meta description to display on page */

if (document.getElementsByName){
var metaArray = document.getElementsByName('description');

  for (var i=0; i<metaArray.length; i++) {
d.write('<font size="2" face="helvetica"><i>'+metaArray[i].content+'</i></font><br>')
}
}

d.write('<img src="t.gif" width="1" height="3"></td>')

d.write('<td align="right" valign="middle"><font size="2" face="helvetica">&nbsp;<br>')

d.write('<form style="margin-top:1px;margin-bottom:1px">');
d.write('<select name="selectName" onChange="helistop(this.form.selectName);document.forms[0].selectName.selectedIndex=selectValue;">');

/* North Mahe beaches */

d.write('<option value="javascript:void(0)";>NORTH MAHÉ:</option>')
for(var i = 0; i <NorthMaheURLs.length; i++)

if(wind.indexOf(NorthMaheURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+NorthMaheNames[i]+'</option>');
}
else{
d.write("<option value="+NorthMaheURLs[i]+">"+NorthMaheNames[i]+"</option> ")
}

/* South Mahe beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>SOUTH MAHÉ:</option>')
for(var i = 0; i <SouthMaheURLs.length; i++)

if(wind.indexOf(SouthMaheURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+SouthMaheNames[i]+'</option>');
}
else{
d.write("<option value="+SouthMaheURLs[i]+">"+SouthMaheNames[i]+"</option> ")
}

/* South Mahe beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>WEST MAHÉ:</option>')
for(var i = 0; i <WestMaheURLs.length; i++)

if(wind.indexOf(WestMaheURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+WestMaheNames[i]+'</option>');
}
else{
d.write("<option value="+WestMaheURLs[i]+">"+WestMaheNames[i]+"</option> ")
}

/* Praslin beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>PRASLIN:</option>')
for(var i = 0; i <PraslinURLs.length; i++)

if(wind.indexOf(PraslinURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+PraslinNames[i]+'</option>');
}
else{
d.write("<option value="+PraslinURLs[i]+">"+PraslinNames[i]+"</option> ")
}


/* La Digue beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>LA DIGUE:</option>')
for(var i = 0; i <LaDigueURLs.length; i++)

if(wind.indexOf(LaDigueURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+LaDigueNames[i]+'</option>');
}
else{
d.write("<option value="+LaDigueURLs[i]+">"+LaDigueNames[i]+"</option> ")
}


/* North Island beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>NORTH ISLAND:</option>')
for(var i = 0; i <NorthIslandURLs.length; i++)

if(wind.indexOf(NorthIslandURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+NorthIslandNames[i]+'</option>');
}
else{
d.write("<option value="+NorthIslandURLs[i]+">"+NorthIslandNames[i]+"</option> ")
}


/* Fregate Island beaches */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>FRÉGATE ISLAND:</option>')
for(var i = 0; i <FregateIslandURLs.length; i++)

if(wind.indexOf(FregateIslandURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+FregateIslandNames[i]+'</option>');
}
else{
d.write("<option value="+FregateIslandURLs[i]+">"+FregateIslandNames[i]+"</option> ")
}



/* Other islands */
d.write('<option value="javascript:void(0)";>- - - - - - - - - - - - - -</option>')
d.write('<option value="javascript:void(0)";>OTHER ISLANDS:</option>')
for(var i = 0; i <OtherIslandsURLs.length; i++)

if(wind.indexOf(OtherIslandsURLs[i]) != -1){
d.write('<option selected value="javascript:void(0);">'+OtherIslandsNames[i]+'</option>');
}
else{
d.write("<option value="+OtherIslandsURLs[i]+">"+OtherIslandsNames[i]+"</option> ")
}

d.write("</select>");
d.write("</form>");

d.write('</font></td>')

d.write('</tr>')
d.write('<tr><td align="right" valign="bottom" bgcolor="#cccccc" colspan="2"><img src="t.gif" width="1" height="2"></td>')
d.write('</tr></table>')
d.write('<img src="images/trans.gif" width="1" height="6" border="0"><br>')

//d.write('<select name="selectName" onChange="helistop(this.form.selectName);">');

/* set to value when page loads and reset to this onchange to non-page */
selectValue = document.forms[0].selectName.options.selectedIndex;
