/* [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('Accueil'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','473',jdecode('La+Pole+c%26%23x27%3Best+quoi+%3F'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','65001',jdecode('News+de+la+semaine'),jdecode(''),'/65001.html','true',[],'',''],
	['PAGE','515',jdecode('Cours+Crissier+salle+n%C2%B01'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','148301',jdecode('Cours+Crissier+salle+n%C2%B02'),jdecode(''),'/148301.html','true',[],'',''],
	['PAGE','199701',jdecode('Crissier+vos+profs'),jdecode(''),'/199701.html','false',[],'',''],
	['PAGE','29701',jdecode('Cours+%C3%A0+Gland'),jdecode(''),'/29701.html','true',[],'',''],
	['PAGE','494',jdecode('Cours+%C3%A0+Yverdon+actuel'),jdecode(''),'/494.html','false',[],'',''],
	['PAGE','180801',jdecode('Cours+%C3%A0+Yverdon'),jdecode(''),'/180801/index.html','true',[ 
		['PAGE','188301',jdecode('vos+profs'),jdecode(''),'/180801/188301.html','false',[],'',''],
		['PAGE','202101',jdecode('Acc%C3%A8s+Yverdon+photos'),jdecode(''),'/180801/202101.html','true',[],'','']
	],'',''],
	['PAGE','182301',jdecode('Gen%C3%A8ve+d%C3%A8s+septembre'),jdecode(''),'/182301.html','true',[],'',''],
	['PAGE','27501',jdecode('Stages'),jdecode(''),'/27501/index.html','true',[ 
		['PAGE','47201',jdecode('GENEVE+stage+sp%C3%A9cial'),jdecode(''),'/27501/47201.html','false',[],'',''],
		['PAGE','65401',jdecode('Stage+intensif+sur+2+jours'),jdecode(''),'/27501/65401.html','true',[],'',''],
		['PAGE','149701',jdecode('Stage+%22Spin+With+Me%22'),jdecode(''),'/27501/149701.html','false',[],'','']
	],'',''],
	['PAGE','173001',jdecode('Burlesque'),jdecode(''),'/173001.html','true',[],'',''],
	['PAGE','23601',jdecode('Enterrement+vie+jeune+fille'),jdecode(''),'/23601.html','true',[],'',''],
	['PAGE','104801',jdecode('Cours+entre-amies'),jdecode(''),'/104801.html','true',[],'',''],
	['PAGE','180301',jdecode('Divorce-party'),jdecode(''),'/180301.html','false',[],'',''],
	['PAGE','72501',jdecode('Maquillage+%26+Visagisme'),jdecode(''),'/72501.html','true',[],'',''],
	['PAGE','64601',jdecode('Vos+profs'),jdecode(''),'/64601.html','true',[],'',''],
	['PAGE','163401',jdecode('Formations+diverses'),jdecode(''),'/163401.html','false',[],'',''],
	['PAGE','164101',jdecode('Franchise+Pole-Emotion+S%C3%A0rl'),jdecode(''),'/164101.html','true',[],'',''],
	['PAGE','151601',jdecode('Boutique'),jdecode(''),'/151601.html','true',[],'',''],
	['PAGE','81601',jdecode('Photos+des+salles'),jdecode(''),'/81601.html','true',[],'',''],
	['PAGE','64301',jdecode('Tarifs'),jdecode(''),'/64301.html','true',[],'',''],
	['PAGE','152801',jdecode('Contact'),jdecode(''),'/152801.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100905-120230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20100903-160512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104801',
internalId:  '',
customField: '20100624-162524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100809-112209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65001',
internalId:  '',
customField: '20100831-162607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100905-115220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20100905-114717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20100826-221742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20100419-095920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20100812-164313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20081011-173424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20100830-081531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20100801-210634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65401',
internalId:  '',
customField: '20100422-222041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81601',
internalId:  '',
customField: '20100902-124848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148301',
internalId:  '',
customField: '20100905-120117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149701',
internalId:  '',
customField: '20100829-203755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151601',
internalId:  '',
customField: '20100622-115446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152801',
internalId:  '',
customField: '20100806-103250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163401',
internalId:  '',
customField: '20100422-223902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164101',
internalId:  '',
customField: '20100601-214703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173001',
internalId:  '',
customField: '20100508-121311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180801',
internalId:  '',
customField: '20100905-114203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180301',
internalId:  '',
customField: '20100613-195738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182301',
internalId:  '',
customField: '20100831-161815'
};
webappMappings['1501']=webappMappings['1501-31097293']={
webappId:    '1501',
documentId:  '401',
internalId:  '31097293',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188301',
internalId:  '',
customField: '20100802-203733'
};
webappMappings['7008']=webappMappings['7008-10324']={
webappId:    '7008',
documentId:  '152801',
internalId:  '10324',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199701',
internalId:  '',
customField: '20100831-080944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202101',
internalId:  '',
customField: '20100905-205236'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2LQZ';
var companyName   = 'Ecole+de+danse+Pole-emotion';
var htmlTitle	  = '';
var metaKeywords  = 'pole+dance%2Ccours%2C%C3%A9cole%2Cbarre%2Cl%C3%A9man%2Cneuchatel%2Cgen%C3%A8ve%2Cfitness%2Chiphop%2Csalsa%2Caerobic%2Csensualit%C3%A9%2Csensual+dance%2Centerrement%2Cvie%2Cjeune%2Cfille%2Cmari%C3%A9e%2Canniversaire%2Cmariage%2Csurprise%2Ccrissier%2Cgland%2Cyverdon%2Cdenges%2Cgratuit%2Cstage%2Ccours%2Cgratuit%2CCoralie%2CCoralie+Bally%2Cstages%2Cworkshop%2Cmaquillage%2Cd%C3%A9couverte%2Cself-defense%2Ccrissier%2Cclosalet%2Criant-coteau%2Cbarre%2Cfemmes%2Cmove%2Csensualit%C3%A9%2Cglamour%2Cshow+girl%2Ccancan%2Cstrip-tease%2Cbollywood%2Ckrav-maga%2C+Zumba%2Ccabaret%2Cstrip+burlesque%2C';
var metaContents  = 'Beaucoup+plus+tendance+que+la+salsa%2C+naturellement+plus+gracieuse+que+la%EF%BF%BDrobic%2C+plus+sexy+que+le+hip-hop%2C+plus+a%C3%A9rienne+que+le+kung+fu%2C+acrobatique+et+sensuelle%2C+artistique+et+sportive..%3F+voici+la+pole+dance.+Glamour%2C+sensualit%C3%A9%2C+s%C3%A9duction+et+fun+assur%C3%A9s%2C+Cours+hebdomadaires%2C+Stage+d%C3%A9couverte+a+prix+r%C3%A9duit%2C+stage+intensif+sur+2+jours%2C+workshop+en+week-end+avec+4+profs%2C+cours+de+maquillage+et+visagisme%2C+stage+de+self-d%C3%A9fense%2C+cours+de+sensual+dance%2C+cours+de+sensual+move%2C+cours+show+girl%2C+cours+cancan%2C+coaching+personnel%2C+sortie+dentreprise%2C+Zumba%2C+cabaret';
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();
};
