/* [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','2373',jdecode('Contact'),jdecode(''),'/2373.html','true',[],''],
	['PAGE','2394',jdecode('Portfolio'),jdecode(''),'/2394/index.html','true',[ 
		['PAGE','5601',jdecode('Portraits%2F+Weddings'),jdecode(''),'/2394/5601.html','true',[],''],
		['PAGE','5801',jdecode('Architecture'),jdecode(''),'/2394/5801.html','true',[],''],
		['PAGE','5822',jdecode('Events+and+Concerts'),jdecode(''),'/2394/5822.html','true',[],''],
		['PAGE','5843',jdecode('Fine+Art'),jdecode(''),'/2394/5843.html','true',[],'']
	],''],
	['PAGE','2415',jdecode('Pricing'),jdecode(''),'/2415.html','true',[],''],
	['PAGE','25943',jdecode('Client+List%2FExhibitions+'),jdecode(''),'/25943.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Luanda';
theSitetree.paletteFamily='C74343';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11162';
theSitetree.graphicsetId='11971';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C74343';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Luanda',
				paletteFamily: 	'C74343',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11162',
				graphicsetId: 	'11971',
				contentColor: 	'000000',
				contentBGColor: 'C74343',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20091006-191011'
};
webappMappings['7050']=webappMappings['7050-9579']={
webappId:    '7050',
documentId:  '25943',
internalId:  '9579',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2394',
internalId:  '',
customField: '20090515-101443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20090515-093224'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-12324462']={
webappId:    '1501',
documentId:  '2301',
internalId:  '12324462',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2415',
internalId:  '',
customField: '20090515-094739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20090516-011254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20081221-114842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20090513-203635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20090513-235724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25943',
internalId:  '',
customField: '20090513-235414'
};
webappMappings['7008']=webappMappings['7008-21694']={
webappId:    '7008',
documentId:  '2373',
internalId:  '21694',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INEAP0';
var companyName   = 'VonWormer+Photography';
var htmlTitle	  = 'VonWormer+Photography';
var metaKeywords  = 'architectural+photographer%2C+arctitecture+photographer%2C++family+event+photographer%2C+family+gathering+photographer%2C++senior+pictures+photographer%2C+landscape+photography%2C+landscape+photographer%2C+interior+photographer%2C++corporate+events+photographer%2C+corporate+event+photographer%2C+Parties+photographer%2C+party+photographer%2C+Detroit+portrait+photographer%2C+Metro+Area+portrait+photography%2C+VonWormer+Photography%2C+Pet+Photographer%2C+Pet+Photography%2C+Detroit+Area+Photographers%2C+Birmigham+Photographer%2C+Bloomfield+Hills+Photographer%2C+Grosse+Pointe+Photographer%2C+St.+Clair+Shores+Photographer%2C+Rochester+Hills+Photographer%2C+Shelby+Township+Photographer%2C+Utica+Photographer%2C+Teenage+Photographer%2C+College+for+the+Creative+Studies+Photographer%2C+Detroit+Area+Event+Photographer%2C+Detroit+Event+Photographer%2C+Children+Portrait+Photographer%2C+Graduation+Event+Photographer%2C+Graduation+Party+Photographer%2C+Engagement+Photographer%2C+Detroit+Area+Portrait+Photographer%2C+Grosse+Pointe+Michigan+Photographer%2C+Eastern+Michigan+Photographer%2C+Southern+Michigan+Photographer%2C+Novi+Photographer%2C+Ann+Arbor+Photographer%2C+Snowboarding+and+Skiing+Photographer%2C+Snowboarding+Photographer%2C+Sports+Photographer%2C+Sports+Photographey+Job%2C+Metro+Area+Sports+Photographer%2C+High+School+Sports+Photographer%2C+Yearbook+Photographer%2C+School+Function+Photographer%2C+School+Photographer%2C++Fine+Art+Photographer%2C+Flickr+Photographer%2C+Nikon+User+Photographer%2C';
var metaContents  = 'VonWormer+Photography+is+a+family+owned+business.+We+provide+services+in+the+Metro+Detroit+area%2C+including+Birmigham%2C+Bloomfield+Hills%2C+Grosse+Pointe%2C+St.+Clair+Shores%2C+Rochester+Hills%2C+Shelby+Township%2C+and+all+other+surrounding+areas.+We+do+family+portraits%2C+architecture%2C+family+gatherings%2C+senior+pictures%2C+landscape+photography%2C+corporate+events%2C+business+events+and+gatherings%2C+interior+and+exterior+photography%2C+and+parties.++';
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();
};
