/* [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','102767',jdecode('Latest+News'),jdecode(''), jdecode('%2F102767.html'), 'true',[],'',''],
	['PAGE','1901',jdecode('Home'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','94067',jdecode('Highlights+2011'),jdecode(''), jdecode('%2F94067.html'), 'true',[],'',''],
	['PAGE','12001',jdecode('Highlights+2010'),jdecode(''), jdecode('%2F12001.html'), 'true',[],'',''],
	['PAGE','85921',jdecode('Highlights+2009'),jdecode(''), jdecode('%2F85921.html'), 'true',[],'',''],
	['PAGE','85361',jdecode('Highlights+2008'),jdecode(''), jdecode('%2F85361.html'), 'true',[],'',''],
	['PAGE','85370',jdecode('Highlights+2007'),jdecode(''), jdecode('%2F85370.html'), 'true',[],'',''],
	['PAGE','1973',jdecode('My+Dogs'),jdecode(''), jdecode('%2F1973.html'), 'true',[],'',''],
	['PAGE','83201',jdecode('Meet+Dinah%21%21%21%21'),jdecode(''), jdecode('%2F83201%2Findex.html'), 'true',[ 
		['PAGE','84974',jdecode('Dinah+Working'),jdecode(''), jdecode('%2F83201%2F84974.html'), 'true',[],'',''],
		['PAGE','83571',jdecode('Dinah%26%23x27%3Bs+Growing%21'),jdecode(''), jdecode('%2F83201%2F83571.html'), 'true',[],'',''],
		['PAGE','84859',jdecode('New+Pics+May+2009'),jdecode(''), jdecode('%2F83201%2F84859.html'), 'true',[],'',''],
		['PAGE','83766',jdecode('Dinah+April+2009'),jdecode(''), jdecode('%2F83201%2F83766.html'), 'true',[],'',''],
		['PAGE','84428',jdecode('The+BIG+green+ball'),jdecode(''), jdecode('%2F83201%2F84428.html'), 'true',[],'',''],
		['PAGE','83730',jdecode('Spring+has+SPRUNG%21%21'),jdecode(''), jdecode('%2F83201%2F83730.html'), 'true',[],'',''],
		['PAGE','84868',jdecode('Dinah'),jdecode(''), jdecode('%2F83201%2F84868.html'), 'true',[],'','']
	],'',''],
	['PAGE','82935',jdecode('Snow+Days%21%21'),jdecode(''), jdecode('%2F82935.html'), 'true',[],'',''],
	['PAGE','82944',jdecode('Fall+Fun'),jdecode(''), jdecode('%2F82944.html'), 'true',[],'',''],
	['PAGE','1994',jdecode('Jazz'),jdecode(''), jdecode('%2F1994%2Findex.html'), 'true',[ 
		['PAGE','47801',jdecode('Conformation'),jdecode(''), jdecode('%2F1994%2F47801.html'), 'true',[],'',''],
		['PAGE','47822',jdecode('Obedience'),jdecode(''), jdecode('%2F1994%2F47822.html'), 'true',[],'',''],
		['PAGE','81705',jdecode('Sieger'),jdecode(''), jdecode('%2F1994%2F81705.html'), 'true',[],'',''],
		['PAGE','47843',jdecode('Carting'),jdecode(''), jdecode('%2F1994%2F47843.html'), 'true',[],'',''],
		['PAGE','47864',jdecode('Herding'),jdecode(''), jdecode('%2F1994%2F47864.html'), 'true',[],'','']
	],'',''],
	['PAGE','6406',jdecode('Jazz+Candids'),jdecode(''), jdecode('%2F6406%2Findex.html'), 'true',[ 
		['PAGE','20201',jdecode('Jazz-+Baby+Pics'),jdecode(''), jdecode('%2F6406%2F20201.html'), 'true',[],'',''],
		['PAGE','14701',jdecode('The+Jazz+man+in+action%21'),jdecode(''), jdecode('%2F6406%2F14701.html'), 'true',[],'','']
	],'',''],
	['PAGE','2015',jdecode('Ella'),jdecode(''), jdecode('%2F2015%2Findex.html'), 'true',[ 
		['PAGE','69401',jdecode('Ella+Working'),jdecode(''), jdecode('%2F2015%2F69401.html'), 'true',[],'',''],
		['PAGE','17801',jdecode('More+Ella+Pics....'),jdecode(''), jdecode('%2F2015%2F17801.html'), 'true',[],'',''],
		['PAGE','69443',jdecode('Passionate+Kisses'),jdecode(''), jdecode('%2F2015%2F69443.html'), 'true',[],'',''],
		['PAGE','20222',jdecode('Ella-+Baby+Pics'),jdecode(''), jdecode('%2F2015%2F20222.html'), 'true',[],'','']
	],'',''],
	['PAGE','6343',jdecode('HOD+Productions'),jdecode(''), jdecode('%2F6343%2Findex.html'), 'true',[ 
		['PAGE','6364',jdecode('Pro+Pictures'),jdecode(''), jdecode('%2F6343%2F6364.html'), 'true',[],'',''],
		['PAGE','6385',jdecode('Video+Editing'),jdecode(''), jdecode('%2F6343%2F6385.html'), 'true',[],'','']
	],'',''],
	['PAGE','6427',jdecode('BBQ+Baroness'),jdecode(''), jdecode('%2F6427.html'), 'true',[],'',''],
	['PAGE','6322',jdecode('Links'),jdecode(''), jdecode('%2F6322.html'), 'true',[],'',''],
	['PAGE','14306',jdecode('Guestbook'),jdecode(''), jdecode('%2F14306.html'), 'true',[],'',''],
	['PAGE','14301',jdecode('Read+Guestbook'),jdecode(''), jdecode('%2F14301.html'), 'false',[],'','']];
var siteelementCount=39;
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 prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
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: '20110906-143247'
};
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: '20110301-154426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20110714-174336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20110714-174519'
};
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: '20111108-103813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69401',
internalId:  '',
customField: '20101107-124517'
};
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:  '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:  '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: '20111108-103653'
};
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: '20101107-134520'
};
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: '20110301-154306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94067',
internalId:  '',
customField: '20110914-100417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102767',
internalId:  '',
customField: '20111207-120114'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.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();
};

