/* [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','4596',jdecode('HOME+fran%C3%A7ais'),jdecode(''),'/4596.html','true',[],'',''],
	['PAGE','45603',jdecode('LE+CATALOGUE+des+animations'),jdecode(''),'/45603/index.html','true',[ 
		['PAGE','45657',jdecode('Orchestres+de+gala'),jdecode(''),'/45603/45657.html','true',[],'',''],
		['PAGE','141813',jdecode('60%26%23x27%3Bs-rock%26%23x27%3Bn+roll-psychedelic'),jdecode(''),'/45603/141813.html','true',[],'',''],
		['PAGE','141804',jdecode('Cuban-latinos-tango-flamenco'),jdecode(''),'/45603/141804.html','true',[],'',''],
		['PAGE','141399',jdecode('Sax+party'),jdecode(''),'/45603/141399.html','true',[],'',''],
		['PAGE','127045',jdecode('DJ'),jdecode(''),'/45603/127045.html','true',[],'',''],
		['PAGE','123612',jdecode('Jazz+New+Orleans'),jdecode(''),'/45603/123612.html','true',[],'',''],
		['PAGE','141831',jdecode('Music-hall'),jdecode(''),'/45603/141831.html','true',[],'',''],
		['PAGE','45711',jdecode('Piano-Bar'),jdecode(''),'/45603/45711.html','true',[],'',''],
		['PAGE','108152',jdecode('Performances+solo'),jdecode(''),'/45603/108152.html','true',[],'',''],
		['PAGE','45684',jdecode('Duos'),jdecode(''),'/45603/45684.html','true',[],'',''],
		['PAGE','145614',jdecode('Classique+fl%C3%BBte+de+Pan'),jdecode(''),'/45603/145614.html','true',[],'',''],
		['PAGE','53505',jdecode('Tziganes'),jdecode(''),'/45603/53505.html','true',[],'',''],
		['PAGE','141822',jdecode('Visuels'),jdecode(''),'/45603/141822.html','true',[],'',''],
		['PAGE','144205',jdecode('Sax+parade'),jdecode(''),'/45603/144205.html','true',[],'',''],
		['PAGE','79152',jdecode('Jazz'),jdecode(''),'/45603/79152.html','true',[],'',''],
		['PAGE','45738',jdecode('Spectacles'),jdecode(''),'/45603/45738.html','true',[],'',''],
		['PAGE','145166',jdecode('Populaire'),jdecode(''),'/45603/145166.html','true',[],'','']
	],'',''],
	['PAGE','91752',jdecode('HOME+english'),jdecode(''),'/91752.html','true',[],'',''],
	['PAGE','83852',jdecode('THE+CATALOG+of+entertainments'),jdecode(''),'/83852/index.html','true',[ 
		['PAGE','83879',jdecode('Gypsy'),jdecode(''),'/83852/83879.html','true',[],'',''],
		['PAGE','142356',jdecode('Cuban-latinos-tango-flamenco'),jdecode(''),'/83852/142356.html','true',[],'',''],
		['PAGE','142365',jdecode('60%26%23x27%3Bs-Rock%26%23x27%3Bn+roll-Psychedelic'),jdecode(''),'/83852/142365.html','true',[],'',''],
		['PAGE','142786',jdecode('Country-Beatles-Rockabilly'),jdecode(''),'/83852/142786.html','true',[],'',''],
		['PAGE','143145',jdecode('Sax-parties'),jdecode(''),'/83852/143145.html','true',[],'',''],
		['PAGE','143200',jdecode('Solo+performances'),jdecode(''),'/83852/143200.html','true',[],'',''],
		['PAGE','142374',jdecode('Visual'),jdecode(''),'/83852/142374.html','true',[],'',''],
		['PAGE','142383',jdecode('Music-hall+%26+oriental+dances'),jdecode(''),'/83852/142383.html','true',[],'',''],
		['PAGE','142401',jdecode('Popular+Music'),jdecode(''),'/83852/142401.html','true',[],'',''],
		['PAGE','83906',jdecode('Gala+Bands'),jdecode(''),'/83852/83906.html','true',[],'',''],
		['PAGE','83933',jdecode('Duos'),jdecode(''),'/83852/83933.html','true',[],'',''],
		['PAGE','83960',jdecode('Piano-Bar'),jdecode(''),'/83852/83960.html','true',[],'',''],
		['PAGE','83987',jdecode('Jazz'),jdecode(''),'/83852/83987.html','true',[],'',''],
		['PAGE','140899',jdecode('Jazz+New+Orleans'),jdecode(''),'/83852/140899.html','true',[],'',''],
		['PAGE','84014',jdecode('Shows'),jdecode(''),'/83852/84014.html','true',[],'','']
	],'',''],
	['PAGE','81552',jdecode('ARTISTS+ON+TOUR'),jdecode(''),'/81552/index.html','true',[ 
		['PAGE','119206',jdecode('Jazz'),jdecode(''),'/81552/119206.html','true',[],'',''],
		['PAGE','141128',jdecode('Gospel'),jdecode(''),'/81552/141128.html','true',[],'',''],
		['PAGE','141137',jdecode('Rock'),jdecode(''),'/81552/141137.html','true',[],'',''],
		['PAGE','99279',jdecode('World+Music'),jdecode(''),'/81552/99279.html','true',[],'',''],
		['PAGE','122614',jdecode('Funk-House'),jdecode(''),'/81552/122614.html','true',[],'',''],
		['PAGE','99252',jdecode('Blues'),jdecode(''),'/81552/99252.html','true',[],'',''],
		['PAGE','118606',jdecode('Reggae-Ska'),jdecode(''),'/81552/118606.html','true',[],'',''],
		['PAGE','100666',jdecode('Soul-music'),jdecode(''),'/81552/100666.html','true',[],'',''],
		['PAGE','99306',jdecode('Country'),jdecode(''),'/81552/99306.html','true',[],'',''],
		['PAGE','100310',jdecode('Disco%2FDance'),jdecode(''),'/81552/100310.html','true',[],'',''],
		['PAGE','111705',jdecode('Electro'),jdecode(''),'/81552/111705.html','true',[],'',''],
		['PAGE','110705',jdecode('Brazil'),jdecode(''),'/81552/110705.html','true',[],'',''],
		['PAGE','101314',jdecode('Irish-music'),jdecode(''),'/81552/101314.html','true',[],'',''],
		['PAGE','143671',jdecode('Musique+spirituelle'),jdecode(''),'/81552/143671.html','true',[],'',''],
		['PAGE','99333',jdecode('Chanson+fran%C3%A7aise'),jdecode(''),'/81552/99333.html','true',[],'',''],
		['PAGE','99360',jdecode('Classique'),jdecode(''),'/81552/99360.html','true',[],'',''],
		['PAGE','138851',jdecode('Beatles'),jdecode(''),'/81552/138851.html','true',[],'','']
	],'',''],
	['PAGE','102852',jdecode('CONTACTS'),jdecode(''),'/102852.html','true',[],'',''],
	['PAGE','40602',jdecode('+'),jdecode(''),'/40602.html','true',[],'','']];
var siteelementCount=56;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='2039';
theSitetree.keyvisualName='kultur.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='391';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='990000';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'990000',
				keyvisualId: 	'2039',
				keyvisualName: 	'kultur.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'391',
				contentColor: 	'FFFFFF',
				contentBGColor: '990000',
				a_color: 		'990000',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4596',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-823807']={
webappId:    '1501',
documentId:  '4596',
internalId:  '823807',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4596',
internalId:  '',
customField: '20071104-210237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102852',
internalId:  '',
customField: '20091030-173126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45603',
internalId:  '',
customField: '20040718-162206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45657',
internalId:  '',
customField: '20100116-144235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141813',
internalId:  '',
customField: '20090322-013818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141804',
internalId:  '',
customField: '20090322-013909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141399',
internalId:  '',
customField: '20070112-191704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127045',
internalId:  '',
customField: '20090322-014014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123612',
internalId:  '',
customField: '20060118-154431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141831',
internalId:  '',
customField: '20061218-173450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45711',
internalId:  '',
customField: '20080523-181402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108152',
internalId:  '',
customField: '20070704-165513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45684',
internalId:  '',
customField: '20070922-224322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53505',
internalId:  '',
customField: '20090322-014119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141822',
internalId:  '',
customField: '20090322-014257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144205',
internalId:  '',
customField: '20070703-171515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79152',
internalId:  '',
customField: '20071219-203311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45738',
internalId:  '',
customField: '20081224-144315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145166',
internalId:  '',
customField: '20090322-013245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91752',
internalId:  '',
customField: '20071104-210216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83852',
internalId:  '',
customField: '20061230-154355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83879',
internalId:  '',
customField: '20070627-145549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142356',
internalId:  '',
customField: '20070112-180837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142365',
internalId:  '',
customField: '20061230-191747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142786',
internalId:  '',
customField: '20061230-192006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143145',
internalId:  '',
customField: '20070112-193133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143200',
internalId:  '',
customField: '20070117-162322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142374',
internalId:  '',
customField: '20061230-172126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142383',
internalId:  '',
customField: '20070112-181950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142401',
internalId:  '',
customField: '20061230-173230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83906',
internalId:  '',
customField: '20070117-192943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83933',
internalId:  '',
customField: '20070922-224525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83960',
internalId:  '',
customField: '20080523-181529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83987',
internalId:  '',
customField: '20070117-164337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140899',
internalId:  '',
customField: '20070118-200522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84014',
internalId:  '',
customField: '20070118-201525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81552',
internalId:  '',
customField: '20040721-214736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119206',
internalId:  '',
customField: '20070118-201800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141128',
internalId:  '',
customField: '20070118-202045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141137',
internalId:  '',
customField: '20071115-155835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99279',
internalId:  '',
customField: '20051128-144327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122614',
internalId:  '',
customField: '20060128-145433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99252',
internalId:  '',
customField: '20061213-152645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118606',
internalId:  '',
customField: '20051002-193430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100666',
internalId:  '',
customField: '20051002-193439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99306',
internalId:  '',
customField: '20070103-163131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100310',
internalId:  '',
customField: '20060811-164548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111705',
internalId:  '',
customField: '20070107-162519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110705',
internalId:  '',
customField: '20041031-230407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101314',
internalId:  '',
customField: '20041031-230534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143671',
internalId:  '',
customField: '20070204-154616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99333',
internalId:  '',
customField: '20051128-202253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99360',
internalId:  '',
customField: '20060128-145308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138851',
internalId:  '',
customField: '20070118-202316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40602',
internalId:  '',
customField: '20040707-233135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145614',
internalId:  '',
customField: '20101006-170717'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXX5';
var companyName   = 'MUSIC+IS+LIFE';
var htmlTitle	  = 'www.musicislife.ch';
var metaKeywords  = 'AGENCE%2C+agence%2C+Booking%2C+management%2C+BOOKING%2C+booking%2C+Management%2C+Animation%2C+animation%2C+ANIMATION%2C+artistic%2C+agency%2C+Artistic+Agency%2C++artiste%2C+musique%2C+Music+is+Life%2C+music+is+life%2C+musicien%2C+pianiste%2C+orchestre%2C+chanteuse%2C+jazz%2C+blues%2C+concert%2C+agence+artistique%2C+musicislife%2C+Montreux';
var metaContents  = 'Agence+artistique%2C+animations%2C+management%2C+organisation+%C3%A9v%C3%A9nementiel%2C+orchestre%2C+pianistes%2C+star%2C+Montreux';
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();
};

