/* [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 theSitetree=[ 
	['PAGE','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],''],
	['PAGE','11923',jdecode('Entdecke+den+Islam'),jdecode(''),'/11923/index.html','true',[ 
		['PAGE','8912',jdecode('Was+ist+Islam%3F'),jdecode(''),'/11923/8912.html','false',[],''],
		['PAGE','17023',jdecode('Was+ist+eine+Moschee%3F'),jdecode(''),'/11923/17023.html','false',[],''],
		['PAGE','17044',jdecode('Die+Namen+Allahs'),jdecode(''),'/11923/17044.html','false',[],''],
		['PAGE','72922',jdecode('Das+Gottesbild'),jdecode(''),'/11923/72922.html','false',[],''],
		['PAGE','72964',jdecode('Einheit+der+Botschaft'),jdecode(''),'/11923/72964.html','false',[],''],
		['PAGE','72985',jdecode('Allumfassender+Lebensweg'),jdecode(''),'/11923/72985.html','false',[],''],
		['PAGE','73006',jdecode('Vollst%C3%A4ndiges+Rechtssystem'),jdecode(''),'/11923/73006.html','false',[],''],
		['PAGE','73027',jdecode('Die+Familie'),jdecode(''),'/11923/73027.html','false',[],''],
		['PAGE','73048',jdecode('Die+Vernunft'),jdecode(''),'/11923/73048.html','false',[],''],
		['PAGE','73069',jdecode('Islam+und+Wissenschaft'),jdecode(''),'/11923/73069.html','false',[],''],
		['PAGE','73090',jdecode('Ziele+des+Islam'),jdecode(''),'/11923/73090.html','false',[],''],
		['PAGE','73111',jdecode('Pflichten+des+Muslims'),jdecode(''),'/11923/73111.html','false',[],''],
		['PAGE','85122',jdecode('Ramadan'),jdecode(''),'/11923/85122.html','false',[],'']
	],''],
	['PAGE','76222',jdecode('Der+edle+Quran'),jdecode(''),'/76222.html','true',[],''],
	['PAGE','77322',jdecode('Prophet+Muhammed'),jdecode(''),'/77322/index.html','true',[ 
		['PAGE','183855',jdecode('%C3%9Cbersicht'),jdecode(''),'/77322/183855.html','false',[],''],
		['PAGE','183876',jdecode('25+Fragen'),jdecode(''),'/77322/183876.html','false',[],''],
		['PAGE','183897',jdecode('12+Beweise'),jdecode(''),'/77322/183897.html','false',[],'']
	],''],
	['PAGE','135844',jdecode('Sohn+Marias'),jdecode(''),'/135844.html','true',[],''],
	['PAGE','136844',jdecode('Die+Frau+im+Islam'),jdecode(''),'/136844.html','true',[],''],
	['PAGE','44334',jdecode('Aktivit%C3%A4ten'),jdecode(''),'/44334/index.html','true',[ 
		['PAGE','85022',jdecode('Aktivit%C3%A4ten+in+Ramdan'),jdecode(''),'/44334/85022.html','true',[],'']
	],''],
	['PAGE','150244',jdecode('B%C3%BCcherverleih+'),jdecode(''),'/150244/index.html','true',[ 
		['PAGE','172655',jdecode('Islam-+Allgemein'),jdecode(''),'/150244/172655.html','true',[],''],
		['PAGE','156455',jdecode('Der+Quran'),jdecode(''),'/150244/156455.html','true',[],''],
		['PAGE','157855',jdecode('Heftchen'),jdecode(''),'/150244/157855.html','true',[],''],
		['PAGE','157955',jdecode('Die+Hadithe+und+Sunna'),jdecode(''),'/150244/157955.html','true',[],''],
		['PAGE','158055',jdecode('Der+Quran+in+v.+Sprachen'),jdecode(''),'/150244/158055.html','true',[],''],
		['PAGE','169355',jdecode('Der+Prophet+s.a.s'),jdecode(''),'/150244/169355.html','true',[],'']
	],''],
	['PAGE','75022',jdecode('Gebetszeiten'),jdecode(''),'/75022.html','true',[],''],
	['PAGE','5912',jdecode('Galerie'),jdecode(''),'/5912/index.html','true',[ 
		['PAGE','128644',jdecode('Wunder+in+Quran'),jdecode(''),'/5912/128644.html','false',[],''],
		['PAGE','55556',jdecode('+Fotos'),jdecode(''),'/5912/55556.html','false',[],''],
		['PAGE','194955',jdecode('Begegnungsabend'),jdecode(''),'/5912/194955.html','false',[],''],
		['PAGE','162755',jdecode('Das+Opferfest+2009'),jdecode(''),'/5912/162755.html','false',[],''],
		['PAGE','78522',jdecode('Videos'),jdecode(''),'/5912/78522.html','false',[],''],
		['PAGE','163155',jdecode('Tag+der+offnen+Moschee'),jdecode(''),'/5912/163155.html','false',[],''],
		['PAGE','164855',jdecode('Das+Fastenbrechenfest'),jdecode(''),'/5912/164855.html','false',[],''],
		['PAGE','164955',jdecode('Die+Moschee'),jdecode(''),'/5912/164955.html','false',[],''],
		['PAGE','166355',jdecode('Besuch+von+Scheich+Dr.+Hassan+Dabbagh'),jdecode(''),'/5912/166355.html','false',[],''],
		['PAGE','166455',jdecode('Besuch+von+Dr.+Ahmad+Khalifa'),jdecode(''),'/5912/166455.html','false',[],'']
	],''],
	['PAGE','200155',jdecode('Forum'),jdecode(''),'/200155.html','true',[],''],
	['PAGE','12028',jdecode('Links'),jdecode(''),'/12028.html','true',[],''],
	['PAGE','42223',jdecode('Kontakt'),jdecode(''),'/42223.html','true',[],''],
	['PAGE','160155',jdecode('Impressum'),jdecode(''),'/160155.html','true',[],''],
	['PAGE','153355',jdecode('G%C3%A4stebuch'),jdecode(''),'/153355.html','true',[],''],
	['PAGE','142644',jdecode('Lageplan'),jdecode(''),'/142644.html','true',[],'']];
var siteelementCount=49;
theSitetree.topTemplateName='Coiffeur';
theSitetree.paletteFamily='B5BDD7';
theSitetree.keyvisualId='11617';
theSitetree.keyvisualName='kv_11617.jpg';
theSitetree.fontsetId='32922';
theSitetree.graphicsetId='13982';
theSitetree.contentColor='0c1d33';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'DE'
};
var theTemplate={
				name: 			'Coiffeur',
				paletteFamily: 	'B5BDD7',
				keyvisualId: 	'11617',
				keyvisualName: 	'kv_11617.jpg',
				fontsetId: 		'32922',
				graphicsetId: 	'13982',
				contentColor: 	'0c1d33',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'7D84B4',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100308-222330'
};
webappMappings['7060']=webappMappings['7060-6c0f97d8e71e0519707cbd54574ce791']={
webappId:    '7060',
documentId:  '128644',
internalId:  '6c0f97d8e71e0519707cbd54574ce791',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44334',
internalId:  '',
customField: '20100115-231217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5912',
internalId:  '',
customField: '20100224-193842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85022',
internalId:  '',
customField: '20090918-124547'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72922',
internalId:  '',
customField: '20090609-140730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157855',
internalId:  '',
customField: '20091222-210127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11923',
internalId:  '',
customField: '20100129-193153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8912',
internalId:  '',
customField: '20090919-132947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150244',
internalId:  '',
customField: '20091222-210226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156455',
internalId:  '',
customField: '20091222-204911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12028',
internalId:  '',
customField: '20100224-190454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17023',
internalId:  '',
customField: '20090609-140504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17044',
internalId:  '',
customField: '20091112-211549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153355',
internalId:  '',
customField: '20091205-224811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72964',
internalId:  '',
customField: '20090609-140822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42223',
internalId:  '',
customField: '20091205-224802'
};
webappMappings['7008']=webappMappings['7008-1283']={
webappId:    '7008',
documentId:  '42223',
internalId:  '1283',
customField: 'language:de;country:DE;'
};
webappMappings['7060']=webappMappings['7060-66af88673ddb5342d29c5eb1d7e762da']={
webappId:    '7060',
documentId:  '55556',
internalId:  '66af88673ddb5342d29c5eb1d7e762da',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128644',
internalId:  '',
customField: '20091205-214352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55556',
internalId:  '',
customField: '20100117-152946'
};
webappMappings['7002']=webappMappings['7002-2808']={
webappId:    '7002',
documentId:  '153355',
internalId:  '2808',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72985',
internalId:  '',
customField: '20090609-140903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73006',
internalId:  '',
customField: '20090609-140943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73027',
internalId:  '',
customField: '20090609-141014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73048',
internalId:  '',
customField: '20090609-141036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73069',
internalId:  '',
customField: '20090609-141107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73090',
internalId:  '',
customField: '20090609-141132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73111',
internalId:  '',
customField: '20090609-141207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75022',
internalId:  '',
customField: '20100224-193656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76222',
internalId:  '',
customField: '20100129-200750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77322',
internalId:  '',
customField: '20100116-002347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78522',
internalId:  '',
customField: '20100103-173256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162755',
internalId:  '',
customField: '20100224-194114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85122',
internalId:  '',
customField: '20090825-145107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142644',
internalId:  '',
customField: '20100103-172938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135844',
internalId:  '',
customField: '20100129-194312'
};
webappMappings['7060']=webappMappings['7060-a56a213b8df0d315e663a9857d785ffb']={
webappId:    '7060',
documentId:  '142644',
internalId:  'a56a213b8df0d315e663a9857d785ffb',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136844',
internalId:  '',
customField: '20100129-194148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157955',
internalId:  '',
customField: '20091222-205717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158055',
internalId:  '',
customField: '20091222-204936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160155',
internalId:  '',
customField: '20091205-224743'
};
webappMappings['1501']=webappMappings['1501-1624114']={
webappId:    '1501',
documentId:  '2001',
internalId:  '1624114',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183876',
internalId:  '',
customField: '20091226-152612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169355',
internalId:  '',
customField: '20100224-234614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163155',
internalId:  '',
customField: '20091210-231516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166455',
internalId:  '',
customField: '20091211-002058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166355',
internalId:  '',
customField: '20091222-203310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164855',
internalId:  '',
customField: '20091210-230422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164955',
internalId:  '',
customField: '20091211-000610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183855',
internalId:  '',
customField: '20091226-152411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172655',
internalId:  '',
customField: '20100224-234647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183897',
internalId:  '',
customField: '20091226-153056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194955',
internalId:  '',
customField: '20100115-234613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200155',
internalId:  '',
customField: '20100308-221813'
};
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10INX331';
var companyName   = 'Islamisches+Kulturzentrum+Greifswald+e.V.+';
var htmlTitle	  = 'Islamisches+Kulturzentrum+Greifswald+e.V.';
var metaKeywords  = 'islam+in+greifswald';
var metaContents  = 'arabisch%2C+Quran%2C+Araber%2C+Muhammed%2C+Greifswald%2C+islam%2C+Allah%2C+Gebetszeiten%2C+Muslime%2C+Moschee+Greifswald%2C+Islamisches+Kulturzentrum%2C+deutsche+muslime+konvertieren+zum+Islam%2C+gebetszeiten%2C+musliminnen++';
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();
};
