/* [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','38501',jdecode('Deutsch'),jdecode(''),'/38501.html','true',[],'',''],
	['PAGE','74301',jdecode('Projekt%3A+Prototyp'),jdecode(''),'/74301/index.html','true',[ 
		['PAGE','76101',jdecode('Test+im+April+2010'),jdecode(''),'/74301/76101.html','true',[],'',''],
		['PAGE','66901',jdecode('DragonFly360+live%21'),jdecode(''),'/74301/66901.html','true',[],'',''],
		['PAGE','401',jdecode('Was+ist...%3F'),jdecode(''),'/74301/401.html','false',[],'',''],
		['PAGE','494',jdecode('Weltpremiere%21'),jdecode(''),'/74301/494.html','true',[],'',''],
		['PAGE','18701',jdecode('Ergonomie+pur%21'),jdecode(''),'/74301/18701.html','true',[],'',''],
		['PAGE','452',jdecode('Seine+Besonderheiten%21'),jdecode(''),'/74301/452.html','true',[],'',''],
		['PAGE','8401',jdecode('Plus+f%C3%BCr+Liftbetreiber%21'),jdecode(''),'/74301/8401.html','true',[],'',''],
		['PAGE','473',jdecode('Warum+B%C3%BCgellifte%3F'),jdecode(''),'/74301/473.html','true',[],'',''],
		['PAGE','515',jdecode('Historie+%26+Zukunft...%21'),jdecode(''),'/74301/515.html','true',[],'',''],
		['PAGE','536',jdecode('Interesse+geweckt%3F'),jdecode(''),'/74301/536.html','true',[],'','']
	],'',''],
	['PAGE','38522',jdecode('English'),jdecode(''),'/38522/index.html','true',[ 
		['PAGE','74322',jdecode('Project%3A+Prototyp'),jdecode(''),'/38522/74322.html','true',[],'',''],
		['PAGE','66952',jdecode('DragonFly360+live%21'),jdecode(''),'/38522/66952.html','true',[],'',''],
		['PAGE','41701',jdecode('What+is...%21'),jdecode(''),'/38522/41701.html','false',[],'',''],
		['PAGE','41722',jdecode('World+Premiere%21'),jdecode(''),'/38522/41722.html','true',[],'',''],
		['PAGE','41743',jdecode('Pure+Ergonomics%21'),jdecode(''),'/38522/41743.html','true',[],'',''],
		['PAGE','41764',jdecode('His+Features%21'),jdecode(''),'/38522/41764.html','true',[],'',''],
		['PAGE','41785',jdecode('Must+for+Ski-Areas%21'),jdecode(''),'/38522/41785.html','true',[],'',''],
		['PAGE','41806',jdecode('Why+T-Bar-Lifts%3F'),jdecode(''),'/38522/41806.html','true',[],'',''],
		['PAGE','41827',jdecode('History+%26+Future...%21'),jdecode(''),'/38522/41827.html','true',[],'',''],
		['PAGE','41848',jdecode('Interest+aroused%3F'),jdecode(''),'/38522/41848.html','true',[],'','']
	],'',''],
	['PAGE','49901',jdecode('Pictures'),jdecode(''),'/49901.html','true',[],'',''],
	['PAGE','63401',jdecode('Contact+us'),jdecode(''),'/63401/index.html','true',[ 
		['PAGE','48401',jdecode('Impressum'),jdecode(''),'/63401/48401.html','true',[],'','']
	],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='EBEAEA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='75';
theSitetree.graphicsetId='88';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='F5F5F5';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'EBEAEA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'75',
				graphicsetId: 	'88',
				contentColor: 	'000066',
				contentBGColor: 'F5F5F5',
				a_color: 		'EBEAEA',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38501',
internalId:  '',
customField: '20080316-161534'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '74301',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-70a5ef77ff10c810288f5fd19b57fe28']={
webappId:    '7060',
documentId:  '76101',
internalId:  '70a5ef77ff10c810288f5fd19b57fe28',
customField: 'language:de;country:CH;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '74301',
internalId:  '1501',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-325']={
webappId:    '7008',
documentId:  '63401',
internalId:  '325',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-ed476beeb82202f8e970fd88e101bd1e']={
webappId:    '7060',
documentId:  '49901',
internalId:  'ed476beeb82202f8e970fd88e101bd1e',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66901',
internalId:  '',
customField: '20091213-162623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110109-180627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090331-175422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20090130-151723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110109-182539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20110109-182839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090130-150829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090130-142627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20110109-182925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38522',
internalId:  '',
customField: '20080331-204330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66952',
internalId:  '',
customField: '20091213-162537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41701',
internalId:  '',
customField: '20090331-175328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41722',
internalId:  '',
customField: '20090331-174444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41743',
internalId:  '',
customField: '20090130-151710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41764',
internalId:  '',
customField: '20110109-183436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41785',
internalId:  '',
customField: '20110109-183507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41806',
internalId:  '',
customField: '20090130-143335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41827',
internalId:  '',
customField: '20090130-142728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41848',
internalId:  '',
customField: '20090130-151326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20080331-213227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20090130-150622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20080401-223131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74301',
internalId:  '',
customField: '20110108-175351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74322',
internalId:  '',
customField: '20091213-171735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76101',
internalId:  '',
customField: '20100408-234446'
};
webappMappings['1501']=webappMappings['1501-15311668']={
webappId:    '1501',
documentId:  '74301',
internalId:  '15311668',
customField: '1501'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0IN3C9Q';
var companyName   = 'DragonFly360';
var htmlTitle	  = 'DragonFly360';
var metaKeywords  = 'Schleppliftb%C3%BCgel%2C+Schlepplift%2C+DragonFly%2C+T-Bar%2C+Skifahren%2C+Skifahrer%2C++Snowboarder%2C++Snowboarden%2C+Liftfahren%2C++Liftanlage%2C++Liftanlagen%2C+T-B%C3%BCgel%2C++Revolution%2C++Skisport%2C+Skilift%2C+Schlepplift-B%C3%BCgel%2C+Komfort%2C+drehbar%2C+drehbares+St%C3%BCtzelement%2C+Sessellift%2C+Patent%2C+Dragonfly360%2C+dragonfly+360%2C+Schlepplift-B%C3%BCgel%2C+B%C3%BCgellift%2C+neue+Generation%2C+';
var metaContents  = 'Der+DragonFly+360+wird+bei+Skifahrern+genauso+angewendet+wie+der+konventionelle+T-B%C3%BCgel%2C++DragonFly360+-+THE+NEW+WAY+UP%21+Endlich%3A+Neues+Patent+f%C3%BCr+die+Revolution+des+Schlepplifts.+Haben+Sie+Interesse+an+diesem+Patent%3F%2C+++Lassen+Sie+sich+von+der+neuesten+technischen+Erungenschaft+begeistern.++Erkundigen+Sie+sich+nach+den+M%C3%B6glichkeiten+zu+diesem+topmodernen+europ%C3%A4ischen+Patent+eines+revolution%C3%A4ren+Komfort-Schlepplifts%21++++Der+DragonFly+360+ist+angemeldet+unter+dem+Europ%C3%A4ischen+Patent+++No.+10+2006+008+256.7.+++Der+erste+von+Robert+Winterhalde+patentierte+Schlepplift+geht+am+14.+Februar+1908+in+Schollach+im+Schwarzwald+%28D%29+in+Betrieb.+Nach+dem+Abbruch+der+Anlage+im+Jahre+1914%2C+zu+R%C3%BCstungszwecken+wie+es+hei%C3%9Ft%2C+ger%C3%A4t+dieser+Skilift+in+Vergessenheit.+++360%C2%B0+drehbares+St%C3%BCtzelement+f%C3%BCr+optimalen+Komfort';
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();
};

