/* [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','7201',jdecode('Home'),jdecode(''),'/7201.html','true',[],'',''],
	['PAGE','10001',jdecode('About+us'),jdecode(''),'/10001.html','true',[],'',''],
	['PAGE','22901',jdecode('OFF+YOUR+ROCKER+QUILTS'),jdecode(''),'/22901/index.html','true',[ 
		['PAGE','11927',jdecode('No+Dinner+Tonight'),jdecode(''),'/22901/11927.html','true',[],'',''],
		['PAGE','11948',jdecode('Rock+Stars'),jdecode(''),'/22901/11948.html','true',[],'',''],
		['PAGE','11969',jdecode('Twilight+Sentinel'),jdecode(''),'/22901/11969.html','true',[],'',''],
		['PAGE','11990',jdecode('Broken+Hearts+on+the+Mend'),jdecode(''),'/22901/11990.html','true',[],'',''],
		['PAGE','12011',jdecode('Long+Way+to+the+River'),jdecode(''),'/22901/12011.html','true',[],'',''],
		['PAGE','12032',jdecode('Dance+with+the+Dog'),jdecode(''),'/22901/12032.html','true',[],'',''],
		['PAGE','12053',jdecode('Shaman%26%23x27%3Bs+Dream'),jdecode(''),'/22901/12053.html','true',[],'',''],
		['PAGE','12074',jdecode('Kokopelli+Canyon'),jdecode(''),'/22901/12074.html','true',[],'',''],
		['PAGE','12095',jdecode('Mexicali+Sunflower'),jdecode(''),'/22901/12095.html','true',[],'',''],
		['PAGE','47340',jdecode('Cowboy+Welcome'),jdecode(''),'/22901/47340.html','true',[],'','']
	],'',''],
	['PAGE','11822',jdecode('ROCK+MY+SOUL+QUILTS'),jdecode(''),'/11822/index.html','true',[ 
		['PAGE','11843',jdecode('Birds+of+the+Air'),jdecode(''),'/11822/11843.html','true',[],'',''],
		['PAGE','47512',jdecode('Birds+of+the+Air+fabric+panel'),jdecode(''),'/11822/47512.html','true',[],'',''],
		['PAGE','26801',jdecode('Be+Still'),jdecode(''),'/11822/26801.html','true',[],'',''],
		['PAGE','47552',jdecode('Be+Still+fabric+panel'),jdecode(''),'/11822/47552.html','true',[],'',''],
		['PAGE','11885',jdecode('Trust+in+the+Lord'),jdecode(''),'/11822/11885.html','true',[],'',''],
		['PAGE','47640',jdecode('Pierced'),jdecode(''),'/11822/47640.html','true',[],'','']
	],'',''],
	['PAGE','35501',jdecode('Rock+Solid+Etched+Stones'),jdecode(''),'/35501/index.html','true',[ 
		['PAGE','45901',jdecode('Lord+Bless+and+Keep'),jdecode(''),'/35501/45901.html','true',[],'','']
	],'',''],
	['PAGE','29901',jdecode('Gallery'),jdecode(''),'/29901.html','true',[],'',''],
	['PAGE','10127',jdecode('Offers'),jdecode(''),'/10127.html','true',[],'',''],
	['PAGE','10169',jdecode('Contact+Us'),jdecode(''),'/10169.html','true',[],'',''],
	['PAGE','10232',jdecode('Tips+%26+Tricks'),jdecode(''),'/10232/index.html','true',[ 
		['PAGE','27501',jdecode('Iron-on+Applique'),jdecode(''),'/10232/27501.html','true',[],'',''],
		['PAGE','27522',jdecode('Monofilament+zigzag+'),jdecode(''),'/10232/27522.html','true',[],'','']
	],'',''],
	['PAGE','47010',jdecode('Guestbook'),jdecode(''),'/47010/index.html','true',[ 
		['PAGE','47009',jdecode('Read+Guestbook'),jdecode(''),'/47010/47009.html','false',[],'','']
	],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='D34CFA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11063';
theSitetree.graphicsetId='11839';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antique',
				paletteFamily: 	'D34CFA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11063',
				graphicsetId: 	'11839',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				a_color: 		'664F23',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '7201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-47010ahw050inefs8']={
webappId:    '1002',
documentId:  '47010',
internalId:  '47010ahw050inefs8',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100505-185214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47512',
internalId:  '',
customField: '20100517-232939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20080418-221651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20100517-145106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11927',
internalId:  '',
customField: '20080520-210246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11948',
internalId:  '',
customField: '20080520-210150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11969',
internalId:  '',
customField: '20080520-210052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11990',
internalId:  '',
customField: '20080520-210005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12011',
internalId:  '',
customField: '20080520-205903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12032',
internalId:  '',
customField: '20080520-205833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12053',
internalId:  '',
customField: '20080520-205758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12074',
internalId:  '',
customField: '20080520-205643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12095',
internalId:  '',
customField: '20080520-205719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11822',
internalId:  '',
customField: '20100517-233418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11843',
internalId:  '',
customField: '20080520-210434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20080520-210553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11885',
internalId:  '',
customField: '20080520-213340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20100505-215300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20080521-140003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20080430-155139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10127',
internalId:  '',
customField: '20080409-183249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10169',
internalId:  '',
customField: '20080430-154947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10232',
internalId:  '',
customField: '20080430-150656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20080430-151236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27522',
internalId:  '',
customField: '20080430-151800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47010',
internalId:  '',
customField: '20080815-132739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47009',
internalId:  '',
customField: '20080815-132739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47340',
internalId:  '',
customField: '20100517-233550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47552',
internalId:  '',
customField: '20100518-002929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47640',
internalId:  '',
customField: '20100517-233308'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEFS8';
var companyName   = 'OFF+YOUR+ROCKER';
var htmlTitle	  = 'Off+Your+Rocker+Designs';
var metaKeywords  = 'Susan+Olfers+southwestern+petroglyphs+rockart++art+quilts+canyons+Christian+hobbies+sewing+hunting+ancient+Indians+mountain+lions+mountains+rabbits+sunflowers+patchwork+';
var metaContents  = '';
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();
};
