/* [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','12412',jdecode('Home'),jdecode(''),'/12412.html','true',[],''],
	['PAGE','17612',jdecode('About+FMA'),jdecode(''),'/17612/index.html','true',[ 
		['PAGE','17633',jdecode('Directions'),jdecode(''),'/17612/17633.html','true',[],'']
	],''],
	['PAGE','17654',jdecode('Contacts'),jdecode(''),'/17654/index.html','true',[ 
		['PAGE','17675',jdecode('Chapter+Directory'),jdecode(''),'/17654/17675.html','true',[],''],
		['PAGE','17696',jdecode('House+Director+Contacts'),jdecode(''),'/17654/17696.html','true',[],'']
	],''],
	['PAGE','17717',jdecode('Kitchen+Services'),jdecode(''),'/17717/index.html','true',[ 
		['PAGE','17738',jdecode('Catering'),jdecode(''),'/17717/17738.html','true',[],'']
	],''],
	['PAGE','17759',jdecode('Vendors'),jdecode(''),'/17759.html','true',[],''],
	['PAGE','17780',jdecode('Event+Planning'),jdecode(''),'/17780.html','true',[],''],
	['PAGE','17801',jdecode('Chapter+Accounting'),jdecode(''),'/17801.html','true',[],''],
	['PAGE','17822',jdecode('Member+Bill+Pay'),jdecode(''),'/17822/index.html','true',[ 
		['PAGE','17843',jdecode('Dues+Refund+Policy'),jdecode(''),'/17822/17843.html','true',[],''],
		['PAGE','17864',jdecode('Privacy+Policy'),jdecode(''),'/17822/17864.html','true',[],''],
		['PAGE','17885',jdecode('Contact+Us'),jdecode(''),'/17822/17885.html','true',[],'']
	],''],
	['PAGE','17906',jdecode('Greek+Store'),jdecode(''),'/17906.html','true',[],''],
	['PAGE','17927',jdecode('Alumnae+Services'),jdecode(''),'/17927.html','true',[],''],
	['PAGE','17948',jdecode('Guest+Book'),jdecode(''),'/17948.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='elliptic';
theSitetree.paletteFamily='960000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10358';
theSitetree.graphicsetId='10503';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='960000';
var theTemplate={
				name: 			'elliptic',
				paletteFamily: 	'960000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10358',
				graphicsetId: 	'10503',
				contentColor: 	'FFFFFF',
				contentBGColor: '960000',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12412',
internalId:  '',
customField: '20100126-095509'
};
webappMappings['1002']=webappMappings['1002-17948ahw050inlvfl']={
webappId:    '1002',
documentId:  '17948',
internalId:  '17948ahw050inlvfl',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17612',
internalId:  '',
customField: '20100127-132159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17633',
internalId:  '',
customField: '20100127-132848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17654',
internalId:  '',
customField: '20100127-133557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17675',
internalId:  '',
customField: '20100127-134306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17696',
internalId:  '',
customField: '20100127-135957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17717',
internalId:  '',
customField: '20100127-141014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17738',
internalId:  '',
customField: '20100208-100132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17759',
internalId:  '',
customField: '20100208-143414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17780',
internalId:  '',
customField: '20100208-104551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20100208-104401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17822',
internalId:  '',
customField: '20100208-105046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17843',
internalId:  '',
customField: '20100208-105222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17864',
internalId:  '',
customField: '20100208-105401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17885',
internalId:  '',
customField: '20100208-105543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17906',
internalId:  '',
customField: '20100208-131534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17927',
internalId:  '',
customField: '20100208-131907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17948',
internalId:  '',
customField: '20100208-132200'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12412',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-6839706']={
webappId:    '1501',
documentId:  '12412',
internalId:  '6839706',
customField: '1501'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INLVFL';
var companyName   = 'Fraternity+Managers+Association';
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();
};
