/* [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','12',jdecode('HOME'),jdecode(''), jdecode('%2F12.html'), 'true',[],'',''],
	['PAGE','51',jdecode('About+US'),jdecode(''), jdecode('%2F51.html'), 'true',[],'',''],
	['PAGE','5243',jdecode('Calendar+of+events'),jdecode(''), jdecode('%2F5243.html'), 'true',[],'',''],
	['PAGE','60',jdecode('Directors%2FOfficers'),jdecode(''), jdecode('%2F60.html'), 'true',[],'',''],
	['PAGE','89401',jdecode('Commitees%2FMembers'),jdecode(''), jdecode('%2F89401.html'), 'true',[],'',''],
	['PAGE','41201',jdecode('Bowling+Centers'),jdecode(''), jdecode('%2F41201.html'), 'true',[],'',''],
	['PAGE','68701',jdecode('Bowl+4+the+Cure'),jdecode(''), jdecode('%2F68701.html'), 'true',[],'',''],
	['PAGE','36101',jdecode('BVL'),jdecode(''), jdecode('%2F36101.html'), 'true',[],'',''],
	['PAGE','72301',jdecode('USBC+Awards'),jdecode(''), jdecode('%2F72301.html'), 'true',[],'',''],
	['PAGE','65301',jdecode('VC-BA+Tournaments'),jdecode(''), jdecode('%2F65301%2Findex.html'), 'true',[ 
		['PAGE','79701',jdecode('Results'),jdecode(''), jdecode('%2F65301%2F79701.html'), 'true',[],'','']
	],'',''],
	['PAGE','7843',jdecode('VC-BA+History'),jdecode(''), jdecode('%2F7843.html'), 'true',[],'',''],
	['PAGE','94001',jdecode('HALL+of+FAME'),jdecode(''), jdecode('%2F94001.html'), 'true',[],'',''],
	['PAGE','77401',jdecode('VCYBA'),jdecode(''), jdecode('%2F77401%2Findex.html'), 'true',[ 
		['PAGE','78501',jdecode('News'),jdecode(''), jdecode('%2F77401%2F78501.html'), 'true',[],'',''],
		['PAGE','74901',jdecode('Tournaments'),jdecode(''), jdecode('%2F77401%2F74901.html'), 'true',[],'',''],
		['PAGE','77422',jdecode('Results'),jdecode(''), jdecode('%2F77401%2F77422.html'), 'true',[],'','']
	],'',''],
	['PAGE','5222',jdecode('Local+Alley+News'),jdecode(''), jdecode('%2F5222%2Findex.html'), 'true',[ 
		['PAGE','57001',jdecode('Brunswick+Valley'),jdecode(''), jdecode('%2F5222%2F57001.html'), 'true',[],'',''],
		['PAGE','57022',jdecode('Buena+Lanes'),jdecode(''), jdecode('%2F5222%2F57022.html'), 'true',[],'',''],
		['PAGE','57043',jdecode('CBC+Lanes'),jdecode(''), jdecode('%2F5222%2F57043.html'), 'true',[],'',''],
		['PAGE','57064',jdecode('Harley%26%23x27%3Bs+Camarillo'),jdecode(''), jdecode('%2F5222%2F57064.html'), 'true',[],'',''],
		['PAGE','57085',jdecode('Harley%26%23x27%3Bs+Simi'),jdecode(''), jdecode('%2F5222%2F57085.html'), 'true',[],'',''],
		['PAGE','57106',jdecode('Ventura+Bowling+Ctr'),jdecode(''), jdecode('%2F5222%2F57106.html'), 'true',[],'',''],
		['PAGE','57127',jdecode('Wagon+Wheel+Bowl'),jdecode(''), jdecode('%2F5222%2F57127.html'), 'true',[],'','']
	],'',''],
	['PAGE','7801',jdecode('Yearbook+Averages'),jdecode(''), jdecode('%2F7801.html'), 'true',[],'',''],
	['PAGE','1062',jdecode('Guestbook'),jdecode(''), jdecode('%2F1062%2Findex.html'), 'true',[ 
		['PAGE','1061',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F1062%2F1061.html'), 'false',[],'','']
	],'',''],
	['PAGE','33',jdecode('Contact+US'),jdecode(''), jdecode('%2F33.html'), 'true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Vegas';
theSitetree.paletteFamily='0A0847';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16928';
theSitetree.graphicsetId='12328';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A0847';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'true',
				name: 			'Vegas',
				paletteFamily: 	'0A0847',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16928',
				graphicsetId: 	'12328',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A0847',
				a_color: 		'0A0847',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '12',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5243',
internalId:  '',
customField: '20111011-144236'
};
webappMappings['1002']=webappMappings['1002-1062AVEC10IN2J75']={
webappId:    '1002',
documentId:  '1062',
internalId:  '1062AVEC10IN2J75',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12',
internalId:  '',
customField: '20111011-144147'
};
webappMappings['1501']=webappMappings['1501-7850105']={
webappId:    '1501',
documentId:  '12',
internalId:  '7850105',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20100817-013634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20091213-152449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51',
internalId:  '',
customField: '20110819-151916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60',
internalId:  '',
customField: '20110927-013130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94001',
internalId:  '',
customField: '20110401-020102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5222',
internalId:  '',
customField: '20110120-012637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20101004-012454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57022',
internalId:  '',
customField: '20110120-012735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57043',
internalId:  '',
customField: '20100817-015632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57064',
internalId:  '',
customField: '20100817-015418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57085',
internalId:  '',
customField: '20101004-013824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57106',
internalId:  '',
customField: '20110927-023700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57127',
internalId:  '',
customField: '20110819-155517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20110927-025900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89401',
internalId:  '',
customField: '20110819-153442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20100516-225548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20110927-013326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72301',
internalId:  '',
customField: '20100914-020239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74901',
internalId:  '',
customField: '20110927-022710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77401',
internalId:  '',
customField: '20091011-004957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77422',
internalId:  '',
customField: '20110927-020434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20110927-020302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79701',
internalId:  '',
customField: '20110927-020006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7843',
internalId:  '',
customField: '20070927-183156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1062',
internalId:  '',
customField: '20060722-221408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1061',
internalId:  '',
customField: '20060722-221408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33',
internalId:  '',
customField: '20090830-192740'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2J75';
var companyName   = 'Ventura+County+USBC+Bowling+Association';
var htmlTitle	  = 'Ventura+County+USBC+Bowling+Association';
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();
};

