/* [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','1914',jdecode('Home'),jdecode(''), jdecode('%2F1914.html'), 'true',[],'',''],
	['PAGE','517751',jdecode('Featured+Item'),jdecode(''), jdecode('%2F517751.html'), 'true',[],'',''],
	['PAGE','461820',jdecode('Special+Offers'),jdecode(''), jdecode('%2F461820.html'), 'true',[],'',''],
	['PAGE','16001',jdecode('Photographs'),jdecode(''), jdecode('%2F16001%2Findex.html'), 'true',[ 
		['PAGE','160812',jdecode('Canvas+Photos'),jdecode(''), jdecode('%2F16001%2F160812.html'), 'true',[],'',''],
		['PAGE','160833',jdecode('Door+%26+Window+Photos'),jdecode(''), jdecode('%2F16001%2F160833.html'), 'true',[],'',''],
		['PAGE','125401',jdecode('Flower+Photos'),jdecode(''), jdecode('%2F16001%2F125401.html'), 'true',[],'',''],
		['PAGE','160854',jdecode('Foam+Board+Photos'),jdecode(''), jdecode('%2F16001%2F160854.html'), 'true',[],'',''],
		['PAGE','160875',jdecode('Framed+Magazines'),jdecode(''), jdecode('%2F16001%2F160875.html'), 'true',[],'',''],
		['PAGE','160896',jdecode('Manipulated+Photos'),jdecode(''), jdecode('%2F16001%2F160896.html'), 'true',[],'',''],
		['PAGE','160917',jdecode('Mini+Frame+Photos'),jdecode(''), jdecode('%2F16001%2F160917.html'), 'true',[],'',''],
		['PAGE','160938',jdecode('Nature+Photos'),jdecode(''), jdecode('%2F16001%2F160938.html'), 'true',[],'',''],
		['PAGE','160959',jdecode('Other+Photos'),jdecode(''), jdecode('%2F16001%2F160959.html'), 'true',[],'',''],
		['PAGE','160980',jdecode('Scenic+Photos'),jdecode(''), jdecode('%2F16001%2F160980.html'), 'true',[],'',''],
		['PAGE','161001',jdecode('Wildlife+Photos'),jdecode(''), jdecode('%2F16001%2F161001.html'), 'true',[],'',''],
		['PAGE','161022',jdecode('Winter+Photos'),jdecode(''), jdecode('%2F16001%2F161022.html'), 'true',[],'','']
	],'',''],
	['PAGE','16401',jdecode('Wood+Crafts'),jdecode(''), jdecode('%2F16401%2Findex.html'), 'true',[ 
		['PAGE','275634',jdecode('Birdhouses'),jdecode(''), jdecode('%2F16401%2F275634.html'), 'true',[],'',''],
		['PAGE','286134',jdecode('Boxes'),jdecode(''), jdecode('%2F16401%2F286134.html'), 'true',[],'',''],
		['PAGE','288534',jdecode('Coasters'),jdecode(''), jdecode('%2F16401%2F288534.html'), 'true',[],'',''],
		['PAGE','120622',jdecode('Games'),jdecode(''), jdecode('%2F16401%2F120622.html'), 'true',[],'',''],
		['PAGE','120601',jdecode('Napkin+Holders'),jdecode(''), jdecode('%2F16401%2F120601.html'), 'true',[],'',''],
		['PAGE','306345',jdecode('Other+Wood+Crafts'),jdecode(''), jdecode('%2F16401%2F306345.html'), 'true',[],'',''],
		['PAGE','289434',jdecode('Wood+Burning+Art'),jdecode(''), jdecode('%2F16401%2F289434.html'), 'true',[],'',''],
		['PAGE','287634',jdecode('Wooden+Chests'),jdecode(''), jdecode('%2F16401%2F287634.html'), 'true',[],'','']
	],'',''],
	['PAGE','16422',jdecode('Wood+Furniture'),jdecode(''), jdecode('%2F16422%2Findex.html'), 'true',[ 
		['PAGE','334933',jdecode('Wood+Furniture+Items'),jdecode(''), jdecode('%2F16422%2F334933.html'), 'true',[],'','']
	],'',''],
	['PAGE','16443',jdecode('Log+Furniture'),jdecode(''), jdecode('%2F16443%2Findex.html'), 'true',[ 
		['PAGE','262923',jdecode('Log+Furniture+Items'),jdecode(''), jdecode('%2F16443%2F262923.html'), 'true',[],'','']
	],'',''],
	['PAGE','16464',jdecode('Crochet+Items'),jdecode(''), jdecode('%2F16464%2Findex.html'), 'true',[ 
		['PAGE','387053',jdecode('Cuddly+Toys'),jdecode(''), jdecode('%2F16464%2F387053.html'), 'true',[],'',''],
		['PAGE','246723',jdecode('Other+Items'),jdecode(''), jdecode('%2F16464%2F246723.html'), 'true',[],'',''],
		['PAGE','387074',jdecode('Scarves+and+Hats'),jdecode(''), jdecode('%2F16464%2F387074.html'), 'true',[],'','']
	],'',''],
	['PAGE','16485',jdecode('Jewelry'),jdecode(''), jdecode('%2F16485%2Findex.html'), 'true',[ 
		['PAGE','249423',jdecode('Jewelry+Items'),jdecode(''), jdecode('%2F16485%2F249423.html'), 'true',[],'','']
	],'',''],
	['PAGE','16506',jdecode('Other+Crafts'),jdecode(''), jdecode('%2F16506%2Findex.html'), 'true',[ 
		['PAGE','315845',jdecode('Animal+Toys'),jdecode(''), jdecode('%2F16506%2F315845.html'), 'true',[],'',''],
		['PAGE','265065',jdecode('Horseshoe+Art'),jdecode(''), jdecode('%2F16506%2F265065.html'), 'true',[],'',''],
		['PAGE','265023',jdecode('Note+Cards'),jdecode(''), jdecode('%2F16506%2F265023.html'), 'true',[],'',''],
		['PAGE','265044',jdecode('Place+Mats'),jdecode(''), jdecode('%2F16506%2F265044.html'), 'true',[],'',''],
		['PAGE','267923',jdecode('Saw+Blade+Art'),jdecode(''), jdecode('%2F16506%2F267923.html'), 'true',[],'','']
	],'',''],
	['PAGE','379232',jdecode('Holiday+Crafts'),jdecode(''), jdecode('%2F379232%2Findex.html'), 'true',[ 
		['PAGE','379432',jdecode('Holiday+Items'),jdecode(''), jdecode('%2F379232%2F379432.html'), 'true',[],'','']
	],'',''],
	['PAGE','12501',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F12501.html'), 'true',[],'',''],
	['PAGE','12522',jdecode('About+us'),jdecode(''), jdecode('%2F12522.html'), 'true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10349';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hostway_generic',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10349',
				graphicsetId: 	'10469',
				contentColor: 	'FFFFFF',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1914',
internalId:  '',
customField: '20110520-113732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20110114-143855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12522',
internalId:  '',
customField: '20100317-135056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20100609-131531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20100514-131714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16422',
internalId:  '',
customField: '20100610-130127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16506',
internalId:  '',
customField: '20100604-144935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16443',
internalId:  '',
customField: '20100610-130952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16464',
internalId:  '',
customField: '20100322-162605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16485',
internalId:  '',
customField: '20100510-140001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120601',
internalId:  '',
customField: '20111213-125913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120622',
internalId:  '',
customField: '20111213-125830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125401',
internalId:  '',
customField: '20111213-125045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160812',
internalId:  '',
customField: '20111213-124900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160833',
internalId:  '',
customField: '20111213-125010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160854',
internalId:  '',
customField: '20111213-125116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160875',
internalId:  '',
customField: '20111213-125201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160896',
internalId:  '',
customField: '20111213-125243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160917',
internalId:  '',
customField: '20111213-125309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160938',
internalId:  '',
customField: '20111213-125352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160959',
internalId:  '',
customField: '20111213-125427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160980',
internalId:  '',
customField: '20111213-125520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161001',
internalId:  '',
customField: '20111213-125549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161022',
internalId:  '',
customField: '20111213-125617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246723',
internalId:  '',
customField: '20111213-130528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249423',
internalId:  '',
customField: '20111213-130710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '262923',
internalId:  '',
customField: '20111213-130430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265023',
internalId:  '',
customField: '20111213-130824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265065',
internalId:  '',
customField: '20111213-130801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267923',
internalId:  '',
customField: '20111213-130920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275634',
internalId:  '',
customField: '20111213-125703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '286134',
internalId:  '',
customField: '20111213-125743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287634',
internalId:  '',
customField: '20111213-130052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288534',
internalId:  '',
customField: '20111213-125806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289434',
internalId:  '',
customField: '20111213-130019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265044',
internalId:  '',
customField: '20111213-130859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '306345',
internalId:  '',
customField: '20111213-125955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315845',
internalId:  '',
customField: '20111213-130736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '334933',
internalId:  '',
customField: '20111213-130400'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1914',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '379232',
internalId:  '',
customField: '20100928-153510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '379432',
internalId:  '',
customField: '20111213-131047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '387053',
internalId:  '',
customField: '20111213-130500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '387074',
internalId:  '',
customField: '20111213-130551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '461820',
internalId:  '',
customField: '20120103-150807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '517751',
internalId:  '',
customField: '20120109-151249'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INZQ73';
var companyName   = 'LaKat+Gallery';
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();
};

