/* [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','2601',jdecode('Dr.+Drumtastick++Home+'),jdecode(''),'/2601.html','true',[],'',''],
	['PAGE','3001',jdecode('About+Dr.+Drumtastick'),jdecode(''),'/3001.html','true',[],'',''],
	['PAGE','10801',jdecode('Awards+%26+Testimonials+'),jdecode(''),'/10801.html','true',[],'',''],
	['PAGE','3043',jdecode('Coloring+Page+'),jdecode(''),'/3043.html','true',[],'',''],
	['PAGE','3022',jdecode('Dr.+Drumtastick%26%23x27%3Bs+Friends'),jdecode(''),'/3022.html','true',[],'',''],
	['PAGE','21712',jdecode('Balloons+%26+Face+Designs'),jdecode(''),'/21712.html','true',[],'',''],
	['PAGE','8701',jdecode('Now+Appearing'),jdecode(''),'/8701.html','false',[],'',''],
	['PAGE','17912',jdecode('Rates'),jdecode(''),'/17912.html','true',[],'',''],
	['PAGE','3064',jdecode('Contact+Dr.+Drumtastick+Entertainment+Or+Request+Quote+for+Dr.+Drumtastick+for+your+Event'),jdecode(''),'/3064.html','true',[],'',''],
	['PAGE','3106',jdecode('Sign+our+Guestbook+'),jdecode(''),'/3106.html','true',[],'',''],
	['PAGE','3085',jdecode('Online+Products+Store'),jdecode(''),'/3085.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Cinema';
theSitetree.paletteFamily='2F952F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16612';
theSitetree.graphicsetId='12210';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2F952F';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cinema',
				paletteFamily: 	'2F952F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16612',
				graphicsetId: 	'12210',
				contentColor: 	'FFFFFF',
				contentBGColor: '2F952F',
				a_color: 		'000000',
				b_color: 		'59AA59',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-3106ahw050inzttg']={
webappId:    '1002',
documentId:  '3106',
internalId:  '3106ahw050inzttg',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20110227-092038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20100524-181121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3043',
internalId:  '',
customField: '20100524-161756'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3064',
internalId:  '',
customField: '20100515-091944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3106',
internalId:  '',
customField: '20100514-135747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3085',
internalId:  '',
customField: '20101127-115033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3022',
internalId:  '',
customField: '20110227-085932'
};
webappMappings['7060']=webappMappings['7060-63e33d70902640f648907173298e777b']={
webappId:    '7060',
documentId:  '3022',
internalId:  '63e33d70902640f648907173298e777b',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-8125']={
webappId:    '7008',
documentId:  '3064',
internalId:  '8125',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-7914786']={
webappId:    '1501',
documentId:  '2601',
internalId:  '7914786',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20100524-151545'
};
webappMappings['7060']=webappMappings['7060-a24de9ea367ca7acc7dad43c05d27aa1']={
webappId:    '7060',
documentId:  '10801',
internalId:  'a24de9ea367ca7acc7dad43c05d27aa1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20110227-094803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17912',
internalId:  '',
customField: '20101213-203859'
};
webappMappings['7060']=webappMappings['7060-0f2a66f48530098e4059dd0d86d059dd']={
webappId:    '7060',
documentId:  '21712',
internalId:  '0f2a66f48530098e4059dd0d86d059dd',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21712',
internalId:  '',
customField: '20110301-141832'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZTTG';
var companyName   = 'Dr.+Drumtastick+Entertainment+INC';
var htmlTitle	  = 'Dr.+Drumtastick+Entertainment';
var metaKeywords  = 'funtasticksupplies%2Cfuntasticsupplies%2CElectric+Balloon+pumps%2C+Wolfe+face+paint%2CMehron%2CqUALATEX+balloons%2CParadise+face+paint%2C+Snazaroo%2CGlimmer+Glitter+tattoo%2C+EZ+Up+tents%2C+Magic+supplies%2C+clown+noses%2C+clown+props%2CBen-Nye%2Cproface%2CBalloon+accessories%2C+balloon+cutters%2C+balloon+handpumps%2CBirthday+Parties%2C+Clowns%2C+Hobo%2C+Tramp%2CGlitter+tattoos%2C+face+Painting%2C+Orlando%2C+Tampa%2C+Central+Florida%2C+Spa+parties%2C+Bar%2FBat+Mitzvah%2C+wedding%2C+Body+art%2CCarnival+Snacks%2C+Fundraisers%2C+Grand+Openings%2C+magic%2C+Balloon+Artist%2C+Roaming+Entertainers%2C';
var metaContents  = 'We+provide+quality+Entertainement.+Services+available+are%3A+Clowns%2CFace+Painting%2C+Glitter+body+art%2C+magic%2C+Balloon+Twisting%2C+Arts+%26+crafts%2C+Balloon+Parties%2C+Carnival+Snacks%2C+Catering%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();
};

