/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],''],
	['PAGE','19401',jdecode('Products'),jdecode(''),'/19401/index.html','true',[ 
		['PAGE','28601',jdecode('Service+Contracts'),jdecode(''),'/19401/28601.html','true',[],''],
		['PAGE','28610',jdecode('GAP'),jdecode(''),'/19401/28610.html','true',[],''],
		['PAGE','28619',jdecode('ETCH%2FReplacement'),jdecode(''),'/19401/28619.html','true',[],''],
		['PAGE','28628',jdecode('Appearance+Packages'),jdecode(''),'/19401/28628.html','true',[],''],
		['PAGE','19464',jdecode('Auto+Security'),jdecode(''),'/19401/19464.html','true',[],''],
		['PAGE','573',jdecode('LoJack'),jdecode(''),'/19401/573.html','true',[],''],
		['PAGE','19422',jdecode('GPS+Tracking'),jdecode(''),'/19401/19422.html','true',[],''],
		['PAGE','19443',jdecode('Bluetooth'),jdecode(''),'/19401/19443.html','true',[],'']
	],''],
	['PAGE','28515',jdecode('Services'),jdecode(''),'/28515.html','true',[],''],
	['PAGE','28842',jdecode('Dealer+Inquiries'),jdecode(''),'/28842.html','true',[],''],
	['PAGE','28876',jdecode('Jobs'),jdecode(''),'/28876.html','true',[],''],
	['PAGE','615',jdecode('Contact+Us'),jdecode(''),'/615.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='7';
theSitetree.keyvisualName='autofahrer.jpg';
theSitetree.fontsetId='235';
theSitetree.graphicsetId='278';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'7',
				keyvisualName: 	'autofahrer.jpg',
				fontsetId: 		'235',
				graphicsetId: 	'278',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20081125-140907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28515',
internalId:  '',
customField: '20081125-155252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20081015-212825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19443',
internalId:  '',
customField: '20081015-225238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28842',
internalId:  '',
customField: '20081125-164439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28876',
internalId:  '',
customField: '20081125-154534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20081125-165221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28601',
internalId:  '',
customField: '20081125-154620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28610',
internalId:  '',
customField: '20081125-154701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28619',
internalId:  '',
customField: '20081125-154740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28628',
internalId:  '',
customField: '20081125-154812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19464',
internalId:  '',
customField: '20081125-155006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20081125-155213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19422',
internalId:  '',
customField: '20081125-155100'
};
webappMappings['7008']=webappMappings['7008-616']={
webappId:    '7008',
documentId:  '28842',
internalId:  '616',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INEJPW';
var companyName   = 'VALLEY+DEALER+SERVICES';
var htmlTitle	  = 'Valley+Dealer+Services';
var metaKeywords  = 'Bakersfield+bluetooth++Bakersfield+LoJack++Bakersfield+car+alarm++Bakesfield+GPS++Kern+bluetooth++Kern+LoJack++Kern+car+alarm++Kern+GPS++car+bluetooth++bluetooth+Parrot++Bakersfield+car++Bakersfield+auto+theft++Kern+car++Bakersfield+cell+phone++Bakersfield+car+security+California+FI+consultantsFI+specialistsCalifornia+FI+specialistsPaint+and+fabricCalifornia+car+dealer+consultantcalifornia+auto+consultantcalifornia+car+dealer+specialistcar+dealer+income+analysiscalifornia+car+dealer+income+developmentcar+dealer+income+developmentdealer+income+developmentcar+dealer+alarmscalifornia+car+dealer+alarmsbakersfield+car+dealerkern+county+car+dealerbakersfield+auto+dealerbakersfield+car+dealerdealer+income+analysiscalifornia+car+dealercalifornia+FIFI+developmentFI+trainingCalifornia+FI+trainingbakersfield+fI+trainingkern+county+fi+trainingf++I+trainingF++I+consultingcalifornia+F++Icalifornia+fidealership+fidealership+F++ICalifornia+bluetoothcalifornia+lojackcalifornia+gap+waivercalifornia+car+alarmvehicle+extended+service+contract';
var metaContents  = 'Californias+leader+in+Automotive+FI+products+and+training.++VDS+is+an+after-market+provider+of+service+contracts%2C+GAP+waivers%2C+appearance+protection+products%2C+automotive+security%2C+bluetooth+and+LoJack.++Services+include+monthly+income+analysis%2C+as+well+as+weekly+product+and+menu+training.++';
					                                                                    
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 */					                                                            
