/* [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 theSitetree=[ 
	['PAGE','3901',jdecode('Arezza+Non+Profit'),jdecode(''),'/3901.html','true',[],''],
	['PAGE','4001',jdecode('Aree+Locali+%3A+Communities'),jdecode(''),'/4001.html','true',[],''],
	['PAGE','4222',jdecode('Partner'),jdecode(''),'/4222.html','true',[],''],
	['PAGE','4101',jdecode('Proposte+%3A+Projects'),jdecode(''),'/4101.html','true',[],''],
	['PAGE','4201',jdecode('Lavoro+Studio+%3A+Work+Study'),jdecode(''),'/4201.html','true',[],''],
	['PAGE','11401',jdecode('Energie+Rinnovabili'),jdecode(''),'/11401.html','true',[],''],
	['PAGE','11901',jdecode('Riciclaggio+%3A+Recycling'),jdecode(''),'/11901.html','true',[],''],
	['PAGE','9501',jdecode('Turismo+%3A+Travel'),jdecode(''),'/9501.html','true',[],''],
	['PAGE','9401',jdecode('Risorse+%3A+Link+Resources'),jdecode(''),'/9401.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='2E681F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10830';
theSitetree.graphicsetId='11286';
theSitetree.contentColor='333333';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Basic',
				paletteFamily: 	'2E681F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10830',
				graphicsetId: 	'11286',
				contentColor: 	'333333',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20100117-085510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4001',
internalId:  '',
customField: '20090720-082908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20091005-094454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20090715-062603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20100110-020511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20091202-042403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20090718-120259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20090721-101943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090726-051948'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLTJH';
var companyName   = '%27A+rezza+Non+Profit';
var htmlTitle	  = 'Il+Non+Profit+per+le+Aree+Locali+%3A+Community+NonProfit+Services';
var metaKeywords  = 'marketing+aree+locali%2C+marketing+del+territorio%2C+gestione+aree+locali%2C+gestione+del+territorio%2C+nuove+professioni%2C+valorizzazione+del+marchio%2C+sviluppo+strategie+aree+locali%2C+sviluppo+strategie+del+territorio%2C+marketing+imprese%2C+fare+impresa+nelle+aree+locali%2C+gestione+imprese%2C+sviluppo+strategie+imprese%2C+progetti+chiave+in+mano%2C+verifica+del+mercato%2C+analisi+della+concorrenza+e+definizione+delle+opportunita%2C++pianificazione+del+marketing%2C+pianificazione+delle+vendite%2C+pianificazione+della+pubblicita%2C+identita+del+marchio%2C+sviluppo+del+logo%2C+sviluppo+e+disegno+siti+web%2C+sviluppo+di+materiale+collaterale+marketing+e+pubblicita%2C+e-marketing%2C+customer+relationship+management+%28CRM%29%2C++formazione+imprenditori%2C+raccolta+fondi+non+profit%2C+sviluppo+servizi+turistici%2C+gestione+servizi+turistici%2C+gestione+servizi+logistici%2C+economia+sostenibile+nel+territorio%2C+ambiente+e+territorio%2C+creazione+nuove+imprese%2C+finanziamento+nuove+imprese%2C+gestione+attivit%C3%A0+non+profit%2Cenergia+solare%2C+energia+eolica%2C+gestione+musei%2C+gestione+beni+culturali+servizi+exchange%2C+servizi+baratto%2Csviluppo+del+territorio%2C+studio+e+lavoro%2C+studi+in+italia%2C+semestre+studi+fuori+sede%2C+studio+lavoro+ambiente%2C+studio+lavoro+turismo%2C+studio+lavoro+artigianato%2C+studio+lavoro+sviluppo+del+territorio%2C+studio+lavoro+agroalimentare%2C+turismo+sostenibile%2C+turismo+per+i+disabili%2C+servizi+turistici+per+i+disabili%2C+servizi+turistici+per+la+terza+et%C3%A0%2C+commercializzazione+impianti+eolici%2C+commercializzazione+impianti+fotovoltaici%2C+messa+in+opera+impianti+fotovoltaici%2C+messa+in+opera+impianti+eolici%2C+gestione+impianti+fotovoltaici%2C+gestione+impianti+eolici+%2C+servizi+turistici+per+gruppi%2C+escursioni+turistiche+personalizzate%2C+escursioni+ecologiche%2C+ecoturismo%2C+escursioni+gastronomiche%2C+scuola+cucina%2C+vacanze+per+famiglie%2C+viaggi+culturali%2C+market+strategy+and+brand%2C+market+region%2C+local+area+and+products%2C+build+and+operate+marketing+and+sales+programs%2C+market+Assessment%2C+competitive+analysis%2C+opportunity+definition%2C+small+business+marketing+plans%2C+business+sales+plans%2C+business+advertising+plans%2C+brand+identity%2C+logo+development%2C+website+design+and+creation%2C+advertising+and+marketing+collateral+development%2C+e-marketing+services%2C+fundraising+for+nonprofits%2C+public+relations+plans%2C+media+placements%2C+market+influencer+tours%2C+public+relations+events%2C+BOT+plans%2C+trade+finance%2C+nonprofit+management%2C+customer+relationship+management+%28CRM%29%2C+logistics+services%2C+economic+development+projects%2C+travel+services+management%2C+economically+sustainable+projects%2C+environmentally+sustainable+projects%2C+recycling%2C+italian+culture%2C+nonprofit+training%2C+nonprofit+management%2C+solar+energy%2C+wind+power%2C+barter+services%2C+exchange+services%2C+work+study+programs%2C+semester+studies+abroad%2C+study+in+Italy%2C+work+study+environment%2C+work+study+tourism%2C+work+study+agriculture%2C+work+study+artisan+skills%2Cwork+study+economic+development%2C+sustainable+tourism%2C+museum+management%2C+travel+services+for+persons+with+disabilities%2C+disabled+persons+tours+Italy%2C+travel+services+for+senior+citizens%2C+wind+energy+marketing%2C+wind+energy+management%2C+wind+energy+installation%2C+photovoltaic+energy%2C+photovoltaic+management%2C+photovoltaic+installation%2C+group+travel+services%2C+travel+excursions%2C+ecological+tours%2C+ecological+excursions%2C+ecotours%2C+gastronomic+itineraries%2C+cooking+classes%2C+family+vacations%2C+cultural+vacations';
var metaContents  = '+il+non+profit+per+le+aree+locali+%E2%80%98A+rezza+%C3%A8+una+associazione+senza+scopo+di+lucro+che+ha+lo+scopo+di%3A++favorire%2C+sviluppare+e+potenziare+reti+di+persone%2C+imprese+e+istituzioni+per+realizzare+progetti+di+sviluppo+personale%2C+sociale+ed+economico.+promuovere+nella+societ%C3%A0+e+presso+gli+imprenditori+un+sistema+di+valori+basato+su+sostenibilit%C3%A0%2C+etica+della+responsabilit%C3%A0%2C+imprenditorialit%C3%A0%2C+competenze+professionali%2C+attenzione+al+cambiamento%2C+innovazione%2C+spirito+di+squadra+e+cooperazione.+a+nonprofit+for+your+local+area+%E2%80%98A+rezza+is+a+nonprofit+associations+mission+is+to+develop+networks+of+persons%2C+businesses+and+public%2Fprivate+organizations+and+to+promote+a+value+system+based+on+sustainability%2C+the+ethics+of+responsibility%2C+professionalism+and+entrepreneurship+with+a+special+focus+on+innovation%2C+team+work%2C+cooperation+and+attention+to+change.+The+association+has+a+particular+interest+in+local+area+development+with+social+research%2C+communications%2C+training%2C+technical+and+organizational+innovation%2C+support+of+new+business+formation%2C+interregional%2C+transnational+and+international+cooperation.';
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();
};
