/* [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','4554',jdecode('Espa%C3%B1ol'),jdecode(''),'/4554/index.html','true',[ 
		['PAGE','4611',jdecode('Nuestros+servicios'),jdecode(''),'/4554/4611.html','true',[],'',''],
		['PAGE','20201',jdecode('Guardamuebles'),jdecode(''),'/4554/20201.html','false',[],'',''],
		['PAGE','20701',jdecode('Escalera+Montamuebles'),jdecode(''),'/4554/20701.html','false',[],'',''],
		['PAGE','10201',jdecode('Transporte+de+Barcos+'),jdecode(''),'/4554/10201.html','false',[],'',''],
		['PAGE','21201',jdecode('Cami%C3%B3n+Gr%C3%BAa'),jdecode(''),'/4554/21201.html','false',[],'',''],
		['PAGE','23701',jdecode('Traslado+de+Pianos'),jdecode(''),'/4554/23701.html','false',[],'',''],
		['PAGE','29101',jdecode('Embalaje+de+Mudanzas'),jdecode(''),'/4554/29101.html','false',[],'',''],
		['PAGE','28701',jdecode('Alquiler+de+maquinaria'),jdecode(''),'/4554/28701.html','false',[],'',''],
		['PAGE','16501',jdecode('Fotos'),jdecode(''),'/4554/16501.html','true',[],'',''],
		['PAGE','4638',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/4554/4638.html','true',[],'',''],
		['PAGE','26701',jdecode('Buscar'),jdecode(''),'/4554/26701.html','true',[],'','']
	],'',''],
	['PAGE','23501',jdecode('English'),jdecode(''),'/23501/index.html','true',[ 
		['PAGE','25801',jdecode('Services'),jdecode(''),'/23501/25801.html','true',[],'',''],
		['PAGE','27501',jdecode('Furniture+repository'),jdecode(''),'/23501/27501.html','false',[],'',''],
		['PAGE','27522',jdecode('Furniture+assembly+elevators'),jdecode(''),'/23501/27522.html','false',[],'',''],
		['PAGE','27543',jdecode('Sail+Boats+transport'),jdecode(''),'/23501/27543.html','false',[],'',''],
		['PAGE','27564',jdecode('Truck+Crane'),jdecode(''),'/23501/27564.html','false',[],'',''],
		['PAGE','28301',jdecode('Piano+removals'),jdecode(''),'/23501/28301.html','false',[],'',''],
		['PAGE','28722',jdecode('Rent+of+machinery'),jdecode(''),'/23501/28722.html','false',[],'',''],
		['PAGE','29122',jdecode('Removals+packaging'),jdecode(''),'/23501/29122.html','false',[],'',''],
		['PAGE','25822',jdecode('Gallery'),jdecode(''),'/23501/25822.html','true',[],'',''],
		['PAGE','25843',jdecode('Contact+Us'),jdecode(''),'/23501/25843.html','true',[],'','']
	],'',''],
	['PAGE','29801',jdecode('Euskera'),jdecode(''),'/29801/index.html','true',[ 
		['PAGE','29822',jdecode('Gure+zerbitzuak'),jdecode(''),'/29801/29822.html','true',[],'',''],
		['PAGE','30001',jdecode('Altzari-Gordelekua'),jdecode(''),'/29801/30001.html','false',[],'',''],
		['PAGE','30022',jdecode('Eskailera+Altzari-jasogailua'),jdecode(''),'/29801/30022.html','false',[],'',''],
		['PAGE','30043',jdecode('Itsasontzien+Garraioa'),jdecode(''),'/29801/30043.html','false',[],'',''],
		['PAGE','30064',jdecode('Garabi-kamioia'),jdecode(''),'/29801/30064.html','false',[],'',''],
		['PAGE','30301',jdecode('Pianoen+lekualdaketa'),jdecode(''),'/29801/30301.html','false',[],'',''],
		['PAGE','30322',jdecode('Makineria+alokairua'),jdecode(''),'/29801/30322.html','false',[],'',''],
		['PAGE','30343',jdecode('Etxe-aldaketen+Paketatzea'),jdecode(''),'/29801/30343.html','false',[],'',''],
		['PAGE','29843',jdecode('Argazkiak'),jdecode(''),'/29801/29843.html','true',[],'',''],
		['PAGE','29864',jdecode('Kontaktatu'),jdecode(''),'/29801/29864.html','true',[],'','']
	],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='CC6600';
theSitetree.keyvisualId='1334';
theSitetree.keyvisualName='transportfahrtzeug.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='286';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'CC6600',
				keyvisualId: 	'1334',
				keyvisualName: 	'transportfahrtzeug.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'286',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'CC6600',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25822',
internalId:  '',
customField: '20110516-201857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20110517-001017'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4554',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4554',
internalId:  '',
customField: '20110513-205541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4611',
internalId:  '',
customField: '20110517-000629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20110331-200318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4638',
internalId:  '',
customField: '20100428-173233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20100428-181524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20100428-181020'
};
webappMappings['7008']=webappMappings['7008-9027']={
webappId:    '7008',
documentId:  '4638',
internalId:  '9027',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-e6cf7f9d0a97e3e65342759652220893']={
webappId:    '7060',
documentId:  '16501',
internalId:  'e6cf7f9d0a97e3e65342759652220893',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20080331-174112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20110516-192756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20110331-195610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20701',
internalId:  '',
customField: '20100428-181044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25843',
internalId:  '',
customField: '20110514-002126'
};
webappMappings['7060']=webappMappings['7060-f875baf9aba7a546c41964d7b7d0af15']={
webappId:    '7060',
documentId:  '25822',
internalId:  'f875baf9aba7a546c41964d7b7d0af15',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-13487']={
webappId:    '7008',
documentId:  '25843',
internalId:  '13487',
customField: 'language:es;country:ES;'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '26701',
internalId:  'search',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20110514-001622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20110516-195257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27522',
internalId:  '',
customField: '20110516-195554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27543',
internalId:  '',
customField: '20110516-201627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27564',
internalId:  '',
customField: '20110516-201808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20110516-203302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28722',
internalId:  '',
customField: '20110517-001610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20110516-205801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20110517-000814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29122',
internalId:  '',
customField: '20110517-000923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20110517-190617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29822',
internalId:  '',
customField: '20110517-192121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20110517-192502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30022',
internalId:  '',
customField: '20110517-192636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30043',
internalId:  '',
customField: '20110517-193041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29843',
internalId:  '',
customField: '20110517-002227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30064',
internalId:  '',
customField: '20110517-193256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20110517-193709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30322',
internalId:  '',
customField: '20110517-194153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30343',
internalId:  '',
customField: '20110517-194343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29864',
internalId:  '',
customField: '20110517-194607'
};
webappMappings['7060']=webappMappings['7060-d3de3777cc2fc0a5e9a72a4deb5dde5c']={
webappId:    '7060',
documentId:  '29843',
internalId:  'd3de3777cc2fc0a5e9a72a4deb5dde5c',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-13513']={
webappId:    '7008',
documentId:  '29864',
internalId:  '13513',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEEU2';
var companyName   = 'Transportes+y+Servicios+Josetxu+Galarza+S.A.';
var htmlTitle	  = 'Transportes+y+Servicios+Josetxu+Galarza+S.A.';
var metaKeywords  = 'transportes%2C+servicios%2C+mudanzas%2C+nacionales+e+internacionales%2C+Josetxu%2C+Galarza%2C+traslados%2C+cajeros%2C+montaje+desmontaje+muebles%2C+traslados+material+informatico%2C+pianos%2C+camion+grua%2C+escalera+montamuebles%2C+guardamuebles%2C+destrucci%C3%B3n+archivos%2C+ruta+Bilbao-Madrid';
var metaContents  = 'Transportes%2C+Servicios+y+Mudanzas%2C+Nacionales+e+Internacionales+Josetxu+Galarza.+Traslado+de+Cajeros%2C+Montaje+y+Desmontaje+de+Muebles.+Traslados+de+Material+informatico+y+de+pianos.+Camiones+grua.+Escaleras+Montamuebles.+Guardamuebles.+Mudanza+de+oficinas+y+viviendas.+Traslado+de+obras+de+arte.+Traslado+y+destrucci%C3%B3n+de+archivos.+';
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();
};

