/* [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','701',jdecode('HOME'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','752',jdecode('BREED+INFO'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','773',jdecode('Description'),jdecode(''),'/752/773.html','true',[],'',''],
		['PAGE','794',jdecode('Character'),jdecode(''),'/752/794.html','true',[],'','']
	],'',''],
	['PAGE','815',jdecode('ABOUT+US'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','836',jdecode('Steve+%26+Julie'),jdecode(''),'/815/836.html','true',[],'',''],
		['PAGE','857',jdecode('Craig+%26+Terri'),jdecode(''),'/815/857.html','true',[],'','']
	],'',''],
	['PAGE','878',jdecode('OUR+STUDS'),jdecode(''),'/878/index.html','true',[ 
		['PAGE','152801',jdecode('Buck'),jdecode(''),'/878/152801.html','true',[],'',''],
		['PAGE','18864',jdecode('Maximus'),jdecode(''),'/878/18864.html','true',[],'','']
	],'',''],
	['PAGE','920',jdecode('OUR+BITCHES'),jdecode(''),'/920/index.html','true',[ 
		['PAGE','45301',jdecode('Bannon'),jdecode(''),'/920/45301.html','true',[],'',''],
		['PAGE','106401',jdecode('Cyra'),jdecode(''),'/920/106401.html','true',[],'',''],
		['PAGE','200364',jdecode('Karamel'),jdecode(''),'/920/200364.html','true',[],'',''],
		['PAGE','19011',jdecode('Isis'),jdecode(''),'/920/19011.html','true',[],'',''],
		['PAGE','200343',jdecode('Sabre'),jdecode(''),'/920/200343.html','true',[],'',''],
		['PAGE','44501',jdecode('Kolohe'),jdecode(''),'/920/44501.html','true',[],'',''],
		['PAGE','18969',jdecode('Annie'),jdecode(''),'/920/18969.html','true',[],'',''],
		['PAGE','262001',jdecode('Lil+Mac'),jdecode(''),'/920/262001.html','true',[],'',''],
		['PAGE','279301',jdecode('Calypso'),jdecode(''),'/920/279301.html','true',[],'',''],
		['PAGE','279322',jdecode('BellaTrix'),jdecode(''),'/920/279322.html','true',[],'',''],
		['PAGE','279343',jdecode('Makoa'),jdecode(''),'/920/279343.html','true',[],'','']
	],'',''],
	['PAGE','941',jdecode('*+Puppies+4+SALE+*'),jdecode(''),'/941/index.html','true',[ 
		['PAGE','2101',jdecode('Our+Puppies'),jdecode(''),'/941/2101.html','true',[],'',''],
		['PAGE','2122',jdecode('Consignment+Puppies'),jdecode(''),'/941/2122.html','true',[],'',''],
		['PAGE','2143',jdecode('Adults'),jdecode(''),'/941/2143.html','true',[],'',''],
		['PAGE','183601',jdecode('Puppy+Waiting+List'),jdecode(''),'/941/183601.html','true',[],'','']
	],'',''],
	['PAGE','2164',jdecode('SERVICES'),jdecode(''),'/2164/index.html','true',[ 
		['PAGE','2185',jdecode('Stud+Service'),jdecode(''),'/2164/2185.html','true',[],'',''],
		['PAGE','2206',jdecode('Kennel+Service'),jdecode(''),'/2164/2206.html','true',[],'','']
	],'',''],
	['PAGE','2227',jdecode('ONLINE+STORE'),jdecode(''),'/2227.html','true',[],'',''],
	['PAGE','2248',jdecode('PUPPY+SHIPPING'),jdecode(''),'/2248.html','true',[],'',''],
	['PAGE','2269',jdecode('HEALTH+GUARANTEE'),jdecode(''),'/2269.html','true',[],'',''],
	['PAGE','2290',jdecode('VIDEOS'),jdecode(''),'/2290/index.html','true',[ 
		['PAGE','2311',jdecode('Tricks'),jdecode(''),'/2290/2311.html','true',[],'',''],
		['PAGE','2332',jdecode('Puppies'),jdecode(''),'/2290/2332.html','true',[],'',''],
		['PAGE','2353',jdecode('Humor'),jdecode(''),'/2290/2353.html','true',[],'','']
	],'',''],
	['PAGE','2458',jdecode('Customer+Feedback'),jdecode(''),'/2458.html','true',[],'',''],
	['PAGE','172201',jdecode('Windy+Knoll'),jdecode(''),'/172201/index.html','false',[ 
		['PAGE','173701',jdecode('Ching+Ching'),jdecode(''),'/172201/173701.html','true',[],'',''],
		['PAGE','218501',jdecode('Bo'),jdecode(''),'/172201/218501.html','true',[],'',''],
		['PAGE','218522',jdecode('Lucky+III'),jdecode(''),'/172201/218522.html','true',[],'',''],
		['PAGE','173722',jdecode('T-Bone'),jdecode(''),'/172201/173722.html','true',[],'',''],
		['PAGE','173743',jdecode('Hank'),jdecode(''),'/172201/173743.html','true',[],'',''],
		['PAGE','221701',jdecode('Lei+Lei'),jdecode(''),'/172201/221701.html','true',[],'',''],
		['PAGE','221722',jdecode('Athena'),jdecode(''),'/172201/221722.html','true',[],'',''],
		['PAGE','221743',jdecode('Electra'),jdecode(''),'/172201/221743.html','true',[],'',''],
		['PAGE','221764',jdecode('McKinzie'),jdecode(''),'/172201/221764.html','true',[],'',''],
		['PAGE','221785',jdecode('Ula'),jdecode(''),'/172201/221785.html','true',[],'',''],
		['PAGE','221806',jdecode('Dixie'),jdecode(''),'/172201/221806.html','true',[],'','']
	],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Fantasy';
theSitetree.paletteFamily='FFED11';
theSitetree.keyvisualId='9903';
theSitetree.keyvisualName='kv3.swf';
theSitetree.fontsetId='17882';
theSitetree.graphicsetId='13068';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Fantasy',
				paletteFamily: 	'FFED11',
				keyvisualId: 	'9903',
				keyvisualName: 	'kv3.swf',
				fontsetId: 		'17882',
				graphicsetId: 	'13068',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-140']={
webappId:    '7008',
documentId:  '701',
internalId:  '140',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-141']={
webappId:    '7008',
documentId:  '2185',
internalId:  '141',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-142']={
webappId:    '7008',
documentId:  '941',
internalId:  '142',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-143']={
webappId:    '7008',
documentId:  '2101',
internalId:  '143',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-144']={
webappId:    '7008',
documentId:  '2122',
internalId:  '144',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-44f6299cd67f13b57e8063708946bed1']={
webappId:    '7060',
documentId:  '44501',
internalId:  '44f6299cd67f13b57e8063708946bed1',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-5b44fa003ce3051481e4694a6b518790']={
webappId:    '7060',
documentId:  '45301',
internalId:  '5b44fa003ce3051481e4694a6b518790',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173722',
internalId:  '',
customField: '20090905-203417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100604-194922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090119-145348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20090119-145411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '794',
internalId:  '',
customField: '20090119-145436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20090119-140150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20091106-223040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '857',
internalId:  '',
customField: '20090119-140415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279301',
internalId:  '',
customField: '20100625-170348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20091228-125140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152801',
internalId:  '',
customField: '20090911-200131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262001',
internalId:  '',
customField: '20100220-202216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18864',
internalId:  '',
customField: '20091228-134316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279343',
internalId:  '',
customField: '20100625-170745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '920',
internalId:  '',
customField: '20100830-174753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20100704-102524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20090119-141847'
};
webappMappings['1501']=webappMappings['1501-12298323']={
webappId:    '1501',
documentId:  '701',
internalId:  '12298323',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18969',
internalId:  '',
customField: '20090119-142306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218501',
internalId:  '',
customField: '20091106-223709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279322',
internalId:  '',
customField: '20100625-170559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19011',
internalId:  '',
customField: '20090221-110555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106401',
internalId:  '',
customField: '20090407-205741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '172201',
internalId:  '',
customField: '20091220-075809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '941',
internalId:  '',
customField: '20100830-175709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100830-180126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20100906-151640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20100123-174045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20100830-180343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20090119-143215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20100830-180926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20100830-182520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2248',
internalId:  '',
customField: '20090119-144603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2269',
internalId:  '',
customField: '20090119-144714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2290',
internalId:  '',
customField: '20090119-144810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2311',
internalId:  '',
customField: '20091226-120434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2332',
internalId:  '',
customField: '20091227-000320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2353',
internalId:  '',
customField: '20100417-193357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173701',
internalId:  '',
customField: '20081127-172515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2458',
internalId:  '',
customField: '20100627-144945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173743',
internalId:  '',
customField: '20090907-131309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183601',
internalId:  '',
customField: '20100830-180320'
};
webappMappings['7008']=webappMappings['7008-12020']={
webappId:    '7008',
documentId:  '183601',
internalId:  '12020',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200343',
internalId:  '',
customField: '20090825-214511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200364',
internalId:  '',
customField: '20100220-184200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '218522',
internalId:  '',
customField: '20090905-202442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221701',
internalId:  '',
customField: '20090907-134824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221722',
internalId:  '',
customField: '20090907-140243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221743',
internalId:  '',
customField: '20090907-141828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221764',
internalId:  '',
customField: '20090907-142618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221785',
internalId:  '',
customField: '20090907-130418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221806',
internalId:  '',
customField: '20090907-130418'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN20X6';
var companyName   = 'BULLIES+OF+NC';
var htmlTitle	  = 'Bull+Terrier+Puppies%2C+Bull+Terrier+Breeders';
var metaKeywords  = 'Bull+Terrier+breeders%2C+bull+terrier+puppies%2C+bull+terriers+nc%2C+bull+terrier+breeders+in+nc%2C+puppies+for+sale%2C+bull+terrier+puppies+for+sale%2C+bull+terriers+in+north+carolina%2C+bull+terriers%2C+bull+terrier';
var metaContents  = 'Breeders+of+the+finest+Bull+Terriers+in+the+country.';
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();
};
