/* [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','428001',jdecode('Inicio'),jdecode(''), jdecode('%2F428001.html'), 'true',[],'',''],
	['PAGE','19301',jdecode('Reparaci%C3%B3n+y+servicio'),jdecode(''), jdecode('%2F19301.html'), 'true',[],'',''],
	['PAGE','7822',jdecode('Ubicaci%C3%B3n'),jdecode(''), jdecode('%2F7822.html'), 'true',[],'',''],
	['PAGE','15101',jdecode('Cont%C3%A1ctenos'),jdecode(''), jdecode('%2F15101.html'), 'true',[],'',''],
	['PAGE','28901',jdecode('Lo+m%C3%A1s+nuevo'),jdecode(''), jdecode('%2F28901.html'), 'true',[],'',''],
	['PAGE','40001',jdecode('Ayuda+y+descargas'),jdecode(''), jdecode('%2F40001.html'), 'true',[],'',''],
	['PAGE','387701',jdecode('Cat%C3%A1logos'),jdecode(''), jdecode('%2F387701.html'), 'true',[],'',''],
	['PAGE','255401',jdecode('Showco'),jdecode(''), jdecode('%2F255401%2Findex.html'), 'true',[ 
		['PAGE','442301',jdecode('Cabezas+m%C3%B3viles'),jdecode(''), jdecode('%2F255401%2F442301.html'), 'true',[],'',''],
		['PAGE','456801',jdecode('Efectos'),jdecode(''), jdecode('%2F255401%2F456801.html'), 'true',[],'',''],
		['PAGE','444001',jdecode('Exterior'),jdecode(''), jdecode('%2F255401%2F444001.html'), 'true',[],'',''],
		['PAGE','444022',jdecode('LEDs'),jdecode(''), jdecode('%2F255401%2F444022.html'), 'true',[],'',''],
		['PAGE','440701',jdecode('Varios'),jdecode(''), jdecode('%2F255401%2F440701.html'), 'true',[],'',''],
		['PAGE','555256',jdecode('Repuestos+para+Showco'),jdecode(''), jdecode('%2F255401%2F555256.html'), 'true',[],'','']
	],'',''],
	['PAGE','258801',jdecode('Luminarias+y+dimmers'),jdecode(''), jdecode('%2F258801%2Findex.html'), 'true',[ 
		['PAGE','23901',jdecode('Concierto+y+discotheque'),jdecode(''), jdecode('%2F258801%2F23901.html'), 'true',[],'',''],
		['PAGE','181301',jdecode('Arquitect%C3%B3nicas'),jdecode(''), jdecode('%2F258801%2F181301.html'), 'true',[],'','']
	],'',''],
	['PAGE','689256',jdecode('Android'),jdecode(''), jdecode('%2F689256.html'), 'true',[],'',''],
	['PAGE','610056',jdecode('BlackBerry'),jdecode(''), jdecode('%2F610056.html'), 'true',[],'',''],
	['PAGE','373901',jdecode('iPhone+%2F+iTouch+%2F+iPad'),jdecode(''), jdecode('%2F373901.html'), 'true',[],'',''],
	['PAGE','132301',jdecode('Control+de+iluminaci%C3%B3n'),jdecode(''), jdecode('%2F132301.html'), 'true',[],'',''],
	['PAGE','119401',jdecode('Software+para+dise%C3%B1o'),jdecode(''), jdecode('%2F119401.html'), 'true',[],'',''],
	['PAGE','125601',jdecode('Efectos+especiales'),jdecode(''), jdecode('%2F125601.html'), 'true',[],'',''],
	['PAGE','135101',jdecode('Rigging'),jdecode(''), jdecode('%2F135101.html'), 'true',[],'',''],
	['PAGE','123801',jdecode('Dise%C3%B1adores'),jdecode(''), jdecode('%2F123801.html'), 'true',[],'',''],
	['PAGE','175301',jdecode('Video'),jdecode(''), jdecode('%2F175301.html'), 'true',[],'',''],
	['PAGE','259701',jdecode('Consumibles+y+extras'),jdecode(''), jdecode('%2F259701%2Findex.html'), 'true',[ 
		['PAGE','134501',jdecode('Accesorios'),jdecode(''), jdecode('%2F259701%2F134501.html'), 'true',[],'',''],
		['PAGE','129401',jdecode('Componentes'),jdecode(''), jdecode('%2F259701%2F129401.html'), 'true',[],'',''],
		['PAGE','238301',jdecode('Conectores+y+cables'),jdecode(''), jdecode('%2F259701%2F238301.html'), 'true',[],'',''],
		['PAGE','294501',jdecode('Escenograf%C3%ADa'),jdecode(''), jdecode('%2F259701%2F294501.html'), 'true',[],'',''],
		['PAGE','130801',jdecode('Herramientas'),jdecode(''), jdecode('%2F259701%2F130801.html'), 'true',[],'',''],
		['PAGE','131801',jdecode('L%C3%A1mparas+y+LEDs'),jdecode(''), jdecode('%2F259701%2F131801.html'), 'true',[],'',''],
		['PAGE','133801',jdecode('Varios'),jdecode(''), jdecode('%2F259701%2F133801.html'), 'true',[],'','']
	],'',''],
	['PAGE','500534',jdecode('De+todo'),jdecode(''), jdecode('%2F500534.html'), 'true',[],'',''],
	['PAGE','48701',jdecode('An%C3%A1lisis+de+equipo'),jdecode(''), jdecode('%2F48701.html'), 'true',[],'',''],
	['PAGE','127401',jdecode('Escuelas+y+cursos'),jdecode(''), jdecode('%2F127401.html'), 'true',[],'',''],
	['PAGE','198801',jdecode('Revistas+y+libros'),jdecode(''), jdecode('%2F198801.html'), 'true',[],'',''],
	['PAGE','706967',jdecode('YouTube'),jdecode(''), jdecode('%2F706967.html'), 'true',[],'',''],
	['PAGE','305201',jdecode('Directorio'),jdecode(''), jdecode('%2F305201%2Findex.html'), 'true',[ 
		['PAGE','291101',jdecode('Directorio'),jdecode(''), jdecode('%2F305201%2F291101.html'), 'true',[],'','']
	],'',''],
	['PAGE','118301',jdecode('Equipo+usado+en+venta'),jdecode(''), jdecode('%2F118301.html'), 'true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='538345';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10502';
theSitetree.graphicsetId='11136';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='39823E';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Surround',
				paletteFamily: 	'538345',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10502',
				graphicsetId: 	'11136',
				contentColor: 	'FFFFFF',
				contentBGColor: '39823E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'81D79D',
				e_color: 		'81D79D',
				f_color: 		'81D79D',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-358']={
webappId:    '7008',
documentId:  '305201',
internalId:  '358',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '555256',
internalId:  '',
customField: '20120205-155600'
};
webappMappings['7008']=webappMappings['7008-359']={
webappId:    '7008',
documentId:  '15101',
internalId:  '359',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '456801',
internalId:  '',
customField: '20120128-174938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20100402-155730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255401',
internalId:  '',
customField: '20110516-123801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '442301',
internalId:  '',
customField: '20120128-182514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444001',
internalId:  '',
customField: '20110409-185654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444022',
internalId:  '',
customField: '20120128-175103'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '428001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7822',
internalId:  '',
customField: '20120127-132815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20120205-154759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20120203-132015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20120127-131926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '689256',
internalId:  '',
customField: '20111101-174742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40001',
internalId:  '',
customField: '20120129-160559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '610056',
internalId:  '',
customField: '20100818-003229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258801',
internalId:  '',
customField: '20101212-233259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20111210-175846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181301',
internalId:  '',
customField: '20120203-132122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175301',
internalId:  '',
customField: '20111210-173758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373901',
internalId:  '',
customField: '20120118-044903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132301',
internalId:  '',
customField: '20110720-003525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119401',
internalId:  '',
customField: '20110703-225414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135101',
internalId:  '',
customField: '20110823-114506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123801',
internalId:  '',
customField: '20120107-140323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125601',
internalId:  '',
customField: '20111224-165947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '259701',
internalId:  '',
customField: '20101202-020254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134501',
internalId:  '',
customField: '20111101-182251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129401',
internalId:  '',
customField: '20110907-110848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238301',
internalId:  '',
customField: '20120127-132304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294501',
internalId:  '',
customField: '20100110-181659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130801',
internalId:  '',
customField: '20100919-162956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131801',
internalId:  '',
customField: '20110905-003439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133801',
internalId:  '',
customField: '20110621-120505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127401',
internalId:  '',
customField: '20120114-032447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198801',
internalId:  '',
customField: '20120127-132052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291101',
internalId:  '',
customField: '20111211-211509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '305201',
internalId:  '',
customField: '20111002-011113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118301',
internalId:  '',
customField: '20110511-161639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '440701',
internalId:  '',
customField: '20120128-175236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '387701',
internalId:  '',
customField: '20111231-163701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '428001',
internalId:  '',
customField: '20120205-161518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '500534',
internalId:  '',
customField: '20120205-160912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '706967',
internalId:  '',
customField: '20120114-033426'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2WYF';
var companyName   = 'Carlos+Mendoza+++++++++++++++iluminaci%C3%B3n+++++++++++++++++++++++++++++++++++++++++++++++el+verde+es+vida';
var htmlTitle	  = 'iluminando+el+internet+desde+M%C3%A9xico%2C+a%C3%B1os+luz+delante+Carlos+Mendoza+iluminaci%C3%B3n';
var metaKeywords  = 'reparaci%C3%B3n%2C+mantenimiento%2C+iluminaci%C3%B3n%2C+rob%C3%B3tica%2C+dmx%2C+venta%2C+m%C3%B3viles%2C+discotheques%2C+conciertos%2C+Showco%2C+repuestos%2C+refacciones%2C+Vari-lite%2C+Mart%C3%ADn%2C+Clay+Paky%2C+Avolites%2C+High+End+Systems%2C+Coemar%2C+Robe%2C+LeMaitre%2C+Case%2C+SGM%2C+MAC%2C+Show+Designer%2C+salones%2C+fiestas%2C+bar%2C+arquitect%C3%B3nico%2C+instalaci%C3%B3n%2C+dimmer%2C+l%C3%A1mparas%2C+focos%2C+humo%2C+bandas%2C+grupos%2C+bailes%2C+shows%2C+Leprecon%2C+NSI%2C+lighting%2C+inteligente%2C+gobo%2C+controladores%2C+TAS%2C+diagramas%2C+asesor%C3%ADa%2C+MAC%2C+VL%2C+Ispot%2C+MAC+2000%2C+Krypton%2C+Azure%2C+Pearl%2C+Atomic%2C+Technobeam%2C+Roboscan%2C+Console%2C+DMX+512%2C+fixtures%2C+Xspot%2C+optosplitter%2C+fog+fluid%2C+F+100%2C+spot%2C+wash%2C+profile%2C+usado%2C+actualizaciones%2C+soporte%2C+t%C3%A9cnico%2C+luz%2C+LEDs%2C+LED%2C+Wholehog%2C+taller%2C+estrobo%2C+luces%2C+discotheque%2C+led%2C+l%C3%A1mparas%2C+focos%2C+exterior%2C+interior%2C+Alpha%2C+Osiris%2C+concert%2C+Carlos+Mendoza%2C+Carlos%2C+Mendoza%2C+strobe%2C+vl%2C+Pearl+River%2C+Giotto%2C+Varilite%2C+iluminado%2C+lite%2C+3000%2C+2000%2C+digital%2C+luminaria%2C+taller%2C+centro+de+servicio%2C+soundcheck%2C+M%C3%A9xico%2C+gobos%2C+hal%C3%B3geno%2C+descarga%2C+proyecci%C3%B3n%2C+Novalight%2C+dimmer%2C+banco+de+dimmers%2C+IGBT%2C+.com.mx%2C+Pearl%2C+2008%2C+Elation%2C+Lite-Puter%2C+lithogr%C3%A1ficos%2C+www.showco.com%2C+Patherson%2C+AmericanDJ%2C+PAR%2C+www.showco.com.mx%2C+Stagemaker%2C+Cam-lok%2C+Spot+250%2C+Spot+575%2C+Wash+575%2C+Wash+1200%2C+Wash+575%2C+Starmoon%2C+Socapex%2C+Centro+de+carga%2C+Road+Hog%2C+Hog+III%2C+iPC%2C+filters%2C+servicio%2C+Wecan%2C+Mexico%2C+Mexico+City%2C+sur+de+la+Ciudad+de+M%C3%A9xico%2C+Maxxyz%2C+PR%2C+balastra%2C+balastro%2C+dicroico%2C+Skybeam%2C+Skytracer%2C+programaci%C3%B3n%2C+escenario+virtual%2C+colgar%2C+suspender%2C+220+volts%2C+pantallas+de+LEDs%2C+tel%C3%B3n+de+LEDs%2C+simulador%2C+ignitores%2C+led.+LED%2C+Iluminaci%C3%B3n+Mart%C3%ADn%2C+equipo%2C+Avolites+Pearl+Tiger%2C+Avolites+Pearl+2008%2C+pearl+expert%2C+l%C3%A1mparas+de+descarga%2C+hal%C3%B3geno%2C+manualperla+2004%2C+manual+en+espa%C3%B1ol+avolites%2C+consolas%2C+pantallas+de+leds';
var metaContents  = 'Reparaci%C3%B3n+y+venta+de+sistemas+de+iluminaci%C3%B3n+inteligente';
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();
};

