/* [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','652',jdecode('About+us'),jdecode(''),'/652.html','true',[],'',''],
	['PAGE','601',jdecode('Quick+Tour'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','37223',jdecode('Read+Our+Blog'),jdecode(''),'/37223.html','true',[],'',''],
	['PAGE','64323',jdecode('Facebook+Page%21'),jdecode(''),'/64323.html','true',[],'',''],
	['PAGE','5401',jdecode('Classes+%26+Workshops'),jdecode(''),'/5401.html','true',[],'',''],
	['PAGE','65823',jdecode('Summer+Camp%21'),jdecode(''),'/65823.html','true',[],'',''],
	['PAGE','5422',jdecode('Birthday+Parties%21'),jdecode(''),'/5422/index.html','true',[ 
		['PAGE','6501',jdecode('Projects'),jdecode(''),'/5422/6501.html','true',[],'','']
	],'',''],
	['PAGE','13501',jdecode('Crafter+Profiles'),jdecode(''),'/13501/index.html','true',[ 
		['PAGE','60923',jdecode('Anne+Lewis'),jdecode(''),'/13501/60923.html','true',[],'',''],
		['PAGE','52423',jdecode('Anna+Roberts'),jdecode(''),'/13501/52423.html','true',[],'',''],
		['PAGE','13564',jdecode('Another+Real+Treasure'),jdecode(''),'/13501/13564.html','true',[],'',''],
		['PAGE','52444',jdecode('Blissmeadow+Arts'),jdecode(''),'/13501/52444.html','true',[],'',''],
		['PAGE','13522',jdecode('Clay+Socks'),jdecode(''),'/13501/13522.html','true',[],'',''],
		['PAGE','13690',jdecode('Color+In+The+Shadows'),jdecode(''),'/13501/13690.html','true',[],'',''],
		['PAGE','13648',jdecode('Deb+Pierce'),jdecode(''),'/13501/13648.html','true',[],'',''],
		['PAGE','52465',jdecode('Expressions+By+Margaret'),jdecode(''),'/13501/52465.html','true',[],'',''],
		['PAGE','13627',jdecode('Made+By+A+Troll'),jdecode(''),'/13501/13627.html','true',[],'',''],
		['PAGE','62823',jdecode('Maggie+Kendis'),jdecode(''),'/13501/62823.html','true',[],'',''],
		['PAGE','60944',jdecode('Raven+Hollow'),jdecode(''),'/13501/60944.html','true',[],'',''],
		['PAGE','13585',jdecode('Simpson+Designs'),jdecode(''),'/13501/13585.html','true',[],'',''],
		['PAGE','13669',jdecode('SOPPAS'),jdecode(''),'/13501/13669.html','true',[],'',''],
		['PAGE','13543',jdecode('The+Pineapple+Co.'),jdecode(''),'/13501/13543.html','true',[],'',''],
		['PAGE','13606',jdecode('Wire+Plus+Jewelry'),jdecode(''),'/13501/13606.html','true',[],'','']
	],'',''],
	['PAGE','841',jdecode('Contact+Us'),jdecode(''),'/841.html','true',[],'',''],
	['PAGE','25701',jdecode('Special+Events%21'),jdecode(''),'/25701/index.html','true',[ 
		['PAGE','904',jdecode('Maple+Festival'),jdecode(''),'/25701/904.html','true',[],'',''],
		['PAGE','41323',jdecode('Fiber+Arts+%26+Tea'),jdecode(''),'/25701/41323.html','true',[],'',''],
		['PAGE','43823',jdecode('Relay+For+Life'),jdecode(''),'/25701/43823.html','true',[],'','']
	],'',''],
	['PAGE','5306',jdecode('Guestbook'),jdecode(''),'/5306/index.html','true',[ 
		['PAGE','5301',jdecode('Read+Guestbook'),jdecode(''),'/5306/5301.html','true',[],'','']
	],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='2055';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='301';
theSitetree.graphicsetId='343';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFCC66';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'2055',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'301',
				graphicsetId: 	'343',
				contentColor: 	'000066',
				contentBGColor: 'FFCC66',
				a_color: 		'FFCC66',
				b_color: 		'CC6600',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '652',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-5306avec10inpi6r']={
webappId:    '1002',
documentId:  '5306',
internalId:  '5306avec10inpi6r',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090406-191502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20090708-151156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20090403-123720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20090408-131632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20090403-123405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20090403-123617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43823',
internalId:  '',
customField: '20090708-205637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37223',
internalId:  '',
customField: '20090404-143450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20090708-151531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65823',
internalId:  '',
customField: '20090708-152826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64323',
internalId:  '',
customField: '20090415-084122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60944',
internalId:  '',
customField: '20090408-131028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62823',
internalId:  '',
customField: '20090406-212217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52465',
internalId:  '',
customField: '20090406-201815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60923',
internalId:  '',
customField: '20090406-195019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52423',
internalId:  '',
customField: '20090406-195226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52444',
internalId:  '',
customField: '20090406-195919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20090408-125529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13522',
internalId:  '',
customField: '20090406-200233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13543',
internalId:  '',
customField: '20090404-143056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13564',
internalId:  '',
customField: '20090406-195422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13585',
internalId:  '',
customField: '20090406-202105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13606',
internalId:  '',
customField: '20090406-202846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13627',
internalId:  '',
customField: '20090414-164429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13648',
internalId:  '',
customField: '20090406-201728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13669',
internalId:  '',
customField: '20090406-202608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13690',
internalId:  '',
customField: '20090406-200343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '904',
internalId:  '',
customField: '20090414-164344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20090404-073605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20081118-133204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20090708-151947'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPI6R';
var companyName   = '++++++*+The+Golden+Egg+Studio+*';
var htmlTitle	  = 'The+Golden+Egg+Studio+-+Hebron%2C+Connecticut++-+Art+Classes%2C+Birthday+Parties%2C+Hand+Made+Craft';
var metaKeywords  = '';
var metaContents  = '';
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();
};
