/* [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','401',jdecode('CID'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','494',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''), jdecode('%2F494%2Findex.html'), 'true',[ 
		['PAGE','42146',jdecode('Nuestro+equipo'),jdecode(''), jdecode('%2F494%2F42146.html'), 'true',[],'',''],
		['PAGE','65946',jdecode('D%C3%B3nde+estamos'),jdecode(''), jdecode('%2F494%2F65946.html'), 'true',[],'','']
	],'',''],
	['PAGE','52757',jdecode('Inform%C3%A1tica'),jdecode(''), jdecode('%2F52757.html'), 'true',[],'',''],
	['PAGE','53046',jdecode('Ofim%C3%A1tica'),jdecode(''), jdecode('%2F53046.html'), 'true',[],'',''],
	['PAGE','53067',jdecode('Mobiliario+de+Oficina'),jdecode(''), jdecode('%2F53067.html'), 'true',[],'',''],
	['PAGE','96346',jdecode('Sistemas+de+vigilancia'),jdecode(''), jdecode('%2F96346.html'), 'true',[],'',''],
	['PAGE','96367',jdecode('TPV'),jdecode(''), jdecode('%2F96367.html'), 'true',[],'',''],
	['PAGE','557',jdecode('Servicio+T%C3%A9cnico+'),jdecode(''), jdecode('%2F557.html'), 'true',[],'',''],
	['PAGE','65146',jdecode('P%C3%A1ginas+Web'),jdecode(''), jdecode('%2F65146.html'), 'true',[],'',''],
	['PAGE','108746',jdecode('OKI'),jdecode(''), jdecode('%2F108746.html'), 'true',[],'',''],
	['PAGE','108767',jdecode('Marcas'),jdecode(''), jdecode('%2F108767.html'), 'true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Odd';
theSitetree.paletteFamily='C5EFC5';
theSitetree.keyvisualId='12137';
theSitetree.keyvisualName='kv_12137.jpg';
theSitetree.fontsetId='33320';
theSitetree.graphicsetId='14191';
theSitetree.contentColor='456F45';
theSitetree.contentBGColor='C5EFC5';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'piensa',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Odd',
				paletteFamily: 	'C5EFC5',
				keyvisualId: 	'12137',
				keyvisualName: 	'kv_12137.jpg',
				fontsetId: 		'33320',
				graphicsetId: 	'14191',
				contentColor: 	'456F45',
				contentBGColor: 'C5EFC5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120116-160718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65946',
internalId:  '',
customField: '20090914-105301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20110406-123254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65146',
internalId:  '',
customField: '20100115-180949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100212-180804'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-8695503']={
webappId:    '1501',
documentId:  '401',
internalId:  '8695503',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42146',
internalId:  '',
customField: '20110406-124709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52757',
internalId:  '',
customField: '20110406-134046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53046',
internalId:  '',
customField: '20110406-134322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53067',
internalId:  '',
customField: '20110406-134652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108746',
internalId:  '',
customField: '20100913-154128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96367',
internalId:  '',
customField: '20100212-180059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96346',
internalId:  '',
customField: '20110711-170028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108767',
internalId:  '',
customField: '20091121-233019'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INLWIY';
var companyName   = 'Centro+Inform%C3%A1tico+Digital+';
var htmlTitle	  = '';
var metaKeywords  = 'Inform%C3%A1tica%2C+ofim%C3%A1tica%2C+mobiliario+de+oficina%2C+ordenadores%2C+teclados%2C+impresoras%2C+redes%2C+servidores%2C+perifericos%2C+TPV%2C+consolas%2C+juegos%2C++Software%2C++teclats%2C+impresores%2C+mobiliari+de+oficina%2C+ordinadors%2C+reparaci%C3%B3+de+ordinadors%2C+reparacion+de+ordenadores%2C+periferics%2C+consoles%2C+jocs%2C+programes%2C+creacio+de+pagines+web%2C+creacion+de+paginas+web%2C+tpv+restaurantes%2C+bdp%2C+OKI%2C+BROTHER%2C+HP%2C+EPSON%2C+KONICA+MINOLTA';
var metaContents  = 'Inform%C3%A1tica%2C+ofim%C3%A1tica%2C+mobiliario+de+oficina%2C+ordenadores%2C+teclados%2C+impresoras%2Cratones%2C+OKI%2C+BROTHER%2C+HP%2C+EPSON%2C+KONICA+MINOLTA';
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();
};

