/* [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','4606',jdecode('Home'),jdecode(''),'/4606.html','true',[],''],
	['PAGE','4901',jdecode('Quienes+Somos'),jdecode(''),'/4901/index.html','true',[ 
		['PAGE','87921',jdecode('MISION'),jdecode(''),'/4901/87921.html','true',[],''],
		['PAGE','87930',jdecode('VISION'),jdecode(''),'/4901/87930.html','true',[],''],
		['PAGE','87939',jdecode('Nuestro+compromiso'),jdecode(''),'/4901/87939.html','true',[],'']
	],''],
	['PAGE','4928',jdecode('PRODUCTOS'),jdecode(''),'/4928/index.html','true',[ 
		['PAGE','72667',jdecode('Ropa+Industrial'),jdecode(''),'/4928/72667.html','true',[],''],
		['PAGE','72967',jdecode('Bordado+y+Serigraf%C3%ADa'),jdecode(''),'/4928/72967.html','true',[],''],
		['PAGE','72694',jdecode('Imagen+Corporativa'),jdecode(''),'/4928/72694.html','true',[],''],
		['PAGE','72721',jdecode('Calzado+Industrial'),jdecode(''),'/4928/72721.html','true',[],''],
		['PAGE','87225',jdecode('Uniforme+Escolar'),jdecode(''),'/4928/87225.html','true',[],''],
		['PAGE','87826',jdecode('Chaquetas'),jdecode(''),'/4928/87826.html','true',[],'']
	],''],
	['PAGE','4955',jdecode('Cont%C3%A1ctanos'),jdecode(''),'/4955.html','true',[],''],
	['PAGE','74110',jdecode('Pedidos'),jdecode(''),'/74110/index.html','true',[ 
		['PAGE','74613',jdecode('Pedidos+%28follow+up+page%29'),jdecode(''),'/74110/74613.html','false',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Time';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='2289';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='269';
theSitetree.graphicsetId='335';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Time',
				paletteFamily: 	'000066',
				keyvisualId: 	'2289',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'269',
				graphicsetId: 	'335',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'EC9E28',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-avec10inxzhhf01daccbdd3dbfea']={
webappId:    '1001',
documentId:  '74110',
internalId:  'avec10inxzhhf01daccbdd3dbfea',
customField: ''
};
webappMappings['1001']=webappMappings['1001-avec10inxzhhf01daccbdd3dbfea']={
webappId:    '1001',
documentId:  '74613',
internalId:  'avec10inxzhhf01daccbdd3dbfea',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4955',
internalId:  '',
customField: '20080327-163547'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4606',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4606',
internalId:  '',
customField: '20061005-112100'
};
webappMappings['1501']=webappMappings['1501-249596']={
webappId:    '1501',
documentId:  '4606',
internalId:  '249596',
customField: '1501'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXZHH';
var companyName   = 'LUMAR+UNIFORMES';
var htmlTitle	  = 'uniformes+lumar';
var metaKeywords  = 'pantalones%2C+uniformes%2C+playeras%2C+gorras%2C+sudaderas%2C+chaquetas%2C+mandiles%2C+impresiones%2C+serigrafia%2C+bordado%2C+camisas%2C+sacos%2C+zapato%2C+mandiles%2C+camisas%2C+pantalones+de+mezclilla%2C+overoles%2C+zapatos%2C+zapato+industrial%2Cblusas';
var metaContents  = 'UNIFORMES.+BORDADO%2C+SERIGRAFIA%2C+GORRAS%2C+ROPA+DE+TRABAJO+CHAQUETAS%2C+SUDADERAS%2C+PLAYERAS%2C+ZAPATO%2C+MANDILES%2C+PANTALON+DE+MEZCLILLA%2CZAPATO+INDUSTRIAL%2C+OVEROLES%2C+CAMISAS+%2C+BLUSAS';
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();
};
