/* [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','5101',jdecode('Home'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','5152',jdecode('About+Us+%2F+Contact+Us'),jdecode(''),'/5152.html','true',[],'',''],
	['PAGE','219656',jdecode('Weddings+%26+Packages'),jdecode(''),'/219656/index.html','true',[ 
		['PAGE','219856',jdecode('*Alberton+Historic+Home'),jdecode(''),'/219656/219856.html','true',[],'',''],
		['PAGE','219940',jdecode('*Auckland+Skycity'),jdecode(''),'/219656/219940.html','true',[],'',''],
		['PAGE','219877',jdecode('*Beach+Wedding'),jdecode(''),'/219656/219877.html','true',[],'',''],
		['PAGE','219961',jdecode('*St+Matthews+Church'),jdecode(''),'/219656/219961.html','true',[],'','']
	],'',''],
	['PAGE','197256',jdecode('Hot+Deals'),jdecode(''),'/197256.html','true',[],'',''],
	['PAGE','218356',jdecode('Rotorua+Weddings'),jdecode(''),'/218356.html','true',[],'',''],
	['PAGE','5236',jdecode('Wedding+Venues'),jdecode(''),'/5236/index.html','true',[ 
		['PAGE','224656',jdecode('*Alberton+Historic+Home'),jdecode(''),'/5236/224656.html','true',[],'',''],
		['PAGE','224677',jdecode('*Beach+Wedding'),jdecode(''),'/5236/224677.html','true',[],'',''],
		['PAGE','215656',jdecode('*Duxton+Hotel+'),jdecode(''),'/5236/215656.html','true',[],'',''],
		['PAGE','91922',jdecode('*Floating+Pavilion'),jdecode(''),'/5236/91922.html','true',[],'',''],
		['PAGE','87201',jdecode('*Mecca+Stone+House'),jdecode(''),'/5236/87201.html','true',[],'',''],
		['PAGE','91943',jdecode('*Ocean+Eagle+Charters'),jdecode(''),'/5236/91943.html','true',[],'',''],
		['PAGE','104422',jdecode('*SkyCity+Grand+Hotel'),jdecode(''),'/5236/104422.html','true',[],'',''],
		['PAGE','224698',jdecode('*St+Matthews+Church'),jdecode(''),'/5236/224698.html','true',[],'',''],
		['PAGE','126856',jdecode('*Takapuna+Boating+Club'),jdecode(''),'/5236/126856.html','true',[],'','']
	],'',''],
	['PAGE','5215',jdecode('-----------------------------'),jdecode(''),'/5215.html','true',[],'',''],
	['PAGE','87222',jdecode('Accommodation'),jdecode(''),'/87222/index.html','true',[ 
		['PAGE','215677',jdecode('*Duxton+Hotel+'),jdecode(''),'/87222/215677.html','true',[],'',''],
		['PAGE','103901',jdecode('*Hyatt+Regency'),jdecode(''),'/87222/103901.html','true',[],'',''],
		['PAGE','87243',jdecode('*Rendezvous+Hotel'),jdecode(''),'/87222/87243.html','true',[],'',''],
		['PAGE','103201',jdecode('*SkyCity+Grand+Hotel'),jdecode(''),'/87222/103201.html','true',[],'','']
	],'',''],
	['PAGE','5278',jdecode('Beauty+%26+Spa'),jdecode(''),'/5278/index.html','true',[ 
		['PAGE','107122',jdecode('*Lou+Lou%26%23x27%3Bs+Beauty+'),jdecode(''),'/5278/107122.html','true',[],'','']
	],'',''],
	['PAGE','19601',jdecode('Bridalwear+%26+Accessories'),jdecode(''),'/19601/index.html','true',[ 
		['PAGE','41301',jdecode('*Jessica+Bridal'),jdecode(''),'/19601/41301.html','true',[],'','']
	],'',''],
	['PAGE','5341',jdecode('Bridal+Transport'),jdecode(''),'/5341/index.html','true',[ 
		['PAGE','162556',jdecode('*Champagne+Jaguars'),jdecode(''),'/5341/162556.html','true',[],'',''],
		['PAGE','62043',jdecode('*Hollywood+Limousine'),jdecode(''),'/5341/62043.html','true',[],'',''],
		['PAGE','142356',jdecode('*Hummerzine'),jdecode(''),'/5341/142356.html','true',[],'',''],
		['PAGE','160056',jdecode('*Premiere+Limousines'),jdecode(''),'/5341/160056.html','true',[],'',''],
		['PAGE','98843',jdecode('*Prestige+Rental+Cars'),jdecode(''),'/5341/98843.html','true',[],'',''],
		['PAGE','110822',jdecode('*Silver+Service+Cars'),jdecode(''),'/5341/110822.html','true',[],'','']
	],'',''],
	['PAGE','5362',jdecode('Cake+Decorators'),jdecode(''),'/5362/index.html','true',[ 
		['PAGE','24622',jdecode('*Celebration+Cakes'),jdecode(''),'/5362/24622.html','true',[],'',''],
		['PAGE','123056',jdecode('*Rocket+Kitchen'),jdecode(''),'/5362/123056.html','true',[],'','']
	],'',''],
	['PAGE','5383',jdecode('Catering'),jdecode(''),'/5383/index.html','true',[ 
		['PAGE','125556',jdecode('*Corporate+Caterers'),jdecode(''),'/5383/125556.html','true',[],'',''],
		['PAGE','23901',jdecode('*Hamish+Stewart+Catering'),jdecode(''),'/5383/23901.html','true',[],'',''],
		['PAGE','123077',jdecode('*Rocket+Kitchen'),jdecode(''),'/5383/123077.html','true',[],'',''],
		['PAGE','111901',jdecode('*Skycity+Catering'),jdecode(''),'/5383/111901.html','true',[],'',''],
		['PAGE','121856',jdecode('*The+Difference'),jdecode(''),'/5383/121856.html','true',[],'','']
	],'',''],
	['PAGE','5404',jdecode('Celebrants'),jdecode(''),'/5404/index.html','true',[ 
		['PAGE','65301',jdecode('*D+Brown%2FAuckland'),jdecode(''),'/5404/65301.html','true',[],'',''],
		['PAGE','174756',jdecode('*R+Pym%2FGreen+Bay'),jdecode(''),'/5404/174756.html','true',[],'',''],
		['PAGE','29764',jdecode('*P+Hardley%2FTitirangi'),jdecode(''),'/5404/29764.html','true',[],'',''],
		['PAGE','112943',jdecode('*M+Jury%2FNorth+Shore'),jdecode(''),'/5404/112943.html','true',[],'',''],
		['PAGE','113722',jdecode('*LTurner%2FHibiscus+Coast'),jdecode(''),'/5404/113722.html','true',[],'',''],
		['PAGE','183156',jdecode('*L++Hall%2FNorth+Shore'),jdecode(''),'/5404/183156.html','true',[],'',''],
		['PAGE','112922',jdecode('*L+Mc+Leod%2FWarkworth'),jdecode(''),'/5404/112922.html','true',[],'',''],
		['PAGE','168977',jdecode('*K+Darby%2FWestmere'),jdecode(''),'/5404/168977.html','true',[],'',''],
		['PAGE','112901',jdecode('*C+Young%2FHowick'),jdecode(''),'/5404/112901.html','true',[],'',''],
		['PAGE','178177',jdecode('*B+Lilly%2FNorth+Shore'),jdecode(''),'/5404/178177.html','true',[],'',''],
		['PAGE','178156',jdecode('*A+Magilsen%2FPapakura'),jdecode(''),'/5404/178156.html','true',[],'','']
	],'',''],
	['PAGE','5446',jdecode('Equipment++Hire'),jdecode(''),'/5446/index.html','true',[ 
		['PAGE','192456',jdecode('*Creations+by+Morris'),jdecode(''),'/5446/192456.html','true',[],'',''],
		['PAGE','114977',jdecode('*Good+Time+Bus'),jdecode(''),'/5446/114977.html','true',[],'',''],
		['PAGE','41469',jdecode('*Insphire+Equipment+Hire'),jdecode(''),'/5446/41469.html','true',[],'','']
	],'',''],
	['PAGE','5488',jdecode('Gifts+%26+Favours'),jdecode(''),'/5488/index.html','true',[ 
		['PAGE','173456',jdecode('*Devonport+Chocolates'),jdecode(''),'/5488/173456.html','true',[],'',''],
		['PAGE','73422',jdecode('*NZ+Choc+Fountain'),jdecode(''),'/5488/73422.html','true',[],'','']
	],'',''],
	['PAGE','5509',jdecode('Hair+%26+Beauty'),jdecode(''),'/5509/index.html','true',[ 
		['PAGE','66101',jdecode('*Beauty+on+Demand'),jdecode(''),'/5509/66101.html','true',[],'',''],
		['PAGE','80101',jdecode('*No+18+Hair+%26+Beauty'),jdecode(''),'/5509/80101.html','true',[],'',''],
		['PAGE','81501',jdecode('*Sheen+Make-Up'),jdecode(''),'/5509/81501.html','true',[],'',''],
		['PAGE','109522',jdecode('*Sirocco+Hair+%26+Beauty'),jdecode(''),'/5509/109522.html','true',[],'','']
	],'',''],
	['PAGE','5530',jdecode('Jewellery+%26+Rings'),jdecode(''),'/5530/index.html','true',[ 
		['PAGE','83543',jdecode('*Diamonds+Forever'),jdecode(''),'/5530/83543.html','true',[],'',''],
		['PAGE','184777',jdecode('*G+Holland+Fine+Jewellery'),jdecode(''),'/5530/184777.html','true',[],'',''],
		['PAGE','60043',jdecode('*Guthries+Jewellers'),jdecode(''),'/5530/60043.html','true',[],'',''],
		['PAGE','83564',jdecode('*Partridge+Jewellers'),jdecode(''),'/5530/83564.html','true',[],'',''],
		['PAGE','133156',jdecode('*Polished+Diamonds'),jdecode(''),'/5530/133156.html','true',[],'',''],
		['PAGE','60064',jdecode('*The+Diamond+Shop'),jdecode(''),'/5530/60064.html','true',[],'','']
	],'',''],
	['PAGE','5572',jdecode('Music+%26+Entertainment'),jdecode(''),'/5572/index.html','true',[ 
		['PAGE','107901',jdecode('*The+Perfect+Wedding'),jdecode(''),'/5572/107901.html','true',[],'',''],
		['PAGE','51701',jdecode('*Troika+String+Quartet'),jdecode(''),'/5572/51701.html','true',[],'','']
	],'',''],
	['PAGE','5593',jdecode('Photography'),jdecode(''),'/5593/index.html','true',[ 
		['PAGE','175777',jdecode('*Carla-+Ariane'),jdecode(''),'/5593/175777.html','true',[],'',''],
		['PAGE','174777',jdecode('*Christine+Syme'),jdecode(''),'/5593/174777.html','true',[],'','']
	],'',''],
	['PAGE','210256',jdecode('Wedding+Planners'),jdecode(''),'/210256.html','true',[],'',''],
	['PAGE','18601',jdecode('Wedding+Stationery'),jdecode(''),'/18601/index.html','true',[ 
		['PAGE','69201',jdecode('*Hayfords'),jdecode(''),'/18601/69201.html','true',[],'','']
	],'',''],
	['PAGE','5656',jdecode('-----------------------------'),jdecode(''),'/5656.html','true',[],'',''],
	['PAGE','5173',jdecode('Advertising'),jdecode(''),'/5173.html','true',[],'',''],
	['PAGE','20901',jdecode('Links'),jdecode(''),'/20901.html','true',[],'',''],
	['PAGE','6301',jdecode('Terms+%26+Conditions'),jdecode(''),'/6301.html','true',[],'','']];
var siteelementCount=89;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFFBF2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10823';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFBF2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFFBF2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10823',
				contentColor: 	'000000',
				contentBGColor: 'FFFBF2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100122-224730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20091029-051422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5236',
internalId:  '',
customField: '20091110-044458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5278',
internalId:  '',
customField: '20091112-031555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20090305-031447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20090127-205854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5341',
internalId:  '',
customField: '20090907-164804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5362',
internalId:  '',
customField: '20091111-003109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5383',
internalId:  '',
customField: '20100121-231851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5404',
internalId:  '',
customField: '20091104-220100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5446',
internalId:  '',
customField: '20090907-170408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5488',
internalId:  '',
customField: '20091122-180301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5509',
internalId:  '',
customField: '20090907-171953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5530',
internalId:  '',
customField: '20090907-172214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5572',
internalId:  '',
customField: '20091112-205901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5593',
internalId:  '',
customField: '20091122-174126'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5173',
internalId:  '',
customField: '20090619-002958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20090626-223220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20090907-174826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5215',
internalId:  '',
customField: '20090114-215849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5656',
internalId:  '',
customField: '20090114-215850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20091021-163450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20091019-054205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24622',
internalId:  '',
customField: '20091122-171934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29764',
internalId:  '',
customField: '20090130-180010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51701',
internalId:  '',
customField: '20090318-034844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20090131-180812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41469',
internalId:  '',
customField: '20090216-204343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192456',
internalId:  '',
customField: '20090617-033813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107122',
internalId:  '',
customField: '20090328-024951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60043',
internalId:  '',
customField: '20090617-040615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60064',
internalId:  '',
customField: '20090210-041416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62043',
internalId:  '',
customField: '20091108-211823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20090531-013835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66101',
internalId:  '',
customField: '20090210-210204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20090212-025346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73422',
internalId:  '',
customField: '20091122-181935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80101',
internalId:  '',
customField: '20090305-031040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197256',
internalId:  '',
customField: '20100113-211337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83564',
internalId:  '',
customField: '20090305-032357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83543',
internalId:  '',
customField: '20090305-032739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87222',
internalId:  '',
customField: '20090907-163501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87243',
internalId:  '',
customField: '20090309-164653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87201',
internalId:  '',
customField: '20090309-163433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91922',
internalId:  '',
customField: '20090328-064612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91943',
internalId:  '',
customField: '20090427-004608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218356',
internalId:  '',
customField: '20100113-210711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219656',
internalId:  '',
customField: '20100129-030555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219856',
internalId:  '',
customField: '20100123-013438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219877',
internalId:  '',
customField: '20100123-030253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224656',
internalId:  '',
customField: '20100129-025359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98843',
internalId:  '',
customField: '20090426-234057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103201',
internalId:  '',
customField: '20090328-022634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104422',
internalId:  '',
customField: '20090328-015757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103901',
internalId:  '',
customField: '20090907-163619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107901',
internalId:  '',
customField: '20090328-051103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109522',
internalId:  '',
customField: '20090328-044901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110822',
internalId:  '',
customField: '20090406-215521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111901',
internalId:  '',
customField: '20090329-221956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112901',
internalId:  '',
customField: '20090531-020239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112922',
internalId:  '',
customField: '20091028-043106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112943',
internalId:  '',
customField: '20090531-011904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113722',
internalId:  '',
customField: '20090531-011950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114977',
internalId:  '',
customField: '20090328-031441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121856',
internalId:  '',
customField: '20090329-233733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123056',
internalId:  '',
customField: '20091104-221635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123077',
internalId:  '',
customField: '20091021-052334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125556',
internalId:  '',
customField: '20090401-150744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126856',
internalId:  '',
customField: '20090407-070626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133156',
internalId:  '',
customField: '20090407-162744'
};
webappMappings['1501']=webappMappings['1501-13378383']={
webappId:    '1501',
documentId:  '5101',
internalId:  '13378383',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224677',
internalId:  '',
customField: '20100129-030058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224698',
internalId:  '',
customField: '20100129-030522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142356',
internalId:  '',
customField: '20090617-031440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210256',
internalId:  '',
customField: '20091104-215507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160056',
internalId:  '',
customField: '20090512-040429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173456',
internalId:  '',
customField: '20090531-023012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162556',
internalId:  '',
customField: '20090531-005753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168977',
internalId:  '',
customField: '20091013-223355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219940',
internalId:  '',
customField: '20100123-023608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174756',
internalId:  '',
customField: '20090531-011528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174777',
internalId:  '',
customField: '20091020-221334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175777',
internalId:  '',
customField: '20090531-040956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183156',
internalId:  '',
customField: '20090813-182301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178156',
internalId:  '',
customField: '20090531-015934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178177',
internalId:  '',
customField: '20090531-015818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215656',
internalId:  '',
customField: '20091201-052541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215677',
internalId:  '',
customField: '20091201-052827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219961',
internalId:  '',
customField: '20100122-233912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184777',
internalId:  '',
customField: '20090531-030541'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INP3LH';
var companyName   = 'Auckland+Weddings+Online';
var htmlTitle	  = 'Auckland+Weddings+Online+promoting+Auckland+the+city+of+sails+as+your+dream+wedding+destination+and+honeymoon+destination+of+New+Zealand.';
var metaKeywords  = 'auckland+wedding+venues%2Cauckland+wedding+expo+2010%2Cauckland+wedding+show%2Cauckland+wedding+photographers%2Cauckland+wedding+dresses%2Cauckland+wedding+photography%2Cauckland+wedding+cakes%2Cauckland+wedding+cars%2Cauckland+wedding+expo%2Cwedding+planner+auckland%2Cweddings+auckland%2Cwedding+ceremony+auckland%2Cwedding+cars+auckland%2Cwedding+caterers+auckland%2Cwedding+hire+auckland%2Cwedding+florists+auckland%2Cwedding+venues+auckland%2Cwedding+reception+auckland%2Cwedding+hire+auckland%2Cnew+zealand+weddings%2Cweddings+nz%2Cnew+zealand+wedding+packages%2Cnew+zealand+honeymoon+packages%2Choneymoon+packages+new+zealand%2Choneymoon+packages+auckland%2C';
var metaContents  = 'new+zealand+dream+wedding+packages%2Cauckland+wedding+destination%2Cgetting+married+in+auckland%2Cauckland+city+of+sails%2Cgetting+married+in+auckland%2Cdream+honeymoon+in+auckland%2Caucklands+no1+wedding+service+directory%2Cnew+zealand+dream+wedding%2C';
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();
};
