/* [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','1001',jdecode('Exhibitions'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','22901',jdecode('Products'),jdecode(''),'/22901/index.html','true',[ 
		['PAGE','34601',jdecode('Products+%28follow+up+page%29'),jdecode(''),'/22901/34601.html','false',[],'']
	],''],
	['PAGE','1052',jdecode('About+Us'),jdecode(''),'/1052.html','true',[],''],
	['PAGE','1073',jdecode('Artist+Bio'),jdecode(''),'/1073.html','true',[],''],
	['PAGE','1115',jdecode('GAFC+W%2FC+Collections'),jdecode(''),'/1115.html','true',[],''],
	['PAGE','1136',jdecode('5+Traits+of+the+GAFC'),jdecode(''),'/1136.html','true',[],''],
	['PAGE','1157',jdecode('Contact+Us'),jdecode(''),'/1157/index.html','true',[ 
		['PAGE','33801',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/1157/33801.html','false',[],'']
	],''],
	['PAGE','1094',jdecode('Original+Oil+Paintings'),jdecode(''),'/1094/index.html','true',[ 
		['PAGE','48101',jdecode('Original+Oil+Paintings+%28follow+up+page%29'),jdecode(''),'/1094/48101.html','false',[],'']
	],''],
	['PAGE','1178',jdecode('Business+Relationships'),jdecode(''),'/1178.html','true',[],''],
	['PAGE','1199',jdecode('IBD+10+Secrets+to+Success'),jdecode(''),'/1199.html','true',[],''],
	['PAGE','1220',jdecode('L.A.C.+Day+4%2F15'),jdecode(''),'/1220.html','true',[],''],
	['PAGE','1241',jdecode('Ask+Margery+Sinclair+Answers'),jdecode(''),'/1241/index.html','true',[ 
		['PAGE','33201',jdecode('Ask+Margery+Sinclair+Answers+%28follow+up+page%29'),jdecode(''),'/1241/33201.html','false',[],'']
	],''],
	['PAGE','1262',jdecode('Respect+Awards'),jdecode(''),'/1262.html','true',[],''],
	['PAGE','1283',jdecode('GAFC+Etiquette+Tips+by+MS'),jdecode(''),'/1283/index.html','true',[ 
		['PAGE','34101',jdecode('GAFC+Etiquette+Tips+by+MS+%28follow+up+page%29'),jdecode(''),'/1283/34101.html','false',[],'']
	],''],
	['PAGE','40901',jdecode('AYearOfGoodManners'),jdecode(''),'/40901/index.html','true',[ 
		['PAGE','48501',jdecode('AYearOfGoodManners+%28follow+up+page%29'),jdecode(''),'/40901/48501.html','false',[],'']
	],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				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: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050inxexjab480f0e0afaad76']={
webappId:    '1001',
documentId:  '33201',
internalId:  'ahw050inxexjab480f0e0afaad76',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxexjef4bf0030dd35893']={
webappId:    '1001',
documentId:  '33801',
internalId:  'ahw050inxexjef4bf0030dd35893',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxexjab480f0e0afaad76']={
webappId:    '1001',
documentId:  '1241',
internalId:  'ahw050inxexjab480f0e0afaad76',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexjef4bf0030dd35893']={
webappId:    '1001',
documentId:  '1157',
internalId:  'ahw050inxexjef4bf0030dd35893',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj96e036b699b8d1cf']={
webappId:    '1001',
documentId:  '1283',
internalId:  'ahw050inxexj96e036b699b8d1cf',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj96e036b699b8d1cf']={
webappId:    '1001',
documentId:  '34101',
internalId:  'ahw050inxexj96e036b699b8d1cf',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj612784fd7d548814']={
webappId:    '1001',
documentId:  '22901',
internalId:  'ahw050inxexj612784fd7d548814',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj612784fd7d548814']={
webappId:    '1001',
documentId:  '34601',
internalId:  'ahw050inxexj612784fd7d548814',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj71846b068d8ffd2d']={
webappId:    '1001',
documentId:  '1094',
internalId:  'ahw050inxexj71846b068d8ffd2d',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj71846b068d8ffd2d']={
webappId:    '1001',
documentId:  '48101',
internalId:  'ahw050inxexj71846b068d8ffd2d',
customField: 'followUp'
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj12c1fa5965f711c2']={
webappId:    '1001',
documentId:  '40901',
internalId:  'ahw050inxexj12c1fa5965f711c2',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxexj12c1fa5965f711c2']={
webappId:    '1001',
documentId:  '48501',
internalId:  'ahw050inxexj12c1fa5965f711c2',
customField: 'followUp'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20100311-020616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20100110-002315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1283',
internalId:  '',
customField: '20091101-095505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20100110-001736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20090507-202059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20090106-085921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1073',
internalId:  '',
customField: '20081231-153950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1115',
internalId:  '',
customField: '20081231-154258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1136',
internalId:  '',
customField: '20080103-021552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1157',
internalId:  '',
customField: '20090421-014856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33801',
internalId:  '',
customField: '20090507-195538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1094',
internalId:  '',
customField: '20091025-215021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20090507-193728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1178',
internalId:  '',
customField: '20091216-212226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1199',
internalId:  '',
customField: '20080608-001424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1220',
internalId:  '',
customField: '20090106-090652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1241',
internalId:  '',
customField: '20100101-010507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20090507-191536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1262',
internalId:  '',
customField: '20080720-095340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20090507-184835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48501',
internalId:  '',
customField: '20090507-183401'
};
webappMappings['7008']=webappMappings['7008-3188']={
webappId:    '7008',
documentId:  '48501',
internalId:  '3188',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEXJ';
var companyName   = 'Jan+Polk+.+com';
var htmlTitle	  = 'Jan+Polk.+com';
var metaKeywords  = 'Original+Oil+Paintings%2C+Limited+Edition+Lithographs+and+Giclees%2C+Note+Cards%2C+Great+American+Flower+Collection%2C+Watercolor+Paintings%2C++Respect+Series%2C++Margery+Sinclair%2C+Ask+Margery+Sinclair%2C+GAFC%2C+Etiquette+Tips';
var metaContents  = 'Original+Oil+Paintings%2C+Limited+Edition+Lithographs+and+Giclees%2C+Note+Cards%2C+Great+American+Flower+Collection%2C+Watercolor+Paintings%2C++Respect+Series%2C++Margery+Sinclair%2C+Ask+Margery+Sinclair%2C+GAFC%2C+Etiquette+Tips';
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();
};
