/* [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','2301',jdecode('Home'),jdecode(''),'/2301.html','true',[],'',''],
	['PAGE','4101',jdecode('About+us'),jdecode(''),'/4101.html','true',[],'',''],
	['PAGE','22001',jdecode('Testimonials'),jdecode(''),'/22001.html','true',[],'',''],
	['PAGE','2352',jdecode('Online+reservation'),jdecode(''),'/2352/index.html','true',[ 
		['PAGE','20101',jdecode('Online+reservation+%28follow+up+page%29'),jdecode(''),'/2352/20101.html','false',[],'','']
	],'',''],
	['PAGE','2625',jdecode('Online+Calendars'),jdecode(''),'/2625.html','true',[],'',''],
	['PAGE','2751',jdecode('Home+%26+Cottage+Tours'),jdecode(''),'/2751/index.html','true',[ 
		['PAGE','8501',jdecode('Lake+front+Vacation+at+it%26%23x27%3Bs+Best%21'),jdecode(''),'/2751/8501.html','true',[],'',''],
		['PAGE','11001',jdecode('Beautiful+Sunsets%2C+Sandy+Beach'),jdecode(''),'/2751/11001.html','true',[],'','']
	],'',''],
	['PAGE','2562',jdecode('Amenities'),jdecode(''),'/2562.html','true',[],'',''],
	['PAGE','6401',jdecode('Location+%26+Distances'),jdecode(''),'/6401.html','true',[],'',''],
	['PAGE','2373',jdecode('Rates'),jdecode(''),'/2373/index.html','true',[ 
		['PAGE','2415',jdecode('Winter+2008++++Nov.+-+March++'),jdecode(''),'/2373/2415.html','true',[],'',''],
		['PAGE','2436',jdecode('Spring+2009++April+%26+May'),jdecode(''),'/2373/2436.html','true',[],'',''],
		['PAGE','2457',jdecode('Summer+2009+June+-+August'),jdecode(''),'/2373/2457.html','true',[],'',''],
		['PAGE','2394',jdecode('Fall+2008++++++++Sept.+%26+Oct.+++'),jdecode(''),'/2373/2394.html','true',[],'','']
	],'',''],
	['PAGE','2835',jdecode('Pontoon+Boat+Rental'),jdecode(''),'/2835.html','true',[],'',''],
	['PAGE','4122',jdecode('Muskegon+area+Attractions'),jdecode(''),'/4122.html','true',[],'',''],
	['PAGE','2667',jdecode('Contact+us'),jdecode(''),'/2667.html','true',[],'',''],
	['PAGE','2730',jdecode('Policies'),jdecode(''),'/2730.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='11098';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11098',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1133583']={
webappId:    '1501',
documentId:  '2301',
internalId:  '1133583',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6401',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['7060']=webappMappings['7060-64a7dd7791f0c23158172c9b4b812a96']={
webappId:    '7060',
documentId:  '8501',
internalId:  '64a7dd7791f0c23158172c9b4b812a96',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-af85927b8217db6c440b022aa3240c10']={
webappId:    '7060',
documentId:  '11001',
internalId:  'af85927b8217db6c440b022aa3240c10',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20080421-124811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20080421-131011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20080421-131100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2352',
internalId:  '',
customField: '20080421-131222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20070907-203419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2625',
internalId:  '',
customField: '20080421-131544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2751',
internalId:  '',
customField: '20080421-125952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20070910-113904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20070910-113926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2562',
internalId:  '',
customField: '20080421-130045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20080421-130126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20080421-130204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2415',
internalId:  '',
customField: '20080921-182302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2436',
internalId:  '',
customField: '20090302-125318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2457',
internalId:  '',
customField: '20081020-184522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2394',
internalId:  '',
customField: '20080921-180430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2835',
internalId:  '',
customField: '20080421-130623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4122',
internalId:  '',
customField: '20080421-130657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2667',
internalId:  '',
customField: '20080421-130805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2730',
internalId:  '',
customField: '20080421-130942'
};
webappMappings['7008']=webappMappings['7008-7902']={
webappId:    '7008',
documentId:  '2352',
internalId:  '7902',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEUJK';
var companyName   = 'Sandy+Shores+of+Twin+Lake%2C+LLC.++Muskegon%2C+Michigan++USA';
var htmlTitle	  = 'Muskegon+Vacation+Rentals%2C+Sandy+Shores+of+Twin+Lake';
var metaKeywords  = 'Muskegon+Vacation+Rentals%2C+Vacation+Rentals%2C+Michigan+Vacation+Rentals%2C+Muskegon%2C+West+Michigan%2C+Lake+Michigan%2C+Sandy+Shores+of+Twin+Lake%2C+Twin+Lake%2C+Michigan+Adventure%2C+Fall+colors%2C+Michigan+Getaway%2C+romantic+weekend%2C+girls+getaway%2C+girls+weekend%2C+Whitehall%2C+Montaque%2C+Grand+Haven%2C+Vacation+Homes%2C+Cottages%2C+Michigan+Vacation%2C+Muskegon+Vacation%2C+Vacation%2C+Up+North+Vacation%2C+Michigan%2C+Sand+Dunes%2C+Inland+Lake%2C+Private+Beach%2C+Private+Home%2C+Rent+a+Home%2C+Rent+a+Cottage%2C+getaway%2C++Fall+Color+Tour%2C+Lodging+in+Muskegon%2C+Lodging%2C+All+Sports+Lake%2C+Vacation+Home%2C+Home+for+rent';
var metaContents  = '';
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();
};
