/* [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','13101',jdecode('Home'),jdecode(''), jdecode('%2F13101.html'), 'true',[],'',''],
	['PAGE','112115',jdecode('Nationalliga+A'),jdecode(''), jdecode('%2F112115.html'), 'false',[],'',''],
	['PAGE','112136',jdecode('Nationalliga+B'),jdecode(''), jdecode('%2F112136.html'), 'false',[],'',''],
	['PAGE','112157',jdecode('Cup'),jdecode(''), jdecode('%2F112157.html'), 'false',[],'',''],
	['PAGE','13236',jdecode('WM+2011'),jdecode(''), jdecode('%2F13236%2Findex.html'), 'false',[ 
		['PAGE','125715',jdecode('Pilsen-Cup+2011'),jdecode(''), jdecode('%2F13236%2F125715.html'), 'false',[],'',''],
		['PAGE','112178',jdecode('A+WM+11+-+Gruppen'),jdecode(''), jdecode('%2F13236%2F112178.html'), 'false',[],'',''],
		['PAGE','138326',jdecode('D+WM+11+-+Team+Schweiz'),jdecode(''), jdecode('%2F13236%2F138326.html'), 'false',[],'','']
	],'',''],
	['PAGE','16701',jdecode('Background'),jdecode(''), jdecode('%2F16701%2Findex.html'), 'false',[ 
		['PAGE','33901',jdecode('streethockeyfans-TV'),jdecode(''), jdecode('%2F16701%2F33901.html'), 'true',[],'',''],
		['PAGE','16722',jdecode('Interviews'),jdecode(''), jdecode('%2F16701%2F16722.html'), 'true',[],'',''],
		['PAGE','59615',jdecode('Blockwechsel'),jdecode(''), jdecode('%2F16701%2F59615.html'), 'true',[],'',''],
		['PAGE','16743',jdecode('Transfermarkt'),jdecode(''), jdecode('%2F16701%2F16743.html'), 'true',[],'',''],
		['PAGE','16764',jdecode('Testspiele'),jdecode(''), jdecode('%2F16701%2F16764.html'), 'true',[],'','']
	],'',''],
	['PAGE','41501',jdecode('Interaktiv'),jdecode(''), jdecode('%2F41501%2Findex.html'), 'false',[ 
		['PAGE','13278',jdecode('Diskussionsforum'),jdecode(''), jdecode('%2F41501%2F13278.html'), 'true',[],'',''],
		['PAGE','29901',jdecode('Umfrage'),jdecode(''), jdecode('%2F41501%2F29901.html'), 'true',[],'',''],
		['PAGE','41522',jdecode('Shop'),jdecode(''), jdecode('%2F41501%2F41522.html'), 'true',[],'','']
	],'',''],
	['PAGE','13299',jdecode('Impressum'),jdecode(''), jdecode('%2F13299.html'), 'false',[],'',''],
	['PAGE','23801',jdecode('Wir+suchen...'),jdecode(''), jdecode('%2F23801.html'), 'false',[],'',''],
	['PAGE','57978',jdecode('Archiv'),jdecode(''), jdecode('%2F57978%2Findex.html'), 'false',[ 
		['PAGE','13194',jdecode('NLA+08%2F09'),jdecode(''), jdecode('%2F57978%2F13194.html'), 'false',[],'',''],
		['PAGE','13215',jdecode('NLB+08%2F09'),jdecode(''), jdecode('%2F57978%2F13215.html'), 'false',[],'',''],
		['PAGE','25201',jdecode('Cup+08%2F09'),jdecode(''), jdecode('%2F57978%2F25201.html'), 'false',[],'',''],
		['PAGE','30101',jdecode('A-WM+2009'),jdecode(''), jdecode('%2F57978%2F30101.html'), 'false',[],'',''],
		['PAGE','36622',jdecode('Damen-WM+2009'),jdecode(''), jdecode('%2F57978%2F36622.html'), 'false',[],'',''],
		['PAGE','36601',jdecode('U18-EM+2009'),jdecode(''), jdecode('%2F57978%2F36601.html'), 'false',[],'',''],
		['PAGE','100615',jdecode('NLA+09%2F10'),jdecode(''), jdecode('%2F57978%2F100615.html'), 'false',[],'',''],
		['PAGE','99815',jdecode('NLB+09%2F10'),jdecode(''), jdecode('%2F57978%2F99815.html'), 'false',[],'',''],
		['PAGE','57957',jdecode('Cup+09%2F10'),jdecode(''), jdecode('%2F57978%2F57957.html'), 'false',[],'',''],
		['PAGE','142226',jdecode('A+WM+11+-+Team+Portugal'),jdecode(''), jdecode('%2F57978%2F142226.html'), 'false',[],'',''],
		['PAGE','142247',jdecode('A+WM+11+-+Team+Tschechien'),jdecode(''), jdecode('%2F57978%2F142247.html'), 'false',[],'',''],
		['PAGE','142268',jdecode('A+WM+11+-+Team+Germany'),jdecode(''), jdecode('%2F57978%2F142268.html'), 'false',[],'',''],
		['PAGE','142289',jdecode('A+WM+11+-+Team+Austria'),jdecode(''), jdecode('%2F57978%2F142289.html'), 'false',[],'',''],
		['PAGE','142310',jdecode('A+WM+11+-+Team+Greece'),jdecode(''), jdecode('%2F57978%2F142310.html'), 'false',[],'',''],
		['PAGE','142331',jdecode('A+WM+11+-+Team+Slowakei'),jdecode(''), jdecode('%2F57978%2F142331.html'), 'false',[],'',''],
		['PAGE','142352',jdecode('A+WM+11+-+Team+USA'),jdecode(''), jdecode('%2F57978%2F142352.html'), 'false',[],'',''],
		['PAGE','142373',jdecode('A+WM+11+-+Team+Finnland'),jdecode(''), jdecode('%2F57978%2F142373.html'), 'false',[],'',''],
		['PAGE','142394',jdecode('A+WM+11+-+Team+Canada'),jdecode(''), jdecode('%2F57978%2F142394.html'), 'false',[],'',''],
		['PAGE','122736',jdecode('+A+WM+11+-+Team+Schweiz'),jdecode(''), jdecode('%2F57978%2F122736.html'), 'false',[],'','']
	],'',''],
	['PAGE','36643',jdecode('A-Nati'),jdecode(''), jdecode('%2F36643.html'), 'false',[],'',''],
	['PAGE','91715',jdecode('Pilsen-Cup+2010'),jdecode(''), jdecode('%2F91715.html'), 'false',[],'',''],
	['PAGE','105415',jdecode('WJC+Villach+2010'),jdecode(''), jdecode('%2F105415.html'), 'false',[],'',''],
	['PAGE','36664',jdecode('U18-Nati'),jdecode(''), jdecode('%2F36664.html'), 'false',[],'',''],
	['PAGE','36685',jdecode('Damen-Nati'),jdecode(''), jdecode('%2F36685.html'), 'false',[],'',''],
	['PAGE','47315',jdecode('WM+2009'),jdecode(''), jdecode('%2F47315.html'), 'false',[],'',''],
	['PAGE','87815',jdecode('U20Canada'),jdecode(''), jdecode('%2F87815.html'), 'false',[],'',''],
	['PAGE','87836',jdecode('U20Tschechien'),jdecode(''), jdecode('%2F87836.html'), 'false',[],'',''],
	['PAGE','160126',jdecode('nlaqual1112'),jdecode(''), jdecode('%2F160126.html'), 'false',[],'',''],
	['PAGE','160147',jdecode('nlbqual1112'),jdecode(''), jdecode('%2F160147.html'), 'false',[],'',''],
	['PAGE','57915',jdecode('nlaqual0910'),jdecode(''), jdecode('%2F57915.html'), 'false',[],'',''],
	['PAGE','57936',jdecode('nlbqual0910'),jdecode(''), jdecode('%2F57936.html'), 'false',[],'',''],
	['PAGE','97315',jdecode('nlapo0910'),jdecode(''), jdecode('%2F97315.html'), 'false',[],'',''],
	['PAGE','99615',jdecode('nlbpo0910'),jdecode(''), jdecode('%2F99615.html'), 'false',[],'',''],
	['PAGE','115515',jdecode('nlaqual1011'),jdecode(''), jdecode('%2F115515.html'), 'false',[],'',''],
	['PAGE','115536',jdecode('nlbqual1011'),jdecode(''), jdecode('%2F115536.html'), 'false',[],'',''],
	['PAGE','131526',jdecode('nlbpo1011'),jdecode(''), jdecode('%2F131526.html'), 'false',[],'',''],
	['PAGE','98215',jdecode('nla'),jdecode(''), jdecode('%2F98215.html'), 'false',[],'',''],
	['PAGE','107715',jdecode('U20Slowakei'),jdecode(''), jdecode('%2F107715.html'), 'false',[],'',''],
	['PAGE','133626',jdecode('nlapo1011'),jdecode(''), jdecode('%2F133626.html'), 'false',[],'',''],
	['PAGE','158626',jdecode('World+Cup+2011'),jdecode(''), jdecode('%2F158626.html'), 'false',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='175';
theSitetree.graphicsetId='207';
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: 			'Orbit',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'175',
				graphicsetId: 	'207',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20111024-164342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87815',
internalId:  '',
customField: '20100608-194012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87836',
internalId:  '',
customField: '20100608-194042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20090324-234140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13194',
internalId:  '',
customField: '20090510-212934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13215',
internalId:  '',
customField: '20090510-213113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13236',
internalId:  '',
customField: '20110620-112546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13278',
internalId:  '',
customField: '20090728-071324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13299',
internalId:  '',
customField: '20100506-203530'
};
webappMappings['7050']=webappMappings['7050-563']={
webappId:    '7050',
documentId:  '16722',
internalId:  '563',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16722',
internalId:  '',
customField: '20090314-101729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16743',
internalId:  '',
customField: '20110828-175706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16764',
internalId:  '',
customField: '20110918-223029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090505-214817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20090424-090925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91715',
internalId:  '',
customField: '20100207-232309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97315',
internalId:  '',
customField: '20100524-103745'
};
webappMappings['7005']=webappMappings['7005-310']={
webappId:    '7005',
documentId:  '29901',
internalId:  '310',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20100504-090915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20090621-072632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20100801-102751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20090607-174003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36622',
internalId:  '',
customField: '20090618-234652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36643',
internalId:  '',
customField: '20090611-160113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36664',
internalId:  '',
customField: '20090605-190057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36685',
internalId:  '',
customField: '20090521-091740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20090528-094034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41522',
internalId:  '',
customField: '20090528-205941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47315',
internalId:  '',
customField: '20090614-162251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57915',
internalId:  '',
customField: '20100307-200107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57936',
internalId:  '',
customField: '20100314-171838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57957',
internalId:  '',
customField: '20100314-171322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57978',
internalId:  '',
customField: '20100801-085920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59615',
internalId:  '',
customField: '20100429-140455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98215',
internalId:  '',
customField: '20100219-102853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99615',
internalId:  '',
customField: '20100502-195006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99815',
internalId:  '',
customField: '20100425-224255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100615',
internalId:  '',
customField: '20100307-203000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105415',
internalId:  '',
customField: '20100626-165249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107715',
internalId:  '',
customField: '20100608-200217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112115',
internalId:  '',
customField: '20110929-184615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112136',
internalId:  '',
customField: '20111013-062732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112157',
internalId:  '',
customField: '20110314-160053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112178',
internalId:  '',
customField: '20110629-090307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115515',
internalId:  '',
customField: '20110313-174610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115536',
internalId:  '',
customField: '20110312-174225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122736',
internalId:  '',
customField: '20110620-111717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138326',
internalId:  '',
customField: '20110414-082546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125715',
internalId:  '',
customField: '20110131-221752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131526',
internalId:  '',
customField: '20110505-074010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133626',
internalId:  '',
customField: '20110518-230522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142394',
internalId:  '',
customField: '20110620-112111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142331',
internalId:  '',
customField: '20110620-113459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142352',
internalId:  '',
customField: '20110521-124505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142226',
internalId:  '',
customField: '20110527-081034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142289',
internalId:  '',
customField: '20110521-124814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142310',
internalId:  '',
customField: '20110527-075429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142373',
internalId:  '',
customField: '20110609-073323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142268',
internalId:  '',
customField: '20110526-172553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142247',
internalId:  '',
customField: '20110620-112516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158626',
internalId:  '',
customField: '20110828-173528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160126',
internalId:  '',
customField: '20111013-062654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160147',
internalId:  '',
customField: '20111013-063114'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INERT9';
var companyName   = '';
var htmlTitle	  = 'www.streethockeyfans.ch';
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();
};

