/* [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','32',jdecode('HOME'),jdecode(''),'/32.html','true',[],'',''],
	['PAGE','1056',jdecode('BIO'),jdecode(''),'/1056.html','true',[],'',''],
	['PAGE','5513',jdecode('VIDEOS'),jdecode(''),'/5513/index.html','true',[ 
		['PAGE','20401',jdecode('Naples'),jdecode(''),'/5513/20401.html','true',[],'','']
	],'',''],
	['PAGE','1065',jdecode('REVIEWS'),jdecode(''),'/1065.html','true',[],'',''],
	['PAGE','13301',jdecode('PRAISE'),jdecode(''),'/13301/index.html','true',[ 
		['PAGE','13801',jdecode('2007+Praise'),jdecode(''),'/13301/13801.html','true',[],'','']
	],'',''],
	['PAGE','1074',jdecode('EXCERPTS'),jdecode(''),'/1074/index.html','true',[ 
		['PAGE','3969',jdecode('1.+FATHER'),jdecode(''),'/1074/3969.html','true',[],'',''],
		['PAGE','3436',jdecode('2.+MOTHER'),jdecode(''),'/1074/3436.html','true',[],'','']
	],'',''],
	['PAGE','4904',jdecode('INTERVIEWS'),jdecode(''),'/4904.html','true',[],'',''],
	['PAGE','1083',jdecode('POETRY'),jdecode(''),'/1083.html','true',[],'',''],
	['PAGE','1092',jdecode('ART'),jdecode(''),'/1092/index.html','true',[ 
		['PAGE','7417',jdecode('ART+Part+2'),jdecode(''),'/1092/7417.html','true',[],'',''],
		['PAGE','7824',jdecode('ART+Part+3'),jdecode(''),'/1092/7824.html','true',[],'',''],
		['PAGE','7936',jdecode('ART+Part+4'),jdecode(''),'/1092/7936.html','true',[],'','']
	],'',''],
	['PAGE','1101',jdecode('NEWS'),jdecode(''),'/1101.html','true',[],'',''],
	['PAGE','3186',jdecode('ORDER'),jdecode(''),'/3186.html','true',[],'',''],
	['PAGE','4276',jdecode('BLOG'),jdecode(''),'/4276.html','true',[],'',''],
	['PAGE','4333',jdecode('VOTE'),jdecode(''),'/4333.html','true',[],'',''],
	['PAGE','2250',jdecode('GUESTBOOK'),jdecode(''),'/2250.html','true',[],'',''],
	['PAGE','3342',jdecode('CONTACT'),jdecode(''),'/3342.html','true',[],'',''],
	['PAGE','3195',jdecode('SITEMAP'),jdecode(''),'/3195.html','true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Abstract';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10551';
theSitetree.graphicsetId='10577';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Abstract',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10551',
				graphicsetId: 	'10577',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1056',
internalId:  '',
customField: '20090116-181333'
};
webappMappings['1002']=webappMappings['1002-2250AHW050IN3UPS']={
webappId:    '1002',
documentId:  '2250',
internalId:  '2250AHW050IN3UPS',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-ahw050in3ups11b4a7e0e72']={
webappId:    '1003',
documentId:  '4276',
internalId:  'ahw050in3ups11b4a7e0e72',
customField: 'en:US:'
};
webappMappings['7008']=webappMappings['7008-8222']={
webappId:    '7008',
documentId:  '3342',
internalId:  '8222',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-192']={
webappId:    '7005',
documentId:  '4333',
internalId:  '192',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-193']={
webappId:    '7005',
documentId:  '5513',
internalId:  '193',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100326-093956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5513',
internalId:  '',
customField: '20080408-020327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1065',
internalId:  '',
customField: '20080408-022146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1074',
internalId:  '',
customField: '20090116-203547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3969',
internalId:  '',
customField: '20090116-203518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3436',
internalId:  '',
customField: '20090116-203425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4904',
internalId:  '',
customField: '20070411-221716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1083',
internalId:  '',
customField: '20090116-202948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1092',
internalId:  '',
customField: '20080312-004715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7417',
internalId:  '',
customField: '20080312-012129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7824',
internalId:  '',
customField: '20080312-012340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7936',
internalId:  '',
customField: '20080312-011228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1101',
internalId:  '',
customField: '20080224-025834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3186',
internalId:  '',
customField: '20070713-203246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4276',
internalId:  '',
customField: '20070612-234540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4333',
internalId:  '',
customField: '20070612-234605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2250',
internalId:  '',
customField: '20070612-234630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3342',
internalId:  '',
customField: '20070612-234650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3195',
internalId:  '',
customField: '20070613-002847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20090116-195302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20090116-201400'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3UPS';
var companyName   = 'BAZHE.com';
var htmlTitle	  = 'B.K.+Bazhe%2C+Book+Damages%2C+Art%2C+Poetry%2C+Writing+and+Painting%2C+Bio.';
var metaKeywords  = 'B.K.+Bazhe%2C+Author%2C+Book%2C+Damages%2C+Writing%2C+Writer%2C+Nonfiction%2C+Memoir%2C+Publishing%2C+Art%2C+Artist%2C+Paintings%2C+Poet%2C+Poetry%2C+Poems%2C+Biography%2C+Bio%2C+Sport%2C+Golf%2C+Film%2C+Films%2C+Music%2C+Video%2C+Videos%2C+Movie%2C+Movies%2C+Hollywood%2C+Europe%2C+USA%2C+creative+nonfiction%2C+publishers+nonfiction%2C+publishers%2C+true+story%2C+creative+writing%2C+controversial%2C+controversial+story%2C+balkan%2C+europe%2C+french+film%2C+book+reviews%2C+contract%2C+limit+damages%2C+legal%2C+law%2C+gay%2C+heterosexual%2C+homosexual%2C+chat%2C+adoption%2C+adopt%2C+adoptors%2C+adoptee%2C+about%2C+one%2C+mans+fight%2C+men%2C+man%2C+overcome%2C+psychological%2C+wounds%2C+created%2C+peculiar%2C+upbringing%2C+as%2C+he%2C+struggled%2C+find%2C+his%2C+true+identity%2C+freedom%2C+begins%2C+death%2C+abusive%2C+father%2C+Communist%2C+official%2C+mother%2C+diagnosed%2C+cancer%2C+colon+cancer%2C+immediately%2C+returns%2C+Macedonia%2C+take+care%2C+Meanwhile%2C+more+than%2C+thirty+year+search%2C+biological+mother%2C+ends%2C+tell%2C+life+story%2C+starting%2C+lonely%2C+childhood%2C+adolescence%2C+After%2C+finding%2C+new+mother%2C+be%2C+very+understanding%2C+reveals%2C+first+gay+experience%2C+the+army%2C+his+desire%2C+self-realization%2C+caused+scandals%2C+College%2C+National+Security%2C+escape%2C+Turkey%2C+transformed%2C+into%2C+stunning%2C+transvestite%2C+meeting%2C+handsome%2C+wealthy+man%2C+return%2C+Yugoslavia%2C+where%2C+wandered%2C+underground%2C+world%2C+country%2C+falling+apart%2C+nationalism%2C+Islamic%2C+fundamentalism%2C+rose%2C+experienced%2C+directly%2C+almost%2C+losing%2C+his+life%2C+but%2C+eventually%2C+succeeded%2C+immigrating%2C+America%2C+Although%2C+finds%2C+ultimately%2C+discovers%2C+adoptive+mother%2C+devotion%2C+irreplaceable%2C+amazon%2C+barnes+and+noble%2C+free%2C+internet%2C+music%2C+design%2C+software%2C+real+estate%2C+travel%2C+hotel%2C+business%2C+web%2C+news%2C+service%2C+online%2C+video%2C+mp3%2C+sex%2C+usa%2C+uk%2C+education%2C+training%2C+homes%2C+games%2C+hotels%2C+marketing%2C+home%2C+information%2C+health%2C+web+design%2C+canada%2C+sport%2C+shopping%2C+vacation%2C+computer%2C+hosting%2C+golf%2C+pictures%2C+property%2C+forum%2C+chat%2C+links%2C+e-commerce%2C+europe%2C+database%2C+community%2C+entertainment%2C+sports%2C+books%2C+download%2C+gifts%2C+lodging%2C+consulting%2C+fishing%2C+technology%2C+email%2C+house%2C+windows%2C+new%2C+services%2C+realtor%2C+buy%2C+california%2C+residential%2C+photos%2C+auto%2C+restaurant%2C+management%2C+tourism%2C+commercial%2C+photography%2C+shop%2C+florida%2C+houses%2C+holiday%2C+html%2C+international%2C+cd%2C+development%2C+advertising%2C+multimedia%2C+website%2C+jobs%2C+food%2C+fun%2C+family%2C+God%2C+Jesus+Christ%2C+curch%2C+islam%2C+christian%2C+muslim%2C+jewish%2C+iraq%2C+iran%2C+middle+east%2C+linux%2C+flash%2C+unix%2C+phd%2C+php%2C+events%2C+australia%2C+asia%2C+africa%2C+russia%2C+russian%2C+israel%2C++children%2C+club%2C+sales%2C+texas%2C+france%2C+graphics%2C+car%2C+school%2C+construction%2C+photo%2C+java%2C+palestine%2C+Al+Qaeda%2C+Osama+bin+Laden%2C+Armageddon%2C+planet%2C+earth%2C+animals%2C+nature%2C+peace%2C+love%2C';
var metaContents  = 'B.K.+Bazhe+is+a+writer%2C+poet%2C+and+artist.+He+is+the+author+of+Damages+%28creative+nonfiction%29+a+winner+in+the+Writers+Digest+Awards%2C+and+Identities+%28poetry+book%29.+He+has+published+in+Serbia%2C+Bosnia%2C+Macedonia%2C+and+Bulgaria.+In+America%2C+his+poems+have+appeared+in%3A+Poetic+Voices+Magazine%2C+Winters+Gems+Anthology%2C+Bay+Windows%2C+Opus+Literary+Review%2C+River+Run%2C+and+Reader.+His+art+has+been+exhibited+in+New+York+City%2C+Europe%2C+NJ%2C+and+OH.+He+lives+between+NY%2C+NJ%2C+and+MA.+More+Reviews%2C+Excerpts%2C+Interviews%2C+++Videos%2C+Upcoming+Events%2C+Writing%2C+Art%2C+and+Poetry%2C+info+at%3A+Bazhe.com';
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();
};
