/* [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','3112',jdecode('What%26%23x27%3Bs+New'),jdecode(''), jdecode('%2F3112.html'), 'true',[],'',''],
	['PAGE','43',jdecode('About+VeeandCo+'),jdecode(''), jdecode('%2F43.html'), 'true',[],'',''],
	['PAGE','156614',jdecode('VeeandCo+SnowGlobes'),jdecode(''), jdecode('%2F156614.html'), 'true',[],'',''],
	['PAGE','56401',jdecode('VeeandCo+Bears'),jdecode(''), jdecode('%2F56401.html'), 'true',[],'',''],
	['PAGE','8869',jdecode('VeeandCo+Name*Flakes'),jdecode(''), jdecode('%2F8869.html'), 'true',[],'',''],
	['PAGE','9403',jdecode('FurryPawz+NameTags'),jdecode(''), jdecode('%2F9403.html'), 'true',[],'',''],
	['PAGE','41101',jdecode('Biscornus'),jdecode(''), jdecode('%2F41101.html'), 'true',[],'',''],
	['PAGE','59101',jdecode('Charts'),jdecode(''), jdecode('%2F59101%2Findex.html'), 'true',[ 
		['PAGE','60801',jdecode('Spring'),jdecode(''), jdecode('%2F59101%2F60801.html'), 'true',[],'',''],
		['PAGE','60822',jdecode('Easter'),jdecode(''), jdecode('%2F59101%2F60822.html'), 'true',[],'',''],
		['PAGE','60843',jdecode('Summer'),jdecode(''), jdecode('%2F59101%2F60843.html'), 'true',[],'',''],
		['PAGE','60864',jdecode('Fall'),jdecode(''), jdecode('%2F59101%2F60864.html'), 'true',[],'',''],
		['PAGE','60885',jdecode('Halloween'),jdecode(''), jdecode('%2F59101%2F60885.html'), 'true',[],'',''],
		['PAGE','60906',jdecode('Thanksgiving'),jdecode(''), jdecode('%2F59101%2F60906.html'), 'true',[],'',''],
		['PAGE','60927',jdecode('Winter'),jdecode(''), jdecode('%2F59101%2F60927.html'), 'true',[],'',''],
		['PAGE','60948',jdecode('Christmas'),jdecode(''), jdecode('%2F59101%2F60948.html'), 'true',[],'',''],
		['PAGE','61101',jdecode('General'),jdecode(''), jdecode('%2F59101%2F61101.html'), 'true',[],'',''],
		['PAGE','62901',jdecode('Misc.+Holidays'),jdecode(''), jdecode('%2F59101%2F62901.html'), 'true',[],'','']
	],'',''],
	['PAGE','118',jdecode('Gallery'),jdecode(''), jdecode('%2F118.html'), 'true',[],'',''],
	['PAGE','4381',jdecode('Chart+Contest+Gallery'),jdecode(''), jdecode('%2F4381.html'), 'true',[],'',''],
	['PAGE','3121',jdecode('Ordering+Information'),jdecode(''), jdecode('%2F3121.html'), 'true',[],'',''],
	['PAGE','3877',jdecode('Framing+Tutorial'),jdecode(''), jdecode('%2F3877.html'), 'true',[],'',''],
	['PAGE','824',jdecode('Contact'),jdecode(''), jdecode('%2F824.html'), 'true',[],'',''],
	['PAGE','163',jdecode('Links'),jdecode(''), jdecode('%2F163.html'), 'true',[],'',''],
	['PAGE','544',jdecode('Guestbook'),jdecode(''), jdecode('%2F544%2Findex.html'), 'true',[ 
		['PAGE','543',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F544%2F543.html'), 'false',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='18902D';
theSitetree.keyvisualId='7134';
theSitetree.keyvisualName='kv_7134.jpg';
theSitetree.fontsetId='16398';
theSitetree.graphicsetId='12130';
theSitetree.contentColor='18902D';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'optimum',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'18902D',
				keyvisualId: 	'7134',
				keyvisualName: 	'kv_7134.jpg',
				fontsetId: 		'16398',
				graphicsetId: 	'12130',
				contentColor: 	'18902D',
				contentBGColor: 'E5E2E2',
				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: '20110921-223528'
};
webappMappings['1002']=webappMappings['1002-544AHW050INXPWN']={
webappId:    '1002',
documentId:  '544',
internalId:  '544AHW050INXPWN',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20110914-191903'
};
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: '20110914-194924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60948',
internalId:  '',
customField: '20110130-090924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156614',
internalId:  '',
customField: '20110914-193920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20090622-193313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20110914-194440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60822',
internalId:  '',
customField: '20100116-074626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62901',
internalId:  '',
customField: '20100728-212239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61101',
internalId:  '',
customField: '20110914-194110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60843',
internalId:  '',
customField: '20110914-194249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60864',
internalId:  '',
customField: '20110914-194634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60885',
internalId:  '',
customField: '20101203-172021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60906',
internalId:  '',
customField: '20090622-193725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118',
internalId:  '',
customField: '20110430-170349'
};
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 webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.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+++Vee+Cross+Stitch++Veeandco++Cross+Stitch+Kits++snowmen+snowglobes+biscornus+whimsical+designs+florals+Christmas+Easter+bears++Name*Flakes.';
var metaContents  = 'VeeandCo+Cross+Stitch+Designs%7E%7EDesigns+That+Make++You+Smile%21++%0A%0AI+have+been+designing+cross+stitch+charts+for+5+years+and+have+enjoy+every+minute%21++Designs+range+from+biscornus+to+snow+globes%2C+seasonal%2C+holiday%2C+whimsical+sayings%2C+and+floral+designs.++Also+design+specialized+Name*Flakes+and+FurryPaw+Name*Tags.%0A%0AMost+of+my+designs+originate+from+my+painting+class+or+to+coincide+with+frames+that+I+have+made+over+the+years.++I+have+been+teaching+the+%22art+of+painting%22+for+well+over+10+years+and+lots+of+my+past+and+present+projects+have+inspired+the+VeeandCo+designs.';
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();
};

