/* [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','2352',jdecode('MIS+ZIPPO'),jdecode(''),'/2352/index.html','true',[ 
		['PAGE','2373',jdecode('COLECCION+JESUSWAR'),jdecode(''),'/2352/2373.html','true',[],'',''],
		['PAGE','2394',jdecode('COLECCION+BOTTOMZ+UP'),jdecode(''),'/2352/2394.html','true',[],'',''],
		['PAGE','6401',jdecode('COLECCION+BLACK+MATTE'),jdecode(''),'/2352/6401.html','true',[],'',''],
		['PAGE','5301',jdecode('COLECCION+MAZZI'),jdecode(''),'/2352/5301.html','true',[],'',''],
		['PAGE','2415',jdecode('COLECCION+PLANETA'),jdecode(''),'/2352/2415.html','true',[],'','']
	],'',''],
	['PAGE','2301',jdecode('HISTORIA'),jdecode(''),'/2301.html','true',[],'',''],
	['PAGE','2520',jdecode('ARTE+Y+DISE%C3%91O'),jdecode(''),'/2520/index.html','true',[ 
		['PAGE','2541',jdecode('CLAUDIO+MAZZI'),jdecode(''),'/2520/2541.html','true',[],'',''],
		['PAGE','2562',jdecode('PAUL+FLEMING'),jdecode(''),'/2520/2562.html','true',[],'',''],
		['PAGE','2583',jdecode('BURTON+MORRIS'),jdecode(''),'/2520/2583.html','true',[],'',''],
		['PAGE','2801',jdecode('WILLIAM+VIBES'),jdecode(''),'/2520/2801.html','true',[],'',''],
		['PAGE','2822',jdecode('JOSEF+BAUER'),jdecode(''),'/2520/2822.html','true',[],'','']
	],'',''],
	['PAGE','2843',jdecode('COLECCIONISTAS'),jdecode(''),'/2843/index.html','true',[ 
		['PAGE','2864',jdecode('ADOLFO+CANDAL'),jdecode(''),'/2843/2864.html','true',[],'',''],
		['PAGE','2885',jdecode('ANTONIO+PEINADO'),jdecode(''),'/2843/2885.html','true',[],'',''],
		['PAGE','2906',jdecode('GARY+GILMORE'),jdecode(''),'/2843/2906.html','true',[],'','']
	],'',''],
	['PAGE','2927',jdecode('ACABADOS'),jdecode(''),'/2927.html','true',[],'',''],
	['PAGE','2948',jdecode('MANTENIMIENTO'),jdecode(''),'/2948.html','true',[],'',''],
	['PAGE','2436',jdecode('REPARACION'),jdecode(''),'/2436.html','true',[],'',''],
	['PAGE','2969',jdecode('BOTTOM+STAMPS'),jdecode(''),'/2969.html','true',[],'',''],
	['PAGE','2990',jdecode('ANATOMIA+ZIPPO'),jdecode(''),'/2990.html','true',[],'',''],
	['PAGE','3011',jdecode('CATALOGOS'),jdecode(''),'/3011/index.html','true',[ 
		['PAGE','3501',jdecode('CATALOGOS+2010'),jdecode(''),'/3011/3501.html','true',[],'',''],
		['PAGE','3522',jdecode('CATALOGOS+2009'),jdecode(''),'/3011/3522.html','true',[],'',''],
		['PAGE','3543',jdecode('CATALOGOS+2008'),jdecode(''),'/3011/3543.html','true',[],'',''],
		['PAGE','3564',jdecode('CATALOGOS+2007'),jdecode(''),'/3011/3564.html','true',[],'',''],
		['PAGE','3585',jdecode('CATALOGOS+2006'),jdecode(''),'/3011/3585.html','true',[],'',''],
		['PAGE','3606',jdecode('CATALOGOS+2005'),jdecode(''),'/3011/3606.html','true',[],'','']
	],'',''],
	['PAGE','4701',jdecode('DESCARGAS'),jdecode(''),'/4701.html','true',[],'',''],
	['PAGE','3032',jdecode('ENLACES'),jdecode(''),'/3032.html','true',[],'',''],
	['ITEM','3053',jdecode('FORO+%28Mundozippo%29'),jdecode(''),'http://mundozippo.com/foro/','true',[],'','_blank'],
	['PAGE','3054',jdecode('CONTACTO'),jdecode(''),'/3054.html','false',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20100723-115826'
};
webappMappings['7008']=webappMappings['7008-9726']={
webappId:    '7008',
documentId:  '3054',
internalId:  '9726',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2352',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2394',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2415',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2436',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2520',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2541',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2562',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2583',
internalId:  '',
customField: '20100615-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2822',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2843',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2864',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2885',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2906',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2927',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2948',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2969',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2990',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3011',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3032',
internalId:  '',
customField: '20100615-130437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3054',
internalId:  '',
customField: '20100615-132326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3522',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3543',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3564',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3585',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3606',
internalId:  '',
customField: '20100615-131956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100617-190238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20100623-133159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20100707-120948'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AAS340INZ478';
var companyName   = '';
var htmlTitle	  = '';
var metaKeywords  = 'Zippo%2CLighter%2Cmechero%2Cencendedor%2CZippo+Mazzi%2CClaudio+Mazzi%2CMazzi%2CZippo+lighter%2CMechero+Zippo%2CEncendedor+Zippo%2CMecheros%2Cmecheros%2CZippo%27s%2CZippo%27s%2CZIPPO%2CColeccion+Zippo%2Ccoleccion+zippo%2CCOLECCION+ZIPPO%2CCOLECCIONES+ZIPPO%2Ccolecciones+Zippo%2CColecciones+Zippo%2CEncendedores%2Cencendedores%2CZippo+Espa%C3%B1a%2Czippo+espa%C3%B1a%2CZIPPO+ESPA%C3%91A%2CMecheros+Zippo%2Cmecheros+zippo%2CMECHEROS+ZIPPO%2CEncendedor%2CEncendedores%2CENCENDEDOR%2CENCENDEDORES%2CMechero%2CMecheros%2CMECHERO%2CMECHEROS%2Ccatalogos%2CCatalogo%2CCATALOGOS%2CCATALOGO%2CFECHAR+MECHERO+ZIPPO%2Cfechar+mechero+zippo%2Cfechar+zippo%2CFECHAR+ZIPPO%2CA%C3%91O+FABRICACION+ZIPPO%2Ca%C3%B1o+fabricacion+zippo%2Ca%C3%B1o+fabricacion+mechero%2Cfondo+pantallas+Zippo%2Csalvapantallas+zippo%2CZIPPO+MAZZI%2CZIPPO+CLAUDIO+MAZZI%2CMAZZI%2CZIPPO%2CZIPPO%27S%2Czippo%27s%2CLIGHTER%2CFABRICACION+ZIPPO%2Cfabricacion+zippo%2CFABRICACION+MECHERO+ZIPPO%2Cfabricacion+mechero+zippio%2Cmantenimiento+zippo%2Cmantenimientos+zippo%2Cmantenimiento+mechero+zippo%2Cmantenimientos+mecheros+zippo%2Ctodo+sobre+zippo%2Cinformacion+zippo%2Cinformacion+mecheros+zippo%2Cinformacion+encendedores+zippo%2Cconsejos+zippo%2CCONSEJOS+ZIPPO%2Cconsejos+mecheros+zippo%2Cconsejos+encendedores+zippo%2CCONSEJOS+ENCENDEDORES+ZIPPO%2C+zippo+espa%C3%B1a%2C+ZIPPO+ESPA%C3%91A%2C+ENCENDEDORES+ZIPPO+ESPA%C3%91A%2C+MECHEROS+ZIPPO+ESPA%C3%91A%2C+encendedores+zippo+espa%C3%B1a%2C+mecheros+zippo+espa%C3%B1a%2Czippo+en+espa%C3%B1ol%2C+mecheros+zippo+en+espa%C3%B1ol';
var metaContents  = 'Web+dedicada+al+mundo+de+los+encendedores+Zippo+y+a+mi+coleccion+de+mecheros+Zippo%2C+podras+encontrar+consejos+sobre+mantenimiento%2C+acabados+de+mecheros+Zippo%2C+dise%C3%B1os+y+podras+fechar+o+datar+el+a%C3%B1o+de+fabricacion+de+tu+mechero+o+encendedor+Zippo.+Podr%C3%A1s+encontrar+un+amplia+colecci%C3%B3n+de+cat%C3%A1logos+de+Zippo+y+descargarlos%2C+al+igual+que+fondos+de+pantallas+y+salvapantallas+con+el+logo+de+Zippo.';
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();
};

