/* [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','9301',jdecode('Home'),jdecode(''),'/9301.html','true',[],'',''],
	['PAGE','9436',jdecode('A+Little+Bit+of+Sinning'),jdecode(''),'/9436.html','true',[],'',''],
	['PAGE','14222',jdecode('Ultimate+Freak-fest+Fantasy'),jdecode(''),'/14222.html','true',[],'',''],
	['PAGE','36001',jdecode('Tracee+A.+Hanna+Fan+Club'),jdecode(''),'/36001/index.html','true',[ 
		['ITEM','36022',jdecode('FACEBOOK+Fan+Page'),jdecode(''),'http://www.facebook.com/pages/Tracee-A-Hanna/209804952386461','true',[],'','_blank'],
		['PAGE','14264',jdecode('Contact+Us%2FJoin+Mailing+List'),jdecode(''),'/36001/14264.html','true',[],'','']
	],'',''],
	['PAGE','36023',jdecode('Pictures'),jdecode(''),'/36023.html','false',[],'',''],
	['PAGE','17701',jdecode('Bella+Tracee+Books+Store'),jdecode(''),'/17701.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Hotel';
theSitetree.paletteFamily='898167';
theSitetree.keyvisualId='11677';
theSitetree.keyvisualName='kv_11677.jpg';
theSitetree.fontsetId='32961';
theSitetree.graphicsetId='13994';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='898167';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hotel',
				paletteFamily: 	'898167',
				keyvisualId: 	'11677',
				keyvisualName: 	'kv_11677.jpg',
				fontsetId: 		'32961',
				graphicsetId: 	'13994',
				contentColor: 	'000000',
				contentBGColor: '898167',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-11326']={
webappId:    '7008',
documentId:  '14264',
internalId:  '11326',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20101028-182124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14222',
internalId:  '',
customField: '20081219-193127'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9436',
internalId:  '',
customField: '20090831-151105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36023',
internalId:  '',
customField: '20110509-135503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20110509-155247'
};
webappMappings['1501']=webappMappings['1501-14056253']={
webappId:    '1501',
documentId:  '9301',
internalId:  '14056253',
customField: '1501'
};
webappMappings['7050']=webappMappings['7050-6600']={
webappId:    '7050',
documentId:  '17701',
internalId:  '6600',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14264',
internalId:  '',
customField: '20081209-150716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20110509-154043'
};
webappMappings['1002']=webappMappings['1002-36001aendu0ine879']={
webappId:    '1002',
documentId:  '36001',
internalId:  '36001aendu0ine879',
customField: 'icq=false'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INE879';
var companyName   = 'Tracee+A.+Hanna';
var htmlTitle	  = 'Tracee+A.+Hanna';
var metaKeywords  = 'Tracee+A.+Hanna%2C+Tracee+Hanna%2C+MissTracy.com%2C+MissTracey.com%2C+MissTraci.com%2C+MissTracey%2C+MissTracey%2C+MissTraci%2C+Tracy+Hanna%2C+Traci+Hanna%2C+Tracey+Hanna%2C+++books%2C+read%2C+sex%2C+write%2C+black%2C+romance%2C+sexy%2C+military%2C+Air+Force%2C+Navy%2C+Marines%2C+Army%2C+American%2C+African%2C+African-American%2C+color%2C+read%2C+erotica%2C+chick-lit%2C+literature%2C+magazine%2C+story%2C+love%2C+lust%2C+adult%2C+adult+books%2C+war%2C+welcome%2C+home%2C+homecoming%2C+cum%2C+pussy%2C+dick%2C+cock%2C+explicit%2C+hedonistic%2C+hedonism%2C+fantasy%2C+passion%2C+stories%2C+author%2C+passion%2C+desire%2C+enjoyment%2C+uninhibited%2C+reader%2C+writer%2C+novel%2C+short+story%2C+short%2C+story%2C+novella%2C+men%2C+women%2C+St.+Louis%2C+The+Masquerade+Party%2C+Zane%2C+Flava%2C+Caramel%2C+Honey%2C+MissTracee%2C+Bella%2C+Tracee%2C+Tracee+Bell%2C+Bella%2C+Jamaica%2C+boat%2C+cruise%2C+passionate%2C+short+story%2C+anthology%2C+love%2C+lust%2C+wild%2C+wildly%2C+experimental%2C+experiment%2C+blackplanet%2C+blackwomenconnect%2C+blackauthorsconnect%2C+myspace%2C+facebook%2C+yahoo%2C+msn%2C+touch%2Cafrica%2C+decent%2C+a+little+bit+of+sin%2C+a+little+bit+of+sinning%2C+naked%2C+confessions%2C+ultimate%2C+freak%2C+freak-fest%2C+tainted%2C+chocolate%2C+cream%2C+footprints%2C+headboard%2C+footprints+on+the+headboard%2C+Ultimate+Freak-fest+Fantasy%2C+Naked+confessions%2C+sin%2C+sinning%2C+confess%2C+confidant%2C+decadent%2C+tempt%2C+temptation%2C+cheater%2C+publish%2C+published%2C+self-publish%2C+unpublished%2C+contest%2C+call+for+submission%2C+scholarship%2C+blog%2C+relentless+aaron%2C+houston%2C+dallas%2C+St.+louis+';
var metaContents  = 'A+hedonistic+site+filled+with+fantasy%2C+passion%2C+and+desire+for+the+enjoyment+of+the+uninhibited+reader+of+explicitly+written+erotica.++You+will+love+Tracee+A.+Hanna%2C+author+of+the+novel%2C+A+Little+Bit+of+Sinning%3A+Zane+Presents+anthologist%3B+The+Masquerade+Party%2C+featured+in+the+New+York+Times+best+selling+anthology%2C+Caramel+Flava%2C+edited+by+Zane%2C+Chocolate+Ice+Cream%2C+included+in+Zane%E2%80%99s+anthology+Honey+Flava%3B+and+now+the+novella+Ultimate+Freak-fest+Fantasy.';
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();
};

