/* [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','701',jdecode('Home'),jdecode(''),'/701/index.html','true',[ 
		['PAGE','23601',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/701/23601.html','false',[],'']
	],''],
	['PAGE','88859',jdecode('MOBILE+NOTARY'),jdecode(''),'/88859.html','true',[],''],
	['PAGE','1109',jdecode('MY+MUSIC'),jdecode(''),'/1109/index.html','true',[ 
		['PAGE','1130',jdecode('Listen%2Fpurchase'),jdecode(''),'/1109/1130.html','true',[],'']
	],''],
	['PAGE','752',jdecode('PHOTOGRAPHY'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','794',jdecode('Recognitions%2C+letters'),jdecode(''),'/752/794.html','true',[],''],
		['PAGE','35401',jdecode('People+and+Places'),jdecode(''),'/752/35401.html','true',[],''],
		['PAGE','836',jdecode('Attila%26%23x27%3Bs+History'),jdecode(''),'/752/836.html','true',[],''],
		['PAGE','57601',jdecode('Celebrities'),jdecode(''),'/752/57601.html','true',[],'']
	],''],
	['PAGE','73801',jdecode('MODEL+AGENCY'),jdecode(''),'/73801.html','true',[],''],
	['PAGE','10901',jdecode('REAL+ESTATE'),jdecode(''),'/10901/index.html','true',[ 
		['PAGE','1067',jdecode('Current+Listings'),jdecode(''),'/10901/1067.html','true',[],''],
		['PAGE','1088',jdecode('News'),jdecode(''),'/10901/1088.html','true',[],'']
	],''],
	['PAGE','941',jdecode('Shop'),jdecode(''),'/941/index.html','true',[ 
		['PAGE','962',jdecode('Attila%22s+Music+Downloads'),jdecode(''),'/941/962.html','true',[],'']
	],''],
	['PAGE','1046',jdecode('Links'),jdecode(''),'/1046.html','true',[],''],
	['PAGE','857',jdecode('About+us'),jdecode(''),'/857/index.html','true',[ 
		['PAGE','983',jdecode('Contact'),jdecode(''),'/857/983.html','true',[],''],
		['PAGE','1025',jdecode('Job+Opportunities'),jdecode(''),'/857/1025.html','true',[],'']
	],''],
	['PAGE','37806',jdecode('Guestbook'),jdecode(''),'/37806/index.html','true',[ 
		['PAGE','37801',jdecode('Read+Guestbook'),jdecode(''),'/37806/37801.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10367';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10367',
				graphicsetId: 	'10527',
				contentColor: 	'FFFFFF',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-ahw050inx3bj9d21dcf39ff8fb26']={
webappId:    '1001',
documentId:  '701',
internalId:  'ahw050inx3bj9d21dcf39ff8fb26',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inx3bj9d21dcf39ff8fb26']={
webappId:    '1001',
documentId:  '23601',
internalId:  'ahw050inx3bj9d21dcf39ff8fb26',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20081213-135907'
};
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: '20100411-235505'
};
webappMappings['1002']=webappMappings['1002-37806AHW050INX3BJ']={
webappId:    '1002',
documentId:  '37806',
internalId:  '37806AHW050INX3BJ',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100411-233047'
};
webappMappings['7060']=webappMappings['7060-013dc5b6431df1c2aa96a3db4ee368a2']={
webappId:    '7060',
documentId:  '57601',
internalId:  '013dc5b6431df1c2aa96a3db4ee368a2',
customField: 'language:en;country:US;'
};
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: '20100411-233911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1067',
internalId:  '',
customField: '20100411-234042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1088',
internalId:  '',
customField: '20090701-133305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20100411-235330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20080731-215508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1046',
internalId:  '',
customField: '20100411-234857'
};
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: '20100412-000109'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INX3BJ';
var companyName   = 'ATTILA+CSUPO+INTERNATIONAL';
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();
};
