/* [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','9401',jdecode('Home'),jdecode(''),'/9401.html','true',[],'',''],
	['PAGE','11401',jdecode('Introducing...'),jdecode(''),'/11401.html','true',[],'',''],
	['PAGE','11485',jdecode('Applause'),jdecode(''),'/11485.html','true',[],'',''],
	['PAGE','11464',jdecode('Corporate+Events'),jdecode(''),'/11464.html','true',[],'',''],
	['PAGE','48201',jdecode('Brand+Marketing'),jdecode(''),'/48201.html','true',[],'',''],
	['PAGE','12001',jdecode('Social+Celebrations'),jdecode(''),'/12001.html','true',[],'',''],
	['PAGE','49501',jdecode('Parties+to+Go-Go%21'),jdecode(''),'/49501.html','true',[],'',''],
	['PAGE','44801',jdecode('Year+of+the+...'),jdecode(''),'/44801.html','true',[],'',''],
	['PAGE','45101',jdecode('A+La+Carte+Services'),jdecode(''),'/45101.html','true',[],'',''],
	['PAGE','15901',jdecode('Events+%26+Experiences'),jdecode(''),'/15901.html','true',[],'',''],
	['PAGE','15922',jdecode('What%26%23x27%3Bs+Hot%21'),jdecode(''),'/15922.html','true',[],'',''],
	['PAGE','12022',jdecode('Q+%26+A'),jdecode(''),'/12022.html','true',[],'',''],
	['PAGE','12501',jdecode('Job+Opportunities'),jdecode(''),'/12501.html','true',[],'',''],
	['PAGE','11506',jdecode('Estimate+Request'),jdecode(''),'/11506.html','true',[],'',''],
	['PAGE','23101',jdecode('Speaking+engagements...'),jdecode(''),'/23101.html','true',[],'',''],
	['PAGE','15943',jdecode('Interesting+links'),jdecode(''),'/15943.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='797979';
theSitetree.keyvisualId='6910';
theSitetree.keyvisualName='kv_6910.jpg';
theSitetree.fontsetId='11214';
theSitetree.graphicsetId='12040';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='979797';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antigua',
				paletteFamily: 	'797979',
				keyvisualId: 	'6910',
				keyvisualName: 	'kv_6910.jpg',
				fontsetId: 		'11214',
				graphicsetId: 	'12040',
				contentColor: 	'000000',
				contentBGColor: '979797',
				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-1531']={
webappId:    '7008',
documentId:  '11506',
internalId:  '1531',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20100201-083803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20100201-084250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11485',
internalId:  '',
customField: '20090421-122518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11464',
internalId:  '',
customField: '20090323-115216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20100201-094500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11506',
internalId:  '',
customField: '20090226-112833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12022',
internalId:  '',
customField: '20090226-093722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20090226-112635'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3863194']={
webappId:    '1501',
documentId:  '9401',
internalId:  '3863194',
customField: '1501'
};
webappMappings['1003']=webappMappings['1003-ahw050invpoh11fb3110448']={
webappId:    '1003',
documentId:  '15922',
internalId:  'ahw050invpoh11fb3110448',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15922',
internalId:  '',
customField: '20090226-171520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20100201-104216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15943',
internalId:  '',
customField: '20100503-231537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20100201-104644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44801',
internalId:  '',
customField: '20100129-112514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20100503-232914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48201',
internalId:  '',
customField: '20100201-093053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49501',
internalId:  '',
customField: '20100503-232758'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INVPOH';
var companyName   = '+++++EVENT+EXPERTS';
var htmlTitle	  = 'Event+Experts';
var metaKeywords  = 'parties%2C+luncheon%2C+dinner+party%2C+special+events%2C+events%2C+corporate+events%2C+weddings%2C+birthdays%2C+bar+mitzvahs%2C+parties%2C+meetings%2C+employee+appreciation%2C+event+venues%2C+catering%2C+entertainment%2C+private+party%2C+celebrity+events%2C+fundraising+events%2C+theme+parties%2C+music%2C+house+party%2C+live+band%2C+event+staff%2C+tables+and+chairs+rental%2C+props%2C+decor%2C+flowers%2C+calligraphy%2C+decorations%2C+wedding+coach%2C+wedding+director%2C+wedding+planner%2C+creative+director%2C+event+producer%2C+ISES%2C+event+solutions%2C+gift+bags%2C+roi%2C+branding%2C+centerpieces%2C+christmas+party%2C+celebrations%2C+friendship%2C+surprise+party%2C+girls+night%2C+cake%2C+wedding+venue%2C+event+site%2C+winston-salem%2C+nc%2C+destination+wedding%2C+carolina+wedding';
var metaContents  = 'Event+Experts+-+Corporate+Event+and+Social+Celebrations+-+Celebrating+18+years+in+business%21';
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();
};
