/* [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','11601',jdecode('Nicole+Brewer+Home'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','11701',jdecode('Style+Studio+Services'),jdecode(''),'/11701.html','true',[],''],
	['PAGE','11801',jdecode('Style+Secrets'),jdecode(''),'/11801.html','true',[],''],
	['PAGE','41601',jdecode('Ask+Nicole'),jdecode(''),'/41601.html','true',[],''],
	['PAGE','17301',jdecode('Press'),jdecode(''),'/17301.html','true',[],''],
	['PAGE','26601',jdecode('Portfolio'),jdecode(''),'/26601.html','true',[],''],
	['PAGE','11843',jdecode('Contact+Nicole'),jdecode(''),'/11843.html','true',[],'']];
var siteelementCount=7;
theSitetree.topTemplateName='Struktur';
theSitetree.paletteFamily='FFB2BC';
theSitetree.keyvisualId='1875';
theSitetree.keyvisualName='auto.jpg';
theSitetree.fontsetId='295';
theSitetree.graphicsetId='361';
theSitetree.contentColor='4F0000';
theSitetree.contentBGColor='F04766';
var theTemplate={
				name: 			'Struktur',
				paletteFamily: 	'FFB2BC',
				keyvisualId: 	'1875',
				keyvisualName: 	'auto.jpg',
				fontsetId: 		'295',
				graphicsetId: 	'361',
				contentColor: 	'4F0000',
				contentBGColor: 'F04766',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFB2BC',
				b_color: 		'F04766',
				c_color: 		'FF94A0',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11601',
internalId:  '',
customField: '20080525-004523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20080525-004614'
};
webappMappings['1003']=webappMappings['1003-aendu0in2ax411a4beb59fe']={
webappId:    '1003',
documentId:  '41601',
internalId:  'aendu0in2ax411a4beb59fe',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20080525-010754'
};
webappMappings['7060']=webappMappings['7060-3bfe755044324059d3e878e9f55c78b6']={
webappId:    '7060',
documentId:  '26601',
internalId:  '3bfe755044324059d3e878e9f55c78b6',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20080525-005522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11843',
internalId:  '',
customField: '20080525-005320'
};
webappMappings['7060']=webappMappings['7060-47645d330ddd598d383553f123702b98']={
webappId:    '7060',
documentId:  '17301',
internalId:  '47645d330ddd598d383553f123702b98',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-5728273']={
webappId:    '1501',
documentId:  '11601',
internalId:  '5728273',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20080508-141742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20080602-210349'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2AX4';
var companyName   = 'Nicole+Brewer-Style+Expert';
var htmlTitle	  = 'Nicole+Brewer+Celebrity+Fashion+Stylist';
var metaKeywords  = 'www.nicolebrewer.com%2C+nicolebrewer.com%2C+www.nicolebrewer.com%2C+WWW.NICOLEBREWER.COM%2C+nicolebrewer%2Cnikki-b%2C+n.brewer%2C+fashion%2C+fashion+stylist%2C+celebrity+stylist%2C+plus+size+style+expert%2C+plus+size+fashion+expert%2C+plus+size+fashion+stylist%2C+style+expert+plus+size+expert%2C+celebrate+your+curves%2C+celebrate+my+shape%2C+celebrate+your+shape%2C+fashion+consultant%2C+image+consultant%2C+style+consultant%2C+plus+size+makeover%2C+personal+shopper%2C+fashion+editor%2C+fashion+director%2C+fashion+producer%2C+curvy+fashionista%2C+curve+concsious%2C+style+fashion%2C+journalist%2C+fashion+spokesperson%2C+fashion+correspondent%2C+professional+stylist%2C+professional+personal+shopper%2C+plus+size%2C+petite+womens%2C+mode+magazine%2C+heart++soul+magazine%2C+essence+magazine%2C+fit+expert%2C+curvy+style+solutions%2C+plus+size+style+secrets%2C+curvy+girl%2C+style+curvy+girl%2C+thick+girl%2C+big+girl%2C+juicy+girl%2C+women+with+curves%2C+dress+your+curves%2C+dress+for+your+shape%2C+find+your+best+silhouette%2C+your+shape%2C+my+shape%2C+dress+my+curves%2C+flatter+my+figure%2C+your+figure%2C+sophsticated+style%2C+nicole%2C+brewer%2C+nicoleb%2C++nicolebrewer%2C+nikkibbrewer%2C+nicole';
var metaContents  = 'www.NicoleBrewer.com%2C+Style+expert%2C+Celebrity+Stylist%2C+Expert+of+Plus+size+Style%2C+Wardrobe+revitalizer%2C+Personal+Stylist%2C+Plus+size+Expert%2C+nicolebrewer.com%2C+stylist+to+the+stars%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) {														 
    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();
}
/* EOF */					                                                            
