/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('Misi%C3%B3n'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','9601',jdecode('Visi%C3%B3n'),jdecode(''),'/9601.html','true',[],'',''],
	['PAGE','9622',jdecode('Bodas'),jdecode(''),'/9622.html','true',[],'',''],
	['PAGE','9664',jdecode('Quincea%C3%B1eras'),jdecode(''),'/9664.html','true',[],'',''],
	['PAGE','9706',jdecode('Bautizos'),jdecode(''),'/9706.html','true',[],'',''],
	['PAGE','9727',jdecode('Primera+Comuni%C3%B3n'),jdecode(''),'/9727.html','true',[],'',''],
	['PAGE','9748',jdecode('Fiestas+Infantiles'),jdecode(''),'/9748.html','true',[],'',''],
	['PAGE','312123',jdecode('EMPRESARIALES'),jdecode(''),'/312123.html','true',[],'',''],
	['PAGE','228812',jdecode('GRATIS+20+FOTOS+'),jdecode(''),'/228812.html','true',[],'',''],
	['PAGE','9790',jdecode('Servicios'),jdecode(''),'/9790/index.html','true',[ 
		['PAGE','9811',jdecode('Producci%C3%B3n'),jdecode(''),'/9790/9811.html','true',[],'',''],
		['PAGE','74901',jdecode('Productos'),jdecode(''),'/9790/74901.html','true',[],'',''],
		['PAGE','9832',jdecode('Renta+de+Equipo'),jdecode(''),'/9790/9832.html','true',[],'',''],
		['PAGE','9853',jdecode('Audio+e+Iluminaci%C3%B3n'),jdecode(''),'/9790/9853.html','true',[],'',''],
		['PAGE','9769',jdecode('Eventos+Especiales'),jdecode(''),'/9790/9769.html','true',[],'','']
	],'',''],
	['PAGE','9874',jdecode('Evento+del+mes'),jdecode(''),'/9874/index.html','true',[ 
		['PAGE','340156',jdecode('Indian+Independence+day'),jdecode(''),'/9874/340156.html','true',[],'',''],
		['PAGE','338356',jdecode('Bestriz+y+Juan+Jose'),jdecode(''),'/9874/338356.html','true',[],'',''],
		['PAGE','335456',jdecode('SIENNA'),jdecode(''),'/9874/335456.html','true',[],'',''],
		['PAGE','335477',jdecode('IVANNA'),jdecode(''),'/9874/335477.html','true',[],'',''],
		['PAGE','335498',jdecode('ROTARY+SANTA+ANITA'),jdecode(''),'/9874/335498.html','true',[],'',''],
		['PAGE','333056',jdecode('EXTENSIONESYPELUCAS'),jdecode(''),'/9874/333056.html','true',[],'',''],
		['PAGE','333077',jdecode('DEL+VALLE'),jdecode(''),'/9874/333077.html','true',[],'',''],
		['PAGE','329777',jdecode('DIA+DE+LA+FAMILIA+OSSO'),jdecode(''),'/9874/329777.html','true',[],'',''],
		['PAGE','325756',jdecode('Athziri'),jdecode(''),'/9874/325756.html','true',[],'',''],
		['PAGE','303123',jdecode('FABIOLA+Y+CARLOS'),jdecode(''),'/9874/303123.html','true',[],'','']
	],'',''],
	['PAGE','251212',jdecode('album+digital'),jdecode(''),'/251212.html','true',[],'',''],
	['PAGE','35201',jdecode('Promocion+del+Mes'),jdecode(''),'/35201.html','true',[],'',''],
	['PAGE','615',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/615.html','true',[],'',''],
	['PAGE','26006',jdecode('Libro+de+visitas'),jdecode(''),'/26006/index.html','true',[ 
		['PAGE','26001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/26006/26001.html','false',[],'','']
	],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Optic';
theSitetree.paletteFamily='AB8F30';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10508';
theSitetree.graphicsetId='11051';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C4A848';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Optic',
				paletteFamily: 	'AB8F30',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10508',
				graphicsetId: 	'11051',
				contentColor: 	'000000',
				contentBGColor: 'C4A848',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'C8C7C7',
				e_color: 		'C8C7C7',
				f_color: 		'C8C7C7',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-26006avec10ineber']={
webappId:    '1002',
documentId:  '26006',
internalId:  '26006avec10ineber',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9874',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20070516-205503'
};
webappMappings['7008']=webappMappings['7008-2200']={
webappId:    '7008',
documentId:  '615',
internalId:  '2200',
customField: 'language:es;country:ES;'
};
webappMappings['1501']=webappMappings['1501-2850931']={
webappId:    '1501',
documentId:  '9874',
internalId:  '2850931',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20070520-115033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20070520-121453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9622',
internalId:  '',
customField: '20100606-000808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9664',
internalId:  '',
customField: '20100616-231531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9706',
internalId:  '',
customField: '20100323-002837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9727',
internalId:  '',
customField: '20090526-224550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9748',
internalId:  '',
customField: '20100605-234908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9790',
internalId:  '',
customField: '20071028-222119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9811',
internalId:  '',
customField: '20070220-105037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74901',
internalId:  '',
customField: '20071109-010953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9832',
internalId:  '',
customField: '20070220-105940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9853',
internalId:  '',
customField: '20070220-112014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9769',
internalId:  '',
customField: '20070220-101544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9874',
internalId:  '',
customField: '20100616-224431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '333056',
internalId:  '',
customField: '20100629-192749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335498',
internalId:  '',
customField: '20100630-225646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251212',
internalId:  '',
customField: '20090609-224819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312123',
internalId:  '',
customField: '20100529-030537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335477',
internalId:  '',
customField: '20100728-195722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '338356',
internalId:  '',
customField: '20100728-182901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228812',
internalId:  '',
customField: '20090106-002040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '333077',
internalId:  '',
customField: '20100629-211026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329777',
internalId:  '',
customField: '20100629-195453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335456',
internalId:  '',
customField: '20100728-201313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303123',
internalId:  '',
customField: '20100623-221756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '340156',
internalId:  '',
customField: '20100817-202608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20100616-235347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090712-001635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26006',
internalId:  '',
customField: '20070220-123238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20070220-123238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '325756',
internalId:  '',
customField: '20100623-221444'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEBER';
var companyName   = 'VippStudio+++Fotografia+y+Video';
var htmlTitle	  = 'VippStudio';
var metaKeywords  = 'vippstudio%2C++Fotos%2C++video%2C++audio%2C++iluminacion%2C++bodas%2C++xv+a%C3%B1os%2C++gratis%2C+ROSSY+CABRERA+FOTOS';
var metaContents  = '';
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();
};
