/* [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','4559',jdecode('Home+%2F+Angebot'),jdecode(''),'/4559.html','true',[],'',''],
	['PAGE','82601',jdecode('Coachings'),jdecode(''),'/82601.html','true',[],'',''],
	['PAGE','4929',jdecode('H%C3%B6rproben'),jdecode(''),'/4929.html','true',[],'',''],
	['PAGE','5037',jdecode('Referenzen'),jdecode(''),'/5037.html','true',[],'',''],
	['PAGE','4983',jdecode('%C3%9Cber+uns+%2F+Kontakt'),jdecode(''),'/4983.html','true',[],'','']];
var siteelementCount=5;
theSitetree.topTemplateName='Atmosphere';
theSitetree.paletteFamily='FF6600';
theSitetree.keyvisualId='186';
theSitetree.keyvisualName='cd_stapel.jpg';
theSitetree.fontsetId='7';
theSitetree.graphicsetId='8';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Atmosphere',
				paletteFamily: 	'FF6600',
				keyvisualId: 	'186',
				keyvisualName: 	'cd_stapel.jpg',
				fontsetId: 		'7',
				graphicsetId: 	'8',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'FF6600',
				b_color: 		'FF9900',
				c_color: 		'000000',
				d_color: 		'',
				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:  '4559',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20100704-161328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82601',
internalId:  '',
customField: '20100704-161133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4929',
internalId:  '',
customField: '20100731-103958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5037',
internalId:  '',
customField: '20100224-222747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4983',
internalId:  '',
customField: '20100731-103931'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3OAF';
var companyName   = 'Profisprecher+-+Training+-+Coaching';
var htmlTitle	  = 'Profisprecher+-+Training+-+Coaching';
var metaKeywords  = 'Werbe-+und+Profisprechervermietung+f%C3%BCr+Werbespots+im+Radio%2C+TV%2C+Internet+etc.++Voice-over%2C++Off-Stimmen%2C++Moderationen%2C++IVR+%2F+%0A%0AHotlinebesprechungen%2C++Mailboxservice%2C++Videoproduktionen%2C+Audioproduktionen%2C+Werbesprecher%2C+Profisprecher%2C+Radio%2C+TV%2C+WebTV%2C+Spots%2C+Video%2C+Kino+%0A%0Aim+Kopf%2C+Ger%C3%A4usche%2C+Mailboxansagen%2C+Mailbox%2C+Combox%2C+Ansage%2C+Businesshotline%2C+rent+a+voice%2C+Sprecherauftr%C3%A4ge%2C+Radiospot%2C+Radiowerbung%2C+TV+%0A%0Acommercial%2C+Video%2C+Trailer%2C+Werbeagentur%2C+TV-Spot%2C++Vertonungen%2C+Aufnahmesprache%2C+Aufnahme%2C+Billboard%2C+Lern-Video%2C+Intro%2C+Speaker%2C+Sprecher%2C+%0A%0ASprecherin%2C+Sprecherinnen%2C+Werbesprecherinnen%2C+Tonstudio%2C+Off-Stimme%2C+Voice-over%2C+overvoice%2C+off%2C+Produzent%2C+Stimme%2C+Werbung%2C+%0A%0AProfisprechervermietung%2C+IVR%2C+Telefonanlage%2C+Jingles%2C+auditives+Logo%2C+Telefonzentrale%2C+PBX%2C+Produktionen%2C+Werbe-Spots%2C+Moderationen%2C++%0A%0AWerbeproduzent%2C+Hotlinebesprechungen%2C++Mailboxservice%2C+Sprecher+Verband%2C+VPS%2C+lets+talk%2C+lets+talk%2C+talk+talk+talk%2C+Wir+geben+Ihnen+unsere+Stimme%2C+%0A%0Arent+a+voice%2C+Musiktaxi%2C+Heimstudio%2C+E-Learning%2C+Podcast%2C+H%C3%B6rb%C3%BCcher%2C+Telefonsystem%2C%0A%0A%0AXenon%2C+Sarina+Spoerli%2C+Lukas+Sch%C3%BCtz%2C+Thomas+Rath%2C+Gabriela+Leutwiler%2C+Stefan+N%C3%A4geli%2C+Franziska+Rusca%2C+Jessica+Slurini%2C+Marie-Agnes+Vilain%2C+Ulli+Diehr%2C+%0A%0A%0AReden+halten%2C+Ansprachen%2C+Pr%C3%A4sentieren%2C+moderieren%2C+auftreten%2C++Trainings%2C+Medienplanung%2C+Recordings%2C+Coachings%2C+Rhetorik%2C+Pr%C3%A4sentationstechnik%2C+%0A%0AMedientraining%2C++Telefon-Coaching%2C++K%C3%B6rpersprache%2C+Aussprache%2C+Kamera%2C+Rhetorik%2FPr%C3%A4sentationscoaching%2C+Telefon-Coaching%2C+professionelles+%0A%0ATelefonieren%2C+%0A%0ATele+Top%2C+Tele+Z%C3%BCri%2C+Radio+Top%2C+Z%C3%BCrich+Versicherung%2C+Z%C3%BCrich+connect%2C+Denner%2C+Seedamm+Center%2C+M%C3%B6bel+Pfister%2C+Pro+Baby%2C+Richner%2C+LSE+System%2C+Cremo%2C+%0A%0ABolero%2C+Era%2C+Rhombus%2C+Remax%2C+STFW%2C+Mettler+Toledo%2C+ohaus%2C+sunrise%2C+Veritas%2C+SFDRS%2C+105%2C+Radio+Argovia%2C+HP%2C+SBU%2C+Fr%C3%BCh+Immo%2C+Erdgas%2C+Imhoof%2C+P1%2C+%0A%0ABMG%2C+Esprit+home%2C+Moby+Dick+Productions%2C+Homegate+tv%2C+homegate.ch%2C+%0A%0AMP3%2C+Wave%2C+wav%2C+AIFF%2C+MP4%2C+MPEG%2C+mov%2C+PCM%2C+A-law%2C+AAC%2C+AVI%2C+FLV%2C+3gp%2C+3GPP%2C+WMA%2C+CCITT%2C+';
var metaContents  = 'Werbe-+und+Profisprechervermietung+f%C3%BCr+Werbespots+im+Radio%2C+TV%2C+Internet+etc.++Voice-over%2C++Off-Stimmen%2C++Moderationen%2C++IVR+%2F+Hotlinebesprechungen%2C++Mailboxservice%2C++-+Rhetorik%2FPr%C3%A4sentationscoaching%2C+Telefon-Coaching+f%C3%BCr+professionelles+Telefonieren%2C+Medientraining+';
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();
};
