/* [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','701',jdecode('INICI'),jdecode(''), jdecode('%2F701.html'), 'true',[],'',''],
	['PAGE','72712',jdecode('PEDIGRI+OFICIAL+L.C.C.'),jdecode(''), jdecode('%2F72712.html'), 'true',[],'',''],
	['PAGE','815',jdecode('TRAMITS-IMPRESOS'),jdecode(''), jdecode('%2F815%2Findex.html'), 'true',[ 
		['PAGE','29301',jdecode('Impresos'),jdecode(''), jdecode('%2F815%2F29301.html'), 'true',[],'','']
	],'',''],
	['PAGE','58301',jdecode('RECONEIXEMENT+'),jdecode(''), jdecode('%2F58301.html'), 'true',[],'',''],
	['PAGE','752',jdecode('CURSOS+Introducci%C3%B3'),jdecode(''), jdecode('%2F752.html'), 'true',[],'',''],
	['PAGE','18701',jdecode('Curs+Ensinistrament'),jdecode(''), jdecode('%2F18701.html'), 'true',[],'',''],
	['PAGE','19001',jdecode('Curs+Perruqueria'),jdecode(''), jdecode('%2F19001.html'), 'true',[],'',''],
	['PAGE','19022',jdecode('Curs+Etologia'),jdecode(''), jdecode('%2F19022.html'), 'true',[],'',''],
	['PAGE','19043',jdecode('Curs+Criador+de+gossos'),jdecode(''), jdecode('%2F19043.html'), 'true',[],'',''],
	['PAGE','19106',jdecode('Curs+Clicker'),jdecode(''), jdecode('%2F19106.html'), 'true',[],'',''],
	['PAGE','19127',jdecode('Curs+Gossos+Assist%C3%A8ncia'),jdecode(''), jdecode('%2F19127%2Findex.html'), 'true',[ 
		['PAGE','23801',jdecode('Rastreig+i+Salvament'),jdecode(''), jdecode('%2F19127%2F23801.html'), 'true',[],'',''],
		['PAGE','46101',jdecode('Ter%C3%A0pia'),jdecode(''), jdecode('%2F19127%2F46101.html'), 'true',[],'',''],
		['PAGE','46143',jdecode('Escolta'),jdecode(''), jdecode('%2F19127%2F46143.html'), 'true',[],'','']
	],'',''],
	['PAGE','41101',jdecode('Altres+Cursos'),jdecode(''), jdecode('%2F41101%2Findex.html'), 'true',[ 
		['PAGE','19064',jdecode('Jutge+Bellesa'),jdecode(''), jdecode('%2F41101%2F19064.html'), 'true',[],'',''],
		['PAGE','19085',jdecode('Jutge+B.C.C.'),jdecode(''), jdecode('%2F41101%2F19085.html'), 'true',[],'',''],
		['PAGE','24101',jdecode('Comissari+de+Ring'),jdecode(''), jdecode('%2F41101%2F24101.html'), 'true',[],'',''],
		['PAGE','41122',jdecode('Figurant'),jdecode(''), jdecode('%2F41101%2F41122.html'), 'true',[],'','']
	],'',''],
	['PAGE','773',jdecode('EXPO+-+CANINA'),jdecode(''), jdecode('%2F773%2Findex.html'), 'true',[ 
		['PAGE','40801',jdecode('Impresos+Inscripcions+'),jdecode(''), jdecode('%2F773%2F40801.html'), 'true',[],'',''],
		['PAGE','55701',jdecode('Presentaci%C3%B3+al+ring'),jdecode(''), jdecode('%2F773%2F55701.html'), 'true',[],'',''],
		['PAGE','19901',jdecode('Bases'),jdecode(''), jdecode('%2F773%2F19901.html'), 'true',[],'',''],
		['PAGE','129134',jdecode('Classes+Participants'),jdecode(''), jdecode('%2F773%2F129134.html'), 'true',[],'','']
	],'',''],
	['PAGE','19964',jdecode('BON+CIUTAD%C3%80+CAN%C3%8D'),jdecode(''), jdecode('%2F19964.html'), 'true',[],'',''],
	['PAGE','19922',jdecode('CALENDARI+EXPOS'),jdecode(''), jdecode('%2F19922.html'), 'true',[],'',''],
	['PAGE','158534',jdecode('CALENDARI+CURSOS'),jdecode(''), jdecode('%2F158534.html'), 'true',[],'',''],
	['PAGE','19943',jdecode('FOTOS+EXPOS'),jdecode(''), jdecode('%2F19943%2Findex.html'), 'true',[ 
		['PAGE','163934',jdecode('Arenys+de+Munt+2011'),jdecode(''), jdecode('%2F19943%2F163934.html'), 'true',[],'',''],
		['PAGE','162234',jdecode('La+Llagosta+2011'),jdecode(''), jdecode('%2F19943%2F162234.html'), 'true',[],'',''],
		['PAGE','152434',jdecode('Terrassa+2011'),jdecode(''), jdecode('%2F19943%2F152434.html'), 'true',[],'',''],
		['PAGE','162255',jdecode('Santa+Perpetua+de+la+Mogoda+2011'),jdecode(''), jdecode('%2F19943%2F162255.html'), 'true',[],'',''],
		['PAGE','156634',jdecode('La+Seu+d%26%23x27%3BUrgell+2011'),jdecode(''), jdecode('%2F19943%2F156634.html'), 'true',[],'','']
	],'',''],
	['PAGE','20901',jdecode('REGISTRE+XIP+gratuit'),jdecode(''), jdecode('%2F20901.html'), 'true',[],'',''],
	['PAGE','141334',jdecode('NOVETATS%21%21%21'),jdecode(''), jdecode('%2F141334.html'), 'true',[],'',''],
	['PAGE','23101',jdecode('COM+ARRIBAR'),jdecode(''), jdecode('%2F23101.html'), 'true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Surround';
theSitetree.paletteFamily='C12C21';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10502';
theSitetree.graphicsetId='11132';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='C12C21';
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: 			'Surround',
				paletteFamily: 	'C12C21',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10502',
				graphicsetId: 	'11132',
				contentColor: 	'FFFFFF',
				contentBGColor: 'C12C21',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FEA7A1',
				e_color: 		'FEA7A1',
				f_color: 		'FEA7A1',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20111221-180416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20111221-174857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20120116-165256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19022',
internalId:  '',
customField: '20111221-175130'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-8658488']={
webappId:    '1501',
documentId:  '701',
internalId:  '8658488',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '23101',
internalId:  'routing',
customField: 'es_ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20090723-091718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20111221-181712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20111221-175038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19964',
internalId:  '',
customField: '20111221-182043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19922',
internalId:  '',
customField: '20120124-152800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19943',
internalId:  '',
customField: '20111221-182258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20111221-174931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20111221-174615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20090722-102133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20111221-174750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20111221-180935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19043',
internalId:  '',
customField: '20111221-175202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19106',
internalId:  '',
customField: '20111221-175251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19127',
internalId:  '',
customField: '20111221-180656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162234',
internalId:  '',
customField: '20120111-104828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158534',
internalId:  '',
customField: '20120116-165520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20111221-180724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20111221-180756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20090730-145934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46143',
internalId:  '',
customField: '20111221-180902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19064',
internalId:  '',
customField: '20111221-181601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19085',
internalId:  '',
customField: '20111221-181625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41122',
internalId:  '',
customField: '20111221-181801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20110118-153403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20120116-165335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152434',
internalId:  '',
customField: '20111020-192022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141334',
internalId:  '',
customField: '20110630-174027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20111221-174826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72712',
internalId:  '',
customField: '20111221-174543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162255',
internalId:  '',
customField: '20111122-183903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129134',
internalId:  '',
customField: '20111221-181953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156634',
internalId:  '',
customField: '20111026-135545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163934',
internalId:  '',
customField: '20111220-165355'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INLMET';
var companyName   = 'REIAL+SOCIETAT+CANINA+DE+CATALUNYA++-++Tel%2FFax+93-285.11.28';
var htmlTitle	  = 'caninacat.org';
var metaKeywords  = 'cursos%2C+adiestramiento%2C+ensinistrament%2C+canina%2C+pedigree%2C+pedigr%C3%AD%2C+perros%2C+gossos%2C+criador%2C+reconocimiento%2C+reconeixement%2C+peluqueria%2C+perruqueria%2C+exposiciones+caninas%2C+exposicions+canines%2C+real+sociedad+canina%2C+reial+societat+canina%2C+bon+ciutad%C3%A0+can%C3%AD%2C+buen+ciudadano+canino.';
var metaContents  = 'Pedigr%C3%AD+Oficial%2C+Reconocimientos+de+Raza%2C+Cursos+de+Adiestramiento%2C+Peluqueria%2C+Etologia%2C+Criador%2C+Exposiciones+Caninas+de+Belleza+y+Prueba+de+Buen+Ciudadano+Canino.+';
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();
};

