/* [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','3201',jdecode('Home'),jdecode(''),'/3201.html','true',[],'',''],
	['PAGE','11943',jdecode('Products+For+Sale'),jdecode(''),'/11943.html','true',[],'',''],
	['PAGE','3294',jdecode('Groovy+Stuff+'),jdecode(''),'/3294.html','true',[],'',''],
	['PAGE','3315',jdecode('Aromatherapy+'),jdecode(''),'/3315.html','true',[],'',''],
	['PAGE','3336',jdecode('Yoga+Rocks%21%21%21%21'),jdecode(''),'/3336.html','true',[],'',''],
	['PAGE','3357',jdecode('Message+Tools+and+Tips'),jdecode(''),'/3357.html','true',[],'',''],
	['PAGE','3378',jdecode('Housekeeping+Made+Easy'),jdecode(''),'/3378.html','true',[],'',''],
	['PAGE','3399',jdecode('Food+For+The+Good+Life+'),jdecode(''),'/3399.html','true',[],'',''],
	['PAGE','8301',jdecode('Home+%26+Family'),jdecode(''),'/8301.html','true',[],'',''],
	['PAGE','90452',jdecode('Good+Health+Lifestyle'),jdecode(''),'/90452.html','true',[],'',''],
	['PAGE','8322',jdecode('Life+In+The+Garden'),jdecode(''),'/8322.html','true',[],'',''],
	['PAGE','3420',jdecode('For+The+Love+of+Pets'),jdecode(''),'/3420.html','true',[],'',''],
	['PAGE','3252',jdecode('Our+Story'),jdecode(''),'/3252.html','true',[],'',''],
	['PAGE','50501',jdecode('Yoga+Studio+Information'),jdecode(''),'/50501.html','true',[],'',''],
	['PAGE','3483',jdecode('Contact'),jdecode(''),'/3483/index.html','true',[ 
		['PAGE','3504',jdecode('508+Sycamore+Street%2C+Clarkston%2C+Washington+99403'),jdecode(''),'/3483/3504.html','true',[],'',''],
		['PAGE','3525',jdecode('How+to+find+us'),jdecode(''),'/3483/3525.html','true',[],'',''],
		['PAGE','50522',jdecode('Email'),jdecode(''),'/3483/50522.html','true',[],'',''],
		['PAGE','50543',jdecode('New+page'),jdecode(''),'/3483/50543.html','true',[],'','']
	],'',''],
	['PAGE','50564',jdecode('How+to+find+us'),jdecode(''),'/50564.html','true',[],'',''],
	['PAGE','3546',jdecode('Tips+%26+Tricks'),jdecode(''),'/3546.html','true',[],'',''],
	['PAGE','3567',jdecode('Catalogue%2Fdownload'),jdecode(''),'/3567.html','true',[],'',''],
	['PAGE','3588',jdecode('Special+Events+Schedule'),jdecode(''),'/3588.html','true',[],'',''],
	['PAGE','3672',jdecode('About+us+%26+Special+Links'),jdecode(''),'/3672.html','true',[],'',''],
	['PAGE','10806',jdecode('Guestbook'),jdecode(''),'/10806/index.html','true',[ 
		['PAGE','10801',jdecode('Read+Guestbook'),jdecode(''),'/10806/10801.html','false',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='CC6600';
theSitetree.keyvisualId='1355';
theSitetree.keyvisualName='fitness.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='286';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'CC6600',
				keyvisualId: 	'1355',
				keyvisualName: 	'fitness.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'286',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'CC6600',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2637061']={
webappId:    '1501',
documentId:  '3201',
internalId:  '2637061',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-10806ahw050invdoc']={
webappId:    '1002',
documentId:  '10806',
internalId:  '10806ahw050invdoc',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20110107-230745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11943',
internalId:  '',
customField: '20101210-170132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3294',
internalId:  '',
customField: '20110107-230839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3336',
internalId:  '',
customField: '20110107-234008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3357',
internalId:  '',
customField: '20110108-012753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3252',
internalId:  '',
customField: '20110108-005744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90452',
internalId:  '',
customField: '20110108-004908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3315',
internalId:  '',
customField: '20110107-230922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3378',
internalId:  '',
customField: '20110108-003856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3399',
internalId:  '',
customField: '20110108-012943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20110108-013717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20110108-013924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3420',
internalId:  '',
customField: '20110108-014333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3483',
internalId:  '',
customField: '20110108-010113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3504',
internalId:  '',
customField: '20080824-143544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3525',
internalId:  '',
customField: '20080824-143544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3546',
internalId:  '',
customField: '20110108-014959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3567',
internalId:  '',
customField: '20110108-015256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3588',
internalId:  '',
customField: '20110108-015409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3672',
internalId:  '',
customField: '20110108-011302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50543',
internalId:  '',
customField: '20090515-104310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50564',
internalId:  '',
customField: '20110108-014830'
};
webappMappings['7008']=webappMappings['7008-3294']={
webappId:    '7008',
documentId:  '50543',
internalId:  '3294',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10806',
internalId:  '',
customField: '20090620-002836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20080824-194352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20110108-014601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50522',
internalId:  '',
customField: '20090515-104310'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INVDOC';
var companyName   = 'Goo+Roo+Marketplace+%26+Yoga+Studio';
var htmlTitle	  = 'gooroosmarketplace.com';
var metaKeywords  = 'yoga%2C+aromatherapy%2C+gourmet%2C+wholesome%2C+healthy%2C+cooking%2C+pets%2C+family%2C+massage%2C+decorating%2C+gardening%2C+home+making%2C+housekeeping%2C+organizing%2C+cleaning%2C+diet%2C+exercise%2C+candles%2C+soaps%2C+food%2C+recipes%2C+meal+plans%2C+recreation%2C+friends%2C+meditation+networking%2C+relaxation%2C+anti-aging%2C+children%2C+crafts%2C+holidays%2C+education%2C+history%2C+Back+To+Life';
var metaContents  = 'Goo+Roos+Marketplace+and+Yoga+Studio.++Aromatherapy+Products%2C+Massage%2C+Healthy+Foods%2C+Bead+Jewelry%2C+Custom+Book+Orders%2C+and+Place+for+Yoga+and+Tranquility.';
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();
};

