
if (document.images) {

var b0_off = new Image; b0_off.src = "images/bt_home_0.gif"
var b0_on = new Image; b0_on.src = "images/bt_home_1.gif"

var b1_off = new Image; b1_off.src = "images/bt_tours_0.gif"
var b1_on = new Image; b1_on.src = "images/bt_tours_1.gif"

var b2_off = new Image; b2_off.src = "images/bt_reservations_0.gif"
var b2_on = new Image; b2_on.src = "images/bt_reservations_1.gif"

var b3_off = new Image; b3_off.src = "images/bt_tourCo_0.gif"
var b3_on = new Image; b3_on.src = "images/bt_tourCo_1.gif"

var b4_off = new Image; b4_off.src = "images/bt_events_0.gif"
var b4_on = new Image; b4_on.src = "images/bt_events_1.gif"

var b5_off = new Image; b5_off.src = "images/bt_history_0.gif"
var b5_on = new Image; b5_on.src = "images/bt_history_1.gif"

var b6_off = new Image; b6_off.src = "images/bt_contact_0.gif"
var b6_on = new Image; b6_on.src = "images/bt_contact_1.gif"

var b7_off = new Image; b7_off.src = "images/bt_link_0.gif"
var b7_on = new Image; b7_on.src = "images/bt_link_1.gif"

var b8_off = new Image; b8_off.src = "images/bt_mission_0.gif"
var b8_on = new Image; b8_on.src = "images/bt_mission_1.gif"

var b9_off = new Image; b9_off.src = "images/bt_gallery_0.gif"
var b9_on = new Image; b9_on.src = "images/bt_gallery_1.gif"

var b10_off = new Image; b10_off.src = "images/bt_horses_0.gif"
var b10_on = new Image; b10_on.src = "images/bt_horses_1.gif"

var b11_off = new Image; b11_off.src = "images/bt_staff_0.gif"
var b11_on = new Image; b11_on.src = "images/bt_staff_1.gif"

var b12_off = new Image; b12_off.src = "images/bt_kids_0.gif"
var b12_on = new Image; b12_on.src = "images/bt_kids_1.gif"

var b13_off = new Image; b13_off.src = "images/bt_farm_0.gif"
var b13_on = new Image; b13_on.src = "images/bt_farm_1.gif"

var close_off = new Image; close_off.src = "popup/close_win_0.gif"
var close_on = new Image; close_on.src = "popup/close_win_1.gif"

}


function chgImg(origImg,newImg)
{
	if (document.images){
	document[origImg].src = eval(newImg + ".src")
	}
}

//window pop
var win= null;
function CentreWindow(url,winname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(url,winname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
