/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','5701',jdecode('Jumpers+%2F+Inflatables'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','21601',jdecode('RESERVE+ONLINE'),jdecode(''),'/21601.html','true',[],'',''],
	['PAGE','62246',jdecode('Generator+Rental'),jdecode(''),'/62246.html','true',[],'',''],
	['PAGE','11101',jdecode('Concession+Machines'),jdecode(''),'/11101.html','true',[],'',''],
	['PAGE','5743',jdecode('Tables%2FChairs%2FCanopy'),jdecode(''),'/5743.html','true',[],'',''],
	['PAGE','38801',jdecode('Coolers%2C+Fans%2C+Heaters'),jdecode(''),'/38801.html','true',[],'',''],
	['PAGE','27301',jdecode('Food+Warmers%2C+Coolers'),jdecode(''),'/27301.html','true',[],'',''],
	['PAGE','62645',jdecode('DJ%2C+Mariachi%2C+Tacos+'),jdecode(''),'/62645.html','true',[],'',''],
	['PAGE','64612',jdecode('Magician%2FIllusionist'),jdecode(''),'/64612.html','true',[],'',''],
	['PAGE','35801',jdecode('Karaoke+Options'),jdecode(''),'/35801.html','true',[],'',''],
	['PAGE','5806',jdecode('Helium+%26+Balloons'),jdecode(''),'/5806.html','true',[],'',''],
	['PAGE','32301',jdecode('Games+for+Rent'),jdecode(''),'/32301.html','true',[],'',''],
	['PAGE','5827',jdecode('Pi%C3%B1atas+%26+More'),jdecode(''),'/5827.html','true',[],'',''],
	['PAGE','578',jdecode('E-Z+Package+Deals'),jdecode(''),'/578.html','true',[],'',''],
	['PAGE','48401',jdecode('Detailed+Images'),jdecode(''),'/48401.html','false',[],'',''],
	['PAGE','63669',jdecode('Contact+Us'),jdecode(''),'/63669.html','true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Bubbles';
theSitetree.paletteFamily='FF7C00';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='14';
theSitetree.graphicsetId='10';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bubbles',
				paletteFamily: 	'FF7C00',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'14',
				graphicsetId: 	'10',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'FF7C00',
				b_color: 		'FF8900',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110716-094837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20110401-172526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62246',
internalId:  '',
customField: '20110716-105513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32301',
internalId:  '',
customField: '20100423-105957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20110716-113343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20110716-111814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20100423-061144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20100309-224233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20100417-124710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5806',
internalId:  '',
customField: '20110529-100107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5827',
internalId:  '',
customField: '20110716-113941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100423-070218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20100716-070124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20100423-201635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62645',
internalId:  '',
customField: '20110716-113750'
};
webappMappings['7008']=webappMappings['7008-5366']={
webappId:    '7008',
documentId:  '21601',
internalId:  '5366',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-7332520']={
webappId:    '1501',
documentId:  '401',
internalId:  '7332520',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63669',
internalId:  '',
customField: '20110716-114051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64612',
internalId:  '',
customField: '20110529-104854'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INX2MC';
var companyName   = 'E-Z+jumpers';
var htmlTitle	  = 'E-Z+jumpers+%28951%29+925-8088';
var metaKeywords  = 'Jumper++Party++Inflatable++Bouncer++Moon+Walk++Party+Rental++Party+Supplies++Party+Supply+Consession+Machine+Snow+Cone+Cotton+Candy+Popcorn+Hot+Dog+water+slide+party+needs+combo+balloons+hellium+canopy+slides+Linens+Margarita+Drink+Mixer+Heaters+Karaoke+Pinatas+Chafers+Food+Warmers+Chafing+Dishes+DJ+Jolly+Jump+Jumps+Moonwalk+jollyjump+Fondue+Heater+Tent+Tents+Heaters+Mickey+Mouse+Jumper+Tinker+Bell+Tinkerbell+Princess+Toy+Story+Buzz+Lightyear+Diego+Dora+SpongeBob+Shrek+Thomas+Curious+George+Superman+Spiderman+Winnie+the+Pooh+Sports+Transformers+Circus+Carnival+Elmo+Sesame+Street+Power+Rangers+Speed+Racer+Monster+Truck+Monster+Trucks+Dirt+Bike+Strawberry+Shortcake+Firefighter+Fire+Truck+Castle+Jump+Jumpy+mickey+mouse+mickey+and+friends+toy+story+boxing+ring+buzz+lightyear+woody';
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();
};

