/* [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('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','394',jdecode('Women%26%23x27%3Bs'),jdecode(''),'/394.html','true',[],''],
	['PAGE','373',jdecode('Men%26%23x27%3Bs'),jdecode(''),'/373.html','true',[],''],
	['PAGE','6501',jdecode('Accessories'),jdecode(''),'/6501.html','true',[],''],
	['PAGE','9001',jdecode('Media'),jdecode(''),'/9001.html','true',[],''],
	['PAGE','415',jdecode('About+us'),jdecode(''),'/415.html','true',[],''],
	['PAGE','8301',jdecode('Contact'),jdecode(''),'/8301/index.html','true',[ 
		['PAGE','8322',jdecode('E-mail+us'),jdecode(''),'/8301/8322.html','true',[],'']
	],''],
	['PAGE','352',jdecode('Join+our+mailing+List'),jdecode(''),'/352.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Delphi';
theSitetree.paletteFamily='434343';
theSitetree.keyvisualId='7567';
theSitetree.keyvisualName='kv_7567.jpg';
theSitetree.fontsetId='16660';
theSitetree.graphicsetId='12227';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='818181';
var theTemplate={
				name: 			'Delphi',
				paletteFamily: 	'434343',
				keyvisualId: 	'7567',
				keyvisualName: 	'kv_7567.jpg',
				fontsetId: 		'16660',
				graphicsetId: 	'12227',
				contentColor: 	'FFFFFF',
				contentBGColor: '818181',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'424242',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20081001-012155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20081001-011938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20081001-175429'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '8301',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20081001-010101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20081001-010357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20081001-004909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20081001-004927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20081001-004856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20081001-005036'
};
webappMappings['7008']=webappMappings['7008-9024']={
webappId:    '7008',
documentId:  '352',
internalId:  '9024',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-9128']={
webappId:    '7008',
documentId:  '8322',
internalId:  '9128',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2WYE';
var companyName   = 'LINK+NYC';
var htmlTitle	  = 'Link+NYC%3A+Your+Link+to+Exclusive+NYC+Fashion';
var metaKeywords  = 'true+religion+jeans%2C+AG+jeans%2C+Rock+and+republic+jeans%2C+Faith%2C+Faith+connexion%2C+Tom+Ford%2C+Sunglasses%2C+Tom+Ford+Sunglasses%2C+Gucci%2C+Gucci+sunglasses%2C+gucci+long+island%2C+tom+ford+long+island%2C+marc+jacobs%2C+marc+jacob+sunglasses%2C+marc+jacobs+sunglasses%2C+marc+jacobs+long+island%2C+jeans+nyc%2C+jeans+long+island%2C+club+wear%2C+trucker+hats%2C+perfume+store+long+island%2C+lacoste+long+island%2C+king+baby%2C+queen+baby%2C+king+baby+long+island%2C+queen+baby+long+island%2C+Link+NYC%2C+Link+New+York+City%2C+NYC%2C+New+York+City%2C+Link+Longisland%2C+ed+hardy%2C+ed+hardy+ny%2C+ed+hardy+long+island%2C+christian+audigier%2C+christian+audigier+long+island%2C+afliction+long+island%2C+afflication+nyc%2C+raw+7+long+island%2C+raw+7+jeans%2C+salvage+jeans%2C+salvage+jeans+long+island%2C+michael+kors+long+island%2C+michael+kors+nyc%2Croberto+cavalli+sunglasses+long+island+nyc%2C+dior%2C+christian+dior%2C+christian+dior+long+island%2C+xacus+mens%2C+xacus+mens+long+island%2C+xacus+long+island%2C+xacus+nyc%2C+rock+n+republic%2C+rock++republic+jeans%2C+jeans+long+island%2C+long+island+jeans+store%2C+high+end+jeans%2C+seven+jeans%2Cpuma%2Cjoes+jeans%2Cle+tigre%2Cle+tiger%2Cla+coste%2Cjuicy+couture%2Cchip+and+pepper%2C+chip++pepper%2Cben+sherman%2Cjeans%2C+denim+long+island%2C+jeans+north+shore%2Clong+island+jean+store%2C+long+island+new+york+jeans%2C+premium+jeans%2C+high+end+clothes%2C+designer+jeans+long+island%2C+designer+jeans%2C+designer+sunglasses%2C+designer+perfume';
var metaContents  = 'LINK+NYC+is+Long+Islands+link+to+New+York+City+Fashion.+Featuring+high+end+apparel+for+men+and+women';
					                                                                    
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 */					                                                            
