/* [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','201',jdecode('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','364112',jdecode('AMD+Bookz'),jdecode(''),'/364112/index.html','true',[ 
		['PAGE','364133',jdecode('New+Releases'),jdecode(''),'/364112/364133.html','true',[],'',''],
		['PAGE','396067',jdecode('Classic+Paperbacks'),jdecode(''),'/364112/396067.html','true',[],'',''],
		['PAGE','421367',jdecode('Classic+Hardcovers'),jdecode(''),'/364112/421367.html','true',[],'',''],
		['PAGE','370212',jdecode('Eclectic+%26+Fictional+Paperbacks'),jdecode(''),'/364112/370212.html','true',[],'',''],
		['PAGE','409367',jdecode('Eclectic+%26+Fictional+2'),jdecode(''),'/364112/409367.html','true',[],'',''],
		['PAGE','370233',jdecode('Collector%26%23x27%3Bs+Editions'),jdecode(''),'/364112/370233.html','true',[],'',''],
		['PAGE','402767',jdecode('Music+'),jdecode(''),'/364112/402767.html','true',[],'',''],
		['PAGE','409388',jdecode('Sports'),jdecode(''),'/364112/409388.html','true',[],'','']
	],'',''],
	['PAGE','70801',jdecode('AMD+Records'),jdecode(''),'/70801.html','true',[],'',''],
	['PAGE','326001',jdecode('AMD+Promotions'),jdecode(''),'/326001.html','true',[],'',''],
	['PAGE','205722',jdecode('Shop+AMD+CD%26%23x27%3Bs'),jdecode(''),'/205722.html','true',[],'',''],
	['PAGE','320801',jdecode('Black+And+Sparrow'),jdecode(''),'/320801.html','true',[],'',''],
	['PAGE','433178',jdecode('Rumor+Has+It'),jdecode(''),'/433178.html','true',[],'',''],
	['PAGE','320822',jdecode('The+JamStampede'),jdecode(''),'/320822/index.html','true',[ 
		['PAGE','329312',jdecode('Schedule'),jdecode(''),'/320822/329312.html','true',[],'',''],
		['PAGE','330612',jdecode('Band+Member+Bio%26%23x27%3Bs'),jdecode(''),'/320822/330612.html','true',[],'',''],
		['PAGE','322401',jdecode('Set+Lists+'),jdecode(''),'/320822/322401.html','true',[],'',''],
		['PAGE','343012',jdecode('Video'),jdecode(''),'/320822/343012.html','true',[],'',''],
		['PAGE','329333',jdecode('Booking'),jdecode(''),'/320822/329333.html','true',[],'','']
	],'',''],
	['PAGE','359112',jdecode('Dave+Diamond'),jdecode(''),'/359112.html','true',[],'',''],
	['PAGE','288801',jdecode('Ron+Annunziata'),jdecode(''),'/288801.html','true',[],'',''],
	['PAGE','47807',jdecode('Vassar+Clements'),jdecode(''),'/47807.html','true',[],'',''],
	['PAGE','21416',jdecode('AMD+Links'),jdecode(''),'/21416.html','true',[],'',''],
	['PAGE','244906',jdecode('Guestbook'),jdecode(''),'/244906/index.html','true',[ 
		['PAGE','244901',jdecode('Read+Guestbook'),jdecode(''),'/244906/244901.html','false',[],'','']
	],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Mazy';
theSitetree.paletteFamily='934644';
theSitetree.keyvisualId='11099';
theSitetree.keyvisualName='kv_11099.jpg';
theSitetree.fontsetId='31988';
theSitetree.graphicsetId='13822';
theSitetree.contentColor='3C3D3C';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mazy',
				paletteFamily: 	'934644',
				keyvisualId: 	'11099',
				keyvisualName: 	'kv_11099.jpg',
				fontsetId: 		'31988',
				graphicsetId: 	'13822',
				contentColor: 	'3C3D3C',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100816-102807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70801',
internalId:  '',
customField: '20100105-224726'
};
webappMappings['1002']=webappMappings['1002-244906aen010in2ttv']={
webappId:    '1002',
documentId:  '244906',
internalId:  '244906aen010in2ttv',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205722',
internalId:  '',
customField: '20090415-205529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288801',
internalId:  '',
customField: '20100105-225604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '330612',
internalId:  '',
customField: '20090806-234328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329333',
internalId:  '',
customField: '20090620-160143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '359112',
internalId:  '',
customField: '20100105-225448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '326001',
internalId:  '',
customField: '20091122-210545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329312',
internalId:  '',
customField: '20100727-220534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '320801',
internalId:  '',
customField: '20100816-103051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '320822',
internalId:  '',
customField: '20100816-103021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '322401',
internalId:  '',
customField: '20100806-124228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47807',
internalId:  '',
customField: '20100105-225652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '433178',
internalId:  '',
customField: '20100105-230942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '364112',
internalId:  '',
customField: '20100222-142606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '343012',
internalId:  '',
customField: '20090806-211825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21416',
internalId:  '',
customField: '20100105-230351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244906',
internalId:  '',
customField: '20090408-043519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244901',
internalId:  '',
customField: '20060804-014803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '364133',
internalId:  '',
customField: '20100116-213106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370212',
internalId:  '',
customField: '20091214-213004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370233',
internalId:  '',
customField: '20091129-020312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '396067',
internalId:  '',
customField: '20091214-190438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '402767',
internalId:  '',
customField: '20091126-232856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '409367',
internalId:  '',
customField: '20091205-192406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '409388',
internalId:  '',
customField: '20091129-191015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '421367',
internalId:  '',
customField: '20091129-215630'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010IN2TTV';
var companyName   = '';
var htmlTitle	  = 'AMD+Music+Group';
var metaKeywords  = 'AMD+Music%2C+Grateful+Dead%2C+Jam%2C+Blues%2C+Country%2C+Folk%2C+Stephen+King%2C+Anne+Rice%2C+Dean+Koontz%2C+Jerry+Garcia%2C+Mark+Twain%2C+Herman+Melville%2C+Carlos+Castaneda%2C+Ken+Keasy%2C+Jack+Kerouac%2C+Tom+Wolfe';
var metaContents  = 'Music%2C+entertainment%2C+books%2C+classic%2C+eclectic%2C+fiction%2C+non-fiction';
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();
};
