// ************************************************************
// FUNCTIONS...

// ...swap btn on rollOver...
// ...assumes naming convention : OFF name1.gif/name2.gif ON...

function btnON(n)	{
	r = n.src.toString();
	x = ".gif"
	y = r.indexOf(x) - 1;
	z = r.substring(0,y);
	z += "2.gif"
	n.src = z;
}


// ...swap btn on rollOut...

function btnOFF(n)	{
	r = n.src.toString();
	x = ".gif"
	y = r.indexOf(x) - 1;
	z = r.substring(0,y);
	z += "1.gif"
	n.src = z;
}


// ...define window status rollover text...

function wStat(x)	{
	if(x==0) return "The Ahisma";
	if(x==1) return "home";
	if(x==2) return "services";
	if(x==3) return "location";
	if(x==4) return "bookings";
	if(x==5) return "packages";
	if(x==6) return "email us";
}


// ...define links...

function clickBTN(x)	{
	location = "search.htm";
}


//win ...

function getWin(mode)	{
	if(mode == 1) {
		winA = window.open('photos_ahimsa.htm','photoA','0,0,width=700,height=500,scrollbars=0,resizable=0');
		winA.focus();
	}
	if(mode == 2) {
		winB = window.open('photos_estate.htm','photoB','0,0,width=700,height=500,scrollbars=0,resizable=0');
		winB.focus();
	}
	if(mode == 3) {
		winB = window.open('photos_suite.htm','photoB','0,0,width=700,height=500,scrollbars=0,resizable=0');
		winB.focus();
	}
	if(mode == 4) {
		winB = window.open('photos_beach.htm','photoB','0,0,width=700,height=500,scrollbars=0,resizable=0');
		winB.focus();
	}
}

function showMap()	{
	winMAP = window.open('../mapdetail.htm','map','0,0,width=380,height=590,scrollbars=0,resizable=0');
	winMAP.focus();
}

function showMap2()	{
	winMAP = window.open('../mapdetail2.htm','map','0,0,width=500,height=516,scrollbars=0,resizable=0');
	winMAP.focus();
}

function showMore()	{
	winMORE = window.open('../more.htm','more','0,0,width=700,height=500,scrollbars=0,resizable=0');
	winMORE.focus();
}







