/* [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','701',jdecode('Home'),jdecode(''), jdecode('%2F701.html'), 'true',[],'',''],
	['PAGE','836',jdecode('News'),jdecode(''), jdecode('%2F836.html'), 'true',[],'',''],
	['PAGE','773',jdecode('ISEO+Medien+%2F+Raumsteuerung'),jdecode(''), jdecode('%2F773%2Findex.html'), 'true',[ 
		['PAGE','10801',jdecode('Iseo+Designer'),jdecode(''), jdecode('%2F773%2F10801.html'), 'true',[],'',''],
		['PAGE','10822',jdecode('Steuerbare+Ger%C3%A4te'),jdecode(''), jdecode('%2F773%2F10822.html'), 'true',[],'',''],
		['PAGE','10843',jdecode('Features+und+Anwendungen+'),jdecode(''), jdecode('%2F773%2F10843.html'), 'true',[],'',''],
		['PAGE','10864',jdecode('Konferenzraum-+und+Mediensteuerung'),jdecode(''), jdecode('%2F773%2F10864.html'), 'true',[],'',''],
		['PAGE','15001',jdecode('Digital+Door+Sign+%2F+Doorplayer'),jdecode(''), jdecode('%2F773%2F15001.html'), 'true',[],'',''],
		['PAGE','15022',jdecode('Digital+Signage'),jdecode(''), jdecode('%2F773%2F15022.html'), 'true',[],'',''],
		['PAGE','16301',jdecode('Residential+Control'),jdecode(''), jdecode('%2F773%2F16301.html'), 'true',[],'',''],
		['PAGE','19101',jdecode('Iseo+Touch+M84'),jdecode(''), jdecode('%2F773%2F19101.html'), 'true',[],'',''],
		['PAGE','19122',jdecode('Iseo+Touch+M104'),jdecode(''), jdecode('%2F773%2F19122.html'), 'true',[],'',''],
		['PAGE','20501',jdecode('PDAs%2C+SmartPhones+'),jdecode(''), jdecode('%2F773%2F20501.html'), 'true',[],'',''],
		['PAGE','21001',jdecode('SC+LAN+Module'),jdecode(''), jdecode('%2F773%2F21001.html'), 'true',[],'',''],
		['PAGE','21022',jdecode('KNX%2FEIB+Gateway%2FRouter'),jdecode(''), jdecode('%2F773%2F21022.html'), 'true',[],'',''],
		['PAGE','74401',jdecode('Download'),jdecode(''), jdecode('%2F773%2F74401.html'), 'true',[],'','']
	],'',''],
	['PAGE','43401',jdecode('Wings+Platinum+4'),jdecode(''), jdecode('%2F43401%2Findex.html'), 'true',[ 
		['PAGE','82501',jdecode('Fuktionen+und+Features'),jdecode(''), jdecode('%2F43401%2F82501.html'), 'true',[],'',''],
		['PAGE','83601',jdecode('AV+Prompter'),jdecode(''), jdecode('%2F43401%2F83601.html'), 'true',[],'',''],
		['PAGE','72201',jdecode('Download'),jdecode(''), jdecode('%2F43401%2F72201.html'), 'true',[],'',''],
		['ITEM','83501',jdecode('Wings+Platinum+4+Brosch%C3%BCre+'),jdecode(''), jdecode('http%3A%2F%2Fwww.hdav.org%2Fvfms%2Fdownload.php%3Fmd5name%3Dac806c3b3b421626c87bc9f0dbd286da'), 'true',[],'','_blank'],
		['ITEM','83622',jdecode('Wings+Handbuch'),jdecode(''), jdecode('http%3A%2F%2Fwww.hdav.org%2Ffiles%2FManuals%2F2009-12%2520WP4%2520Manual%25204.1%2520CMYK%2520print_Dieter%2520Kern.pdf'), 'true',[],'','_blank'],
		['ITEM','84201',jdecode('AV+Stumpfl+Forum'),jdecode(''), jdecode('http%3A%2F%2Fwww.avstumpfl.com%2Fforum%2Findex.php'), 'true',[],'','_blank'],
		['PAGE','84301',jdecode('Lizenzen+und+Updates'),jdecode(''), jdecode('%2F43401%2F84301.html'), 'true',[],'','']
	],'',''],
	['PAGE','84901',jdecode('WINGS+PLATINUM+4+Multidisplay+und+Show+Control'),jdecode(''), jdecode('%2F84901.html'), 'true',[ 
		['ITEM','85101',jdecode('Multidisplay%2FVIOSO+Brosch%C3%BCre+'),jdecode(''), jdecode('http%3A%2F%2Fwww.avstumpfl.com%2Fvfms%2Fdownload.php%3Fmd5name%3D28ad9bd5af347ac0e0907f91dd0fbf66'), 'true',[],'','_blank']
	],'',''],
	['PAGE','48101',jdecode('WingsVIOSO'),jdecode(''), jdecode('%2F48101.html'), 'true',[],'',''],
	['PAGE','5901',jdecode('HD+Video+Player'),jdecode(''), jdecode('%2F5901%2Findex.html'), 'true',[ 
		['PAGE','6722',jdecode('HD+Video+Player'),jdecode(''), jdecode('%2F5901%2F6722.html'), 'true',[],'',''],
		['PAGE','6701',jdecode('SC+Video+Player'),jdecode(''), jdecode('%2F5901%2F6701.html'), 'true',[],'','']
	],'',''],
	['PAGE','5922',jdecode('Show+Controller'),jdecode(''), jdecode('%2F5922%2Findex.html'), 'true',[ 
		['PAGE','30101',jdecode('SC+Master+6%2F16'),jdecode(''), jdecode('%2F5922%2F30101.html'), 'true',[],'',''],
		['PAGE','30122',jdecode('SC+Master+2M%2F4M'),jdecode(''), jdecode('%2F5922%2F30122.html'), 'true',[],'',''],
		['PAGE','30143',jdecode('SC+Master+Lite%2FLite+LS'),jdecode(''), jdecode('%2F5922%2F30143.html'), 'true',[],'',''],
		['PAGE','31101',jdecode('SC+Net'),jdecode(''), jdecode('%2F5922%2F31101.html'), 'true',[],'',''],
		['PAGE','31122',jdecode('Zubeh%C3%B6r'),jdecode(''), jdecode('%2F5922%2F31122.html'), 'true',[],'','']
	],'',''],
	['PAGE','815',jdecode('Leinw%C3%A4nde'),jdecode(''), jdecode('%2F815%2Findex.html'), 'true',[ 
		['PAGE','22101',jdecode('System+Monoblox+32%2F64+'),jdecode(''), jdecode('%2F815%2F22101.html'), 'true',[],'',''],
		['PAGE','24401',jdecode('System+VARIO+32%2F64+'),jdecode(''), jdecode('%2F815%2F24401.html'), 'true',[],'',''],
		['PAGE','22122',jdecode('System+INLINE'),jdecode(''), jdecode('%2F815%2F22122.html'), 'true',[],'',''],
		['PAGE','37001',jdecode('System+MAGNUM'),jdecode(''), jdecode('%2F815%2F37001.html'), 'true',[],'',''],
		['PAGE','37801',jdecode('DECOFRAME'),jdecode(''), jdecode('%2F815%2F37801.html'), 'true',[],'',''],
		['PAGE','92301',jdecode('Fullwhite'),jdecode(''), jdecode('%2F815%2F92301.html'), 'true',[],'','']
	],'',''],
	['PAGE','857',jdecode('Kontakt'),jdecode(''), jdecode('%2F857%2Findex.html'), 'true',[ 
		['PAGE','8901',jdecode('Kontakt+Formular'),jdecode(''), jdecode('%2F857%2F8901.html'), 'true',[],'','']
	],'',''],
	['PAGE','75801',jdecode('Roadshow+Anmeldung++2011'),jdecode(''), jdecode('%2F75801.html'), 'false',[],'',''],
	['PAGE','752',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F752.html'), 'true',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11154';
theSitetree.keyvisualName='kv_11154.jpg';
theSitetree.fontsetId='32063';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'genotec',
  product: 'WSCSYSSSSLYTCP0Y'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11154',
				keyvisualName: 	'kv_11154.jpg',
				fontsetId: 		'32063',
				graphicsetId: 	'13879',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20110831-141042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20091012-130921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20111031-113800'
};
webappMappings['7008']=webappMappings['7008-1167']={
webappId:    '7008',
documentId:  '8901',
internalId:  '1167',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20091012-115542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20101208-135901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20091012-130024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20110715-104658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20091012-130057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20110728-113215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20120116-102807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20091012-130834'
};
webappMappings['7008']=webappMappings['7008-1168']={
webappId:    '7008',
documentId:  '43401',
internalId:  '1168',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20110715-110736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20091012-115721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10843',
internalId:  '',
customField: '20091012-115844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10864',
internalId:  '',
customField: '20091012-115932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20091012-120024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20091012-120052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20091012-120122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20091012-120206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19122',
internalId:  '',
customField: '20091012-120426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84901',
internalId:  '',
customField: '20110113-160146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20091012-125636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20091012-125716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21022',
internalId:  '',
customField: '20091012-125735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20091012-130532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20091012-130641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22122',
internalId:  '',
customField: '20091012-130731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20091022-110924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20091022-110924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31122',
internalId:  '',
customField: '20091012-130428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30122',
internalId:  '',
customField: '20091022-110924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30143',
internalId:  '',
customField: '20091012-130247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20091012-130747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20110728-104057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72201',
internalId:  '',
customField: '20120116-102009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43401',
internalId:  '',
customField: '20111222-111708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82501',
internalId:  '',
customField: '20110113-151405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20100301-101039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74401',
internalId:  '',
customField: '20100705-155502'
};
webappMappings['7008']=webappMappings['7008-1805']={
webappId:    '7008',
documentId:  '75801',
internalId:  '1805',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75801',
internalId:  '',
customField: '20111031-110935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83601',
internalId:  '',
customField: '20110113-152944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84301',
internalId:  '',
customField: '20110113-155058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92301',
internalId:  '',
customField: '20110728-111944'
};
var webAppHostname = 'cgi.wsc.genotec.ch:80';
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010IN275L';
var companyName   = 'Wings+Platinum%2C++Mediensteuerung%2C+Raumsteuerung%2C+Digital+Signage+';
var htmlTitle	  = 'Stumpfl.ch++Softedge';
var metaKeywords  = 'Raumsteuerung+Leinw%C3%A4nde+Projektionsw%C3%A4nde+Heimkino+Beamer+videoleinwand+Kino+zu+Hause+Stumpfl+Wings+Platinum+Dia+digitalshow+Digitale+AV-Show+Exe-Pr%C3%A4sentation++Signage+Digitale+Dia-Show+Iseo+Raumsteuerung+Video+Leitsysteme++Personen++Leitsysteme+Digital+Science+Show+++Mediensteuerung+und+Digital+Signage+Software++Show+Control++Wings+Platinum++iseo+Konferenzraum-+und+Mediensteuerung+Digital+Door+Sign+%2F+Doorplayer+Digital+Signage+Residential+Control+++Home+Control+KNX%2FEIB+Gateway%2FRouter+++iseo';
var metaContents  = 'multi+display+digital+sinage+media+control+show+control+bilding+automation+Panorama++360+multidisplay+Projektionsw%C3%A4nde+digital+sinage+Stumpfl++leinw%C3%A4nde+Raumsteuerung+Geb%C3%A4ude+Steuerung++Wings+Platinum+4+++Wings+Platinum+3+WP4+WP3+Dia++Dia+Show++Exe+Presentazion';
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();
};

