/* [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','1701',jdecode('Home'),jdecode(''), jdecode('%2F1701.html'), 'true',[],'',''],
	['PAGE','1878',jdecode('About+us'),jdecode(''), jdecode('%2F1878%2Findex.html'), 'true',[ 
		['PAGE','5901',jdecode('Our+Mission'),jdecode(''), jdecode('%2F1878%2F5901.html'), 'true',[],'',''],
		['PAGE','1773',jdecode('Our+Service'),jdecode(''), jdecode('%2F1878%2F1773.html'), 'true',[],'',''],
		['PAGE','1899',jdecode('Our+team'),jdecode(''), jdecode('%2F1878%2F1899.html'), 'true',[],'',''],
		['PAGE','1920',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F1878%2F1920.html'), 'true',[],'','']
	],'',''],
	['PAGE','5922',jdecode('Commercial+Insurance'),jdecode(''), jdecode('%2F5922%2Findex.html'), 'true',[ 
		['PAGE','9801',jdecode('Commericial+Insurance+Company+Link'),jdecode(''), jdecode('%2F5922%2F9801.html'), 'true',[],'',''],
		['PAGE','62611',jdecode('Business+Owner%26%23x27%3Bs+PKG+Insurance+'),jdecode(''), jdecode('%2F5922%2F62611.html'), 'true',[],'',''],
		['PAGE','62632',jdecode('Commercial+Property+Insurance'),jdecode(''), jdecode('%2F5922%2F62632.html'), 'true',[],'',''],
		['PAGE','62653',jdecode('Commercial+General+Liability+Insurance'),jdecode(''), jdecode('%2F5922%2F62653.html'), 'true',[],'',''],
		['PAGE','62674',jdecode('Worker%26%23x27%3Bs+Compensation+Insurance'),jdecode(''), jdecode('%2F5922%2F62674.html'), 'true',[],'',''],
		['PAGE','62695',jdecode('Commercial+Auto+Insurance'),jdecode(''), jdecode('%2F5922%2F62695.html'), 'true',[],'',''],
		['PAGE','63111',jdecode('Commercial+Umbrella+Insurance'),jdecode(''), jdecode('%2F5922%2F63111.html'), 'true',[],'',''],
		['PAGE','62716',jdecode('Bond'),jdecode(''), jdecode('%2F5922%2F62716.html'), 'true',[],'','']
	],'',''],
	['PAGE','5943',jdecode('Personal+Insurance'),jdecode(''), jdecode('%2F5943%2Findex.html'), 'true',[ 
		['PAGE','9822',jdecode('Personal+Insurance+Company+Link'),jdecode(''), jdecode('%2F5943%2F9822.html'), 'true',[],'',''],
		['PAGE','12201',jdecode('Personal+Auto+Insurance+'),jdecode(''), jdecode('%2F5943%2F12201.html'), 'true',[],'',''],
		['PAGE','12464',jdecode('Homeowners+Insurance'),jdecode(''), jdecode('%2F5943%2F12464.html'), 'true',[],'',''],
		['PAGE','12401',jdecode('Motorcycle+Insurance'),jdecode(''), jdecode('%2F5943%2F12401.html'), 'true',[],'',''],
		['PAGE','12422',jdecode('Motor+Home+and+RV+Insurance'),jdecode(''), jdecode('%2F5943%2F12422.html'), 'true',[],'',''],
		['PAGE','12485',jdecode('Condos+Owners+Insurance'),jdecode(''), jdecode('%2F5943%2F12485.html'), 'true',[],'',''],
		['PAGE','12506',jdecode('Renters+Insurance'),jdecode(''), jdecode('%2F5943%2F12506.html'), 'true',[],'',''],
		['PAGE','12527',jdecode('Mobile+Home+Owners+Insurance'),jdecode(''), jdecode('%2F5943%2F12527.html'), 'true',[],'',''],
		['PAGE','12443',jdecode('Boat+%26+Yacht+Insurance'),jdecode(''), jdecode('%2F5943%2F12443.html'), 'true',[],'',''],
		['PAGE','12548',jdecode('Personal+Umbrella+Insurance'),jdecode(''), jdecode('%2F5943%2F12548.html'), 'true',[],'','']
	],'',''],
	['PAGE','5964',jdecode('Life+Insurance+%26+Long+Term+Care+Insurance'),jdecode(''), jdecode('%2F5964%2Findex.html'), 'true',[ 
		['PAGE','9843',jdecode('Life+Insurance+Company+Link'),jdecode(''), jdecode('%2F5964%2F9843.html'), 'true',[],'','']
	],'',''],
	['PAGE','9864',jdecode('Individual+%26++Family+Medical+Insurance'),jdecode(''), jdecode('%2F9864%2Findex.html'), 'true',[ 
		['PAGE','37445',jdecode('Dental+%26+Vision+Insurance'),jdecode(''), jdecode('%2F9864%2F37445.html'), 'true',[],'',''],
		['PAGE','63132',jdecode('Medicare+Advantage+%26+Supplemental+Plan'),jdecode(''), jdecode('%2F9864%2F63132.html'), 'true',[],'',''],
		['PAGE','28812',jdecode('Limited+Medical+Plan-KOREA'),jdecode(''), jdecode('%2F9864%2F28812.html'), 'true',[],'',''],
		['PAGE','35923',jdecode('International+Travel+Medical+Insurance+'),jdecode(''), jdecode('%2F9864%2F35923.html'), 'true',[],'',''],
		['PAGE','22512',jdecode('Accident+%26+Health+Insurance'),jdecode(''), jdecode('%2F9864%2F22512.html'), 'true',[],'','']
	],'',''],
	['PAGE','6027',jdecode('Service+Request'),jdecode(''), jdecode('%2F6027.html'), 'true',[],'',''],
	['PAGE','1752',jdecode('Contact+us'),jdecode(''), jdecode('%2F1752.html'), 'true',[],'',''],
	['PAGE','1941',jdecode('Affiliate+Partner'),jdecode(''), jdecode('%2F1941.html'), 'true',[],'',''],
	['PAGE','1962',jdecode('Career+Opportunities'),jdecode(''), jdecode('%2F1962.html'), 'true',[],'',''],
	['PAGE','14301',jdecode('Quote+Request'),jdecode(''), jdecode('%2F14301.html'), 'true',[],'',''],
	['PAGE','63811',jdecode('Hot+Topics'),jdecode(''), jdecode('%2F63811.html'), 'true',[],'',''],
	['ITEM','72818',jdecode('AARP+PROGRAM'),jdecode(''), jdecode('http%3A%2F%2Fagents.thehartford.com%2Fagencypages%2Fagency%2Flondongeneral%2Fap%2Faarp.html'), 'true',[],'','_blank']];
var siteelementCount=41;
theSitetree.topTemplateName='Office';
theSitetree.paletteFamily='727D9C';
theSitetree.keyvisualId='11163';
theSitetree.keyvisualName='kv_11163.jpg';
theSitetree.fontsetId='32062';
theSitetree.graphicsetId='13879';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Office',
				paletteFamily: 	'727D9C',
				keyvisualId: 	'11163',
				keyvisualName: 	'kv_11163.jpg',
				fontsetId: 		'32062',
				graphicsetId: 	'13879',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20110928-183835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1962',
internalId:  '',
customField: '20100602-141932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20100708-172040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20100611-130549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20110928-183746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20100721-194358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20110216-125522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1878',
internalId:  '',
customField: '20100721-194456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1899',
internalId:  '',
customField: '20111104-140650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1920',
internalId:  '',
customField: '20110428-182000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1941',
internalId:  '',
customField: '20100714-142103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20110216-130828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6027',
internalId:  '',
customField: '20110428-181849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62611',
internalId:  '',
customField: '20110428-183116'
};
webappMappings['1501']=webappMappings['1501-2884205']={
webappId:    '1501',
documentId:  '1701',
internalId:  '2884205',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20100714-183854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9864',
internalId:  '',
customField: '20110531-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20110414-121817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9843',
internalId:  '',
customField: '20100624-202551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20110428-181103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20110414-120618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12422',
internalId:  '',
customField: '20110414-120649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12443',
internalId:  '',
customField: '20110428-181315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12464',
internalId:  '',
customField: '20110428-181225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12485',
internalId:  '',
customField: '20110414-120757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12506',
internalId:  '',
customField: '20110518-132950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12527',
internalId:  '',
customField: '20110414-121128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12548',
internalId:  '',
customField: '20110518-133628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37445',
internalId:  '',
customField: '20110414-124411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22512',
internalId:  '',
customField: '20110428-181817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28812',
internalId:  '',
customField: '20100721-193530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20100702-185002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35923',
internalId:  '',
customField: '20100720-175605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62632',
internalId:  '',
customField: '20110428-183401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62653',
internalId:  '',
customField: '20110428-175749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62674',
internalId:  '',
customField: '20110428-175821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62695',
internalId:  '',
customField: '20110414-115917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62716',
internalId:  '',
customField: '20110428-180848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63111',
internalId:  '',
customField: '20110428-180127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63132',
internalId:  '',
customField: '20110414-130405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63811',
internalId:  '',
customField: '20110428-182135'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CX70';
var companyName   = 'London+General%2C+Inc.+DBA%3A+London+General+Insurance+Agency';
var htmlTitle	  = 'Lowest+Premium+%26+Best+Valued+Coverage';
var metaKeywords  = 'Best+Valued+Insurance+Agency%0AHealth+Insurance+in+Garden+Grove%2C+CA%0AAuto+Insurance+in+Garden+Grove%2C+CA%0ALife+Insurance+in+Garden+Grove%2C+CA%0ACommercial+Insurance+in+Garden+Grove%2C+CA';
var metaContents  = 'Insurance+%2C+Health+Insurance%2C++Auto+Insurance%2C+++Business+Insurance+%2C+Commercial+Insurance+%2C+Life+Insurance%2C++Garden+Grove+Best+Insurance.+Best+Insurance+in+California.%0ABest+Valued+Insurance+Agency%0AHealth+Insurance+in+Garden+Grove%2C+CA%0AAuto+Insurance+in+Garden+Grove%2C+CA%0ALife+Insurance+in+Garden+Grove%2C+CA%0ACommercial+Insurance+in+Garden+Grove%2C+CA';
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();
};

