/* [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','1801',jdecode('Home'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','1873',jdecode('Custom+Board+Games'),jdecode(''),'/1873/index.html','true',[ 
		['PAGE','15422',jdecode('Request+A+Custom+Quote'),jdecode(''),'/1873/15422.html','true',[],'']
	],''],
	['PAGE','2621',jdecode('Imprinted+Games'),jdecode(''),'/2621/index.html','true',[ 
		['PAGE','2642',jdecode('Classic+Strategy+Game'),jdecode(''),'/2621/2642.html','true',[],''],
		['PAGE','2663',jdecode('Cribbage+Travel+Sets'),jdecode(''),'/2621/2663.html','true',[],''],
		['PAGE','2684',jdecode('%22Five+Chances%22+Dice+Game'),jdecode(''),'/2621/2684.html','true',[],''],
		['PAGE','2705',jdecode('Magnetic+Three-In+One+'),jdecode(''),'/2621/2705.html','true',[],''],
		['PAGE','2726',jdecode('Magnetic+Tic-Tac-Toe'),jdecode(''),'/2621/2726.html','true',[],''],
		['PAGE','2747',jdecode('Mancala'),jdecode(''),'/2621/2747.html','true',[],''],
		['PAGE','2768',jdecode('Tic-Tac-Toe'),jdecode(''),'/2621/2768.html','true',[],''],
		['PAGE','2789',jdecode('Wooden+Labyrinth+Maze'),jdecode(''),'/2621/2789.html','true',[],'']
	],''],
	['PAGE','1894',jdecode('Custom+Opoly+Games'),jdecode(''),'/1894.html','true',[],''],
	['PAGE','1915',jdecode('Custom+Playing+Card+Games'),jdecode(''),'/1915.html','true',[],''],
	['PAGE','1852',jdecode('Game+Parts+'),jdecode(''),'/1852/index.html','true',[ 
		['PAGE','2201',jdecode('Dice'),jdecode(''),'/1852/2201.html','true',[],''],
		['PAGE','2222',jdecode('1%22+Opaque'),jdecode(''),'/1852/2222.html','false',[],''],
		['PAGE','2243',jdecode('1%22+Transparent'),jdecode(''),'/1852/2243.html','false',[],''],
		['PAGE','2264',jdecode('2%22+JUMBO'),jdecode(''),'/1852/2264.html','false',[],''],
		['PAGE','2285',jdecode('3%2F4%22+Opaque'),jdecode(''),'/1852/2285.html','false',[],''],
		['PAGE','2306',jdecode('3%2F4%22+Transparent'),jdecode(''),'/1852/2306.html','false',[],''],
		['PAGE','2327',jdecode('5%2F8%22+Opaque'),jdecode(''),'/1852/2327.html','false',[],''],
		['PAGE','2348',jdecode('5%2F8+Transparent'),jdecode(''),'/1852/2348.html','false',[],''],
		['PAGE','2369',jdecode('Custom+Dice+Cups'),jdecode(''),'/1852/2369.html','false',[],''],
		['PAGE','2390',jdecode('Custom+Dice+Bags+%26+Dice'),jdecode(''),'/1852/2390.html','false',[],''],
		['PAGE','2411',jdecode('Custom+Loaded+Dice'),jdecode(''),'/1852/2411.html','false',[],''],
		['PAGE','2432',jdecode('Custom+Dice+Keychain'),jdecode(''),'/1852/2432.html','false',[],''],
		['PAGE','2453',jdecode('American+Decision+Maker+Dice'),jdecode(''),'/1852/2453.html','false',[],''],
		['PAGE','2537',jdecode('Poker+dice+in+bag+or+cup'),jdecode(''),'/1852/2537.html','false',[],''],
		['PAGE','2558',jdecode('Dominoes'),jdecode(''),'/1852/2558.html','true',[],''],
		['PAGE','7001',jdecode('Domino+Key+Ring'),jdecode(''),'/1852/7001.html','false',[],''],
		['PAGE','7022',jdecode('Dominoes+in+Wood'),jdecode(''),'/1852/7022.html','false',[],''],
		['PAGE','7043',jdecode('Double+Six+Domino+Set+'),jdecode(''),'/1852/7043.html','false',[],''],
		['PAGE','2579',jdecode('Misc.+Game+Parts'),jdecode(''),'/1852/2579.html','true',[],''],
		['PAGE','8201',jdecode('Airplanes'),jdecode(''),'/1852/8201.html','false',[],''],
		['PAGE','8222',jdecode('Backgammon'),jdecode(''),'/1852/8222.html','false',[],''],
		['PAGE','8243',jdecode('Bingo+Chips'),jdecode(''),'/1852/8243.html','false',[],''],
		['PAGE','8264',jdecode('Card+Stands'),jdecode(''),'/1852/8264.html','false',[],''],
		['PAGE','8285',jdecode('Chess+Pieces'),jdecode(''),'/1852/8285.html','false',[],''],
		['PAGE','8306',jdecode('Cribbage+Pegs'),jdecode(''),'/1852/8306.html','false',[],''],
		['PAGE','8327',jdecode('Fake+Money+'),jdecode(''),'/1852/8327.html','false',[],''],
		['PAGE','8348',jdecode('Game+Board+Arrows'),jdecode(''),'/1852/8348.html','false',[],''],
		['PAGE','8369',jdecode('Game+Markers'),jdecode(''),'/1852/8369.html','false',[],''],
		['PAGE','8390',jdecode('Game+Pencils'),jdecode(''),'/1852/8390.html','false',[],''],
		['PAGE','8432',jdecode('House+N+Hotel'),jdecode(''),'/1852/8432.html','false',[],''],
		['PAGE','8453',jdecode('Mini+Pawns'),jdecode(''),'/1852/8453.html','false',[],''],
		['PAGE','8474',jdecode('Mini+Poker+Chips'),jdecode(''),'/1852/8474.html','false',[],''],
		['PAGE','8516',jdecode('Pawns'),jdecode(''),'/1852/8516.html','false',[],''],
		['PAGE','8537',jdecode('Plastic+Rings'),jdecode(''),'/1852/8537.html','false',[],''],
		['PAGE','8558',jdecode('Pre+Bagged'),jdecode(''),'/1852/8558.html','false',[],''],
		['PAGE','8600',jdecode('Sand+Timers'),jdecode(''),'/1852/8600.html','false',[],''],
		['PAGE','8642',jdecode('Square+Spinners'),jdecode(''),'/1852/8642.html','false',[],''],
		['PAGE','2600',jdecode('Packaging'),jdecode(''),'/1852/2600.html','true',[],''],
		['PAGE','13901',jdecode('Dice+Box+5'),jdecode(''),'/1852/13901.html','false',[],''],
		['PAGE','13922',jdecode('Velvet+Bags'),jdecode(''),'/1852/13922.html','false',[],''],
		['PAGE','13943',jdecode('zip-top+bags+'),jdecode(''),'/1852/13943.html','false',[],''],
		['PAGE','5901',jdecode('Order+Info+'),jdecode(''),'/1852/5901.html','true',[],'']
	],''],
	['PAGE','15401',jdecode('Design+Services'),jdecode(''),'/15401.html','true',[],''],
	['PAGE','1936',jdecode('Contact'),jdecode(''),'/1936.html','true',[],''],
	['PAGE','1957',jdecode('About+us'),jdecode(''),'/1957.html','true',[],''],
	['PAGE','1978',jdecode('Links'),jdecode(''),'/1978.html','true',[],''],
	['PAGE','18401',jdecode('Request+A+Quote'),jdecode(''),'/18401.html','true',[],'']];
var siteelementCount=62;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='8B0B22';
theSitetree.keyvisualId='7537';
theSitetree.keyvisualName='kv_7537.jpg';
theSitetree.fontsetId='16582';
theSitetree.graphicsetId='12199';
theSitetree.contentColor='8B0B22';
theSitetree.contentBGColor='AEC6B8';
var theTemplate={
				name: 			'Bombay',
				paletteFamily: 	'8B0B22',
				keyvisualId: 	'7537',
				keyvisualName: 	'kv_7537.jpg',
				fontsetId: 		'16582',
				graphicsetId: 	'12199',
				contentColor: 	'8B0B22',
				contentBGColor: 'AEC6B8',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'8B0B22',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20090504-155946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20090430-085225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2222',
internalId:  '',
customField: '20090428-140758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2243',
internalId:  '',
customField: '20090428-141208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2264',
internalId:  '',
customField: '20090428-141628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2285',
internalId:  '',
customField: '20090428-142556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2306',
internalId:  '',
customField: '20090428-142853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2327',
internalId:  '',
customField: '20090428-143411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2348',
internalId:  '',
customField: '20090428-143805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2369',
internalId:  '',
customField: '20090428-144600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2390',
internalId:  '',
customField: '20090428-145219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2411',
internalId:  '',
customField: '20090428-145612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2432',
internalId:  '',
customField: '20090428-140022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2453',
internalId:  '',
customField: '20090428-150336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2537',
internalId:  '',
customField: '20090428-150947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2558',
internalId:  '',
customField: '20090430-084638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20090428-153506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2579',
internalId:  '',
customField: '20090430-084630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2600',
internalId:  '',
customField: '20090430-114103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090429-144727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20090429-122435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7022',
internalId:  '',
customField: '20090429-123027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7043',
internalId:  '',
customField: '20090429-132417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20090429-133905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8222',
internalId:  '',
customField: '20090429-134123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8243',
internalId:  '',
customField: '20090429-134400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8264',
internalId:  '',
customField: '20090429-134651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8285',
internalId:  '',
customField: '20090429-134844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8306',
internalId:  '',
customField: '20090429-135150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8327',
internalId:  '',
customField: '20090429-135414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8348',
internalId:  '',
customField: '20090429-135556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8369',
internalId:  '',
customField: '20090429-135950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8390',
internalId:  '',
customField: '20090429-140946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20090430-083355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8432',
internalId:  '',
customField: '20090429-141147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8453',
internalId:  '',
customField: '20090429-141500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8474',
internalId:  '',
customField: '20090429-141733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8516',
internalId:  '',
customField: '20090429-141948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8537',
internalId:  '',
customField: '20090429-142109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8558',
internalId:  '',
customField: '20090429-142721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1936',
internalId:  '',
customField: '20090430-102250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8600',
internalId:  '',
customField: '20090429-143957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13922',
internalId:  '',
customField: '20090430-084203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8642',
internalId:  '',
customField: '20090429-144256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13943',
internalId:  '',
customField: '20090430-084543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20090501-123953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2621',
internalId:  '',
customField: '20090430-104840'
};
webappMappings['7008']=webappMappings['7008-3089']={
webappId:    '7008',
documentId:  '15422',
internalId:  '3089',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15422',
internalId:  '',
customField: '20090501-124300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20090430-101719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1957',
internalId:  '',
customField: '20090430-113059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20090430-113107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20090501-120651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1915',
internalId:  '',
customField: '20090430-104116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2642',
internalId:  '',
customField: '20090430-105152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2663',
internalId:  '',
customField: '20090430-105508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2684',
internalId:  '',
customField: '20090430-105720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2705',
internalId:  '',
customField: '20090430-110000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2726',
internalId:  '',
customField: '20090430-110210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2747',
internalId:  '',
customField: '20090430-110440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2768',
internalId:  '',
customField: '20090430-110653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2789',
internalId:  '',
customField: '20090430-110853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20090430-113010'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INLQ3X';
var companyName   = 'Custom+Board+Games';
var htmlTitle	  = 'Custom+Board+Games%2C+Custom+Opoly+Games%2C+Custom+Dice+Games';
var metaKeywords  = 'Custom+Board+Games%2C+Custom+Board+Game%2C+Personalized+Dice%2C+Custom+Dice%2C+Customized+Dice%2C+Personalized+Board+Games%2C+Customized+Board+Games%2C+Custom+Game+Parts%2C+Custom+Playing+Card+Game%2C+Game+Cards%2C+Custom+Playing+Cards%2C+Custom+OPOLY+Game%2C++';
var metaContents  = 'Offering+Custom+Board+Games%2C+Custom+Opoly+Games%2C+Custom+Dice+Games%2C+Custom+Playing+Card+Games%2C+and+many+more+LOW+min.+orders.';
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();
};
