
if (document.images) {


	roomson = new Image();           // Active images
	roomson.src = "images/rooms1.gif";
	roomsoff = new Image();          // Inactive images
	roomsoff.src = "images/rooms2.gif";
	
	rateson = new Image();           // Active images
	rateson.src = "images/rates1.gif";
	ratesoff = new Image();          // Inactive images
	ratesoff.src = "images/rates2.gif";
	
	availabilityon = new Image();           // Active images
	availabilityon.src = "images/availability1.gif";
	availabilityoff = new Image();          // Inactive images
	availabilityoff.src = "images/availability2.gif";
	
	contacton = new Image();           // Active images
	contacton.src = "images/contact1.gif";
	contactoff = new Image();          // Inactive images
	contactoff.src = "images/contact2.gif";
	
	locationon = new Image();           // Active images
	locationon.src = "images/location1.gif";
	locationoff = new Image();          // Inactive images
	locationoff.src = "images/location2.gif";
	
	linkson = new Image();           // Active images
	linkson.src = "images/links1.gif";
	linksoff = new Image();          // Inactive images
	linksoff.src = "images/links2.gif";

  }
    function imgOn(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
            }
    }
    function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");        
            }
    }


function popupWindow(file)  {
newWindow = window.open(file,"logowin", win)
newWindow.focus()
}
var win='toolbar=no,directories=0,menubar=0,scrollbars=yes,resizable=yes,width=400,height=388,screenX=150,left=150,screenY=200,top=200;'

var win = null;
function newWindow2(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += 'scrollbars=yes,';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}