/* [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','1952',jdecode('Baby+Accessories'),jdecode(''),'/1952.html','true',[],'',''],
	['PAGE','1973',jdecode('Dolls'),jdecode(''),'/1973.html','true',[],'',''],
	['PAGE','1994',jdecode('Fabric'),jdecode(''),'/1994.html','true',[],'',''],
	['PAGE','2015',jdecode('Quilt+Blocks'),jdecode(''),'/2015.html','true',[],'',''],
	['PAGE','2036',jdecode('Quilt+Kits'),jdecode(''),'/2036.html','true',[],'',''],
	['PAGE','2057',jdecode('Misc+Bedding'),jdecode(''),'/2057.html','true',[],'',''],
	['PAGE','2078',jdecode('Bedspreads'),jdecode(''),'/2078.html','true',[],'',''],
	['PAGE','2099',jdecode('Blankets'),jdecode(''),'/2099.html','true',[],'',''],
	['PAGE','2120',jdecode('Comforters'),jdecode(''),'/2120.html','true',[],'',''],
	['PAGE','2141',jdecode('Linens'),jdecode(''),'/2141.html','true',[],'',''],
	['PAGE','2162',jdecode('Sheets%2FPillowcases'),jdecode(''),'/2162.html','true',[],'',''],
	['PAGE','2183',jdecode('Pillows'),jdecode(''),'/2183.html','true',[],'',''],
	['PAGE','2204',jdecode('Rugs'),jdecode(''),'/2204.html','true',[],'',''],
	['PAGE','2225',jdecode('Stenciled+Floor+Cloths'),jdecode(''),'/2225.html','true',[],'',''],
	['PAGE','2246',jdecode('Wall+Hangings'),jdecode(''),'/2246.html','true',[],'',''],
	['PAGE','2267',jdecode('Curtains'),jdecode(''),'/2267.html','true',[],'',''],
	['PAGE','2288',jdecode('Draperies'),jdecode(''),'/2288.html','true',[],'',''],
	['PAGE','2309',jdecode('Chair+Seats'),jdecode(''),'/2309.html','true',[],'',''],
	['PAGE','2330',jdecode('Hammocks'),jdecode(''),'/2330.html','true',[],'',''],
	['PAGE','2351',jdecode('Kitchen+Accessories'),jdecode(''),'/2351.html','true',[],'',''],
	['PAGE','2372',jdecode('Pot+Holders'),jdecode(''),'/2372.html','true',[],'',''],
	['PAGE','2393',jdecode('Aprons'),jdecode(''),'/2393.html','true',[],'',''],
	['PAGE','2414',jdecode('Tablecloths'),jdecode(''),'/2414.html','true',[],'',''],
	['PAGE','2435',jdecode('Napkins'),jdecode(''),'/2435.html','true',[],'',''],
	['PAGE','2456',jdecode('Handbags'),jdecode(''),'/2456.html','true',[],'',''],
	['PAGE','2477',jdecode('Hats'),jdecode(''),'/2477.html','true',[],'',''],
	['PAGE','2498',jdecode('Scarves'),jdecode(''),'/2498.html','true',[],'',''],
	['PAGE','2519',jdecode('Girl%26%23x27%3Bs+Clothes'),jdecode(''),'/2519.html','true',[],'',''],
	['PAGE','2540',jdecode('Boy%26%23x27%3Bs+Clothes'),jdecode(''),'/2540.html','true',[],'',''],
	['PAGE','2561',jdecode('Women%26%23x27%3Bs+'),jdecode(''),'/2561.html','true',[],'',''],
	['PAGE','2582',jdecode('Men%26%23x27%3Bs'),jdecode(''),'/2582.html','true',[],'',''],
	['PAGE','2603',jdecode('Contact'),jdecode(''),'/2603.html','true',[],'',''],
	['PAGE','2624',jdecode('About+Us'),jdecode(''),'/2624.html','true',[],'',''],
	['PAGE','2645',jdecode('Order'),jdecode(''),'/2645.html','true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Elegant';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32899';
theSitetree.graphicsetId='13971';
theSitetree.contentColor='cab397';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elegant',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32899',
				graphicsetId: 	'13971',
				contentColor: 	'cab397',
				contentBGColor: '000000',
				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:  '1901',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1973',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2078',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2120',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2141',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2162',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2183',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2204',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2225',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2246',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2267',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2288',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2309',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2330',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2351',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2372',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2393',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2414',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2435',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2456',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2477',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2498',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2519',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2540',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2561',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2582',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2603',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2624',
internalId:  '',
customField: '20110610-023919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2645',
internalId:  '',
customField: '20110610-023919'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'ANFI20IN2TZJ';
var companyName   = 'Suzy+Hager+Designs';
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();
};

