/* [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','701',jdecode('Home'),jdecode(''), jdecode('%2F701%2Findex.html'), 'true',[ 
		['PAGE','23601',jdecode('Home+%28follow+up+page%29'),jdecode(''), jdecode('%2F701%2F23601.html'), 'false',[],'','']
	],'',''],
	['PAGE','88859',jdecode('MOBILE+NOTARY'),jdecode(''), jdecode('%2F88859.html'), 'true',[],'',''],
	['PAGE','1109',jdecode('MY+MUSIC'),jdecode(''), jdecode('%2F1109%2Findex.html'), 'true',[ 
		['PAGE','1130',jdecode('Listen%2Fpurchase'),jdecode(''), jdecode('%2F1109%2F1130.html'), 'true',[],'','']
	],'',''],
	['PAGE','752',jdecode('PHOTOGRAPHY'),jdecode(''), jdecode('%2F752%2Findex.html'), 'true',[ 
		['PAGE','794',jdecode('Recognitions%2C+letters'),jdecode(''), jdecode('%2F752%2F794.html'), 'true',[],'',''],
		['PAGE','35401',jdecode('People+and+Places'),jdecode(''), jdecode('%2F752%2F35401.html'), 'true',[],'',''],
		['PAGE','836',jdecode('Attila%26%23x27%3Bs+History'),jdecode(''), jdecode('%2F752%2F836.html'), 'true',[],'',''],
		['PAGE','57601',jdecode('Celebrities'),jdecode(''), jdecode('%2F752%2F57601.html'), 'true',[],'','']
	],'',''],
	['PAGE','73801',jdecode('MODEL+AGENCY'),jdecode(''), jdecode('%2F73801.html'), 'true',[],'',''],
	['PAGE','10901',jdecode('REAL+ESTATE'),jdecode(''), jdecode('%2F10901%2Findex.html'), 'true',[ 
		['PAGE','1067',jdecode('Current+Listings'),jdecode(''), jdecode('%2F10901%2F1067.html'), 'true',[],'',''],
		['PAGE','1088',jdecode('News'),jdecode(''), jdecode('%2F10901%2F1088.html'), 'true',[],'','']
	],'',''],
	['PAGE','941',jdecode('Shop'),jdecode(''), jdecode('%2F941%2Findex.html'), 'true',[ 
		['PAGE','962',jdecode('Attila%22s+Music+Downloads'),jdecode(''), jdecode('%2F941%2F962.html'), 'true',[],'','']
	],'',''],
	['PAGE','1046',jdecode('Links'),jdecode(''), jdecode('%2F1046.html'), 'true',[],'',''],
	['PAGE','857',jdecode('About+us'),jdecode(''), jdecode('%2F857%2Findex.html'), 'true',[ 
		['PAGE','983',jdecode('Contact'),jdecode(''), jdecode('%2F857%2F983.html'), 'true',[],'',''],
		['PAGE','1025',jdecode('Job+Opportunities'),jdecode(''), jdecode('%2F857%2F1025.html'), 'true',[],'','']
	],'',''],
	['PAGE','37806',jdecode('Guestbook'),jdecode(''), jdecode('%2F37806%2Findex.html'), 'true',[ 
		['PAGE','37801',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F37806%2F37801.html'), 'true',[],'','']
	],'',''],
	['PAGE','92562',jdecode('Los+Angeles+Live+Scan'),jdecode(''), jdecode('%2F92562.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='A3CAFE';
theSitetree.keyvisualId='780';
theSitetree.keyvisualName='uhr.jpg';
theSitetree.fontsetId='142';
theSitetree.graphicsetId='161';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Metal',
				paletteFamily: 	'A3CAFE',
				keyvisualId: 	'780',
				keyvisualName: 	'uhr.jpg',
				fontsetId: 		'142',
				graphicsetId: 	'161',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'A3CAFE',
				b_color: 		'87A7D2',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20110307-165223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20090627-134207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20070811-185110'
};
webappMappings['1501']=webappMappings['1501-206912']={
webappId:    '1501',
documentId:  '701',
internalId:  '206912',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1109',
internalId:  '',
customField: '20110307-165141'
};
webappMappings['1002']=webappMappings['1002-37806AHW050INX3BJ']={
webappId:    '1002',
documentId:  '37806',
internalId:  '37806AHW050INX3BJ',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20110307-164713'
};
webappMappings['7060']=webappMappings['7060-013dc5b6431df1c2aa96a3db4ee368a2']={
webappId:    '7060',
documentId:  '57601',
internalId:  '013dc5b6431df1c2aa96a3db4ee368a2',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92562',
internalId:  '',
customField: '20110814-020929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1130',
internalId:  '',
customField: '20080731-235216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35401',
internalId:  '',
customField: '20070914-062038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20090224-004020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20090627-134022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73801',
internalId:  '',
customField: '20080110-054008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20110307-172034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1067',
internalId:  '',
customField: '20110307-175353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1088',
internalId:  '',
customField: '20110307-170835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20110307-172237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20110307-171420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1046',
internalId:  '',
customField: '20110307-171852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20080529-230819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983',
internalId:  '',
customField: '20100411-235154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1025',
internalId:  '',
customField: '20100411-235237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37806',
internalId:  '',
customField: '20080627-193654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20081213-150926'
};
webappMappings['7060']=webappMappings['7060-f7712d6cb82a85cfafa4d45fcfeea8a2']={
webappId:    '7060',
documentId:  '35401',
internalId:  'f7712d6cb82a85cfafa4d45fcfeea8a2',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-a60584a640561d91754dad06d4c9b7e5']={
webappId:    '7060',
documentId:  '57601',
internalId:  'a60584a640561d91754dad06d4c9b7e5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88859',
internalId:  '',
customField: '20110307-164914'
};
webappMappings['7008']=webappMappings['7008-9953']={
webappId:    '7008',
documentId:  '701',
internalId:  '9953',
customField: 'language:en;country:US;'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INX3BJ';
var companyName   = 'A+T+T+I+L+A+++C+S+U+P+O++-Real+Estate+';
var htmlTitle	  = 'Real+Estate%2C+Notary%2C+Music+and+Photography';
var metaKeywords  = 'Photography%2C+Real+Estate+Services%2C+Real+Estate+Agent%2C+Real+Estate+Agent+in+Los+Angeles%2C+Professional+Photographer+in+Los+Angeles%2C+Professional+Photographer+in+Beverly+Hills%2C+Celebrity+pictures+for+sale%2C+attila+csupo%2C+best+realtor+in+los+angeles%2C+notary+public%2C+musician%2C+marina+del+rey%2C+telecom+specialist%2C';
var metaContents  = 'Real+Estate+photography+professional+services+music+piano+youtube+content+hungarian+american+celebrities+';
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();
};

