/* [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 theSitetree=[ 
	['PAGE','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','20243',jdecode('Plan+Your+Event'),jdecode(''),'/20243/index.html','true',[ 
		['PAGE','20264',jdecode('Event+Packages'),jdecode(''),'/20243/20264.html','true',[],''],
		['PAGE','20285',jdecode('Music'),jdecode(''),'/20243/20285.html','true',[],''],
		['PAGE','20306',jdecode('Tents+%26+Chairs'),jdecode(''),'/20243/20306.html','true',[],''],
		['PAGE','20327',jdecode('Party+Supplies'),jdecode(''),'/20243/20327.html','true',[],''],
		['PAGE','20348',jdecode('Check+Availability'),jdecode(''),'/20243/20348.html','true',[],'']
	],''],
	['PAGE','20369',jdecode('Chameleon+Jukebox'),jdecode(''),'/20369/index.html','true',[ 
		['PAGE','20411',jdecode('Rent+a+Jukebox+'),jdecode(''),'/20369/20411.html','true',[],''],
		['PAGE','20432',jdecode('Buy+or+Lease+a+Jukebox'),jdecode(''),'/20369/20432.html','true',[],''],
		['PAGE','43601',jdecode('As+seen+in+Mobile+Beat+Mag'),jdecode(''),'/20369/43601.html','true',[],'']
	],''],
	['PAGE','20453',jdecode('Karaoke'),jdecode(''),'/20453/index.html','true',[ 
		['PAGE','20474',jdecode('Show+Schedule'),jdecode(''),'/20453/20474.html','true',[],''],
		['PAGE','20495',jdecode('Karaoke+Rental'),jdecode(''),'/20453/20495.html','true',[],'']
	],''],
	['PAGE','29801',jdecode('About+us'),jdecode(''),'/29801.html','true',[],''],
	['PAGE','29822',jdecode('Contact+Us'),jdecode(''),'/29822/index.html','true',[ 
		['PAGE','59001',jdecode('Map'),jdecode(''),'/29822/59001.html','true',[],'']
	],''],
	['PAGE','20537',jdecode('Photo+Gallery'),jdecode(''),'/20537.html','true',[],''],
	['PAGE','20516',jdecode('From+Our+Clients'),jdecode(''),'/20516.html','true',[],''],
	['PAGE','57001',jdecode('Clothing+and+party+store'),jdecode(''),'/57001.html','true',[],''],
	['PAGE','51501',jdecode('Online+Office'),jdecode(''),'/51501/index.html','true',[ 
		['PAGE','46106',jdecode('Guestbook'),jdecode(''),'/51501/46106.html','true',[],''],
		['PAGE','46101',jdecode('Read+Guestbook'),jdecode(''),'/51501/46101.html','false',[],'']
	],''],
	['PAGE','46601',jdecode('For+Our+Military'),jdecode(''),'/46601.html','true',[],''],
	['PAGE','20579',jdecode('Contact+Webmaster'),jdecode(''),'/20579.html','true',[],''],
	['PAGE','70501',jdecode('Jukebox+purchase+and+more'),jdecode(''),'/70501.html','true',[],''],
	['PAGE','74601',jdecode('Current+Contests'),jdecode(''),'/74601.html','true',[],''],
	['PAGE','80701',jdecode('Bleachers+Pictures'),jdecode(''),'/80701.html','false',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Nebula';
theSitetree.paletteFamily='245298';
theSitetree.keyvisualId='8801';
theSitetree.keyvisualName='kv_8801.jpg';
theSitetree.fontsetId='17191';
theSitetree.graphicsetId='12475';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='6D93CC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Nebula',
				paletteFamily: 	'245298',
				keyvisualId: 	'8801',
				keyvisualName: 	'kv_8801.jpg',
				fontsetId: 		'17191',
				graphicsetId: 	'12475',
				contentColor: 	'000000',
				contentBGColor: '6D93CC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				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['7008']=webappMappings['7008-12']={
webappId:    '7008',
documentId:  '20579',
internalId:  '12',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-46106abri10in2767']={
webappId:    '1002',
documentId:  '46106',
internalId:  '46106abri10in2767',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '59001',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['4001']=webappMappings['4001-11611859']={
webappId:    '4001',
documentId:  '70501',
internalId:  '11611859',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100105-120716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20243',
internalId:  '',
customField: '20100105-120735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20264',
internalId:  '',
customField: '20100105-120758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20285',
internalId:  '',
customField: '20100105-120823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20306',
internalId:  '',
customField: '20100105-120852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20327',
internalId:  '',
customField: '20100105-120915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20348',
internalId:  '',
customField: '20100105-120934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20369',
internalId:  '',
customField: '20100112-145244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20411',
internalId:  '',
customField: '20100105-121023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20432',
internalId:  '',
customField: '20100105-121047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20100105-121106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20453',
internalId:  '',
customField: '20100105-121128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20474',
internalId:  '',
customField: '20100112-145001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20495',
internalId:  '',
customField: '20100105-121157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20100105-121225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29822',
internalId:  '',
customField: '20100105-121301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59001',
internalId:  '',
customField: '20100105-121317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20537',
internalId:  '',
customField: '20100105-121337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20516',
internalId:  '',
customField: '20100105-121403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20100105-121552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20100105-121447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46106',
internalId:  '',
customField: '20081007-202305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20080923-114853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20100105-121726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20579',
internalId:  '',
customField: '20100105-121743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70501',
internalId:  '',
customField: '20090307-173514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74601',
internalId:  '',
customField: '20100223-175401'
};
webappMappings['7060']=webappMappings['7060-8b875c804a89395b408608ffec16e588']={
webappId:    '7060',
documentId:  '80701',
internalId:  '8b875c804a89395b408608ffec16e588',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80701',
internalId:  '',
customField: '20081029-174124'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10IN2767';
var companyName   = 'DJ+SOUNDS%E2%84%A2-+We+Party+For+A+Living%21';
var htmlTitle	  = '';
var metaKeywords  = 'Disc+Jockey%2C+Jukebox%2C+Wedding%2C+Tent%2C+Canopy%2C+Rental%2C+Fog%2C+Speakers%2C+Karaoke%2C+DJ%2C+VJ%2C+Video+Jockey%2C+Chairs%2C+Tables%2C+Rental+equipment%2C+Lighting%2C+Bubbles%2C+Howell%2C+Pinckney%2C+Michigan%2C+Music+Videos%2C+Screen+Rental%2C+Video%2C+Music%2C+Entertainment%2C+Projector%2C+Sound+equipment%2C+Pa+system%2C+Microphone%2C+Tables%2C+Chairs%2C+professional+DJ%2C+Mackie+Speakers%2C+Rockband%2C+Table+covers%2C+Canopy%2C+Dance+Floor';
var metaContents  = 'Disc+Jockey%2C+Jukebox%2C+Wedding%2C+Tent%2C+Canopy%2C+Rental%2C+Fog%2C+Speakers%2C+Karaoke%2C+DJ%2C+VJ%2C+Video+Jockey%2C+Chairs%2C+Tables%2C+Rental+equipment%2C+Lighting%2C+Bubbles%2C+Howell%2C+Pinckney%2C+Michigan%2C+Music+Videos%2C+Screen+Rental%2C+Video%2C+Music%2C+Entertainment%2C+Projector%2C+Sound+equipment%2C+Pa+system%2C+Microphone%2C+Tables%2C+Chairs%2C+professional+DJ%2C+Mackie+Speakers%2C+Rockband%2C+Table+covers%2C+Canopy%2C+Dance+Floor';
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();
};
