/* [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','601',jdecode('HOME'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','988',jdecode('ABOUT+OUR+PRACTICE'),jdecode(''),'/988/index.html','true',[ 
		['PAGE','1009',jdecode('How+to+Find+Us'),jdecode(''),'/988/1009.html','true',[],'',''],
		['PAGE','1030',jdecode('Our+Eyecare+Team'),jdecode(''),'/988/1030.html','true',[],'',''],
		['PAGE','1051',jdecode('The+Practice+Philosophy'),jdecode(''),'/988/1051.html','true',[],'',''],
		['PAGE','1072',jdecode('Meet+Dr.+Gualtieri'),jdecode(''),'/988/1072.html','true',[],'',''],
		['PAGE','1114',jdecode('Hours+of+Operation'),jdecode(''),'/988/1114.html','true',[],'',''],
		['PAGE','1135',jdecode('Insurances+We+Accept'),jdecode(''),'/988/1135.html','true',[],'',''],
		['PAGE','32501',jdecode('Patient+Forms+to+Download'),jdecode(''),'/988/32501.html','true',[],'',''],
		['PAGE','1093',jdecode('Financing+Your+Eyecare'),jdecode(''),'/988/1093.html','true',[],'',''],
		['PAGE','63801',jdecode('Customer+Referral+Program'),jdecode(''),'/988/63801.html','true',[],'',''],
		['PAGE','75901',jdecode('Practice+Rating'),jdecode(''),'/988/75901.html','true',[],'','']
	],'',''],
	['PAGE','673',jdecode('LASER+VISION+CORRECTION'),jdecode(''),'/673.html','true',[],'',''],
	['PAGE','44901',jdecode('LASIK+-+OUR+ADVANTAGE'),jdecode(''),'/44901.html','true',[],'',''],
	['PAGE','45701',jdecode('LASIK+%22AM+I+A+CANDIDATE%3F%22'),jdecode(''),'/45701.html','true',[],'',''],
	['PAGE','45722',jdecode('LASIK+STEPS'),jdecode(''),'/45722.html','true',[],'',''],
	['PAGE','27701',jdecode('INTRALASE+%22NO+BLADE%22+LVC'),jdecode(''),'/27701.html','true',[],'',''],
	['PAGE','39601',jdecode('CUSTOM+WAVEFRONT'),jdecode(''),'/39601.html','true',[],'',''],
	['PAGE','48401',jdecode('ASTIGMATISM+CORRECTION'),jdecode(''),'/48401.html','true',[],'',''],
	['PAGE','46201',jdecode('VISION+IMPLANT+LENSES'),jdecode(''),'/46201.html','true',[],'',''],
	['PAGE','82527',jdecode('EYE+HEALTH+PRODUCTS'),jdecode(''),'/82527.html','true',[],'',''],
	['PAGE','694',jdecode('BOTOX'),jdecode(''),'/694.html','true',[],'',''],
	['PAGE','715',jdecode('COLLAGEN'),jdecode(''),'/715.html','true',[],'',''],
	['PAGE','736',jdecode('MICRODERMABRASION'),jdecode(''),'/736.html','true',[],'',''],
	['PAGE','82483',jdecode('SKIN+PEELS'),jdecode(''),'/82483.html','true',[],'',''],
	['PAGE','83229',jdecode('SKIN+PRODUCTS'),jdecode(''),'/83229.html','true',[],'',''],
	['PAGE','82432',jdecode('LATISSE+FOR+EYELASHES'),jdecode(''),'/82432.html','true',[],'',''],
	['PAGE','757',jdecode('EYELID+REJUVENATION'),jdecode(''),'/757.html','true',[],'',''],
	['PAGE','946',jdecode('EYE+DISEASES+%26+TREATMENT'),jdecode(''),'/946.html','true',[],'',''],
	['PAGE','778',jdecode('CATARACTS'),jdecode(''),'/778.html','true',[],'',''],
	['PAGE','27722',jdecode('PREMIUM+IMPLANT+LENSES'),jdecode(''),'/27722.html','true',[],'',''],
	['PAGE','799',jdecode('DRY+EYE'),jdecode(''),'/799.html','true',[],'',''],
	['PAGE','820',jdecode('GLAUCOMA'),jdecode(''),'/820.html','true',[],'',''],
	['PAGE','841',jdecode('DIABETES+%26+THE+EYE'),jdecode(''),'/841.html','true',[],'',''],
	['PAGE','44101',jdecode('MACULAR+DEGENERATION'),jdecode(''),'/44101.html','true',[],'',''],
	['PAGE','862',jdecode('EYE+EXAMS'),jdecode(''),'/862.html','true',[],'',''],
	['PAGE','883',jdecode('OPTICAL+%26+CONTACT+LENSES'),jdecode(''),'/883/index.html','true',[ 
		['PAGE','57401',jdecode('OPTICAL+SERVICES+%28follow+up+page%29'),jdecode(''),'/883/57401.html','false',[],'','']
	],'',''],
	['PAGE','904',jdecode('EYE+CARE+LINKS'),jdecode(''),'/904.html','true',[],'',''],
	['PAGE','925',jdecode('EYE+ANATOMY'),jdecode(''),'/925.html','true',[],'',''],
	['PAGE','50101',jdecode('EYE+FOCUSING+ERRORS'),jdecode(''),'/50101.html','true',[],'',''],
	['PAGE','35601',jdecode('EYE+PHOTO+GALLERY'),jdecode(''),'/35601.html','true',[],'',''],
	['PAGE','967',jdecode('THE+M.D.+%22EYE+DOCTOR%22+'),jdecode(''),'/967.html','true',[],'',''],
	['PAGE','26401',jdecode('FUNNY+EYE+CARTOONS'),jdecode(''),'/26401.html','true',[],'',''],
	['PAGE','53201',jdecode('ESPA%C3%91OL'),jdecode(''),'/53201/index.html','true',[ 
		['PAGE','53501',jdecode('Cataratas'),jdecode(''),'/53201/53501.html','true',[],'',''],
		['PAGE','53522',jdecode('Glaucoma'),jdecode(''),'/53201/53522.html','true',[],'',''],
		['PAGE','53543',jdecode('Diabetis+en+los+Ojos'),jdecode(''),'/53201/53543.html','true',[],'',''],
		['PAGE','53901',jdecode('Cirugia+Laser'),jdecode(''),'/53201/53901.html','true',[],'',''],
		['PAGE','53922',jdecode('Direciones+y+Mapas'),jdecode(''),'/53201/53922.html','true',[],'','']
	],'',''],
	['PAGE','55901',jdecode('CONTACT+US+'),jdecode(''),'/55901/index.html','true',[ 
		['PAGE','56401',jdecode('CONTACT+US+%28follow+up+page%29'),jdecode(''),'/55901/56401.html','false',[],'','']
	],'',''],
	['PAGE','82137',jdecode('DR.+G+IN+THE+COMMUNITY'),jdecode(''),'/82137.html','true',[],'','']];
var siteelementCount=53;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='E9EEF4';
theSitetree.keyvisualId='2661';
theSitetree.keyvisualName='brille.jpg';
theSitetree.fontsetId='223';
theSitetree.graphicsetId='262';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='E9EEF4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'E9EEF4',
				keyvisualId: 	'2661',
				keyvisualName: 	'brille.jpg',
				fontsetId: 		'223',
				graphicsetId: 	'262',
				contentColor: 	'000066',
				contentBGColor: 'E9EEF4',
				a_color: 		'E9EEF4',
				b_color: 		'C1C4D3',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-24709']={
webappId:    '1501',
documentId:  '601',
internalId:  '24709',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-7770']={
webappId:    '7008',
documentId:  '883',
internalId:  '7770',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-7771']={
webappId:    '7008',
documentId:  '55901',
internalId:  '7771',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83229',
internalId:  '',
customField: '20100513-193131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100128-185048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '967',
internalId:  '',
customField: '20100129-154141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '883',
internalId:  '',
customField: '20100503-122210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82137',
internalId:  '',
customField: '20100129-154651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '988',
internalId:  '',
customField: '20100128-202305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1009',
internalId:  '',
customField: '20100128-201822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1030',
internalId:  '',
customField: '20100129-153445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1051',
internalId:  '',
customField: '20080317-211634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1072',
internalId:  '',
customField: '20100128-195305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1114',
internalId:  '',
customField: '20100128-201725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1135',
internalId:  '',
customField: '20080401-172800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20080401-191129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1093',
internalId:  '',
customField: '20100128-201558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63801',
internalId:  '',
customField: '20080327-201132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75901',
internalId:  '',
customField: '20080417-202946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20080318-202655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44901',
internalId:  '',
customField: '20080325-171642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45701',
internalId:  '',
customField: '20080327-201017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45722',
internalId:  '',
customField: '20080402-201215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20080722-200458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20080318-203519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20080318-130812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20080318-130905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20080311-143353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20080327-200638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20080311-141221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20080222-150647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '946',
internalId:  '',
customField: '20080226-211230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20080509-151314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27722',
internalId:  '',
customField: '20100128-200613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20080222-174228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20080222-175721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20080226-205454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44101',
internalId:  '',
customField: '20080318-152222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20080226-210811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57401',
internalId:  '',
customField: '20080307-205658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '904',
internalId:  '',
customField: '20080318-154557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '925',
internalId:  '',
customField: '20080326-151912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20100513-190128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20090227-183425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20080229-155415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20100128-200850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53501',
internalId:  '',
customField: '20100128-200932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53522',
internalId:  '',
customField: '20100128-200955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53543',
internalId:  '',
customField: '20100128-201030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53901',
internalId:  '',
customField: '20100128-201128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53922',
internalId:  '',
customField: '20100128-201221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55901',
internalId:  '',
customField: '20080318-203636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56401',
internalId:  '',
customField: '20080307-191504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82432',
internalId:  '',
customField: '20090227-183242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82483',
internalId:  '',
customField: '20090227-185043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82527',
internalId:  '',
customField: '20100129-155849'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSSV';
var companyName   = 'Chris+J.+Gualtieri%2C+MD+Eye+Laser+%26+Vision+Center';
var htmlTitle	  = 'San+Diego+Eye+Laser%2C+LASIK%2C+Custom+LASIK%2C+Intralase%2C+Juvederm%2C+Botox%2C+Radiesse';
var metaKeywords  = 'LASIK+LASEK+PRK++Laser+vision+correction++Wavefront++WaveScan++Customvue++VISX++Custom+laser+vision+correction++Collagen++BOTOX++Juvederm++Captique++Radiesse++Microdermabrasion++Glaucoma++Cataract++Crystalens++Restor++Rezoom++Dry+eye++Diabetic+eye++Eye++Eye+care++Eye+surgery++Cosmetic+++San+Diego++Hillcrest+Ophthalmolgy+Mercy+Hospital+IOL+implant+Ptosis+Blepharoplasty+Eyelid+lift+eyelid+tuck+';
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();
};
