/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],''],
	['PAGE','1057',jdecode('Bottle+Attire'),jdecode(''),'/1057/index.html','true',[ 
		['PAGE','25001',jdecode('First+Product'),jdecode(''),'/1057/25001.html','true',[],''],
		['PAGE','25022',jdecode('Second+Product'),jdecode(''),'/1057/25022.html','true',[],''],
		['PAGE','25043',jdecode('Third+Product'),jdecode(''),'/1057/25043.html','true',[],''],
		['PAGE','25064',jdecode('Fourth+Product'),jdecode(''),'/1057/25064.html','true',[],'']
	],''],
	['PAGE','5943',jdecode('Custom+Baskets'),jdecode(''),'/5943.html','true',[],''],
	['PAGE','4501',jdecode('Custom+Direction+Cards'),jdecode(''),'/4501/index.html','true',[ 
		['PAGE','53601',jdecode('Example+Pg+1+%285%22x7%22%29'),jdecode(''),'/4501/53601.html','true',[],''],
		['PAGE','53622',jdecode('Example+Pg+2+%285%22x7%22%29'),jdecode(''),'/4501/53622.html','true',[],''],
		['PAGE','53643',jdecode('Example+Pg+3+%285%22x7%22%29'),jdecode(''),'/4501/53643.html','true',[],''],
		['PAGE','53664',jdecode('Ex.+Pgs+1+%26+3+%288.5%22x11%22%29'),jdecode(''),'/4501/53664.html','true',[],''],
		['PAGE','54201',jdecode('Optional+Printing+Sevice'),jdecode(''),'/4501/54201.html','true',[],'']
	],''],
	['PAGE','70412',jdecode('Golf+Themed+Gifts'),jdecode(''),'/70412.html','true',[],''],
	['PAGE','5901',jdecode('Humidors'),jdecode(''),'/5901.html','true',[],''],
	['PAGE','5964',jdecode('Jewelry'),jdecode(''),'/5964.html','true',[],''],
	['PAGE','1099',jdecode('Kitchen+Tools+'),jdecode(''),'/1099/index.html','true',[ 
		['PAGE','23985',jdecode('First+Product'),jdecode(''),'/1099/23985.html','true',[],''],
		['PAGE','24006',jdecode('Second+Product'),jdecode(''),'/1099/24006.html','true',[],'']
	],''],
	['PAGE','6401',jdecode('Pens+-+Laser+%26+USB+'),jdecode(''),'/6401/index.html','true',[ 
		['PAGE','44001',jdecode('First+Product'),jdecode(''),'/6401/44001.html','true',[],''],
		['PAGE','44022',jdecode('Second+Product'),jdecode(''),'/6401/44022.html','true',[],''],
		['PAGE','44043',jdecode('Third+Product'),jdecode(''),'/6401/44043.html','true',[],''],
		['PAGE','44064',jdecode('Fourth+Product'),jdecode(''),'/6401/44064.html','true',[],''],
		['PAGE','44085',jdecode('Fifth+Product'),jdecode(''),'/6401/44085.html','true',[],''],
		['PAGE','44106',jdecode('Sixth+Product'),jdecode(''),'/6401/44106.html','true',[],'']
	],''],
	['PAGE','952',jdecode('Wine+Boxes+with+Tools'),jdecode(''),'/952/index.html','true',[ 
		['PAGE','973',jdecode('First+Product'),jdecode(''),'/952/973.html','true',[],''],
		['PAGE','994',jdecode('Second+Product'),jdecode(''),'/952/994.html','true',[],''],
		['PAGE','1015',jdecode('Third+Product'),jdecode(''),'/952/1015.html','true',[],''],
		['PAGE','24027',jdecode('Fourth+Product'),jdecode(''),'/952/24027.html','true',[],''],
		['PAGE','24048',jdecode('Fifth+Product'),jdecode(''),'/952/24048.html','true',[],''],
		['PAGE','24069',jdecode('Sixth+Product'),jdecode(''),'/952/24069.html','true',[],'']
	],''],
	['PAGE','1078',jdecode('Wine+%26+Bar+Accessory'),jdecode(''),'/1078/index.html','true',[ 
		['PAGE','24090',jdecode('First+Product'),jdecode(''),'/1078/24090.html','true',[],''],
		['PAGE','24111',jdecode('Second+Product'),jdecode(''),'/1078/24111.html','true',[],''],
		['PAGE','24132',jdecode('Third+Product'),jdecode(''),'/1078/24132.html','true',[],''],
		['PAGE','24153',jdecode('Fourth+Product'),jdecode(''),'/1078/24153.html','true',[],''],
		['PAGE','24174',jdecode('Fifth+Product'),jdecode(''),'/1078/24174.html','true',[],''],
		['PAGE','24195',jdecode('Sixth+Product'),jdecode(''),'/1078/24195.html','true',[],''],
		['PAGE','24216',jdecode('Seventh+Product'),jdecode(''),'/1078/24216.html','true',[],''],
		['PAGE','24237',jdecode('Eighth+Product'),jdecode(''),'/1078/24237.html','true',[],''],
		['PAGE','24258',jdecode('Ninth+Product'),jdecode(''),'/1078/24258.html','true',[],''],
		['PAGE','40101',jdecode('Tenth+Product'),jdecode(''),'/1078/40101.html','true',[],'']
	],''],
	['PAGE','34401',jdecode('Options+'),jdecode(''),'/34401/index.html','true',[ 
		['PAGE','34701',jdecode('Engraving'),jdecode(''),'/34401/34701.html','true',[],''],
		['PAGE','34722',jdecode('Gift+Wrap'),jdecode(''),'/34401/34722.html','true',[],'']
	],''],
	['PAGE','71512',jdecode('Bridal+Shows'),jdecode(''),'/71512.html','true',[],''],
	['PAGE','1120',jdecode('Contact+Information'),jdecode(''),'/1120.html','true',[],''],
	['PAGE','49301',jdecode('Our+Partners'),jdecode(''),'/49301.html','true',[],''],
	['PAGE','7732',jdecode('Mesasge+from+the+CEO'),jdecode(''),'/7732.html','true',[],''],
	['PAGE','2406',jdecode('Testimonials'),jdecode(''),'/2406/index.html','true',[ 
		['PAGE','2401',jdecode('Read+Guestbook'),jdecode(''),'/2406/2401.html','false',[],'']
	],''],
	['PAGE','78012',jdecode('Payment'),jdecode(''),'/78012.html','true',[],'']];
var siteelementCount=54;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='7C8EFE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11061';
theSitetree.graphicsetId='11838';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var theTemplate={
				name: 			'Antique',
				paletteFamily: 	'7C8EFE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11061',
				graphicsetId: 	'11838',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1057',
internalId:  '',
customField: '20081005-143241'
};
webappMappings['1002']=webappMappings['1002-2406AHW050INEE6E']={
webappId:    '1002',
documentId:  '2406',
internalId:  '2406AHW050INEE6E',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20081005-143230'
};
webappMappings['1501']=webappMappings['1501-1416423']={
webappId:    '1501',
documentId:  '901',
internalId:  '1416423',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20081005-150302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25022',
internalId:  '',
customField: '20081005-150158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25043',
internalId:  '',
customField: '20081005-150223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25064',
internalId:  '',
customField: '20081005-150246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20081005-143432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4501',
internalId:  '',
customField: '20081005-150330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20080711-133725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53622',
internalId:  '',
customField: '20080711-133642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53643',
internalId:  '',
customField: '20080711-133625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53664',
internalId:  '',
customField: '20080711-133607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54201',
internalId:  '',
customField: '20080711-133547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70412',
internalId:  '',
customField: '20081005-150352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20081005-150415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20081005-150437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1099',
internalId:  '',
customField: '20081005-150445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23985',
internalId:  '',
customField: '20081005-150512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24006',
internalId:  '',
customField: '20081005-150536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20081005-150545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44001',
internalId:  '',
customField: '20081005-150612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44022',
internalId:  '',
customField: '20081005-143859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44043',
internalId:  '',
customField: '20081005-150637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44064',
internalId:  '',
customField: '20081005-143926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44085',
internalId:  '',
customField: '20081005-150705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44106',
internalId:  '',
customField: '20081005-150731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '952',
internalId:  '',
customField: '20081005-151141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '973',
internalId:  '',
customField: '20081005-151214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '994',
internalId:  '',
customField: '20081005-151241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1015',
internalId:  '',
customField: '20081005-151308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24027',
internalId:  '',
customField: '20081005-151334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24048',
internalId:  '',
customField: '20081005-151346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24069',
internalId:  '',
customField: '20081005-135638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1078',
internalId:  '',
customField: '20081005-150755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24090',
internalId:  '',
customField: '20081005-150824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24111',
internalId:  '',
customField: '20081005-150853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24132',
internalId:  '',
customField: '20081005-150917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24153',
internalId:  '',
customField: '20081005-150927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24174',
internalId:  '',
customField: '20081005-150952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24195',
internalId:  '',
customField: '20081005-151002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24216',
internalId:  '',
customField: '20081005-151027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24237',
internalId:  '',
customField: '20081005-151053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24258',
internalId:  '',
customField: '20081005-151103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20081005-151131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20081005-150746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34701',
internalId:  '',
customField: '20081005-142543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34722',
internalId:  '',
customField: '20081005-135951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71512',
internalId:  '',
customField: '20080904-074105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1120',
internalId:  '',
customField: '20080712-110615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20080713-225250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7732',
internalId:  '',
customField: '20080720-222707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2406',
internalId:  '',
customField: '20080710-111246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20080710-111304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78012',
internalId:  '',
customField: '20081005-144532'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INEE6E';
var companyName   = 'Custom+Touch+Gifts%2C+Inc.';
var htmlTitle	  = 'Custom+Touch+Gifts%2C+Inc.';
var metaKeywords  = 'Custom+Touch+Gifts%2C+Inc.+customtouchgifts.com+customtouchgifts+CTG+Thank+you+for+visiting+our+new+Internet+site.+As+an+up-to-date+business%2C+we+want+to+give+you+the+opportunity+to+stay+in+touch+with+our+company+and+our+offers.+A+new+content+management+system+will+enable+us+to+always+keep+you+up+to+date.++++In+addition%2C+we+will+be+offering+custom+engraving+with+company+logos%2C+brides+and+grooms+name+or+whatever+you+like+on+most+of+our+wooden+boxes.+++++In+the+meantime+you+can+reach+us+by+telephone+1-877-262-0304+or+fax+201-326-6718.+We+are+looking+forward+to+hearing+from+you.+You+can+also+contact+us+at+our+e-mail+address%3A+info%40customtouchgifts.com.++++If+you+are+not+familiar+with+our+company+and+your+first+contact+with+us+is+online%3A+We+would+be+pleased+to+hear+from+you%21+Please+let+us+know+what+your+needs+and+questions+are%2C+we+will+be+more+than+happy+to+help.++++In+brief%2C+you+should+know+that+our+company+has+been+responsible+for+providing+outstanding+customer+support.+Our+specialty+is+in+the+area+wood+engraving+and+providing+a+unique+gifts+for+Party+Favors+-+Corporate+-+Wedding+Favors+-+Grooms+and+Bridesmaid+Gifts++MORE%21%21%21%21.+Our+regular+customers+particularly+value.+Our+mailing+address+is+Custom+Touch+Gifts%2C+Inc.%2C+P.O.+Box+8262%2C+Saddle+Brook%2C+New+Jersey+07663.++Custom+Baskets+Humidors+chocolate+Cigars+Jewelry+Kitchen+Bart+tools+wedding+maps+map+pens+laser+usb+pen+ink+storage+wedding+bottle+attire+wine+champagne+boxes+wooden+box+wood+cedar+spanish+finest';
var metaContents  = 'Custom+Touch+Gifts%2C+Inc.+customtouchgifts.com+customtouchgifts+CTG+Thank+you+for+visiting+our+new+Internet+site.+As+an+up-to-date+business%2C+we+want+to+give+you+the+opportunity+to+stay+in+touch+with+our+company+and+our+offers.+A+new+content+management+system+will+enable+us+to+always+keep+you+up+to+date.++++In+addition%2C+we+will+be+offering+custom+engraving+with+company+logos%2C+brides+and+grooms+name+or+whatever+you+like+on+most+of+our+wooden+boxes.+++++In+the+meantime+you+can+reach+us+by+telephone+1-877-262-0304+or+fax+201-326-6718.+We+are+looking+forward+to+hearing+from+you.+You+can+also+contact+us+at+our+e-mail+address%3A+info%40customtouchgifts.com.++++If+you+are+not+familiar+with+our+company+and+your+first+contact+with+us+is+online%3A+We+would+be+pleased+to+hear+from+you%21+Please+let+us+know+what+your+needs+and+questions+are%2C+we+will+be+more+than+happy+to+help.++++In+brief%2C+you+should+know+that+our+company+has+been+responsible+for+providing+outstanding+customer+support.+Our+specialty+is+in+the+area+wood+engraving+and+providing+a+unique+gifts+for+Party+Favors+-+Corporate+-+Wedding+Favors+-+Grooms+and+Bridesmaid+Gifts++MORE%21%21%21%21.+Our+regular+customers+particularly+value.+Our+mailing+address+is+Custom+Touch+Gifts%2C+Inc.%2C+P.O.+Box+8262%2C+Saddle+Brook%2C+New+Jersey+07663.++Custom+Baskets+Humidors+chocolate+Cigars+Jewelry+Kitchen+Bar+tools+wedding+maps+map+pens+laser+usb+pen+ink+storage+wedding+bottle+attire+wine+champagne+boxes+wooden+box+wood+cedar+spanish+finest';
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();
};
