/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','36401',jdecode('Hotels'),jdecode(''),'/36401/index.html','true',[ 
		['PAGE','4401',jdecode('ABOM+Hotel%2C+Bar+%26+Bistro'),jdecode(''),'/36401/4401.html','true',[],'',''],
		['PAGE','4406',jdecode('Alpine+Retreat'),jdecode(''),'/36401/4406.html','true',[],'',''],
		['PAGE','4411',jdecode('Andre%26%23x27%3Bs+at+Buller'),jdecode(''),'/36401/4411.html','true',[],'',''],
		['PAGE','4416',jdecode('Arlberg+Hotel'),jdecode(''),'/36401/4416.html','true',[],'',''],
		['PAGE','207',jdecode('Breathtaker+All+Suite+Hotel'),jdecode(''),'/36401/207.html','true',[],'',''],
		['PAGE','62001',jdecode('Buller+Backpackers'),jdecode(''),'/36401/62001.html','true',[],'',''],
		['PAGE','4436',jdecode('Chalet+Hotel'),jdecode(''),'/36401/4436.html','true',[],'',''],
		['PAGE','4421',jdecode('Duck+Inn'),jdecode(''),'/36401/4421.html','true',[],'',''],
		['PAGE','4426',jdecode('+++Hotel+Enzian'),jdecode(''),'/36401/4426.html','true',[],'','']
	],'',''],
	['PAGE','212',jdecode('Apartments'),jdecode(''),'/212/index.html','true',[ 
		['PAGE','26201',jdecode('The+Christiana+3A+1+-Studio'),jdecode(''),'/212/26201.html','true',[],'',''],
		['PAGE','26222',jdecode('Whistler+8+-+Studio'),jdecode(''),'/212/26222.html','true',[],'',''],
		['PAGE','27201',jdecode('Chalet+811-1+B%2FR'),jdecode(''),'/212/27201.html','true',[],'',''],
		['PAGE','27222',jdecode('The+Peak+203B+-1+B%2FR'),jdecode(''),'/212/27222.html','true',[],'',''],
		['PAGE','27243',jdecode('Chalet+704+-2+B%2FR'),jdecode(''),'/212/27243.html','true',[],'',''],
		['PAGE','27264',jdecode('Malamute+4+-+2+B%2FR'),jdecode(''),'/212/27264.html','true',[],'',''],
		['PAGE','27285',jdecode('The+Peak+203A+-2+B%2FR'),jdecode(''),'/212/27285.html','true',[],'',''],
		['PAGE','27306',jdecode('Twin+Towers+403A-+2+B%2FR'),jdecode(''),'/212/27306.html','true',[],'',''],
		['PAGE','106801',jdecode('Snowflake+12-+2+B%2FR'),jdecode(''),'/212/106801.html','true',[],'',''],
		['PAGE','27348',jdecode('Valley+View+303-+2+B%2FR'),jdecode(''),'/212/27348.html','true',[],'',''],
		['PAGE','85701',jdecode('Brackenwood+3+-+3+B%2FR'),jdecode(''),'/212/85701.html','true',[],'',''],
		['PAGE','28722',jdecode('Huski+5-+3+B%2FR'),jdecode(''),'/212/28722.html','true',[],'',''],
		['PAGE','28743',jdecode('Huski+6-+3+B%2FR'),jdecode(''),'/212/28743.html','true',[],'',''],
		['PAGE','28764',jdecode('Moose+9-+3+B%2FR'),jdecode(''),'/212/28764.html','true',[],'',''],
		['PAGE','28785',jdecode('Twin+Towers+502A-+3+B%2FR'),jdecode(''),'/212/28785.html','true',[],'',''],
		['PAGE','65801',jdecode('Snowflake+9+-+3+B%2FR'),jdecode(''),'/212/65801.html','true',[],'',''],
		['PAGE','28806',jdecode('Christiana+3-+4+B%2FR'),jdecode(''),'/212/28806.html','true',[],'',''],
		['PAGE','49401',jdecode('Not+Avail+2010+Twin+Towers+504A-+2+B%2FR'),jdecode(''),'/212/49401.html','true',[],'',''],
		['PAGE','27327',jdecode('Not+avail+2010+Twin+Towers+503B-+2+B%2FR'),jdecode(''),'/212/27327.html','true',[],'',''],
		['PAGE','28701',jdecode('Not+Avail+2010+Whistler+2'),jdecode(''),'/212/28701.html','true',[],'',''],
		['PAGE','68601',jdecode('Not+avail+2010+Huski+2-+3+B%2FR'),jdecode(''),'/212/68601.html','true',[],'',''],
		['PAGE','93201',jdecode('Not+avail+2010+Reindeer+7+-+3+B%2FR'),jdecode(''),'/212/93201.html','true',[],'','']
	],'',''],
	['PAGE','65822',jdecode('Elkhorn+Apartments'),jdecode(''),'/65822/index.html','true',[ 
		['PAGE','71322',jdecode('Elkhorn+12+-+2+B%2FR'),jdecode(''),'/65822/71322.html','true',[],'',''],
		['PAGE','65843',jdecode('Elkhorn++7++-+3+B%2FR'),jdecode(''),'/65822/65843.html','true',[],'',''],
		['PAGE','71343',jdecode('Elkhorn++1+-+3+B%2FR+'),jdecode(''),'/65822/71343.html','true',[],'',''],
		['PAGE','71364',jdecode('Elkhorn+4+-+3+B%2FR'),jdecode(''),'/65822/71364.html','true',[],'',''],
		['PAGE','71301',jdecode('Not+avail+2010+Elkhorn+2++-+1+B%2FR'),jdecode(''),'/65822/71301.html','true',[],'',''],
		['PAGE','106822',jdecode('Not+Avail+2010+Elkhorn+10+-+2+B%2FR'),jdecode(''),'/65822/106822.html','true',[],'',''],
		['PAGE','71385',jdecode('Not+Avail+2010+Elkhorn+9+-+3+B%2FR'),jdecode(''),'/65822/71385.html','true',[],'',''],
		['PAGE','71406',jdecode('No+avail+2010+Elkhorn+14-+3+B%2FR'),jdecode(''),'/65822/71406.html','true',[],'','']
	],'',''],
	['PAGE','217',jdecode('Lodges'),jdecode(''),'/217/index.html','true',[ 
		['PAGE','15001',jdecode('AESKI+Lodge'),jdecode(''),'/217/15001.html','true',[],'',''],
		['PAGE','5601',jdecode('Ajax+Ski+Lodge'),jdecode(''),'/217/5601.html','true',[],'',''],
		['PAGE','98201',jdecode('Alkira+Ski+Club'),jdecode(''),'/217/98201.html','true',[],'',''],
		['PAGE','15006',jdecode('Amber+Ski+Lodge'),jdecode(''),'/217/15006.html','true',[],'',''],
		['PAGE','5611',jdecode('Avalanche+Alpine+Lodge'),jdecode(''),'/217/5611.html','true',[],'',''],
		['PAGE','5606',jdecode('Whitt+%26+Kandahar'),jdecode(''),'/217/5606.html','true',[],'',''],
		['PAGE','5616',jdecode('Ski+Lib+Alpine+Club'),jdecode(''),'/217/5616.html','true',[],'',''],
		['PAGE','15011',jdecode('Preston+Alpine+Lodge'),jdecode(''),'/217/15011.html','true',[],'',''],
		['PAGE','15016',jdecode('Terama+Ski+Lodge'),jdecode(''),'/217/15016.html','true',[],'',''],
		['PAGE','15021',jdecode('Schuss+Ski+Club'),jdecode(''),'/217/15021.html','true',[],'',''],
		['PAGE','15031',jdecode('Not+Avail+2010+Nutcracker+Ski+Lodge'),jdecode(''),'/217/15031.html','true',[],'','']
	],'',''],
	['PAGE','89722',jdecode('SEASONAL+RENTAL'),jdecode(''),'/89722.html','true',[],'',''],
	['PAGE','227',jdecode('Lift+Tickets'),jdecode(''),'/227.html','true',[],'',''],
	['PAGE','43901',jdecode('Creche+Facilities'),jdecode(''),'/43901.html','true',[],'',''],
	['PAGE','51701',jdecode('Village+Map'),jdecode(''),'/51701.html','true',[],'',''],
	['PAGE','232',jdecode('Tips+%26+Information'),jdecode(''),'/232.html','true',[],'',''],
	['PAGE','78001',jdecode('Booking+Conditions+'),jdecode(''),'/78001.html','true',[],'',''],
	['PAGE','257',jdecode('About+us'),jdecode(''),'/257.html','true',[],'',''],
	['PAGE','112001',jdecode('Booking+Enquiry%2FReservation+'),jdecode(''),'/112001.html','true',[],'','']];
var siteelementCount=63;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='718DF8';
theSitetree.keyvisualId='9714';
theSitetree.keyvisualName='kv_9714.gif';
theSitetree.fontsetId='10659';
theSitetree.graphicsetId='11186';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Dispose',
				paletteFamily: 	'718DF8',
				keyvisualId: 	'9714',
				keyvisualName: 	'kv_9714.gif',
				fontsetId: 		'10659',
				graphicsetId: 	'11186',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89722',
internalId:  '',
customField: '20100411-183958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85701',
internalId:  '',
customField: '20100411-181416'
};
webappMappings['1501']=webappMappings['1501-894054']={
webappId:    '1501',
documentId:  '201',
internalId:  '894054',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100422-200228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20090502-164204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4416',
internalId:  '',
customField: '20100411-180328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20100530-210013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4406',
internalId:  '',
customField: '20100411-180231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4411',
internalId:  '',
customField: '20100411-180258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20100411-180503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62001',
internalId:  '',
customField: '20100411-180546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4436',
internalId:  '',
customField: '20100411-180618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4421',
internalId:  '',
customField: '20100411-180645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4426',
internalId:  '',
customField: '20100411-180712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212',
internalId:  '',
customField: '20100411-180747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20100411-180812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26222',
internalId:  '',
customField: '20100411-180837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20100411-180916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27222',
internalId:  '',
customField: '20100411-180947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27243',
internalId:  '',
customField: '20100411-181016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27264',
internalId:  '',
customField: '20100411-181041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27285',
internalId:  '',
customField: '20100411-181109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27306',
internalId:  '',
customField: '20100411-181133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20100411-181223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27327',
internalId:  '',
customField: '20100411-181249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27348',
internalId:  '',
customField: '20100411-181344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20100411-172933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20100411-181453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28722',
internalId:  '',
customField: '20100411-181523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28743',
internalId:  '',
customField: '20100411-181550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28764',
internalId:  '',
customField: '20100411-181621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28785',
internalId:  '',
customField: '20100411-181958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65801',
internalId:  '',
customField: '20100411-182025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28806',
internalId:  '',
customField: '20100411-182151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65822',
internalId:  '',
customField: '20100315-161713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71301',
internalId:  '',
customField: '20100411-182222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71322',
internalId:  '',
customField: '20100411-182930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65843',
internalId:  '',
customField: '20100411-183000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71343',
internalId:  '',
customField: '20100411-183048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71364',
internalId:  '',
customField: '20100411-183122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71385',
internalId:  '',
customField: '20100411-183205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71406',
internalId:  '',
customField: '20100411-183247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217',
internalId:  '',
customField: '20100315-163007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20100411-183319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5606',
internalId:  '',
customField: '20100422-201727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5611',
internalId:  '',
customField: '20100411-183427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5616',
internalId:  '',
customField: '20100411-183522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100411-183547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15006',
internalId:  '',
customField: '20100411-183614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15011',
internalId:  '',
customField: '20100411-183729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15016',
internalId:  '',
customField: '20100530-205600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15021',
internalId:  '',
customField: '20100411-183837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15031',
internalId:  '',
customField: '20100411-183912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227',
internalId:  '',
customField: '20100225-210554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43901',
internalId:  '',
customField: '20100225-204933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51701',
internalId:  '',
customField: '20090317-181640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20100225-204543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93201',
internalId:  '',
customField: '20100411-182114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78001',
internalId:  '',
customField: '20080815-000000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257',
internalId:  '',
customField: '20050619-172819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98201',
internalId:  '',
customField: '20100411-183350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106801',
internalId:  '',
customField: '20100411-181317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106822',
internalId:  '',
customField: '20100411-182242'
};
webappMappings['7008']=webappMappings['7008-3358']={
webappId:    '7008',
documentId:  '112001',
internalId:  '3358',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112001',
internalId:  '',
customField: '20100411-192442'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INXLBS';
var companyName   = 'Mt+Buller+Accommodation+Service+++++Ph%3A+1800+033+055';
var htmlTitle	  = 'mtbulleraccommodation.com';
var metaKeywords  = 'mt+buller%2C+mt+buller+accommodation%2C+reservations%2C+ski+holiday%2C+snow+holiday%2C+snowboarding%2C+skiing%2C+apartments%2C+hotels%2C+lodges%2C+lift+tickets';
var metaContents  = 'Accommodation+booking+service+for+Mt+Buller%2C+covering+apartments%2C+hotels+lodges.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
