/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','5401',jdecode('Itzy+Bitzy+Huskies'),jdecode(''),'/5401/index.html','true',[ 
		['PAGE','21401',jdecode('AVAILABLE+'),jdecode(''),'/5401/21401.html','true',[],'','']
	],'',''],
	['PAGE','594',jdecode('Puppy+Form'),jdecode(''),'/594.html','true',[],'',''],
	['PAGE','30522',jdecode('Itzy+Bitzy+Girls'),jdecode(''),'/30522/index.html','true',[ 
		['PAGE','82453',jdecode('Meishka'),jdecode(''),'/30522/82453.html','false',[],'',''],
		['PAGE','82432',jdecode('Meshik'),jdecode(''),'/30522/82432.html','false',[],'',''],
		['PAGE','82537',jdecode('Kela'),jdecode(''),'/30522/82537.html','false',[],'',''],
		['PAGE','82495',jdecode('Makita'),jdecode(''),'/30522/82495.html','false',[],'',''],
		['PAGE','85032',jdecode('Ogala'),jdecode(''),'/30522/85032.html','false',[],'',''],
		['PAGE','194749',jdecode('Meiko'),jdecode(''),'/30522/194749.html','false',[],'',''],
		['PAGE','196549',jdecode('Miya'),jdecode(''),'/30522/196549.html','false',[],'','']
	],'',''],
	['PAGE','30501',jdecode('Itzy+Bitzy+Boys'),jdecode(''),'/30501/index.html','true',[ 
		['PAGE','82474',jdecode('Travis'),jdecode(''),'/30501/82474.html','false',[],'',''],
		['PAGE','82516',jdecode('Cash'),jdecode(''),'/30501/82516.html','false',[],'',''],
		['PAGE','196570',jdecode('Cody'),jdecode(''),'/30501/196570.html','false',[],'','']
	],'',''],
	['PAGE','262047',jdecode('Past+Litters'),jdecode(''),'/262047/index.html','true',[ 
		['PAGE','67965',jdecode('Oct+%26%23x27%3B08+Litter'),jdecode(''),'/262047/67965.html','false',[],'',''],
		['PAGE','194770',jdecode('Sister+Kennel'),jdecode(''),'/262047/194770.html','false',[],'',''],
		['PAGE','120567',jdecode('Spring+%26%23x27%3B09+Pups'),jdecode(''),'/262047/120567.html','false',[],'',''],
		['PAGE','147279',jdecode('Fall+09+Litters'),jdecode(''),'/262047/147279.html','false',[],'',''],
		['PAGE','195949',jdecode('Winter+%26%23x27%3B10+'),jdecode(''),'/262047/195949.html','false',[],'',''],
		['PAGE','217247',jdecode('Spring+%26%23x27%3B10'),jdecode(''),'/262047/217247.html','false',[],'',''],
		['PAGE','256047',jdecode('Summer+%26%23x27%3B10'),jdecode(''),'/262047/256047.html','false',[],'','']
	],'',''],
	['PAGE','615',jdecode('AKK+History'),jdecode(''),'/615.html','true',[],'',''],
	['PAGE','699',jdecode('Contacting+Us'),jdecode(''),'/699.html','true',[],'',''],
	['PAGE','24506',jdecode('Guestbook'),jdecode(''),'/24506.html','true',[],'',''],
	['PAGE','88332',jdecode('Gramps%26%23x27%3B+Pups'),jdecode(''),'/88332.html','true',[],'',''],
	['PAGE','191749',jdecode('Training+Tips'),jdecode(''),'/191749.html','true',[],'',''],
	['PAGE','192549',jdecode('Parent+Dog+Park'),jdecode(''),'/192549.html','true',[],'',''],
	['PAGE','657',jdecode('Kennelz+%26+Bitz'),jdecode(''),'/657.html','true',[],'',''],
	['PAGE','76750',jdecode('Gordy'),jdecode(''),'/76750.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Unity';
theSitetree.paletteFamily='3A79C9';
theSitetree.keyvisualId='11839';
theSitetree.keyvisualName='kv_11839.jpg';
theSitetree.fontsetId='33133';
theSitetree.graphicsetId='14076';
theSitetree.contentColor='a6a7a7';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Unity',
				paletteFamily: 	'3A79C9',
				keyvisualId: 	'11839',
				keyvisualName: 	'kv_11839.jpg',
				fontsetId: 		'33133',
				graphicsetId: 	'14076',
				contentColor: 	'a6a7a7',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-671']={
webappId:    '7008',
documentId:  '594',
internalId:  '671',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-672']={
webappId:    '7008',
documentId:  '699',
internalId:  '672',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82474',
internalId:  '',
customField: '20091214-095044'
};
webappMappings['7060']=webappMappings['7060-e2b3fe3405726274113d2fc57637d20e']={
webappId:    '7060',
documentId:  '21401',
internalId:  'e2b3fe3405726274113d2fc57637d20e',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-24506aendu0inxpdy']={
webappId:    '1002',
documentId:  '24506',
internalId:  '24506aendu0inxpdy',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82453',
internalId:  '',
customField: '20090118-174701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100819-194458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20100820-100217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82432',
internalId:  '',
customField: '20090118-172120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100531-150532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090929-120610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090916-141318'
};
webappMappings['1003']=webappMappings['1003-aendu0inxpdy12483fe0c1d']={
webappId:    '1003',
documentId:  '192549',
internalId:  'aendu0inxpdy12483fe0c1d',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100825-214334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100820-100136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24506',
internalId:  '',
customField: '20090103-221827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85032',
internalId:  '',
customField: '20091214-164154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88332',
internalId:  '',
customField: '20100822-201057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20100307-142104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30522',
internalId:  '',
customField: '20100825-214120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67965',
internalId:  '',
customField: '20100602-183645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76750',
internalId:  '',
customField: '20100825-214355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82495',
internalId:  '',
customField: '20090812-143047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82516',
internalId:  '',
customField: '20100307-142332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82537',
internalId:  '',
customField: '20100627-135359'
};
webappMappings['7050']=webappMappings['7050-12974']={
webappId:    '7050',
documentId:  '191749',
internalId:  '12974',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147279',
internalId:  '',
customField: '20100602-193130'
};
webappMappings['7060']=webappMappings['7060-4c911c29c0b0f5c00c89cc9c0dd80a40']={
webappId:    '7060',
documentId:  '5401',
internalId:  '4c911c29c0b0f5c00c89cc9c0dd80a40',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120567',
internalId:  '',
customField: '20100712-142030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262047',
internalId:  '',
customField: '20100830-202648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191749',
internalId:  '',
customField: '20100307-144548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256047',
internalId:  '',
customField: '20100830-203434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192549',
internalId:  '',
customField: '20100307-144355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194770',
internalId:  '',
customField: '20100307-142948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194749',
internalId:  '',
customField: '20100307-141630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195949',
internalId:  '',
customField: '20100801-125939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196570',
internalId:  '',
customField: '20091214-095322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196549',
internalId:  '',
customField: '20100307-143611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217247',
internalId:  '',
customField: '20100825-123029'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INXPDY';
var companyName   = 'ITZY+BITZY+HUSKIES';
var htmlTitle	  = 'Itzy+Bitzy+Huskies%2C+the+home+of+the+Minnesota+Alaskan+Klee+Kai';
var metaKeywords  = 'puppy%2C+alaskan+klee+kai%2C+miniature+huskies%2C+akk%2C+minnesota%2C+for+sale%2C+wyoming';
var metaContents  = 'Itzy+Bitzy+Huskies%2C+home+of+alaskan+klee+kai+is+your+place+to+find+out+more+about+the+akk%2C+how+to+buy+a+miniature+husky+puppy%2C+as+well+as+meet+our+adorable+prized+possessions.++';
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();
};
