/* [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','53',jdecode('HOME'),jdecode(''),'/53.html','true',[],''],
	['PAGE','2155',jdecode('Carved+Doors'),jdecode(''),'/2155.html','true',[],''],
	['PAGE','2164',jdecode('Carved+Screen+Doors'),jdecode(''),'/2164.html','true',[],''],
	['PAGE','2173',jdecode('Carved++Mantels'),jdecode(''),'/2173.html','true',[],''],
	['PAGE','2191',jdecode('Carved+Signs'),jdecode(''),'/2191.html','true',[],''],
	['PAGE','2182',jdecode('Rustic+Furnishings'),jdecode(''),'/2182.html','true',[],''],
	['PAGE','2567',jdecode('Rustic+Hardware+'),jdecode(''),'/2567.html','true',[],''],
	['PAGE','2576',jdecode('Handmade+Gifts'),jdecode(''),'/2576.html','true',[],''],
	['PAGE','7601',jdecode('+Collectables'),jdecode(''),'/7601.html','true',[],''],
	['PAGE','7622',jdecode('Carving+Tools'),jdecode(''),'/7622/index.html','true',[ 
		['PAGE','13301',jdecode('Patterns'),jdecode(''),'/7622/13301.html','true',[],'']
	],''],
	['PAGE','2146',jdecode('Design+Service'),jdecode(''),'/2146.html','true',[],''],
	['PAGE','2669',jdecode('Portfolio'),jdecode(''),'/2669.html','true',[],''],
	['PAGE','7701',jdecode('CONTACT'),jdecode(''),'/7701.html','true',[],''],
	['PAGE','2119',jdecode('ABOUT+US'),jdecode(''),'/2119/index.html','true',[ 
		['PAGE','2128',jdecode('Dealers'),jdecode(''),'/2119/2128.html','true',[],''],
		['PAGE','2137',jdecode('Events'),jdecode(''),'/2119/2137.html','true',[],'']
	],''],
	['PAGE','2594',jdecode('POLICY'),jdecode(''),'/2594/index.html','true',[ 
		['PAGE','2603',jdecode('Order+Info'),jdecode(''),'/2594/2603.html','true',[],''],
		['PAGE','2612',jdecode('Returns%2FExchange'),jdecode(''),'/2594/2612.html','true',[],'']
	],''],
	['PAGE','2585',jdecode(''),jdecode(''),'/2585.html','false',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Vignette';
theSitetree.paletteFamily='E79E6E';
theSitetree.keyvisualId='3549';
theSitetree.keyvisualName='kv_3549.jpg';
theSitetree.fontsetId='10448';
theSitetree.graphicsetId='10833';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Vignette',
				paletteFamily: 	'E79E6E',
				keyvisualId: 	'3549',
				keyvisualName: 	'kv_3549.jpg',
				fontsetId: 		'10448',
				graphicsetId: 	'10833',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'E79E6E',
				e_color: 		'886146',
				f_color: 		'C97556',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '53',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-040e9221a085505894ee438421bdf84b']={
webappId:    '7060',
documentId:  '2669',
internalId:  '040e9221a085505894ee438421bdf84b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20100218-143147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2119',
internalId:  '',
customField: '20100218-143448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2128',
internalId:  '',
customField: '20091126-225724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2137',
internalId:  '',
customField: '20091126-225515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2146',
internalId:  '',
customField: '20091126-224811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2155',
internalId:  '',
customField: '20091126-220039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20091126-220248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2173',
internalId:  '',
customField: '20091126-220453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2191',
internalId:  '',
customField: '20091126-222342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2182',
internalId:  '',
customField: '20080321-032951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2567',
internalId:  '',
customField: '20091126-224235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2576',
internalId:  '',
customField: '20080222-043144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2585',
internalId:  '',
customField: '20080222-043329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2669',
internalId:  '',
customField: '20091126-225919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2594',
internalId:  '',
customField: '20100127-172417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2603',
internalId:  '',
customField: '20080206-050401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2612',
internalId:  '',
customField: '20080206-053734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20081124-101929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7622',
internalId:  '',
customField: '20081124-095012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20081124-095012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20091126-204748'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INV0EE';
var companyName   = 'WOODLAND+CARVINGS';
var htmlTitle	  = 'Custom+woodcarving+and+design+by+Kathy+Adamson+specializing+in+rustic+western+lodge+decor';
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();
};
