/* [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','6101',jdecode('Home'),jdecode(''),'/6101.html','true',[],''],
	['PAGE','12501',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/12501.html','true',[],''],
	['PAGE','30401',jdecode('Photography+Contest'),jdecode(''),'/30401.html','true',[],''],
	['PAGE','29501',jdecode('Fundraising'),jdecode(''),'/29501.html','true',[],''],
	['PAGE','28701',jdecode('Location'),jdecode(''),'/28701.html','true',[],''],
	['PAGE','25701',jdecode('DJ+Service+-+Guarantee'),jdecode(''),'/25701/index.html','true',[ 
		['PAGE','12543',jdecode('Birthday+Picture'),jdecode(''),'/25701/12543.html','true',[],''],
		['PAGE','12564',jdecode('Wedding+Picture'),jdecode(''),'/25701/12564.html','true',[],''],
		['PAGE','12585',jdecode('Hoilday+Party'),jdecode(''),'/25701/12585.html','true',[],'']
	],''],
	['PAGE','25722',jdecode('Reunions+%26+Family+Parties'),jdecode(''),'/25722.html','true',[],''],
	['PAGE','25743',jdecode('Christmas+%26+New+Year%26%23x27%3Bs+Eve+Party'),jdecode(''),'/25743.html','true',[],''],
	['PAGE','25764',jdecode('Outdoor+Festivals'),jdecode(''),'/25764.html','true',[],''],
	['PAGE','25806',jdecode('Graduation+Party'),jdecode(''),'/25806.html','true',[],''],
	['PAGE','12606',jdecode('Wedding+Page'),jdecode(''),'/12606.html','true',[],''],
	['PAGE','25785',jdecode('Bachelor+%26+Bachelorette+Party'),jdecode(''),'/25785.html','true',[],''],
	['PAGE','12711',jdecode('Birthday'),jdecode(''),'/12711.html','true',[],''],
	['PAGE','12627',jdecode('Media+Album'),jdecode(''),'/12627.html','true',[],''],
	['PAGE','12522',jdecode('Party+pictures'),jdecode(''),'/12522.html','true',[],''],
	['PAGE','15601',jdecode('Meet+Our+Staff'),jdecode(''),'/15601.html','true',[],''],
	['PAGE','19301',jdecode('Our+products'),jdecode(''),'/19301.html','true',[],''],
	['PAGE','12648',jdecode('Prices'),jdecode(''),'/12648.html','true',[],''],
	['PAGE','12732',jdecode('Printable+Coupons'),jdecode(''),'/12732.html','true',[],''],
	['PAGE','12753',jdecode('Gustbook'),jdecode(''),'/12753.html','true',[],''],
	['PAGE','14301',jdecode('Links'),jdecode(''),'/14301.html','true',[],''],
	['PAGE','16801',jdecode('Email+Form'),jdecode(''),'/16801.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Disco';
theSitetree.paletteFamily='3D5465';
theSitetree.keyvisualId='1873';
theSitetree.keyvisualName='business.jpg';
theSitetree.fontsetId='307';
theSitetree.graphicsetId='364';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3D5465';
var theTemplate={
				name: 			'Disco',
				paletteFamily: 	'3D5465',
				keyvisualId: 	'1873',
				keyvisualName: 	'business.jpg',
				fontsetId: 		'307',
				graphicsetId: 	'364',
				contentColor: 	'FFFFFF',
				contentBGColor: '3D5465',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3D5465',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20100304-103238'
};
webappMappings['7060']=webappMappings['7060-8dabc889b63a868044fe174eb150dc5d']={
webappId:    '7060',
documentId:  '12627',
internalId:  '8dabc889b63a868044fe174eb150dc5d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12522',
internalId:  '',
customField: '20100216-163729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20100216-164120'
};
webappMappings['1002']=webappMappings['1002-12753ahw050inza9r']={
webappId:    '1002',
documentId:  '12753',
internalId:  '12753ahw050inza9r',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20100220-134044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12543',
internalId:  '',
customField: '20100216-163729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12606',
internalId:  '',
customField: '20100304-111442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12627',
internalId:  '',
customField: '20100216-163729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12648',
internalId:  '',
customField: '20100219-110708'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '28701',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['1501']=webappMappings['1501-6852456']={
webappId:    '1501',
documentId:  '6101',
internalId:  '6852456',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12711',
internalId:  '',
customField: '20100217-010237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12732',
internalId:  '',
customField: '20100217-121604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12753',
internalId:  '',
customField: '20100216-174428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20100217-154830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12564',
internalId:  '',
customField: '20100216-163729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12585',
internalId:  '',
customField: '20100216-163729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20100304-160319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100301-175400'
};
webappMappings['7008']=webappMappings['7008-6765']={
webappId:    '7008',
documentId:  '16801',
internalId:  '6765',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20100304-074831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25722',
internalId:  '',
customField: '20100304-101952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25743',
internalId:  '',
customField: '20100304-111329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25764',
internalId:  '',
customField: '20100303-213705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25785',
internalId:  '',
customField: '20100304-075058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25806',
internalId:  '',
customField: '20100303-214040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20100305-224804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20100304-195828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20100304-175132'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INZA9R';
var companyName   = 'DJ-DEMA+ENTERTAINMENT+SERVICES';
var htmlTitle	  = 'DJ-DEMA+ENTERTAINMENT+SERVICES';
var metaKeywords  = 'wedding%2C+birthday%2C+party%2C+DJ-DEMA';
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();
};

