/* [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','301',jdecode('Home+%26+Our+Scooters'),jdecode(''),'/301/index.html','true',[ 
		['PAGE','100538',jdecode('Adly+Moto'),jdecode(''),'/301/100538.html','true',[],'',''],
		['PAGE','100559',jdecode('Benelli+-+Andretti+Series'),jdecode(''),'/301/100559.html','true',[],'',''],
		['PAGE','217279',jdecode('CF+Moto'),jdecode(''),'/301/217279.html','true',[],'',''],
		['PAGE','217300',jdecode('CPI'),jdecode(''),'/301/217300.html','true',[],'',''],
		['PAGE','150921',jdecode('Eton+Scooters'),jdecode(''),'/301/150921.html','true',[],'',''],
		['PAGE','100580',jdecode('Fly+Scooters'),jdecode(''),'/301/100580.html','false',[],'',''],
		['PAGE','197065',jdecode('Hammerhead-+La+Vita'),jdecode(''),'/301/197065.html','true',[],'',''],
		['PAGE','100601',jdecode('Linhai+Aeolus+Series'),jdecode(''),'/301/100601.html','true',[],'',''],
		['PAGE','198465',jdecode('ModCycles'),jdecode(''),'/301/198465.html','true',[],'',''],
		['PAGE','100622',jdecode('SYM+U.S.A.'),jdecode(''),'/301/100622.html','true',[],'',''],
		['PAGE','244889',jdecode('Previously+Owned'),jdecode(''),'/301/244889.html','true',[],'',''],
		['PAGE','100643',jdecode('Xtreme+Motor+Sports'),jdecode(''),'/301/100643.html','false',[],'','']
	],'',''],
	['PAGE','60264',jdecode('SERVICE+%26+Parts'),jdecode(''),'/60264.html','true',[],'',''],
	['PAGE','100664',jdecode('HELMETS+%26+Head+Gear'),jdecode(''),'/100664.html','true',[],'',''],
	['PAGE','122563',jdecode('MORE+Apparel+%26+Gear'),jdecode(''),'/122563.html','true',[],'',''],
	['PAGE','121163',jdecode('Top+boxes%2C+Saddlebags%2C+etc...'),jdecode(''),'/121163.html','true',[],'',''],
	['PAGE','60243',jdecode('Windshields%2C+Locks+%26+MORE'),jdecode(''),'/60243.html','true',[],'',''],
	['PAGE','69182',jdecode('MOD+Style'),jdecode(''),'/69182.html','true',[],'',''],
	['PAGE','176965',jdecode('BOOKS'),jdecode(''),'/176965.html','true',[],'',''],
	['PAGE','131810',jdecode('EVENTS'),jdecode(''),'/131810/index.html','true',[ 
		['PAGE','146610',jdecode('ALL+Scooter+Clubs+Nights'),jdecode(''),'/131810/146610.html','false',[],'',''],
		['PAGE','256399',jdecode('5%2F30%2F2010+BBQ%2FRally%2FRide'),jdecode(''),'/131810/256399.html','true',[],'',''],
		['PAGE','256499',jdecode('1st+Annual+CFMoto+EXPO+2010'),jdecode(''),'/131810/256499.html','true',[],'',''],
		['PAGE','169437',jdecode('8%2F23%2F09+BBQ%2FRally%2FRide'),jdecode(''),'/131810/169437.html','true',[],'',''],
		['PAGE','158537',jdecode('8%2F16%2F09+BBQ%2FRally%2FRide'),jdecode(''),'/131810/158537.html','true',[],'',''],
		['PAGE','158558',jdecode('7%2F12%2F09+BBQ%2FRally'),jdecode(''),'/131810/158558.html','true',[],'',''],
		['PAGE','135410',jdecode('6%2F07%2F09+1st+BBQ'),jdecode(''),'/131810/135410.html','true',[],'',''],
		['PAGE','127110',jdecode('5%2F03%2F09+Twist+%26+Go+Ride+%26+Rally+at+Danny%26%23x27%3Bs'),jdecode(''),'/131810/127110.html','true',[],'',''],
		['PAGE','82596',jdecode('Dealer+Expo+2009'),jdecode(''),'/131810/82596.html','true',[],'','']
	],'',''],
	['PAGE','66282',jdecode('About+Us'),jdecode(''),'/66282.html','true',[],'',''],
	['PAGE','60453',jdecode('Clubs'),jdecode(''),'/60453.html','true',[],'',''],
	['PAGE','60390',jdecode('Testimonials'),jdecode(''),'/60390.html','true',[],'',''],
	['PAGE','60432',jdecode('LINKS'),jdecode(''),'/60432.html','true',[],'',''],
	['PAGE','60411',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/60411.html','true',[],'',''],
	['PAGE','124491',jdecode('Library+%2F+Downloads'),jdecode(''),'/124491.html','true',[],'',''],
	['PAGE','145510',jdecode('Laws+in+MA'),jdecode(''),'/145510.html','true',[],'',''],
	['PAGE','60327',jdecode('Rides+%26+Nearby+Attractions'),jdecode(''),'/60327.html','true',[],'',''],
	['PAGE','60306',jdecode('Directions'),jdecode(''),'/60306.html','true',[],'',''],
	['PAGE','60348',jdecode('Contact+Us'),jdecode(''),'/60348.html','true',[],'',''],
	['PAGE','60369',jdecode('Testimonials%2C+FAQs%2C+Links'),jdecode(''),'/60369.html','false',[],'',''],
	['PAGE','75682',jdecode('Holiday+Discount+Coupon'),jdecode(''),'/75682.html','false',[],'',''],
	['PAGE','75382',jdecode('Downloads'),jdecode(''),'/75382.html','false',[],'',''],
	['PAGE','205679',jdecode('MSRP+vs+price+'),jdecode(''),'/205679.html','false',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='626261';
theSitetree.keyvisualId='7123';
theSitetree.keyvisualName='kv_7123.jpg';
theSitetree.fontsetId='16396';
theSitetree.graphicsetId='12132';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'626261',
				keyvisualId: 	'7123',
				keyvisualName: 	'kv_7123.jpg',
				fontsetId: 		'16396',
				graphicsetId: 	'12132',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60432',
internalId:  '',
customField: '20100328-225337'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '60306',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100903-131451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60348',
internalId:  '',
customField: '20090821-170952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60369',
internalId:  '',
customField: '20081120-085548'
};
webappMappings['7008']=webappMappings['7008-354']={
webappId:    '7008',
documentId:  '60348',
internalId:  '354',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75382',
internalId:  '',
customField: '20081120-093030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69182',
internalId:  '',
customField: '20090829-172457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60411',
internalId:  '',
customField: '20081120-091645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60390',
internalId:  '',
customField: '20100721-134553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60243',
internalId:  '',
customField: '20090829-164907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60264',
internalId:  '',
customField: '20100701-165034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60306',
internalId:  '',
customField: '20090821-170936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60327',
internalId:  '',
customField: '20090821-171016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60453',
internalId:  '',
customField: '20091016-093346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66282',
internalId:  '',
customField: '20100326-123605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75682',
internalId:  '',
customField: '20081207-212149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82596',
internalId:  '',
customField: '20090414-090212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100538',
internalId:  '',
customField: '20100624-165613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100559',
internalId:  '',
customField: '20100508-162841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100601',
internalId:  '',
customField: '20100509-112828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100580',
internalId:  '',
customField: '20100430-125505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100622',
internalId:  '',
customField: '20100615-130038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100643',
internalId:  '',
customField: '20090407-171050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100664',
internalId:  '',
customField: '20100618-132716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176965',
internalId:  '',
customField: '20090908-101815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121163',
internalId:  '',
customField: '20090829-120549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122563',
internalId:  '',
customField: '20100105-065754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124491',
internalId:  '',
customField: '20090821-170821'
};
webappMappings['7060']=webappMappings['7060-0b95dd520c70760cbefeb67cd52b63de']={
webappId:    '7060',
documentId:  '127110',
internalId:  '0b95dd520c70760cbefeb67cd52b63de',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127110',
internalId:  '',
customField: '20090506-141034'
};
webappMappings['7060']=webappMappings['7060-e0afaf56b6184dfbbda562252848d083']={
webappId:    '7060',
documentId:  '135410',
internalId:  'e0afaf56b6184dfbbda562252848d083',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131810',
internalId:  '',
customField: '20100903-131540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135410',
internalId:  '',
customField: '20090821-142207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145510',
internalId:  '',
customField: '20100721-133404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146610',
internalId:  '',
customField: '20090829-113605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150921',
internalId:  '',
customField: '20100508-163049'
};
webappMappings['7060']=webappMappings['7060-cdadcc5df509e4eaebad9b724e9159b8']={
webappId:    '7060',
documentId:  '158558',
internalId:  'cdadcc5df509e4eaebad9b724e9159b8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158558',
internalId:  '',
customField: '20090819-215851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158537',
internalId:  '',
customField: '20090819-214107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169437',
internalId:  '',
customField: '20090826-130718'
};
webappMappings['1501']=webappMappings['1501-5726591']={
webappId:    '1501',
documentId:  '301',
internalId:  '5726591',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197065',
internalId:  '',
customField: '20100610-121351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198465',
internalId:  '',
customField: '20100721-132508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205679',
internalId:  '',
customField: '20100424-152539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217279',
internalId:  '',
customField: '20100817-101441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217300',
internalId:  '',
customField: '20100508-162938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244889',
internalId:  '',
customField: '20100805-152606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256399',
internalId:  '',
customField: '20100702-165030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256499',
internalId:  '',
customField: '20100702-150746'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3K8W';
var companyName   = 'High+Quality+Scooters%2C+Accessories%2C+Parts+%26+Service';
var htmlTitle	  = 'Dannys+Scooter+Shop+-+Sales%2C+Service%2C+Parts%2C+Accessories';
var metaKeywords  = 'scooter%2C+scootering%2C+scooterist%2C+moped%2C+motorcycle%2C+mileage%2C+gas%2C+riding%2C+touring%2C+travel%2C+driving%2C+MPG%2C+MPH%2C+sales%2C+service%2C+parts%2C+accessories%2C+accessory%2C+trunk%2C+saddlebags%2C+helmet%2C+helmets%2C+fun%2C+save%2C+scoot%2C+green%2C+economical%2C+ride%2C+cruise%2C+cruiser%2C+cruising%2C+gasoline%2C+retro%2C+vintage%2C+reproduction%2C+low+emissions%2C+Linhai%2C+Baccio%2C+Speedy%2C+La+Vita%2C+Vespa%2C+VBB%2C+Honda%2C+Helix%2C+CF+Moto%2C+Fashion%2C+Jewel%2C+Glory%2C+Charm%2C+CPI%2C++SYM%2C+Adly%2C+Adly+Moto%2C+jet%2C+Aeolus%2C+Beamer%2C+Citycom%2C+HD200%2C+RV+250%2C+Eton%2C+Eton+America%2C+Benelli%2C+Andretti%2C+Andretti+Series%2C+riding+apparel%2C+windshield%2C+trunk%2C+top+box%2C+raingear%2C+rainsuits%2C+goggles%2C+cafe%2C+snack+bar%2C+destination%2C+scooter+club%2C+avon%2C+memorial+drive%2C+memorial+dr.%2C+route+28%2C+rt.+28%2C+HCI%2C+HAWK%2C+THH%2C+5x5%2C+Gmax%2C+M2R%2C+HJC%2C+nitro%2C+vcan%2C+emgo%2C+prima%2C+scootr+logic%2C+scooter+logic%2C+motul%2C+haynes%2C';
var metaContents  = 'High+quality+Scooters%2C+Service%2C+Parts%2C+Accessories%2C+Rallies%2C+Rides%2C+Cafe';
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();
};
