/* [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','7501',jdecode('L7+WELCOME'),jdecode(''),'/7501.html','true',[],''],
	['PAGE','9001',jdecode('L7+Lady'),jdecode(''),'/9001.html','true',[],''],
	['PAGE','10101',jdecode('L7+PIECES+%7E+Rickamae'),jdecode(''),'/10101/index.html','true',[ 
		['PAGE','10501',jdecode('Scrabble'),jdecode(''),'/10101/10501.html','true',[],''],
		['PAGE','44701',jdecode('Timeless'),jdecode(''),'/10101/44701.html','true',[],''],
		['PAGE','10401',jdecode('Happy+Hours'),jdecode(''),'/10101/10401.html','true',[],''],
		['PAGE','10522',jdecode('Charmed'),jdecode(''),'/10101/10522.html','true',[],''],
		['PAGE','45401',jdecode('In+Vogue'),jdecode(''),'/10101/45401.html','true',[],'']
	],''],
	['PAGE','18601',jdecode('L7+PIECES+%7E+Friends'),jdecode(''),'/18601/index.html','true',[ 
		['PAGE','20101',jdecode('Inspired+Colour'),jdecode(''),'/18601/20101.html','true',[],''],
		['PAGE','25101',jdecode('Kowloon+Post'),jdecode(''),'/18601/25101.html','true',[],''],
		['PAGE','36101',jdecode('Black+Belts'),jdecode(''),'/18601/36101.html','true',[],''],
		['PAGE','40101',jdecode('Swiss+Miniatures'),jdecode(''),'/18601/40101.html','true',[],''],
		['PAGE','24301',jdecode('Tapemeasure+Totes'),jdecode(''),'/18601/24301.html','true',[],''],
		['PAGE','22101',jdecode('Apple+Napas'),jdecode(''),'/18601/22101.html','true',[],'']
	],''],
	['PAGE','18622',jdecode('L7+PIECES+%7E+Vintage'),jdecode(''),'/18622/index.html','true',[ 
		['PAGE','20122',jdecode('Satsuma'),jdecode(''),'/18622/20122.html','true',[],''],
		['PAGE','20164',jdecode('Bergen'),jdecode(''),'/18622/20164.html','true',[],''],
		['PAGE','20143',jdecode('Chagall'),jdecode(''),'/18622/20143.html','true',[],''],
		['PAGE','47101',jdecode('Czech'),jdecode(''),'/18622/47101.html','true',[],''],
		['PAGE','49601',jdecode('Wright'),jdecode(''),'/18622/49601.html','true',[],''],
		['PAGE','38601',jdecode('Sterling'),jdecode(''),'/18622/38601.html','true',[],'']
	],''],
	['PAGE','9622',jdecode('Contact+%26+Open+Bits'),jdecode(''),'/9622.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Limit';
theSitetree.paletteFamily='A98DBA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10814';
theSitetree.graphicsetId='11259';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='969696';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Limit',
				paletteFamily: 	'A98DBA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10814',
				graphicsetId: 	'11259',
				contentColor: 	'FFFFFF',
				contentBGColor: '969696',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20090919-212345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20081022-124839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9622',
internalId:  '',
customField: '20091104-163926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20081021-231704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20090414-001839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20081023-123042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10522',
internalId:  '',
customField: '20090413-181334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20081120-174737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18622',
internalId:  '',
customField: '20080929-133848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20090413-201438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20090414-002224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20122',
internalId:  '',
customField: '20081021-173424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20143',
internalId:  '',
customField: '20090330-182005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20164',
internalId:  '',
customField: '20080929-134249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20090414-002030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25101',
internalId:  '',
customField: '20090413-202952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20081120-132945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20081120-172825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20081021-233607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44701',
internalId:  '',
customField: '20091005-165544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20090414-001934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20090919-204623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49601',
internalId:  '',
customField: '20081124-172350'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN27UD';
var companyName   = 'Home+of+the+3Rs%3A+Recycle%2C+Reuse+%26+Renew';
var htmlTitle	  = '';
var metaKeywords  = '';
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();
};
