/* [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 theSitetree=[ 
	['PAGE','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','573',jdecode('Services+-+Guest'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','594',jdecode('Lei+Greeting+at+Airport'),jdecode(''),'/573/594.html','true',[],''],
		['PAGE','615',jdecode('Fill+Fridge%2FStock+Shelves'),jdecode(''),'/573/615.html','true',[],''],
		['PAGE','636',jdecode('Fruit%2C+Flowers+%26+Gift+Baskets'),jdecode(''),'/573/636.html','true',[],''],
		['PAGE','678',jdecode('Interim+Cleaning+Service'),jdecode(''),'/573/678.html','true',[],''],
		['PAGE','699',jdecode('Menu+Planning+%26+Prep'),jdecode(''),'/573/699.html','true',[],''],
		['PAGE','720',jdecode('Catering'),jdecode(''),'/573/720.html','true',[],''],
		['PAGE','741',jdecode('Live+Entertainment'),jdecode(''),'/573/741.html','true',[],''],
		['PAGE','762',jdecode('Ship+Back+Service'),jdecode(''),'/573/762.html','true',[],''],
		['PAGE','5801',jdecode('Car+Wash%2FDetail'),jdecode(''),'/573/5801.html','true',[],''],
		['PAGE','657',jdecode('Booking+Activities'),jdecode(''),'/573/657.html','true',[],''],
		['PAGE','6401',jdecode('Combo+Services%2FLong+Term'),jdecode(''),'/573/6401.html','true',[],'']
	],''],
	['PAGE','783',jdecode('Services+-+Home+Owner'),jdecode(''),'/783/index.html','true',[ 
		['PAGE','804',jdecode('Interim+Cleaning+Service'),jdecode(''),'/783/804.html','true',[],''],
		['PAGE','40201',jdecode('Fruit%2C+Flowers+%26+Gift+Baskets'),jdecode(''),'/783/40201.html','true',[],''],
		['PAGE','825',jdecode('Wait+Service'),jdecode(''),'/783/825.html','true',[],''],
		['PAGE','34001',jdecode('Home+Supply+Shopping'),jdecode(''),'/783/34001.html','true',[],''],
		['PAGE','867',jdecode('Vacant+Check+Up'),jdecode(''),'/783/867.html','true',[],''],
		['PAGE','5822',jdecode('Car+Wash%2FDetail'),jdecode(''),'/783/5822.html','true',[],''],
		['PAGE','846',jdecode('Home+Organization+-+De-Clutter%21'),jdecode(''),'/783/846.html','true',[],'']
	],''],
	['PAGE','888',jdecode('Services+-+Rental+Agent'),jdecode(''),'/888/index.html','true',[ 
		['PAGE','909',jdecode('Interim+Cleaning+Service'),jdecode(''),'/888/909.html','true',[],''],
		['PAGE','40222',jdecode('Fruit%2C+Flowers+and+Gift+Baskets'),jdecode(''),'/888/40222.html','true',[],''],
		['PAGE','930',jdecode('Wait+Service'),jdecode(''),'/888/930.html','true',[],''],
		['PAGE','34022',jdecode('Home+Supply+Shopping'),jdecode(''),'/888/34022.html','true',[],''],
		['PAGE','951',jdecode('Vacant+Check+Up'),jdecode(''),'/888/951.html','true',[],'']
	],''],
	['PAGE','972',jdecode('Fees'),jdecode(''),'/972.html','true',[],''],
	['PAGE','1014',jdecode('Contact+Us'),jdecode(''),'/1014.html','true',[],''],
	['PAGE','993',jdecode('Links+%26+Local+Info'),jdecode(''),'/993.html','true',[],''],
	['PAGE','29922',jdecode('Fun+Photos'),jdecode(''),'/29922.html','true',[],''],
	['PAGE','29901',jdecode('A+Little+History'),jdecode(''),'/29901.html','true',[],''],
	['PAGE','4006',jdecode('Guestbook'),jdecode(''),'/4006/index.html','true',[ 
		['PAGE','4001',jdecode('Read+Guestbook'),jdecode(''),'/4006/4001.html','false',[],'']
	],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='B650B7';
theSitetree.keyvisualId='5833';
theSitetree.keyvisualName='kv_5833.jpg';
theSitetree.fontsetId='11095';
theSitetree.graphicsetId='11870';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'B650B7',
				keyvisualId: 	'5833',
				keyvisualName: 	'kv_5833.jpg',
				fontsetId: 		'11095',
				graphicsetId: 	'11870',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20080517-165721'
};
webappMappings['1002']=webappMappings['1002-4006AHW050INEZRI']={
webappId:    '1002',
documentId:  '4006',
internalId:  '4006AHW050INEZRI',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20081004-191146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20080517-165928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20080515-014724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20080520-224049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20080410-175223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20080410-173004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20080410-173055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20080410-173803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20080410-173932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20080410-174034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20080521-001713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20080410-174201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20080517-191726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20080517-191920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40201',
internalId:  '',
customField: '20080520-224135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '825',
internalId:  '',
customField: '20080415-170228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20080414-174415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '867',
internalId:  '',
customField: '20080410-174748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20080410-174848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '846',
internalId:  '',
customField: '20080410-174920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '888',
internalId:  '',
customField: '20080415-165323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '909',
internalId:  '',
customField: '20080516-193910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40222',
internalId:  '',
customField: '20080520-224218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '930',
internalId:  '',
customField: '20080415-165249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34022',
internalId:  '',
customField: '20080415-165355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '951',
internalId:  '',
customField: '20080415-165455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '972',
internalId:  '',
customField: '20080516-183431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1014',
internalId:  '',
customField: '20080610-165255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '993',
internalId:  '',
customField: '20081004-192742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29922',
internalId:  '',
customField: '20080817-175945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20080515-012643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4006',
internalId:  '',
customField: '20080817-175727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4001',
internalId:  '',
customField: '20080317-165007'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEZRI';
var companyName   = 'Kauai+Vacation+Concierge+Services+++++++++++++++++www.KauaiVCS.com';
var htmlTitle	  = 'www.kauaivcs.com';
var metaKeywords  = 'Kauai%2C+Kauai+Vacation%2C+Kauai+Vacation+Rental%2C+Concierge%2C+Concierge+Services%2C+grocery+shopping%2C+errands%2C+catering%2C+cleaning%2C+808.639.KVCS%2C+KauaiVCS.com';
var metaContents  = 'Kauai+Vacation+Concierge+Service%2C+Kauai%2C+Kauai+Vacation%2C+Kauai+Vacation+Rental%2C+Concierge%2C+Concierge+Services%2C+grocery+shopping%2C+errands%2C+catering%2C+cleaning%2C++KauaiVCS.com%2C+';
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();
};
