/* [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','32',jdecode('Services'),jdecode(''),'/32/index.html','true',[ 
		['PAGE','53',jdecode('Airport+Transportation'),jdecode(''),'/32/53.html','true',[],''],
		['PAGE','62',jdecode('Ferry+Connections'),jdecode(''),'/32/62.html','true',[],''],
		['PAGE','71',jdecode('The+Casinos'),jdecode(''),'/32/71.html','true',[],''],
		['PAGE','80',jdecode('Car+service'),jdecode(''),'/32/80.html','true',[],''],
		['PAGE','89',jdecode('Winery+Tours'),jdecode(''),'/32/89.html','true',[],''],
		['PAGE','98',jdecode('Pay+Online'),jdecode(''),'/32/98.html','true',[],'']
	],''],
	['PAGE','107',jdecode('Contact+Us'),jdecode(''),'/107/index.html','true',[ 
		['PAGE','116',jdecode('About+us'),jdecode(''),'/107/116.html','true',[],''],
		['PAGE','125',jdecode('Jobs'),jdecode(''),'/107/125.html','true',[],''],
		['PAGE','134',jdecode('The+team'),jdecode(''),'/107/134.html','true',[],'']
	],''],
	['PAGE','143',jdecode('Tourist+Information'),jdecode(''),'/143.html','true',[],''],
	['PAGE','1329',jdecode('Guestbook'),jdecode(''),'/1329/index.html','true',[ 
		['PAGE','1328',jdecode('Read+Guestbook'),jdecode(''),'/1329/1328.html','false',[],'']
	],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='41912E';
theSitetree.keyvisualId='5817';
theSitetree.keyvisualName='kv_5817.jpg';
theSitetree.fontsetId='11097';
theSitetree.graphicsetId='11872';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Easylife',
				paletteFamily: 	'41912E',
				keyvisualId: 	'5817',
				keyvisualName: 	'kv_5817.jpg',
				fontsetId: 		'11097',
				graphicsetId: 	'11872',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-34035']={
webappId:    '1501',
documentId:  '32',
internalId:  '34035',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-1329AHW050INXSHK']={
webappId:    '1002',
documentId:  '1329',
internalId:  '1329AHW050INXSHK',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20061217-181807'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSHK';
var companyName   = 'Island+Cab+Company%2C+Inc.';
var htmlTitle	  = 'Island+Cab+Company+-+North+Fork+Taxi%2C+Winery+tours%2C+Airport+Service';
var metaKeywords  = 'Taxi%2C+Airport+Transportation%2C+Taxi+Service%2C+Winery+Tours%2C+North+Fork+Wineries%2C+Wedding+Services%2C+limo+service%2C+Southold%2C+Greenport%2C+Mattituck%2C+Long+Island%2CCasinos%2C+Foxwoods%2C+Mohegan+Sun+';
var metaContents  = 'Island+Cab+Company%2C+taxi+North+Fork%2C+Airport+Transportation%2C+Taxi+Service%2C+Winery+Tours%2C+North+Fork+Wineries%2C+Wedding+Services%2C+Southold%2C+Greenport%2C+Mattituck%2C+Long+Island%2C+Casinos%2C+Foxwoods%2C+Mohegan+Sun';
					                                                                    
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 */					                                                            
