/* [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','301',jdecode('SoFlyy+Designs+Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','1001',jdecode('MEET+THE+DIRECTOR'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','18201',jdecode('HOW+I+WORK'),jdecode(''),'/18201.html','true',[],''],
	['PAGE','50732',jdecode('MICHAEL+JACKSON+Tribute'),jdecode(''),'/50732.html','true',[],''],
	['PAGE','1022',jdecode('ART+GALLERIES'),jdecode(''),'/1022/index.html','true',[ 
		['PAGE','49090',jdecode('Pastels'),jdecode(''),'/1022/49090.html','true',[],''],
		['PAGE','18243',jdecode('Commissions'),jdecode(''),'/1022/18243.html','true',[],''],
		['PAGE','39927',jdecode('Order+Prints'),jdecode(''),'/1022/39927.html','true',[],'']
	],''],
	['PAGE','1106',jdecode('DEEP+SOUL+CONNECTIONS'),jdecode(''),'/1106/index.html','true',[ 
		['PAGE','18327',jdecode('Poem'),jdecode(''),'/1106/18327.html','true',[],'']
	],''],
	['PAGE','5806',jdecode('Guestbook'),jdecode(''),'/5806/index.html','true',[ 
		['PAGE','5801',jdecode('Read+Guestbook'),jdecode(''),'/5806/5801.html','false',[],'']
	],''],
	['PAGE','11601',jdecode('Contact'),jdecode(''),'/11601.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1742';
theSitetree.keyvisualName='ebusiness2.jpg';
theSitetree.fontsetId='292';
theSitetree.graphicsetId='355';
theSitetree.contentColor='A3AFD5';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1742',
				keyvisualName: 	'ebusiness2.jpg',
				fontsetId: 		'292',
				graphicsetId: 	'355',
				contentColor: 	'A3AFD5',
				contentBGColor: '333F65',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5806aendu0in21bq']={
webappId:    '1002',
documentId:  '5806',
internalId:  '5806aendu0in21bq',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20090928-152428'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3457265']={
webappId:    '1501',
documentId:  '301',
internalId:  '3457265',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20090928-152821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1022',
internalId:  '',
customField: '20090928-174528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1106',
internalId:  '',
customField: '20090928-152911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20090925-225925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5806',
internalId:  '',
customField: '20090925-230021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20080131-224402'
};
webappMappings['7060']=webappMappings['7060-b2bdb02fbd05f217c34a8762df94429c']={
webappId:    '7060',
documentId:  '49090',
internalId:  'b2bdb02fbd05f217c34a8762df94429c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39927',
internalId:  '',
customField: '20090224-075154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20090226-162932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49090',
internalId:  '',
customField: '20090412-163904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18243',
internalId:  '',
customField: '20090224-074954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50732',
internalId:  '',
customField: '20091111-190712'
};
webappMappings['7060']=webappMappings['7060-2b782d6ce8f8498396955f81a617a37c']={
webappId:    '7060',
documentId:  '39927',
internalId:  '2b782d6ce8f8498396955f81a617a37c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18327',
internalId:  '',
customField: '20090928-153822'
};
webappMappings['7008']=webappMappings['7008-13847']={
webappId:    '7008',
documentId:  '18243',
internalId:  '13847',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-58393da2b4cc5d410e2a509b13bf7c4b']={
webappId:    '7060',
documentId:  '301',
internalId:  '58393da2b4cc5d410e2a509b13bf7c4b',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN21BQ';
var companyName   = 'SoFLyy+Designs+Production+%26+Entertainment';
var htmlTitle	  = 'SoFlyy+Designs+Production+%26+Entertainment';
var metaKeywords  = 'Artist%2C+Portraits%2C+Recording+Studio%2C+Recording+engineer%2C+music+Engineer%2C+engineer%2C+Music%2C+Live+Sound%2C+Production%2C+Natalia+Madrid%2C+3cookies%2C+SoFlyy%2C+designs%2C+SDPE%2C+sexy+myspace%2C+Entertainment%2C+Ingredient%2C+artistic%2C+celebrity%2C+will+smith%2C+dj+jazzy+jeff%2C+kel+spencer%2C+jazzyjefffreshprince.com%2C++Eric+Seats%2C++www.nextgreatdrummer.com%2C+patti+labelle+pictures%2C+lalah+hathaway+pictures%2C+willsmith.net%2C+stage%2C+protools%2C+digidesign%2C+left+eye%2C+tyler+perry%2C+single+mother%2C+homeless%2C+a+place+2+chill%2C+female+recording+engineer%2C+black+female+recording+engineer%2C+black+engineers%2C+female+sound+technician%2C+female+business+owner%2C+black+female++business+owners%2C+desert+storm%2C++East+Coast+Entertainment%2C+West+Coast+entertainment%2C+Nationwide+entertainment+company++++++++++';
var metaContents  = 'Let+SoFLyy+Designs+be+the+key+ingredient+in+satisfying+your+thirst+for++quality+ART.++Celebrity+Portrait+Unveilings%2C+';
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();
};
