/* [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','1801',jdecode('Jean+Judd+Art+Quilts'),jdecode(''),'/1801.html','true',[],'',''],
	['PAGE','19701',jdecode('Textile+Gallery'),jdecode(''),'/19701/index.html','true',[ 
		['PAGE','22822',jdecode('Textile+Wall+Art'),jdecode(''),'/19701/22822.html','true',[],'',''],
		['PAGE','143401',jdecode('Banded+Cloth+Series'),jdecode(''),'/19701/143401.html','true',[],'',''],
		['PAGE','149501',jdecode('Contaminated+Water+Series'),jdecode(''),'/19701/149501.html','true',[],'',''],
		['PAGE','82601',jdecode('Cross+Stitch+Quilt+Series'),jdecode(''),'/19701/82601.html','true',[],'',''],
		['PAGE','120801',jdecode('Scribble+Quilt+Series'),jdecode(''),'/19701/120801.html','true',[],'',''],
		['PAGE','131701',jdecode('Tilt%26%23x27%3Bn+Whirl+Series'),jdecode(''),'/19701/131701.html','true',[],'',''],
		['PAGE','125601',jdecode('Designing+with+Rust'),jdecode(''),'/19701/125601.html','true',[],'',''],
		['PAGE','22843',jdecode('Home+Decor+Textiles'),jdecode(''),'/19701/22843.html','true',[],'',''],
		['PAGE','42801',jdecode('Textile+Price+Lists'),jdecode(''),'/19701/42801.html','true',[],'','']
	],'',''],
	['PAGE','11201',jdecode('Commissions'),jdecode(''),'/11201/index.html','true',[ 
		['PAGE','27701',jdecode('Home+Decor+Commissions'),jdecode(''),'/11201/27701.html','true',[],'',''],
		['PAGE','32301',jdecode('Donated+Commissions'),jdecode(''),'/11201/32301.html','true',[],'',''],
		['PAGE','23201',jdecode('Commission+Forms'),jdecode(''),'/11201/23201.html','true',[],'','']
	],'',''],
	['PAGE','19785',jdecode('Exhibition+Openings'),jdecode(''),'/19785/index.html','true',[ 
		['PAGE','20501',jdecode('Recent+Exhibitions'),jdecode(''),'/19785/20501.html','true',[],'','']
	],'',''],
	['PAGE','60001',jdecode('Hand+Dyed+Fabrics'),jdecode(''),'/60001/index.html','true',[ 
		['PAGE','125701',jdecode('Rust+Dyeing'),jdecode(''),'/60001/125701.html','true',[],'',''],
		['PAGE','158401',jdecode('Rust+Dyeing+Process'),jdecode(''),'/60001/158401.html','true',[],'',''],
		['PAGE','78201',jdecode('Hand+Dyed+Bags'),jdecode(''),'/60001/78201.html','true',[],'','']
	],'',''],
	['PAGE','11222',jdecode('Works+in+Progress'),jdecode(''),'/11222.html','true',[],'',''],
	['PAGE','23801',jdecode('Process'),jdecode(''),'/23801.html','true',[],'',''],
	['PAGE','19922',jdecode('Credentials'),jdecode(''),'/19922.html','true',[],'',''],
	['PAGE','27901',jdecode('Studio'),jdecode(''),'/27901.html','true',[],'',''],
	['PAGE','60701',jdecode('Other+Services'),jdecode(''),'/60701/index.html','true',[ 
		['PAGE','105701',jdecode('ZAPP+Image+Service'),jdecode(''),'/60701/105701.html','true',[],'',''],
		['PAGE','61601',jdecode('Proofreading+%26+Editing+Service'),jdecode(''),'/60701/61601.html','true',[],'','']
	],'',''],
	['PAGE','1852',jdecode('Contact+Artist'),jdecode(''),'/1852.html','true',[],'',''],
	['PAGE','22501',jdecode('About+the+Artist'),jdecode(''),'/22501.html','true',[],'',''],
	['PAGE','24501',jdecode('Links'),jdecode(''),'/24501.html','true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Common';
theSitetree.paletteFamily='D40202';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='26633';
theSitetree.graphicsetId='13449';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Common',
				paletteFamily: 	'D40202',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'26633',
				graphicsetId: 	'13449',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100813-080731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20100311-152416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19785',
internalId:  '',
customField: '20100826-205446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19922',
internalId:  '',
customField: '20100829-203004'
};
webappMappings['7008']=webappMappings['7008-3963']={
webappId:    '7008',
documentId:  '1852',
internalId:  '3963',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20091128-160232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20100630-162759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20100528-094420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20100806-071416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20100812-162529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22822',
internalId:  '',
customField: '20100813-080851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22843',
internalId:  '',
customField: '20100602-102008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20100204-093945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20100806-071011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20100712-085036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20091124-093627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20100102-144809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20091124-085415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20090720-081548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60001',
internalId:  '',
customField: '20091124-091012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60701',
internalId:  '',
customField: '20090701-101028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61601',
internalId:  '',
customField: '20090622-081901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20091124-091139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82601',
internalId:  '',
customField: '20100602-102613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105701',
internalId:  '',
customField: '20090701-082025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120801',
internalId:  '',
customField: '20100602-102704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125601',
internalId:  '',
customField: '20100602-102917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125701',
internalId:  '',
customField: '20100523-094209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131701',
internalId:  '',
customField: '20100602-102839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143401',
internalId:  '',
customField: '20100331-085502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149501',
internalId:  '',
customField: '20100630-155953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158401',
internalId:  '',
customField: '20100523-102236'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN2UE2';
var companyName   = 'Jean+Judd+Art+Quilts';
var htmlTitle	  = 'Jean+Judd+Art+Quilts';
var metaKeywords  = 'Jean+Judd%2C+Jean+M.+Judd%2C+textile+artist%2C+quilt+artist%2C+art+quilt%2C+custom+quilt%2C+hand+quilted%2C+hand+appliqued%2C+quilt+commission%2C+hand+cross+stitched%2C+art%2C+home+decor%2C+wallhanging%2C+ZAPP+images%2C+proofreading+manuscripts%2C+hand+dyed+fabrics%2C+quilt+studio%2C+custom+hand+dyed+fabrics%2C+art+quilt+commissions%2C+textile+commission%2C+textile+art%2C+textile+wall+art%2C+fiber+art%2C+Textile+Art...Discover+the+Possibilities%21%2C+textile+art+for+sale%2C+hand+dyed+fabrics+for+sale%2C+custom+hand+quilting+service%2C+hand+quilting+service%2C+Sisters+In+Stitches%2C+commission+quilts%2C+rust+dyeing%2C+rust+application%2C+rusted+architectural+ironwork%2C+rusted+car+parts%2C+rusted+tractor+parts%2C+studio+art%2C+studio+art+quilts%2C+hand+dyed+fabric%2C+art+quilt+process%2C+art+commissions%2C+studio+quilter%2C+studio+art+quilter%2C';
var metaContents  = 'Art+quilts+by+textile+artist%2C+Jean+M.+Judd%2C+featuring+hand+dyed+fabrics+including+rust+pigment+application%2C+hand+quilted%2C+and+hand++appliqued+textile+artworks+for+home%2C+office+and+commercial+uses.+Gallery+inquires+and+commissions+also+welcome.';
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();
};
