/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],''],
	['PAGE','5052',jdecode('About+us'),jdecode(''),'/5052.html','true',[],''],
	['PAGE','5073',jdecode('Baby+Shower+Favors'),jdecode(''),'/5073.html','true',[],''],
	['PAGE','5115',jdecode('Cartoon+Themed+Gifts'),jdecode(''),'/5115.html','true',[],''],
	['PAGE','5136',jdecode('Custom+Orders'),jdecode(''),'/5136.html','true',[],''],
	['PAGE','5157',jdecode('Customer+Service'),jdecode(''),'/5157.html','true',[],''],
	['PAGE','5178',jdecode('Just+for+Baby+Gifts'),jdecode(''),'/5178.html','true',[],''],
	['PAGE','5094',jdecode('Diaper+Cakes'),jdecode(''),'/5094.html','true',[],''],
	['PAGE','5199',jdecode('Link+Exchange'),jdecode(''),'/5199.html','true',[],''],
	['PAGE','5220',jdecode('Misc+Gifts+%26+PartyFavors'),jdecode(''),'/5220.html','true',[],''],
	['PAGE','5241',jdecode('Our+Policies'),jdecode(''),'/5241.html','true',[],''],
	['PAGE','5262',jdecode('Our+Products'),jdecode(''),'/5262.html','true',[],''],
	['PAGE','5283',jdecode('Our+Store+%2F+Order+Online'),jdecode(''),'/5283.html','true',[],''],
	['PAGE','5304',jdecode('Photo+Albums'),jdecode(''),'/5304.html','true',[],''],
	['PAGE','5325',jdecode('Picture+Frames'),jdecode(''),'/5325.html','true',[],''],
	['PAGE','5346',jdecode('Quinceanera%26%23x27%3Bs%2FWeddings'),jdecode(''),'/5346.html','true',[],''],
	['PAGE','5367',jdecode('Sign+Our+Guestbook'),jdecode(''),'/5367.html','true',[],''],
	['PAGE','5388',jdecode('Signup+4+Our+Newsletter'),jdecode(''),'/5388.html','true',[],''],
	['PAGE','5409',jdecode('Testimonials'),jdecode(''),'/5409.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Sonnemond';
theSitetree.paletteFamily='F9FBBF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10442';
theSitetree.graphicsetId='10816';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F9FBBF';
var theTemplate={
				name: 			'Sonnemond',
				paletteFamily: 	'F9FBBF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10442',
				graphicsetId: 	'10816',
				contentColor: 	'000000',
				contentBGColor: 'F9FBBF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5C5898',
				e_color: 		'ED4747',
				f_color: 		'437D3B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-2142']={
webappId:    '7008',
documentId:  '5136',
internalId:  '2142',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-5367ahw050inl0gx']={
webappId:    '1002',
documentId:  '5367',
internalId:  '5367ahw050inl0gx',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091207-130519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5388',
internalId:  '',
customField: '20091020-112135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20091104-182634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20091114-014451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20091020-110713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20091114-004934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20091026-235631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20091027-000012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20091027-000233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5199',
internalId:  '',
customField: '20091214-220928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5220',
internalId:  '',
customField: '20091026-162514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5241',
internalId:  '',
customField: '20091205-110325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5262',
internalId:  '',
customField: '20091114-005347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5283',
internalId:  '',
customField: '20091020-113102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5304',
internalId:  '',
customField: '20091207-202248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5325',
internalId:  '',
customField: '20091114-013436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5346',
internalId:  '',
customField: '20091201-234257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5367',
internalId:  '',
customField: '20091114-012543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5409',
internalId:  '',
customField: '20091020-112158'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INL0GX';
var companyName   = 'CRAFTS+by+VERONICA';
var htmlTitle	  = 'FAVORS+and+GIFTS%3A+PERSONALIZED+FAVORS+and+GIFTS';
var metaKeywords  = 'favors+and+gifts%2C+personalized+favors+and+gifts%2C+handmade%2C+handcrafted+gifts+and+favors%2C+favor%2C+gift%2C+parties%2C+gift+ideas%2C+black+gifts%2C+african+american+gifts%2C+one-of-a-kind%2C+baby+shower+favors%2C+party+favors%2C+weddings%2C+guestbook%2C+guestbooks%2C+monogramming%2C+gifts%2C+embroidered%2C+embroidery%2C+birthdays%2C+birthday%2C+quinceanera%2C+sweet+sixteen+gifts%2C+bridal+shower%2C+showers%2C+babies%2C+photo+albums%2C+craft%2C+handmade%2C+handcrafted%2C+padded%2C+cartoon+character+themed%2C++bachelor%2C+bridal%2C+personalized%2C+personalization%2C+cookie+jars%2C+treat+jars%2C+children%2C++greeting+cards%2C+all+occasions%2C+bookmarks%2C+scripture+name+cards%2C+unique%2C+gift+jars%2C+photo+frames%2C+embroidery%2C+embroidered%2C+wedding%2C+weddings%2C+photo+albums%2C+picture+frame%2C+picture+frames%2C+cartoon+characters%2C+sewing%2C+alterations%2C+alteration%2C+custom+made%2C+cookies%2C+diaper+cakes%2C+bloomer%2C+bloomer%E2%80%99s%2C+personalized+tags';
var metaContents  = 'Personalized+Favors+and+Gifts+and+many+one-of-a-kind+Favors+and+Gifts.+Unique%2C+all+Occasion%2C+handmade%2C+handcrafted+gifts+and+favors.+';
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();
};
