/* [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','3112',jdecode('What%26%23x27%3Bs+New'),jdecode(''),'/3112.html','true',[],''],
	['PAGE','43',jdecode('About+VeeandCo+'),jdecode(''),'/43.html','true',[],''],
	['PAGE','56401',jdecode('VeeandCo+Bears'),jdecode(''),'/56401.html','true',[],''],
	['PAGE','8869',jdecode('VeeandCo+Name*Flakes'),jdecode(''),'/8869.html','true',[],''],
	['PAGE','9403',jdecode('FurryPawz+NameTags'),jdecode(''),'/9403.html','true',[],''],
	['PAGE','41101',jdecode('Biscornus'),jdecode(''),'/41101.html','true',[],''],
	['PAGE','59101',jdecode('Charts'),jdecode(''),'/59101/index.html','true',[ 
		['PAGE','60801',jdecode('Spring'),jdecode(''),'/59101/60801.html','true',[],''],
		['PAGE','60822',jdecode('Easter'),jdecode(''),'/59101/60822.html','true',[],''],
		['PAGE','60843',jdecode('Summer'),jdecode(''),'/59101/60843.html','true',[],''],
		['PAGE','60864',jdecode('Fall'),jdecode(''),'/59101/60864.html','true',[],''],
		['PAGE','60885',jdecode('Halloween'),jdecode(''),'/59101/60885.html','true',[],''],
		['PAGE','60906',jdecode('Thanksgiving'),jdecode(''),'/59101/60906.html','true',[],''],
		['PAGE','60927',jdecode('Winter'),jdecode(''),'/59101/60927.html','true',[],''],
		['PAGE','60948',jdecode('Christmas'),jdecode(''),'/59101/60948.html','true',[],''],
		['PAGE','61101',jdecode('General'),jdecode(''),'/59101/61101.html','true',[],''],
		['PAGE','62901',jdecode('Misc.+Holidays'),jdecode(''),'/59101/62901.html','true',[],'']
	],''],
	['PAGE','118',jdecode('Gallery'),jdecode(''),'/118.html','true',[],''],
	['PAGE','4381',jdecode('Chart+Contest+Gallery'),jdecode(''),'/4381.html','true',[],''],
	['PAGE','3121',jdecode('Ordering+Information'),jdecode(''),'/3121.html','true',[],''],
	['PAGE','3877',jdecode('Framing+Tutorial'),jdecode(''),'/3877.html','true',[],''],
	['PAGE','824',jdecode('Contact'),jdecode(''),'/824.html','true',[],''],
	['PAGE','163',jdecode('Links'),jdecode(''),'/163.html','true',[],''],
	['PAGE','544',jdecode('Guestbook'),jdecode(''),'/544/index.html','true',[ 
		['PAGE','543',jdecode('Read+Guestbook'),jdecode(''),'/544/543.html','false',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='364EB6';
theSitetree.keyvisualId='7106';
theSitetree.keyvisualName='kv_7106.jpg';
theSitetree.fontsetId='16394';
theSitetree.graphicsetId='12129';
theSitetree.contentColor='364EB6';
theSitetree.contentBGColor='E5E2E2';
var theTemplate={
				name: 			'Blossom',
				paletteFamily: 	'364EB6',
				keyvisualId: 	'7106',
				keyvisualName: 	'kv_7106.jpg',
				fontsetId: 		'16394',
				graphicsetId: 	'12129',
				contentColor: 	'364EB6',
				contentBGColor: 'E5E2E2',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3112',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3112',
internalId:  '',
customField: '20100208-055804'
};
webappMappings['1002']=webappMappings['1002-544AHW050INXPWN']={
webappId:    '1002',
documentId:  '544',
internalId:  '544AHW050INXPWN',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20100131-194000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8869',
internalId:  '',
customField: '20090622-194056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9403',
internalId:  '',
customField: '20090622-194014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60927',
internalId:  '',
customField: '20090727-184651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60948',
internalId:  '',
customField: '20100131-150106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20090622-193313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20100116-075142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60822',
internalId:  '',
customField: '20100116-074626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20090622-193939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61101',
internalId:  '',
customField: '20091005-175127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60843',
internalId:  '',
customField: '20090903-221115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60864',
internalId:  '',
customField: '20090622-193517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60885',
internalId:  '',
customField: '20090622-193647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60906',
internalId:  '',
customField: '20090622-193725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118',
internalId:  '',
customField: '20100214-091425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4381',
internalId:  '',
customField: '20070703-003206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3121',
internalId:  '',
customField: '20081101-084911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3877',
internalId:  '',
customField: '20070113-011338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '824',
internalId:  '',
customField: '20070121-125957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163',
internalId:  '',
customField: '20090406-180226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '544',
internalId:  '',
customField: '20060812-214648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '543',
internalId:  '',
customField: '20060812-214648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20090903-215616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56401',
internalId:  '',
customField: '20090622-194123'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXPWN';
var companyName   = 'VeeandCo+Cross*Stitch+Designs';
var htmlTitle	  = 'VeeandCo+Cross*Stitch+Designs+and+Frames';
var metaKeywords  = '+cross+stitch++++custom+made++wooden+frames++++tucks%2Fhangers++painted+frames++Vee+Cross+Stitch++Veeandco++Cross+Stitch+Kits++Stitch+N+Frame++banners++hanging+tucks';
var metaContents  = '+I+create+custom+made+wooden+frames+to+suit+your+needs.++Most+of+my+frames+are+made+to+enhance+and+finish+off+cross+stitch+pieces.++I+also+create+hangers+for+banners+and+hanging+tucks.++My+latest+adventure+is+designing+charts+that+coincide+with+some+of+frames.+Lastly%2C+every+year%2C+I+design+a+special+wooden+ornament+that+can+be+personalized.+++++++++am+so+excited+to+have+Cyndi+from+Cyndis+Prismatic+Reflections+joining+me+on+this+venture+with+her+beautiful+hand-dyed+floss+which+will+be+included+in+some+of+my+kits.++++';
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();
};
