/* [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','7301',jdecode('Home'),jdecode(''),'/7301.html','true',[],'',''],
	['PAGE','41501',jdecode('Store+Tour'),jdecode(''),'/41501.html','false',[],'',''],
	['PAGE','5943',jdecode('Store+Directions'),jdecode(''),'/5943.html','true',[],'',''],
	['PAGE','8001',jdecode('Store+Hours'),jdecode(''),'/8001.html','true',[],'',''],
	['PAGE','41301',jdecode('New+Arrivals'),jdecode(''),'/41301.html','false',[],'',''],
	['PAGE','90101',jdecode('Tops'),jdecode(''),'/90101.html','false',[],'',''],
	['PAGE','90122',jdecode('Skirts+'),jdecode(''),'/90122.html','false',[],'',''],
	['PAGE','5452',jdecode('Liquid+Blue+T-Shirts'),jdecode(''),'/5452.html','false',[],'',''],
	['PAGE','5985',jdecode('Tie+Dyes'),jdecode(''),'/5985.html','false',[],'',''],
	['PAGE','9106',jdecode('Patchwork+'),jdecode(''),'/9106.html','false',[],'',''],
	['PAGE','9190',jdecode('Tapestries'),jdecode(''),'/9190.html','false',[],'',''],
	['PAGE','6111',jdecode('Footwear'),jdecode(''),'/6111.html','false',[],'',''],
	['PAGE','6153',jdecode('Handbags+%26+Belts'),jdecode(''),'/6153/index.html','false',[ 
		['PAGE','65801',jdecode('Belts'),jdecode(''),'/6153/65801.html','true',[],'','']
	],'',''],
	['PAGE','123501',jdecode('Eye+Wear'),jdecode(''),'/123501.html','false',[],'',''],
	['PAGE','6132',jdecode('Jewelry'),jdecode(''),'/6132.html','false',[],'',''],
	['PAGE','9211',jdecode('Embroidery'),jdecode(''),'/9211.html','false',[],'',''],
	['PAGE','71101',jdecode('Handmade+Items'),jdecode(''),'/71101.html','false',[],'',''],
	['PAGE','25801',jdecode('Bumper+Stickers'),jdecode(''),'/25801.html','false',[],'',''],
	['PAGE','6090',jdecode('Home+Decor'),jdecode(''),'/6090/index.html','false',[ 
		['PAGE','88901',jdecode('Blankets%2FThrows'),jdecode(''),'/6090/88901.html','true',[],'',''],
		['PAGE','88922',jdecode('Mobiles'),jdecode(''),'/6090/88922.html','true',[],'',''],
		['PAGE','90001',jdecode('Wind+Spinners'),jdecode(''),'/6090/90001.html','true',[],'','']
	],'',''],
	['PAGE','91601',jdecode('MORE+COOL+ITEMS'),jdecode(''),'/91601.html','false',[],'',''],
	['PAGE','9274',jdecode('Birthday+Parties'),jdecode(''),'/9274.html','true',[],'',''],
	['PAGE','9316',jdecode('Gift+Cards'),jdecode(''),'/9316.html','false',[],'',''],
	['PAGE','5964',jdecode('Order+Online'),jdecode(''),'/5964.html','false',[],'',''],
	['PAGE','5922',jdecode('Meet+The+Owner'),jdecode(''),'/5922.html','true',[],'',''],
	['PAGE','63901',jdecode('Email+Us'),jdecode(''),'/63901.html','true',[],'',''],
	['PAGE','101801',jdecode('MORE+LOCAL+STORES'),jdecode(''),'/101801.html','true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Beach';
theSitetree.paletteFamily='E7D795';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10469';
theSitetree.graphicsetId='10929';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E7D794';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Beach',
				paletteFamily: 	'E7D795',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10469',
				graphicsetId: 	'10929',
				contentColor: 	'000000',
				contentBGColor: 'E7D794',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF503F',
				e_color: 		'FF503F',
				f_color: 		'FF503F',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88922',
internalId:  '',
customField: '20100422-194411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20100714-163400'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65801',
internalId:  '',
customField: '20100422-203113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20101028-183626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20100416-180917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20100416-192522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5452',
internalId:  '',
customField: '20101028-192021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5985',
internalId:  '',
customField: '20101028-192515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20110607-124819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20090912-150020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6090',
internalId:  '',
customField: '20101028-182739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6111',
internalId:  '',
customField: '20101028-193513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6132',
internalId:  '',
customField: '20101028-183458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6153',
internalId:  '',
customField: '20100512-171624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123501',
internalId:  '',
customField: '20101028-191721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90001',
internalId:  '',
customField: '20100422-194137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9106',
internalId:  '',
customField: '20100416-193233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90122',
internalId:  '',
customField: '20101028-205252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9190',
internalId:  '',
customField: '20101028-191859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9211',
internalId:  '',
customField: '20101028-183955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101801',
internalId:  '',
customField: '20100923-183652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9274',
internalId:  '',
customField: '20101028-175045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63901',
internalId:  '',
customField: '20090911-193603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9316',
internalId:  '',
customField: '20090911-191608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91601',
internalId:  '',
customField: '20100422-204448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88901',
internalId:  '',
customField: '20100422-194357'
};
webappMappings['1501']=webappMappings['1501-5788059']={
webappId:    '1501',
documentId:  '7301',
internalId:  '5788059',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90101',
internalId:  '',
customField: '20101028-192934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20101028-192755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20101117-170012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20100422-183354'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLSVB';
var companyName   = '++HIPPIE++CHICKS++7+3+2+-+6+1+2+-+3+1+6+3';
var htmlTitle	  = 'hippie+chicks+';
var metaKeywords  = 'clothing%2C+%2Chippie%2C+hippy%2C+grateful+dead%2C+jewelry%2C+clothes%2C+boutique%2C+bumper+stickers%2C+tie+die%2C+tye+die%2C+acid+blue%2C+mocassins%2C+minnetonka%2C+minetonka%2C+boots%2C+sandals%2C+peace%2C+love%2C+wind+chimes%2C+embroidery%2C+tapestry%2C+rock+n+roll%2C+rock+and+roll%2C+hippie+items%2C+hippie+clothes%2C+birthday+parties%2C+handmade+items%2C+';
var metaContents  = 'A+sixties+boutique+for+all+your+hippie+needs';
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();
};

