/* [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','5001',jdecode('Home'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','5052',jdecode('About+us'),jdecode(''), jdecode('%2F5052.html'), 'true',[],'',''],
	['PAGE','5073',jdecode('Baby+Shower+Favors+%26+Gifts'),jdecode(''), jdecode('%2F5073.html'), 'true',[],'',''],
	['PAGE','5367',jdecode('Baptisms+%26+Christenings'),jdecode(''), jdecode('%2F5367.html'), 'true',[],'',''],
	['PAGE','5115',jdecode('Cartoon+Character+Gifts'),jdecode(''), jdecode('%2F5115.html'), 'true',[],'',''],
	['PAGE','5136',jdecode('Custom+Orders'),jdecode(''), jdecode('%2F5136.html'), 'true',[],'',''],
	['PAGE','5157',jdecode('Customer+Service'),jdecode(''), jdecode('%2F5157.html'), 'true',[],'',''],
	['PAGE','5178',jdecode('Just+for+Baby+Gifts'),jdecode(''), jdecode('%2F5178.html'), 'true',[],'',''],
	['PAGE','5094',jdecode('Diaper+Cakes'),jdecode(''), jdecode('%2F5094.html'), 'true',[],'',''],
	['PAGE','5388',jdecode('Kitchen+Decor+%26+More+'),jdecode(''), jdecode('%2F5388.html'), 'true',[],'',''],
	['PAGE','5199',jdecode('Link+Exchange'),jdecode(''), jdecode('%2F5199.html'), 'true',[],'',''],
	['PAGE','5220',jdecode('Misc+Gifts+for+You+%21'),jdecode(''), jdecode('%2F5220.html'), 'true',[],'',''],
	['PAGE','5241',jdecode('Our+Policies'),jdecode(''), jdecode('%2F5241.html'), 'true',[],'',''],
	['PAGE','5262',jdecode('Our+Products'),jdecode(''), jdecode('%2F5262.html'), 'true',[],'',''],
	['PAGE','5283',jdecode('Our+Store+%2F+Online+Orders'),jdecode(''), jdecode('%2F5283.html'), 'true',[],'',''],
	['PAGE','5304',jdecode('Photo+Albums'),jdecode(''), jdecode('%2F5304.html'), 'true',[],'',''],
	['PAGE','5325',jdecode('Picture+Frames'),jdecode(''), jdecode('%2F5325.html'), 'true',[],'',''],
	['PAGE','5346',jdecode('Quinceanera%26%23x27%3Bs+%2F+Weddings'),jdecode(''), jdecode('%2F5346.html'), 'true',[],'',''],
	['PAGE','5409',jdecode('Testimonials'),jdecode(''), jdecode('%2F5409.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 localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7P'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sonnemond',
				paletteFamily: 	'F9FBBF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10442',
				graphicsetId: 	'10816',
				contentColor: 	'000000',
				contentBGColor: 'F9FBBF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20120107-163900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5388',
internalId:  '',
customField: '20120107-165030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20120107-164037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20120107-164152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20120107-164924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20120107-164413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20120107-164529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20120107-164704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20120107-164816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5199',
internalId:  '',
customField: '20120107-165145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5220',
internalId:  '',
customField: '20111012-233122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5241',
internalId:  '',
customField: '20120107-165532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5262',
internalId:  '',
customField: '20120107-165651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5283',
internalId:  '',
customField: '20120107-165836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5304',
internalId:  '',
customField: '20120107-165946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5325',
internalId:  '',
customField: '20120107-170059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5346',
internalId:  '',
customField: '20120107-170214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5367',
internalId:  '',
customField: '20120107-164308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5409',
internalId:  '',
customField: '20120107-170342'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INL0GX';
var companyName   = 'CRAFTS+by+VERONICA';
var htmlTitle	  = 'PERSONALIZED+GIFTS+for+YOU+%21++';
var metaKeywords  = 'favor%2C+gift%2C+personalized+favor%2C+personalized+gift%2C+handmade+photo+album%2C+handcrafted+photo+album%2C+handcrafted+gift%2C+parties%2C+party%2C+gift+ideas%2C+gift+idea%2C+black+gift%2C+african+american+gift%2C+one+of+a+kind+gift%2C+baby+shower+favor%2C+party+favors%2C+weddings%2C+wedding%2C+guestbooks+with+pen%2C+monogrammed+gift%2C+monogrammed+gift%2C+embroidery%2C+birthdays%2C+birthday%2C+quinceanera+gift+idea%2C+quinceanera+party%2C+quinceanera+party+supplies%2C+sweet+sixteen+party+supplies%2C+sweet+sixteen+birthday+party+gift%2C+bridal+shower+gift+ideas%2C+baby+showers%2C+baby+photo+albums%2C+crafts%2C+handmade+picture+frames%2C+handmade+picture+frames%2C+handcrafted+gifts%2C+padded+photo+albums%2C+cartoon+character+themed+gifts%2C+personalized+baby+shower+favors%2C+personalized+baby+shower+favors%2C+personalized+wedding+favors%2C+personalized+cookie+jars%2C+personalized+treat+jars%2C+personalized+children+gifts%2C+personalized+baby+gifts%2C+all+occasion+greeting+cards%2C+personalized+bookmarks%2C+customade+bookmarks%2C+misc+gifts+for+you%2C+scripture+name+cards%2C+unique+handmade+gifts%2C+gifts+in+a+jar%2C+photo+frames%2C+embroidered+gift%2C+photo+albums%2C+picture+frame%2C+picture+frames%2C+alterations%2C+alteration%2C+baby+shower+cookie%2C+wedding+cookie%2C+birthday+party+cookie%2C+1st+birthday+lollipop%2C+bloomer+baby+diaper+cakes%2C+bloomer%E2%80%99s+diaper+cakes%2C+personalized+tags%2C+personalized+ribbon%2C+personalized+stickers%2C+wedding+gifts%2C+wedding+invitations%2C+wedding+favors%2C+wedding+cookies%2C+edible+wedding+favor%2C+edible+favors%2C+tea+bag+favors%2C+african+american+favors%2C+bath+salt+favors%2C+lemonade+favor%2C+hot+chocolate+favor%2C+coffee+favor%2C+lollipop+favor%2C+soap+favor%2C+thank+you+card%2C+get+well+card%2C+birthday+card%2C+sympathy+card%2C+encouragement+card%2C+just+because+card%2C+barney+gift%2C+barbie+gift%2C+blues+clues+gift%2C+dora+the+explorer+gift%2C+thomas+and+friends+gift%2C+spider+man+gift%2C+winnie+the+pooh+gift%2C+princess+and+the+frog+gift%2C+mickey+mouse+gift%2C+minnie+mouse+gift%2C+fabric+covered+address+book%2C+journals%2C+personalized+telephone+address+books%2C+just+because+gifts%2C+easter+gifts%2C+fathers+day+gift%2C+mothers+day+gift%2C+st+patrick%27s+day+gift%2C+christmas+gift%2C+new+years+favor%2C+new+years+gift%2C+hannukah+gift%2C+4th+of+july+decoration%2C+labor+day+decoration%2C+memorial+day+decoration%2C+patriotic+gift%2C+girls+night+out+gift%2C+graduation+gift%2C+encouragement+card.+new+baby+card%2C+anniversary+card%2C+retirement+card%2C+wedding+card%2C+bridal+shower+card%2C+quinceanera+favors%2C+children+clothes%2C+children+gifts%2C+wood+name+plaque%2C+kids+wall+plaque%2C+baby+shower+capias%2C+wedding+capias%2C+baby+shower+candle+favor%2C+handmade+photo+frame%2C+custom+made+picture+frames%2C+baby+shower+games%2C+baby+shower+supplies%2C+baptism+gift%2C+christening+gift%2C+baptism+favor%2C+christening+favor%2C+baptism+christening+gown%2C+backyardigans+gift%2C+betty+boop+gift%2C+lucille+ball+gift%2C+golfer+gift%2C+lacrosse+photo+album%2C+lacrosse+picture+frame%2C+mlb+photo+album%2C+mlb+picture+frame%2C+nfl+photo+album%2C+nfl+picture+frame%2C+yankees+mug%2C+yankees+photo+album%2C+yankees+picture+frame%2C+nfl+gift%2C+mlb+gift%2C+bratz+gift%2C+disney+gift%2C+looney+tunes+gift%2C+princess+gift%2C+elmo+gift%2C++finding+nemo+gift%2C+hannah+montana+gift%2C+hello+kitty+gift%2C+precious+moments+gift%2C+little+mermaid+gift%2C+noahs+ark+gift%2C+sponge+bob+gift%2C+tasmanian+devil+gift%2C+thomas+the+train+gift%2C+tinker+bell+gift%2C+tweety+bird+gift%2C+boutique+children+clothing%2C+kids+clothing%2C+tennis+gift%2C+nurse+gift%2C+doctor+gift%2C+baby+bibs%2C+baby+blankets%2C+baby+towels%2C+personalized+baby+gifts%2C+unique+gifts%2C+personalized+party+favors%2C+monogrammed+gifts%2C+personalized+photo+gifts%2C+just+for+a+baby+gifts%2C+adult+party+favors%2C+retirement+favors%2C+bar+mitzvah+favor%2C+bat+mitzvah+favor%2C+holy+1st+communion+favor%2C+sweet+sixteen+favor%2C+mis+quince+anos+favor%2C+mis+quince+anos+gift%2C+teenager+gift%2C+party+supplies%2C+religious+gifts%2C+scripture+name+card%2C+scripture+greeting+card%2C+collegiate+gift%2C+NY+Giants+gift%2C+NY+Jets+gift%2C+dallas+cowboys+gift%2C+miami+dolphins+gift%2C+handmade+photo+albums%2C+thomas+the+train+and+friends+gift%2C+christmas+gifts%2C+christmas+photo+albums%2C+christmas+picture+frames%2C+baby+memory+photo+albums';
var metaContents  = 'Personalized+Gifts+for+you+and+Favors+too.+Many+one+of+a+kind+Gifts+%26+Favors+for+Any+Event%2C+Occasion+or+Holiday+%21+We+provide+Unique+Gifts+and+Favors+for+all+Occasions%2C+your+gift+or+favors+should+represent+what+the+relationship+means+to+you%2C+which+is+why+many+of+our+gifts+and+favors+are+handmade+or+handcrafted.+%22Gifts+for+you+and+your+friends+too+....+there%27s+no+limit+to+what+we+can+do+%21%22+';
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();
};

