/* [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','5201',jdecode('Home'),jdecode(''),'/5201.html','true',[],''],
	['PAGE','94201',jdecode('About+Us'),jdecode(''),'/94201.html','true',[],''],
	['PAGE','30301',jdecode('Our+Aussie+Family+Album'),jdecode(''),'/30301/index.html','true',[ 
		['PAGE','31901',jdecode('Maryland+Family'),jdecode(''),'/30301/31901.html','true',[],''],
		['PAGE','31922',jdecode('Arkansas+Family'),jdecode(''),'/30301/31922.html','true',[],''],
		['PAGE','35901',jdecode('Kansas+Family'),jdecode(''),'/30301/35901.html','true',[],''],
		['PAGE','36901',jdecode('Connecticut+Family'),jdecode(''),'/30301/36901.html','true',[],''],
		['PAGE','39001',jdecode('Oklahoma+Family'),jdecode(''),'/30301/39001.html','true',[],''],
		['PAGE','42201',jdecode('Canada+Family'),jdecode(''),'/30301/42201.html','true',[],''],
		['PAGE','63401',jdecode('Indiana+Family'),jdecode(''),'/30301/63401.html','true',[],''],
		['PAGE','68601',jdecode('Oklahoma-2+Family'),jdecode(''),'/30301/68601.html','true',[],''],
		['PAGE','108101',jdecode('Oklahoma-3+Family'),jdecode(''),'/30301/108101.html','true',[],'']
	],''],
	['PAGE','5273',jdecode('Aussie+Males'),jdecode(''),'/5273.html','true',[],''],
	['PAGE','5294',jdecode('Aussie+Females'),jdecode(''),'/5294.html','true',[],''],
	['PAGE','5315',jdecode('**Aussie+Puppies+For+Sale**'),jdecode(''),'/5315/index.html','true',[ 
		['PAGE','115001',jdecode('Aussie+Puppy+Page+2'),jdecode(''),'/5315/115001.html','true',[],'']
	],''],
	['PAGE','79801',jdecode('Dachshunds'),jdecode(''),'/79801.html','true',[],''],
	['PAGE','85401',jdecode('**Dachshund+Pups+For+Sale**'),jdecode(''),'/85401.html','true',[],''],
	['PAGE','52501',jdecode('Our+Min-Pin+Family+Album'),jdecode(''),'/52501/index.html','true',[ 
		['PAGE','52522',jdecode('Missouri+Family'),jdecode(''),'/52501/52522.html','true',[],''],
		['PAGE','54501',jdecode('New+York+Family'),jdecode(''),'/52501/54501.html','true',[],''],
		['PAGE','64401',jdecode('Arkansas+Family'),jdecode(''),'/52501/64401.html','true',[],''],
		['PAGE','74101',jdecode('Texas+Family'),jdecode(''),'/52501/74101.html','true',[],''],
		['PAGE','88001',jdecode('Florida+Family'),jdecode(''),'/52501/88001.html','true',[],''],
		['PAGE','90801',jdecode('New+York-2+Family'),jdecode(''),'/52501/90801.html','true',[],''],
		['PAGE','101001',jdecode('Wisconsin+Family'),jdecode(''),'/52501/101001.html','true',[],''],
		['PAGE','103801',jdecode('Arkansas-2+Family'),jdecode(''),'/52501/103801.html','true',[],''],
		['PAGE','105601',jdecode('Massachusetts+Family'),jdecode(''),'/52501/105601.html','true',[],''],
		['PAGE','108201',jdecode('Alaska+Family'),jdecode(''),'/52501/108201.html','true',[],'']
	],''],
	['PAGE','23001',jdecode('Min-Pin+Males'),jdecode(''),'/23001.html','true',[],''],
	['PAGE','23022',jdecode('Min-Pin+Females'),jdecode(''),'/23022/index.html','true',[ 
		['PAGE','24501',jdecode('Min-Pin+Females-Page+2'),jdecode(''),'/23022/24501.html','true',[],'']
	],''],
	['PAGE','84101',jdecode('**Min-Pin+Puppies+For+Sale**'),jdecode(''),'/84101.html','true',[],''],
	['PAGE','59901',jdecode('Yorkies'),jdecode(''),'/59901.html','true',[],''],
	['PAGE','65601',jdecode('**Yorkie+Puppies+For+Sale**'),jdecode(''),'/65601.html','true',[],''],
	['PAGE','5252',jdecode('Contact+Us'),jdecode(''),'/5252.html','true',[],''],
	['PAGE','113101',jdecode('Our+Adopton+Page'),jdecode(''),'/113101.html','true',[],''],
	['PAGE','7101',jdecode('Making+A+Purchase'),jdecode(''),'/7101.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Anniversary';
theSitetree.paletteFamily='730303';
theSitetree.keyvisualId='3740';
theSitetree.keyvisualName='kv_3740.jpg';
theSitetree.fontsetId='10472';
theSitetree.graphicsetId='10947';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F3EFDB';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Anniversary',
				paletteFamily: 	'730303',
				keyvisualId: 	'3740',
				keyvisualName: 	'kv_3740.jpg',
				fontsetId: 		'10472',
				graphicsetId: 	'10947',
				contentColor: 	'000000',
				contentBGColor: 'F3EFDB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F7EFDE',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'828181',
				e_color: 		'828181',
				f_color: 		'828181',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-10980']={
webappId:    '7008',
documentId:  '5252',
internalId:  '10980',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100119-144041'
};
webappMappings['7050']=webappMappings['7050-13523']={
webappId:    '7050',
documentId:  '5201',
internalId:  '13523',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5273',
internalId:  '',
customField: '20091007-195303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5294',
internalId:  '',
customField: '20100119-150401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20081231-073152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7101',
internalId:  '',
customField: '20091223-150357'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20090327-040621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5315',
internalId:  '',
customField: '20100306-114456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90801',
internalId:  '',
customField: '20091224-180319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20091228-084036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31922',
internalId:  '',
customField: '20090303-080829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85401',
internalId:  '',
customField: '20100305-234018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20100212-150003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20091214-115837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23022',
internalId:  '',
customField: '20100201-155459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20100201-155628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88001',
internalId:  '',
customField: '20091108-153208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20090911-150810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52501',
internalId:  '',
customField: '20091228-093058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52522',
internalId:  '',
customField: '20091205-074058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20090315-073422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20090517-224640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20091011-215706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42201',
internalId:  '',
customField: '20090408-082607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20090711-122157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54501',
internalId:  '',
customField: '20090603-094415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59901',
internalId:  '',
customField: '20090830-090303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64401',
internalId:  '',
customField: '20100109-092430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65601',
internalId:  '',
customField: '20100228-200243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84101',
internalId:  '',
customField: '20100228-181354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113101',
internalId:  '',
customField: '20100222-075612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79801',
internalId:  '',
customField: '20100228-181823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94201',
internalId:  '',
customField: '20100201-154441'
};
webappMappings['4001']=webappMappings['4001-24810540']={
webappId:    '4001',
documentId:  '7101',
internalId:  '24810540',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101001',
internalId:  '',
customField: '20091228-154646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103801',
internalId:  '',
customField: '20091211-172522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105601',
internalId:  '',
customField: '20100102-084539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108101',
internalId:  '',
customField: '20091228-084819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108201',
internalId:  '',
customField: '20091228-090718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115001',
internalId:  '',
customField: '20100228-200152'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INEUKY';
var companyName   = 'Blue+Mountain+Kennels';
var htmlTitle	  = 'Blue+Mountain+Kennels';
var metaKeywords  = 'Dogs%2C+Puppies%2C+Aussies%2C+Australian+Shepherds%2C+Miniature+Pinschers%2C+Min-Pins%2CMiniature+Pinschers+for+sale%2C+Min-Pins+for+sale%2C+Min-Pin+puppies%2C+Miniature+Pinscher+puppies%2C+Min-Pins+puppies+for+sale%2CYorkshire+Terriers%2C+Yorkies%2C+Yorkies+for+Sale%2C+Yorkshire+Terriers+for+Sale%2CYorkie+Puppies+for+sale%2CYorkshire+Terrier+puppies+for+sale%2CYorkie+puppies%2CYorkies+for+sale+in+Oklahoma%2C+Yorkie+puppies+for+sale+in+Oklahoma%2C+Dachshunds+for+sale%2C+Dachshunds+for+sale+in+Oklahoma%2C+Dachshund+Puppies+for+sale%2C+Dachshund+Puppies+for+sale+in+Oklahoma%2CLong+haired+Dachshunds+for+sale%2C+Wire+haired+Dachshunds+for+sale%2C+Short+haired+Dachshunds+for+sale%2C+Stock+Dogs%2C+Working+Dogs%2C+Family+Pets%2C+For+Sale%2C+Puppies+for+Sale%2C+Australian+Shepherd+Puppies+For+Sale%2CAussie+Puppies+for+sale%2CAustralian+Shepherd+Puppies+for+sale+in+Oklahoma%2C+Australian+Shepherds+for+sale+in+Oklahoma%2C+Min-Pin+Puppies+for+sale+in+Oklahoma%2C+Texas%2C+Arkansas%2C+Missouri%2C+Kansas%2C+New+Mexico%2C+California%2C+Montana%2C+South+Dakota%2C+North+Dakota%2C+Iowa%2C+Wyoming%2C+Virginia%2C+West+Virginia%2C+Florida%2C+Georgia%2C+Alabama%2CMississippi%2C+North+Carolina%2C+South+Carolina%2C+New+York%2C+Pennsylvania%2C+New+Jersey%2C+Utah%2C+Nevada%2C+Nebraska%2C+Arizona%2C+Idaho%2C+Iowa';
var metaContents  = 'Blue+Mountain+Kennels--Australian+Shepherds%2C+Miniature+Pinschers%2CYorkies%2C+and+Dachshund+Puppies+For+Sale+in+Oklahoma--Visit+our+web+site+for+pictures+and+details%3Ahttp%3A%2F%2Fwww.bluemountainaussies.com';
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();
};
