/* [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','2301',jdecode('Home'),jdecode(''),'/2301.html','true',[],''],
	['PAGE','7078',jdecode('Gallery'),jdecode(''),'/7078.html','true',[],''],
	['PAGE','4120',jdecode('Exhibitions'),jdecode(''),'/4120.html','true',[],''],
	['PAGE','4183',jdecode('Biography'),jdecode(''),'/4183/index.html','true',[ 
		['PAGE','4204',jdecode('Transrealism'),jdecode(''),'/4183/4204.html','true',[],'']
	],''],
	['PAGE','4141',jdecode('Blog+Sedah'),jdecode(''),'/4141.html','true',[],''],
	['PAGE','4162',jdecode('Contact'),jdecode(''),'/4162.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Elegant';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32899';
theSitetree.graphicsetId='13971';
theSitetree.contentColor='cab397';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Elegant',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32899',
				graphicsetId: 	'13971',
				contentColor: 	'cab397',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7050']=webappMappings['7050-1343']={
webappId:    '7050',
documentId:  '4141',
internalId:  '1343',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-5585']={
webappId:    '7008',
documentId:  '4162',
internalId:  '5585',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20090324-062624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7078',
internalId:  '',
customField: '20090324-063249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4120',
internalId:  '',
customField: '20090323-102555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4141',
internalId:  '',
customField: '20090324-063644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4162',
internalId:  '',
customField: '20090323-104513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4183',
internalId:  '',
customField: '20090323-104002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4204',
internalId:  '',
customField: '20090324-054702'
};
webappMappings['1501']=webappMappings['1501-13781162']={
webappId:    '1501',
documentId:  '2301',
internalId:  '13781162',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-c9fa226b3268fd60914a2f0c896649f9']={
webappId:    '7060',
documentId:  '7078',
internalId:  'c9fa226b3268fd60914a2f0c896649f9',
customField: 'language:en;country:US;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH06H';
var companyName   = 'Zsuzsa+Mathe+--+The+Poet+among+Painters+++++++++++';
var htmlTitle	  = 'Zsuzsa+Mathe+--+The+Poet+among+the+Painters';
var metaKeywords  = 'transrealism%2C+transrealist%2C+expressionism%2C+Zsuzsa+Mathe%2C+M%C3%A1the+Sedah%2C+M%C3%A1th%C3%A9+Zsuzsa%2C+original+oil+painting%2C+expressionist%2C+surrealism%2C+surrealist%2C+conceptualism%2C+conceptualist%2C+contemporary+painter%2C+contemporary+paintings%2C+kort%C3%A1rs+fest%C5%91%2C+andy+warhol%2C+pablo+picasso%2C+thomas+ruff%2C+okeefe%2C+van+gogh%2C+monet%2C+manet%2C+csontv%C3%A1ry%2C+rippl+r%C3%B3nai%2C+munk%C3%A1csy+mih%C3%A1ly%2C+magyar+fest%C5%91k%2C+hungarian+painter%2C+XX.+painter%2C+XIX.+century+painter%2C+21st+century+painter+XIX.+sz%C3%A1zadi+fest%C5%91%2C+21.+sz%C3%A1zadi+fest%C5%91%2C+transzrealizmus%2C+transzrealista%2C+%C3%BAj+hull%C3%A1m%2C+new+wave%2C+german+new+wave%2C+gothic%2C+g%C3%B3t%2C+poet+among+painters%2C+poet';
var metaContents  = 'Zsuzsa+Mathe+--+The+Poet+among+the+Painters.++Paintings+by+one+of+the+most+original+artists+of+the+21st+century';
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();
};

