/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','852',jdecode('About+us'),jdecode(''),'/852.html','true',[],''],
	['PAGE','873',jdecode('Products'),jdecode(''),'/873.html','true',[],''],
	['PAGE','39240',jdecode('BabyLegs'),jdecode(''),'/39240.html','true',[],''],
	['PAGE','18101',jdecode('Body+Suits'),jdecode(''),'/18101.html','true',[],''],
	['PAGE','915',jdecode('Baby+T%26%23x27%3Bs+and+Tanks'),jdecode(''),'/915.html','true',[],''],
	['PAGE','936',jdecode('Blankies'),jdecode(''),'/936.html','true',[],''],
	['PAGE','40487',jdecode('Pettiskirts'),jdecode(''),'/40487.html','true',[],''],
	['PAGE','40202',jdecode('Kids+T%26%23x27%3Bs+'),jdecode(''),'/40202.html','true',[],''],
	['PAGE','38406',jdecode('Cloth+Diapers'),jdecode(''),'/38406.html','true',[],''],
	['PAGE','894',jdecode('Baby+Gift+Sets'),jdecode(''),'/894.html','true',[],''],
	['PAGE','22301',jdecode('Burp+Rags'),jdecode(''),'/22301.html','true',[],''],
	['PAGE','11601',jdecode('Gifts'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','28101',jdecode('Cards'),jdecode(''),'/28101.html','true',[],''],
	['PAGE','30301',jdecode('Suitcases'),jdecode(''),'/30301.html','true',[],''],
	['PAGE','978',jdecode('Contact'),jdecode(''),'/978.html','true',[],''],
	['PAGE','5406',jdecode('Guestbook'),jdecode(''),'/5406/index.html','true',[ 
		['PAGE','5401',jdecode('Read+Guestbook'),jdecode(''),'/5406/5401.html','false',[],'']
	],''],
	['PAGE','17201',jdecode('Links'),jdecode(''),'/17201.html','true',[],''],
	['PAGE','18122',jdecode('Shipping%2FPayment'),jdecode(''),'/18122.html','true',[],''],
	['PAGE','19901',jdecode('Blog+Board'),jdecode(''),'/19901.html','true',[],''],
	['PAGE','38210',jdecode('Policies'),jdecode(''),'/38210.html','true',[],''],
	['PAGE','38564',jdecode('Go+Baby+Go+Products'),jdecode(''),'/38564.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='669999';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='440';
theSitetree.graphicsetId='497';
theSitetree.contentColor='4D4D4D';
theSitetree.contentBGColor='a1c6c6';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'669999',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'440',
				graphicsetId: 	'497',
				contentColor: 	'4D4D4D',
				contentBGColor: 'a1c6c6',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'a1c6c6',
				b_color: 		'669999',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20091128-163715'
};
webappMappings['1002']=webappMappings['1002-5406AHW050INEWUJ']={
webappId:    '1002',
documentId:  '5406',
internalId:  '5406AHW050INEWUJ',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-36a44e33a1d680b7aab4ddaf93fe5fe3']={
webappId:    '7060',
documentId:  '38564',
internalId:  '36a44e33a1d680b7aab4ddaf93fe5fe3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20091017-005143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20081007-135031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20080510-170109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20090825-163126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20090811-160252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20091017-005707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20090104-015600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20091016-141714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20090104-015902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20070609-012622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38406',
internalId:  '',
customField: '20091128-163423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40487',
internalId:  '',
customField: '20091017-004430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '978',
internalId:  '',
customField: '20090104-020931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5406',
internalId:  '',
customField: '20081007-134252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20061119-213343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20070206-163200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18122',
internalId:  '',
customField: '20080128-180529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20090825-163323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38210',
internalId:  '',
customField: '20080905-132052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38564',
internalId:  '',
customField: '20090104-020353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39240',
internalId:  '',
customField: '20091128-154154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40202',
internalId:  '',
customField: '20091123-174342'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEWUJ';
var companyName   = 'Go+Baby+Go+';
var htmlTitle	  = 'Go+Baby+Go%21++Retro+Baby+Gift+Sets%2C+Retro+Onesies%2C+Ts%2C+and+Burp+Rags%2C+Retro+Toys%2C+Pedal+Cars%2C+Tricycles+and+more.';
var metaKeywords  = 'Go+Baby+Go%2C+Retro+Baby+clothes%2C+Baby+Gift+Sets%2C+Baby+Outfits%2C+Baby+T-shirts%2C+Quilts%2C+Blankets%2C+Retro+Toys%2C+Vintage+Toys%2C+Stacking+Suitcases%2C+Bibs%2C+Pedal+Cars%2C+Retro+Cards%2C+Baby+Gift+Cards%2C+Toddler+Gift+sets%2C+Retro+Christmas%2C+Baby+Christmas%2C+Boutique+clothing%2C+Cars%2C+Onesies%2C+Caps%2C+purses%2C+childrens+totes%2C+unique+childrens+gifts%2C+unique+childrens+toys%2C+retro+designs%2C+baby+surfer%2C+Hula+girl%2C+surfer+cards%2C+surf+gifts%2C+surfboard%2C+Minky+Blankets%2C+Minky+Dot%2C+Minky+Rosebuds%2C+Train+cases%2C+dress+up%2C+Pedal+car+frames%2C+Pedal+car+photo+album%2C+pedal+car+gift+sets%2C+bowling+blanket%2C+bowling+onesie%2C+pedal+car+onesie%2C+go+baby+go%2C+go+baby+retro%2C+ABC+flashcards%2C+cowgirls%2C+cowgirl+gift+sets%2C+cowboy+hats%2C+wall+art%2C+checkers%2C+unique+baby+gifts%2C+Cloth+Diapers%2C+bumGenius%2C+Ride+Baby+Ride%2C+surf+baby%2C+longboard+baby%2C+bicycle+baby+bodysuit%2C+Christmas+Onesies%2C+Christmas+Bodysuits%2C+Baby+Christmas%2C+Joy+Onesie%2C+Peace+Onesie%2C+Child+of+God%2C+BabyLegs%2C+Baby+Long+Sleeved+Ts%2C+Leg+Warmers%2C+Gods+Girl+T-shirt%2C+Baby+T-shirts%2C+Kids+Retro+T-shirts%2C+Dance+Girl+Dance%2C+Dance+Baby%2C+Pettiskirts%2C+Mini+Pettiskirts%2C+Baby+Pettiskirts%2C+Halloween+Retro+Onesies';
var metaContents  = 'Go+Baby+Go%2C+Retro+Baby+clothes%2C+Baby+Gift+Sets%2C+Baby+Outfits%2C+Baby+T-shirts%2C+Quilts%2C+Blankets%2C+Retro+Toys%2C+Vintage+Toys%2C+Stacking+Suitcases%2C+Bibs%2C+Pedal+Cars%2C+Retro+Cards%2C+Baby+Gift+Cards%2C+Toddler+Gift+sets%2C+Retro+Christmas%2C+Baby+Hula+girl%2C+Baby+surfer%2C+Cloth+Diapers%2C+bumGenius%2C+Ride+Baby+Ride%2C+Retro+Bike%2C+Surfer+baby%2C+Longboard+baby%2C+Motorcycle+Baby%2C+Bowling+Baby%2C+Joy+Baby%2C+Child+of+God+Ts%2C+Minky+Blankets%2C+BabyLegs%2C+Gods+Girl%2C+Dance+Girl+Dance+Onesies+and+T-shirts%2C+Pettiskirts';
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();
};
