/* [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','509',jdecode('Home'),jdecode(''), jdecode('%2F509.html'), 'true',[],'',''],
	['PAGE','9364',jdecode('+Ride+Sale%2FHouston+Area'),jdecode(''), jdecode('%2F9364.html'), 'true',[],'',''],
	['PAGE','28401',jdecode('Canvas%2C+Tent+%26+tarp'),jdecode(''), jdecode('%2F28401.html'), 'true',[],'',''],
	['PAGE','9328',jdecode('Turtles+%2F+Elephant+%2FRide'),jdecode(''), jdecode('%2F9328.html'), 'true',[],'',''],
	['PAGE','2620',jdecode('Trash+Can+Lids'),jdecode(''), jdecode('%2F2620.html'), 'true',[],'',''],
	['PAGE','15138',jdecode('New+Canvas+Top'),jdecode(''), jdecode('%2F15138.html'), 'true',[],'',''],
	['PAGE','8979',jdecode('Spider++'),jdecode(''), jdecode('%2F8979.html'), 'true',[],'',''],
	['PAGE','2925',jdecode('Slide-Bags'),jdecode(''), jdecode('%2F2925.html'), 'true',[],'',''],
	['PAGE','7928',jdecode('Go+Gator'),jdecode(''), jdecode('%2F7928.html'), 'true',[],'',''],
	['PAGE','10653',jdecode('Ticket+Trailer'),jdecode(''), jdecode('%2F10653.html'), 'true',[],'',''],
	['PAGE','9939',jdecode('Fun+House'),jdecode(''), jdecode('%2F9939.html'), 'true',[],'',''],
	['PAGE','8988',jdecode('Elephant+Ride'),jdecode(''), jdecode('%2F8988.html'), 'true',[],'',''],
	['PAGE','23822',jdecode('Paratrooper'),jdecode(''), jdecode('%2F23822.html'), 'true',[],'',''],
	['PAGE','28101',jdecode('Miami+++Trip'),jdecode(''), jdecode('%2F28101.html'), 'true',[],'',''],
	['PAGE','3911',jdecode('FreakOut+on+USA+Soil'),jdecode(''), jdecode('%2F3911.html'), 'true',[],'',''],
	['PAGE','15359',jdecode('New+Umbrella+Ride++T%2FM'),jdecode(''), jdecode('%2F15359.html'), 'true',[],'',''],
	['PAGE','23864',jdecode('Equipment+Ready+for+Sale'),jdecode(''), jdecode('%2F23864.html'), 'true',[],'',''],
	['PAGE','2629',jdecode('Carousel+Animals+'),jdecode(''), jdecode('%2F2629.html'), 'true',[],'',''],
	['PAGE','2766',jdecode('Fiberglass-Kiddy+Tubs'),jdecode(''), jdecode('%2F2766.html'), 'true',[],'',''],
	['PAGE','34122',jdecode('Miami+Type+Ride'),jdecode(''), jdecode('%2F34122.html'), 'true',[],'',''],
	['PAGE','7096',jdecode('S+A-+HYD+Elephant'),jdecode(''), jdecode('%2F7096.html'), 'true',[],'',''],
	['PAGE','7919',jdecode('Extreme+Freak-Out+Ride+'),jdecode(''), jdecode('%2F7919.html'), 'true',[],'',''],
	['PAGE','34401',jdecode('Southern+Body+Trailers%2FETC.'),jdecode(''), jdecode('%2F34401.html'), 'true',[],'',''],
	['PAGE','16701',jdecode('Orbitor'),jdecode(''), jdecode('%2F16701.html'), 'true',[],'',''],
	['PAGE','15341',jdecode('Amusement+Park+Equip.'),jdecode(''), jdecode('%2F15341.html'), 'true',[],'',''],
	['PAGE','23801',jdecode('ExTreme++Freak++Out'),jdecode(''), jdecode('%2F23801.html'), 'true',[],'',''],
	['PAGE','10608',jdecode('Bumper+Car+Ride+%2F+Neat'),jdecode(''), jdecode('%2F10608.html'), 'true',[],'',''],
	['PAGE','2934',jdecode('Carousels-Scenery'),jdecode(''), jdecode('%2F2934.html'), 'true',[],'',''],
	['PAGE','19301',jdecode('Wanted%2FStreet+Fighter'),jdecode(''), jdecode('%2F19301.html'), 'true',[],'',''],
	['PAGE','10644',jdecode('5+Ticket+BX+on+Trl.'),jdecode(''), jdecode('%2F10644.html'), 'true',[],'',''],
	['PAGE','7173',jdecode('Bumper+Cars%2F+LAMPTON'),jdecode(''), jdecode('%2F7173.html'), 'true',[],'',''],
	['PAGE','2611',jdecode('Bumper+Cars'),jdecode(''), jdecode('%2F2611.html'), 'true',[],'',''],
	['PAGE','8934',jdecode('Sky+Master'),jdecode(''), jdecode('%2F8934.html'), 'true',[],'',''],
	['PAGE','18701',jdecode('Hurricane'),jdecode(''), jdecode('%2F18701.html'), 'true',[],'',''],
	['PAGE','20001',jdecode('Roll+o+Plane+-+Coaster'),jdecode(''), jdecode('%2F20001.html'), 'true',[],'',''],
	['PAGE','5373',jdecode('Over-the-Top'),jdecode(''), jdecode('%2F5373.html'), 'true',[],'',''],
	['PAGE','7241',jdecode('Tempest'),jdecode(''), jdecode('%2F7241.html'), 'true',[],'',''],
	['PAGE','15332',jdecode('Elephant+Ride'),jdecode(''), jdecode('%2F15332.html'), 'true',[],'',''],
	['PAGE','33001',jdecode('F+-++80'),jdecode(''), jdecode('%2F33001.html'), 'true',[],'',''],
	['PAGE','15350',jdecode('Round+UP'),jdecode(''), jdecode('%2F15350.html'), 'true',[],'',''],
	['PAGE','3902',jdecode('Bumper+Car+Buildings'),jdecode(''), jdecode('%2F3902.html'), 'true',[],'',''],
	['PAGE','17322',jdecode('Swan+Chariot'),jdecode(''), jdecode('%2F17322.html'), 'true',[],'',''],
	['PAGE','6748',jdecode('Critter+Train%2F+Truck+Ride'),jdecode(''), jdecode('%2F6748.html'), 'true',[],'',''],
	['PAGE','34422',jdecode('Enterprize'),jdecode(''), jdecode('%2F34422.html'), 'true',[],'',''],
	['PAGE','5733',jdecode('Magic+Carpet+Ride'),jdecode(''), jdecode('%2F5733.html'), 'true',[],'',''],
	['PAGE','34101',jdecode('Hurricane'),jdecode(''), jdecode('%2F34101.html'), 'true',[],'',''],
	['PAGE','8970',jdecode('Crazy+Circus+FunHouse'),jdecode(''), jdecode('%2F8970.html'), 'true',[],'',''],
	['PAGE','7591',jdecode('Quad+Runner'),jdecode(''), jdecode('%2F7591.html'), 'true',[],'',''],
	['PAGE','28901',jdecode('Rock+o+Plane+w%2F+New+Tubs'),jdecode(''), jdecode('%2F28901.html'), 'true',[],'',''],
	['PAGE','9737',jdecode('Pirate+Boat'),jdecode(''), jdecode('%2F9737.html'), 'true',[],'',''],
	['PAGE','23885',jdecode('Slide'),jdecode(''), jdecode('%2F23885.html'), 'true',[],'',''],
	['PAGE','10626',jdecode('Sizzler+%2F+Wisdom'),jdecode(''), jdecode('%2F10626.html'), 'true',[],'',''],
	['PAGE','30901',jdecode('Rock-o-plane+'),jdecode(''), jdecode('%2F30901.html'), 'true',[],'',''],
	['PAGE','2943',jdecode('Game%2FFood+Trailer+%2FList+'),jdecode(''), jdecode('%2F2943.html'), 'true',[],'',''],
	['PAGE','17301',jdecode('Turtle+Train+Car'),jdecode(''), jdecode('%2F17301.html'), 'true',[],'',''],
	['PAGE','8961',jdecode('Gravitron'),jdecode(''), jdecode('%2F8961.html'), 'true',[],'',''],
	['PAGE','15314',jdecode('Slide+-+Hrubertz'),jdecode(''), jdecode('%2F15314.html'), 'true',[],'',''],
	['PAGE','9957',jdecode('Quasar+by+ARM'),jdecode(''), jdecode('%2F9957.html'), 'true',[],'',''],
	['PAGE','10617',jdecode('Magic+Carpet'),jdecode(''), jdecode('%2F10617.html'), 'true',[],'',''],
	['PAGE','23906',jdecode('26%26%23x27%3BSouthern+Body'),jdecode(''), jdecode('%2F23906.html'), 'true',[],'',''],
	['PAGE','10635',jdecode('Gravitron+%2F+Wisdom'),jdecode(''), jdecode('%2F10635.html'), 'true',[],'',''],
	['PAGE','8952',jdecode('Fire+BaLL'),jdecode(''), jdecode('%2F8952.html'), 'true',[],'',''],
	['PAGE','29301',jdecode('Canoe+Ride'),jdecode(''), jdecode('%2F29301.html'), 'true',[],'',''],
	['PAGE','9728',jdecode('Zipper+'),jdecode(''), jdecode('%2F9728.html'), 'true',[],'',''],
	['PAGE','23843',jdecode('AH+Sky-Fighter'),jdecode(''), jdecode('%2F23843.html'), 'true',[],'',''],
	['PAGE','9382',jdecode('Pace+Game+-+24%26%23x27%3B'),jdecode(''), jdecode('%2F9382.html'), 'true',[],'',''],
	['PAGE','2916',jdecode('Indiago'),jdecode(''), jdecode('%2F2916.html'), 'true',[],'',''],
	['PAGE','9966',jdecode('Flying+Bob'),jdecode(''), jdecode('%2F9966.html'), 'true',[],'',''],
	['PAGE','9346',jdecode('24%26%23x27%3B+Southern+Body+Trl.'),jdecode(''), jdecode('%2F9346.html'), 'true',[],'',''],
	['PAGE','9746',jdecode('Tilt-a-Whirl'),jdecode(''), jdecode('%2F9746.html'), 'true',[],'',''],
	['PAGE','7910',jdecode('Rock-Spin-Roll'),jdecode(''), jdecode('%2F7910.html'), 'true',[],'',''],
	['PAGE','2277',jdecode('Used+Rides+%2F+List'),jdecode(''), jdecode('%2F2277.html'), 'true',[],'',''],
	['PAGE','2952',jdecode('Need+to+Buy+%2F++Rides'),jdecode(''), jdecode('%2F2952.html'), 'true',[],'',''],
	['PAGE','6855',jdecode('Rock-o-plane'),jdecode(''), jdecode('%2F6855.html'), 'true',[],'',''],
	['PAGE','30101',jdecode('Zipper'),jdecode(''), jdecode('%2F30101.html'), 'true',[],'',''],
	['PAGE','9948',jdecode('Tilt+-+Sellner'),jdecode(''), jdecode('%2F9948.html'), 'true',[],'',''],
	['PAGE','8943',jdecode('Space+Train-Granny+Bug'),jdecode(''), jdecode('%2F8943.html'), 'true',[],'',''],
	['PAGE','8482',jdecode('Kiddy-Jeep+Ride'),jdecode(''), jdecode('%2F8482.html'), 'true',[],'',''],
	['PAGE','7883',jdecode('Tubs-of-Fun'),jdecode(''), jdecode('%2F7883.html'), 'true',[],'',''],
	['PAGE','15368',jdecode('Carousel+%2F+Nice'),jdecode(''), jdecode('%2F15368.html'), 'true',[],'',''],
	['PAGE','6946',jdecode('Gravitron+'),jdecode(''), jdecode('%2F6946.html'), 'true',[],'',''],
	['PAGE','8583',jdecode('kiddie+Cars+'),jdecode(''), jdecode('%2F8583.html'), 'true',[],'',''],
	['PAGE','8817',jdecode('Theel+%2F+Merry+go+Round'),jdecode(''), jdecode('%2F8817.html'), 'true',[],'',''],
	['PAGE','7901',jdecode('Slide'),jdecode(''), jdecode('%2F7901.html'), 'true',[],'',''],
	['PAGE','9355',jdecode('20%26%23x27%3B+Southern+Body+TRl.'),jdecode(''), jdecode('%2F9355.html'), 'true',[],'',''],
	['PAGE','7892',jdecode('F+W+-+Wisdom'),jdecode(''), jdecode('%2F7892.html'), 'true',[],'',''],
	['PAGE','7874',jdecode('Octopus+'),jdecode(''), jdecode('%2F7874.html'), 'true',[],'',''],
	['PAGE','15323',jdecode('Ferris+Wheel'),jdecode(''), jdecode('%2F15323.html'), 'true',[],'',''],
	['PAGE','7392',jdecode('Jumping+Star-+Zamperla'),jdecode(''), jdecode('%2F7392.html'), 'true',[],'',''],
	['PAGE','9337',jdecode('Water+Race+Game'),jdecode(''), jdecode('%2F9337.html'), 'true',[],'',''],
	['PAGE','15147',jdecode('14%26%23x27%3B+Southern+Body+Trl.+'),jdecode(''), jdecode('%2F15147.html'), 'true',[],'',''],
	['PAGE','8997',jdecode('Tip+Top'),jdecode(''), jdecode('%2F8997.html'), 'true',[],'',''],
	['PAGE','7401',jdecode('Merry-go-Round'),jdecode(''), jdecode('%2F7401.html'), 'true',[],'',''],
	['PAGE','4612',jdecode('Guestbook'),jdecode(''), jdecode('%2F4612%2Findex.html'), 'true',[ 
		['PAGE','9373',jdecode('20%26%23x27%3B++Carousel++Mangles'),jdecode(''), jdecode('%2F4612%2F9373.html'), 'true',[],'',''],
		['PAGE','4611',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F4612%2F4611.html'), 'false',[],'','']
	],'',''],
	['PAGE','9391',jdecode('Ticket+%26+Office+Trailer'),jdecode(''), jdecode('%2F9391.html'), 'true',[],'','']];
var siteelementCount=97;
theSitetree.topTemplateName='Cinema';
theSitetree.paletteFamily='B00E18';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16613';
theSitetree.graphicsetId='12208';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='B00E18';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTCPXC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cinema',
				paletteFamily: 	'B00E18',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16613',
				graphicsetId: 	'12208',
				contentColor: 	'FFFFFF',
				contentBGColor: 'B00E18',
				a_color: 		'000000',
				b_color: 		'C03E46',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '509',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20111215-120704'
};
webappMappings['1002']=webappMappings['1002-4612AHW050INXXM9']={
webappId:    '1002',
documentId:  '4612',
internalId:  '4612AHW050INXXM9',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-48412']={
webappId:    '1501',
documentId:  '509',
internalId:  '48412',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '509',
internalId:  '',
customField: '20111215-120252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2277',
internalId:  '',
customField: '20111215-122150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2611',
internalId:  '',
customField: '20111215-115925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3902',
internalId:  '',
customField: '20060430-031153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20090113-200356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20111212-143110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2620',
internalId:  '',
customField: '20111212-144450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2629',
internalId:  '',
customField: '20111212-153055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2766',
internalId:  '',
customField: '20111212-153759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2925',
internalId:  '',
customField: '20111212-144355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2934',
internalId:  '',
customField: '20100315-223635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20111212-143534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20101104-184348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20110914-124420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20111212-150214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15314',
internalId:  '',
customField: '20111215-123520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15323',
internalId:  '',
customField: '20111215-122444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15332',
internalId:  '',
customField: '20120123-125200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20111215-123400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17322',
internalId:  '',
customField: '20111215-121233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15341',
internalId:  '',
customField: '20101017-234922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15350',
internalId:  '',
customField: '20111215-121343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15359',
internalId:  '',
customField: '20111212-151945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15368',
internalId:  '',
customField: '20111223-141149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28101',
internalId:  '',
customField: '20111212-143251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8934',
internalId:  '',
customField: '20111215-120615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8943',
internalId:  '',
customField: '20101104-192023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8952',
internalId:  '',
customField: '20111215-124541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8961',
internalId:  '',
customField: '20111215-123445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8970',
internalId:  '',
customField: '20110914-124515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8979',
internalId:  '',
customField: '20111212-151543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8988',
internalId:  '',
customField: '20120123-124848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8997',
internalId:  '',
customField: '20101128-182621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8817',
internalId:  '',
customField: '20110314-230057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8583',
internalId:  '',
customField: '20070813-023415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8482',
internalId:  '',
customField: '20080521-012226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20111215-114209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6748',
internalId:  '',
customField: '20111107-125931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6855',
internalId:  '',
customField: '20101112-231224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7096',
internalId:  '',
customField: '20100317-204125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6946',
internalId:  '',
customField: '20111215-124116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7241',
internalId:  '',
customField: '20101105-182024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9957',
internalId:  '',
customField: '20111215-123806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7173',
internalId:  '',
customField: '20120124-071015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7591',
internalId:  '',
customField: '20111215-122027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5733',
internalId:  '',
customField: '20111215-121410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10608',
internalId:  '',
customField: '20100814-110257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10617',
internalId:  '',
customField: '20111215-124001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10626',
internalId:  '',
customField: '20111215-122238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10635',
internalId:  '',
customField: '20080503-020742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10644',
internalId:  '',
customField: '20101128-184959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10653',
internalId:  '',
customField: '20120123-131714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7874',
internalId:  '',
customField: '20111215-124943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9966',
internalId:  '',
customField: '20111215-125212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7883',
internalId:  '',
customField: '20110121-183634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7892',
internalId:  '',
customField: '20111215-125057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9948',
internalId:  '',
customField: '20101128-181847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20120104-103407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9939',
internalId:  '',
customField: '20111213-123644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7910',
internalId:  '',
customField: '20111215-125121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7919',
internalId:  '',
customField: '20120104-115906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7928',
internalId:  '',
customField: '20120123-131303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9728',
internalId:  '',
customField: '20111215-125245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9737',
internalId:  '',
customField: '20111212-152758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9746',
internalId:  '',
customField: '20111215-125016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20120103-162545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15138',
internalId:  '',
customField: '20111212-150045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15147',
internalId:  '',
customField: '20100317-200439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9328',
internalId:  '',
customField: '20120118-011228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9337',
internalId:  '',
customField: '20070930-142420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9346',
internalId:  '',
customField: '20100315-122005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9355',
internalId:  '',
customField: '20071120-034034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9364',
internalId:  '',
customField: '20120123-124407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9373',
internalId:  '',
customField: '20101128-224414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9382',
internalId:  '',
customField: '20100425-110235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9391',
internalId:  '',
customField: '20101126-003835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5373',
internalId:  '',
customField: '20100622-133309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2916',
internalId:  '',
customField: '20100709-203251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2943',
internalId:  '',
customField: '20090101-213810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7392',
internalId:  '',
customField: '20110914-120430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100624-224454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2952',
internalId:  '',
customField: '20111212-151812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3911',
internalId:  '',
customField: '20111212-143833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20060511-145838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4611',
internalId:  '',
customField: '20060430-154550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20120124-065915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23843',
internalId:  '',
customField: '20111215-125454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23864',
internalId:  '',
customField: '20111215-103454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23885',
internalId:  '',
customField: '20111215-125531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23906',
internalId:  '',
customField: '20081212-190110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20120104-104014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20120104-104659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20111215-114258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20120104-085216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20111212-144627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34422',
internalId:  '',
customField: '20111212-152116'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXM9';
var companyName   = 'Murphy++amusements+++++*++Harry+Murphy++*';
var htmlTitle	  = 'Murphy+Amusements';
var metaKeywords  = 'Carnival+Rides%2C+Dodgem+bumper+cars%2C+Amusements+Parks%2CCarousels%2C+Food+Trailers%2C%2C+Game+Trailers%2C+Merry-go-rounds';
var metaContents  = 'Carnival+%2F+Amusement+rides+';
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();
};

