/* [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','4518',jdecode('Home'),jdecode(''), jdecode('%2F4518.html'), 'true',[],'',''],
	['PAGE','29537',jdecode('Billy'),jdecode(''), jdecode('%2F29537.html'), 'true',[],'',''],
	['PAGE','206301',jdecode('Angie'),jdecode(''), jdecode('%2F206301.html'), 'true',[],'',''],
	['PAGE','692901',jdecode('Bounty'),jdecode(''), jdecode('%2F692901.html'), 'true',[],'',''],
	['PAGE','776267',jdecode('Chumani'),jdecode(''), jdecode('%2F776267.html'), 'true',[],'',''],
	['PAGE','776309',jdecode('Cherokee'),jdecode(''), jdecode('%2F776309.html'), 'true',[],'',''],
	['PAGE','892320',jdecode('Daisy'),jdecode(''), jdecode('%2F892320.html'), 'true',[],'',''],
	['PAGE','901820',jdecode('Discovery'),jdecode(''), jdecode('%2F901820.html'), 'true',[],'',''],
	['PAGE','206343',jdecode('Ela'),jdecode(''), jdecode('%2F206343.html'), 'true',[],'',''],
	['PAGE','990020',jdecode('Elaine'),jdecode(''), jdecode('%2F990020.html'), 'true',[],'',''],
	['PAGE','990041',jdecode('Energy-Fly'),jdecode(''), jdecode('%2F990041.html'), 'true',[],'',''],
	['PAGE','990083',jdecode('Empire'),jdecode(''), jdecode('%2F990083.html'), 'true',[],'',''],
	['PAGE','1079720',jdecode('Flaming+Star'),jdecode(''), jdecode('%2F1079720.html'), 'true',[],'',''],
	['PAGE','1080320',jdecode('Gipsy'),jdecode(''), jdecode('%2F1080320.html'), 'true',[],'',''],
	['PAGE','946720',jdecode('Hope'),jdecode(''), jdecode('%2F946720.html'), 'true',[],'',''],
	['PAGE','1040820',jdecode('Honey'),jdecode(''), jdecode('%2F1040820.html'), 'true',[],'',''],
	['PAGE','1079741',jdecode('Sugar'),jdecode(''), jdecode('%2F1079741.html'), 'true',[],'',''],
	['PAGE','1056220',jdecode('W%C3%BCrfe'),jdecode(''), jdecode('%2F1056220.html'), 'true',[],'',''],
	['PAGE','1062720',jdecode('Nachzucht+1'),jdecode(''), jdecode('%2F1062720.html'), 'true',[],'',''],
	['PAGE','1065820',jdecode('Nachzucht+2'),jdecode(''), jdecode('%2F1065820.html'), 'true',[],'',''],
	['PAGE','718101',jdecode('Billy+im+Agility'),jdecode(''), jdecode('%2F718101.html'), 'true',[],'',''],
	['PAGE','970320',jdecode('Cherokee+im+Agility'),jdecode(''), jdecode('%2F970320.html'), 'true',[],'',''],
	['PAGE','983520',jdecode('Collies+im+Agility'),jdecode(''), jdecode('%2F983520.html'), 'true',[],'',''],
	['PAGE','454901',jdecode('Regenbogenbr%C3%BCcke'),jdecode(''), jdecode('%2F454901.html'), 'true',[],'',''],
	['PAGE','206322',jdecode('Shiva'),jdecode(''), jdecode('%2F206322.html'), 'true',[],'',''],
	['PAGE','770701',jdecode('Familientreffen'),jdecode(''), jdecode('%2F770701.html'), 'true',[],'',''],
	['PAGE','118001',jdecode('Freunde'),jdecode(''), jdecode('%2F118001.html'), 'true',[],'',''],
	['PAGE','379201',jdecode('Awards'),jdecode(''), jdecode('%2F379201.html'), 'true',[],'',''],
	['PAGE','34780',jdecode('Agility-Erfolge+'),jdecode(''), jdecode('%2F34780.html'), 'true',[],'',''],
	['PAGE','48001',jdecode('Agility-Platz'),jdecode(''), jdecode('%2F48001.html'), 'true',[],'',''],
	['PAGE','822820',jdecode('Black+Jet+Teams'),jdecode(''), jdecode('%2F822820.html'), 'true',[],'',''],
	['PAGE','41010',jdecode('Links+1'),jdecode(''), jdecode('%2F41010.html'), 'true',[],'',''],
	['PAGE','247401',jdecode('Links+2'),jdecode(''), jdecode('%2F247401.html'), 'true',[],'',''],
	['PAGE','345801',jdecode('Links+3'),jdecode(''), jdecode('%2F345801.html'), 'true',[],'',''],
	['PAGE','296701',jdecode('Zum+Schmunzeln'),jdecode(''), jdecode('%2F296701.html'), 'true',[],'',''],
	['PAGE','310101',jdecode('Haustiere'),jdecode(''), jdecode('%2F310101.html'), 'true',[],'',''],
	['PAGE','357001',jdecode('Basteleien'),jdecode(''), jdecode('%2F357001.html'), 'true',[],'',''],
	['PAGE','835325',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F835325%2Findex.html'), 'true',[ 
		['PAGE','835320',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F835325%2F835320.html'), 'false',[],'','']
	],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='3B34A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10575';
theSitetree.graphicsetId='10528';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
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: 			'Cable',
				paletteFamily: 	'3B34A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10575',
				graphicsetId: 	'10528',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4518',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-835325abw0x0inxsrt']={
webappId:    '1002',
documentId:  '835325',
internalId:  '835325abw0x0inxsrt',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4518',
internalId:  '',
customField: '20120124-011309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29537',
internalId:  '',
customField: '20110517-054436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206301',
internalId:  '',
customField: '20110111-213656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '692901',
internalId:  '',
customField: '20120124-012311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '776267',
internalId:  '',
customField: '20111223-020506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '776309',
internalId:  '',
customField: '20110111-213327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '892320',
internalId:  '',
customField: '20100927-153407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901820',
internalId:  '',
customField: '20111222-095954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '983520',
internalId:  '',
customField: '20090920-213211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206343',
internalId:  '',
customField: '20120109-223425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '990020',
internalId:  '',
customField: '20110111-212710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '718101',
internalId:  '',
customField: '20070812-023633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '970320',
internalId:  '',
customField: '20090919-151159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '454901',
internalId:  '',
customField: '20080215-155233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206322',
internalId:  '',
customField: '20080818-225806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '770701',
internalId:  '',
customField: '20071210-234438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118001',
internalId:  '',
customField: '20091021-000506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '379201',
internalId:  '',
customField: '20080109-015247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34780',
internalId:  '',
customField: '20071022-140011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20080926-013554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '822820',
internalId:  '',
customField: '20110111-214933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1065820',
internalId:  '',
customField: '20111222-101559'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '1079741',
internalId:  '-',
customField: '20120109-012704'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '1079720',
internalId:  '-',
customField: '20120109-223242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1062720',
internalId:  '',
customField: '20111222-101413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41010',
internalId:  '',
customField: '20090918-120541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247401',
internalId:  '',
customField: '20080926-021151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '345801',
internalId:  '',
customField: '20081111-225855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '296701',
internalId:  '',
customField: '20070627-004200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '310101',
internalId:  '',
customField: '20070224-005358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357001',
internalId:  '',
customField: '20090628-110200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '835325',
internalId:  '',
customField: '20080409-233542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '835320',
internalId:  '',
customField: '20080409-232552'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '1080320',
internalId:  '-',
customField: '20120123-143532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '946720',
internalId:  '',
customField: '20111222-100133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '990041',
internalId:  '',
customField: '20110111-212740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '990083',
internalId:  '',
customField: '20111210-182543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1040820',
internalId:  '',
customField: '20111222-095046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1056220',
internalId:  '',
customField: '20111222-100818'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSRT';
var companyName   = 'Black+Jet%60s++++++++++Collie-Zucht+%2B+Agility';
var htmlTitle	  = 'Black+Jet%60s++++Collie-Zucht+%2B+Agility';
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();
};

