/* [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','4101',jdecode('HOME'),jdecode(''),'/4101.html','true',[],'',''],
	['PAGE','87125',jdecode('THE+ART+OF+SINGING'),jdecode(''),'/87125.html','true',[],'',''],
	['PAGE','9901',jdecode('THE+ARTIST'),jdecode(''),'/9901.html','true',[],'',''],
	['PAGE','89163',jdecode('ROADSIDE+BIBLE+Greeting+Cards'),jdecode(''),'/89163.html','true',[],'',''],
	['PAGE','89172',jdecode('Catalogue+List'),jdecode(''),'/89172/index.html','true',[ 
		['PAGE','89181',jdecode('Prices'),jdecode(''),'/89172/89181.html','true',[],'','']
	],'',''],
	['PAGE','9943',jdecode('THE+ART'),jdecode(''),'/9943.html','true',[],'',''],
	['PAGE','9985',jdecode('ORIGINALS'),jdecode(''),'/9985/index.html','true',[ 
		['PAGE','61401',jdecode('NOTEworthy+Art'),jdecode(''),'/9985/61401.html','true',[],'',''],
		['PAGE','68901',jdecode('ZEN+Again'),jdecode(''),'/9985/68901.html','true',[],'',''],
		['PAGE','74801',jdecode('BOGUE-ays'),jdecode(''),'/9985/74801.html','true',[],'',''],
		['PAGE','87495',jdecode('HE+Did+It%21'),jdecode(''),'/9985/87495.html','true',[],'',''],
		['PAGE','76401',jdecode('URBAN+Eye'),jdecode(''),'/9985/76401.html','true',[],'','']
	],'',''],
	['PAGE','27001',jdecode('WHAT%26%23x27%3BS+A+GICLEE%3F'),jdecode(''),'/27001.html','true',[],'',''],
	['PAGE','10006',jdecode('WATERCOLORS'),jdecode(''),'/10006.html','true',[],'',''],
	['PAGE','9964',jdecode('THE+LARD%26%23x27%3BS'),jdecode(''),'/9964/index.html','true',[ 
		['PAGE','50101',jdecode('2nd+Helping'),jdecode(''),'/9964/50101.html','true',[],'',''],
		['PAGE','50401',jdecode('Paula+Deen+Shrine'),jdecode(''),'/9964/50401.html','true',[],'','']
	],'',''],
	['PAGE','55201',jdecode('COMMISSIONS+'),jdecode(''),'/55201.html','true',[],'',''],
	['PAGE','37601',jdecode('SHOWS'),jdecode(''),'/37601.html','true',[],'',''],
	['PAGE','67601',jdecode('SOME+FOLKS+SAID'),jdecode(''),'/67601.html','true',[],'',''],
	['PAGE','87134',jdecode('WRITER+%2B+ACTOR%2C+2'),jdecode(''),'/87134.html','true',[],'',''],
	['PAGE','10048',jdecode('CONTACT'),jdecode(''),'/10048.html','true',[],'',''],
	['PAGE','10111',jdecode('DELIVERY'),jdecode(''),'/10111.html','true',[],'',''],
	['PAGE','21606',jdecode('TELL+ME%21'),jdecode(''),'/21606/index.html','true',[ 
		['PAGE','21601',jdecode('Read+Guestbook'),jdecode(''),'/21606/21601.html','false',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Vegas';
theSitetree.paletteFamily='782D81';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16930';
theSitetree.graphicsetId='12331';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='782D81';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'true',
				name: 			'Vegas',
				paletteFamily: 	'782D81',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16930',
				graphicsetId: 	'12331',
				contentColor: 	'FFFFFF',
				contentBGColor: '782D81',
				a_color: 		'782D81',
				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:  '9943',
internalId:  '',
customField: '20100417-053550'
};
webappMappings['1002']=webappMappings['1002-21606AHW050INE5R2']={
webappId:    '1002',
documentId:  '21606',
internalId:  '21606AHW050INE5R2',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20100706-124256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9985',
internalId:  '',
customField: '20090607-173353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61401',
internalId:  '',
customField: '20100417-054127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68901',
internalId:  '',
customField: '20090608-025708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74801',
internalId:  '',
customField: '20090608-014711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76401',
internalId:  '',
customField: '20090607-203017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20090608-163908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20090608-030006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10006',
internalId:  '',
customField: '20090607-190949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9964',
internalId:  '',
customField: '20090608-221659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20090608-222125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20090608-025918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090608-025310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20090608-030115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67601',
internalId:  '',
customField: '20090608-164018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10048',
internalId:  '',
customField: '20090608-165229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10111',
internalId:  '',
customField: '20070820-133720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21606',
internalId:  '',
customField: '20090608-030311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20061207-012942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87125',
internalId:  '',
customField: '20100417-053448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87134',
internalId:  '',
customField: '20090608-164143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87495',
internalId:  '',
customField: '20100417-054241'
};
webappMappings['7060']=webappMappings['7060-a24cb03cdbddde9c67eebed2cd55854f']={
webappId:    '7060',
documentId:  '89163',
internalId:  'a24cb03cdbddde9c67eebed2cd55854f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89163',
internalId:  '',
customField: '20100713-033613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89172',
internalId:  '',
customField: '20100706-190440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89181',
internalId:  '',
customField: '20100706-190440'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INE5R2';
var companyName   = 'to+the+art+of+MARY+BOGUE';
var htmlTitle	  = 'marybogue.com';
var metaKeywords  = 'Mary+Bogue%2C+jazz+singer%2C+California+artist%2C+writer%2C++humorous+art%2C+contemporary+art%2C+loft+art%2C+giclee';
var metaContents  = 'Mary+Bogue%2C+California+artist%2C+artist%2C+singer+and+actor%2C+contemporary+artist%2C+contemporary+art%2C+loft+art%2C+giclee';
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();
};

