/* [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','117401',jdecode('Home'),jdecode(''),'/117401.html','true',[],''],
	['PAGE','195626',jdecode('How+To+Rent'),jdecode(''),'/195626.html','true',[],''],
	['PAGE','189726',jdecode('Business+Model'),jdecode(''),'/189726.html','true',[],''],
	['PAGE','166826',jdecode('Our+Locations'),jdecode(''),'/166826.html','true',[],''],
	['PAGE','131301',jdecode('Events+Calendar'),jdecode(''),'/131301.html','true',[],''],
	['PAGE','151901',jdecode('Bayville+'),jdecode(''),'/151901.html','true',[],''],
	['PAGE','185526',jdecode('Bayville+Application'),jdecode(''),'/185526.html','true',[],''],
	['PAGE','197526',jdecode('Bayville+Rules'),jdecode(''),'/197526.html','true',[],''],
	['PAGE','129301',jdecode('Bethpage+Village'),jdecode(''),'/129301.html','true',[],''],
	['PAGE','186026',jdecode('Bethpage+Application'),jdecode(''),'/186026.html','true',[],''],
	['PAGE','197610',jdecode('Bethpage+Rules'),jdecode(''),'/197610.html','true',[],''],
	['PAGE','33',jdecode('Eisenhower+Park'),jdecode(''),'/33.html','true',[],''],
	['PAGE','185026',jdecode('Eisenhower+Application'),jdecode(''),'/185026.html','true',[],''],
	['PAGE','197547',jdecode('Eisenhower+Rules'),jdecode(''),'/197547.html','true',[],''],
	['PAGE','178626',jdecode('Merrick+Festival'),jdecode(''),'/178626.html','true',[],''],
	['PAGE','185826',jdecode('Merrick+Application'),jdecode(''),'/185826.html','true',[],''],
	['PAGE','197568',jdecode('Merrick+Rules'),jdecode(''),'/197568.html','true',[],''],
	['PAGE','180726',jdecode('+Morley+Park'),jdecode(''),'/180726.html','true',[],''],
	['PAGE','185226',jdecode('Morley+Application'),jdecode(''),'/185226.html','true',[],''],
	['PAGE','197589',jdecode('Morley+Rules'),jdecode(''),'/197589.html','true',[],''],
	['PAGE','193226',jdecode('Our+Mall+Shows'),jdecode(''),'/193226.html','true',[],''],
	['PAGE','137901',jdecode('More+Shows'),jdecode(''),'/137901.html','true',[],''],
	['PAGE','192126',jdecode('Vendor+Sales+Tax'),jdecode(''),'/192126.html','true',[],''],
	['PAGE','693',jdecode('Contact+Us'),jdecode(''),'/693.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Abstract';
theSitetree.paletteFamily='E7D8FC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10551';
theSitetree.graphicsetId='10579';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E7D8FC';
var theTemplate={
				name: 			'Abstract',
				paletteFamily: 	'E7D8FC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10551',
				graphicsetId: 	'10579',
				contentColor: 	'000000',
				contentBGColor: 'E7D8FC',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '117401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33',
internalId:  '',
customField: '20100203-035752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '693',
internalId:  '',
customField: '20100210-145745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129301',
internalId:  '',
customField: '20100111-200412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117401',
internalId:  '',
customField: '20100203-035657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197610',
internalId:  '',
customField: '20100211-183802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197547',
internalId:  '',
customField: '20100211-184103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197568',
internalId:  '',
customField: '20100211-184319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197526',
internalId:  '',
customField: '20100211-183927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '193226',
internalId:  '',
customField: '20100203-043647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195626',
internalId:  '',
customField: '20100228-121428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180726',
internalId:  '',
customField: '20100110-203950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192126',
internalId:  '',
customField: '20100228-120733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185526',
internalId:  '',
customField: '20100210-215128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185826',
internalId:  '',
customField: '20100110-205521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186026',
internalId:  '',
customField: '20100210-220412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166826',
internalId:  '',
customField: '20100110-211233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131301',
internalId:  '',
customField: '20100127-181827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197589',
internalId:  '',
customField: '20100211-184548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151901',
internalId:  '',
customField: '20100110-204129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137901',
internalId:  '',
customField: '20100203-040135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178626',
internalId:  '',
customField: '20100110-204158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185026',
internalId:  '',
customField: '20100110-201518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185226',
internalId:  '',
customField: '20100110-201440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189726',
internalId:  '',
customField: '20100203-033117'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSY1';
var companyName   = 'Year+Round+Indoor+%26+Outdoor+Craft+%26+Gift+Shows';
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();
};
