/* [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','8701',jdecode('Welcome+To+Syracuse+IDay'),jdecode(''),'/8701.html','true',[],''],
	['PAGE','10601',jdecode('The+Event'),jdecode(''),'/10601/index.html','true',[ 
		['PAGE','10901',jdecode('Agenda'),jdecode(''),'/10601/10901.html','true',[],''],
		['PAGE','10922',jdecode('Keynote+Speaker'),jdecode(''),'/10601/10922.html','true',[],''],
		['PAGE','10943',jdecode('Morning+Program'),jdecode(''),'/10601/10943.html','true',[],''],
		['PAGE','10964',jdecode('Charity'),jdecode(''),'/10601/10964.html','true',[],'']
	],''],
	['PAGE','11321',jdecode('Contact+Information'),jdecode(''),'/11321.html','true',[],''],
	['PAGE','10985',jdecode('Exhibitors'),jdecode(''),'/10985/index.html','true',[ 
		['PAGE','11006',jdecode('Shipping+Information'),jdecode(''),'/10985/11006.html','true',[],''],
		['PAGE','11027',jdecode('2010+Exhibitors'),jdecode(''),'/10985/11027.html','true',[],'']
	],''],
	['PAGE','11048',jdecode('Sponsorship'),jdecode(''),'/11048/index.html','true',[ 
		['PAGE','11069',jdecode('Super+Stars'),jdecode(''),'/11048/11069.html','true',[],''],
		['PAGE','11090',jdecode('Company+Sponsor'),jdecode(''),'/11048/11090.html','true',[],''],
		['PAGE','11111',jdecode('Media+Display'),jdecode(''),'/11048/11111.html','true',[],''],
		['PAGE','11132',jdecode('2010+Sponsors'),jdecode(''),'/11048/11132.html','true',[],'']
	],''],
	['PAGE','11153',jdecode('Insurance+Person+of+Distinction'),jdecode(''),'/11153/index.html','true',[ 
		['PAGE','49901',jdecode('Nominate+Online'),jdecode(''),'/11153/49901.html','true',[],''],
		['PAGE','11195',jdecode('Nominate+By+Mail'),jdecode(''),'/11153/11195.html','true',[],''],
		['PAGE','11216',jdecode('Past+Winners'),jdecode(''),'/11153/11216.html','true',[],'']
	],''],
	['PAGE','11237',jdecode('Scholarship'),jdecode(''),'/11237.html','true',[],''],
	['PAGE','11258',jdecode('Committee'),jdecode(''),'/11258.html','true',[],''],
	['PAGE','11279',jdecode('Ticket+Information'),jdecode(''),'/11279.html','true',[],''],
	['PAGE','11300',jdecode('Register+Now'),jdecode(''),'/11300.html','true',[],''],
	['PAGE','11701',jdecode('Questions+%26+Comments'),jdecode(''),'/11701.html','true',[],''],
	['PAGE','11722',jdecode('Highlights'),jdecode(''),'/11722.html','true',[],''],
	['PAGE','11743',jdecode('Accommodations'),jdecode(''),'/11743.html','true',[],''],
	['PAGE','11764',jdecode('Parking'),jdecode(''),'/11764.html','true',[],''],
	['PAGE','11785',jdecode('Directions'),jdecode(''),'/11785.html','true',[],''],
	['PAGE','11806',jdecode('Purchase+Photos'),jdecode(''),'/11806.html','true',[],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11164';
theSitetree.keyvisualName='kv_11164.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11164',
				keyvisualName: 	'kv_11164.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13879',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8701',
internalId:  '',
customField: '20100527-094752'
};
webappMappings['7008']=webappMappings['7008-19673']={
webappId:    '7008',
documentId:  '11701',
internalId:  '19673',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-2c2f4687f39abe92ca05b129fac33231']={
webappId:    '7060',
documentId:  '11722',
internalId:  '2c2f4687f39abe92ca05b129fac33231',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-20548']={
webappId:    '7008',
documentId:  '49901',
internalId:  '20548',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11722',
internalId:  '',
customField: '20100223-120011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11743',
internalId:  '',
customField: '20090901-145518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20090901-120737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20100311-110030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10922',
internalId:  '',
customField: '20100226-101222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10943',
internalId:  '',
customField: '20100420-091106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10964',
internalId:  '',
customField: '20100625-154441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10985',
internalId:  '',
customField: '20100129-114331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11006',
internalId:  '',
customField: '20100513-143023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11027',
internalId:  '',
customField: '20100722-095908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11048',
internalId:  '',
customField: '20100412-161549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11069',
internalId:  '',
customField: '20100519-115520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11090',
internalId:  '',
customField: '20100304-115352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11111',
internalId:  '',
customField: '20090901-125148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11132',
internalId:  '',
customField: '20100713-112629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11153',
internalId:  '',
customField: '20100414-110334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11321',
internalId:  '',
customField: '20100527-094130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11237',
internalId:  '',
customField: '20100129-153038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11195',
internalId:  '',
customField: '20100414-110353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11216',
internalId:  '',
customField: '20091104-110338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11258',
internalId:  '',
customField: '20100217-115146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11300',
internalId:  '',
customField: '20100129-112206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11279',
internalId:  '',
customField: '20100129-111337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20090901-121806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11764',
internalId:  '',
customField: '20090901-144517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11785',
internalId:  '',
customField: '20090901-121703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11806',
internalId:  '',
customField: '20091102-150700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20091030-103331'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3FFF';
var companyName   = '2010+Syracuse+IDay';
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();
};
