/* [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','1512',jdecode('Home'),jdecode(''),'/1512.html','true',[],'',''],
	['PAGE','231412',jdecode('Go+to+Search+Engine'),jdecode(''),'/231412.html','true',[],'',''],
	['PAGE','191043',jdecode('Contact+Form'),jdecode(''),'/191043.html','true',[],'',''],
	['PAGE','191001',jdecode('How+did+you+find+us%3F'),jdecode(''),'/191001.html','true',[],'',''],
	['PAGE','135958',jdecode('Gift+Certificates'),jdecode(''),'/135958.html','true',[],'',''],
	['PAGE','109744',jdecode('Pet+ID+Tags'),jdecode(''),'/109744.html','true',[],'',''],
	['PAGE','286793',jdecode('Dogs+Birthday+Cakes'),jdecode(''),'/286793/index.html','true',[ 
		['PAGE','286814',jdecode('Gallery'),jdecode(''),'/286793/286814.html','true',[],'',''],
		['PAGE','286835',jdecode('Gourmet+Biscuits'),jdecode(''),'/286793/286835.html','true',[],'','']
	],'',''],
	['PAGE','274628',jdecode('Beds+%26+Bedding'),jdecode(''),'/274628/index.html','true',[ 
		['PAGE','270623',jdecode('Mats+for+cats'),jdecode(''),'/274628/270623.html','true',[],'',''],
		['PAGE','291493',jdecode('Cat+Perch+Covers'),jdecode(''),'/274628/291493.html','true',[],'',''],
		['PAGE','270686',jdecode('Cat+Igloos+and+Teepees+'),jdecode(''),'/274628/270686.html','true',[],'',''],
		['PAGE','270707',jdecode('Donuts+%26+Rings'),jdecode(''),'/274628/270707.html','true',[],'',''],
		['PAGE','270728',jdecode('Electric+Heat+Pads'),jdecode(''),'/274628/270728.html','true',[],'',''],
		['PAGE','270749',jdecode('Magnetic+mattresses'),jdecode(''),'/274628/270749.html','true',[],'',''],
		['PAGE','274544',jdecode('Mattresses'),jdecode(''),'/274628/274544.html','true',[],'',''],
		['PAGE','274565',jdecode('Futons'),jdecode(''),'/274628/274565.html','true',[],'',''],
		['PAGE','274586',jdecode('Cushions+%26+Mats'),jdecode(''),'/274628/274586.html','true',[],'',''],
		['PAGE','274607',jdecode('Big+Softie'),jdecode(''),'/274628/274607.html','true',[],'',''],
		['PAGE','270770',jdecode('Raised+bedding'),jdecode(''),'/274628/270770.html','true',[],'',''],
		['PAGE','270791',jdecode('Super+Dry+Beds'),jdecode(''),'/274628/270791.html','true',[],'',''],
		['PAGE','270812',jdecode('Sak+Mats'),jdecode(''),'/274628/270812.html','true',[],'',''],
		['PAGE','270833',jdecode('Soft+Bedding'),jdecode(''),'/274628/270833.html','true',[],'',''],
		['PAGE','270854',jdecode('Kiwi+Classic+Beds'),jdecode(''),'/274628/270854.html','true',[],'',''],
		['PAGE','274649',jdecode('Paris+Belle'),jdecode(''),'/274628/274649.html','true',[],'',''],
		['PAGE','277393',jdecode('Serenity+Bedding'),jdecode(''),'/274628/277393.html','true',[],'',''],
		['PAGE','274670',jdecode('Hilton+Range'),jdecode(''),'/274628/274670.html','true',[],'',''],
		['PAGE','270644',jdecode('Rug+Nutts'),jdecode(''),'/274628/270644.html','true',[],'','']
	],'',''],
	['PAGE','275693',jdecode('Cat+Furniture+%26+Posts'),jdecode(''),'/275693/index.html','true',[ 
		['PAGE','274523',jdecode('KatAttack+Posts'),jdecode(''),'/275693/274523.html','true',[],'',''],
		['PAGE','279593',jdecode('Kiwi+Classic++Posts'),jdecode(''),'/275693/279593.html','true',[],'',''],
		['PAGE','66371',jdecode('Buddy++Scratch+Post'),jdecode(''),'/275693/66371.html','true',[],'',''],
		['PAGE','270665',jdecode('KatAttack+Furniture'),jdecode(''),'/275693/270665.html','true',[],'',''],
		['PAGE','279614',jdecode('Kiwi+Classic+Furniture'),jdecode(''),'/275693/279614.html','true',[],'','']
	],'',''],
	['PAGE','28931',jdecode('Dogs+Footwear'),jdecode(''),'/28931/index.html','true',[ 
		['PAGE','204301',jdecode('Slippers'),jdecode(''),'/28931/204301.html','true',[],'',''],
		['PAGE','204322',jdecode('Shoes+for+best'),jdecode(''),'/28931/204322.html','true',[],'',''],
		['PAGE','204343',jdecode('Sneakers'),jdecode(''),'/28931/204343.html','true',[],'',''],
		['PAGE','204364',jdecode('Boots'),jdecode(''),'/28931/204364.html','true',[],'','']
	],'',''],
	['PAGE','119109',jdecode('Clothes+For+Dogs'),jdecode(''),'/119109/index.html','true',[ 
		['PAGE','30731',jdecode('Robes+%26+PJ%26%23x27%3Bs'),jdecode(''),'/119109/30731.html','true',[],'',''],
		['PAGE','135166',jdecode('Swimwear'),jdecode(''),'/119109/135166.html','true',[],'',''],
		['PAGE','43744',jdecode('Special+Occassions'),jdecode(''),'/119109/43744.html','true',[],'',''],
		['PAGE','135175',jdecode('Winter+Woolies'),jdecode(''),'/119109/135175.html','true',[],'',''],
		['PAGE','239912',jdecode('New+For+Winter'),jdecode(''),'/119109/239912.html','true',[],'',''],
		['PAGE','30758',jdecode('Outside+Apparel'),jdecode(''),'/119109/30758.html','true',[],'',''],
		['PAGE','244612',jdecode('Denim+Sets'),jdecode(''),'/119109/244612.html','true',[],'',''],
		['PAGE','244633',jdecode('Oriental+Styles'),jdecode(''),'/119109/244633.html','true',[],'',''],
		['PAGE','176701',jdecode('Sundresses'),jdecode(''),'/119109/176701.html','true',[],'',''],
		['PAGE','132224',jdecode('Polo+%26+Tee-Shirts'),jdecode(''),'/119109/132224.html','true',[],'',''],
		['PAGE','66344',jdecode('Hats+%26+Scarves'),jdecode(''),'/119109/66344.html','true',[],'',''],
		['PAGE','236712',jdecode('Neck+Muffs'),jdecode(''),'/119109/236712.html','true',[],'',''],
		['PAGE','236733',jdecode('Bandanas'),jdecode(''),'/119109/236733.html','true',[],'',''],
		['PAGE','241312',jdecode('Bow+Ties'),jdecode(''),'/119109/241312.html','true',[],'',''],
		['PAGE','246712',jdecode('Scrunchies'),jdecode(''),'/119109/246712.html','true',[],'','']
	],'',''],
	['PAGE','1839',jdecode('Fancy+Dress+Costumes+'),jdecode(''),'/1839/index.html','true',[ 
		['PAGE','102944',jdecode('Hats+only'),jdecode(''),'/1839/102944.html','true',[],'',''],
		['PAGE','102971',jdecode('Animals+etc'),jdecode(''),'/1839/102971.html','true',[],'',''],
		['PAGE','17501',jdecode('Special+Occassions'),jdecode(''),'/1839/17501.html','true',[],'',''],
		['PAGE','17528',jdecode('Star+Wars'),jdecode(''),'/1839/17528.html','true',[],'',''],
		['PAGE','17555',jdecode('Tiki+Hawaiian'),jdecode(''),'/1839/17555.html','true',[],'',''],
		['PAGE','17582',jdecode('Super+Heroes'),jdecode(''),'/1839/17582.html','true',[],'',''],
		['PAGE','17609',jdecode('Royalty'),jdecode(''),'/1839/17609.html','true',[],'',''],
		['PAGE','17636',jdecode('Superstars'),jdecode(''),'/1839/17636.html','true',[],'',''],
		['PAGE','17663',jdecode('Bride+%26+Groom'),jdecode(''),'/1839/17663.html','true',[],'',''],
		['PAGE','17690',jdecode('Celebration'),jdecode(''),'/1839/17690.html','true',[],'',''],
		['PAGE','17717',jdecode('Outlaws'),jdecode(''),'/1839/17717.html','true',[],'',''],
		['PAGE','17744',jdecode('One+of+a+Kind'),jdecode(''),'/1839/17744.html','true',[],'',''],
		['PAGE','17771',jdecode('Bugs+Doggy'),jdecode(''),'/1839/17771.html','true',[],'',''],
		['PAGE','27731',jdecode('Professional'),jdecode(''),'/1839/27731.html','true',[],'',''],
		['PAGE','27758',jdecode('Scary+Stuff'),jdecode(''),'/1839/27758.html','true',[],'','']
	],'',''],
	['PAGE','143001',jdecode('Clothing+for+cats'),jdecode(''),'/143001.html','true',[],'',''],
	['PAGE','35331',jdecode('Life+Jackets'),jdecode(''),'/35331.html','true',[],'',''],
	['PAGE','36131',jdecode('Doggles+Sunglasses'),jdecode(''),'/36131.html','true',[],'',''],
	['PAGE','11301',jdecode('Jewellery%2FBarrettes'),jdecode(''),'/11301/index.html','true',[ 
		['PAGE','249812',jdecode('Hair+Barrettes'),jdecode(''),'/11301/249812.html','true',[],'',''],
		['PAGE','210301',jdecode('Banter+Bands'),jdecode(''),'/11301/210301.html','true',[],'','']
	],'',''],
	['PAGE','272923',jdecode('Training+by+Clickers'),jdecode(''),'/272923/index.html','true',[ 
		['PAGE','282493',jdecode('For+Rabbits'),jdecode(''),'/272923/282493.html','true',[],'','']
	],'',''],
	['PAGE','248912',jdecode('Charm+Necklaces'),jdecode(''),'/248912/index.html','true',[ 
		['PAGE','246733',jdecode('Collar+charms+1'),jdecode(''),'/248912/246733.html','true',[],'',''],
		['PAGE','246754',jdecode('Collar+charms+2'),jdecode(''),'/248912/246754.html','true',[],'',''],
		['PAGE','251212',jdecode('Collar+charms+3'),jdecode(''),'/248912/251212.html','true',[],'',''],
		['PAGE','251233',jdecode('Collar+charms+4'),jdecode(''),'/248912/251233.html','true',[],'','']
	],'',''],
	['PAGE','119136',jdecode('Dog+Toys'),jdecode(''),'/119136/index.html','true',[ 
		['PAGE','133829',jdecode('Bubble+makers'),jdecode(''),'/119136/133829.html','true',[],'',''],
		['PAGE','222512',jdecode('Introducing+FLEA'),jdecode(''),'/119136/222512.html','true',[],'',''],
		['PAGE','194001',jdecode('Interactive+Toys'),jdecode(''),'/119136/194001.html','true',[],'',''],
		['PAGE','270875',jdecode('Babble+Balls'),jdecode(''),'/119136/270875.html','true',[],'',''],
		['PAGE','241012',jdecode('Hair+Balls'),jdecode(''),'/119136/241012.html','true',[],'',''],
		['PAGE','270896',jdecode('Bean+Toys'),jdecode(''),'/119136/270896.html','true',[],'',''],
		['PAGE','270917',jdecode('Tuffies'),jdecode(''),'/119136/270917.html','true',[],'',''],
		['PAGE','196801',jdecode('Tough+Toys'),jdecode(''),'/119136/196801.html','true',[],'',''],
		['PAGE','28958',jdecode('Soft+Toys'),jdecode(''),'/119136/28958.html','true',[],'',''],
		['PAGE','162501',jdecode('Soft+Toys'),jdecode(''),'/119136/162501.html','true',[],'',''],
		['PAGE','198101',jdecode('Crinkle+Toys'),jdecode(''),'/119136/198101.html','true',[],'',''],
		['PAGE','111744',jdecode('Plush+Toys'),jdecode(''),'/119136/111744.html','true',[],'',''],
		['PAGE','129775',jdecode('Vinyl+Toys'),jdecode(''),'/119136/129775.html','true',[],'',''],
		['PAGE','135265',jdecode('Rope+Toys'),jdecode(''),'/119136/135265.html','true',[],'',''],
		['PAGE','137084',jdecode('Latex+Toys'),jdecode(''),'/119136/137084.html','true',[],'',''],
		['PAGE','173701',jdecode('Loofa+Toys'),jdecode(''),'/119136/173701.html','true',[],'',''],
		['PAGE','158701',jdecode('Tennis+Balls+Toys'),jdecode(''),'/119136/158701.html','true',[],'',''],
		['PAGE','116409',jdecode('Outside+Toys+'),jdecode(''),'/119136/116409.html','true',[],'',''],
		['PAGE','129246',jdecode('Treat+Balls'),jdecode(''),'/119136/129246.html','true',[],'',''],
		['PAGE','151901',jdecode('Boredom+Busters'),jdecode(''),'/119136/151901.html','true',[],'',''],
		['PAGE','127879',jdecode('+Dental+Toys'),jdecode(''),'/119136/127879.html','true',[],'',''],
		['PAGE','113944',jdecode('Puppy+Comforters'),jdecode(''),'/119136/113944.html','true',[],'','']
	],'',''],
	['PAGE','242912',jdecode('Cat+Toys'),jdecode(''),'/242912/index.html','true',[ 
		['PAGE','229312',jdecode('Aroma+Therapy+for+Cats'),jdecode(''),'/242912/229312.html','true',[],'',''],
		['PAGE','245812',jdecode('Bubbles+for+cats'),jdecode(''),'/242912/245812.html','true',[],'',''],
		['PAGE','229333',jdecode('Sushi+Toys+for+Cats'),jdecode(''),'/242912/229333.html','true',[],'',''],
		['PAGE','229354',jdecode('Play+and+Squeak+Pals'),jdecode(''),'/242912/229354.html','true',[],'',''],
		['PAGE','229375',jdecode('Play+and+Treat+Cat+Balls'),jdecode(''),'/242912/229375.html','true',[],'',''],
		['PAGE','189301',jdecode('Cat+Toys+Page+1'),jdecode(''),'/242912/189301.html','true',[],'',''],
		['PAGE','1623',jdecode('Cat+Toys+Page+2'),jdecode(''),'/242912/1623.html','true',[],'',''],
		['PAGE','111771',jdecode('Cat+Toys+Page+3'),jdecode(''),'/242912/111771.html','true',[],'',''],
		['PAGE','132677',jdecode('Cat+Toys+Page+4'),jdecode(''),'/242912/132677.html','true',[],'','']
	],'',''],
	['PAGE','130078',jdecode('Toy+Boxes'),jdecode(''),'/130078.html','true',[],'',''],
	['PAGE','128948',jdecode('Collars+and+Leads'),jdecode(''),'/128948/index.html','true',[ 
		['PAGE','234212',jdecode('For+Rabbits+%26+Ferrets'),jdecode(''),'/128948/234212.html','true',[],'',''],
		['PAGE','29012',jdecode('For+Cats'),jdecode(''),'/128948/29012.html','true',[],'',''],
		['PAGE','128893',jdecode('For+Dogs'),jdecode(''),'/128948/128893.html','true',[],'',''],
		['PAGE','169001',jdecode('For+Young+Pups'),jdecode(''),'/128948/169001.html','true',[],'',''],
		['PAGE','121909',jdecode('Cooling+Collar'),jdecode(''),'/128948/121909.html','true',[],'',''],
		['PAGE','121963',jdecode('Gummi+Collars'),jdecode(''),'/128948/121963.html','true',[],'',''],
		['PAGE','66398',jdecode('Retractable+Leads'),jdecode(''),'/128948/66398.html','true',[],'',''],
		['PAGE','128327',jdecode('Training+collars'),jdecode(''),'/128948/128327.html','true',[],'',''],
		['PAGE','66452',jdecode('Problem+Solvers'),jdecode(''),'/128948/66452.html','true',[],'','']
	],'',''],
	['PAGE','225012',jdecode('Bark+Solvers'),jdecode(''),'/225012.html','true',[],'',''],
	['PAGE','232712',jdecode('Mobility+Aids'),jdecode(''),'/232712.html','true',[],'',''],
	['PAGE','241033',jdecode('Hot+%26+Cold+Wraps'),jdecode(''),'/241033.html','true',[],'',''],
	['PAGE','252212',jdecode('Nursing+Kits'),jdecode(''),'/252212.html','true',[],'',''],
	['PAGE','30131',jdecode('Bowls+%26+Bottles'),jdecode(''),'/30131.html','true',[],'',''],
	['PAGE','58644',jdecode('For+Little+Accidents'),jdecode(''),'/58644.html','true',[],'',''],
	['PAGE','291514',jdecode('Sticky+Paws'),jdecode(''),'/291514.html','true',[],'',''],
	['PAGE','272944',jdecode('Odour+Removers'),jdecode(''),'/272944/index.html','true',[ 
		['PAGE','282514',jdecode('Litter+Gel'),jdecode(''),'/272944/282514.html','true',[],'',''],
		['PAGE','282535',jdecode('Odour+Prevention'),jdecode(''),'/272944/282535.html','true',[],'',''],
		['PAGE','282556',jdecode('Oxy-Wipes'),jdecode(''),'/272944/282556.html','true',[],'','']
	],'',''],
	['PAGE','92144',jdecode('Travelling+Pets'),jdecode(''),'/92144.html','true',[],'',''],
	['PAGE','232212',jdecode('Suggestions'),jdecode(''),'/232212.html','true',[],'',''],
	['PAGE','1866',jdecode('Contact'),jdecode(''),'/1866.html','true',[],'',''],
	['PAGE','135949',jdecode('FAQs'),jdecode(''),'/135949.html','true',[],'',''],
	['PAGE','25031',jdecode('Terms+%26+Conditions'),jdecode(''),'/25031.html','true',[],'',''],
	['PAGE','7802',jdecode('Journal'),jdecode(''),'/7802.html','true',[],'',''],
	['PAGE','163801',jdecode('Pets+with+our+products'),jdecode(''),'/163801/index.html','true',[ 
		['PAGE','202101',jdecode('More+Pets'),jdecode(''),'/163801/202101.html','true',[],'',''],
		['PAGE','207501',jdecode('And+More'),jdecode(''),'/163801/207501.html','true',[],'',''],
		['PAGE','182801',jdecode('Pets+Gallery'),jdecode(''),'/163801/182801.html','true',[],'','']
	],'',''],
	['PAGE','26032',jdecode('Pets+Photo+Gallery'),jdecode(''),'/26032.html','true',[],'',''],
	['PAGE','187101',jdecode('In+Memory+Of'),jdecode(''),'/187101.html','true',[],'',''],
	['PAGE','231433',jdecode('Guest+Book'),jdecode(''),'/231433.html','true',[],'','']];
var siteelementCount=153;
theSitetree.topTemplateName='Canvas';
theSitetree.paletteFamily='497DE5';
theSitetree.keyvisualId='3702';
theSitetree.keyvisualName='kv_3702.jpg';
theSitetree.fontsetId='10471';
theSitetree.graphicsetId='10940';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='EFEBFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Canvas',
				paletteFamily: 	'497DE5',
				keyvisualId: 	'3702',
				keyvisualName: 	'kv_3702.jpg',
				fontsetId: 		'10471',
				graphicsetId: 	'10940',
				contentColor: 	'000000',
				contentBGColor: 'EFEBFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'497DE5',
				e_color: 		'497DE5',
				f_color: 		'497DE5',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1512',
internalId:  '1006',
customField: '1006'
};
webappMappings['7050']=webappMappings['7050-62']={
webappId:    '7050',
documentId:  '7802',
internalId:  '62',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1512',
internalId:  '',
customField: '20100116-162803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119136',
internalId:  '',
customField: '20090623-194525'
};
webappMappings['7060']=webappMappings['7060-2f8c6bedc10d213fb244a66678f0eeb8']={
webappId:    '7060',
documentId:  '26032',
internalId:  '2f8c6bedc10d213fb244a66678f0eeb8',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-869613']={
webappId:    '1501',
documentId:  '1512',
internalId:  '869613',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-494']={
webappId:    '7008',
documentId:  '1512',
internalId:  '494',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-43']={
webappId:    '7005',
documentId:  '119136',
internalId:  '43',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-44']={
webappId:    '7005',
documentId:  '119109',
internalId:  '44',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-45']={
webappId:    '7005',
documentId:  '191001',
internalId:  '45',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-495']={
webappId:    '7008',
documentId:  '191043',
internalId:  '495',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28958',
internalId:  '',
customField: '20081210-001926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128948',
internalId:  '',
customField: '20090422-034112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29012',
internalId:  '',
customField: '20090819-021821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '225012',
internalId:  '',
customField: '20100116-185601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135949',
internalId:  '',
customField: '20070615-031913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191001',
internalId:  '',
customField: '20080329-212430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191043',
internalId:  '',
customField: '20080329-212532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163801',
internalId:  '',
customField: '20090515-020759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202101',
internalId:  '',
customField: '20080501-002110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207501',
internalId:  '',
customField: '20090814-190303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182801',
internalId:  '',
customField: '20090814-184642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187101',
internalId:  '',
customField: '20090109-010054'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '231412',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135958',
internalId:  '',
customField: '20070617-021630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109744',
internalId:  '',
customField: '20100304-235511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28931',
internalId:  '',
customField: '20080611-005307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204301',
internalId:  '',
customField: '20100116-163106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204322',
internalId:  '',
customField: '20080507-190147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204343',
internalId:  '',
customField: '20080507-182841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204364',
internalId:  '',
customField: '20090609-013814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119109',
internalId:  '',
customField: '20090422-034641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30731',
internalId:  '',
customField: '20090501-024014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135166',
internalId:  '',
customField: '20080804-165705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43744',
internalId:  '',
customField: '20100116-163853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176701',
internalId:  '',
customField: '20080830-231622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135175',
internalId:  '',
customField: '20100116-164251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30758',
internalId:  '',
customField: '20100116-170059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132224',
internalId:  '',
customField: '20090501-024817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66344',
internalId:  '',
customField: '20090327-230247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270707',
internalId:  '',
customField: '20100302-061315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270728',
internalId:  '',
customField: '20100304-235347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143001',
internalId:  '',
customField: '20090609-012138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35331',
internalId:  '',
customField: '20071124-180154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30131',
internalId:  '',
customField: '20090605-191631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133829',
internalId:  '',
customField: '20091203-231931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222512',
internalId:  '',
customField: '20090517-031026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229312',
internalId:  '',
customField: '20090109-205521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194001',
internalId:  '',
customField: '20100116-185948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196801',
internalId:  '',
customField: '20091120-175417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229375',
internalId:  '',
customField: '20090109-210624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162501',
internalId:  '',
customField: '20081228-160005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198101',
internalId:  '',
customField: '20080428-003538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111744',
internalId:  '',
customField: '20090819-020747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129775',
internalId:  '',
customField: '20081228-160150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135265',
internalId:  '',
customField: '20100116-190139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137084',
internalId:  '',
customField: '20091203-232807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173701',
internalId:  '',
customField: '20071130-160931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158701',
internalId:  '',
customField: '20091120-174619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116409',
internalId:  '',
customField: '20090819-021501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129246',
internalId:  '',
customField: '20091120-174700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151901',
internalId:  '',
customField: '20080830-232238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127879',
internalId:  '',
customField: '20091120-180009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113944',
internalId:  '',
customField: '20091120-175848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189301',
internalId:  '',
customField: '20090908-195903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1623',
internalId:  '',
customField: '20090908-200021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111771',
internalId:  '',
customField: '20091203-235523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132677',
internalId:  '',
customField: '20090908-200140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66371',
internalId:  '',
customField: '20080415-224742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130078',
internalId:  '',
customField: '20090819-021633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239912',
internalId:  '',
customField: '20100116-165159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128893',
internalId:  '',
customField: '20090501-023055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169001',
internalId:  '',
customField: '20071126-004424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121909',
internalId:  '',
customField: '20070428-202940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121963',
internalId:  '',
customField: '20090819-022033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66398',
internalId:  '',
customField: '20090819-021937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128327',
internalId:  '',
customField: '20081119-234642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66452',
internalId:  '',
customField: '20081119-232242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58644',
internalId:  '',
customField: '20081025-231305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246754',
internalId:  '',
customField: '20090519-020546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248912',
internalId:  '',
customField: '20090519-015538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270665',
internalId:  '',
customField: '20100304-200544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20090508-015350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210301',
internalId:  '',
customField: '20080512-180515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36131',
internalId:  '',
customField: '20081108-015700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244633',
internalId:  '',
customField: '20090502-181027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244612',
internalId:  '',
customField: '20090502-190824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245812',
internalId:  '',
customField: '20090502-184731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246712',
internalId:  '',
customField: '20090503-023701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246733',
internalId:  '',
customField: '20090519-015851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241312',
internalId:  '',
customField: '20090501-023551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236712',
internalId:  '',
customField: '20090327-233840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241033',
internalId:  '',
customField: '20090501-022353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92144',
internalId:  '',
customField: '20090519-023612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236733',
internalId:  '',
customField: '20090422-021024'
};
webappMappings['1002']=webappMappings['1002-231433avec10in2gz7']={
webappId:    '1002',
documentId:  '231433',
internalId:  '231433avec10in2gz7',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1839',
internalId:  '',
customField: '20090517-030732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102944',
internalId:  '',
customField: '20090609-013241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102971',
internalId:  '',
customField: '20100116-172548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20100116-184959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17528',
internalId:  '',
customField: '20070520-043936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17555',
internalId:  '',
customField: '20071207-014721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17582',
internalId:  '',
customField: '20071207-015024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17609',
internalId:  '',
customField: '20090131-173219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17636',
internalId:  '',
customField: '20080428-192941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17663',
internalId:  '',
customField: '20080118-233339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17690',
internalId:  '',
customField: '20071113-204416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17717',
internalId:  '',
customField: '20090908-193250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17744',
internalId:  '',
customField: '20071207-014806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17771',
internalId:  '',
customField: '20090517-030923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27731',
internalId:  '',
customField: '20070520-021606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27758',
internalId:  '',
customField: '20071127-001546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1866',
internalId:  '',
customField: '20060921-050038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25031',
internalId:  '',
customField: '20090325-015942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7802',
internalId:  '',
customField: '20081210-001451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26032',
internalId:  '',
customField: '20060927-025925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229354',
internalId:  '',
customField: '20090423-024426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229333',
internalId:  '',
customField: '20090109-232554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231412',
internalId:  '',
customField: '20090125-010823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231433',
internalId:  '',
customField: '20090125-010923'
};
webappMappings['7005']=webappMappings['7005-387']={
webappId:    '7005',
documentId:  '232212',
internalId:  '387',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232212',
internalId:  '',
customField: '20090126-015252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232712',
internalId:  '',
customField: '20090501-030902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233512',
internalId:  '',
customField: '20090819-022656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234212',
internalId:  '',
customField: '20090217-162557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241012',
internalId:  '',
customField: '20090505-023057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242912',
internalId:  '',
customField: '20091203-234726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249812',
internalId:  '',
customField: '20090508-013831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251212',
internalId:  '',
customField: '20090519-021053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251233',
internalId:  '',
customField: '20090519-021802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252212',
internalId:  '',
customField: '20090522-175401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270686',
internalId:  '',
customField: '20100306-022721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270623',
internalId:  '',
customField: '20100301-234911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270896',
internalId:  '',
customField: '20100302-003629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270875',
internalId:  '',
customField: '20100302-004903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270644',
internalId:  '',
customField: '20100302-084532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270749',
internalId:  '',
customField: '20100304-230306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270770',
internalId:  '',
customField: '20100303-012555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270791',
internalId:  '',
customField: '20100302-072111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270812',
internalId:  '',
customField: '20100303-153548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270833',
internalId:  '',
customField: '20100306-040256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270854',
internalId:  '',
customField: '20100306-031817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '270917',
internalId:  '',
customField: '20100308-013914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274523',
internalId:  '',
customField: '20100304-200427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274544',
internalId:  '',
customField: '20100306-045158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274565',
internalId:  '',
customField: '20100308-021647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274586',
internalId:  '',
customField: '20100305-021019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274607',
internalId:  '',
customField: '20100304-210553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274628',
internalId:  '',
customField: '20100308-014024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274649',
internalId:  '',
customField: '20100308-014706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274670',
internalId:  '',
customField: '20100305-002028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272923',
internalId:  '',
customField: '20100304-195631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272944',
internalId:  '',
customField: '20100304-200952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275693',
internalId:  '',
customField: '20100303-213216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277393',
internalId:  '',
customField: '20100303-160125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279593',
internalId:  '',
customField: '20100303-211254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279614',
internalId:  '',
customField: '20100304-060459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282493',
internalId:  '',
customField: '20100304-200048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282514',
internalId:  '',
customField: '20100304-201515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282535',
internalId:  '',
customField: '20100304-202851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282556',
internalId:  '',
customField: '20100304-203355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286793',
internalId:  '',
customField: '20100306-015937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286814',
internalId:  '',
customField: '20100306-014842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286835',
internalId:  '',
customField: '20100306-015509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291493',
internalId:  '',
customField: '20100308-045120'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2GZ7';
var companyName   = 'My+Pampered+Pets';
var htmlTitle	  = 'www.mypamperedpets.co.nz';
var metaKeywords  = 'Pets%2C+Pets+ID+Tags%2C+Dog+birtday+party+supplies%2C+dog+accessories%2C+cat+accessories%2C+reptile+accesories%2C+small+animal+accessories%2C+bird+accessories%2C+fish+accessories%2CPet+accessories%2CPet+Fancy+Dress+Costumes%2CDog+birthday+parties%2CDog+birthday+cakes%2C+dogs+jewellery%2C+dog+life+jackets%2C+dogs+sunglasses%2C+pet+beds%2C+dogs+clothing%2C+dogs+shoes%2C+dogs+nightware%2C+collars%2C+dogs+strollers%2C+toys%2C+cat+toys%2C+dog+toys%2C+dogs+life+jackets%2C+dogs+collapsible+kennel%2C+cat+circus+gym%2C+dogs+agility+kit%2C+dogs+shoes%2C+dogs+slippers%2C+dogs+disposible+nappies%2C+dog+groomers+supplies%2C+pet+grooming+brushes%2C+dog+dental+care%2C+cats+dental+care%2C+dog+gourmet+treats%2C+cats+gourmet+treats%2C+dogs+robes%2C+cat+collars%2C+dog+collars%2C+';
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();
};
