/* [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','4677',jdecode('Home'),jdecode(''),'/4677.html','true',[],'',''],
	['PAGE','5201',jdecode('Manu'),jdecode(''),'/5201/index.html','true',[ 
		['PAGE','288301',jdecode('30.+Geburtstag'),jdecode(''),'/5201/288301.html','true',[],'',''],
		['PAGE','318501',jdecode('Kreuzfahrt'),jdecode(''),'/5201/318501.html','true',[],'','']
	],'',''],
	['PAGE','80301',jdecode('Tagebuch'),jdecode(''),'/80301.html','true',[],'',''],
	['PAGE','5228',jdecode('Meine+Hobbys'),jdecode(''),'/5228.html','true',[],'',''],
	['PAGE','5255',jdecode('Stickereien'),jdecode(''),'/5255/index.html','true',[ 
		['PAGE','29501',jdecode('W-RR'),jdecode(''),'/5255/29501.html','true',[],'',''],
		['PAGE','268001',jdecode('RR+2005%2F2006'),jdecode(''),'/5255/268001.html','true',[],'',''],
		['PAGE','268022',jdecode('RR+2006%2F2007'),jdecode(''),'/5255/268022.html','true',[],'',''],
		['PAGE','268043',jdecode('RR+2007%2F2008'),jdecode(''),'/5255/268043.html','true',[],'',''],
		['PAGE','449901',jdecode('RR+2009%2F2010'),jdecode(''),'/5255/449901.html','true',[],'',''],
		['PAGE','34201',jdecode('Tischdecken'),jdecode(''),'/5255/34201.html','true',[],'',''],
		['PAGE','408601',jdecode('Kinderl%C3%A4cheln'),jdecode(''),'/5255/408601.html','true',[],'','']
	],'',''],
	['PAGE','389401',jdecode('Perlen-Schmuck'),jdecode(''),'/389401.html','true',[],'',''],
	['PAGE','5282',jdecode('Basteleien'),jdecode(''),'/5282.html','true',[],'',''],
	['PAGE','202301',jdecode('Handarbeiten'),jdecode(''),'/202301.html','true',[],'',''],
	['PAGE','78401',jdecode('Pixeleien'),jdecode(''),'/78401/index.html','true',[ 
		['PAGE','38401',jdecode('Anf%C3%A4ngerkurs'),jdecode(''),'/78401/38401.html','true',[],'',''],
		['PAGE','78422',jdecode('Fortikurs'),jdecode(''),'/78401/78422.html','true',[],'',''],
		['PAGE','399401',jdecode('Tubenschule'),jdecode(''),'/78401/399401.html','true',[],'',''],
		['PAGE','141101',jdecode('Aufgaben'),jdecode(''),'/78401/141101.html','true',[],'',''],
		['PAGE','122401',jdecode('Rahmenbilder'),jdecode(''),'/78401/122401.html','true',[],'',''],
		['PAGE','138301',jdecode('Signtags'),jdecode(''),'/78401/138301.html','true',[],'',''],
		['PAGE','232801',jdecode('Blends'),jdecode(''),'/78401/232801.html','true',[],'',''],
		['PAGE','251801',jdecode('Letter'),jdecode(''),'/78401/251801.html','true',[],'',''],
		['PAGE','256101',jdecode('Scraps'),jdecode(''),'/78401/256101.html','true',[],'',''],
		['PAGE','133401',jdecode('Valentinstag'),jdecode(''),'/78401/133401.html','true',[],'',''],
		['PAGE','215701',jdecode('Sommer'),jdecode(''),'/78401/215701.html','true',[],'',''],
		['PAGE','262001',jdecode('Herbst'),jdecode(''),'/78401/262001.html','true',[],'',''],
		['PAGE','262022',jdecode('Halloween'),jdecode(''),'/78401/262022.html','true',[],'',''],
		['PAGE','297701',jdecode('Weihnachten'),jdecode(''),'/78401/297701.html','true',[],'',''],
		['PAGE','297722',jdecode('Winter'),jdecode(''),'/78401/297722.html','true',[],'',''],
		['PAGE','123701',jdecode('Awards%2FSchenkis'),jdecode(''),'/78401/123701.html','true',[],'',''],
		['PAGE','78443',jdecode('Diverses'),jdecode(''),'/78401/78443.html','true',[],'','']
	],'',''],
	['PAGE','6901',jdecode('Meine+Familie'),jdecode(''),'/6901.html','true',[],'',''],
	['PAGE','5309',jdecode('Gotti-Kinder'),jdecode(''),'/5309/index.html','true',[ 
		['PAGE','395801',jdecode('Konfirmation+Kevin'),jdecode(''),'/5309/395801.html','true',[],'','']
	],'',''],
	['PAGE','5615',jdecode('%C3%96sterreicher'),jdecode(''),'/5615.html','true',[],'',''],
	['PAGE','221301',jdecode('Vereine'),jdecode(''),'/221301/index.html','true',[ 
		['PAGE','221322',jdecode('Damenturnverein'),jdecode(''),'/221301/221322.html','true',[],'',''],
		['PAGE','275301',jdecode('M%C3%A4dchenriege'),jdecode(''),'/221301/275301.html','true',[],'',''],
		['PAGE','221343',jdecode('KGZV'),jdecode(''),'/221301/221343.html','true',[],'','']
	],'',''],
	['PAGE','7132',jdecode('Diverses'),jdecode(''),'/7132.html','true',[],'',''],
	['PAGE','78464',jdecode('Links'),jdecode(''),'/78464.html','true',[],'',''],
	['PAGE','5357',jdecode('G%C3%A4stebuch'),jdecode(''),'/5357/index.html','true',[ 
		['PAGE','5358',jdecode('Eintr%C3%A4ge'),jdecode(''),'/5357/5358.html','false',[],'','']
	],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Brush';
theSitetree.paletteFamily='6F7DC8';
theSitetree.keyvisualId='11942';
theSitetree.keyvisualName='kv_11942.jpg';
theSitetree.fontsetId='33214';
theSitetree.graphicsetId='14102';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Brush',
				paletteFamily: 	'6F7DC8',
				keyvisualId: 	'11942',
				keyvisualName: 	'kv_11942.jpg',
				fontsetId: 		'33214',
				graphicsetId: 	'14102',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288301',
internalId:  '',
customField: '20071119-195912'
};
webappMappings['1002']=webappMappings['1002-5357ABW0X0INX2DF']={
webappId:    '1002',
documentId:  '5357',
internalId:  '5357ABW0X0INX2DF',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4677',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4677',
internalId:  '',
customField: '20090429-100507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20090429-082330'
};
webappMappings['7050']=webappMappings['7050-97']={
webappId:    '7050',
documentId:  '80301',
internalId:  '97',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318501',
internalId:  '',
customField: '20071220-065344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80301',
internalId:  '',
customField: '20090130-101621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5228',
internalId:  '',
customField: '20071120-083014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5255',
internalId:  '',
customField: '20090429-082920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20070916-212131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268001',
internalId:  '',
customField: '20070916-215110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268022',
internalId:  '',
customField: '20080806-083138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268043',
internalId:  '',
customField: '20080806-084150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20081112-063353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '408601',
internalId:  '',
customField: '20090429-082536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '389401',
internalId:  '',
customField: '20080620-080358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5282',
internalId:  '',
customField: '20090429-083159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202301',
internalId:  '',
customField: '20090429-083511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78401',
internalId:  '',
customField: '20080523-080646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20070326-164605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78422',
internalId:  '',
customField: '20070126-060437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '399401',
internalId:  '',
customField: '20080523-081912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141101',
internalId:  '',
customField: '20070914-083015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122401',
internalId:  '',
customField: '20070214-062419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138301',
internalId:  '',
customField: '20080418-055104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232801',
internalId:  '',
customField: '20070718-073226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251801',
internalId:  '',
customField: '20070723-081843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256101',
internalId:  '',
customField: '20070724-074650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133401',
internalId:  '',
customField: '20080418-054933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215701',
internalId:  '',
customField: '20070612-164119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262001',
internalId:  '',
customField: '20070914-085238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262022',
internalId:  '',
customField: '20071008-081945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297701',
internalId:  '',
customField: '20071218-070602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297722',
internalId:  '',
customField: '20080124-072205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123701',
internalId:  '',
customField: '20080418-060116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78443',
internalId:  '',
customField: '20090429-083817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20090429-100453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5309',
internalId:  '',
customField: '20090429-083922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '395801',
internalId:  '',
customField: '20080505-150517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5615',
internalId:  '',
customField: '20090429-084030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221301',
internalId:  '',
customField: '20070918-154150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221322',
internalId:  '',
customField: '20070628-083054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275301',
internalId:  '',
customField: '20071120-082242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221343',
internalId:  '',
customField: '20070918-154053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7132',
internalId:  '',
customField: '20070524-104953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78464',
internalId:  '',
customField: '20090429-101510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5357',
internalId:  '',
customField: '20060427-190217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5358',
internalId:  '',
customField: '20060427-190217'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2DF';
var companyName   = 'Willkommen+auf+Manus+Hobbyseite';
var htmlTitle	  = 'Manus+Hobbyseite';
var metaKeywords  = 'Kreuzstich++Sticken++Hobby++Basteln++Pixeln';
var metaContents  = 'Hobby++Kreuzstich++Basteln';
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();
};

