function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// link opener
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Image Selection Block
// =======================================
// set the following variables
// =======================================

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below


// =======================================
// do not edit anything below this line
// =======================================

var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];
}


function replaceImgs(obj) {
	var thumbSrc = obj.src;
	var thumbLowSrc = obj.lowsrc;
	//alert(thumbSrc + ' ' + thumbLowSrc);
	var lgImgObj = document.getElementById('largeImg');

	var lgImgSrc = lgImgObj.src;
	var lgImgLowSrc = lgImgObj.lowsrc;

	// do the do
	obj.src = lgImgLowSrc;
	obj.lowsrc = lgImgSrc;

	lgImgObj.src = thumbLowSrc;
	lgImgObj.lowsrc = thumbSrc;
}

function enableIeHover() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("navigation");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			//alert(node.nodeName);
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function loadMenus() {
/*
    //sub-menu for queenstown on left column
    if (window.mm_menu_1115154508_0) return;
    window.mm_menu_1115154508_0 = new Menu("root",101,25,"Verdana, Helvetica, sans-serif",10,"#666666","#FFFFFF","#FFFFFF","#FF9933","left","middle",3,0,1000,-5,7,true,true,true,2,false,false);
    mm_menu_1115154508_0.addMenuItem("Thomas's Hotel","location='/thomas-qtn/index.shtml'");
    mm_menu_1115154508_0.addMenuItem("Wakatipu View","location='/wakaview/index.shtml'");
    mm_menu_1115154508_0.fontWeight="bold";
    mm_menu_1115154508_0.hideOnMouseOut=true;
    mm_menu_1115154508_0.menuBorder=1;
    mm_menu_1115154508_0.menuLiteBgColor='';
    mm_menu_1115154508_0.menuBorderBgColor='#CCCC99';

    //sub-menu on nz map for queenstown
    window.mm_menu_1117193938_0 = new Menu("root",115,16,"Verdana, Arial, Helvetica, sans-serif",10,"#666666","#FFFFFF","#FFFFFF","#CCCC99","left","middle",3,0,1000,-5,7,true,true,true,2,true,true);
    mm_menu_1117193938_0.addMenuItem("Thomas's&nbsp;Hotel","location='/thomas-qtn/index.shtml'");
    mm_menu_1117193938_0.addMenuItem("Wakatipu&nbsp;View","location='/wakaview/index.shtml'");
    mm_menu_1117193938_0.fontWeight="bold";
    mm_menu_1117193938_0.hideOnMouseOut=true;
    mm_menu_1117193938_0.bgColor='#555555';
    mm_menu_1117193938_0.menuBorder=1;
    mm_menu_1117193938_0.menuLiteBgColor='#FFFFFF';
    mm_menu_1117193938_0.menuBorderBgColor='#CCCCCC';
    mm_menu_1117193938_0.writeMenus();
*/
}

//alert('loading script.js');