/* [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','4472',jdecode('arteconarte'),jdecode(''),'/4472.html','true',[],'',''],
	['PAGE','15026',jdecode('Estudio+de+edici%C3%B3n'),jdecode(''),'/15026.html','true',[],'',''],
	['PAGE','16516',jdecode('Arte+para+regalar'),jdecode(''),'/16516.html','true',[],'',''],
	['PAGE','18350',jdecode('Regalo+de+empresa'),jdecode(''),'/18350.html','true',[],'',''],
	['PAGE','45394',jdecode('Cat%C3%A1logo+obra+gr%C3%A1fica'),jdecode(''),'/45394/index.html','true',[ 
		['PAGE','7843',jdecode('Isabel+Cuadrado'),jdecode(''),'/45394/7843.html','true',[],'',''],
		['PAGE','76750',jdecode('Isabel+Cuadrado+-+Cielos'),jdecode(''),'/45394/76750.html','true',[],'',''],
		['PAGE','18929',jdecode('Isabelle+Goofroy+-+Monotipos'),jdecode(''),'/45394/18929.html','true',[],'',''],
		['PAGE','29050',jdecode('Richard+Ortega'),jdecode(''),'/45394/29050.html','true',[],'',''],
		['PAGE','18902',jdecode('Sandra+Fern%C3%A1ndez+Sarasola'),jdecode(''),'/45394/18902.html','true',[],'',''],
		['PAGE','18956',jdecode('Mar%C3%ADa+Salazar'),jdecode(''),'/45394/18956.html','true',[],'',''],
		['PAGE','19118',jdecode('Jes%C3%BAs+Herrero'),jdecode(''),'/45394/19118.html','true',[],'',''],
		['PAGE','18983',jdecode('Marta+Fern%C3%A1ndez'),jdecode(''),'/45394/18983.html','true',[],'',''],
		['PAGE','19064',jdecode('Marian+Fern%C3%A1ndez+Seiz'),jdecode(''),'/45394/19064.html','true',[],'',''],
		['PAGE','19010',jdecode('Ana+Montero'),jdecode(''),'/45394/19010.html','true',[],'','']
	],'',''],
	['PAGE','15996',jdecode('Cat%C3%A1logo+otras+artes'),jdecode(''),'/15996/index.html','true',[ 
		['PAGE','23491',jdecode('Iannis+Chalambalakis+-+Acuarelas'),jdecode(''),'/15996/23491.html','true',[],'',''],
		['PAGE','19145',jdecode('Puri+Trabanco+-+Acuarelas'),jdecode(''),'/15996/19145.html','true',[],'',''],
		['PAGE','19172',jdecode('Santana+-+Acuarelas'),jdecode(''),'/15996/19172.html','true',[],'',''],
		['PAGE','25172',jdecode('Jesse+Level+-+Acuarelas'),jdecode(''),'/15996/25172.html','true',[],'','']
	],'',''],
	['PAGE','15053',jdecode('Cat%C3%A1logo+libros'),jdecode(''),'/15053/index.html','true',[ 
		['PAGE','15293',jdecode('Maniobras+de+aproximaci%C3%B3n'),jdecode(''),'/15053/15293.html','true',[],'',''],
		['PAGE','15969',jdecode('Carlos+%C3%81lvarez+Cabrero'),jdecode(''),'/15053/15969.html','true',[],'',''],
		['PAGE','15942',jdecode('El+tiempo+y+el+amor'),jdecode(''),'/15053/15942.html','true',[],'','']
	],'',''],
	['PAGE','80050',jdecode('Exposiciones'),jdecode(''),'/80050/index.html','true',[ 
		['PAGE','83950',jdecode('Nuevas+exposiciones'),jdecode(''),'/80050/83950.html','true',[],'',''],
		['PAGE','78950',jdecode('Isabel+Cuadrado'),jdecode(''),'/80050/78950.html','true',[],'',''],
		['PAGE','80071',jdecode('Fernanda+%C3%81lvarez'),jdecode(''),'/80050/80071.html','true',[],'',''],
		['PAGE','81950',jdecode('Valle+Baranda+Ferrero'),jdecode(''),'/80050/81950.html','true',[],'','']
	],'',''],
	['PAGE','53550',jdecode('ArterIa+Espora+-+Autoedici%C3%B3n'),jdecode(''),'/53550.html','true',[],'',''],
	['PAGE','53577',jdecode('V%C3%ADnculos+con+el+arte'),jdecode(''),'/53577.html','true',[],'',''],
	['PAGE','6915',jdecode('Contacto'),jdecode(''),'/6915/index.html','true',[ 
		['PAGE','10002',jdecode('arteconarte.com+%28follow+up+page%29'),jdecode(''),'/6915/10002.html','false',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='555454';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'555454',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4472',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78950',
internalId:  '',
customField: '20100318-103021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76750',
internalId:  '',
customField: '20100312-190313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53577',
internalId:  '',
customField: '20100406-204729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45394',
internalId:  '',
customField: '20100303-114724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4472',
internalId:  '',
customField: '20100302-114841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20051209-015436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18929',
internalId:  '',
customField: '20051219-093628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29050',
internalId:  '',
customField: '20051219-093710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18902',
internalId:  '',
customField: '20051219-093822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18956',
internalId:  '',
customField: '20051219-093853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19118',
internalId:  '',
customField: '20051219-094020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18983',
internalId:  '',
customField: '20051218-121438'
};
webappMappings['7008']=webappMappings['7008-7758']={
webappId:    '7008',
documentId:  '6915',
internalId:  '7758',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80050',
internalId:  '',
customField: '20100901-154318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19064',
internalId:  '',
customField: '20060209-163112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19010',
internalId:  '',
customField: '20051218-133110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15996',
internalId:  '',
customField: '20100302-134724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23491',
internalId:  '',
customField: '20051210-202932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19145',
internalId:  '',
customField: '20051211-011644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19172',
internalId:  '',
customField: '20051211-012743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25172',
internalId:  '',
customField: '20051210-210659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15053',
internalId:  '',
customField: '20100302-140159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15293',
internalId:  '',
customField: '20051211-143855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15969',
internalId:  '',
customField: '20051210-195230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15942',
internalId:  '',
customField: '20100314-205737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15026',
internalId:  '',
customField: '20100303-114632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16516',
internalId:  '',
customField: '20100302-121802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18350',
internalId:  '',
customField: '20100302-152923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53550',
internalId:  '',
customField: '20100302-134112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6915',
internalId:  '',
customField: '20100406-204604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10002',
internalId:  '',
customField: '20051202-210837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80071',
internalId:  '',
customField: '20100318-110301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81950',
internalId:  '',
customField: '20100406-190441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83950',
internalId:  '',
customField: '20100901-160857'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INE5AP';
var companyName   = 'Obra+gr%C3%A1fica%2C+libros%2C+arte+para+regalar';
var htmlTitle	  = 'arteconarte.com+-+Obra+gr%C3%A1fica';
var metaKeywords  = 'arte%2C+venta+de+obra+gr%C3%A1fica%2C+obra+grafica%2C+regalo%2C+regalos%2C+grabado%2C+grabados%2C+regalo+de+empresa%2C+artistas%2C+obras%2C+libros%2C+edicion+de+arte%2C+edici%C3%B3n+de+arte%2C+xilografia%2C+xilograf%C3%ADa%2C+calcografia%2C+calcograf%C3%ADa%2C+serigrafia%2C+serigraf%C3%ADa%2C+litografia%2C+litograf%C3%ADa%2C+collagraph%2C+tecnicas+mixtas%2C+t%C3%A9cnicas+mixtas%2C+oleo%2C+%C3%B3leo%2C+acuarela%2C+fotografia%2C+fotograf%C3%ADa%2C+pintura%2C+obra+gr%C3%A1fica+original%2C+obra+grafica+original';
var metaContents  = 'Obra+gr%C3%A1fica+original%3A+Xilograf%C3%ADa%2C+litograf%C3%ADa%2C+serigraf%C3%ADa%2C+calcograf%C3%ADa%2C+t%C3%A9cnicas+mixtas%2C+collagraph%2C+monotipos+-+Libros+-+Edici%C3%B3n+de+arte+-+Regalo+de+empresa.+Arte+para+regalar.+Obra+gr%C3%A1fica+original.';
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();
};
