/* [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','237',jdecode('Home'),jdecode(''),'/237.html','true',[],''],
	['PAGE','285',jdecode('SPEAKER+REPAIR'),jdecode(''),'/285/index.html','true',[ 
		['PAGE','294',jdecode('RECONING'),jdecode(''),'/285/294.html','true',[],''],
		['PAGE','303',jdecode('REFOAMING'),jdecode(''),'/285/303.html','true',[],''],
		['PAGE','312',jdecode('DIAPHRAGMS'),jdecode(''),'/285/312.html','true',[],'']
	],''],
	['PAGE','267',jdecode('INNOVASON'),jdecode(''),'/267.html','true',[],''],
	['PAGE','3157',jdecode('Products'),jdecode(''),'/3157/index.html','true',[ 
		['PAGE','3166',jdecode('SoundCraft'),jdecode(''),'/3157/3166.html','true',[],''],
		['PAGE','3360',jdecode('Second+Product'),jdecode(''),'/3157/3360.html','true',[],''],
		['PAGE','3369',jdecode('Third+Product'),jdecode(''),'/3157/3369.html','true',[],''],
		['PAGE','4418',jdecode('First+Product'),jdecode(''),'/3157/4418.html','true',[],'']
	],''],
	['PAGE','2643',jdecode('TENT+SALE'),jdecode(''),'/2643/index.html','true',[ 
		['PAGE','2652',jdecode('MICROPHONES'),jdecode(''),'/2643/2652.html','true',[],''],
		['PAGE','2661',jdecode('CONES+DRIVERS'),jdecode(''),'/2643/2661.html','true',[],''],
		['PAGE','2670',jdecode('COMPRESSION+DRIVERS'),jdecode(''),'/2643/2670.html','true',[],''],
		['PAGE','2679',jdecode('NEW+OLD+STOCK'),jdecode(''),'/2643/2679.html','true',[],'']
	],''],
	['PAGE','2473',jdecode('BACK+LINE'),jdecode(''),'/2473.html','true',[],''],
	['PAGE','4427',jdecode('SHOWS'),jdecode(''),'/4427/index.html','true',[ 
		['PAGE','4436',jdecode('DEXTER%26%23x27%3BS'),jdecode(''),'/4427/4436.html','true',[],''],
		['PAGE','4445',jdecode('Hi+I%26%23x27%3Bm+Dave'),jdecode(''),'/4427/4445.html','true',[],''],
		['PAGE','4454',jdecode('SHOW2'),jdecode(''),'/4427/4454.html','true',[],''],
		['PAGE','4463',jdecode('SHOW3'),jdecode(''),'/4427/4463.html','true',[],'']
	],''],
	['PAGE','1608',jdecode('LINKS'),jdecode(''),'/1608.html','true',[],''],
	['PAGE','258',jdecode('CONTACT+US'),jdecode(''),'/258/index.html','true',[ 
		['PAGE','1889',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/258/1889.html','false',[],'']
	],''],
	['PAGE','1663',jdecode('Directions'),jdecode(''),'/1663.html','true',[],''],
	['PAGE','2549',jdecode('How+to+find+us'),jdecode(''),'/2549.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='1243CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10562';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Circulation',
				paletteFamily: 	'1243CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10562',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '1663',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1001']=webappMappings['1001-ahw050in38f21732f7dc8fed87f6']={
webappId:    '1001',
documentId:  '258',
internalId:  'ahw050in38f21732f7dc8fed87f6',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in38f21732f7dc8fed87f6']={
webappId:    '1001',
documentId:  '1889',
internalId:  'ahw050in38f21732f7dc8fed87f6',
customField: 'followUp'
};
webappMappings['1501']=webappMappings['1501-1888517']={
webappId:    '1501',
documentId:  '237',
internalId:  '1888517',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '237',
internalId:  '1006',
customField: '1006'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '2549',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['7060']=webappMappings['7060-e0f3ab997e049206e0760e3b9842ad8b']={
webappId:    '7060',
documentId:  '2473',
internalId:  'e0f3ab997e049206e0760e3b9842ad8b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20090128-085426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285',
internalId:  '',
customField: '20070407-100235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294',
internalId:  '',
customField: '20070322-000900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '303',
internalId:  '',
customField: '20061006-101126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '312',
internalId:  '',
customField: '20070329-103801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267',
internalId:  '',
customField: '20070328-100333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3157',
internalId:  '',
customField: '20070407-100449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3166',
internalId:  '',
customField: '20070321-211327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3360',
internalId:  '',
customField: '20070320-104812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3369',
internalId:  '',
customField: '20070320-104812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4418',
internalId:  '',
customField: '20080410-224342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2643',
internalId:  '',
customField: '20070127-233758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2652',
internalId:  '',
customField: '20070128-014830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2661',
internalId:  '',
customField: '20070128-014952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2670',
internalId:  '',
customField: '20070127-233759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2679',
internalId:  '',
customField: '20070127-233759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2473',
internalId:  '',
customField: '20061026-222007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4427',
internalId:  '',
customField: '20080411-112417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4436',
internalId:  '',
customField: '20080411-111404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4445',
internalId:  '',
customField: '20080411-212620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4454',
internalId:  '',
customField: '20080412-154715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4463',
internalId:  '',
customField: '20080410-224342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1608',
internalId:  '',
customField: '20070401-112908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258',
internalId:  '',
customField: '20070930-192132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1889',
internalId:  '',
customField: '20060924-175555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1663',
internalId:  '',
customField: '20061026-222518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2549',
internalId:  '',
customField: '20061009-105533'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050IN38F2';
var companyName   = 'GABRIEL+SOUND';
var htmlTitle	  = 'speakerrecone';
var metaKeywords  = 'speaker++recone++reconing++speaker+repair++speaker+recone++speaker+refoam++Consolidated+Audio%2C+pro+audio+sales%2C+equipment+rental%2C+speaker+repair%2C+custom%2C+JBL';
var metaContents  = 'speakers++recone++speaker+recone++speaker+repair++speaker+refoam++Consolidated+Audio+offers+professional+audio+sales%2C+rental%2C+equipment+repair+and+speaker+reconing';
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();
};
