/* [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','32',jdecode('Home'),jdecode(''),'/32/index.html','true',[ 
		['PAGE','53',jdecode('About+Us'),jdecode(''),'/32/53.html','true',[],'',''],
		['PAGE','8065',jdecode('Our+Team'),jdecode(''),'/32/8065.html','true',[],'',''],
		['PAGE','8172',jdecode('Contact+Us'),jdecode(''),'/32/8172.html','true',[],'',''],
		['PAGE','8181',jdecode('News'),jdecode(''),'/32/8181.html','true',[],'',''],
		['PAGE','89201',jdecode('Holidays+Notes'),jdecode(''),'/32/89201.html','true',[],'',''],
		['PAGE','8190',jdecode('Jobs'),jdecode(''),'/32/8190/index.html','true',[ 
			['PAGE','8390',jdecode('Jobs%2FHR+Dept+%28follow+up+page%29'),jdecode(''),'/32/8190/8390.html','false',[],'','']
		],'','']
	],'',''],
	['PAGE','71',jdecode('Yachts%2FBoats'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','87401',jdecode('Comar+Yachts'),jdecode(''),'/71/87401.html','true',[],'',''],
		['PAGE','80',jdecode('Cruisers+Yachts'),jdecode(''),'/71/80.html','true',[],'',''],
		['PAGE','98',jdecode('Symbol+Yachts'),jdecode(''),'/71/98.html','true',[],'',''],
		['PAGE','89',jdecode('Malibu+Boats'),jdecode(''),'/71/89.html','true',[],'',''],
		['PAGE','87422',jdecode('Scout+Boats'),jdecode(''),'/71/87422.html','true',[],'',''],
		['PAGE','7906',jdecode('Achilles+Inflat+Boat'),jdecode(''),'/71/7906.html','true',[],'',''],
		['PAGE','7924',jdecode('Used+Yacht%2FBoat+for+Sales'),jdecode(''),'/71/7924.html','false',[],'',''],
		['PAGE','71101',jdecode('Used+Boat+for+Sales'),jdecode(''),'/71/71101.html','true',[],'','']
	],'',''],
	['PAGE','107',jdecode('Marine+Engine+%26+Genset'),jdecode(''),'/107/index.html','true',[ 
		['PAGE','116',jdecode('Evinrude'),jdecode(''),'/107/116.html','true',[],'',''],
		['PAGE','7997',jdecode('Johnson%2FEvinrude+Parts+%26+Acce'),jdecode(''),'/107/7997.html','true',[],'',''],
		['PAGE','8199',jdecode('G+%26+M+'),jdecode(''),'/107/8199.html','true',[],'','']
	],'',''],
	['PAGE','3244',jdecode('Wakeboard%2C+Lifejecket'),jdecode(''),'/3244/index.html','true',[ 
		['PAGE','8208',jdecode('CWB'),jdecode(''),'/3244/8208.html','true',[],'',''],
		['PAGE','8217',jdecode('Connelly+Skis'),jdecode(''),'/3244/8217.html','true',[],'',''],
		['PAGE','3253',jdecode('Special+Offer'),jdecode(''),'/3244/3253.html','true',[],'','']
	],'',''],
	['PAGE','8006',jdecode('Boat+Show'),jdecode(''),'/8006.html','true',[],'',''],
	['PAGE','8226',jdecode('Links'),jdecode(''),'/8226.html','true',[],'',''],
	['PAGE','66601',jdecode('Weekly+Sales'),jdecode(''),'/66601.html','true',[],'',''],
	['PAGE','43601',jdecode('Photos'),jdecode(''),'/43601.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10790';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FACDC';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10790',
				graphicsetId: 	'11215',
				contentColor: 	'000000',
				contentBGColor: '7FACDC',
				a_color: 		'000000',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-81177']={
webappId:    '1501',
documentId:  '32',
internalId:  '81177',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC24G']={
webappId:    '5003',
documentId:  '32',
internalId:  'tid:1;pid:WSCSYSSSSLYTC24G',
customField: 'en:US:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20100303-025513'
};
webappMappings['7008']=webappMappings['7008-2569']={
webappId:    '7008',
documentId:  '8172',
internalId:  '2569',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-b2bd1fc9a66c59f10edb14236b300c1d']={
webappId:    '7060',
documentId:  '43601',
internalId:  'b2bd1fc9a66c59f10edb14236b300c1d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100401-025250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8065',
internalId:  '',
customField: '20100412-223900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8172',
internalId:  '',
customField: '20080716-015521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8181',
internalId:  '',
customField: '20080813-232426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8190',
internalId:  '',
customField: '20080813-025752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8390',
internalId:  '',
customField: '20080617-075407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20100419-032851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20081014-040236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89',
internalId:  '',
customField: '20081014-010730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98',
internalId:  '',
customField: '20080714-041454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7906',
internalId:  '',
customField: '20080813-230417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7924',
internalId:  '',
customField: '20080804-231311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71101',
internalId:  '',
customField: '20100419-033029'
};
webappMappings['7008']=webappMappings['7008-8660']={
webappId:    '7008',
documentId:  '8190',
internalId:  '8660',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107',
internalId:  '',
customField: '20080716-011122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20080715-224053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7997',
internalId:  '',
customField: '20080715-230047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8199',
internalId:  '',
customField: '20080723-035343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3244',
internalId:  '',
customField: '20100303-022534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8208',
internalId:  '',
customField: '20080716-040838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8217',
internalId:  '',
customField: '20080716-033647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3253',
internalId:  '',
customField: '20080716-035539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20100412-224058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8226',
internalId:  '',
customField: '20100303-022645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66601',
internalId:  '',
customField: '20100412-224233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20080707-031906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87401',
internalId:  '',
customField: '20100303-014339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87422',
internalId:  '',
customField: '20100303-020037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20100401-024429'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXX3';
var companyName   = 'MAS+Marine+Limited';
var htmlTitle	  = 'MAS+MARINE+LIMITED';
var metaKeywords  = 'outboard%3B+++yacht+%3B+inflatable+boat+%3B++Johnson+%3B+Evinrude+%3B+outboard%3B+Cruisers+Yachts+%3B+Achilles+inflatable+boat+%3B+++malibu+boat+%3B+SailingBoat+%3B++MAS+Marine+Limtied%3B+KingswayMarine+%3B+SmoothMarine+%3B+SimpsonMarine+%3BMaster+Yacht+%3BPromaxMarine%3B+Farretti+%3B+azumit+%3B+princes+%3B+sunseeker+%3B+JOYCE+KWAN%2C+F+H+KWAN%2C+WaterCraft%3B+Jetski%3B+lifejecket%3B+wakeboard%3B+MAS+MARINE+LTD';
var metaContents  = 'http%3A%2F%2Fwww.masmarine.com';
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();
};
