/* [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','6101',jdecode('Home'),jdecode(''),'/6101.html','true',[],'',''],
	['PAGE','6601',jdecode('New+Puppies'),jdecode(''),'/6601.html','true',[],'',''],
	['PAGE','32541',jdecode('Products'),jdecode(''),'/32541/index.html','true',[ 
		['PAGE','32841',jdecode('Kennels'),jdecode(''),'/32541/32841.html','true',[],'',''],
		['PAGE','32862',jdecode('Apparel'),jdecode(''),'/32541/32862.html','true',[],'',''],
		['PAGE','32904',jdecode('Carriers'),jdecode(''),'/32541/32904.html','true',[],'',''],
		['PAGE','33241',jdecode('LSU'),jdecode(''),'/32541/33241.html','true',[],'',''],
		['PAGE','33262',jdecode('Saints'),jdecode(''),'/32541/33262.html','true',[],'','']
	],'',''],
	['PAGE','9101',jdecode('Grooming'),jdecode(''),'/9101.html','true',[],'',''],
	['PAGE','7801',jdecode('Past+Pup+Photos'),jdecode(''),'/7801/index.html','true',[ 
		['PAGE','8122',jdecode('American+Eskimo'),jdecode(''),'/7801/8122.html','true',[],'',''],
		['PAGE','8143',jdecode('Boston+Terrier'),jdecode(''),'/7801/8143.html','true',[],'',''],
		['PAGE','8164',jdecode('Cairimal+%28Cairin+Terrier+x+Maltese%29'),jdecode(''),'/7801/8164.html','true',[],'',''],
		['PAGE','8185',jdecode('Chihuahua'),jdecode(''),'/7801/8185.html','true',[],'',''],
		['PAGE','8206',jdecode('Chiweenie+%28Chihuahua+x+Dachshund%29'),jdecode(''),'/7801/8206.html','true',[],'',''],
		['PAGE','8227',jdecode('Cock-A-Chon+%28Cocker+Spaniel+x+Bichon+Frise%29'),jdecode(''),'/7801/8227.html','true',[],'',''],
		['PAGE','8248',jdecode('Dachshund'),jdecode(''),'/7801/8248.html','true',[],'',''],
		['PAGE','8269',jdecode('La-Chon+%28Lhasa+Apso+x+Bichon+Frise%29'),jdecode(''),'/7801/8269.html','true',[],'',''],
		['PAGE','8290',jdecode('Lhatese+%28Lhasa+Apso+x+Maltese%29'),jdecode(''),'/7801/8290.html','true',[],'',''],
		['PAGE','76630',jdecode('Maltipoo+x+Maltipom+%28Maltese+Poodle+x+Maltese+Pomeranian%29'),jdecode(''),'/7801/76630.html','true',[],'',''],
		['PAGE','8311',jdecode('Mal-Shi+%28Maltese+x+Shih+Tzu%29'),jdecode(''),'/7801/8311.html','false',[],'',''],
		['PAGE','8332',jdecode('Maltichon+%28Maltese+x+Bichon+Frise%29'),jdecode(''),'/7801/8332.html','true',[],'',''],
		['PAGE','8353',jdecode('Miniature+Schnauzer'),jdecode(''),'/7801/8353.html','false',[],'',''],
		['PAGE','8374',jdecode('Miniature+Schnauzer+x+Japanese+Chin'),jdecode(''),'/7801/8374.html','false',[],'',''],
		['PAGE','8395',jdecode('Morkie+%28Maltese+x+Yorkie%29'),jdecode(''),'/7801/8395.html','true',[],'',''],
		['PAGE','8542',jdecode('Past+Adoption+Dogs'),jdecode(''),'/7801/8542.html','false',[],'',''],
		['PAGE','8416',jdecode('Pomapoo+%28Pomeranian+x+Poodle%29'),jdecode(''),'/7801/8416.html','true',[],'',''],
		['PAGE','8437',jdecode('Rat+Terrier'),jdecode(''),'/7801/8437.html','true',[],'',''],
		['PAGE','8458',jdecode('Shih+Tzu'),jdecode(''),'/7801/8458.html','true',[],'',''],
		['PAGE','8479',jdecode('Shi-Lha-Chon+%28Shih+Tzu+x+Lhasa+Apso+x+Bichon+Frise%29'),jdecode(''),'/7801/8479.html','false',[],'',''],
		['PAGE','8500',jdecode('Shih-Poo+%28Shih+Tzu+x+Poodle%29'),jdecode(''),'/7801/8500.html','true',[],'',''],
		['PAGE','8521',jdecode('Silkese+%28Silky+Terrier+x+Maltese%29'),jdecode(''),'/7801/8521.html','false',[],'',''],
		['PAGE','8101',jdecode('Yorkie+%28Yorkshire+Terrier%29'),jdecode(''),'/7801/8101.html','true',[],'',''],
		['PAGE','8563',jdecode('Zu-Chon+%28Shih+Tzu+x+Bichon+Frise%29'),jdecode(''),'/7801/8563.html','true',[],'',''],
		['PAGE','8584',jdecode('Trina'),jdecode(''),'/7801/8584.html','false',[],'','']
	],'',''],
	['PAGE','73830',jdecode('Adoption'),jdecode(''),'/73830/index.html','true',[ 
		['PAGE','29841',jdecode('Adoption+Day'),jdecode(''),'/73830/29841.html','true',[],'','']
	],'',''],
	['PAGE','42955',jdecode('Kittens'),jdecode(''),'/42955.html','true',[],'',''],
	['PAGE','107621',jdecode('Pets'),jdecode(''),'/107621.html','true',[],'',''],
	['PAGE','56644',jdecode('Halloween'),jdecode(''),'/56644.html','true',[],'',''],
	['PAGE','7601',jdecode('Contact'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','32241',jdecode('Our+Warranty'),jdecode(''),'/32241.html','false',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10571';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='692643';
theSitetree.contentBGColor='F0F2F4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10571',
				graphicsetId: 	'10771',
				contentColor: 	'692643',
				contentBGColor: 'F0F2F4',
				a_color: 		'000000',
				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:  '6101',
internalId:  '',
customField: '20100723-161232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20100729-120027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20090717-173843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20091219-143214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20100131-175348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20100307-183912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8122',
internalId:  '',
customField: '20090822-151922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8143',
internalId:  '',
customField: '20090822-154209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8164',
internalId:  '',
customField: '20090822-153018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8185',
internalId:  '',
customField: '20100303-194136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8206',
internalId:  '',
customField: '20091001-142621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8227',
internalId:  '',
customField: '20090822-154404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8248',
internalId:  '',
customField: '20100212-134039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8269',
internalId:  '',
customField: '20090918-142904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8290',
internalId:  '',
customField: '20090918-142202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8311',
internalId:  '',
customField: '20090717-175644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8332',
internalId:  '',
customField: '20091219-144243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8353',
internalId:  '',
customField: '20090717-175644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8374',
internalId:  '',
customField: '20090717-175644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8395',
internalId:  '',
customField: '20091003-155517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8542',
internalId:  '',
customField: '20090717-175645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8416',
internalId:  '',
customField: '20090918-143122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8437',
internalId:  '',
customField: '20090918-134717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8458',
internalId:  '',
customField: '20090918-141233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8479',
internalId:  '',
customField: '20090717-175645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8500',
internalId:  '',
customField: '20091003-155840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8521',
internalId:  '',
customField: '20090717-175645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8563',
internalId:  '',
customField: '20090918-140038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8584',
internalId:  '',
customField: '20090717-175645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32241',
internalId:  '',
customField: '20090927-130633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29841',
internalId:  '',
customField: '20091003-153723'
};
webappMappings['7060']=webappMappings['7060-c298ac216d92e4f4dad8d18afe5d464e']={
webappId:    '7060',
documentId:  '29841',
internalId:  'c298ac216d92e4f4dad8d18afe5d464e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32541',
internalId:  '',
customField: '20091017-135021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32841',
internalId:  '',
customField: '20091017-140724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32862',
internalId:  '',
customField: '20100501-231716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32904',
internalId:  '',
customField: '20091017-140836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33241',
internalId:  '',
customField: '20091217-180657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33262',
internalId:  '',
customField: '20100219-215412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76630',
internalId:  '',
customField: '20091219-145019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42955',
internalId:  '',
customField: '20100726-203820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73830',
internalId:  '',
customField: '20100108-161241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56644',
internalId:  '',
customField: '20091102-230855'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107621',
internalId:  '',
customField: '20100723-121014'
};
webappMappings['7060']=webappMappings['7060-7322d53e65544e17c6d7b8cb357e1682']={
webappId:    '7060',
documentId:  '56644',
internalId:  '7322d53e65544e17c6d7b8cb357e1682',
customField: 'language:en;country:US;'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHT7F';
var companyName   = 'Lakeside+Pets';
var htmlTitle	  = 'Pet+Supplies%2C+Science+Diet%2C+Nutro%2C+Claudia%27s+Canine+Cuisine%2C+Grooming%2C+Family+Pets';
var metaKeywords  = '';
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();
};
