var d=document; 
if(d.images)
{ 
	if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length; 
	a=new Array("1-baandeborah","2-baan_solly","3-baan_samarinda","6-baanwolfgang","7-baanmairead","8-baansabaai.jpg","8-baansabaaiguestwing","10-baankhunmarcia","11-baansaparna","11-baansaparnb","11-baansaparnc","11-baansaparnd","12-baannoble","13-baanapsara","14-baanling","16-baanduangdow","17-baanrungnok","18-naapaa","18-naapab","19-baangoldschmid","20-baanrim","20-baanmaai","24-baanviewkao","26-baanchang","28-baanbrian","29-baanlomtalaay","30-baandtonmaai","ch1hongatit","ch2hongjan");
	for(i=0; i<a.length; i++)
	{ 
		d.MM_p[j]=new Image; 
		d.MM_p[j++].src="/files/front/"+a[i]+".jpg";
	}
}

var title= new Array("..",
"<h3>1-Baan Deborah: </h3>Sleeps 8; 11,000 Baht.  <BR>This is one of only three houses at Railei Beach Club located right on the beachfront.",
"<h3>2-Baan Solly: </h3>Sleeps 2; 6,100 Baht.  <BR>This house is one of only three at Railei Beach club located on the beachfront.",
"<h3>3-Baan Samarinda: </h3>Sleeps 6; 8,800 Baht.  <BR>This is one of only three houses at Railei Beach Club located right on the beachfront.",
"<h3>6-Baan Wolfgang: </h3>Sleeps 2 to 5;  Wing A, 3,000 Baht; Wing A & B, 5,000 Baht. <BR>Located 50m from the beach with lots of large trees and cool shade.",
"<h3>7-Baan Mairead: </h3>Sleeps 6 to 8;  Main Wing, 9,600 Baht; Guest Wing, 3,500 Baht; Whole House, 11,000 Baht.  <BR>Located 50m from the beach, this is a new house which is very luxuriously furnished and has all of the amenities including a chef's kitchen and TV / DVD player",
"<h3>8-Baan Sabaai Main House:</h3> Sleeps 2; 5,000 Baht.<BR>Located 50m from the beach. The main house has an open plan bedroom and sitting area, with an outside bathroom located in the back of the house.  The new kitchen has full cooking facilities and is located to the left of the house connected by the font deck.  The sala located in between the main house and guest wing can be used for relaxing or having a massage.",
"<h3>8-Baan Sabaai Guest Wing:  </h3>Sleeps 2 adults; 5,000 Baht.  <BR>Located 50m from the beach.  The guest wing is private, open plan bedroom ( 1 King bed ) with kitchenette, deck and bathroom.",
"<h3>10-Baan Khun Marcia:  </h3>Sleeps 4; 5,000 Baht.  <BR>This house is located 50m from the beach and has a beautiful sea view and sea breeze.",
"<h3>11-Baan Saparn A:  </h3>Sleeps 2 to 4; 4,000 / 7,000 Baht.*  <BR>Master Wing A is an open plan bedroom with living area with an adjoining bathroom.",
"<h3>11-Baan Saparn B: </h3>Sleeps 2 ; 4,000 Baht.  <BR>Guest Wing B is a bedroom with bathroom and a semi-covered deck around two sides of the room.",
"<h3>11-Baan Saparn C: </h3>Sleeps 2 to 4; 3,000 / 5,000 Baht.*  <BR>Wing C is a bedroom with bathroom and a spacious covered deck upstairs. ",
"<h3>11-Baan Saparn D: </h3>Sleeps 2 to 4; 5,000 Baht. <BR>Master Wing D is located above the large Sala used as a living / dining area with adjoining bar and kitchen for all guests in the house.",
"<h3>12-Baan Noble: </h3>Sleeps 6; 6,000 Baht. <BR>Located 100m from the beach, this house has three bedrooms, each in a separate wing to give a private feeling.",
"<h3>13-Baan Apsara: </h3>Sleeps 4; 4,000 Baht.  <BR>Located 100m from the beach, this house has two bedrooms, two bathrooms and an open plan living room with kitchen & large deck.",
"<h3>14-Baan Ling: </h3>Sleeps 2 to 4;  Room with a View only, 2,200 Baht; Room with a View & Garden Room, 2,700 Baht.  <BR>Is a large home with Private Guest Wing rooms for rent.",
"<h3>16-Baan Duang Dow: </h3>Sleeps 6-8; 6,000 Baht. <BR>100 meters from beach.  This is the newest house on our property with 3 bedrooms and 3 bathrooms.  This house has beautiful cliff views.",
"<h3>17-Baan Rung Nok: </h3>Sleeps 2; 3,500 Baht.  <BR>Located 100m from the beach, this house has one bedroom, outdoor bathroom, kitchen & large deck with beautiful cliff views.",
"<h3>18-Baan Naapa A: </h3>Sleeps 4; 3,500 Baht.  <BR>Located 170m from the beach & 20m from the cliffs, this house has two bedrooms, one bathroom, a kitchenette and deck space.",
"<h3>18-Baan Naapa B: </h3>Sleeps 4; 5,000 Baht.  <BR>Located 150m from the beach & 20m from cliffs, this house has two bedrooms, two bathrooms, a kitchen, a large living room & a deck",
"<h3>19-Baan Goldschmid: </h3>Sleeps 2; 4,300 Baht.  <BR>Located 150m from the beach & 20m from cliffs, this house has one bedroom, an outdoor bathroom, a small covered outdoor kitchen & an open deck with beutiful cliff views.",
"<h3>20-Baan Rim: </h3> Sleeps 2;<BR>Available May 1 through September 30 for a minimum of one month or more, at a rate of 30,000 baht per week, 50% payment by credit card to confirm booking.  Located 150 flat meters from the beach & 20m from jungle and cliffs.  This one bedroom house has a newly remodeled indoor kitchen, one living room, and and outdoor covered dining area. The outdoor bathroom has cliff views from the shower.",
"<h3>20-Baan Bai Maai: </h3> <BR>Sleeps 2; 20B 2,400 Baht.  Located 150 flat meters from the beach & 20m from jungle and cliffs.  This guest house has an open plan bedroom and kitchenette, and indoor bathroom and deck area which overlooks an open garden area.",
"<h3>24-Baan View Kao: </h3>Sleeps 4 to 8; 6,000 Baht.  <BR>Located 30m from the beach, this house has two bedrooms, one bathroom, a living room & large deck upstairs, a kitchen, patio, one bathroom & a shower room downstairs.",
"<h3>26-Baan Chang: </h3>Sleeps 6; 6,000 Baht.  <BR>Located 100m from the beach & 20m from the cliff, this house has a master bedroom with ensuite, living room, bathroom, kitchen, dining area & large deck upstairs; it has two bedrooms & a bathroom downstairs.",
"<h3>28-Baan Hollander: </h3>Sleeps 4 to 6; 4,000 Baht.  <BR>A corner lot with a private backyard surrounded by the high limestone cliffs make Baan Hollander a special one for viewing stalactites and wildlife from the private back deck.",
"<h3>29-Baan Lom Talaay: </h3>Sleeps 8; 10,000 Baht.  <BR>Located 50m from the beach, this house has finished a beautiful remodle. It has two bedrooms, two bathrooms, a kitchen, a living area & a large deck upstairs. On the ground level there are two bedrooms & a bathroom.",
"<h3>30-Baan Dton Maai: </h3>Sleeps 8; 8,000 Baht.  <BR>Located 80m from the beach, this house has two bedrooms, a bathroom, a living room, a loft with beds & a deck upstairs; it also has one bedroom, a kitchen, bathroom & shower room downstairs.",
"<h3>CH1 - Hong Atit: </h3>Sleeps 2; 1,200 Baht.  <BR>Located near the beachfront, the Club House has two separate bedrooms, each with a private bathroom & outdoor shower.  They both have use of the communal Club House deck space.",
"<h3>CH2 - Hong Jun:  </h3>Sleeps 2; 1,200 Baht.  <BR>Located near the beachfront, the Club House has two separate bedrooms, each with a private bathroom & outdoor shower.  They both have use of the communal Club House deck space.",
"<h3>CH3 - Baan Chom Daow-Star Gazer:  </h3>Sleeps 2; 2,800 Baht.  <BR>Small private house located near the Club House, 50m from the beach.  Open plan bedroom and kitchen area, private bathroom and covered front deck.");

var images= new Array("null","1-baandeborah","2-baan_solly","3-baan_samarinda","6-baanwolfgang","7-baanmairead","8-baansabaai","8-baansabaaiguestwing","10-baankhunmarcia","11-baansaparna","11-baansaparnb","11-baansaparnc","11-baansaparnd","12-baannoble","13-baanapsara","14-baanling","16-baanduangdow","17-baanrungnok","18-baannaapaa","18-baannaapab","19-baangoldschmid","20-baanrim","20-baanmaai","24-baanviewkao","26-baanchang","28-baanbrian","29-baanlomtalaay","30-baandtonmaai","ch1hongatit","ch2hongjan","chomdaowstargazerhouse");

var maps = new Array("",
"map1.gif","map2.gif","map3.gif","map6.gif",
"map7.gif","map8.gif","map8.gif","map10.gif","map11.gif",
"map11.gif","map11.gif","map11.gif","map12.gif",
"map13.gif","map14.gif","map16.gif","map17.gif","map18.gif",
"map18.gif","map19.gif","map20.gif","map20.gif","map24.gif",
"map26.gif","map28.gif","map29.gif","map30.gif",
"map31.gif","map31.gif","map31.gif" );

var lock=false;
var map="Click here to view Map";

function showDetail(index){
	if(!lock) {
		document.getElementById("loadarea").innerHTML='<a href="/'+images[index]+'"> <img src="/files/front/'+images[index]+'.jpg" /></a><br />'+title[index]+'<br/>';
		document.getElementById("links").innerHTML=map;
		document.getElementById("links").setAttribute("href","/files/map/"+maps[index]);
				document.getElementById("aftermouse").style.display = 'none';
				document.getElementById("beforemouse").style.display = 'block';					
	}
	else {
		document.getElementById("aftermouse").style.display = 'block';	
		document.getElementById("beforemouse").style.display = 'none';
	
	}
		
	
}

function lockDetail(index){ 
	if(lock){
		 lock=false; 
	}
	else {
		lock=true;
	}
	
	showDetail(index);

	
}
function hideDetail(){
	if(!lock) {
		document.getElementById("loadarea").innerHTML= "<br /> <br />";
		document.getElementById("links").innerHTML="";
		
	}

}
	
//UPDATE ON 26th AUG 2009
