/* [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','9001',jdecode('index'),jdecode(''),'/9001.html','true',[],'',''],
	['PAGE','22201',jdecode('Produkte+und+Services'),jdecode(''),'/22201.html','true',[],'',''],
	['PAGE','22243',jdecode('Video+und+Media'),jdecode(''),'/22243.html','true',[],'',''],
	['PAGE','27601',jdecode('Remix-Contest'),jdecode(''),'/27601.html','true',[],'',''],
	['PAGE','22285',jdecode('Blog'),jdecode(''),'/22285.html','true',[],'',''],
	['PAGE','27622',jdecode('G%C3%A4stebuch'),jdecode(''),'/27622.html','true',[],'',''],
	['PAGE','22327',jdecode('Lageplan'),jdecode(''),'/22327.html','true',[],'',''],
	['PAGE','22306',jdecode('Kontakt'),jdecode(''),'/22306.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'de',
  country: 'DE'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20100921-222240'
};
webappMappings['7070']=webappMappings['7070-645']={
webappId:    '7070',
documentId:  '22201',
internalId:  '645',
customField: 'language:de;country:DE;'
};
webappMappings['7060']=webappMappings['7060-18394c3e979571db45f856c49bb6d7bd']={
webappId:    '7060',
documentId:  '22243',
internalId:  '18394c3e979571db45f856c49bb6d7bd',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20100921-222714'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '9001',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27622',
internalId:  '',
customField: '20100921-223311'
};
webappMappings['7050']=webappMappings['7050-2954']={
webappId:    '7050',
documentId:  '22285',
internalId:  '2954',
customField: 'language:de;country:DE;'
};
webappMappings['7008']=webappMappings['7008-6300']={
webappId:    '7008',
documentId:  '22306',
internalId:  '6300',
customField: 'language:de;country:DE;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '22327',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:true;'
};
webappMappings['1501']=webappMappings['1501-8847220']={
webappId:    '1501',
documentId:  '9001',
internalId:  '8847220',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20100921-233612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22243',
internalId:  '',
customField: '20100921-222431'
};
webappMappings['7002']=webappMappings['7002-4479']={
webappId:    '7002',
documentId:  '27622',
internalId:  '4479',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22285',
internalId:  '',
customField: '20100921-222930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22306',
internalId:  '',
customField: '20100921-223556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22327',
internalId:  '',
customField: '20100921-223347'
};
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10IN2TLV';
var companyName   = 'http%3A%2F%2Fwww.Club-Remix-mp3-c.de';
var htmlTitle	  = '+DJ+%7C+PROMOTION+%7C+REMIXES+%7C+CLUB-REMIX%7C+MP3+%7C+DJ+MIX+%7C++DJ+MIXER+%7C+REMIX';
var metaKeywords  = 'DJ%2C+REMIXER%2C+Produzent%2C+Club%2C+REMIX%2C+dj%2C+dj+mix%2C+dj-remix%2C+remixes%2C+clubmix%2C+club-remixes%2C+tracks%2C+mp3%2C+dj-remix%2C+remix-contest%2C+marketing%2C+promotion%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0Asearch+engine+optimsation%2C+se+optimisation%2C+serach+engine+optimization%2C+SEO%2C+optimisation%2C+website+promotion%2C+internet+marketing%2C+seo+services%2C+top+6ix+google%2C+german+seo+company%2C+ranking+top+6ix%2C+marketing+internet+seo';
var metaContents  = 'Andreas+Broich+%2B49+%280%292182+811681+Internet+MARKETING+Services%2C+SEO+Services%2C+WEBDESIGN%2C+Marketing+Experte.+%0D%0A%0D%0AMEDIEN+PRODUKTIONEN+%7C+CLUB+REMIX+%7C+REMIXES+%7C+DJ%2C+Produzent%2C+Remixer';
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();
};

