if (document.images) {
hom_on = new Image();	hom_on.src = "images/roll/home_on.gif";
hom_off = new Image();	hom_off.src = "images/roll/home_off.gif";
pho_on = new Image();	pho_on.src = "images/roll/photos_on.gif";
pho_off = new Image();	pho_off.src = "images/roll/photos_off.gif";
abo_on = new Image();	abo_on.src = "images/roll/aboutvilla_on.gif";
abo_off = new Image();	abo_off.src = "images/roll/aboutvilla_off.gif";
ame_on = new Image();	ame_on.src = "images/roll/amenities_on.gif";
ame_off = new Image();	ame_off.src = "images/roll/amenities_off.gif";
map_on = new Image();	map_on.src = "images/roll/map_on.gif";
map_off = new Image();	map_off.src = "images/roll/map_off.gif";
lay_on = new Image();	lay_on.src = "images/roll/layout_on.gif";
lay_off = new Image();	lay_off.src = "images/roll/layout_off.gif";
//gtt_on = new Image();	gtt_on.src = "images/roll/gettingthere_on.gif";
//gtt_off = new Image();	gtt_off.src = "images/roll/gettingthere_off.gif";
rqs_on = new Image();	rqs_on.src = "images/roll/personalRequest_on.gif";
rqs_off = new Image();	rqs_off.src = "images/roll/personalRequest_off.gif";
pre_on = new Image();	pre_on.src = "images/roll/press_on.gif";
pre_off = new Image();	pre_off.src = "images/roll/press_off.gif";
con_on = new Image();	con_on.src = "images/roll/contact_on.gif";
con_off = new Image();	con_off.src = "images/roll/contact_off.gif";

//LISTS
ast1_off = new Image();	ast1_off.src = "images/clear.gif";
ast1_on = new Image();	ast1_on.src = "images/ast.gif";
ast2_off = new Image();	ast2_off.src = "images/clear.gif";
ast2_on = new Image();	ast2_on.src = "images/ast.gif";
ast3_off = new Image();	ast3_off.src = "images/clear.gif";
ast3_on = new Image();	ast3_on.src = "images/ast.gif";
ast4_off = new Image();	ast4_off.src = "images/clear.gif";
ast4_on = new Image();	ast4_on.src = "images/ast.gif";
ast5_off = new Image();	ast5_off.src = "images/clear.gif";
ast5_on = new Image();	ast5_on.src = "images/ast.gif";
ast6_off = new Image();	ast6_off.src = "images/clear.gif";
ast6_on = new Image();	ast6_on.src = "images/ast.gif";
ast7_off = new Image();	ast7_off.src = "images/clear.gif";
ast7_on = new Image();	ast7_on.src = "images/ast.gif";
ast8_off = new Image();	ast8_off.src = "images/clear.gif";
ast8_on = new Image();	ast8_on.src = "images/ast.gif";
ast9_off = new Image();	ast9_off.src = "images/clear.gif";
ast9_on = new Image();	ast9_on.src = "images/ast.gif";
ast10_off = new Image();	ast10_off.src = "images/clear.gif";
ast10_on = new Image();	ast10_on.src = "images/ast.gif";

//PHOTO GALLERY
gr1 = new Image();	gr1.src = "images/photos/greatroom1.jpg";
gr2 = new Image();	gr2.src = "images/photos/greatroom2.jpg";
en1 = new Image();	en1.src = "images/photos/entertainment1.jpg";
en2 = new Image();	en2.src = "images/photos/entertainment2.jpg";
}

function swapem (sname,rname) {
sname.src = rname.src;
}

// This swaps the thumbnails with the full photo
function showPic (whichpic) 
{
	if (document.getElementById) 
	{
		document.getElementById('placeholder').src = whichpic.href;
		return false;
	} else {
		return true;
	}
}

// This swaps the big imgs in the photo gallery
function change(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}