/* [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','4599',jdecode('Startseite'),jdecode(''), jdecode('%2F4599.html'), 'true',[],'',''],
	['PAGE','7164',jdecode('Biographie'),jdecode(''), jdecode('%2F7164.html'), 'true',[],'',''],
	['PAGE','8383',jdecode('Gigs+%2F+Auftritte'),jdecode(''), jdecode('%2F8383.html'), 'true',[],'',''],
	['PAGE','13994',jdecode('Event+%2F+News'),jdecode(''), jdecode('%2F13994.html'), 'true',[],'',''],
	['PAGE','10101',jdecode('R%C3%BCckblick+%2F+Links'),jdecode(''), jdecode('%2F10101.html'), 'true',[],'',''],
	['PAGE','81601',jdecode('Medienberichte'),jdecode(''), jdecode('%2F81601.html'), 'true',[],'',''],
	['PAGE','9101',jdecode('Bilder+%2F+Logos'),jdecode(''), jdecode('%2F9101.html'), 'true',[],'',''],
	['PAGE','6701',jdecode('Booking+%2F+Kontakt'),jdecode(''), jdecode('%2F6701%2Findex.html'), 'true',[ 
		['PAGE','229801',jdecode('Booking+%2F+Kontakt+%28Folgeseite%29'),jdecode(''), jdecode('%2F6701%2F229801.html'), 'false',[],'','']
	],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Powering';
theSitetree.paletteFamily='FD7100';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10382';
theSitetree.graphicsetId='10570';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='808080';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2QE'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Powering',
				paletteFamily: 	'FD7100',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10382',
				graphicsetId: 	'10570',
				contentColor: 	'000000',
				contentBGColor: '808080',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3173']={
webappId:    '7008',
documentId:  '6701',
internalId:  '3173',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20120127-202822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13994',
internalId:  '',
customField: '20120127-201835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20120127-202018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81601',
internalId:  '',
customField: '20110718-164908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20111202-172535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20111205-124455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8383',
internalId:  '',
customField: '20120101-155636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7164',
internalId:  '',
customField: '20120127-202147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229801',
internalId:  '',
customField: '20081114-143026'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXSIV';
var companyName   = '';
var htmlTitle	  = 'DJ+Mario+Schweiz+der+Allround+Profi+DJ+%26+Moderator+f%C3%BCr+Partys+und+Events+jeglicher+Gr%C3%B6sse+und+Art';
var metaKeywords  = 'Kantonale+Turnfeste+%2C+Sportfest-Dj+%2C+Turnfest-DJ+%2C+Piratesflirt+%2C+Pirates+%2C+Singlenight+%2C+Openairs+%2C+Fasnacht+%2C+Maskenball+%2C+Apr%C3%A9s+Ski+Party+%2C+Palais+eXtra+%2C+BBC+%2C+Down+Town+Club+%2C+B%C3%BCndner+Glarner+Kantonalturnfest+Maienfeld+2010+%2C+Pubfestivals+N%C3%A4fels+%2C+Pubfestival+Wetzikon+%2C+West+Fest+Z%C3%BCrich+%2C+Seenachtsfest+Rapperswil+%2C+Seenachtsfest+%2C+The+Pirates+%2C+Apres+Ski+%2C+Apres+Ski+DJ+%2C+Event+DJ+%2C+Deejay+%2C+Discjockey+%2C+Musik+%2C+Music+%2C+Musicbar+%2C+Club+%2C+Disco+%2C+Party+%2C+Event+%2C+Anlass+%2C+Unterhaltung+%2C+Partydj+%2C+Mario+%2C+Raess+%2C+Schweiz+%2C+Ostschweiz+%2C+Deutschweiz+%2C+Herisau+%2C+Dj+St.Gallen+%2C+DJ+Hinwil+%2C+Dj+Gossau+%2C+DJ+Chur+%2C+Dj+Winterthur+%2C+DJ+Brugg+%2C+Dj+Islikon+%2C+DJ+Altstaetten+%2C+Dj+St.Margrethen+%2C+DJ+Bern+%2C+Dj+Basel+%2C+DJ+Schaffhausen%2C+t%C3%A4tig+in+Herisau%2C+St.Gallen%2C+Gossau%2C+Wil%2C+St.Margrethen%2C+Widnau%2C+Winterthur%2C+Zurich%2C+Hinwil%2C+Chur%2C+Brugg%2C+Bern%2C+Basel%2C+Romanshorn%2C+Amriswil%2C+Frauenfeld%2C+Schaffhausen';
var metaContents  = 'Dj+Mario+R%C3%A4ss+f%C3%BCr+Events%2C+Partys%2C+Clubs+und+Veranstaltungen+in+jeder+Gr%C3%B6sse+und+Art.+Der+versierte+allround+Profi+Disc+Jockey+und+Moderator+aus+der+Ostschweiz+taetig+in+der+ganzen+Schweiz.+Arbeitet+als+Resident+DJ+im+Pirates+Hinwil+und+St.Margrethen%2C+im+Down+Town+Club+St.Gallen%2C+im+Palais+eXtra+Ebnat+Kappel%2C+in+den+Halli+Galli+Partylokalen+Winterthur%2C+Brugg+und+Arosa%2C+sowie+im+Mephisto+Bar-Club+Chur.';
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();
};

