/* [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('Home'),jdecode(''), jdecode('%2F2601.html'), 'true',[],'',''],
	['PAGE','9701',jdecode('Survey'),jdecode(''), jdecode('%2F9701.html'), 'false',[],'',''],
	['PAGE','9722',jdecode('Discount+Coupon'),jdecode(''), jdecode('%2F9722.html'), 'true',[],'',''],
	['PAGE','6301',jdecode('2009+Exhibitors'),jdecode(''), jdecode('%2F6301.html'), 'false',[],'',''],
	['PAGE','15501',jdecode('2010+Exhibitors'),jdecode(''), jdecode('%2F15501.html'), 'false',[],'',''],
	['PAGE','6601',jdecode('Special+Events'),jdecode(''), jdecode('%2F6601.html'), 'true',[],'',''],
	['PAGE','4701',jdecode('About+us'),jdecode(''), jdecode('%2F4701.html'), 'true',[],'',''],
	['PAGE','32401',jdecode('Guest+Bag+Advertising'),jdecode(''), jdecode('%2F32401.html'), 'true',[],'',''],
	['PAGE','4785',jdecode('Silent+Auction'),jdecode(''), jdecode('%2F4785.html'), 'true',[],'',''],
	['PAGE','4806',jdecode('MarketPlace'),jdecode(''), jdecode('%2F4806.html'), 'true',[],'',''],
	['PAGE','4743',jdecode('Exhibitor+Information'),jdecode(''), jdecode('%2F4743.html'), 'true',[],'',''],
	['PAGE','9743',jdecode('Exhibitor+Wait+List'),jdecode(''), jdecode('%2F9743.html'), 'false',[],'',''],
	['PAGE','4764',jdecode('Exhibitor+Rules'),jdecode(''), jdecode('%2F4764.html'), 'false',[],'',''],
	['PAGE','4827',jdecode('Exhibitor+Tips'),jdecode(''), jdecode('%2F4827.html'), 'false',[],'',''],
	['PAGE','4848',jdecode('Exhibitor+FAQs'),jdecode(''), jdecode('%2F4848.html'), 'false',[],'',''],
	['PAGE','11001',jdecode('Why+Exhibit'),jdecode(''), jdecode('%2F11001.html'), 'false',[],'',''],
	['PAGE','110501',jdecode('Gallery'),jdecode(''), jdecode('%2F110501.html'), 'true',[],'',''],
	['PAGE','5201',jdecode('Our+Sponsors'),jdecode(''), jdecode('%2F5201.html'), 'true',[],'',''],
	['PAGE','5222',jdecode('Become+a+Sponsor'),jdecode(''), jdecode('%2F5222.html'), 'true',[],'',''],
	['PAGE','5243',jdecode('Advertising'),jdecode(''), jdecode('%2F5243.html'), 'true',[],'',''],
	['PAGE','8901',jdecode('Press+Release'),jdecode(''), jdecode('%2F8901.html'), 'true',[],'',''],
	['PAGE','5264',jdecode('Testimonials'),jdecode(''), jdecode('%2F5264.html'), 'true',[],'',''],
	['PAGE','5401',jdecode('Contact'),jdecode(''), jdecode('%2F5401.html'), 'true',[],'',''],
	['PAGE','39901',jdecode('2011+Exhibitors'),jdecode(''), jdecode('%2F39901.html'), 'false',[],'',''],
	['PAGE','90301',jdecode('2012+Exhibitors'),jdecode(''), jdecode('%2F90301.html'), 'false',[],'',''],
	['PAGE','45001',jdecode('Test'),jdecode(''), jdecode('%2F45001.html'), 'false',[],'',''],
	['PAGE','46001',jdecode('Sponsor+%26+Purchase+Booth+Space'),jdecode(''), jdecode('%2F46001.html'), 'false',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='617F92';
theSitetree.keyvisualId='6905';
theSitetree.keyvisualName='kv_6905.jpg';
theSitetree.fontsetId='11214';
theSitetree.graphicsetId='12036';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='809DAF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRNU'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antigua',
				paletteFamily: 	'617F92',
				keyvisualId: 	'6905',
				keyvisualName: 	'kv_6905.jpg',
				fontsetId: 		'11214',
				graphicsetId: 	'12036',
				contentColor: 	'FFFFFF',
				contentBGColor: '809DAF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20120122-184832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4806',
internalId:  '',
customField: '20120107-184340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4785',
internalId:  '',
customField: '20120107-184246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20090326-124314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20110514-141849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20110514-141723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4827',
internalId:  '',
customField: '20110105-132447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4848',
internalId:  '',
customField: '20110514-161913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20120107-184631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5264',
internalId:  '',
customField: '20120130-225809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5243',
internalId:  '',
customField: '20120130-135832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20120107-185713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5222',
internalId:  '',
customField: '20111225-135512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20120122-183446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4764',
internalId:  '',
customField: '20110514-161421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4743',
internalId:  '',
customField: '20120130-104513'
};
webappMappings['7005']=webappMappings['7005-1775']={
webappId:    '7005',
documentId:  '9701',
internalId:  '1775',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-14912']={
webappId:    '7008',
documentId:  '9743',
internalId:  '14912',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20090322-001201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9743',
internalId:  '',
customField: '20090322-001252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9722',
internalId:  '',
customField: '20120122-222617'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20090322-005340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20100620-144749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20120109-225355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20110514-152147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20100425-204907'
};
webappMappings['4001']=webappMappings['4001-29381636']={
webappId:    '4001',
documentId:  '46001',
internalId:  '29381636',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20100425-205932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90301',
internalId:  '',
customField: '20120123-211152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110501',
internalId:  '',
customField: '20120130-225746'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN35OR';
var companyName   = 'The+Dearborn+Womens+Expo';
var htmlTitle	  = 'The+Dearborn+Women%27s+Expo';
var metaKeywords  = 'dearborn%3Bexpo%3Bwomen%3Bshow%3Bcharity%3Bfund+raising%3Bchildrens+leukemia+foundation%3Bevent%3Btradeshow%3Bleukemia%3Bdearborn+show%3Bbrittany+crawford%3Bjulie+sullivan%3Bzumba%3Bsilent+auction%3Bshow%3Bretail+therapy%3Bford+community+and+performing+arts+center%3Bford+performing+arts+center%3Bwww.dearbornfordcenter.com%3Bnovi+women%27s+expo%3Bmichigan+women%3Bmichigan+show%3Bmichigan+women%27s+marketplace%3Bwomen+business+owner%3Bmichigan+women+business+owner%3Bwomen%27s+business+community%3Bmichigan+business';
var metaContents  = 'The+Dearborn+Womens+Expo';
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();
};

