/* [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','301',jdecode('Home'),jdecode(''), jdecode('%2F301.html'), 'true',[],'',''],
	['PAGE','352',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F352%2Findex.html'), 'true',[ 
		['PAGE','373',jdecode('%C3%BCber+Gl%C3%BCckspfoten'),jdecode(''), jdecode('%2F352%2F373.html'), 'true',[],'','']
	],'',''],
	['PAGE','130201',jdecode('Rudel+-+Tagebuch+2011'),jdecode(''), jdecode('%2F130201.html'), 'true',[],'',''],
	['PAGE','130222',jdecode('Bolonka+Story%26%23x27%3Bs+2011'),jdecode(''), jdecode('%2F130222.html'), 'true',[],'',''],
	['PAGE','499',jdecode('Bolonka+Zwetna+Zucht'),jdecode(''), jdecode('%2F499%2Findex.html'), 'true',[ 
		['PAGE','149201',jdecode('B+-+Wurf+2011'),jdecode(''), jdecode('%2F499%2F149201.html'), 'true',[],'',''],
		['PAGE','121001',jdecode('Planung+B-Wurf+2011'),jdecode(''), jdecode('%2F499%2F121001.html'), 'true',[],'',''],
		['PAGE','541',jdecode('A+-+Wurf+2010'),jdecode(''), jdecode('%2F499%2F541.html'), 'true',[],'',''],
		['PAGE','27901',jdecode('Planung+A-Wurf+2010'),jdecode(''), jdecode('%2F499%2F27901.html'), 'true',[],'',''],
		['PAGE','88601',jdecode('Rasse+und+Herkunft'),jdecode(''), jdecode('%2F499%2F88601.html'), 'true',[],'','']
	],'',''],
	['PAGE','48701',jdecode('Salon+zur+Gl%C3%BCckspfote'),jdecode(''), jdecode('%2F48701%2Findex.html'), 'true',[ 
		['PAGE','436',jdecode('Gl%C3%BCckspfoten-Kunden'),jdecode(''), jdecode('%2F48701%2F436.html'), 'true',[],'',''],
		['PAGE','102101',jdecode('Grooming+Bolonka'),jdecode(''), jdecode('%2F48701%2F102101.html'), 'true',[],'',''],
		['PAGE','102122',jdecode('Grooming+Lagotto'),jdecode(''), jdecode('%2F48701%2F102122.html'), 'true',[],'',''],
		['PAGE','85401',jdecode('Grooming+Barbet'),jdecode(''), jdecode('%2F48701%2F85401.html'), 'true',[],'','']
	],'',''],
	['PAGE','478',jdecode('Gl%C3%BCckspfoten+Kreativ'),jdecode(''), jdecode('%2F478%2Findex.html'), 'true',[ 
		['PAGE','18801',jdecode('Hund+%26+Foto'),jdecode(''), jdecode('%2F478%2F18801.html'), 'true',[],'',''],
		['PAGE','18822',jdecode('Hund+%26+Kreativ'),jdecode(''), jdecode('%2F478%2F18822.html'), 'true',[],'',''],
		['PAGE','125201',jdecode('Hund+%26+Mensch'),jdecode(''), jdecode('%2F478%2F125201.html'), 'true',[],'','']
	],'',''],
	['PAGE','130243',jdecode('ARCHIV'),jdecode(''), jdecode('%2F130243%2Findex.html'), 'true',[ 
		['PAGE','520',jdecode('AMY%26%23x27%3Bs+Baby-Jahre+2008'),jdecode(''), jdecode('%2F130243%2F520.html'), 'true',[],'',''],
		['PAGE','45201',jdecode('AMY%26%23x27%3Bs+Jugend-Jahre+2009'),jdecode(''), jdecode('%2F130243%2F45201.html'), 'true',[],'',''],
		['PAGE','121501',jdecode('Bolonka+Story%26%23x27%3Bs+2010'),jdecode(''), jdecode('%2F130243%2F121501.html'), 'true',[],'',''],
		['PAGE','79601',jdecode('Rudel+-+Tagebuch+2010'),jdecode(''), jdecode('%2F130243%2F79601.html'), 'true',[],'','']
	],'',''],
	['PAGE','132201',jdecode('Trends+%26+Tipps+...'),jdecode(''), jdecode('%2F132201.html'), 'true',[],'',''],
	['PAGE','32601',jdecode('Links+'),jdecode(''), jdecode('%2F32601.html'), 'true',[],'',''],
	['PAGE','583',jdecode('Kontakt'),jdecode(''), jdecode('%2F583%2Findex.html'), 'true',[ 
		['PAGE','5001',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F583%2F5001.html'), 'true',[],'','']
	],'',''],
	['PAGE','92501',jdecode('Gl%C3%BCcksfoten-Buch'),jdecode(''), jdecode('%2F92501.html'), 'true',[],'',''],
	['PAGE','135701',jdecode('Regenbogenbr%C3%BCcke'),jdecode(''), jdecode('%2F135701.html'), 'true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Speed';
theSitetree.paletteFamily='3F751D';
theSitetree.keyvisualId='2342';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='373';
theSitetree.graphicsetId='425';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3F751D';
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: 			'Speed',
				paletteFamily: 	'3F751D',
				keyvisualId: 	'2342',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'373',
				graphicsetId: 	'425',
				contentColor: 	'FFFFFF',
				contentBGColor: '3F751D',
				a_color: 		'3F751D',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '5001',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1501']=webappMappings['1501-26779801']={
webappId:    '1501',
documentId:  '301',
internalId:  '26779801',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20111128-070456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45201',
internalId:  '',
customField: '20091222-071019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20110907-063024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20110331-191335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20101006-134812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125201',
internalId:  '',
customField: '20110619-175737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '478',
internalId:  '',
customField: '20110619-174859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20101116-133552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18822',
internalId:  '',
customField: '20110619-190150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20110422-105255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520',
internalId:  '',
customField: '20090112-070604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '541',
internalId:  '',
customField: '20110923-145557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20100722-112623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20100902-140447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '583',
internalId:  '',
customField: '20080922-124938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20080924-070623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20110422-105531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79601',
internalId:  '',
customField: '20110111-165952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85401',
internalId:  '',
customField: '20100512-062819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88601',
internalId:  '',
customField: '20100622-072930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92501',
internalId:  '',
customField: '20100708-132209'
};
webappMappings['1002']=webappMappings['1002-92501abw1x0inejlc']={
webappId:    '1002',
documentId:  '92501',
internalId:  '92501abw1x0inejlc',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102101',
internalId:  '',
customField: '20101006-131348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102122',
internalId:  '',
customField: '20101006-134009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149201',
internalId:  '',
customField: '20111128-073732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121001',
internalId:  '',
customField: '20110920-132219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121501',
internalId:  '',
customField: '20110111-173103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130222',
internalId:  '',
customField: '20111105-084646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130201',
internalId:  '',
customField: '20111028-071851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130243',
internalId:  '',
customField: '20110111-180006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132201',
internalId:  '',
customField: '20110121-185259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135701',
internalId:  '',
customField: '20110331-190620'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW1X0INEJLC';
var companyName   = 'Gl%C3%BCckspfoten';
var htmlTitle	  = '';
var metaKeywords  = 'Welpen+Bolonka+Bolonka+hundesalon+kurse+gl%C3%BCckspfote+glueckspfote+tierfotografin+++G%C3%BCckspfoten+Glueckspfoten+Amy+zur+Gl%C3%BCckspfote';
var metaContents  = 'Bolonka+Welpen+Bolonka+hundesalon+kurse+gl%C3%BCckspfote+glueckspfote+tierfotografin+++G%C3%BCckspfoten+Glueckspfoten+Amy+zur+Gl%C3%BCckspfote+';
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();
};

