/* [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','115420',jdecode('HOME'),jdecode(''),'/115420.html','true',[],'',''],
	['PAGE','127543',jdecode('SUCHEN'),jdecode(''),'/127543.html','true',[],'',''],
	['PAGE','117508',jdecode('Surf-Reise+buchen'),jdecode(''),'/117508.html','true',[],'',''],
	['PAGE','36911',jdecode('Events%2FNews'),jdecode(''),'/36911.html','true',[],'',''],
	['PAGE','36642',jdecode('+Team'),jdecode(''),'/36642.html','true',[],'',''],
	['PAGE','100632',jdecode('Gutscheine'),jdecode(''),'/100632.html','true',[],'',''],
	['PAGE','116326',jdecode('Ski+%26+Snb-Service'),jdecode(''),'/116326.html','true',[],'',''],
	['PAGE','4697',jdecode('Windsurfen'),jdecode(''),'/4697/index.html','true',[ 
		['PAGE','48003',jdecode('Windsurfsegel'),jdecode(''),'/4697/48003.html','true',[],'',''],
		['PAGE','50303',jdecode('Masten+%26+Gabeln'),jdecode(''),'/4697/50303.html','true',[],'',''],
		['PAGE','73433',jdecode('Equipment'),jdecode(''),'/4697/73433.html','true',[],'',''],
		['PAGE','73777',jdecode('Neoprenanz%C3%BCge'),jdecode(''),'/4697/73777.html','true',[],'',''],
		['PAGE','76023',jdecode('Kauftipps+'),jdecode(''),'/4697/76023.html','true',[],'',''],
		['PAGE','83523',jdecode('Mieten+Windsurf'),jdecode(''),'/4697/83523.html','true',[],'',''],
		['PAGE','92723',jdecode('Windsurfkurse'),jdecode(''),'/4697/92723.html','true',[],'',''],
		['PAGE','74023',jdecode('Bags'),jdecode(''),'/4697/74023.html','true',[],'',''],
		['PAGE','74923',jdecode('Reparaturen'),jdecode(''),'/4697/74923.html','true',[],'',''],
		['PAGE','86223',jdecode('Surfweekend+CH'),jdecode(''),'/4697/86223.html','true',[],'','']
	],'',''],
	['PAGE','14360',jdecode('Kites+Wasser'),jdecode(''),'/14360/index.html','true',[ 
		['PAGE','117006',jdecode('Kiteboards'),jdecode(''),'/14360/117006.html','true',[],'',''],
		['PAGE','76923',jdecode('Zubeh%C3%B6r+Kitesurf'),jdecode(''),'/14360/76923.html','true',[],'',''],
		['PAGE','116021',jdecode('Kitekurse'),jdecode(''),'/14360/116021.html','true',[],'','']
	],'',''],
	['PAGE','124943',jdecode('Stand+Up+Paddel'),jdecode(''),'/124943.html','true',[],'',''],
	['PAGE','95302',jdecode('Snowkiten'),jdecode(''),'/95302/index.html','true',[ 
		['PAGE','123443',jdecode('Snowkitekurse'),jdecode(''),'/95302/123443.html','true',[],'','']
	],'',''],
	['PAGE','50693',jdecode('Snowboards'),jdecode(''),'/50693/index.html','true',[ 
		['PAGE','115658',jdecode('Bindungen'),jdecode(''),'/50693/115658.html','true',[],'',''],
		['PAGE','115667',jdecode('Boots'),jdecode(''),'/50693/115667.html','true',[],'',''],
		['PAGE','97023',jdecode('Helme'),jdecode(''),'/50693/97023.html','true',[],'',''],
		['PAGE','107280',jdecode('Brillen'),jdecode(''),'/50693/107280.html','true',[],'',''],
		['PAGE','115676',jdecode('Handschuhe'),jdecode(''),'/50693/115676.html','true',[],'',''],
		['PAGE','86277',jdecode('Miete'),jdecode(''),'/50693/86277.html','true',[],'','']
	],'',''],
	['PAGE','96260',jdecode('Wellenreiten'),jdecode(''),'/96260.html','true',[],'',''],
	['PAGE','118719',jdecode('Kayaks'),jdecode(''),'/118719.html','true',[],'',''],
	['PAGE','100605',jdecode('Buggy'),jdecode(''),'/100605.html','true',[],'',''],
	['PAGE','115884',jdecode('Surfers-World'),jdecode(''),'/115884/index.html','true',[ 
		['PAGE','48503',jdecode('News'),jdecode(''),'/115884/48503.html','true',[],'',''],
		['PAGE','7503',jdecode('Wind+%26+Wetter'),jdecode(''),'/115884/7503.html','true',[],'',''],
		['PAGE','12960',jdecode('Webcams'),jdecode(''),'/115884/12960.html','true',[],'',''],
		['PAGE','6403',jdecode('Surfmobile'),jdecode(''),'/115884/6403.html','true',[],'',''],
		['PAGE','10227',jdecode('Spots+%2F+Trips'),jdecode(''),'/115884/10227.html','true',[],'',''],
		['PAGE','41067',jdecode('Bilder+Surftrips'),jdecode(''),'/115884/41067.html','true',[],'',''],
		['PAGE','6430',jdecode('Bilder'),jdecode(''),'/115884/6430.html','true',[],'',''],
		['PAGE','75423',jdecode('Forum'),jdecode(''),'/115884/75423.html','true',[],'',''],
		['PAGE','56810',jdecode('Links'),jdecode(''),'/115884/56810.html','true',[],'','']
	],'',''],
	['PAGE','49114',jdecode('Geschenkideen'),jdecode(''),'/49114.html','true',[],'',''],
	['PAGE','116608',jdecode('Onlineshop'),jdecode(''),'/116608.html','true',[],'',''],
	['PAGE','4559',jdecode('Bestellformular'),jdecode(''),'/4559/index.html','true',[ 
		['PAGE','20699',jdecode('Home+%28Folgeseite%29'),jdecode(''),'/4559/20699.html','false',[],'','']
	],'',''],
	['PAGE','116126',jdecode('G%C3%A4stebuch'),jdecode(''),'/116126/index.html','true',[ 
		['PAGE','116125',jdecode('Eintr%C3%A4ge'),jdecode(''),'/116126/116125.html','false',[],'','']
	],'',''],
	['PAGE','111913',jdecode('Anfahrt'),jdecode(''),'/111913.html','true',[],'',''],
	['PAGE','112773',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/112773.html','true',[],'',''],
	['PAGE','119202',jdecode('Kontakt'),jdecode(''),'/119202.html','true',[],'','']];
var siteelementCount=54;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='9239';
theSitetree.keyvisualName='kv1.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12763';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'660000',
				keyvisualId: 	'9239',
				keyvisualName: 	'kv1.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12763',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '115420',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-12567134']={
webappId:    '1501',
documentId:  '115420',
internalId:  '12567134',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-116126ahopt0in3rtz']={
webappId:    '1002',
documentId:  '116126',
internalId:  '116126ahopt0in3rtz',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-bb05b4a949281f574cda8e1a5a8bd64b']={
webappId:    '7060',
documentId:  '41067',
internalId:  'bb05b4a949281f574cda8e1a5a8bd64b',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76023',
internalId:  '',
customField: '20060223-182134'
};
webappMappings['7008']=webappMappings['7008-14']={
webappId:    '7008',
documentId:  '117508',
internalId:  '14',
customField: 'language:de;country:CH;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '111913',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '115420',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115420',
internalId:  '',
customField: '20100722-113155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117508',
internalId:  '',
customField: '20100722-145514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116608',
internalId:  '',
customField: '20081223-145336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4697',
internalId:  '',
customField: '20100722-154334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48003',
internalId:  '',
customField: '20100722-152702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50303',
internalId:  '',
customField: '20100722-153032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73433',
internalId:  '',
customField: '20100322-115957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73777',
internalId:  '',
customField: '20100722-154832'
};
webappMappings['7008']=webappMappings['7008-13']={
webappId:    '7008',
documentId:  '4559',
internalId:  '13',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83523',
internalId:  '',
customField: '20100722-154514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92723',
internalId:  '',
customField: '20080403-185301'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '112773',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74023',
internalId:  '',
customField: '20070316-175223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74923',
internalId:  '',
customField: '20100722-154909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86223',
internalId:  '',
customField: '20060806-134456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14360',
internalId:  '',
customField: '20100512-061917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117006',
internalId:  '',
customField: '20090212-165316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76923',
internalId:  '',
customField: '20091117-183447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116021',
internalId:  '',
customField: '20091117-182136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118719',
internalId:  '',
customField: '20100722-153808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95302',
internalId:  '',
customField: '20100128-095659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123443',
internalId:  '',
customField: '20100128-194947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124943',
internalId:  '',
customField: '20100722-120644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50693',
internalId:  '',
customField: '20100722-155040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115658',
internalId:  '',
customField: '20100722-155135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115667',
internalId:  '',
customField: '20080614-135359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97023',
internalId:  '',
customField: '20100722-155719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107280',
internalId:  '',
customField: '20100722-155946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115676',
internalId:  '',
customField: '20080614-173516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86277',
internalId:  '',
customField: '20100722-160226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116326',
internalId:  '',
customField: '20100722-152230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96260',
internalId:  '',
customField: '20070316-185350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100605',
internalId:  '',
customField: '20070330-112646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111913',
internalId:  '',
customField: '20080312-195759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112773',
internalId:  '',
customField: '20080104-165654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49114',
internalId:  '',
customField: '20080614-145147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100632',
internalId:  '',
customField: '20100722-151713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115884',
internalId:  '',
customField: '20080614-144900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48503',
internalId:  '',
customField: '20071228-152242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36642',
internalId:  '',
customField: '20100722-152026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36911',
internalId:  '',
customField: '20100722-151357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6403',
internalId:  '',
customField: '20060202-004403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7503',
internalId:  '',
customField: '20030817-093029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12960',
internalId:  '',
customField: '20070420-093343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10227',
internalId:  '',
customField: '20060814-143248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41067',
internalId:  '',
customField: '20060814-142839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6430',
internalId:  '',
customField: '20050612-215925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75423',
internalId:  '',
customField: '20060218-013315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56810',
internalId:  '',
customField: '20051125-162025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4559',
internalId:  '',
customField: '20091104-110842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20699',
internalId:  '',
customField: '20031006-142604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116126',
internalId:  '',
customField: '20080913-221614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116125',
internalId:  '',
customField: '20080913-221614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119202',
internalId:  '',
customField: '20100321-112121'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '127543',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127543',
internalId:  '',
customField: '20100722-145627'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3RTZ';
var companyName   = 'Surfshop+Snowboardshop+Pratteln+%2F+Basel';
var htmlTitle	  = 'Surfshop+Kiteshop+Snowboardshop+Surfparadies+in+Pratteln+bei+Basel';
var metaKeywords  = 'Surfshop%2C+Snowboardshop%2C+Kiteshop%2C+Surfparadies%2C+Basel%2C+Basel-Stadt%2C+Baselland%2C+Pratteln%2C+Wassersport%2C+Segel%2C+Gabelbaum%2C+Mast%2C+Kiteboard%2C+Wintersportgesch%C3%A4ft%2C+Windsurfen%2C+Kiten%2C+Surfferien%2C+Surfreisen%2C+Kiterreisen%2C+Kiteferien%2C+Kitekurs%2C+Standuppaddeln%2C+SUP%2C+Paddle%2C+Kurse%2C+Snowboard%2C+Wakeboard%2C+Surf%2C+Wellenreiten%2C+Snowkite%2C+Segelreparatur%2C+Ski%2C+Snowboard%2C+Kite%2C+Segel%2C+Snowboardservice%2C+Skiservice%2C+Snowkiten%2C+Mountainboard%2C+Sailloft%2C+F2%2C+Neilpryde%2C+Core%2C+Naish%2C+Ezzy-Sails%2CMystic%2C+DaKine%2C+Mistral%2C+Fanatic%2C+Nidecker%2C+Salomon%2C+Thirtytwo%2C+Smith%2C+Ezzy-Sails%2C+Pro+Limit%2C+Mystic%2C+Da+Kine%2C+Mistral%2C+F2%2C+Fanatic%2C+Thirtytwo%2C+Smith%2C+Vermietung%2C+Cabrinha%2C+JP%2C+JP-Australia%2C+Bindung';
var metaContents  = 'Surfshop+und+Snowboardshop+Surfparadies+Pratteln.+Wasser+und+Wintersportgesch%C3%A4ft+in+der+Region+Basel+f%C3%BCr+Windsurfen%2C+Kiten%2C+Surfferien%2C+Kurse%2C+Snowboard%2C+Wakeboard%2C+Sup%2C+Surf%2C+Snowkite.+Service+und+Reparatur+an+Surfbrett%2C+Ski%2C+Snowboard%2C+Kite%2C+Segel.';
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();
};
