	if (document.layers) {
		//Load the DHTML code for NS4 and Opera
		if(navigator.userAgent.indexOf("Opera") != -1){
			document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav_opera.js'><\/scr"+"ipt>");
		} else {
			document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav_ns4.js'><\/scr"+"ipt>");
		}
	} else {
		//Load the DHTML code for IE and NS 6
		document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav.js'><\/scr"+"ipt>");
	}
	
	sectname="golf";
// ---------------------------------------------------------------------------------------
	function go1(loc, hotelcat, hotelcode) {
		if (hotelcode!=0) {
			if (hotelcode=="all") {
				window.location="/locations/searchresults.asp?hotel=all&country="+loc;
			} else {
				//window.location="/locations/Rydges.asp?hotel="+hotelcode+"&cat="+hotelcat;
				window.location="/locations/locationchooser.asp?hotel="+hotelcode;
			}
		}
	}
// ---------------------------------------------------------------------------------------

	function goall(hotelcode) {
		//FOR THE DROPDOWN MENU OF ALL HOTELS
		if (hotelcode!=0) {
			if (hotelcode=="all") {
				window.location="/locations/searchresults.asp?hotel=all&country="+loc;
			} else {
			//	window.location="/locations/locationchooser.asp?hotel="+hotelcode;
				window.location="/locations-asp/locationchooser/hotel/"+hotelcode+"/index.htm";				
			}
		}
	}
// ---------------------------------------------------------------------------------------
	//popGallery('<%=file.Name%>', '<%=request("hotel")%>')
	function popGallery(file, hotelcode) {
		//FOR THE DROPDOWN MENU OF ALL HOTELS
		if (hotelcode!="" && file !="") {
				window.open('/locations/locationsgallerypop.asp?imagename='+file+'&hotel='+hotelcode, 'RydgesOtherPop', 'top=50, left=50, width=450, height=340, scrollbars=yes, location=no, address=no');
		}
	}
// ---------------------------------------------------------------------------------------
	function go(loc, hotel) {		if (hotel!=0) {			if (hotel=="all") {				window.location="searchresults.asp?hotelcat=all&country="+loc;			} else {				window.location="/locations/"+hotel+"/index.asp";			}		}	}// ---------------------------------------------------------------------------------------	//SWAP THE ROOM IMAGES
	function roomSwap(rmno) {
		if (!rmno=="") {
			eval(rmimage).src = "/images/rhradminuploads/rooms/" + rmno;
		}
	}// ---------------------------------------------------------------------------------------	//GOLF COURSE THUMBNAIL POP-OUT WINDOW	function popEducation(image) {		window.open('/locations-asp/RydgesOtherPop.asp?image='+image, 'RydgesOtherPop', 'top=50, left=50, width=610, height=500, scrollbars=yes, location=no, address=no');	}// ---------------------------------------------------------------------------------------	//GOLF COURSE Resort Course Pop-Out window
	function popGolf(course, image) {
   	   window.open('/golfcourses/golfcoursePop.asp?course='+course+'&image='+image, 'RydgesOtherPop', 'top=50, left=50, width=620, height=500, scrollbars=yes, location=no, address=no');
	}// ---------------------------------------------------------------------------------------// Golf image galleryfunction gallerypop(course, image) {	window.open('/golfcourses/imagegalleryPop.asp?course='+course+'&image='+image, 'RydgesOtherPop', 'top=50, left=50, width=510, height=475, scrollbars=yes, location=no, address=no');}// ---------------------------------------------------------------------------------------	function facroll(icondesc, iconname, count, state) {
	//MAKES THE ICONS ROLLOVER
		whatlabel=eval("venhead"+count);
		whatlabel.innerText = icondesc;

	if (document.all) {
		if (state==0) eval(iconname+count).src = "/images/locations/icons/" + iconname + "g.gif";
		if (state==1) eval(iconname+count).src = "/images/locations/icons/" + iconname + "g_on.gif";
	} else {
		if (state==0) document.getElementById(iconname+count).src = "/images/locations/icons/" + iconname + "g.gif";
		if (state==1) document.getElementById(iconname+count).src = "/images/locations/icons/" + iconname + "g_on.gif";
	}

	}// ---------------------------------------------------------------------------------------	// Hotel Sydney - Booking Panel	function checkForm_HSydney(){
		errs="";
		if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";
		if (errs!="") {
			alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);
		} else {
			document.quicksearch.submit();
		}
	}// ---------------------------------------------------------------------------------------	 // Hotel Landing Pages - Booking panel update - Dynamic Anchor
		function updaterespanelSyd(hotelname) {
            window.location="/locations/Hotel-Sydney.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}		function updaterespanelMel(hotelname) {
            window.location="/locations/Hotel-Melbourne.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}		function updaterespanelCan(hotelname) {
            window.location="/locations/Hotel-Canberra.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}		function updaterespanelC(hotelname) {
            window.location="/locations/Hotel-Cairns.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}				function updaterespanelD(hotelname) {
            window.location="/locations/Hotel-Dubai.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}		
		function updaterespanelA(hotelname) {
            window.location="/locations/Hotel-Adelaide.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}		
		function updaterespanelB(hotelname) {
            window.location="/locations/Hotel-Brisbane.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}
		function updaterespanelP(hotelname) {
            window.location="/locations/Hotel-Perth.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}
		function updaterespanelNZ(hotelname) {
            window.location="/locations/Hotel-New-Zealand.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}
		function updaterespanel(hotelname) {
            window.location="/locations/Hotel-sydney.asp?hotel="+hotelname+"&#booknow";
			document.quicksearch.pro.selectedIndex=hotelname;
		}// ---------------------------------------------------------------------------------------	//LOCATIONS THUMBNAIL POP-OUT WINDOW
	//function popMap(hotel) {
	//	window.open(hotel, 'rydgesmap', 'top=100, left=100, width=620, height=540, scrollbars=yes, location=no, address=no');
	//}// ---------------------------------------------------------------------------------------//Quick Time Popup for RZCHCH 
function qtPop(imagename) {
	window.open('/locations/quicktime.asp?qt='+imagename, 'rydgesimages', 'top=10, left=10, width=550, height=550, scrollbars=no, location=no, address=no');
}// ---------------------------------------------------------------------------------------
