/* [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 theSitetree=[ 
	['PAGE','32',jdecode('Home'),jdecode(''),'/32.html','true',[],''],
	['PAGE','53',jdecode('Entertainers'),jdecode(''),'/53.html','true',[],''],
	['PAGE','62',jdecode('Lighting+'),jdecode(''),'/62.html','true',[],''],
	['PAGE','71',jdecode('Prizes'),jdecode(''),'/71.html','true',[],''],
	['PAGE','80',jdecode('Motivators'),jdecode(''),'/80.html','true',[],''],
	['PAGE','89',jdecode('Karaoke+'),jdecode(''),'/89.html','true',[],''],
	['PAGE','1303',jdecode('Mitzvah+Photos'),jdecode(''),'/1303.html','true',[],''],
	['PAGE','1312',jdecode('Wedding+Photos'),jdecode(''),'/1312.html','true',[],''],
	['PAGE','4079',jdecode('Corporate+Photos'),jdecode(''),'/4079.html','true',[],''],
	['PAGE','5485',jdecode('More+Party+Photos'),jdecode(''),'/5485.html','true',[],''],
	['PAGE','14401',jdecode('Videos'),jdecode(''),'/14401.html','true',[],''],
	['PAGE','4152',jdecode('Q+%26+A+with+ADJA'),jdecode(''),'/4152.html','true',[],''],
	['PAGE','134',jdecode('References'),jdecode(''),'/134.html','true',[],''],
	['PAGE','4046',jdecode('Contact'),jdecode(''),'/4046.html','true',[],''],
	['PAGE','143',jdecode('Links'),jdecode(''),'/143.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2228';
theSitetree.keyvisualName='hochzeit4.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2228',
				keyvisualName: 	'hochzeit4.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'415',
				contentColor: 	'000000',
				contentBGColor: '93A6CC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'93A6CC',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '4046',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20091015-204017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100120-212551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1312',
internalId:  '',
customField: '20091015-204348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1303',
internalId:  '',
customField: '20090705-173345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20090816-093506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20080729-213720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20081020-231231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89',
internalId:  '',
customField: '20080311-004617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4079',
internalId:  '',
customField: '20090816-093924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20080823-013648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20080729-215421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4152',
internalId:  '',
customField: '20080310-005018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134',
internalId:  '',
customField: '20091015-204113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4046',
internalId:  '',
customField: '20080310-005857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143',
internalId:  '',
customField: '20081023-155355'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3VGR';
var companyName   = 'MARK+ANTHONY+PRODUCTIONS';
var htmlTitle	  = 'www.djmarkanthonyproductions.com';
var metaKeywords  = 'dj++disc+jockey++disk+jockey++dj+mark++dj+marc++dj+mark+anthony++dj+marc+anthony++dj+mark+anthony+productions++dj+marc+anthony+productions++nj++new+jersey++wedding++bar+mitzvah++bat+mitzvah++mitzvah++barmitzvah++batmitzvah++entertainment+++event++event+planning++corporate++corporate+party++holiday++holiday+party++birthday++birthday+party++prom++kids++school++school+party++kids+school+party++sweet+16++sweet+sixteen++prodject+++prodject+graduation++graduation+party++party++party+planning++morris+county++professional++professional+entertainment++entertainment+++motivator++party+motivator+www.djmarkanthonyproductions.com40+East+Sterling+Street++Wharton++New+Jersey+07885Phone+973+537+%E2%80%93+8888++Fax+973+537+%E2%80%93+8889djmark01%40aol.comExtraordinary+DJs++Emcees+MC++Master+Party+Motivators+Spectacular+Sound+Systems+High+Tech+Light+ShowsParty+Prize+Packages+Video+DJ+%2F+VJ+Services+Audible+Visual+TangibleHere+at+MARK+ANTHONY+PRODUCTIONS+your+party+is+our+business%21+For+two+decades+thousands+of+people+throughout+the+tri-state+area+have+trusted+us+to+perform+at+their+events.+We+provide+professional+high+quality+entertainment+that+will+always+meet+your+needs+and+exceed+your+expectations+with+the+fairness%2C+honesty+and+quality+you+deserve.+We+provide+professional+experienced+entertainers+with+state+of+the+art+sound++lighting+systems.+We+supply+a+comprehensive+itinerary+worksheet+along+with+party+song+lists++a+request+sheet.+We+schedule+an+initial+personal+consultation+with+the+performer+of+your+choice+to+asses+your+needs.+Then+two+weeks+prior+to+your+event+we+arrange+a+finals+appointment+to+discuss+and+confirm+all+the+important+details+to+ensure+your+party+is+one+that+you+and+your+guests+wont+ever+forget%21We+initially+meet+with+you+to+assess+your+needs%2C+then+again+to+confirm+all+the+final+details.We+utilize+exceptional%2C+industry+standard%2C+professional+sound++lighting+equipment.We+possess+the+necessary+resources+to+ensure+a+smooth+performance+every+time.We+are+fully+insured+for+two+million+dollars+and+can+provide+proof+of+liability.+We+provide+a+written+contract+with+your+scheduled+performers+name+on+it.We+will+always+conduct+ourselves+in+a+courteous+professional+manner.+We+are+always+well+prepared+and+performing+as+your+guests+arrive.++We+will+be+formally+and+suitably+dressed+for+your+event.Here+at+MARK+ANTHONY+PRODUCTIONS+your+affair+is+our+business+and+we+always+work+directly+with+you+to+ensure+your+satisfaction+and+a+successful+event.+People+have+trusted+MARK+ANTHONY+PRODUCTIONS+for+two+decades+to+provide+quality+professional+entertainment+at+Weddings%2C+Bar%2FBat+Mitzvahs%2C+Corporate+Events+and+just+about+everything+else%21+We+will+always+meet+your+needs+and+exceed+your+expectations+with+fairness%2C+honesty%2C+and+the+integrity+you+deserve.+We+provide+you+with+two+decades+of+experience%2C+professional+entertainers%2C+state+of+the+art+sound++lighting%2C+comprehensive+worksheets%2C+and+personal+appointments+to+ensure+your+next+special+event+is+one+that+you+and+your+guests+wont+soon+forget%21+We+have+performed+at+thousands+of+parties+throughout+the+tri+state+area+and+across+the+entire+country%21+THANK+YOU+FOR+CONSIDERING+US+AS+YOUR+ENTERTAINMENT+CHOICE.Professional+EntertainersExtraordinary+DJ%E2%80%99s++MC%E2%80%99s++Master+Party+Motivators+Spectacular+Sound++SystemsHigh+Tech+Light+ShowsParty+Prize+PackagesMotivational+DancersKaraoke+Systems++Singersdj+mark+anthony+production+dj+nj+wedding+barmitzvah+batmitzvah+corporate+event+school+dance+prom+graduation+birthday+party+anniversary+dj+new+jersey+dj+morris+county+nj+dj+sussex+county+nj+dj+warren+county+nj+dj+union+county+nj+dj+passaic+county+nj+dj+bergen+county+nj+dj+essex+county+nj+dj+mercer+county+njLighting+transforms+the+atmosphere+at+your+party%21+The+right+lighting+is+a+dramatic+enhancement+to+any+affair.+Just+imagine+a+colorful+carousel+of+light+dancing+to+the+beat+of+your+favorite+music+all+night+long.+Nothing+moves+the+crowd+to+the+dance+floor+like+one+of+our+spectacular+light+shows%21The+Standard+Effects+Light+Show+is+a+basic+lighting+package+to+get+things+started.+Great+for+a+smaller+venue+or+intimate+gathering.+The+standard+Light+Show+is+the+foundation+for+our+Power++Ultimate+light+shows.+When+it+comes+time+to+dance...dont+you+want+some+lights%3FThe+Power+Effects+Light+Show+is+double+the+size+of+the+standard+effects+package.+Suited+for+medium+size+events++venues.+We+set+the+Power+Effects+package+up+on+stands+or+on+a+truss+system.+If+your+venue+allows+we+will+use+a++smoke+machine+to+really+set+it+off%21+Using+the+Power+effects+package+as+the+cornerstone+we+add+the+classic+mirror+ball+centerpiece+effect%2C+a+laser+light+show+and+as+many+as+8+programmable+intelligent+lights+plus+the+smoke+machine%21++The+Ultimate+Effects+Light+Show+has+to+be+seen+to+be+appreciated.+Each+level+of+our+lighting+is+specialty+designed+to+build+upon+the+other+all+the+way+up+to+our+ultimate+light+show.+We+use+multiples+of+various+lights+to+create+different+scenes+witch+creates+atmosphere+and+really+sets+the+mood+at+an+event.+Yes%21+Its+your+name+up+in+lights%21+You+can+choose+any+one+of+our+designs+or+custom+order+any+text+or+logo+you+want%21+We+can+project+that+image+on+any+surface.+This+is+an+awesome+effect+great+for+any+event%21+Available+in+brilliant+white+or+any+color+or+colors+you+like.+Sweet%213...2...1...Happy+New+Year%21%21%21+Imagine+this+brilliant+effect+firing+up+at+the+stroke+of+midnight%21+We+can+project+any+image%2C+text+or+logo+you+desire+on+any+surface+at+anytime+or+let+it+run+all+night+long.+%28+did+I+mention+it+can+rotate+in+either+direction+at+a+variety+of+speeds+too%3F%29Our+programmable+intelligent+lights+can+shine+1000+watts+of+power+onto+our+mirror+ball+to+make+that+old+70s+effect+look+brand+new+again%21+Now+with+11+different+dichroic+colors+plus+the+original+white.+The+mirror+ball+is+sooo+back%21+%28Most+light+shows+will+only+go+up+to+10.+Our+ultimate+light+show+goes+to+11%21%29Our+laser+show+can+shoot+powerful+beams+of+energy+throughout+your+room%2C+creating+the+ultimate+in+space-age+performance.+Any+DJ+will+tell+you+that+hands+down+L.A.S.E.R.+light+is+the+biggest+and+baddest+effect+on+the+market+today.+Light+Amplification+by+Stimulated+Emission+of+Radiation.A+Prize+package+is+that+tangible+presence+at+your+event+allowing+the+guests+to+be+immersed+in+a+third+sense+along+with+the+audible+and+visual+aspects.+Prizes+are+fun+party+props+that+correspond+to+the+different+music+sets+we+play.+If+we+are+rocking++the+conga+line%2C+out+go+the+straw+hats%2C+Hawaiian+leis%2C+sunglasses%2C++maracas.+We+hand+out+prizes+to+everyone+on+the+dance+floor+throughout+the+entire+event.+From+the+mild+to+the+wild+everybody+wants+some.Prizes+are+a+lot+of+fun.+The+power+package+consists+of+Gangster+style+hats%2C+Straw+Hats%2C+Cowboy+Hats%2C+Sunglasses%2C+Bandanas%2C+Hawaiian+leis%2C+Mardi+Gras+Beads%2C+Maracas%2C+Tambourines%2C+Inflatable+Air+Guitars++Saxophones%2C++glow+necklaces.With+an+ultimate+prize+package+the+skys+the+limit.+You+can+customize+the+ultimate+prize+package+to+suit+your+events+specific+needs+or+theme.+Different+quantities+and+a+higher+quality+of+items+too.+We+will+order%2C+arrange+and+hand+out+all+of+the+party+props+to+make+sure+you++your+guests+are+having+the+time+of+their+lives.+Just+pick+out+what+you+want++we+will+do+the+rest.+The+best+part+is+the+photos+you+see+later%21';
var metaContents  = 'dj++disc+jockey++disk+jockey++dj+mark++dj+marc++dj+mark+anthony++dj+marc+anthony++dj+mark+anthony+productions++dj+marc+anthony+productions++nj++new+jersey++wedding++bar+mitzvah++bat+mitzvah++mitzvah++barmitzvah++batmitzvah++entertainment+++event++event+planning++corporate++corporate+party++holiday++holiday+party++birthday++birthday+party++prom++kids++school++school+party++kids+school+party++sweet+16++sweet+sixteen++prodject+++prodject+graduation++graduation+party++party++party+planning++morris+county++professional++professional+entertainment++entertainment+++motivator++party+motivator+www.djmarkanthonyproductions.com40+East+Sterling+Street++Wharton++New+Jersey+07885Phone+973+537+%E2%80%93+8888++Fax+973+537+%E2%80%93+8889djmark01%40aol.comExtraordinary+DJs++Emcees+MC++Master+Party+Motivators+Spectacular+Sound+Systems+High+Tech+Light+ShowsParty+Prize+Packages+Video+DJ+%2F+VJ+Services+Audible+Visual+TangibleHere+at+MARK+ANTHONY+PRODUCTIONS+your+party+is+our+business%21+For+two+decades+thousands+of+people+throughout+the+tri-state+area+have+trusted+us+to+perform+at+their+events.+We+provide+professional+high+quality+entertainment+that+will+always+meet+your+needs+and+exceed+your+expectations+with+the+fairness%2C+honesty+and+quality+you+deserve.+We+provide+professional+experienced+entertainers+with+state+of+the+art+sound++lighting+systems.+We+supply+a+comprehensive+itinerary+worksheet+along+with+party+song+lists++a+request+sheet.+We+schedule+an+initial+personal+consultation+with+the+performer+of+your+choice+to+asses+your+needs.+Then+two+weeks+prior+to+your+event+we+arrange+a+finals+appointment+to+discuss+and+confirm+all+the+important+details+to+ensure+your+party+is+one+that+you+and+your+guests+wont+ever+forget%21We+initially+meet+with+you+to+assess+your+needs%2C+then+again+to+confirm+all+the+final+details.We+utilize+exceptional%2C+industry+standard%2C+professional+sound++lighting+equipment.We+possess+the+necessary+resources+to+ensure+a+smooth+performance+every+time.We+are+fully+insured+for+two+million+dollars+and+can+provide+proof+of+liability.+We+provide+a+written+contract+with+your+scheduled+performers+name+on+it.We+will+always+conduct+ourselves+in+a+courteous+professional+manner.+We+are+always+well+prepared+and+performing+as+your+guests+arrive.++We+will+be+formally+and+suitably+dressed+for+your+event.Here+at+MARK+ANTHONY+PRODUCTIONS+your+affair+is+our+business+and+we+always+work+directly+with+you+to+ensure+your+satisfaction+and+a+successful+event.+People+have+trusted+MARK+ANTHONY+PRODUCTIONS+for+two+decades+to+provide+quality+professional+entertainment+at+Weddings%2C+Bar%2FBat+Mitzvahs%2C+Corporate+Events+and+just+about+everything+else%21+We+will+always+meet+your+needs+and+exceed+your+expectations+with+fairness%2C+honesty%2C+and+the+integrity+you+deserve.+We+provide+you+with+two+decades+of+experience%2C+professional+entertainers%2C+state+of+the+art+sound++lighting%2C+comprehensive+worksheets%2C+and+personal+appointments+to+ensure+your+next+special+event+is+one+that+you+and+your+guests+wont+soon+forget%21+We+have+performed+at+thousands+of+parties+throughout+the+tri+state+area+and+across+the+entire+country%21+THANK+YOU+FOR+CONSIDERING+US+AS+YOUR+ENTERTAINMENT+CHOICE.Professional+EntertainersExtraordinary+DJ%E2%80%99s++MC%E2%80%99s++Master+Party+Motivators+Spectacular+Sound++SystemsHigh+Tech+Light+ShowsParty+Prize+PackagesMotivational+DancersKaraoke+Systems++Singersdj+mark+anthony+production+dj+nj+wedding+barmitzvah+batmitzvah+corporate+event+school+dance+prom+graduation+birthday+party+anniversary+dj+new+jersey+dj+morris+county+nj+dj+sussex+county+nj+dj+warren+county+nj+dj+union+county+nj+dj+passaic+county+nj+dj+bergen+county+nj+dj+essex+county+nj+dj+mercer+county+njLighting+transforms+the+atmosphere+at+your+party%21+The+right+lighting+is+a+dramatic+enhancement+to+any+affair.+Just+imagine+a+colorful+carousel+of+light+dancing+to+the+beat+of+your+favorite+music+all+night+long.+Nothing+moves+the+crowd+to+the+dance+floor+like+one+of+our+spectacular+light+shows%21The+Standard+Effects+Light+Show+is+a+basic+lighting+package+to+get+things+started.+Great+for+a+smaller+venue+or+intimate+gathering.+The+standard+Light+Show+is+the+foundation+for+our+Power++Ultimate+light+shows.+When+it+comes+time+to+dance...dont+you+want+some+lights%3FThe+Power+Effects+Light+Show+is+double+the+size+of+the+standard+effects+package.+Suited+for+medium+size+events++venues.+We+set+the+Power+Effects+package+up+on+stands+or+on+a+truss+system.+If+your+venue+allows+we+will+use+a++smoke+machine+to+really+set+it+off%21+Using+the+Power+effects+package+as+the+cornerstone+we+add+the+classic+mirror+ball+centerpiece+effect%2C+a+laser+light+show+and+as+many+as+8+programmable+intelligent+lights+plus+the+smoke+machine%21++The+Ultimate+Effects+Light+Show+has+to+be+seen+to+be+appreciated.+Each+level+of+our+lighting+is+specialty+designed+to+build+upon+the+other+all+the+way+up+to+our+ultimate+light+show.+We+use+multiples+of+various+lights+to+create+different+scenes+witch+creates+atmosphere+and+really+sets+the+mood+at+an+event.+Yes%21+Its+your+name+up+in+lights%21+You+can+choose+any+one+of+our+designs+or+custom+order+any+text+or+logo+you+want%21+We+can+project+that+image+on+any+surface.+This+is+an+awesome+effect+great+for+any+event%21+Available+in+brilliant+white+or+any+color+or+colors+you+like.+Sweet%213...2...1...Happy+New+Year%21%21%21+Imagine+this+brilliant+effect+firing+up+at+the+stroke+of+midnight%21+We+can+project+any+image%2C+text+or+logo+you+desire+on+any+surface+at+anytime+or+let+it+run+all+night+long.+%28+did+I+mention+it+can+rotate+in+either+direction+at+a+variety+of+speeds+too%3F%29Our+programmable+intelligent+lights+can+shine+1000+watts+of+power+onto+our+mirror+ball+to+make+that+old+70s+effect+look+brand+new+again%21+Now+with+11+different+dichroic+colors+plus+the+original+white.+The+mirror+ball+is+sooo+back%21+%28Most+light+shows+will+only+go+up+to+10.+Our+ultimate+light+show+goes+to+11%21%29Our+laser+show+can+shoot+powerful+beams+of+energy+throughout+your+room%2C+creating+the+ultimate+in+space-age+performance.+Any+DJ+will+tell+you+that+hands+down+L.A.S.E.R.+light+is+the+biggest+and+baddest+effect+on+the+market+today.+Light+Amplification+by+Stimulated+Emission+of+Radiation.A+Prize+package+is+that+tangible+presence+at+your+event+allowing+the+guests+to+be+immersed+in+a+third+sense+along+with+the+audible+and+visual+aspects.+Prizes+are+fun+party+props+that+correspond+to+the+different+music+sets+we+play.+If+we+are+rocking++the+conga+line%2C+out+go+the+straw+hats%2C+Hawaiian+leis%2C+sunglasses%2C++maracas.+We+hand+out+prizes+to+everyone+on+the+dance+floor+throughout+the+entire+event.+From+the+mild+to+the+wild+everybody+wants+some.Prizes+are+a+lot+of+fun.+The+power+package+consists+of+Gangster+style+hats%2C+Straw+Hats%2C+Cowboy+Hats%2C+Sunglasses%2C+Bandanas%2C+Hawaiian+leis%2C+Mardi+Gras+Beads%2C+Maracas%2C+Tambourines%2C+Inflatable+Air+Guitars++Saxophones%2C++glow+necklaces.With+an+ultimate+prize+package+the+skys+the+limit.+You+can+customize+the+ultimate+prize+package+to+suit+your+events+specific+needs+or+theme.+Different+quantities+and+a+higher+quality+of+items+too.+We+will+order%2C+arrange+and+hand+out+all+of+the+party+props+to+make+sure+you++your+guests+are+having+the+time+of+their+lives.+Just+pick+out+what+you+want++we+will+do+the+rest.+The+best+part+is+the+photos+you+see+later%21+';
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();
};
