/* [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','2901',jdecode('Home'),jdecode(''), jdecode('%2F2901.html'), 'true',[],'',''],
	['PAGE','15601',jdecode('Das+Kooikerhondje'),jdecode(''), jdecode('%2F15601%2Findex.html'), 'true',[ 
		['PAGE','15622',jdecode('Ein+wenig+Geschichte'),jdecode(''), jdecode('%2F15601%2F15622.html'), 'true',[],'',''],
		['PAGE','15643',jdecode('Rassestandards'),jdecode(''), jdecode('%2F15601%2F15643.html'), 'true',[],'','']
	],'',''],
	['PAGE','6101',jdecode('Unsere+Kooiker'),jdecode(''), jdecode('%2F6101.html'), 'true',[],'',''],
	['PAGE','3301',jdecode('Puppies'),jdecode(''), jdecode('%2F3301%2Findex.html'), 'true',[ 
		['PAGE','3601',jdecode('Woche+1'),jdecode(''), jdecode('%2F3301%2F3601.html'), 'true',[],'',''],
		['PAGE','4201',jdecode('Woche+2'),jdecode(''), jdecode('%2F3301%2F4201.html'), 'true',[],'',''],
		['PAGE','4601',jdecode('Woche+3'),jdecode(''), jdecode('%2F3301%2F4601.html'), 'true',[],'',''],
		['PAGE','4701',jdecode('Woche+4'),jdecode(''), jdecode('%2F3301%2F4701.html'), 'true',[],'',''],
		['PAGE','4722',jdecode('Woche+5'),jdecode(''), jdecode('%2F3301%2F4722.html'), 'true',[],'',''],
		['PAGE','4743',jdecode('Woche+6'),jdecode(''), jdecode('%2F3301%2F4743.html'), 'true',[],'',''],
		['PAGE','4764',jdecode('Woche+7'),jdecode(''), jdecode('%2F3301%2F4764.html'), 'true',[],'',''],
		['PAGE','15664',jdecode('Woche+8'),jdecode(''), jdecode('%2F3301%2F15664.html'), 'true',[],'',''],
		['PAGE','15685',jdecode('Woche+9'),jdecode(''), jdecode('%2F3301%2F15685.html'), 'true',[],'',''],
		['PAGE','15706',jdecode('Woche+10'),jdecode(''), jdecode('%2F3301%2F15706.html'), 'true',[],'',''],
		['PAGE','15727',jdecode('Woche+11'),jdecode(''), jdecode('%2F3301%2F15727.html'), 'true',[],'',''],
		['PAGE','15748',jdecode('Woche+12'),jdecode(''), jdecode('%2F3301%2F15748.html'), 'true',[],'',''],
		['PAGE','20401',jdecode('Farewells'),jdecode(''), jdecode('%2F3301%2F20401.html'), 'true',[],'','']
	],'',''],
	['PAGE','4785',jdecode('Kontakt'),jdecode(''), jdecode('%2F4785.html'), 'true',[],'',''],
	['PAGE','4901',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F4901.html'), 'true',[],'',''],
	['PAGE','7801',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F7801.html'), 'true',[],'',''],
	['PAGE','8901',jdecode('Links'),jdecode(''), jdecode('%2F8901.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Bow';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='12020';
theSitetree.keyvisualName='kv_12020.jpg';
theSitetree.fontsetId='33250';
theSitetree.graphicsetId='14117';
theSitetree.contentColor='666666';
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: 			'Bow',
				paletteFamily: 	'000000',
				keyvisualId: 	'12020',
				keyvisualName: 	'kv_12020.jpg',
				fontsetId: 		'33250',
				graphicsetId: 	'14117',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'F2F5F8',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20100803-203800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100517-202730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100419-223107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20100419-223125'
};
webappMappings['7008']=webappMappings['7008-9565']={
webappId:    '7008',
documentId:  '4785',
internalId:  '9565',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100801-145254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4785',
internalId:  '',
customField: '20100418-192532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100422-205056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100503-210120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4722',
internalId:  '',
customField: '20100503-205733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4743',
internalId:  '',
customField: '20100509-192742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4764',
internalId:  '',
customField: '20100525-224354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20100517-202711'
};
webappMappings['1002']=webappMappings['1002-7801abw330inebmh']={
webappId:    '1002',
documentId:  '7801',
internalId:  '7801abw330inebmh',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20100419-222030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100420-202859'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100606-161236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15622',
internalId:  '',
customField: '20100517-192140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15643',
internalId:  '',
customField: '20100515-170116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15664',
internalId:  '',
customField: '20100525-224654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15685',
internalId:  '',
customField: '20100530-203647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15706',
internalId:  '',
customField: '20100606-162446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15727',
internalId:  '',
customField: '20100621-165736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15748',
internalId:  '',
customField: '20100621-171530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20100808-213520'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW330INEBMH';
var companyName   = 'Kooikerhondje+van+Uiledal';
var htmlTitle	  = 'Kooikerhondje+-+Liebhaberzucht+%22van+Uiledal%22';
var metaKeywords  = 'kooiker%2Cvan+uiledal%2Ckooikerhondje%2Cliebhaberzucht%2CKooikerzucht%2CKooikerhondjezucht%2CKooiker+Z%C3%BCchter%2CKooikerhondje+Z%C3%BCchter%2Cwelpen%2Ckooikerwelpen%2Ckooker+puppys%2Cpuppy';
var metaContents  = 'Kooikerhondje+van+Uiledal+-+Liebhaberzucht';
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();
};

