function lib_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
function makeObj(obj,nest){
	nest= (!nest)?"":'document.'+nest+'.';
	this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):document.getElementById(obj);	
   	this.css= bw.ns4?this.el:this.el.style;
	this.ref= bw.ns4?this.el.document:document;		
	this.x= (bw.ns4||bw.opera5)?this.css.left:this.el.offsetLeft;
	this.y= (bw.ns4||bw.opera5)?this.css.top:this.el.offsetTop;
	this.h= (bw.ie||bw.ns6)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.opera5?this.css.pixelHeight:0;
	this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
    this.vis= b_vis;
	this.hideIt= b_hideIt;
    this.showIt= b_showIt;
    this.moveIt= b_moveIt;
	this.centreIt = b_centreIt;
	this.obj = obj + "Object"
    eval(this.obj + "=this")
	return this
}
function b_showIt(){this.css.visibility='visible'}
function b_hideIt(){this.css.visibility='hidden'}
function b_vis(){if(this.css.visibility=='hidden' || this.css.visibility=='HIDDEN' || this.css.visibility=='hide') return true;}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px}
function b_centreIt() {if (Left >= 0) this.css.left = Left;}

function ImgInit(j) {
	for (i=0;i<j;i++)
	{
		oImg[i] = new Image();
		oImg[i].src = imgPath + imgBase + eval(i+1) + '.jpg'
	}
	oDiv = new makeObj('divMain');
	return true;
}
function ImgChange(i) {
	oDiv.ref['imgMain'].src = oImg[i-1].src
}

var bw = new lib_bwcheck();
var px = bw.ns4||window.opera?"":"px";
oImg = new Array();
var oDiv;

function res()
{
	var day = slDay.value
	var month = slMonth.value
	window.open('https://booknpay.anz.com/avail_output.asp?cboDay=' + day + '&' + month + '&Resort=32')
	return false
}