/* [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','712',jdecode('Home'),jdecode(''), jdecode('%2F712.html'), 'true',[],'',''],
	['PAGE','763',jdecode('About+the+Women+of+Note'),jdecode(''), jdecode('%2F763.html'), 'true',[],'',''],
	['PAGE','22312',jdecode('Calendar+and+Recent+News'),jdecode(''), jdecode('%2F22312.html'), 'true',[],'',''],
	['PAGE','805',jdecode('Our+Leaders'),jdecode(''), jdecode('%2F805.html'), 'true',[],'',''],
	['PAGE','847',jdecode('Singing+Valentines+2012'),jdecode(''), jdecode('%2F847.html'), 'true',[],'',''],
	['PAGE','826',jdecode('Wall+of+Fame'),jdecode(''), jdecode('%2F826.html'), 'true',[],'',''],
	['PAGE','889',jdecode('Visit+Us'),jdecode(''), jdecode('%2F889.html'), 'true',[],'',''],
	['PAGE','868',jdecode('Hire+Us'),jdecode(''), jdecode('%2F868.html'), 'true',[],'',''],
	['PAGE','910',jdecode('Our+Quartets'),jdecode(''), jdecode('%2F910.html'), 'true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1352';
theSitetree.keyvisualName='haengematte.jpg';
theSitetree.fontsetId='237';
theSitetree.graphicsetId='278';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp11-veriow',
  product: 'WSCSYSSSSLYTCPII'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'1352',
				keyvisualName: 	'haengematte.jpg',
				fontsetId: 		'237',
				graphicsetId: 	'278',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-321']={
webappId:    '7008',
documentId:  '868',
internalId:  '321',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '712',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '712',
internalId:  '',
customField: '20111212-122946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '847',
internalId:  '',
customField: '20111212-162346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22312',
internalId:  '',
customField: '20111212-133743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '763',
internalId:  '',
customField: '20111130-134017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '826',
internalId:  '',
customField: '20110627-161221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '805',
internalId:  '',
customField: '20110928-144434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '889',
internalId:  '',
customField: '20110519-105851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '868',
internalId:  '',
customField: '20111108-170438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '910',
internalId:  '',
customField: '20110627-160156'
};
webappMappings['1501']=webappMappings['1501-8795880']={
webappId:    '1501',
documentId:  '712',
internalId:  '8795880',
customField: '1501'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INZO3B';
var companyName   = 'Unique+A+Cappella+Entertainment';
var htmlTitle	  = 'The+Women+of+Note+-+Women%27s+A+Cappella+Chorus+Barbershop+Style';
var metaKeywords  = 'barbershop%2C+women%2C+women+of+note%2C+harmony%2C+a+cappella%2C+chorus%2C+south+florida%2C+florida%2C+choral+group%2C+community%2C+non+profit%2C+music%2C+director%2C+sweet+adelines%2C+SAI%2C+region+9%2C+singing%2C+song%2C+performers%2C+performances%2C+dance%2C+entertainment%2C+entertainers%2C+boynton+beach';
var metaContents  = 'The+Women+of+Note+Chorus+is+an+energetic+group+of+women+from+all+ages+and+walks+of+life%2C+dedicated+to+musical+excellence+through+education%2C+practice%2C+local+performances%2C+and+SAI+competition+in+the+four-part+a+cappella+barbershop+style.+We+encourage+and+promote+personal+growth+and+community+involvement+in+an+atmosphere+of+fellowship+and+harmony.';
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();
};

