/* [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','4594',jdecode('Home'),jdecode(''), jdecode('%2F4594.html'), 'true',[],'',''],
	['PAGE','78134',jdecode('News+'),jdecode(''), jdecode('%2F78134.html'), 'true',[],'',''],
	['PAGE','257001',jdecode('Deckmeldung'),jdecode(''), jdecode('%2F257001.html'), 'true',[],'',''],
	['PAGE','281423',jdecode('Welpen+B+-+Wurf'),jdecode(''), jdecode('%2F281423%2Findex.html'), 'true',[ 
		['PAGE','315623',jdecode('Bruce'),jdecode(''), jdecode('%2F281423%2F315623.html'), 'true',[],'',''],
		['PAGE','321323',jdecode('Brian'),jdecode(''), jdecode('%2F281423%2F321323.html'), 'true',[],'',''],
		['PAGE','315644',jdecode('Bandit'),jdecode(''), jdecode('%2F281423%2F315644.html'), 'true',[],'',''],
		['PAGE','321344',jdecode('Bonny'),jdecode(''), jdecode('%2F281423%2F321344.html'), 'true',[],'',''],
		['PAGE','315665',jdecode('Bounce+'),jdecode(''), jdecode('%2F281423%2F315665.html'), 'true',[],'',''],
		['PAGE','315686',jdecode('Blaze+'),jdecode(''), jdecode('%2F281423%2F315686.html'), 'true',[],'',''],
		['PAGE','321365',jdecode('Boon'),jdecode(''), jdecode('%2F281423%2F321365.html'), 'true',[],'',''],
		['PAGE','316323',jdecode('Bjara'),jdecode(''), jdecode('%2F281423%2F316323.html'), 'true',[],'','']
	],'',''],
	['PAGE','76583',jdecode('Welpen+A+-+Wurf'),jdecode(''), jdecode('%2F76583%2Findex.html'), 'true',[ 
		['PAGE','94001',jdecode('Aros'),jdecode(''), jdecode('%2F76583%2F94001.html'), 'true',[],'',''],
		['PAGE','94022',jdecode('Anax'),jdecode(''), jdecode('%2F76583%2F94022.html'), 'true',[],'',''],
		['PAGE','94043',jdecode('Anusch'),jdecode(''), jdecode('%2F76583%2F94043.html'), 'true',[],'',''],
		['PAGE','94064',jdecode('Andy+%28+Blade+%29'),jdecode(''), jdecode('%2F76583%2F94064.html'), 'true',[],'',''],
		['PAGE','94085',jdecode('Aray'),jdecode(''), jdecode('%2F76583%2F94085.html'), 'true',[],'',''],
		['PAGE','94106',jdecode('Anuk'),jdecode(''), jdecode('%2F76583%2F94106.html'), 'true',[],'',''],
		['PAGE','94127',jdecode('Aria'),jdecode(''), jdecode('%2F76583%2F94127.html'), 'true',[],'',''],
		['PAGE','94148',jdecode('Ashra'),jdecode(''), jdecode('%2F76583%2F94148.html'), 'true',[],'',''],
		['PAGE','94169',jdecode('Akira'),jdecode(''), jdecode('%2F76583%2F94169.html'), 'true',[],'',''],
		['PAGE','94190',jdecode('Ayka'),jdecode(''), jdecode('%2F76583%2F94190.html'), 'true',[],'','']
	],'',''],
	['PAGE','250501',jdecode('Zu+Verkaufen'),jdecode(''), jdecode('%2F250501.html'), 'true',[],'',''],
	['PAGE','9328',jdecode('Warum+ein+Hund%3F'),jdecode(''), jdecode('%2F9328.html'), 'true',[],'',''],
	['PAGE','217301',jdecode('Pr%C3%BCfungen+St.+M%C3%B6%C3%B6rler'),jdecode(''), jdecode('%2F217301.html'), 'true',[],'',''],
	['PAGE','183201',jdecode('Staaderm%C3%B6%C3%B6ler-Treffen'),jdecode(''), jdecode('%2F183201.html'), 'true',[],'',''],
	['PAGE','370223',jdecode('Foto%26%23x27%3Bs+-+Filme'),jdecode(''), jdecode('%2F370223.html'), 'true',[],'',''],
	['PAGE','105301',jdecode('Galerie'),jdecode(''), jdecode('%2F105301.html'), 'true',[],'',''],
	['PAGE','9355',jdecode('Galerie+Qwodin'),jdecode(''), jdecode('%2F9355.html'), 'true',[],'',''],
	['PAGE','74798',jdecode('Leistungen+Qwodin'),jdecode(''), jdecode('%2F74798.html'), 'true',[],'',''],
	['PAGE','109201',jdecode('Leistungen+Anuk'),jdecode(''), jdecode('%2F109201.html'), 'true',[],'',''],
	['PAGE','10042',jdecode('Leistungen+Bengi'),jdecode(''), jdecode('%2F10042.html'), 'true',[],'',''],
	['PAGE','10096',jdecode('Bodenzoo'),jdecode(''), jdecode('%2F10096.html'), 'true',[],'',''],
	['PAGE','62367',jdecode('Abschied'),jdecode(''), jdecode('%2F62367.html'), 'true',[],'',''],
	['PAGE','156401',jdecode('Urlaub+mit+Hund+2007'),jdecode(''), jdecode('%2F156401.html'), 'true',[],'',''],
	['PAGE','73112',jdecode('Urlaub+mit+Hund+2006'),jdecode(''), jdecode('%2F73112%2Findex.html'), 'true',[ 
		['PAGE','41643',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''), jdecode('%2F73112%2F41643.html'), 'false',[],'','']
	],'',''],
	['PAGE','73907',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F73907%2Findex.html'), 'true',[ 
		['PAGE','73906',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F73907%2F73906.html'), 'false',[],'','']
	],'',''],
	['PAGE','74333',jdecode('Links'),jdecode(''), jdecode('%2F74333.html'), 'true',[],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='766455';
theSitetree.keyvisualId='1280';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='234';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'766455',
				keyvisualId: 	'1280',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'234',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'766455',
				b_color: 		'52443C',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-73907abw0x0inxsyq']={
webappId:    '1002',
documentId:  '73907',
internalId:  '73907abw0x0inxsyq',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-75757']={
webappId:    '1501',
documentId:  '4594',
internalId:  '75757',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4594',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315623',
internalId:  '',
customField: '20100217-090407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281423',
internalId:  '',
customField: '20110201-012156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20120126-164813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78134',
internalId:  '',
customField: '20120109-082212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257001',
internalId:  '',
customField: '20090122-172536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76583',
internalId:  '',
customField: '20110103-072306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94001',
internalId:  '',
customField: '20110718-080936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94022',
internalId:  '',
customField: '20100118-090531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94043',
internalId:  '',
customField: '20091215-100441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94064',
internalId:  '',
customField: '20100120-185643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94085',
internalId:  '',
customField: '20110717-194724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94106',
internalId:  '',
customField: '20090109-043326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94127',
internalId:  '',
customField: '20091125-195827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94148',
internalId:  '',
customField: '20091215-102938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94169',
internalId:  '',
customField: '20110201-171318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94190',
internalId:  '',
customField: '20080405-084245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250501',
internalId:  '',
customField: '20101209-144146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9328',
internalId:  '',
customField: '20070120-195301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217301',
internalId:  '',
customField: '20120109-140513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183201',
internalId:  '',
customField: '20090702-140913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105301',
internalId:  '',
customField: '20090118-220455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9355',
internalId:  '',
customField: '20060411-075321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74798',
internalId:  '',
customField: '20081123-232852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109201',
internalId:  '',
customField: '20081106-102655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10042',
internalId:  '',
customField: '20110601-084219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10096',
internalId:  '',
customField: '20090603-222702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62367',
internalId:  '',
customField: '20110511-104205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156401',
internalId:  '',
customField: '20070822-175610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73112',
internalId:  '',
customField: '20061116-100835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41643',
internalId:  '',
customField: '20051229-145012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73907',
internalId:  '',
customField: '20060929-110828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73906',
internalId:  '',
customField: '20060929-110828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74333',
internalId:  '',
customField: '20110403-145610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315644',
internalId:  '',
customField: '20100822-122502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315665',
internalId:  '',
customField: '20110215-093428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315686',
internalId:  '',
customField: '20101203-173559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '316323',
internalId:  '',
customField: '20101203-165817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321323',
internalId:  '',
customField: '20110317-140247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321344',
internalId:  '',
customField: '20100331-072438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321365',
internalId:  '',
customField: '20091004-002507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370223',
internalId:  '',
customField: '20111012-132154'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSYQ';
var companyName   = 'Malinois+vom+Staader+Moor';
var htmlTitle	  = 'Malinois+vom+Staader-Moor';
var metaKeywords  = 'Malinois%2CMali%2CHund%2CVorrichtungsbau%2CZ%C3%BCchter%2Cstaadermoor%2CStaader-Moor%2CZucht%2CMechanik%2CK%C3%BCnzler%2CFranziska%2CKurt%2CHunde%2CFirst';
var metaContents  = 'Zucht+von+Malinois';
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();
};

