var strPathToRoot = '/';
//var strPathToRoot = '/caidominici/';

function imgOn(imgName) {
	if (document.images) { 
		document[imgName].src = eval(imgName + "on.src");        
	}	
}
function imgOff(imgName) {
	if (document.images) { 
		document[imgName].src = eval(imgName + "off.src");        
	}	
}

if (document.images) {
	img1on = new Image();
	img1on.src = strPathToRoot + 'images/nav/home_on.gif';  
	img2on = new Image();
	img2on.src = strPathToRoot + 'images/nav/about_on.gif';  
	img3on = new Image();
	img3on.src = strPathToRoot + 'images/nav/facilities_on.gif';  
	img4on = new Image();
	img4on.src = strPathToRoot + 'images/nav/location_on.gif';  
	img5on = new Image();
	img5on.src = strPathToRoot + 'images/nav/prices_on.gif';  
	img6on = new Image();
	img6on.src = strPathToRoot + 'images/nav/contact_on.gif';  
				
	img1off = new Image();
	img1off.src = strPathToRoot + 'images/nav/home.gif';  
	img2off = new Image();
	img2off.src = strPathToRoot + 'images/nav/about.gif';  
	img3off = new Image();
	img3off.src = strPathToRoot + 'images/nav/facilities.gif';  				
	img4off = new Image();
	img4off.src = strPathToRoot + 'images/nav/location.gif';
 	img5off = new Image();
	img5off.src = strPathToRoot + 'images/nav/prices.gif';
 	img6off = new Image();
	img6off.src = strPathToRoot + 'images/nav/contact.gif'; 
}

function viewAvailability() {
	var winAvailability = window.open('../availability.asp','winAvailability','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50,width=730,height=433');
	winAvailability.focus();	
}

function openPopUp(img) {
	winPopUp = window.open('../popup.html?images/galleries/' + img + '.jpg','winPopUp','scrollbars=1,resizable=1,top=10,left=10,width=50,height=50');
	winPopUp.focus();
}

function viewFloorPlan() {
	var winFloorPlan = window.open('plan.html','winFloorPlan','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,top=10,left=150,width=450,height=800');
	winFloorPlan.focus();	
}