/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],''],
	['PAGE','5052',jdecode('Contact+Us'),jdecode(''),'/5052.html','true',[],''],
	['PAGE','5073',jdecode('Quote'),jdecode(''),'/5073.html','true',[],''],
	['PAGE','6501',jdecode('Companies'),jdecode(''),'/6501.html','true',[],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Sportsplace';
theSitetree.paletteFamily='1D2D7E';
theSitetree.keyvisualId='2624';
theSitetree.keyvisualName='architektur.jpg';
theSitetree.fontsetId='343';
theSitetree.graphicsetId='402';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Sportsplace',
				paletteFamily: 	'1D2D7E',
				keyvisualId: 	'2624',
				keyvisualName: 	'architektur.jpg',
				fontsetId: 		'343',
				graphicsetId: 	'402',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'1D2D7E',
				b_color: 		'788EC9',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20090326-120255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5052',
internalId:  '',
customField: '20090326-130850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20090326-130939'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20090326-125822'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHWCV';
var companyName   = 'Insurance+Mundo';
var htmlTitle	  = 'Insurance+Mundo%2C+Austin%2C+TX+78758';
var metaKeywords  = 'Insurance%2C+Home+insurance%2C+automobile+insurance%2C+auto+insurance%2C+free+insurance+quote%2C+compare+premium%2C+business+insurance%2C+boat%2C+car%2C+umbrella%2C+workers+comp%2C++workers+compensation%2C+general+liability%2C+certificates+of+insurance%2C+proof+of+coverage%2C+business+automobile%2C+fleet%2C+building+and+contents%2C+professional+liability%2C+Ins+Quote%2C+quick+quote%2C+affordable+insurance%2C+Austin+Texas%2C+central+Texas%2C+Texas+Insurance%2C+IIA%2C+Independent+Insurance+Agency%2C+Spanish%2C+Espanol%2C+Central+Insurance%2C+Insurance+Mundo%2C+Pelaez';
var metaContents  = 'Insurance+Mundo+tiene+lo+que+usted+busca%3APersonal+hispano+y+completamente+biling%C3%BCe+Compa%C3%B1%C3%ADas+grandes+y+bien+conocidas%2C+con+una+variedad+incre%C3%ADble+de+productos+para+asegurar+su+auto%2C+casa%2C+negocio%2C+etc.+Precios+muy+competitivos+y+muy+buen+servicio+de+reclamos+y+siniestros+Seguros+de+vida+y+salud+a+trav%C3%A9s+de+nuestra+agencia+asociada.+%C2%A1Venga+con+nosotros+y+reciba+el+trato+que+usted+se+merece%21Insurance+Mundo+is+dedicated+to+finding+you+the+best+company+at+the+best+price+to+fit+your+individual+needs.+As+an+independent+insurance+agency%2C+we+are+not+limited+to+quoting+just+one+companys+rates.+We+shop+all+of+our+companies+to+find+the+most+competitive+market+available.Insurance+Mundo+offers+our+clients+a+wide+variety+of+insurance+options.';
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();
};
Insurance Mundo
8401-B Research Blvd.
Austin, TX 78758
(512) 837-3400
