/* [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','4690',jdecode('INICIO'),jdecode(''),'/4690.html','true',[],'',''],
	['PAGE','4663',jdecode('EMPRESA'),jdecode(''),'/4663/index.html','true',[ 
		['PAGE','6101',jdecode('PLANTA+TEQUISQUIAPAN'),jdecode(''),'/4663/6101.html','true',[],'','']
	],'',''],
	['PAGE','4606',jdecode('CATALOGO'),jdecode(''),'/4606/index.html','true',[ 
		['PAGE','39445',jdecode('REC%C3%81MARAS'),jdecode(''),'/4606/39445.html','true',[],'',''],
		['PAGE','39454',jdecode('COMEDORES'),jdecode(''),'/4606/39454.html','true',[],'',''],
		['PAGE','39463',jdecode('MESAS'),jdecode(''),'/4606/39463.html','true',[],'',''],
		['PAGE','39472',jdecode('MUEBLES+Y+ACCESORIOS'),jdecode(''),'/4606/39472.html','true',[],'',''],
		['PAGE','39481',jdecode('MODULARES+'),jdecode(''),'/4606/39481.html','true',[],'',''],
		['PAGE','40332',jdecode('CANTINAS'),jdecode(''),'/4606/40332.html','true',[],'',''],
		['PAGE','41091',jdecode('SALAS'),jdecode(''),'/4606/41091.html','true',[],'','']
	],'',''],
	['PAGE','41132',jdecode('DISTRIBUIDORES'),jdecode(''),'/41132.html','true',[],'',''],
	['PAGE','15721',jdecode('ENCUESTA'),jdecode(''),'/15721.html','true',[],'',''],
	['PAGE','6801',jdecode('CONTACTO'),jdecode(''),'/6801/index.html','true',[ 
		['PAGE','15502',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/6801/15502.html','false',[],'','']
	],'',''],
	['PAGE','6302',jdecode('LIBRO+VISITAS'),jdecode(''),'/6302/index.html','false',[ 
		['PAGE','6303',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/6302/6303.html','false',[],'','']
	],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='142F4A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='76';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='828D98';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'142F4A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'76',
				contentColor: 	'000000',
				contentBGColor: '828D98',
				a_color: 		'142F4A',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4663',
internalId:  '',
customField: '20090330-232708'
};
webappMappings['1002']=webappMappings['1002-6302AVEC10INXE0L']={
webappId:    '1002',
documentId:  '6302',
internalId:  '6302AVEC10INXE0L',
customField: 'icq=false'
};
webappMappings['7005']=webappMappings['7005-539']={
webappId:    '7005',
documentId:  '15721',
internalId:  '539',
customField: 'language:es;country:ES;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4690',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39472',
internalId:  '',
customField: '20090327-002854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4690',
internalId:  '',
customField: '20090421-224054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41132',
internalId:  '',
customField: '20090421-224027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20090330-232747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39445',
internalId:  '',
customField: '20090327-002417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39454',
internalId:  '',
customField: '20090327-001921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39463',
internalId:  '',
customField: '20090327-002514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39481',
internalId:  '',
customField: '20090328-211603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4606',
internalId:  '',
customField: '20090421-222431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15721',
internalId:  '',
customField: '20051025-004844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20051025-004658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15502',
internalId:  '',
customField: '20051025-004616'
};
webappMappings['7008']=webappMappings['7008-6592']={
webappId:    '7008',
documentId:  '6801',
internalId:  '6592',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6302',
internalId:  '',
customField: '20051007-231449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6303',
internalId:  '',
customField: '20051007-231449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40332',
internalId:  '',
customField: '20090421-222541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41091',
internalId:  '',
customField: '20090330-002533'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXE0L';
var companyName   = 'Muebles+con+estilo';
var htmlTitle	  = 'TECAM';
var metaKeywords  = 'MUEBLES+TECAM+MUEBLES+MINIMALISTAS+TEMMSA+TEMSA+temmsa+MAPLE+maple+samu+muebles+recamaras+comedores+accesorios+modulares+muebles+para+tv+mobili+furniture+conteporaneos+clasicos+tv+plasma+liverpool+sears+MUEBLES+ACCESORIOS+minimalistas+MESAS+COMEDOR+SILLAS';
var metaContents  = 'T%C3%A9cnica+Aplicada+en+Madera%2C+S.A.+de+C.V.%3AFabricante+de+muebles%3A+rec%C3%A1maras%2C+comedores%2C+accesorios%2C+muebles+de+TV%2C+modulares.';
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();
};
