/* [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','6501',jdecode('Home'),jdecode(''),'/6501.html','true',[],'',''],
	['PAGE','7401',jdecode('3D+Printer+Cases'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','7422',jdecode('Aviation+Cases'),jdecode(''),'/7422.html','true',[],'',''],
	['PAGE','6657',jdecode('Audi+Visual+Cases'),jdecode(''),'/6657/index.html','true',[ 
		['PAGE','7443',jdecode('Plasma+Cases'),jdecode(''),'/6657/7443.html','true',[],'',''],
		['PAGE','7464',jdecode('Plasma+Lift+Style+Cases'),jdecode(''),'/6657/7464.html','true',[],'',''],
		['PAGE','7485',jdecode('Projector+Cases'),jdecode(''),'/6657/7485.html','true',[],'',''],
		['PAGE','7506',jdecode('TFT+Display+Cases'),jdecode(''),'/6657/7506.html','true',[],'','']
	],'',''],
	['PAGE','7527',jdecode('Briefcases'),jdecode(''),'/7527.html','true',[],'',''],
	['PAGE','7548',jdecode('Camera+Cases'),jdecode(''),'/7548.html','true',[],'',''],
	['PAGE','6741',jdecode('Catering+Cases'),jdecode(''),'/6741.html','true',[],'',''],
	['PAGE','6762',jdecode('Casino+Cases'),jdecode(''),'/6762.html','true',[],'',''],
	['PAGE','6783',jdecode('DJ+Cases'),jdecode(''),'/6783/index.html','true',[ 
		['PAGE','7569',jdecode('Custom+DJ+Case'),jdecode(''),'/6783/7569.html','true',[],'',''],
		['PAGE','7590',jdecode('DJ+Topper+Cover'),jdecode(''),'/6783/7590.html','true',[],'',''],
		['PAGE','7611',jdecode('DJ+Coffin+Case'),jdecode(''),'/6783/7611.html','true',[],'',''],
		['PAGE','7632',jdecode('DJ+Rack+Mount+Case'),jdecode(''),'/6783/7632.html','true',[],'','']
	],'',''],
	['PAGE','6804',jdecode('Instrument+Cases'),jdecode(''),'/6804.html','true',[],'',''],
	['PAGE','6825',jdecode('Lighting+Cases'),jdecode(''),'/6825/index.html','true',[ 
		['PAGE','7653',jdecode('American+DJ+Cases'),jdecode(''),'/6825/7653.html','true',[],'',''],
		['PAGE','7674',jdecode('Chauvet+Cases'),jdecode(''),'/6825/7674.html','true',[],'',''],
		['PAGE','7695',jdecode('Clay+Paky+Cases'),jdecode(''),'/6825/7695.html','true',[],'',''],
		['PAGE','7716',jdecode('Coemar+Cases'),jdecode(''),'/6825/7716.html','true',[],'',''],
		['PAGE','7737',jdecode('Color+Kinetics+Cases'),jdecode(''),'/6825/7737.html','true',[],'',''],
		['PAGE','7758',jdecode('Elation+Cases'),jdecode(''),'/6825/7758.html','true',[],'',''],
		['PAGE','7779',jdecode('ETC+Cases'),jdecode(''),'/6825/7779.html','true',[],'',''],
		['PAGE','7800',jdecode('High+End+Cases'),jdecode(''),'/6825/7800.html','true',[],'',''],
		['PAGE','7821',jdecode('Lycian+Cases'),jdecode(''),'/6825/7821.html','true',[],'',''],
		['PAGE','7842',jdecode('Martin+Cases'),jdecode(''),'/6825/7842.html','true',[],'',''],
		['PAGE','7863',jdecode('Pani+Cases'),jdecode(''),'/6825/7863.html','true',[],'',''],
		['PAGE','7884',jdecode('Vari-Lite+Cases'),jdecode(''),'/6825/7884.html','true',[],'',''],
		['PAGE','7905',jdecode('Other+Light+Cases'),jdecode(''),'/6825/7905.html','true',[],'','']
	],'',''],
	['PAGE','6846',jdecode('Medical+Cases'),jdecode(''),'/6846.html','true',[],'',''],
	['PAGE','6867',jdecode('Military+Cases'),jdecode(''),'/6867.html','true',[],'',''],
	['PAGE','6720',jdecode('Mobile+Work+Station+Cases'),jdecode(''),'/6720.html','true',[],'',''],
	['PAGE','6678',jdecode('Music+Cases'),jdecode(''),'/6678/index.html','true',[ 
		['PAGE','7926',jdecode('Amplifier+Cases'),jdecode(''),'/6678/7926.html','true',[],'',''],
		['PAGE','7947',jdecode('Chain+Motor+Cases'),jdecode(''),'/6678/7947.html','true',[],'',''],
		['PAGE','7968',jdecode('Drum+Cases'),jdecode(''),'/6678/7968.html','true',[],'',''],
		['PAGE','7989',jdecode('Guitar+Cases'),jdecode(''),'/6678/7989.html','true',[],'',''],
		['PAGE','8010',jdecode('Keyboard+Cases'),jdecode(''),'/6678/8010.html','true',[],'',''],
		['PAGE','8031',jdecode('Mics+Cases'),jdecode(''),'/6678/8031.html','true',[],'',''],
		['PAGE','8052',jdecode('Mixer+Console+Cases'),jdecode(''),'/6678/8052.html','true',[],'',''],
		['PAGE','8073',jdecode('Pedal+Board+Cases'),jdecode(''),'/6678/8073.html','true',[],'',''],
		['PAGE','8094',jdecode('Speaker+Cab+Cases'),jdecode(''),'/6678/8094.html','true',[],'',''],
		['PAGE','8115',jdecode('Wardrobe+Cases'),jdecode(''),'/6678/8115.html','true',[],'',''],
		['PAGE','8136',jdecode('Other+Musical+Cases'),jdecode(''),'/6678/8136.html','true',[],'','']
	],'',''],
	['PAGE','8157',jdecode('Podium+Cases'),jdecode(''),'/8157.html','true',[],'',''],
	['PAGE','6699',jdecode('Production+Workbox'),jdecode(''),'/6699.html','true',[],'',''],
	['PAGE','6888',jdecode('Rack+%26+Shock+Cases'),jdecode(''),'/6888/index.html','true',[ 
		['PAGE','8178',jdecode('Std.+Rackmount+Cases'),jdecode(''),'/6888/8178.html','true',[],'',''],
		['PAGE','8199',jdecode('Std.+Shockmount+Cases'),jdecode(''),'/6888/8199.html','true',[],'',''],
		['PAGE','8220',jdecode('Rack+%26+Shock+Mixer+Cases'),jdecode(''),'/6888/8220.html','true',[],'',''],
		['PAGE','8241',jdecode('Double+Wide+Rack+%26+Shock+Cases'),jdecode(''),'/6888/8241.html','true',[],'',''],
		['PAGE','8262',jdecode('Pull+Over+Clamp+Cases'),jdecode(''),'/6888/8262.html','true',[],'','']
	],'',''],
	['PAGE','8283',jdecode('Simulator+Cases'),jdecode(''),'/8283.html','true',[],'',''],
	['PAGE','8304',jdecode('Tattoo+Cases'),jdecode(''),'/8304.html','true',[],'',''],
	['PAGE','8325',jdecode('Tradeshow+Cases'),jdecode(''),'/8325.html','true',[],'',''],
	['PAGE','6909',jdecode('Special+Designed+Cases'),jdecode(''),'/6909.html','true',[],'',''],
	['PAGE','6552',jdecode('Catalogue%2Fdownload'),jdecode(''),'/6552.html','true',[],'',''],
	['PAGE','6636',jdecode('Contact'),jdecode(''),'/6636.html','true',[],'',''],
	['PAGE','6615',jdecode('Jobs'),jdecode(''),'/6615.html','true',[],'',''],
	['PAGE','6573',jdecode('Special+events'),jdecode(''),'/6573.html','true',[],'',''],
	['PAGE','9522',jdecode('Terms'),jdecode(''),'/9522.html','true',[],'','']];
var siteelementCount=64;
theSitetree.topTemplateName='Cable';
theSitetree.paletteFamily='D30303';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10367';
theSitetree.graphicsetId='10527';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cable',
				paletteFamily: 	'D30303',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10367',
				graphicsetId: 	'10527',
				contentColor: 	'FFFFFF',
				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:  '6501',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6678',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['1501']=webappMappings['1501-7499159']={
webappId:    '1501',
documentId:  '6501',
internalId:  '7499159',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6657',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7485',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7506',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7527',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7548',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6741',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6762',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6783',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7569',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7590',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7611',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7632',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6804',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6825',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7653',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7674',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7695',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7716',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7737',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7758',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7779',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7800',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7821',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7842',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7863',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7884',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7905',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6846',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6867',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6720',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7926',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7947',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7968',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7989',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8010',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8031',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8052',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8073',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8094',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8115',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8136',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8157',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6699',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6888',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8178',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8199',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8220',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8241',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8262',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8283',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8304',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8325',
internalId:  '',
customField: '20100601-025717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6909',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6552',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6573',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6615',
internalId:  '',
customField: '20100601-015649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6636',
internalId:  '',
customField: '20100601-015649'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INZUDT';
var companyName   = 'CW+CASES';
var htmlTitle	  = 'Custom+Road+Cases';
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();
};

