/* [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','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','184301',jdecode('Our+Business+Model'),jdecode(''),'/184301.html','true',[],'',''],
	['PAGE','199912',jdecode('How+To+Rent+Space'),jdecode(''),'/199912.html','true',[],'',''],
	['PAGE','209312',jdecode('Table+Covers'),jdecode(''),'/209312.html','true',[],'',''],
	['PAGE','97101',jdecode('Events+Calendar'),jdecode(''),'/97101.html','true',[],'',''],
	['PAGE','195812',jdecode('Our+Outdoor+Shows'),jdecode(''),'/195812.html','true',[],'',''],
	['PAGE','193012',jdecode('Galleria+Mall'),jdecode(''),'/193012.html','true',[],'',''],
	['PAGE','196796',jdecode('Galleria+Vendor+App'),jdecode(''),'/196796.html','true',[],'',''],
	['PAGE','196817',jdecode('Galleria+Vendor+Rules'),jdecode(''),'/196817.html','true',[],'',''],
	['PAGE','165322',jdecode('Menlo+Park+Mall'),jdecode(''),'/165322.html','true',[],'',''],
	['PAGE','196754',jdecode('Menlo+Vendor+App'),jdecode(''),'/196754.html','true',[],'',''],
	['PAGE','196775',jdecode('Menlo+Vendor+Rules'),jdecode(''),'/196775.html','true',[],'',''],
	['PAGE','165301',jdecode('Newport+Centre+Mall'),jdecode(''),'/165301.html','true',[],'',''],
	['PAGE','196712',jdecode('Newport+Vendor+App'),jdecode(''),'/196712.html','true',[],'',''],
	['PAGE','196733',jdecode('Newport+Vendor+Rules'),jdecode(''),'/196733.html','true',[],'',''],
	['PAGE','58001',jdecode('Roosevelt+Field+Mall+'),jdecode(''),'/58001.html','true',[],'',''],
	['PAGE','59601',jdecode('Smith+Haven+Mall+'),jdecode(''),'/59601.html','true',[],'',''],
	['PAGE','61901',jdecode('Smith+Haven+Vendor+App'),jdecode(''),'/61901.html','true',[],'',''],
	['PAGE','78901',jdecode('Smith+Haven+Vendor+Rules'),jdecode(''),'/78901.html','true',[],'',''],
	['PAGE','136422',jdecode('Sunrise+Mall+'),jdecode(''),'/136422.html','true',[],'',''],
	['PAGE','59643',jdecode('Sunrise+Vendor+App'),jdecode(''),'/59643.html','true',[],'',''],
	['PAGE','121701',jdecode('Sunrise+Vendor+Rules'),jdecode(''),'/121701.html','true',[],'',''],
	['PAGE','2301',jdecode('Mall+Addresses'),jdecode(''),'/2301.html','true',[],'',''],
	['PAGE','86301',jdecode('Vendor+Sales+Tax+License'),jdecode(''),'/86301.html','true',[],'',''],
	['PAGE','164801',jdecode('Accepting+Credit++Cards'),jdecode(''),'/164801.html','true',[],'',''],
	['PAGE','47401',jdecode('More+Shows'),jdecode(''),'/47401.html','true',[],'',''],
	['PAGE','2701',jdecode('Contact+Us'),jdecode(''),'/2701.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10790';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FACDC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10790',
				graphicsetId: 	'11215',
				contentColor: 	'000000',
				contentBGColor: '7FACDC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100512-132617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20100213-131452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20100201-144614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209312',
internalId:  '',
customField: '20100426-091821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86301',
internalId:  '',
customField: '20100226-123927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97101',
internalId:  '',
customField: '20100510-114423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196754',
internalId:  '',
customField: '20100512-130306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20100226-130956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20091228-233406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121701',
internalId:  '',
customField: '20100226-131053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196796',
internalId:  '',
customField: '20100501-070348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20100203-051019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59601',
internalId:  '',
customField: '20100510-114607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59643',
internalId:  '',
customField: '20100524-150755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61901',
internalId:  '',
customField: '20100512-130403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184301',
internalId:  '',
customField: '20100113-142126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195812',
internalId:  '',
customField: '20100203-051518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193012',
internalId:  '',
customField: '20100501-070225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196712',
internalId:  '',
customField: '20100512-134051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136422',
internalId:  '',
customField: '20100510-114821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164801',
internalId:  '',
customField: '20091206-155808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196775',
internalId:  '',
customField: '20100226-131320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196817',
internalId:  '',
customField: '20100226-131217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196733',
internalId:  '',
customField: '20100412-065109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165301',
internalId:  '',
customField: '20100510-114456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165322',
internalId:  '',
customField: '20100207-112154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199912',
internalId:  '',
customField: '20100228-123453'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INLKTR';
var companyName   = 'Year+Round+Craft+%26+Gift+Shows+Inside+The+Malls';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
