/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','536',jdecode('S.S.+LAZIO'),jdecode(''),'/536.html','true',[],'',''],
	['PAGE','48501',jdecode('Statistiques+'),jdecode(''),'/48501.html','true',[],'',''],
	['PAGE','515',jdecode('Histoire+'),jdecode(''),'/515/index.html','true',[ 
		['PAGE','202201',jdecode('1900+-+1927'),jdecode(''),'/515/202201.html','true',[],'',''],
		['PAGE','202222',jdecode('1930+-+1950'),jdecode(''),'/515/202222.html','true',[],'',''],
		['PAGE','202243',jdecode('1950+-+1963'),jdecode(''),'/515/202243.html','true',[],'',''],
		['PAGE','202264',jdecode('1963+-+1969'),jdecode(''),'/515/202264.html','true',[],'',''],
		['PAGE','202285',jdecode('1970+-+1974'),jdecode(''),'/515/202285.html','true',[],'',''],
		['PAGE','207001',jdecode('1975+-+1980'),jdecode(''),'/515/207001.html','true',[],'',''],
		['PAGE','212801',jdecode('CRAGNOTTI+92-02'),jdecode(''),'/515/212801.html','true',[],'','']
	],'',''],
	['PAGE','893',jdecode('Troph%C3%A9es'),jdecode(''),'/893.html','true',[],'',''],
	['PAGE','473',jdecode('Lazio+Swiss+'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','180701',jdecode('12%C2%B0l%C3%A9gion'),jdecode(''),'/473/180701.html','true',[],'',''],
		['PAGE','198001',jdecode('Valon+Behrami+'),jdecode(''),'/473/198001.html','true',[],'',''],
		['PAGE','272901',jdecode('Stephan+Lichtsteiner'),jdecode(''),'/473/272901.html','true',[],'',''],
		['PAGE','228801',jdecode('Roberto+Di+Matteo+'),jdecode(''),'/473/228801.html','true',[],'',''],
		['PAGE','228822',jdecode('Guerino+Gottardi+'),jdecode(''),'/473/228822.html','true',[],'',''],
		['PAGE','182601',jdecode('+Thomas+Caiani'),jdecode(''),'/473/182601.html','true',[],'','']
	],'',''],
	['PAGE','557',jdecode('Forum+International'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','641',jdecode('Lazialit%C3%A0+et+Pub'),jdecode(''),'/641.html','true',[],'',''],
	['PAGE','662',jdecode('Photographies+et+vid%C3%A9os'),jdecode(''),'/662.html','true',[],'',''],
	['PAGE','704',jdecode('News'),jdecode(''),'/704.html','true',[],'',''],
	['PAGE','231801',jdecode('R%C3%A9sum%C3%A9s+matchs+10%2F11'),jdecode(''),'/231801.html','true',[],'',''],
	['PAGE','788',jdecode('Dates+des+matchs'),jdecode(''),'/788.html','true',[],'',''],
	['PAGE','725',jdecode('Hightlights+10%2F11'),jdecode(''),'/725.html','true',[],'',''],
	['PAGE','767',jdecode('Classement+10%2F11'),jdecode(''),'/767.html','true',[],'',''],
	['PAGE','851',jdecode('Equipe+Saison+10%2F11'),jdecode(''),'/851.html','true',[],'',''],
	['PAGE','809',jdecode('Fan-Club'),jdecode(''),'/809.html','true',[],'',''],
	['PAGE','103401',jdecode('AS+Roma+m....'),jdecode(''),'/103401.html','true',[],'',''],
	['PAGE','830',jdecode('Links+'),jdecode(''),'/830.html','true',[],'',''],
	['PAGE','872',jdecode('Contact'),jdecode(''),'/872.html','true',[],'',''],
	['PAGE','22601',jdecode('Stade+olimpico+de+Roma'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','92201',jdecode('Stadio+delle+Aquile'),jdecode(''),'/92201.html','true',[],'',''],
	['PAGE','39406',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''),'/39406/index.html','true',[ 
		['PAGE','39401',jdecode('Entr%C3%A9es'),jdecode(''),'/39406/39401.html','false',[],'','']
	],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Solid';
theSitetree.paletteFamily='8396BA';
theSitetree.keyvisualId='4356';
theSitetree.keyvisualName='kv_4356.jpg';
theSitetree.fontsetId='10801';
theSitetree.graphicsetId='11232';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8396BA';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Solid',
				paletteFamily: 	'8396BA',
				keyvisualId: 	'4356',
				keyvisualName: 	'kv_4356.jpg',
				fontsetId: 		'10801',
				graphicsetId: 	'11232',
				contentColor: 	'FFFFFF',
				contentBGColor: '8396BA',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100727-101539'
};
webappMappings['1002']=webappMappings['1002-39406abw0x0in2vl5']={
webappId:    '1002',
documentId:  '39406',
internalId:  '39406abw0x0in2vl5',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-77']={
webappId:    '7008',
documentId:  '872',
internalId:  '77',
customField: 'language:fr;country:FR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7005']=webappMappings['7005-10']={
webappId:    '7005',
documentId:  '401',
internalId:  '10',
customField: 'language:fr;country:FR;'
};
webappMappings['1501']=webappMappings['1501-14977056']={
webappId:    '1501',
documentId:  '401',
internalId:  '14977056',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '22601',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100517-200545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48501',
internalId:  '',
customField: '20100727-102707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100124-200448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202201',
internalId:  '',
customField: '20080603-082742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202222',
internalId:  '',
customField: '20080603-082938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202243',
internalId:  '',
customField: '20080603-083301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202264',
internalId:  '',
customField: '20080603-083529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202285',
internalId:  '',
customField: '20080603-083747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207001',
internalId:  '',
customField: '20080603-084043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '212801',
internalId:  '',
customField: '20080423-202337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '893',
internalId:  '',
customField: '20090812-225603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100601-210555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180701',
internalId:  '',
customField: '20100113-201815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198001',
internalId:  '',
customField: '20080613-064121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272901',
internalId:  '',
customField: '20090208-204707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228801',
internalId:  '',
customField: '20080724-152100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228822',
internalId:  '',
customField: '20080724-152019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182601',
internalId:  '',
customField: '20080229-224027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20091106-091629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20100127-133117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20100113-202526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20100727-102625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231801',
internalId:  '',
customField: '20100727-102523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20100727-105913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20100726-085019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20100727-154145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20100727-173608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20080820-084524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103401',
internalId:  '',
customField: '20091223-153840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20091215-200321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '872',
internalId:  '',
customField: '20080709-124030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20091111-204338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92201',
internalId:  '',
customField: '20070913-141916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39406',
internalId:  '',
customField: '20070708-132343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39401',
internalId:  '',
customField: '20070708-132343'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2VL5';
var companyName   = 'S.S.LAZIO.CH';
var htmlTitle	  = 'Site+en+fran%C3%A7ais+consacr%C3%A9+%C3%A0+la+SS+Lazio+Fans';
var metaKeywords  = 'SS+Lazio+Fans+calcio+news';
var metaContents  = 'SS+Lazio+Fans+calcio+news';
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();
};
