/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','11801',jdecode('Services'),jdecode(''),'/11801.html','true',[],'',''],
	['PAGE','18501',jdecode('Free+Service'),jdecode(''),'/18501.html','true',[],'',''],
	['PAGE','31801',jdecode('Airport+Shuttle'),jdecode(''),'/31801.html','true',[],'',''],
	['PAGE','11822',jdecode('Snibley%26%23x27%3Bs+Fleet'),jdecode(''),'/11822.html','true',[],'',''],
	['PAGE','25401',jdecode('Limousine'),jdecode(''),'/25401.html','true',[],'',''],
	['PAGE','9801',jdecode('Contact+Snibley%26%23x27%3Bs'),jdecode(''),'/9801.html','true',[],'',''],
	['PAGE','13401',jdecode('About+Snibley%26%23x27%3Bs'),jdecode(''),'/13401.html','true',[],'','']];
var siteelementCount=7;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='1243CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10381';
theSitetree.graphicsetId='10562';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'1243CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10381',
				graphicsetId: 	'10562',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20100610-181719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20100724-002142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11822',
internalId:  '',
customField: '20100617-175938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100724-004036'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '11801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '11801',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20100723-233229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20100718-144119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20100723-234714'
};
webappMappings['1501']=webappMappings['1501-6845312']={
webappId:    '1501',
documentId:  '11801',
internalId:  '6845312',
customField: '1501'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INZ7QQ';
var companyName   = 'Snibley%27s+Chauffeur+Service';
var htmlTitle	  = 'Snibley%27s+Chauffeur+Service-+Ground+Transportation+%26+Limousine+svc.+for+the+Central+Oregon+Coast+%26+Beyond+';
var metaKeywords  = 'limousine+service%2C+limo+service%2C+reservations%2C+central+oregon+coast%2C+portland+international+airport%2C+free+service%2C++ground+transportation%2C+14+passenger%2C+toy+hauler%2C+suv%2C+trailer%2C+chauffeur%2C+driver%2C+pdx%2C+taxi%2C+limo%2C+limousine4me%2C+events%2C+party+pack%2C+prom%2C+drive%2C+luxury%2C+pick-up+drop+off%2C+errands%2C+car+rental%2C+driver+for+hire%2C+fleet%2C+town+car%2C+super-stretch+limousine%2C+lincoln+comfortable+ride%2C+drive%2C+vehichle%2C+large+luxurious+car%2C+Snibley%27s+Limousine+Service%2C+Snibleys+Chauffeur+service%2C+Tillamook%2C+Salem%2C+Lincoln+City%2C+Toledo%2C+Newport%2C+Yachats%2C+Pacific+City%2C+Depoe+Bay%2C+Otis%2C+livery%2C+proffessional%2C+airport+caravan+service%2C+lincoln+luxury+limo%27s%2C+Prom%2C+weddings%2C+La+quinceanera%2C+winship+equine+limo%2C+wine+tours%2C+designated+driver%2C+executive%2C+privacy+glass%2C+birthdays%2C+travel%2C+shuttle%2C+Coastal+Luxury+limos%2C+Omni+Shuttle%2C+Coastal+Concierge+Personal%2C+McMinville%2C+Pacific+Coast+Limo%27s';
var metaContents  = '%28541%29+994-3858+Snibley%27s+Chauffeur+Service.+Chauffeured+super-stretch+limousine+transportation+for+the+Central+Oregon+Coast+%26+beyond.+From+themed+party+packages+to+prestige+personal.+if+we+cant+fill+your+transportation+needs+today%2C+let+us+know%2C+we+will+make+it+our+goal+for+tomarrow.+If+you+need+a+driver+with+a+fourteen+passenger+super+stretch+limousine%2C+a+seven+passanger+SUV+with+a+toy+hauling+trailer+or+any+thing+in+between%2C+give+us+a+call+at+Snibleys+Chauffeur+Service.+We+can+get+you+to+Portland+International+Airport+%28PDX%29+on+time.+The+extra+special+touch+for+birthdays%2C+weddings%2C+La+Quinceaneras%2C+wine+tours%2C+proms+and+more.+Tillamook%2C+Lincoln+City%2C+Depoe+Bay%2C+Pacific+City%2C+Salem%2C+Newport%2C+Toledo%2C+McMinville+are+only+a+few+of+the+places+we+will+go.+';
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();
};

