/* [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','32',jdecode('Home'),jdecode(''), jdecode('%2F32%2Findex.html'), 'true',[ 
		['PAGE','40012',jdecode('Guestbook'),jdecode(''), jdecode('%2F32%2F40012.html'), 'true',[],'',''],
		['PAGE','3480',jdecode('Latest+News'),jdecode(''), jdecode('%2F32%2F3480.html'), 'true',[],'',''],
		['PAGE','71112',jdecode('Why+SVG%3F'),jdecode(''), jdecode('%2F32%2F71112.html'), 'true',[],'',''],
		['PAGE','143',jdecode('Contact+Us'),jdecode(''), jdecode('%2F32%2F143.html'), 'true',[],'','']
	],'',''],
	['PAGE','33454',jdecode('VetStoreRx'),jdecode(''), jdecode('%2F33454%2Findex.html'), 'true',[ 
		['PAGE','3614',jdecode('About+VetStoreRx'),jdecode(''), jdecode('%2F33454%2F3614.html'), 'true',[],'',''],
		['PAGE','3550',jdecode('Other+Pharmacies'),jdecode(''), jdecode('%2F33454%2F3550.html'), 'true',[],'',''],
		['PAGE','11801',jdecode('Fake+Drug+Alert'),jdecode(''), jdecode('%2F33454%2F11801.html'), 'true',[],'','']
	],'',''],
	['PAGE','33496',jdecode('General+Info'),jdecode(''), jdecode('%2F33496%2Findex.html'), 'true',[ 
		['PAGE','53',jdecode('Take+A+Tour'),jdecode(''), jdecode('%2F33496%2F53.html'), 'true',[],'',''],
		['PAGE','62',jdecode('Our+Team'),jdecode(''), jdecode('%2F33496%2F62.html'), 'true',[],'',''],
		['PAGE','4524',jdecode('Affordability'),jdecode(''), jdecode('%2F33496%2F4524.html'), 'true',[],'',''],
		['PAGE','107',jdecode('Special+Offers'),jdecode(''), jdecode('%2F33496%2F107.html'), 'true',[],'','']
	],'',''],
	['PAGE','170',jdecode('Emergency'),jdecode(''), jdecode('%2F170%2Findex.html'), 'true',[ 
		['PAGE','55812',jdecode('Poisons'),jdecode(''), jdecode('%2F170%2F55812.html'), 'true',[],'',''],
		['PAGE','62712',jdecode('Loud+Noise'),jdecode(''), jdecode('%2F170%2F62712.html'), 'true',[],'',''],
		['PAGE','86412',jdecode('Heat+Stroke'),jdecode(''), jdecode('%2F170%2F86412.html'), 'true',[],'','']
	],'',''],
	['PAGE','3379',jdecode('Wellness+Exams'),jdecode(''), jdecode('%2F3379%2Findex.html'), 'true',[ 
		['PAGE','34612',jdecode('Dog+Wellness'),jdecode(''), jdecode('%2F3379%2F34612.html'), 'true',[],'',''],
		['PAGE','34633',jdecode('Cat+Wellness'),jdecode(''), jdecode('%2F3379%2F34633.html'), 'true',[],'',''],
		['PAGE','34654',jdecode('Senior+Pet+'),jdecode(''), jdecode('%2F3379%2F34654.html'), 'true',[],'',''],
		['PAGE','101812',jdecode('Low+Cost+Care'),jdecode(''), jdecode('%2F3379%2F101812.html'), 'true',[],'','']
	],'',''],
	['PAGE','33412',jdecode('Vaccination'),jdecode(''), jdecode('%2F33412%2Findex.html'), 'true',[ 
		['PAGE','55512',jdecode('Dog+Vaccination'),jdecode(''), jdecode('%2F33412%2F55512.html'), 'true',[],'',''],
		['PAGE','55533',jdecode('Cat+Vaccination'),jdecode(''), jdecode('%2F33412%2F55533.html'), 'true',[],'','']
	],'',''],
	['PAGE','38112',jdecode('Laser+Surgery'),jdecode(''), jdecode('%2F38112%2Findex.html'), 'true',[ 
		['PAGE','73712',jdecode('Procedure+Discription'),jdecode(''), jdecode('%2F38112%2F73712.html'), 'true',[],'','']
	],'',''],
	['PAGE','33433',jdecode('Dental+Services'),jdecode(''), jdecode('%2F33433%2Findex.html'), 'true',[ 
		['PAGE','129012',jdecode('Teeth+Care'),jdecode(''), jdecode('%2F33433%2F129012.html'), 'true',[],'','']
	],'',''],
	['PAGE','33654',jdecode('Behavior'),jdecode(''), jdecode('%2F33654%2Findex.html'), 'true',[ 
		['PAGE','88512',jdecode('PK+Special+Offer'),jdecode(''), jdecode('%2F33654%2F88512.html'), 'true',[],'','']
	],'',''],
	['PAGE','89',jdecode('Parasites'),jdecode(''), jdecode('%2F89%2Findex.html'), 'true',[ 
		['PAGE','36912',jdecode('Fleas'),jdecode(''), jdecode('%2F89%2F36912.html'), 'true',[],'',''],
		['PAGE','50912',jdecode('Heartworm'),jdecode(''), jdecode('%2F89%2F50912.html'), 'true',[],'','']
	],'',''],
	['PAGE','33612',jdecode('Labwork'),jdecode(''), jdecode('%2F33612.html'), 'true',[],'',''],
	['PAGE','33633',jdecode('Radiology'),jdecode(''), jdecode('%2F33633%2Findex.html'), 'true',[ 
		['PAGE','78512',jdecode('OFA+Cert'),jdecode(''), jdecode('%2F33633%2F78512.html'), 'true',[],'','']
	],'',''],
	['PAGE','3605',jdecode('Pharmacy'),jdecode(''), jdecode('%2F3605%2Findex.html'), 'true',[ 
		['PAGE','57812',jdecode('Script+Policy'),jdecode(''), jdecode('%2F3605%2F57812.html'), 'true',[],'',''],
		['PAGE','116912',jdecode('Drug+Shortages'),jdecode(''), jdecode('%2F3605%2F116912.html'), 'true',[],'','']
	],'',''],
	['PAGE','98',jdecode('Diet+%26+Nutrition'),jdecode(''), jdecode('%2F98.html'), 'true',[],'',''],
	['PAGE','80',jdecode('Microchips'),jdecode(''), jdecode('%2F80.html'), 'true',[],'',''],
	['PAGE','852',jdecode('Directions'),jdecode(''), jdecode('%2F852.html'), 'true',[],'',''],
	['PAGE','858',jdecode('Map'),jdecode(''), jdecode('%2F858.html'), 'true',[],'',''],
	['PAGE','134',jdecode('Jobs'),jdecode(''), jdecode('%2F134.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='4A587F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10449';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='4A587F';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'optimum',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Akropolis',
				paletteFamily: 	'4A587F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10449',
				contentColor: 	'FFFFFF',
				contentBGColor: '4A587F',
				a_color: 		'4A587F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '852',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '858',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116912',
internalId:  '',
customField: '20120121-153850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20120129-100831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3379',
internalId:  '',
customField: '20120121-150303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3480',
internalId:  '',
customField: '20120129-101638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170',
internalId:  '',
customField: '20120129-101318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55512',
internalId:  '',
customField: '20120129-110336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3605',
internalId:  '',
customField: '20120121-153706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33412',
internalId:  '',
customField: '20111102-154603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4524',
internalId:  '',
customField: '20120122-124056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20120121-143607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20120121-144153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20120121-153050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89',
internalId:  '',
customField: '20120121-154410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98',
internalId:  '',
customField: '20120122-133844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107',
internalId:  '',
customField: '20120129-100647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101812',
internalId:  '',
customField: '20120129-111038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3614',
internalId:  '',
customField: '20111102-145940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3550',
internalId:  '',
customField: '20111102-150239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20120121-150101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86412',
internalId:  '',
customField: '20120121-145631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88512',
internalId:  '',
customField: '20111101-111425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129012',
internalId:  '',
customField: '20120122-133124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57812',
internalId:  '',
customField: '20110906-105026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143',
internalId:  '',
customField: '20111102-145215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '858',
internalId:  '',
customField: '20120121-153030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20060604-030837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134',
internalId:  '',
customField: '20120121-152936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33612',
internalId:  '',
customField: '20111016-111253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33633',
internalId:  '',
customField: '20120122-133605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33433',
internalId:  '',
customField: '20120122-133221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33654',
internalId:  '',
customField: '20120122-133444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33454',
internalId:  '',
customField: '20120122-133228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33496',
internalId:  '',
customField: '20120129-100956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34612',
internalId:  '',
customField: '20120121-151030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34633',
internalId:  '',
customField: '20120121-151431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34654',
internalId:  '',
customField: '20120121-151544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36912',
internalId:  '',
customField: '20120107-110801'
};
webappMappings['1002']=webappMappings['1002-40012ahw050inxx7e']={
webappId:    '1002',
documentId:  '40012',
internalId:  '40012ahw050inxx7e',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40012',
internalId:  '',
customField: '20120121-140513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38112',
internalId:  '',
customField: '20120121-154814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50912',
internalId:  '',
customField: '20120121-154444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55812',
internalId:  '',
customField: '20120121-145518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55533',
internalId:  '',
customField: '20120129-110629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78512',
internalId:  '',
customField: '20120122-133811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71112',
internalId:  '',
customField: '20120121-135735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62712',
internalId:  '',
customField: '20120121-145557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73712',
internalId:  '',
customField: '20111102-155314'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX7E';
var companyName   = 'Suffolk+Veterinary+Group+Wellness+%26+Laser+Surgery';
var htmlTitle	  = 'Suffolk+Veterinary+Group';
var metaKeywords  = 'Suffolk%2C+Veterinary%2C+Group%2C+Animal%2C+Hospital%2C+veterinarian%2C+Long%2C+Island%2C+County%2C+Northeast%2C+Dr.%2C+doctor%2C+Christopher%2C+Winkler%2C+Phil%2C+Coccari%2C+DVM%2C+LVT%2C+Vet%2C+Tech%2C+Laser%2C+Surgery%2C+Medicine%2C+Vaccination%2C+Vaccine%2C+Emergency%2C+VetStoreRx%2C+Online%2C+Pharmacy%2C+Bloat%2C++Spenectomy%2C+Aural%2C+Hematoma%2C+Foreign%2C+Body%2C+Spay%2C+Neuter%2C+Dog%2C+Cat%2C+Puppy%2C+Kitten%2C+Distemper%2C+Rabies%2C+Lyme%2C+Lepto%2C+Leptospirosis%2C+Kennel%2C+Cough%2C+Bordatella%2C+Wound%2C+care%2C+trauma%2C+skin%2C+declaw%2C+cherry%2C+eye%2C+New%2C+York%2C+Selden%2C+Centereach%2C+Eastern%2C+Vax%2C+VetCentric%2C+Clinic%2C+Pet%2C+Pets%2C+canine%2C+feline%2C+pain%2C+general%2C+wellness%2C+Coram%2C+Licensed%2C+American%2C+Association%2C+Vaccine%2C+';
var metaContents  = 'Suffolk+Veterinary+Group+is+a+full+service+general+wellness+animal+hospital';
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();
};

