/* [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','34935',jdecode('Home'),jdecode(''),'/34935.html','true',[],''],
	['PAGE','1852',jdecode('Portfolios'),jdecode(''),'/1852/index.html','true',[ 
		['PAGE','34914',jdecode('flanerie'),jdecode(''),'/1852/34914.html','true',[],''],
		['PAGE','35514',jdecode('gossamer'),jdecode(''),'/1852/35514.html','true',[],''],
		['PAGE','36414',jdecode('ingenium'),jdecode(''),'/1852/36414.html','true',[],''],
		['PAGE','36514',jdecode('natura'),jdecode(''),'/1852/36514.html','true',[],''],
		['PAGE','36535',jdecode('urban'),jdecode(''),'/1852/36535.html','true',[],''],
		['PAGE','36556',jdecode('found'),jdecode(''),'/1852/36556.html','true',[],''],
		['PAGE','36577',jdecode('etiology'),jdecode(''),'/1852/36577.html','true',[],''],
		['PAGE','36598',jdecode('gliese'),jdecode(''),'/1852/36598.html','true',[],''],
		['PAGE','36619',jdecode('fragments'),jdecode(''),'/1852/36619.html','true',[],''],
		['PAGE','36640',jdecode('street+photography'),jdecode(''),'/1852/36640.html','true',[],''],
		['PAGE','36661',jdecode('ghost+town'),jdecode(''),'/1852/36661.html','true',[],'']
	],''],
	['PAGE','47472',jdecode('Recent+Work'),jdecode(''),'/47472/index.html','true',[ 
		['PAGE','12085',jdecode('recent+work+archive'),jdecode(''),'/47472/12085.html','true',[],'']
	],''],
	['PAGE','46772',jdecode('Youth+LEAD'),jdecode(''),'/46772.html','true',[],''],
	['PAGE','1915',jdecode('Travel+Photos+Abroad'),jdecode(''),'/1915.html','true',[],''],
	['PAGE','14718',jdecode('Travel+Photos+USA'),jdecode(''),'/14718.html','true',[],''],
	['PAGE','9585',jdecode('Light+Tempra'),jdecode(''),'/9585.html','true',[],''],
	['PAGE','1978',jdecode('Contact+Me'),jdecode(''),'/1978/index.html','true',[ 
		['PAGE','1999',jdecode('E-news+sign+up'),jdecode(''),'/1978/1999.html','true',[],'']
	],''],
	['PAGE','1936',jdecode('Bio'),jdecode(''),'/1936.html','true',[],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='555454';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'555454',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-1978aendu0in24l8']={
webappId:    '1002',
documentId:  '1978',
internalId:  '1978aendu0in24l8',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-2444']={
webappId:    '7008',
documentId:  '1999',
internalId:  '2444',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20081231-164507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1915',
internalId:  '',
customField: '20080721-222458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1936',
internalId:  '',
customField: '20080721-230043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20080308-222401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1999',
internalId:  '',
customField: '20080308-222617'
};
webappMappings['7050']=webappMappings['7050-1394']={
webappId:    '7050',
documentId:  '9585',
internalId:  '1394',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14718',
internalId:  '',
customField: '20080722-225006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12085',
internalId:  '',
customField: '20090412-115305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9585',
internalId:  '',
customField: '20080413-181821'
};
webappMappings['7060']=webappMappings['7060-7d3de5a1c7251c8433172935fc4bfee8']={
webappId:    '7060',
documentId:  '34935',
internalId:  '7d3de5a1c7251c8433172935fc4bfee8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34914',
internalId:  '',
customField: '20080830-221459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34935',
internalId:  '',
customField: '20090412-120706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35514',
internalId:  '',
customField: '20081231-165505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36414',
internalId:  '',
customField: '20080830-223752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36514',
internalId:  '',
customField: '20080830-191428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36535',
internalId:  '',
customField: '20080831-171652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36556',
internalId:  '',
customField: '20080831-173040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36577',
internalId:  '',
customField: '20080831-171411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36598',
internalId:  '',
customField: '20080830-220803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36619',
internalId:  '',
customField: '20080830-215310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36640',
internalId:  '',
customField: '20080830-224258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36661',
internalId:  '',
customField: '20080830-224411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46772',
internalId:  '',
customField: '20090104-110614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47472',
internalId:  '',
customField: '20090412-120356'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN24L8';
var companyName   = 'laetans+photography';
var htmlTitle	  = 'Laetans+Photography';
var metaKeywords  = 'fine+art+photography%2C+laetans+photography%2C+Alexis+Petri%2C+Kansas+City%2C+Tallinn%2C+Berlin%2C+photographs%2C+digital+photography%2C+new+mexico%2C+fine+art+photography';
var metaContents  = 'Laetans+Photography+--+a+website+of+Alexis+Petris+photographs.';
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();
};
