/* [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','4801',jdecode('Home'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','6464',jdecode('About+Us'),jdecode(''),'/6464.html','true',[],'',''],
	['PAGE','7401',jdecode('Request+a+Consultation'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','25323',jdecode('Invitations'),jdecode(''),'/25323/index.html','true',[ 
		['PAGE','25344',jdecode('Wedding'),jdecode(''),'/25323/25344.html','true',[],'',''],
		['PAGE','25386',jdecode('%26+more'),jdecode(''),'/25323/25386.html','true',[],'','']
	],'',''],
	['PAGE','44834',jdecode('Simply+Sensible'),jdecode(''),'/44834.html','true',[],'',''],
	['PAGE','14823',jdecode('Events'),jdecode(''),'/14823.html','true',[],'',''],
	['PAGE','22523',jdecode('Recommended+Vendors'),jdecode(''),'/22523.html','true',[],'',''],
	['PAGE','35534',jdecode('Current+Promotions'),jdecode(''),'/35534.html','true',[],'',''],
	['PAGE','33534',jdecode('Helpful+Tips'),jdecode(''),'/33534/index.html','true',[ 
		['PAGE','33555',jdecode('Wedding+Etiquette'),jdecode(''),'/33534/33555.html','true',[],'',''],
		['PAGE','33576',jdecode('Things+to+Do'),jdecode(''),'/33534/33576.html','true',[],'',''],
		['PAGE','37434',jdecode('Seating+Your+Guests'),jdecode(''),'/33534/37434.html','true',[],'','']
	],'',''],
	['PAGE','7601',jdecode('Contact+Us'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','7422',jdecode('FAQ'),jdecode(''),'/7422.html','true',[],'',''],
	['PAGE','21523',jdecode('Guestbook'),jdecode(''),'/21523.html','true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Grid';
theSitetree.paletteFamily='99CE81';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16762';
theSitetree.graphicsetId='12261';
theSitetree.contentColor='31641A';
theSitetree.contentBGColor='99CE81';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grid',
				paletteFamily: 	'99CE81',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16762',
				graphicsetId: 	'12261',
				contentColor: 	'31641A',
				contentBGColor: '99CE81',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20100826-185606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44834',
internalId:  '',
customField: '20100301-205621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6464',
internalId:  '',
customField: '20100826-185639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33576',
internalId:  '',
customField: '20100204-211456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33555',
internalId:  '',
customField: '20100815-161741'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-11818']={
webappId:    '7008',
documentId:  '7401',
internalId:  '11818',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100815-155250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100314-215945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33534',
internalId:  '',
customField: '20090927-215045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20091202-182737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14823',
internalId:  '',
customField: '20100815-155609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25344',
internalId:  '',
customField: '20100826-184956'
};
webappMappings['1002']=webappMappings['1002-21523aendu0ine57b']={
webappId:    '1002',
documentId:  '21523',
internalId:  '21523aendu0ine57b',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25323',
internalId:  '',
customField: '20100815-155416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21523',
internalId:  '',
customField: '20090315-212036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22523',
internalId:  '',
customField: '20100131-210150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25386',
internalId:  '',
customField: '20100124-222627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37434',
internalId:  '',
customField: '20090927-220012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35534',
internalId:  '',
customField: '20100509-202437'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE57B';
var companyName   = '%22We+Bring+Your+Visions+to+Life%22';
var htmlTitle	  = 'Tutti+Belli+Invites';
var metaKeywords  = 'InvitationsCarlson+CraftBirchcraft+studiosNu+ArtMcPhersonstiny+printsWedding+Paper+DivasInvitation+ConsultantsMy+Wedding+FavorsBeau+CoupCustom+InvitationsCreative+Favors+Favor+Cakes+Danbury+Connecticut+Westchester+';
var metaContents  = 'Bringing+Your+Vision+to+Life%21+Tutti+Belli+Invites+carries+only+the+finest+products+and+delivers+reliable+service+at+an+affordable+price.+If+you+can+dream+it%2C+we+can+make+it.++Customer+Satisfaction+is+our+%231+Priority%21+';
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();
};

