/* [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','2301',jdecode('Home'),jdecode(''), jdecode('%2F2301.html'), 'true',[],'',''],
	['ITEM','20612',jdecode('Online+Pharmacy%3A+Lincoln'),jdecode(''), jdecode('http%3A%2F%2Fourpetsrx.com%2Flincolnplazavet'), 'true',[],'','_blank'],
	['ITEM','20512',jdecode('Online+Pharmacy%3A+Pedley%2FMoreno'),jdecode(''), jdecode('http%3A%2F%2Fourpetsrx.com%2Fpedleysquarevet'), 'true',[],'','_blank'],
	['PAGE','2352',jdecode('Our+Doctors+%26+RVTs'),jdecode(''), jdecode('%2F2352.html'), 'true',[],'',''],
	['PAGE','45012',jdecode('Our+Support+Staff'),jdecode(''), jdecode('%2F45012.html'), 'true',[],'',''],
	['PAGE','2373',jdecode('Pedley+Square+Services'),jdecode(''), jdecode('%2F2373%2Findex.html'), 'true',[ 
		['PAGE','22312',jdecode('Laser+Surgery+-+at+Pedley+Square'),jdecode(''), jdecode('%2F2373%2F22312.html'), 'true',[],'',''],
		['PAGE','22333',jdecode('Laser+Therapy+-+at+Pedley+Square'),jdecode(''), jdecode('%2F2373%2F22333.html'), 'true',[],'','']
	],'',''],
	['PAGE','3101',jdecode('Lincoln+Plaza+Services'),jdecode(''), jdecode('%2F3101.html'), 'true',[],'',''],
	['PAGE','3122',jdecode('Moreno+Valley+Services'),jdecode(''), jdecode('%2F3122.html'), 'true',[],'',''],
	['PAGE','2701',jdecode('Directions'),jdecode(''), jdecode('%2F2701.html'), 'true',[],'',''],
	['PAGE','2394',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2394.html'), 'true',[],'',''],
	['PAGE','38012',jdecode('Client+Comments'),jdecode(''), jdecode('%2F38012.html'), 'true',[],'',''],
	['PAGE','5333',jdecode('Our+Staff+Critters'),jdecode(''), jdecode('%2F5333.html'), 'true',[],'',''],
	['PAGE','23012',jdecode('Links'),jdecode(''), jdecode('%2F23012.html'), 'true',[],'',''],
	['ITEM','52412',jdecode('Pet+Portal+-+Pedley+Square%2FMoreno+Valley'),jdecode(''), jdecode('https%3A%2F%2Fwww.vetsecure.com%2Fpedleysquarevet.com%2Flogin%2F'), 'true',[],'','_blank'],
	['ITEM','52413',jdecode('Pet+Portal+-+Lincoln+Plaza'),jdecode(''), jdecode('https%3A%2F%2Fwww.vetsecure.com%2Flincolnplazaveterinaryclinic.com%2Flogin%2F'), 'true',[],'','_blank'],
	['PAGE','40812',jdecode('Pet+Protection'),jdecode(''), jdecode('%2F40812.html'), 'true',[],'',''],
	['PAGE','28712',jdecode('Is+it+a+Pet+Emergency%3F'),jdecode(''), jdecode('%2F28712.html'), 'true',[],'',''],
	['PAGE','5312',jdecode('Job+Openings'),jdecode(''), jdecode('%2F5312.html'), 'true',[],'',''],
	['PAGE','28412',jdecode('Special+Offers'),jdecode(''), jdecode('%2F28412.html'), 'true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Blog';
theSitetree.paletteFamily='536BD3';
theSitetree.keyvisualId='11516';
theSitetree.keyvisualName='kv_11516.jpg';
theSitetree.fontsetId='32866';
theSitetree.graphicsetId='13950';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='989696';
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: 			'Blog',
				paletteFamily: 	'536BD3',
				keyvisualId: 	'11516',
				keyvisualName: 	'kv_11516.jpg',
				fontsetId: 		'32866',
				graphicsetId: 	'13950',
				contentColor: 	'FFFFFF',
				contentBGColor: '989696',
				a_color: 		'FFE933',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20120117-150259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2352',
internalId:  '',
customField: '20110822-193956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20101119-190756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2394',
internalId:  '',
customField: '20090309-135159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2373',
internalId:  '',
customField: '20111007-164505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20110422-191219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3122',
internalId:  '',
customField: '20110422-195727'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5312',
internalId:  '',
customField: '20110224-144114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5333',
internalId:  '',
customField: '20120116-191348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22312',
internalId:  '',
customField: '20101117-181318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22333',
internalId:  '',
customField: '20101117-181631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23012',
internalId:  '',
customField: '20110331-171339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28412',
internalId:  '',
customField: '20110401-194209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28712',
internalId:  '',
customField: '20101117-180322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38012',
internalId:  '',
customField: '20120117-144938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40812',
internalId:  '',
customField: '20110311-142008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45012',
internalId:  '',
customField: '20111220-142946'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHKE8';
var companyName   = 'Pedley+Square+Veterinary+Clinic';
var htmlTitle	  = '';
var metaKeywords  = 'Veterinarian%2C+Veterinary+Office%2C+Animal+Hospital%2C+Veterinary+Hospital%2C+Veterinary+Hospitals%2C+Spaying%2C+Neutering%2C+Low+Cost+Spay%2C+Low+Cost+Neuter%2C+Animal+Doctor%2C+Hospitals%2C+Veterinary+Clinic%2C+Veterinary+Surgery%2C+Orthopedic+Surgery%2C+Vet+Clinic%2C+Pet+Health%2C+Animal+Clinic%2C+Pet%2C+Animal%2C+Animals%2C+Vet%2C+Vets%2C+Veterinarians%2C+Animal+Hospitals%2C+Spay%2C+Neuter%2C+Acupuncture%2C+Chiropractic%2C+Ultrasound%2C+Xray%2C+Laser+Surgery%2C+Therapy+Laser%2C+Vaccinations%2C+Vaccines%2C+Rabies+Shot%2C+Riverside%2C+Moreno+Valley%2C+Corona%2C+Mira+Loma%2C+Pedley%2C+Rubidoux%2C+Glen+Avon%2C+Jurupa%2C+Jurupa+Hills%2C+Sunny+Slope%2C+Microchipping%2C+Microchip%2C+Home+Again%2C+Home+Again+Microchip%2C+Cat%2C+Dog%2C+Pot+Belly+Pig+Spay%2C+Pot+Belly+Pig+Neuter%2C+Rabbit+Spay%2C+Rabbit+Neuter%2C+Patella+Luxation%2C+Patella+Surgery%2C+ACL+Surgery%2C+Cruciate+Repair%2C+Low+Cost+Spay%2C+Low+Cost+Neuter%2C+Animal+Care%2C++Animal+Health%2C+Dog+C-Section%2C+Dog+Cesarean+section%2C+Cat+C-Section%2C+Cat+Cesarean+Section';
var metaContents  = 'Pedley+Square+Veterinary+Clinic+is+a+companion+animal%2C+compassionate+care+veterinary+clinic+located+in+Riverside%2C+California.+We+offer+general+surgery+and+medicine%2C+vaccination+clinics%2C+orthopedic+surgery%2C+ultrasound%2C+radiology%2C+acupuncture+and+chiropractic.++We+are+proud+to+announce+that+we+now+offer+Laser+Therapy+and+Laser+Surgery.++We+also+have+two+sister+clinics+one+in+Riverside%2C+the+other+in+Moreno+Valley+for+your+convenience.%0D%0A';
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();
};

