/* [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','4395',jdecode('INICIO'),jdecode(''), jdecode('%2F4395.html'), 'true',[],'',''],
	['PAGE','4688',jdecode('OFERTAS'),jdecode(''), jdecode('%2F4688.html'), 'true',[],'',''],
	['PAGE','65401',jdecode('SCHOOL+PAINT'),jdecode(''), jdecode('%2F65401.html'), 'true',[],'',''],
	['PAGE','5217',jdecode('INSTALACIONES'),jdecode(''), jdecode('%2F5217.html'), 'true',[],'',''],
	['PAGE','61601',jdecode('LIGAS+PAINTBALL'),jdecode(''), jdecode('%2F61601.html'), 'true',[],'',''],
	['PAGE','73301',jdecode('DONDE+ESTAMOS'),jdecode(''), jdecode('%2F73301.html'), 'false',[],'',''],
	['PAGE','75201',jdecode('FOTOS+'),jdecode(''), jdecode('%2F75201.html'), 'true',[],'',''],
	['PAGE','73322',jdecode('BLOG'),jdecode(''), jdecode('%2F73322.html'), 'true',[],'',''],
	['PAGE','72901',jdecode('CONTACTANOS'),jdecode(''), jdecode('%2F72901.html'), 'true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='5E5E5E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10448';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='5e5e5e';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IF'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'5E5E5E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10448',
				contentColor: 	'FFFFFF',
				contentBGColor: '5e5e5e',
				a_color: 		'5E5E5E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4395',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4395',
internalId:  '',
customField: '20120112-203420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4688',
internalId:  '',
customField: '20120101-195455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5217',
internalId:  '',
customField: '20111213-010927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61601',
internalId:  '',
customField: '20111213-000349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65401',
internalId:  '',
customField: '20120109-225745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20111213-130612'
};
webappMappings['7050']=webappMappings['7050-6863']={
webappId:    '7050',
documentId:  '73322',
internalId:  '6863',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20111203-180411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73322',
internalId:  '',
customField: '20100730-125412'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4395',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75201',
internalId:  '',
customField: '20111213-010954'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4688',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5217',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '61601',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '65401',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '73301',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '75201',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '73322',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '72901',
internalId:  '',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEH0J';
var companyName   = 'WWW.PAINTBALL-LACEPA.ES';
var htmlTitle	  = 'PAINTBALL+VALENCIA';
var metaKeywords  = 'PAINTBALL+VALENCIA%2C+DESPEDIDAS%2C+CUMPLEA%C3%91OS%2C+OFERTA%2C+++PAINTBALL+EN+VALENCIA%2C+%2C+PAINTBALL++ECONOMICO%2C+PAINTBALL+VALENCIA%2C+%2C+DESPEDIDAS%2C+CAMPO+PAINTBALL+MOVIL%2C+CUMPLEA%C3%91OS%2C+paintball+en+valencia%2C+paintball+barato+economico%2C+paintball+valencia%2C+despedidas%2C+campo+paintball+movil%2C+cumplea%C3%B1os%2C+fiesta%2C+asociaci%C3%B3n+paintball%2C+diversion%2C+economico%2C+paintball+competicion%2C+paintball+hinchable%2C+paintbal%2C+%2C+DIVERSION%2C+ECONOMICO+%2C+PAINTBALL+COMPETICION%2C+PAINTBALL+HINCHABLE%2C+PAINTBAL%2C++BOLAS+DE+PINTURA%2Cpaint+ball%2C+paintbal%2C+';
var metaContents  = 'PAINTBALL+VALENCIA%2C++paintball+valencia%2C+PAINTBALL+EN+VALENCIA%2C+PAINTBALL+VALENCIA%2C+%2C+DESPEDIDAS%2C+CAMPO+PAINTBALL+MOVIL%2C+CUMPLEA%C3%91OS%2C+%2C+DIVERSION%2C+ECONOMICO+%2C+PAINTBALL+COMPETICION%2C+PAINTBALL+INCHABLE%2C+PAINTBAL%2C+PINVAL%2C+PINBAL%2C+PINBOL%2C+BOLAS+DE+PINTURA+Y+CON+MAYOR+NUMERO+DE+PARTICIPANTES%2C+CENTRO+DE+OCIO%2C+DEPORTE+AL+AIRE+LIBRE+SOLO+EN+PAINTBALL-LACEPA+A+UN+PASO+DE+VALENCIAPaintball+en+godellla%2C+paintball+en+valencia%2C+paintball+en+godelleta%2C+paintball+barato+economico%2C+paintball+valencia%2C+mejor+paintball%2C+despedidas%2C+campo+paintball+movil%2C+cumplea%C3%B1os%2C+fiesta%2C+asociaci%C3%B3n+paintball%2C+diversion%2C+economico%2C+paintball+competicion%2C+paintball+inchable%2C+paintbal%2C+pi%C3%B1al+%2Cpaintbal%2C+paintballs%2C+paint-ball%2C+paint_ball%2C+paint.ball%2C+pimball%2C+pinball%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();
};

