/* [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(''),'/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+Character+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+Shop+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 localeDef={
  language: 'en',
  country: 'US'
};
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['1002']=webappMappings['1002-5367ahw050inl0gx']={
webappId:    '1002',
documentId:  '5367',
internalId:  '5367ahw050inl0gx',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100830-182321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5388',
internalId:  '',
customField: '20091020-112135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20100904-011218'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20100904-012319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20100829-224657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20100904-012130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5136',
internalId:  '',
customField: '20100904-012450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20100904-012704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5178',
internalId:  '',
customField: '20100904-012958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5199',
internalId:  '',
customField: '20100712-235651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5220',
internalId:  '',
customField: '20100829-231454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5241',
internalId:  '',
customField: '20100823-235058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5262',
internalId:  '',
customField: '20100830-170038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5283',
internalId:  '',
customField: '20100904-011507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5304',
internalId:  '',
customField: '20100824-000413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5325',
internalId:  '',
customField: '20100824-002336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5346',
internalId:  '',
customField: '20100824-003043'
};
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-worker01.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+photo+albums%2C+handcrafted+gifts%2Cfavors%2C+favor%2C+gift%2C+parties%2C+gift+ideas%2C+black+gifts%2C+african+american+gifts%2C+one-of-a-kind+gifts%2C+baby+shower+favors%2C+party+favors%2C+weddings%2C+guestbook%2C+guestbooks%2C+monogramming%2C+gifts%2C+embroidery%2C+birthdays%2C+birthday%2C+quinceanera%2C+sweet+sixteen+gifts%2C+bridal+shower+gift%2C+baby+showers%2C+babies%2C+photo+albums%2C+craft%2C+handmade+picture+frames%2C+handcrafted%2C+padded%2C+cartoon+character+themed%2C++bachelor%2C+bridal%2C+personalized+baby+shower+favors%2C+personalized+wedding+favors%2C+personalized+cookie+jars%2C+pet+treat+jars%2C+children+gifts%2C+baby+gifts%2C+all+occasion+greeting+cards%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%2C+personalized+ribbon%2C+wedding+gifts%2C+wedding+invitations%2C+wedding+favors%2C+wedding+cookies%2C+edible+wedding+favors%2C+tea+bag+favors%2C+african+american+baby+shower+favors%2C+bath+salts%2C+lemonade+favors%2C+hot+chocolate+favors%2C+coffee+favors%2C+lollipop+favors%2C+soap+favors%2C++thank-you+cards%2C+get+well+cards%2C+birthday+cards%2C+barney%2C+barbie%2C+blues+clues%2C+dora+the+explorer%2C+thomas+and+friends%2C+spider+man%2C+winnie+the+pooh%2C+the+princess+and+the+frog%2C+mickey+mouse%2C+minnie+mouse%2C+address+books%2C+easter+gifts%2C+father%27s+day%2C+mother%27s+day%2C+st+patrick%27s+day%2C+christmas%2C+new+years+day%2C+new+years+eve%2C+hannukah%2C+4th+of+july%2C+labor+day%2C+memorial+day%2C+patriotic+gifts%2C+just+because+gifts%2C+ladies+night+out+gifts%2C+girls+night+out%2C+graduation+gifts%2C+high+school+prom%27s%2C+encouragement+cards.+new+baby+cards%2C+anniversary+cards%2C+retirement+cards%2C+wedding+cards%2C+bridal+shower+cards%2C+quinceanera+dresses%2C+quinceanera+favors%2C+children+clothes%2C+children+gifts%2C+wood+name+plaques%2C+kids+wall+plaques%2C+capias%2C+corsages%2C+baby+shower+canlde+favors%2C+craft+picture+frames%2C+handmade+photo+frame%2C+custom+made+picture+frames%2C+baby+shower+games%2C+baby+shower+supplies%2C+baptism+and+christening+gifts%2C+baptism+and+christening+favors%2C+baptism+christening+gowns%2C+backyardigans%2C+betty+boop%2C+lucille+ball%2C+golf%2C+lacrosse%2C+mlb%2C+nfl%2C+lakers%2C+yankees%2C+bratz%2C+disney%2C+looney+tunes%2C+princess%2C+elmo%2C+finding+nemo%2C+hannah+montana%2C+hello+kitty%2C+precious+moments%2C+little+mermaid%2C+noah%27s+ark%2C+sponge+bob%2C+taz%2C+thomas+the+train%2C+tinker+bell%2C+tweety%2C+boutique+children+clothing%2C+kids+clothing%2C+noah%27s+ark%2C+tennis%2C+nurse+picture+frame%2C+doctor+picture+frame%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+%26+bat+mitzvah+favors%2C+holy+1st+communion+favors%2C+sweet+sixteen+favors%2C+mis+quince+anos+favors%2C+mis+quince+anos+gifts%2C+teen+gifts%2C+party+supplies%2C+religious+gifts%2C+scripture+name+cards%2C+scripture+greeting+cards%2C+collegiate+gifts%2C+nhl+gifts%2C+nba+gifts%2C++NY+Giants+gifts%2C+NY+Jets+gifts%2C+dallas+cowboys+gifts%2C+miami+dolphins+gifts';
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();
};
