/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','578',jdecode('Meet+the+Doctors'),jdecode(''),'/578.html','true',[],''],
	['PAGE','35401',jdecode('Location+%26+Directions'),jdecode(''),'/35401.html','true',[],''],
	['PAGE','494',jdecode('Spectrum+of+practice'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','515',jdecode('Comprehensive+Exam'),jdecode(''),'/494/515.html','true',[],''],
		['PAGE','536',jdecode('Contact+Lens+Fitting'),jdecode(''),'/494/536.html','true',[],''],
		['PAGE','557',jdecode('Disease+Management'),jdecode(''),'/494/557.html','true',[],'']
	],''],
	['PAGE','26401',jdecode('Eyewear+Dispensary'),jdecode(''),'/26401.html','true',[],''],
	['PAGE','599',jdecode('New+Technology'),jdecode(''),'/599.html','true',[],''],
	['PAGE','6101',jdecode('Insurance'),jdecode(''),'/6101.html','true',[],''],
	['PAGE','34801',jdecode('Eye+Encyclopedia'),jdecode(''),'/34801/index.html','true',[ 
		['PAGE','37901',jdecode('Anatomy'),jdecode(''),'/34801/37901.html','true',[],''],
		['PAGE','42801',jdecode('Visiual+Conditions'),jdecode(''),'/34801/42801.html','true',[],''],
		['PAGE','34822',jdecode('Glaucoma'),jdecode(''),'/34801/34822.html','true',[],''],
		['PAGE','34843',jdecode('Macular+Degeneration'),jdecode(''),'/34801/34843.html','true',[],''],
		['PAGE','42822',jdecode('Cataracts'),jdecode(''),'/34801/42822.html','true',[],''],
		['PAGE','34864',jdecode('Red+Eyes'),jdecode(''),'/34801/34864.html','true',[],'']
	],''],
	['PAGE','45301',jdecode('Contact+Us'),jdecode(''),'/45301.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Optic';
theSitetree.paletteFamily='974745';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10508';
theSitetree.graphicsetId='11050';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='A75250';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Optic',
				paletteFamily: 	'974745',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10508',
				graphicsetId: 	'11050',
				contentColor: 	'FFFFFF',
				contentBGColor: 'A75250',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'C8C7C7',
				e_color: 		'C8C7C7',
				f_color: 		'C8C7C7',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '35401',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080409-064014'
};
webappMappings['7008']=webappMappings['7008-786']={
webappId:    '7008',
documentId:  '45301',
internalId:  '786',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080409-065429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35401',
internalId:  '',
customField: '20080409-123217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080331-100640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080409-112742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20080409-065243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20080409-065056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20080401-062504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37901',
internalId:  '',
customField: '20080331-115957'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INLF6L';
var companyName   = 'North+Cincinnati+Eyecare';
var htmlTitle	  = 'North+Cincinnati+Eyecare';
var metaKeywords  = 'Dr.+James+Scholles%2C+James+Scholles%2C+James+Scholles%2C+Optometry%2C+Dr.+Jim+Scholles%2C+Jim+Scholles%2C+Dr.+David+Wert%2C+David+Wert%2C+David+Wert+Optometrist%2C+Dr.+Philip+Jutte%2C+Philip+Jutte%2C+Philip+Jutte+Optometrist%2C+Philip+Jutte+O.D.%2C+James+Scholles+O.D.%2C+David+Wert+O.D.%2C+Dr.+Phil+Jutte%2C+Phil+Jutte%2C+Phil+Jutte+O.D.%2C+North+Cincinnati+Eyecare%2C+Finneytown+Optometrist%2C+Wyoming+Optometrist%2C+Cincinnati+Optometrist%2C+North+Cincinnati+Optometrist%2C+Mt.+Healthy+Optometrist%2C+Mount+Healthy+Optometrist%2C+Springfield+Township+Optometrist%2C+Cincinnati+Optometry%2C+North+Cincinnati+Optometry%2C+Wyoming+Optometry%2C+Wyoming+eye+doctor%2C+Cincinnati+eye+doctor%2C+springfield+township+eye+doctor%2C+finneytown+eye+doctor%2C+brentwood+optometry%2C+brentwood+eye+doctor%2C+Dr.+Melissa+Kerby%2C+Melissa+Kerby%2C+Melissa+Kerby+Optometrist%2C+Dr.+Dave+Wert%2C+Dave+Wert%2C+Dave+Wert+O.D.%2C+Dave+Wert+Optometrist%2C+Philip+Jutte+O.D.%2C+Philip+Jutte+OD%2C+James+Scholles+O.D.%2C+James+Scholles+OD%2C+David+Wert+O.D.%2C+David+Wert+OD%2C+Dr.+James+Scholles+Optometrist%2C+Dr.+James+R.+Scholles+Optometrist+INC%2C+Eyes%2C+Vision%2C+Glasses%2C+Eyeglasses%2C+Eye+glasses%2C+contact+lenses%2C+contact+lens%2C+contacts%2C+dry+eyes%2C+cataracts%2C+pink+eye%2C+glaucoma%2C+sports+vision%2C+childrens+vision%2C+children+vision%2C+eye+diseases%2C+spectacles%2C+eyecare';
var metaContents  = 'North+Cincinnati+Eyecare+was+founded+in+1959+in+Finneytown+by+Dr.+James+Scholles+and+has+been+serving+the+Greater+Cincinnati+Area+for+nearly+50+years.++Along+with+Dr.+David+Wert+and+Dr.+Philip+Jutte%2C++Dr.+Scholles+provides+exceptional+eye+care+for+the+whole+family+at+North+Cincinnati+Eyecare.';
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();
};

