/* [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','4967',jdecode('OLMO+10+MUSICA'),jdecode(''), jdecode('%2F4967%2Findex.html'), 'true',[ 
		['PAGE','4676',jdecode('Home'),jdecode(''), jdecode('%2F4967%2F4676.html'), 'true',[],'',''],
		['PAGE','4940',jdecode('Cont%C3%A1ctenos'),jdecode(''), jdecode('%2F4967%2F4940.html'), 'true',[],'',''],
		['PAGE','9699',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''), jdecode('%2F4967%2F9699.html'), 'true',[],'','']
	],'',''],
	['PAGE','12534',jdecode('PLANETA+CORCHEA'),jdecode(''), jdecode('%2F12534%2Findex.html'), 'true',[ 
		['PAGE','81305',jdecode('CURSOS+Y+TALLERES'),jdecode(''), jdecode('%2F12534%2F81305.html'), 'true',[],'',''],
		['PAGE','97705',jdecode('FRANC.+NAVACERRADA17'),jdecode(''), jdecode('%2F12534%2F97705.html'), 'true',[],'',''],
		['PAGE','91905',jdecode('tabl%C3%B3n+alumnos'),jdecode(''), jdecode('%2F12534%2F91905.html'), 'true',[],'',''],
		['PAGE','80905',jdecode('ALALPARDO+%28ALGETE%29'),jdecode(''), jdecode('%2F12534%2F80905.html'), 'true',[],'',''],
		['PAGE','95905',jdecode('individuales+%C3%81RULA'),jdecode(''), jdecode('%2F12534%2F95905.html'), 'true',[],'',''],
		['PAGE','81326',jdecode('horarios+c%2FOlmo'),jdecode(''), jdecode('%2F12534%2F81326.html'), 'true',[],'','']
	],'',''],
	['PAGE','94205',jdecode('Textos+recomendados'),jdecode(''), jdecode('%2F94205%2Findex.html'), 'true',[ 
		['PAGE','81005',jdecode('PIANO+'),jdecode(''), jdecode('%2F94205%2F81005.html'), 'true',[],'',''],
		['PAGE','94226',jdecode('GUITARRA'),jdecode(''), jdecode('%2F94205%2F94226.html'), 'true',[],'',''],
		['PAGE','94247',jdecode('BATER%C3%8DA'),jdecode(''), jdecode('%2F94205%2F94247.html'), 'true',[],'',''],
		['PAGE','97726',jdecode('SAXOF%C3%93N'),jdecode(''), jdecode('%2F94205%2F97726.html'), 'true',[],'',''],
		['PAGE','97747',jdecode('TROMPETA'),jdecode(''), jdecode('%2F94205%2F97747.html'), 'true',[],'',''],
		['PAGE','97768',jdecode('VIOLIN%2CCELLO'),jdecode(''), jdecode('%2F94205%2F97768.html'), 'true',[],'',''],
		['PAGE','98905',jdecode('CANTO'),jdecode(''), jdecode('%2F94205%2F98905.html'), 'true',[],'',''],
		['PAGE','10528',jdecode('ALQUILER+INSTRUMENTOS'),jdecode(''), jdecode('%2F94205%2F10528.html'), 'true',[],'','']
	],'',''],
	['PAGE','15762',jdecode('Instrumentos'),jdecode(''), jdecode('%2F15762%2Findex.html'), 'true',[ 
		['PAGE','29885',jdecode('PIANOS+Digitales-TECLADOS'),jdecode(''), jdecode('%2F15762%2F29885.html'), 'true',[],'',''],
		['PAGE','43083',jdecode('PIANOS+Verticales'),jdecode(''), jdecode('%2F15762%2F43083.html'), 'true',[],'',''],
		['PAGE','29912',jdecode('BATERIAS+y+Percusi%C3%B3n'),jdecode(''), jdecode('%2F15762%2F29912.html'), 'true',[],'',''],
		['PAGE','29939',jdecode('AMPLIFICADORES+Guitarra'),jdecode(''), jdecode('%2F15762%2F29939.html'), 'true',[],'',''],
		['PAGE','33885',jdecode('AMPLIFICADORES+Bajo'),jdecode(''), jdecode('%2F15762%2F33885.html'), 'true',[],'',''],
		['PAGE','39083',jdecode('GUITARRAS+CLASICAS'),jdecode(''), jdecode('%2F15762%2F39083.html'), 'true',[],'',''],
		['PAGE','33912',jdecode('GUITARRAS+IBANEZ'),jdecode(''), jdecode('%2F15762%2F33912.html'), 'true',[],'',''],
		['PAGE','45483',jdecode('GUITARRAS+WASHBURN'),jdecode(''), jdecode('%2F15762%2F45483.html'), 'true',[],'',''],
		['PAGE','33939',jdecode('BAJOS+IBANEZ'),jdecode(''), jdecode('%2F15762%2F33939.html'), 'true',[],'',''],
		['PAGE','34983',jdecode('CUERDA+FROTADA'),jdecode(''), jdecode('%2F15762%2F34983.html'), 'true',[],'',''],
		['PAGE','35004',jdecode('VIENTO'),jdecode(''), jdecode('%2F15762%2F35004.html'), 'true',[],'','']
	],'',''],
	['PAGE','10032',jdecode('mapa+de+acceso'),jdecode(''), jdecode('%2F10032.html'), 'true',[],'',''],
	['PAGE','49083',jdecode('C%C3%B3mo+encontrarnos'),jdecode(''), jdecode('%2F49083.html'), 'true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Roadsign';
theSitetree.paletteFamily='CFD5F7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10356';
theSitetree.graphicsetId='10496';
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: 			'Roadsign',
				paletteFamily: 	'CFD5F7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10356',
				graphicsetId: 	'10496',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'666666',
				e_color: 		'999999',
				f_color: 		'663300',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81305',
internalId:  '',
customField: '20120125-193902'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '10032',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80905',
internalId:  '',
customField: '20110909-115558'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4967',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4967',
internalId:  '1501',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '49083',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4967',
internalId:  '',
customField: '20110928-205502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4676',
internalId:  '',
customField: '20120108-203624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4940',
internalId:  '',
customField: '20110928-205727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9699',
internalId:  '',
customField: '20120108-204050'
};
webappMappings['7050']=webappMappings['7050-7309']={
webappId:    '7050',
documentId:  '91905',
internalId:  '7309',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12534',
internalId:  '',
customField: '20120125-192727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91905',
internalId:  '',
customField: '20120108-204304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10528',
internalId:  '',
customField: '20100920-143540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94205',
internalId:  '',
customField: '20101125-212249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15762',
internalId:  '',
customField: '20120125-194614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29885',
internalId:  '',
customField: '20100723-175904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43083',
internalId:  '',
customField: '20071022-190243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29912',
internalId:  '',
customField: '20071018-203242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29939',
internalId:  '',
customField: '20071022-184342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33885',
internalId:  '',
customField: '20071022-193255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39083',
internalId:  '',
customField: '20071018-200346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33912',
internalId:  '',
customField: '20070531-181931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45483',
internalId:  '',
customField: '20070602-115012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33939',
internalId:  '',
customField: '20070523-195336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34983',
internalId:  '',
customField: '20120125-194655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35004',
internalId:  '',
customField: '20070808-030407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10032',
internalId:  '',
customField: '20070927-211732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81326',
internalId:  '',
customField: '20120125-192143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98905',
internalId:  '',
customField: '20120201-172903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49083',
internalId:  '',
customField: '20070611-145226'
};
webappMappings['1501']=webappMappings['1501-1437693']={
webappId:    '1501',
documentId:  '4967',
internalId:  '1437693',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94226',
internalId:  '',
customField: '20120201-170102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81005',
internalId:  '',
customField: '20120108-204542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94247',
internalId:  '',
customField: '20120201-172708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95905',
internalId:  '',
customField: '20110909-115758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97705',
internalId:  '',
customField: '20120125-193936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97726',
internalId:  '',
customField: '20120201-171831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97747',
internalId:  '',
customField: '20120201-171244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97768',
internalId:  '',
customField: '20120201-170623'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010IN23OP';
var companyName   = 'OLMO10MUSICA';
var htmlTitle	  = 'Escuela+de+m%C3%BAsica+e+instrumentos+musicales';
var metaKeywords  = 'ense%C3%B1anza+musical%2C+cursos+de+m%C3%BAsica%2C+ensayo%2C+musica%2C+bodas%2C+sonido%2C+equipos%2C+instrumentos+musicales+soprano+coro%2Cpiano+guitarra%2C+grabacion%2C+disc-jockey+call+and+play+conciertos++rock+blues+jazz+%2C+alquiler+instrumentos%2C+bateria%2C+marshall%2C+peavey%2C+mapex%2C+pianos+digitales%2C+bajos+electricos%2C+amplificadores%2C+packs+guitarra%2C+casio%2C+privia%2C+yamaha%2C+guitarra%2C+violin%2C+luthier%2C+petrof%2C+strunal+';
var metaContents  = 'escuela+de+musica%2C+clases+de+guitarra%2C+clases+de+piano%2C+clases+de+canto%2C+locales+de+ensayo%2C+salas+de+ensayo%2C++grabacion+de+musica%2C+piano%2C+guitarra%2C+canto+soprano+organo+sonido+instrumentos+musicales+amplificadores%2C+tienda+de+musica%2C+call+and+play%2C+percusion%2C+bateria%2Cs+bateria+mapex%2C+pear%2Cl+tama%2C+tribal%2C+roland%2C+yamaha%2C+samick%2C+petrof%2C';
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();
};

