/* [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','216019',jdecode('In%C3%ADcio'),jdecode(''),'/216019.html','true',[],'',''],
	['PAGE','183397',jdecode('Quem+somos'),jdecode(''),'/183397.html','true',[],'',''],
	['PAGE','198608',jdecode('Servi%C3%A7os'),jdecode(''),'/198608.html','true',[],'',''],
	['PAGE','190797',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/190797.html','true',[],'',''],
	['PAGE','222541',jdecode('Fotos+'),jdecode(''),'/222541/index.html','true',[ 
		['PAGE','222562',jdecode('Festas+Infantis'),jdecode(''),'/222541/222562.html','true',[],'',''],
		['PAGE','222583',jdecode('Casamentos'),jdecode(''),'/222541/222583.html','true',[],'',''],
		['PAGE','222604',jdecode('15+Anos%2C+Bodas%2C+Batizados'),jdecode(''),'/222541/222604.html','true',[],'',''],
		['PAGE','222667',jdecode('Abduch+Empreendimentos'),jdecode(''),'/222541/222667.html','true',[],'',''],
		['PAGE','222625',jdecode('Capas+e+M%C3%ADdias'),jdecode(''),'/222541/222625.html','true',[],'',''],
		['PAGE','222646',jdecode('Book'),jdecode(''),'/222541/222646.html','true',[],'','']
	],'',''],
	['PAGE','183637',jdecode('V%C3%ADdeos'),jdecode(''),'/183637.html','true',[],'',''],
	['PAGE','219119',jdecode('Produtos'),jdecode(''),'/219119.html','true',[],'',''],
	['PAGE','208108',jdecode('Clientes'),jdecode(''),'/208108.html','true',[],'',''],
	['PAGE','183658',jdecode('Contato'),jdecode(''),'/183658.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Capacity';
theSitetree.paletteFamily='5692C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33280';
theSitetree.graphicsetId='14155';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capacity',
				paletteFamily: 	'5692C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33280',
				graphicsetId: 	'14155',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '216019',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-523cff16e5f0d60fc9751bc6137f8863']={
webappId:    '7060',
documentId:  '222562',
internalId:  '523cff16e5f0d60fc9751bc6137f8863',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-1a9287184ecf6b55a3e20bf2cc29b41c']={
webappId:    '7060',
documentId:  '222583',
internalId:  '1a9287184ecf6b55a3e20bf2cc29b41c',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-83bdbc422dbbed659eda2b299393a54d']={
webappId:    '7060',
documentId:  '222625',
internalId:  '83bdbc422dbbed659eda2b299393a54d',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219119',
internalId:  '',
customField: '20100715-225341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183637',
internalId:  '',
customField: '20100724-071610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190797',
internalId:  '',
customField: '20100715-231001'
};
webappMappings['7060']=webappMappings['7060-6504be204d1a159c55a7a1695dc8c8f4']={
webappId:    '7060',
documentId:  '222604',
internalId:  '6504be204d1a159c55a7a1695dc8c8f4',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216019',
internalId:  '',
customField: '20100719-212819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183658',
internalId:  '',
customField: '20100714-151014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183397',
internalId:  '',
customField: '20100714-153716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208108',
internalId:  '',
customField: '20100719-202613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198608',
internalId:  '',
customField: '20100715-222704'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '216019',
internalId:  '1501',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-f234d14f72f3d4eb6b41632ed4f3d71a']={
webappId:    '7060',
documentId:  '222646',
internalId:  'f234d14f72f3d4eb6b41632ed4f3d71a',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-24986fd2050d92bc3bdf080a0898fe36']={
webappId:    '7060',
documentId:  '222667',
internalId:  '24986fd2050d92bc3bdf080a0898fe36',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222541',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222562',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222583',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222604',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222667',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222625',
internalId:  '',
customField: '20100725-142747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222646',
internalId:  '',
customField: '20100725-142747'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHHW2';
var companyName   = 'Mocinho+Foto+e+V%C3%ADdeo';
var htmlTitle	  = 'Mocinho+Foto+e+V%C3%ADdeo';
var metaKeywords  = 'Filmagem%2C+Foto%2C+Festa+Infantil%2C+Casamento%2C+Bodas%2C+Buffet%2C+';
var metaContents  = 'Filmagem+e+Foto+de+eventos+sociais%2C+Festa+Infantil%2C+Casamentos%2C+Bodas%2C+Shows+e+etc...';
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();
};
