/* [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(''),'/4518.html','true',[],'',''],
	['PAGE','9608',jdecode('Kyrin'),jdecode(''),'/9608.html','true',[],'',''],
	['PAGE','9635',jdecode('Beauty'),jdecode(''),'/9635.html','true',[],'',''],
	['PAGE','9662',jdecode('Djoy'),jdecode(''),'/9662.html','true',[],'',''],
	['PAGE','26510',jdecode('Aaron'),jdecode(''),'/26510.html','true',[],'',''],
	['PAGE','86964',jdecode('Daivy'),jdecode(''),'/86964.html','true',[],'',''],
	['PAGE','85643',jdecode('Fotogalerie'),jdecode(''),'/85643.html','true',[],'',''],
	['PAGE','87152',jdecode('F-Wurf+8.12.08+-+3.2.09+'),jdecode(''),'/87152.html','true',[],'',''],
	['PAGE','91301',jdecode('F-Wurf+4.2.09+-'),jdecode(''),'/91301.html','true',[],'',''],
	['PAGE','26537',jdecode('Heirat+vom+24.10.2005'),jdecode(''),'/26537.html','true',[],'',''],
	['PAGE','45981',jdecode('E-Wurf+Woche+1-3'),jdecode(''),'/45981.html','true',[],'',''],
	['PAGE','52714',jdecode('E-Wurf+Woche+4-6'),jdecode(''),'/52714.html','true',[],'',''],
	['PAGE','52741',jdecode('E-Wurf+Woche+7-8'),jdecode(''),'/52741.html','true',[],'',''],
	['PAGE','70109',jdecode('E-Wurf+Woche+9-10'),jdecode(''),'/70109.html','true',[],'',''],
	['PAGE','76009',jdecode('E-Wurf+Woche+11'),jdecode(''),'/76009.html','true',[],'',''],
	['PAGE','57914',jdecode('diverse+Fotos+E-Wurf'),jdecode(''),'/57914.html','true',[],'',''],
	['PAGE','79609',jdecode('E-Wurf+bei+ihren+Familien'),jdecode(''),'/79609.html','true',[],'',''],
	['PAGE','9689',jdecode('Nachkommen'),jdecode(''),'/9689.html','true',[],'',''],
	['PAGE','26564',jdecode('Fotos+Welpen'),jdecode(''),'/26564.html','true',[],'',''],
	['PAGE','26591',jdecode('Fotos+Diverse'),jdecode(''),'/26591.html','true',[],'',''],
	['PAGE','26618',jdecode('Fotos+D-Wurf'),jdecode(''),'/26618.html','true',[],'',''],
	['PAGE','9716',jdecode('Besuche+%26+Treffen'),jdecode(''),'/9716.html','true',[],'',''],
	['PAGE','45351',jdecode('Ausstellungen'),jdecode(''),'/45351.html','true',[],'',''],
	['PAGE','45378',jdecode('Deckr%C3%BCde+Aaron'),jdecode(''),'/45378.html','true',[],'',''],
	['PAGE','26645',jdecode('FCI-Standard+Nr.+291'),jdecode(''),'/26645.html','true',[],'',''],
	['PAGE','26672',jdecode('Links'),jdecode(''),'/26672.html','true',[],'',''],
	['PAGE','10735',jdecode('G%C3%A4stebuch'),jdecode(''),'/10735/index.html','true',[ 
		['PAGE','10736',jdecode('Eintr%C3%A4ge'),jdecode(''),'/10735/10736.html','false',[],'','']
	],'',''],
	['PAGE','43689',jdecode('Anfahrt'),jdecode(''),'/43689.html','true',[],'',''],
	['PAGE','52768',jdecode('Kontakt'),jdecode(''),'/52768.html','true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='440';
theSitetree.graphicsetId='493';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='a1a1c6';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Round',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'440',
				graphicsetId: 	'493',
				contentColor: 	'FFFFFF',
				contentBGColor: 'a1a1c6',
				a_color: 		'a1a1c6',
				b_color: 		'666699',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87152',
internalId:  '',
customField: '20090203-210823'
};
webappMappings['1002']=webappMappings['1002-10735ABW0X0INXZOV']={
webappId:    '1002',
documentId:  '10735',
internalId:  '10735ABW0X0INXZOV',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4518',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2572313']={
webappId:    '1501',
documentId:  '4518',
internalId:  '2572313',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43689',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4518',
internalId:  '',
customField: '20050423-234318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9608',
internalId:  '',
customField: '20070114-224807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9635',
internalId:  '',
customField: '20050423-224701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9662',
internalId:  '',
customField: '20091105-152612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26510',
internalId:  '',
customField: '20091105-153847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86964',
internalId:  '',
customField: '20091105-155611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85643',
internalId:  '',
customField: '20090718-213151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26537',
internalId:  '',
customField: '20051222-001733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45981',
internalId:  '',
customField: '20060117-234125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52714',
internalId:  '',
customField: '20060207-215249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52741',
internalId:  '',
customField: '20060221-221353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70109',
internalId:  '',
customField: '20060307-225031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76009',
internalId:  '',
customField: '20060312-212834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57914',
internalId:  '',
customField: '20060318-192408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79609',
internalId:  '',
customField: '20060726-233718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9689',
internalId:  '',
customField: '20050516-161328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26564',
internalId:  '',
customField: '20050509-012835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26591',
internalId:  '',
customField: '20060726-223400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26618',
internalId:  '',
customField: '20050516-153257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9716',
internalId:  '',
customField: '20070930-154154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45351',
internalId:  '',
customField: '20091115-132823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45378',
internalId:  '',
customField: '20091115-133044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26645',
internalId:  '',
customField: '20050509-145204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26672',
internalId:  '',
customField: '20090307-230438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10735',
internalId:  '',
customField: '20050322-234908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10736',
internalId:  '',
customField: '20050322-234908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43689',
internalId:  '',
customField: '20051220-224539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52768',
internalId:  '',
customField: '20071005-211607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91301',
internalId:  '',
customField: '20090224-234539'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXZOV';
var companyName   = 'Eurasier+vom+Bahnhof-Zoo';
var htmlTitle	  = '';
var metaKeywords  = 'Eurasier%2C+eurasier-dogs%2C+Eurasier+vom+Bahnhof-Zoo%2C+Schweizer-Eurasier%2C+Eurasier%2FSchweiz%2C+Eurasier-Hunde%2CEurasier-Z%C3%BCchter%2C+Eurasier+ein+Hund+wie+kein+anderer%2C+Bahnhof-Zoo-Eurasier%2C+Eurasier-Aaron+des+L%C3%A9gendes+de+Retz';
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();
};
