/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','43701',jdecode('GALLERY+'),jdecode(''),'/43701/index.html','true',[ 
		['PAGE','68601',jdecode('GALLERY+CONT.'),jdecode(''),'/43701/68601.html','true',[],'',''],
		['PAGE','43201',jdecode('Shop'),jdecode(''),'/43701/43201.html','true',[],'',''],
		['PAGE','108312',jdecode('ABSTRACT+ART%2C+LG'),jdecode(''),'/43701/108312.html','true',[],'',''],
		['PAGE','113212',jdecode('Abstract+Art+I'),jdecode(''),'/43701/113212.html','false',[],'',''],
		['PAGE','113233',jdecode('Abstract+Art+II'),jdecode(''),'/43701/113233.html','true',[],'',''],
		['PAGE','114212',jdecode('Abstract+Art+III'),jdecode(''),'/43701/114212.html','false',[],'',''],
		['PAGE','114233',jdecode('Abstract+Art+IV'),jdecode(''),'/43701/114233.html','false',[],'',''],
		['PAGE','115412',jdecode('Abstract+Art+V'),jdecode(''),'/43701/115412.html','true',[],'',''],
		['PAGE','115433',jdecode('Abstract+Art+VI'),jdecode(''),'/43701/115433.html','false',[],'',''],
		['PAGE','115454',jdecode('Abstract+Art+VII'),jdecode(''),'/43701/115454.html','false',[],'',''],
		['PAGE','115475',jdecode('Abstract+Art+VIII'),jdecode(''),'/43701/115475.html','false',[],'',''],
		['PAGE','115496',jdecode('Abstract+Art+IX'),jdecode(''),'/43701/115496.html','false',[],'',''],
		['PAGE','115517',jdecode('Abstract+Art+X'),jdecode(''),'/43701/115517.html','false',[],'',''],
		['PAGE','115538',jdecode('Abstract+Art+XI'),jdecode(''),'/43701/115538.html','false',[],'',''],
		['PAGE','115559',jdecode('Abstract+Art+XII'),jdecode(''),'/43701/115559.html','false',[],'',''],
		['PAGE','115580',jdecode('Abstract+Art+XIII'),jdecode(''),'/43701/115580.html','false',[],'',''],
		['PAGE','115601',jdecode('Abstract+Art+XIV'),jdecode(''),'/43701/115601.html','false',[],'',''],
		['PAGE','115622',jdecode('Abstract+Art+XV'),jdecode(''),'/43701/115622.html','false',[],'',''],
		['PAGE','115643',jdecode('Abstract+Art+XVI'),jdecode(''),'/43701/115643.html','true',[],'',''],
		['PAGE','115664',jdecode('Abstract+Art+XVII'),jdecode(''),'/43701/115664.html','true',[],'',''],
		['PAGE','115685',jdecode('Abstract+Art+XVIII'),jdecode(''),'/43701/115685.html','true',[],'',''],
		['PAGE','115706',jdecode('Abstract+Art+XIX'),jdecode(''),'/43701/115706.html','false',[],'',''],
		['PAGE','115727',jdecode('Abstract+Art+XX'),jdecode(''),'/43701/115727.html','true',[],'',''],
		['PAGE','115748',jdecode('Abstract+Art+XXI'),jdecode(''),'/43701/115748.html','false',[],'',''],
		['PAGE','115769',jdecode('Abstract+Art+XXII'),jdecode(''),'/43701/115769.html','false',[],'',''],
		['PAGE','115811',jdecode('Abstract+Art+XXIII'),jdecode(''),'/43701/115811.html','true',[],'',''],
		['PAGE','115832',jdecode('Abstract+Art+XXIV'),jdecode(''),'/43701/115832.html','true',[],'',''],
		['PAGE','115853',jdecode('Abstract+Art+XXV'),jdecode(''),'/43701/115853.html','true',[],'',''],
		['PAGE','115874',jdecode('Abstract+Art+XXVI'),jdecode(''),'/43701/115874.html','false',[],'',''],
		['PAGE','115895',jdecode('Abstract+Art+XXVII'),jdecode(''),'/43701/115895.html','true',[],'',''],
		['PAGE','137112',jdecode('Abstract+Art+XXVIII'),jdecode(''),'/43701/137112.html','true',[],'',''],
		['PAGE','137133',jdecode('Abstract+Art+XXIX'),jdecode(''),'/43701/137133.html','true',[],'',''],
		['PAGE','137154',jdecode('Abstract+Art+XXX'),jdecode(''),'/43701/137154.html','true',[],'',''],
		['PAGE','6243',jdecode('REALISM'),jdecode(''),'/43701/6243.html','true',[],'','']
	],'',''],
	['PAGE','119712',jdecode('GALLERY+II'),jdecode(''),'/119712.html','false',[],'',''],
	['PAGE','175553',jdecode('PAINTINGS+BY+COLOR'),jdecode(''),'/175553/index.html','false',[ 
		['PAGE','175574',jdecode('BLACKS'),jdecode(''),'/175553/175574.html','true',[],'',''],
		['PAGE','175595',jdecode('BLUES'),jdecode(''),'/175553/175595.html','true',[],'',''],
		['PAGE','175616',jdecode('EARTHTONES'),jdecode(''),'/175553/175616.html','true',[],'',''],
		['PAGE','175637',jdecode('GREENS'),jdecode(''),'/175553/175637.html','true',[],'',''],
		['PAGE','175658',jdecode('REDS'),jdecode(''),'/175553/175658.html','true',[],'',''],
		['PAGE','175679',jdecode('WHITES'),jdecode(''),'/175553/175679.html','true',[],'',''],
		['PAGE','175700',jdecode('YELLOWS'),jdecode(''),'/175553/175700.html','true',[],'','']
	],'',''],
	['PAGE','93001',jdecode('WORKS+COLLECTED'),jdecode(''),'/93001/index.html','true',[ 
		['PAGE','41122',jdecode('WORKS+COLLECTED+%26%23x27%3B06'),jdecode(''),'/93001/41122.html','true',[],'',''],
		['PAGE','50301',jdecode('WORKS+COLLECTED+%26%23x27%3B07'),jdecode(''),'/93001/50301.html','true',[],'',''],
		['PAGE','59501',jdecode('%26%23x27%3B07+CONT.'),jdecode(''),'/93001/59501.html','true',[],'',''],
		['PAGE','77801',jdecode('WORKS+COLLECTED+%26%23x27%3B08'),jdecode(''),'/93001/77801.html','true',[],'',''],
		['PAGE','79001',jdecode('WORKS+COLLECTED+%26%23x27%3B09'),jdecode(''),'/93001/79001.html','true',[],'',''],
		['PAGE','171153',jdecode('WORKS+COLLECTED+%26%23x27%3B10'),jdecode(''),'/93001/171153.html','true',[],'',''],
		['PAGE','249663',jdecode('WORKS+COLLECTED+%26%23x27%3B11'),jdecode(''),'/93001/249663.html','true',[],'','']
	],'',''],
	['PAGE','85001',jdecode('Abstract+Art+Info'),jdecode(''),'/85001/index.html','true',[ 
		['PAGE','92201',jdecode('Abstract+Art'),jdecode(''),'/85001/92201.html','true',[],'',''],
		['PAGE','86601',jdecode('Abstract%3A+Definition'),jdecode(''),'/85001/86601.html','true',[],'',''],
		['PAGE','85422',jdecode('Abstract+Expressionism'),jdecode(''),'/85001/85422.html','false',[],'',''],
		['PAGE','86622',jdecode('Action+Painting'),jdecode(''),'/85001/86622.html','true',[],'',''],
		['PAGE','85401',jdecode('Cubism'),jdecode(''),'/85001/85401.html','false',[],'',''],
		['PAGE','86643',jdecode('Emotive'),jdecode(''),'/85001/86643.html','false',[],'',''],
		['PAGE','85101',jdecode('History'),jdecode(''),'/85001/85101.html','false',[],'',''],
		['PAGE','85443',jdecode('Neo+Plasticism'),jdecode(''),'/85001/85443.html','false',[],'',''],
		['PAGE','86664',jdecode('Prehistory'),jdecode(''),'/85001/86664.html','false',[],'',''],
		['PAGE','88001',jdecode('Personal+Views'),jdecode(''),'/85001/88001.html','false',[],'',''],
		['PAGE','85464',jdecode('Symbols'),jdecode(''),'/85001/85464.html','false',[],'','']
	],'',''],
	['PAGE','207',jdecode('Bio'),jdecode(''),'/207.html','true',[],'',''],
	['PAGE','216541',jdecode('Contact'),jdecode(''),'/216541.html','true',[],'',''],
	['PAGE','5802',jdecode('Guestbook'),jdecode(''),'/5802/index.html','false',[ 
		['PAGE','5803',jdecode('Read+Guestbook'),jdecode(''),'/5802/5803.html','false',[],'','']
	],'',''],
	['PAGE','219752',jdecode('Events'),jdecode(''),'/219752.html','false',[],'',''],
	['PAGE','17601',jdecode('Novel'),jdecode(''),'/17601/index.html','true',[ 
		['PAGE','54901',jdecode('Journal'),jdecode(''),'/17601/54901.html','false',[],'',''],
		['PAGE','55401',jdecode('Above+the+Equator'),jdecode(''),'/17601/55401.html','true',[],'',''],
		['PAGE','185264',jdecode('Above+the+Equator%2C+cont.'),jdecode(''),'/17601/185264.html','true',[],'',''],
		['PAGE','18122',jdecode('Cr%C3%A9er-+Art'),jdecode(''),'/17601/18122.html','false',[],'','']
	],'',''],
	['PAGE','232',jdecode('Links'),jdecode(''),'/232/index.html','true',[ 
		['PAGE','119012',jdecode('Favorite+Artists'),jdecode(''),'/232/119012.html','true',[],'','']
	],'',''],
	['PAGE','42701',jdecode('News'),jdecode(''),'/42701.html','false',[],'','']];
var siteelementCount=78;
theSitetree.topTemplateName='Clean';
theSitetree.paletteFamily='B5B5B5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33270';
theSitetree.graphicsetId='14153';
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: 			'Clean',
				paletteFamily: 	'B5B5B5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33270',
				graphicsetId: 	'14153',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'787878',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-5802aen010i']={
webappId:    '1002',
documentId:  '5802',
internalId:  '5802aen010i',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20110611-112550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175553',
internalId:  '',
customField: '20100824-090149'
};
webappMappings['4001']=webappMappings['4001-6414086']={
webappId:    '4001',
documentId:  '43201',
internalId:  '6414086',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207',
internalId:  '',
customField: '20110424-121926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43701',
internalId:  '',
customField: '20110611-111537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20110611-112001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20100912-125746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20110402-143355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20091208-211320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55401',
internalId:  '',
customField: '20100329-171122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18122',
internalId:  '',
customField: '20091208-213141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219752',
internalId:  '',
customField: '20110307-154903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41122',
internalId:  '',
customField: '20110414-111628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50301',
internalId:  '',
customField: '20110414-111832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59501',
internalId:  '',
customField: '20110414-112041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216541',
internalId:  '',
customField: '20110402-144617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20110402-141009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5802',
internalId:  '',
customField: '20100114-000550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5803',
internalId:  '',
customField: '20050329-215743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42701',
internalId:  '',
customField: '20110307-152019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20110424-113705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79001',
internalId:  '',
customField: '20110414-112740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77801',
internalId:  '',
customField: '20110414-112305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20110306-161249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85101',
internalId:  '',
customField: '20100824-123342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85401',
internalId:  '',
customField: '20100824-123133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85422',
internalId:  '',
customField: '20100824-122904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85443',
internalId:  '',
customField: '20100824-123447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85464',
internalId:  '',
customField: '20100824-123738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115874',
internalId:  '',
customField: '20110306-150437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115895',
internalId:  '',
customField: '20100824-083038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119012',
internalId:  '',
customField: '20110402-142054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119712',
internalId:  '',
customField: '20100824-083345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171153',
internalId:  '',
customField: '20110611-115211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137133',
internalId:  '',
customField: '20100824-112027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137154',
internalId:  '',
customField: '20110614-073207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86601',
internalId:  '',
customField: '20100824-122758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86622',
internalId:  '',
customField: '20100824-123003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86643',
internalId:  '',
customField: '20100824-123207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86664',
internalId:  '',
customField: '20100824-123526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88001',
internalId:  '',
customField: '20100824-123601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92201',
internalId:  '',
customField: '20100824-122725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93001',
internalId:  '',
customField: '20100824-115106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115853',
internalId:  '',
customField: '20100824-111425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115832',
internalId:  '',
customField: '20100824-111244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115811',
internalId:  '',
customField: '20100824-110944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137112',
internalId:  '',
customField: '20100824-111941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115769',
internalId:  '',
customField: '20110306-150113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115748',
internalId:  '',
customField: '20110306-150035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115727',
internalId:  '',
customField: '20110524-164516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115706',
internalId:  '',
customField: '20110306-145826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115685',
internalId:  '',
customField: '20100824-102629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115664',
internalId:  '',
customField: '20100824-102431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115643',
internalId:  '',
customField: '20100824-102308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115622',
internalId:  '',
customField: '20110306-145426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115601',
internalId:  '',
customField: '20110306-145340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115580',
internalId:  '',
customField: '20110306-145256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115559',
internalId:  '',
customField: '20110306-145218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115538',
internalId:  '',
customField: '20100925-132127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115517',
internalId:  '',
customField: '20100925-125729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115496',
internalId:  '',
customField: '20110306-145045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115475',
internalId:  '',
customField: '20110306-144958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115454',
internalId:  '',
customField: '20110306-144923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115433',
internalId:  '',
customField: '20110306-144421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115412',
internalId:  '',
customField: '20100824-095414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114233',
internalId:  '',
customField: '20100824-095049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114212',
internalId:  '',
customField: '20110306-144317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113233',
internalId:  '',
customField: '20100824-094853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113212',
internalId:  '',
customField: '20110306-144214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108312',
internalId:  '',
customField: '20110402-182101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175574',
internalId:  '',
customField: '20101106-093146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175595',
internalId:  '',
customField: '20101106-093542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175616',
internalId:  '',
customField: '20101106-094102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175637',
internalId:  '',
customField: '20101106-094438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175658',
internalId:  '',
customField: '20100824-114014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175679',
internalId:  '',
customField: '20101106-094649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175700',
internalId:  '',
customField: '20101106-094840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185264',
internalId:  '',
customField: '20100321-175533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249663',
internalId:  '',
customField: '20110525-153514'
};
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INXXQH';
var companyName   = 'Jill+Lorraine';
var htmlTitle	  = 'Abstract+Art%2C+Abstract+Art+for+Sale';
var metaKeywords  = 'Abstract+Art%2C+Modern+Art%2C+Contemporary+Art%2C+Jill+Lorraine';
var metaContents  = 'Abstract+Art+and+Modern+Art+by+Jill+Lorraine.+';
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();
};

