/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','452',jdecode('News'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','43701',jdecode('Aktueller+Wurf'),jdecode(''),'/43701.html','true',[],'',''],
	['PAGE','473',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','494',jdecode('Frankie'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','515',jdecode('Pedigree'),jdecode(''),'/494/515.html','true',[],'',''],
		['PAGE','536',jdecode('Fotos'),jdecode(''),'/494/536.html','true',[],'',''],
		['PAGE','557',jdecode('Nachkommen'),jdecode(''),'/494/557.html','true',[],'','']
	],'',''],
	['PAGE','578',jdecode('Cassis'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','599',jdecode('Pedigree'),jdecode(''),'/578/599.html','true',[],'',''],
		['PAGE','620',jdecode('Fotos'),jdecode(''),'/578/620.html','true',[],'','']
	],'',''],
	['PAGE','641',jdecode('Chelsea'),jdecode(''),'/641/index.html','true',[ 
		['PAGE','662',jdecode('Pedigree'),jdecode(''),'/641/662.html','true',[],'',''],
		['PAGE','683',jdecode('Fotos'),jdecode(''),'/641/683.html','true',[],'','']
	],'',''],
	['PAGE','704',jdecode('Fancy'),jdecode(''),'/704/index.html','true',[ 
		['PAGE','725',jdecode('Pedigree'),jdecode(''),'/704/725.html','true',[],'',''],
		['PAGE','746',jdecode('Fotos'),jdecode(''),'/704/746.html','true',[],'','']
	],'',''],
	['PAGE','767',jdecode('Dinah'),jdecode(''),'/767/index.html','true',[ 
		['PAGE','788',jdecode('Pedigree'),jdecode(''),'/767/788.html','true',[],'',''],
		['PAGE','809',jdecode('Fotos'),jdecode(''),'/767/809.html','true',[],'','']
	],'',''],
	['PAGE','830',jdecode('Mila'),jdecode(''),'/830/index.html','true',[ 
		['PAGE','851',jdecode('Pedigree'),jdecode(''),'/830/851.html','true',[],'',''],
		['PAGE','872',jdecode('Fotos'),jdecode(''),'/830/872.html','true',[],'','']
	],'',''],
	['PAGE','914',jdecode('W%C3%BCrfe'),jdecode(''),'/914/index.html','true',[ 
		['PAGE','935',jdecode('Wurf+E'),jdecode(''),'/914/935.html','true',[],'',''],
		['PAGE','956',jdecode('Wurf+F'),jdecode(''),'/914/956.html','true',[],'',''],
		['PAGE','977',jdecode('Wurf+G'),jdecode(''),'/914/977.html','true',[],'',''],
		['PAGE','34801',jdecode('Wurf+H'),jdecode(''),'/914/34801.html','true',[],'',''],
		['PAGE','45401',jdecode('Wurf+I'),jdecode(''),'/914/45401.html','true',[],'','']
	],'',''],
	['PAGE','998',jdecode('Fotogalerie'),jdecode(''),'/998/index.html','true',[ 
		['PAGE','1019',jdecode('Every+Day'),jdecode(''),'/998/1019.html','true',[],'',''],
		['PAGE','1040',jdecode('Jagd'),jdecode(''),'/998/1040.html','true',[],'',''],
		['PAGE','1061',jdecode('Ausstellungen'),jdecode(''),'/998/1061.html','true',[],'','']
	],'',''],
	['PAGE','1082',jdecode('Memories'),jdecode(''),'/1082.html','true',[],'',''],
	['PAGE','1103',jdecode('Links'),jdecode(''),'/1103.html','true',[],'',''],
	['PAGE','6006',jdecode('G%C3%A4stebuch'),jdecode(''),'/6006/index.html','true',[ 
		['PAGE','6001',jdecode('Eintr%C3%A4ge'),jdecode(''),'/6006/6001.html','false',[],'','']
	],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='75';
theSitetree.graphicsetId='80';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D0D5DB';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'660000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'75',
				graphicsetId: 	'80',
				contentColor: 	'000000',
				contentBGColor: 'D0D5DB',
				a_color: 		'660000',
				b_color: 		'CCCC99',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-6006abw0x0inemz8']={
webappId:    '1002',
documentId:  '6006',
internalId:  '6006abw0x0inemz8',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100608-075210'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-21679435']={
webappId:    '1501',
documentId:  '401',
internalId:  '21679435',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100727-084852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080322-201008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080501-195633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080717-215951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080717-213841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080717-213855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080501-195946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20080422-234204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20080422-233737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20080501-200231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20080501-200254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20080420-194122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20080501-200440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '725',
internalId:  '',
customField: '20080717-215705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20091220-112724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20080422-202352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20080422-203312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20080422-203720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20080420-194832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '851',
internalId:  '',
customField: '20080501-200607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '872',
internalId:  '',
customField: '20080421-190618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20090806-192004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '914',
internalId:  '',
customField: '20080322-204613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '935',
internalId:  '',
customField: '20080422-205409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '956',
internalId:  '',
customField: '20080422-210822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '977',
internalId:  '',
customField: '20091220-113536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '998',
internalId:  '',
customField: '20080603-185000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1019',
internalId:  '',
customField: '20090806-192629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1040',
internalId:  '',
customField: '20091220-113950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1061',
internalId:  '',
customField: '20091220-115318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1082',
internalId:  '',
customField: '20080422-233158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1103',
internalId:  '',
customField: '20080603-184947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6006',
internalId:  '',
customField: '20080321-173508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20080321-173508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43701',
internalId:  '',
customField: '20100727-084731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20100321-220002'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INEMZ8';
var companyName   = 'vom+Hasenschreck';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
