/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','12001',jdecode('Latest+News'),jdecode(''),'/12001.html','true',[],'',''],
	['PAGE','85921',jdecode('Highlights+2009'),jdecode(''),'/85921.html','true',[],'',''],
	['PAGE','85361',jdecode('Highlights+2008'),jdecode(''),'/85361.html','true',[],'',''],
	['PAGE','85370',jdecode('Highlights+2007'),jdecode(''),'/85370.html','true',[],'',''],
	['PAGE','1952',jdecode('Who+am+I%3F'),jdecode(''),'/1952.html','true',[],'',''],
	['PAGE','1973',jdecode('My+Dogs'),jdecode(''),'/1973.html','true',[],'',''],
	['PAGE','83201',jdecode('Meet+Dinah%21%21%21%21'),jdecode(''),'/83201/index.html','true',[ 
		['PAGE','83571',jdecode('Dinah%26%23x27%3Bs+Growing%21'),jdecode(''),'/83201/83571.html','true',[],'',''],
		['PAGE','84859',jdecode('New+Pics+May+2009'),jdecode(''),'/83201/84859.html','true',[],'',''],
		['PAGE','83766',jdecode('Dinah+April+2009'),jdecode(''),'/83201/83766.html','true',[],'',''],
		['PAGE','84428',jdecode('The+BIG+green+ball'),jdecode(''),'/83201/84428.html','true',[],'',''],
		['PAGE','83730',jdecode('Spring+has+SPRUNG%21%21'),jdecode(''),'/83201/83730.html','true',[],'',''],
		['PAGE','84868',jdecode('Dinah'),jdecode(''),'/83201/84868.html','true',[],'',''],
		['PAGE','84974',jdecode('Dinah+Working'),jdecode(''),'/83201/84974.html','true',[],'','']
	],'',''],
	['PAGE','82935',jdecode('Snow+Days%21%21'),jdecode(''),'/82935.html','true',[],'',''],
	['PAGE','82944',jdecode('Fall+Fun'),jdecode(''),'/82944.html','true',[],'',''],
	['PAGE','1994',jdecode('Jazz'),jdecode(''),'/1994/index.html','true',[ 
		['PAGE','47801',jdecode('Conformation'),jdecode(''),'/1994/47801.html','true',[],'',''],
		['PAGE','47822',jdecode('Obedience'),jdecode(''),'/1994/47822.html','true',[],'',''],
		['PAGE','81705',jdecode('Sieger'),jdecode(''),'/1994/81705.html','true',[],'',''],
		['PAGE','47843',jdecode('Carting'),jdecode(''),'/1994/47843.html','true',[],'',''],
		['PAGE','47864',jdecode('Herding'),jdecode(''),'/1994/47864.html','true',[],'','']
	],'',''],
	['PAGE','6406',jdecode('Jazz+Candids'),jdecode(''),'/6406/index.html','true',[ 
		['PAGE','20201',jdecode('Jazz-+Baby+Pics'),jdecode(''),'/6406/20201.html','true',[],'',''],
		['PAGE','14701',jdecode('The+Jazz+man+in+action%21'),jdecode(''),'/6406/14701.html','true',[],'','']
	],'',''],
	['PAGE','2015',jdecode('Ella'),jdecode(''),'/2015/index.html','true',[ 
		['PAGE','69401',jdecode('Ella+Working'),jdecode(''),'/2015/69401.html','true',[],'',''],
		['PAGE','17801',jdecode('More+Ella+Pics....'),jdecode(''),'/2015/17801.html','true',[],'',''],
		['PAGE','69443',jdecode('Passionate+Kisses'),jdecode(''),'/2015/69443.html','true',[],'',''],
		['PAGE','20222',jdecode('Ella-+Baby+Pics'),jdecode(''),'/2015/20222.html','true',[],'','']
	],'',''],
	['PAGE','87385',jdecode('Health+Information'),jdecode(''),'/87385/index.html','true',[ 
		['PAGE','24801',jdecode('Ella%26%23x27%3Bs+Story'),jdecode(''),'/87385/24801.html','true',[],'',''],
		['PAGE','6301',jdecode('OCD+Information+Page'),jdecode(''),'/87385/6301.html','true',[],'',''],
		['PAGE','87394',jdecode('Cauda+Equina'),jdecode(''),'/87385/87394.html','true',[],'','']
	],'',''],
	['PAGE','6343',jdecode('HOD+Productions'),jdecode(''),'/6343/index.html','true',[ 
		['PAGE','6364',jdecode('Pro+Pictures'),jdecode(''),'/6343/6364.html','true',[],'',''],
		['PAGE','6385',jdecode('Video+Editing'),jdecode(''),'/6343/6385.html','true',[],'','']
	],'',''],
	['PAGE','6427',jdecode('BBQ+Baroness'),jdecode(''),'/6427.html','true',[],'',''],
	['PAGE','6490',jdecode('Contact'),jdecode(''),'/6490.html','true',[],'',''],
	['PAGE','6322',jdecode('Links'),jdecode(''),'/6322.html','true',[],'',''],
	['PAGE','14306',jdecode('Guestbook'),jdecode(''),'/14306/index.html','true',[ 
		['PAGE','14301',jdecode('Read+Guestbook'),jdecode(''),'/14306/14301.html','false',[],'','']
	],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Caribic';
theSitetree.paletteFamily='8A2A2A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10579';
theSitetree.graphicsetId='10711';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='B63636';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Caribic',
				paletteFamily: 	'8A2A2A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10579',
				graphicsetId: 	'10711',
				contentColor: 	'FFFFFF',
				contentBGColor: 'B63636',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-46931']={
webappId:    '1501',
documentId:  '1901',
internalId:  '46931',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100802-153950'
};
webappMappings['1002']=webappMappings['1002-14306AHW050INXX9E']={
webappId:    '1002',
documentId:  '14306',
internalId:  '14306AHW050INXX9E',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-c25e061050781584d9e70f26e79d1040']={
webappId:    '7060',
documentId:  '14701',
internalId:  'c25e061050781584d9e70f26e79d1040',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20100802-170049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20100809-110345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20090705-112036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100720-200842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20081222-102818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47822',
internalId:  '',
customField: '20090101-185421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81705',
internalId:  '',
customField: '20080714-103352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47843',
internalId:  '',
customField: '20081126-173743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47864',
internalId:  '',
customField: '20080605-223115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6406',
internalId:  '',
customField: '20080625-151805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20080606-180155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20070928-124516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100730-145107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69401',
internalId:  '',
customField: '20081126-165408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20081110-110213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69443',
internalId:  '',
customField: '20081122-104136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20222',
internalId:  '',
customField: '20080606-211529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20100809-112113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20070928-123558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6343',
internalId:  '',
customField: '20070928-122114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6364',
internalId:  '',
customField: '20090407-110358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6385',
internalId:  '',
customField: '20071020-143327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6427',
internalId:  '',
customField: '20080625-145742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6490',
internalId:  '',
customField: '20070918-122453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20080602-210017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14306',
internalId:  '',
customField: '20070918-174046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20070918-174046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82935',
internalId:  '',
customField: '20090630-111126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82944',
internalId:  '',
customField: '20090630-111240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83201',
internalId:  '',
customField: '20100730-145148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83571',
internalId:  '',
customField: '20090123-121744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83730',
internalId:  '',
customField: '20090403-185532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83766',
internalId:  '',
customField: '20090507-095154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84428',
internalId:  '',
customField: '20090507-132745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84859',
internalId:  '',
customField: '20090521-170830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84868',
internalId:  '',
customField: '20090521-163215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84974',
internalId:  '',
customField: '20090607-132145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85361',
internalId:  '',
customField: '20100802-165136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85370',
internalId:  '',
customField: '20100802-170132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85921',
internalId:  '',
customField: '20100802-165542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87394',
internalId:  '',
customField: '20100803-113459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87385',
internalId:  '',
customField: '20100803-113610'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXX9E';
var companyName   = 'hedyrankin.com';
var htmlTitle	  = 'Hedyrankin.com';
var metaKeywords  = 'Dogs%2C+Rottweilers%2C+OCD%2C+OCD+Hock%2C+Pet+Action+Photography%2C+BBQ%2C+Catering%2C+Local+Film+Industry%2C+Showing%2C+Trialing%2C+Playing+with+my+Dogs%2C+Cauda+Equina+Syndrome%2C+TVS%2C+Spondylosis%2C+Herding%2C+Carting%2C+Obedience%2C+Agility%2C';
var metaContents  = 'Dogs%2C+Rottweilers%2C+OCD%2C+Pet+Action+Photography%2C+BBQ%2C+Catering%2C++Local+Film+Industry%2C+cauda+equina+syndrome%2C+lumbo+stenosis%2C+Obedience%2C+';
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();
};
