/* [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','4597',jdecode('Home'),jdecode(''), jdecode('%2F4597.html'), 'true',[],'',''],
	['PAGE','76703',jdecode('Pantallas+LCD+Ofertas'),jdecode(''), jdecode('%2F76703.html'), 'true',[],'',''],
	['PAGE','4654',jdecode('V+I+D+E+O+++++P+R+O+Y+E+C+T+O+R+E+S'),jdecode(''), jdecode('%2F4654%2Findex.html'), 'true',[ 
		['PAGE','10164',jdecode('Epson'),jdecode(''), jdecode('%2F4654%2F10164.html'), 'true',[],'',''],
		['PAGE','10191',jdecode('Sharp'),jdecode(''), jdecode('%2F4654%2F10191.html'), 'true',[],'',''],
		['PAGE','197065',jdecode('Benq'),jdecode(''), jdecode('%2F4654%2F197065.html'), 'true',[],'','']
	],'',''],
	['PAGE','68103',jdecode('Cine+en+Casa%2FHome+Theater'),jdecode(''), jdecode('%2F68103.html'), 'true',[],'',''],
	['PAGE','4708',jdecode('Pantallas+de+Plasma+Samsung'),jdecode(''), jdecode('%2F4708%2Findex.html'), 'true',[ 
		['PAGE','28403',jdecode('Samsung'),jdecode(''), jdecode('%2F4708%2F28403.html'), 'true',[],'','']
	],'',''],
	['PAGE','4789',jdecode('Pantallas+LCD'),jdecode(''), jdecode('%2F4789%2Findex.html'), 'true',[ 
		['PAGE','10272',jdecode('Sharp+Aquos'),jdecode(''), jdecode('%2F4789%2F10272.html'), 'true',[],'',''],
		['PAGE','10299',jdecode('Samsung'),jdecode(''), jdecode('%2F4789%2F10299.html'), 'true',[],'','']
	],'',''],
	['PAGE','4816',jdecode('Pantallas+de+proyecci%C3%B3n'),jdecode(''), jdecode('%2F4816.html'), 'true',[],'',''],
	['PAGE','98301',jdecode('Se%C3%B1alizaci%C3%B3n+Digital'),jdecode(''), jdecode('%2F98301.html'), 'true',[],'',''],
	['PAGE','186354',jdecode('Microfon%C3%ADa'),jdecode(''), jdecode('%2F186354.html'), 'true',[],'',''],
	['PAGE','195565',jdecode('Videoconferencia'),jdecode(''), jdecode('%2F195565.html'), 'true',[],'',''],
	['PAGE','4897',jdecode('Soportes+y+Accesorios'),jdecode(''), jdecode('%2F4897.html'), 'true',[],'',''],
	['PAGE','10488',jdecode('Automatizaci%C3%B3n'),jdecode(''), jdecode('%2F10488%2Findex.html'), 'true',[ 
		['PAGE','155612',jdecode('AMX'),jdecode(''), jdecode('%2F10488%2F155612.html'), 'true',[],'',''],
		['PAGE','96085',jdecode('EXTRON'),jdecode(''), jdecode('%2F10488%2F96085.html'), 'true',[],'','']
	],'',''],
	['PAGE','10596',jdecode('Instalaciones'),jdecode(''), jdecode('%2F10596.html'), 'true',[],'',''],
	['PAGE','4924',jdecode('Cont%C3%A1ctenos'),jdecode(''), jdecode('%2F4924%2Findex.html'), 'true',[ 
		['PAGE','5602',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''), jdecode('%2F4924%2F5602.html'), 'false',[],'','']
	],'',''],
	['PAGE','59903',jdecode('Distribuidores'),jdecode(''), jdecode('%2F59903%2Findex.html'), 'true',[ 
		['PAGE','60124',jdecode('Distribuidores+%28follow+up+page%29'),jdecode(''), jdecode('%2F59903%2F60124.html'), 'false',[],'','']
	],'',''],
	['PAGE','211065',jdecode('%C2%BFQUIENES+SOMOS%3F'),jdecode(''), jdecode('%2F211065%2Findex.html'), 'true',[ 
		['PAGE','211086',jdecode('NUESTRO+EQUIPO'),jdecode(''), jdecode('%2F211065%2F211086.html'), 'true',[],'',''],
		['PAGE','211107',jdecode('D%C3%93NDE+ENCONTRARNOS'),jdecode(''), jdecode('%2F211065%2F211107.html'), 'true',[],'',''],
		['PAGE','211128',jdecode('REPRESENTACIONES+DE+MARCA'),jdecode(''), jdecode('%2F211065%2F211128.html'), 'true',[],'','']
	],'',''],
	['PAGE','205807',jdecode('S+O+L+U+C+I+O+N+E+S'),jdecode(''), jdecode('%2F205807%2Findex.html'), 'true',[ 
		['PAGE','205828',jdecode('SE%C3%91ALIZACI%C3%93N+DIGITAL'),jdecode(''), jdecode('%2F205807%2F205828.html'), 'true',[],'',''],
		['PAGE','205849',jdecode('AUTOMATIZACI%C3%93N'),jdecode(''), jdecode('%2F205807%2F205849.html'), 'true',[],'',''],
		['PAGE','205870',jdecode('VIDEOWALL'),jdecode(''), jdecode('%2F205807%2F205870.html'), 'true',[],'',''],
		['PAGE','205891',jdecode('APLICACIONES+PUBLICITARIAS'),jdecode(''), jdecode('%2F205807%2F205891.html'), 'true',[],'',''],
		['PAGE','205912',jdecode('PROYECTOS+ESPECIALES'),jdecode(''), jdecode('%2F205807%2F205912.html'), 'true',[],'',''],
		['PAGE','205933',jdecode('CENTROS+DE+CONTROL'),jdecode(''), jdecode('%2F205807%2F205933.html'), 'true',[],'',''],
		['PAGE','205954',jdecode('SALAS+DE+JUNTAS'),jdecode(''), jdecode('%2F205807%2F205954.html'), 'true',[],'',''],
		['PAGE','205975',jdecode('AUDIOVISUALES'),jdecode(''), jdecode('%2F205807%2F205975.html'), 'true',[],'',''],
		['PAGE','205996',jdecode('AUDITORIOS'),jdecode(''), jdecode('%2F205807%2F205996.html'), 'true',[],'','']
	],'',''],
	['PAGE','206017',jdecode('S+E+R+V+I+C+I+O+S'),jdecode(''), jdecode('%2F206017%2Findex.html'), 'true',[ 
		['PAGE','206038',jdecode('INSTALACION+DE+EQUIPO'),jdecode(''), jdecode('%2F206017%2F206038.html'), 'true',[],'',''],
		['PAGE','206059',jdecode('MANTENIMIENTO+Y+SERVICIO'),jdecode(''), jdecode('%2F206017%2F206059.html'), 'true',[],'',''],
		['PAGE','206080',jdecode('CONSULTORIA+EN+PROYECTOS'),jdecode(''), jdecode('%2F206017%2F206080.html'), 'true',[],'','']
	],'',''],
	['PAGE','206101',jdecode('P+R+O+D+U+C+T+O+S'),jdecode(''), jdecode('%2F206101%2Findex.html'), 'true',[ 
		['PAGE','206122',jdecode('PROYECTORES'),jdecode(''), jdecode('%2F206101%2F206122.html'), 'true',[],'',''],
		['PAGE','206143',jdecode('PANTALLAS+DE+PROYECCI%C3%93N'),jdecode(''), jdecode('%2F206101%2F206143.html'), 'true',[],'',''],
		['PAGE','206164',jdecode('PANTALLAS+LCD%2C+LED%2C+PLASMA'),jdecode(''), jdecode('%2F206101%2F206164.html'), 'true',[],'',''],
		['PAGE','206185',jdecode('EQUIPAMIENTO+DE+AUDIO'),jdecode(''), jdecode('%2F206101%2F206185.html'), 'true',[],'',''],
		['PAGE','206206',jdecode('AUDIO+Y+VIDEOCONFERENCIA'),jdecode(''), jdecode('%2F206101%2F206206.html'), 'true',[],'',''],
		['PAGE','206227',jdecode('CINE+EN+CASA'),jdecode(''), jdecode('%2F206101%2F206227.html'), 'true',[],'',''],
		['PAGE','206248',jdecode('ACCESORIOS'),jdecode(''), jdecode('%2F206101%2F206248.html'), 'true',[],'','']
	],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='FFD375';
theSitetree.keyvisualId='1980';
theSitetree.keyvisualName='medienauge.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='385';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
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: 			'Stylus',
				paletteFamily: 	'FFD375',
				keyvisualId: 	'1980',
				keyvisualName: 	'medienauge.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'385',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFD375',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197065',
internalId:  '',
customField: '20110722-184818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211086',
internalId:  '',
customField: '20111020-174427'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205870',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211107',
internalId:  '',
customField: '20111020-174427'
};
webappMappings['7008']=webappMappings['7008-9325']={
webappId:    '7008',
documentId:  '59903',
internalId:  '9325',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205849',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205828',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20111014-134028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4654',
internalId:  '',
customField: '20111020-175243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10164',
internalId:  '',
customField: '20111020-180847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211065',
internalId:  '',
customField: '20111020-174427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76703',
internalId:  '',
customField: '20110504-111657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10191',
internalId:  '',
customField: '20110111-144838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68103',
internalId:  '',
customField: '20111014-172949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4708',
internalId:  '',
customField: '20110223-122930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205807',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28403',
internalId:  '',
customField: '20110223-123207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4789',
internalId:  '',
customField: '20110223-124726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10272',
internalId:  '',
customField: '20110722-190422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10299',
internalId:  '',
customField: '20110112-180117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155612',
internalId:  '',
customField: '20110223-185039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4816',
internalId:  '',
customField: '20120102-151101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98301',
internalId:  '',
customField: '20110504-102621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186354',
internalId:  '',
customField: '20110119-113018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4897',
internalId:  '',
customField: '20110114-192444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10488',
internalId:  '',
customField: '20100114-171007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96085',
internalId:  '',
customField: '20080201-123247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10596',
internalId:  '',
customField: '20110119-112836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195565',
internalId:  '',
customField: '20110721-183537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4924',
internalId:  '',
customField: '20110111-182116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5602',
internalId:  '',
customField: '20060210-200733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59903',
internalId:  '',
customField: '20100114-104719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60124',
internalId:  '',
customField: '20060412-134316'
};
webappMappings['7008']=webappMappings['7008-9323']={
webappId:    '7008',
documentId:  '4924',
internalId:  '9323',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205891',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205912',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205933',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205954',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205975',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205996',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206017',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206038',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206059',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206080',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206101',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206122',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206143',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206164',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206185',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206206',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206227',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206248',
internalId:  '',
customField: '20111011-163613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211128',
internalId:  '',
customField: '20111024-114801'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX378';
var companyName   = 'F+O+T+O+C+O+M+M+O';
var htmlTitle	  = 'se%C3%B1alizacion+digital+videoproyectores+proyectores+videoproyeccion+proyeccion+audiovisual+visual+elite+screen+plasmas+pantallas+lcd+monitores+equipo+audio+instalaciones+automatizacion+home+theater+cine+en+casa+DVD+pizarron+electronico+pizarrones+interactiv';
var metaKeywords  = 'videoproyectores+proyectores+plasmas+pantallas+lcd+TV+epson+monitores+profesional+elite+screen+software+samsung+philips+sharp+aquos+instalaciones+salas+de+juntas+audio+video+automatizacion+se%C3%B1alizacion+digital+home+theater+cine+en+casa+DVD+';
var metaContents  = 'videoproyectores+proyectores+plasmas+pantallas+lcd+TV+epson+monitores+profesional+elite+screen+software+samsung+philips+sharp+aquos+instalaciones+salas+de+juntas+audio+video+automatizacion+se%C3%B1alizacion+digital+home+theater+cine+en+casa+DVD+';
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();
};

