/* [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','5012',jdecode('Home'),jdecode(''),'/5012.html','true',[],'',''],
	['PAGE','17212',jdecode('E-mail+Us'),jdecode(''),'/17212.html','true',[],'',''],
	['PAGE','17712',jdecode('Linen+Services'),jdecode(''),'/17712.html','true',[],'',''],
	['PAGE','5105',jdecode('Packages+and+Pricing'),jdecode(''),'/5105/index.html','true',[ 
		['PAGE','5126',jdecode('Premium+Packages'),jdecode(''),'/5105/5126.html','true',[],'',''],
		['PAGE','5147',jdecode('Budget+Packages'),jdecode(''),'/5105/5147.html','true',[],'',''],
		['PAGE','5168',jdecode('Funeral+%2F+Overpass'),jdecode(''),'/5105/5168.html','true',[],'',''],
		['PAGE','5189',jdecode('Breakfast+%2F+Brunch'),jdecode(''),'/5105/5189.html','true',[],'',''],
		['PAGE','5210',jdecode('Box+Lunches'),jdecode(''),'/5105/5210.html','true',[],'',''],
		['PAGE','9112',jdecode('Picnics'),jdecode(''),'/5105/9112.html','true',[],'','']
	],'',''],
	['PAGE','5231',jdecode('Scheduling+a+Taste+Test+'),jdecode(''),'/5231.html','true',[],'',''],
	['PAGE','5252',jdecode('Helpful+Links'),jdecode(''),'/5252/index.html','true',[ 
		['PAGE','18212',jdecode('Wedding+Planners'),jdecode(''),'/5252/18212.html','true',[],'',''],
		['PAGE','26712',jdecode('Vendors+'),jdecode(''),'/5252/26712.html','true',[],'','']
	],'',''],
	['PAGE','5273',jdecode('Venues'),jdecode(''),'/5273/index.html','true',[ 
		['PAGE','15017',jdecode('Halls'),jdecode(''),'/5273/15017.html','true',[],'',''],
		['PAGE','15038',jdecode('Parks'),jdecode(''),'/5273/15038.html','true',[],'','']
	],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Urban';
theSitetree.paletteFamily='B95ACA';
theSitetree.keyvisualId='12175';
theSitetree.keyvisualName='kv_12175.jpg';
theSitetree.fontsetId='33332';
theSitetree.graphicsetId='14200';
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: 			'Urban',
				paletteFamily: 	'B95ACA',
				keyvisualId: 	'12175',
				keyvisualName: 	'kv_12175.jpg',
				fontsetId: 		'33332',
				graphicsetId: 	'14200',
				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:'Palatino Linotype, Book Antiqua, Palatino, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5012',
internalId:  '',
customField: '20091226-010659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9112',
internalId:  '',
customField: '20091226-010135'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5012',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5105',
internalId:  '',
customField: '20091225-230102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5126',
internalId:  '',
customField: '20091226-002155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5147',
internalId:  '',
customField: '20091226-002106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5168',
internalId:  '',
customField: '20091226-002258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5189',
internalId:  '',
customField: '20091226-003427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5210',
internalId:  '',
customField: '20091226-005015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5231',
internalId:  '',
customField: '20100108-215459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20100115-024700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5273',
internalId:  '',
customField: '20100124-232720'
};
webappMappings['7008']=webappMappings['7008-14091']={
webappId:    '7008',
documentId:  '17212',
internalId:  '14091',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17212',
internalId:  '',
customField: '20100108-022938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17712',
internalId:  '',
customField: '20100111-223947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15017',
internalId:  '',
customField: '20100113-151044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15038',
internalId:  '',
customField: '20100124-225454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18212',
internalId:  '',
customField: '20100128-011526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26712',
internalId:  '',
customField: '20100115-024625'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHHQA';
var companyName   = 'A%2B+Catering+219-980-1900+or+219-769-3663';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
