/* [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','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','2052',jdecode('Service'),jdecode(''),'/2052.html','true',[],'',''],
	['PAGE','2073',jdecode('Contact'),jdecode(''),'/2073.html','true',[],'','']];
var siteelementCount=3;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='6176B2';
theSitetree.keyvisualId='7885';
theSitetree.keyvisualName='kv_7885.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12296';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='ABBBE8';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp32-hostin',
  product: 'WSCSYSSSSLYTCVNO'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'6176B2',
				keyvisualId: 	'7885',
				keyvisualName: 	'kv_7885.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12296',
				contentColor: 	'000000',
				contentBGColor: 'ABBBE8',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'6176B2',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20100905-223041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2073',
internalId:  '',
customField: '20101111-173227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20100818-021824'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I71KLX';
var companyName   = 'Marine+Engine+Parts+Distributors';
var htmlTitle	  = 'Marine+Engine+Parts+Distributors';
var metaKeywords  = 'Marine+parts+and+acceessories+to+suit+-+Johnson%2C+Evinrude%2C+Mercury%2C+Mercruiser%2C+Yamaha%2C+Tohatsu%2C+Marine%2C+spares%2C+parts%2C+replacement%2C+outboards%2C+stern+drives%2C+legs%2C+steering%2C+controls%2C+electronics%2C+propellers%2C+manifolds%2C+manuals%2C+mallory%2C+sierra%2C+jarvis+marine%2C+RWB%2C+Jolly+Roger%2C+motors%2C+WaterSnake+motors%2C+Johnson%2C+Evinrude%2C+Mercury%2C+Mercruiser%2C+Yamaha%2C+Tohatsu%2C+Marine%2C+spares%2C+parts%2C+replacement%2C+outboards%2C+stern+drives%2C+legs%2C+steering%2C+controls%2C+electronics%2C+propellers%2C+manifolds%2C+manuals%2C+mallory%2C+sierra%2C+jarvis+marine%2C+RWB%2C+Jolly+Roger%2C+motors%2C+WaterSnake+motors%2C+Mariner%2C+OMC%2C+Yamaha%2C+Chrysler%2C+Suzuki%2C+Outboards%2C+motors%2C+Volvo%2C+Cobra%2C+Sterndrives%2C+Inboards%2C+Vortec+Engines%2C+Barr+Manifolds%2C+Osco+Manifolds%2C+Elbows%2C+Cooling+System+components%2C+Arco+Starter+Motors%2C+Alternators%2C+Solenoids%2C+Sterndrive+Engineering%2C+Sterndrive+legs%2C+Hardware%2C+Chandlery%2C+Fittings+for+boats%2C+accessories+for+boats%2C+trailers%2C+and+most+everything+marine.+Workshop+Supplies%2C+Workshop+Tools%2C+Workshop+Equipment%2C+Cleaning+products%2C+Lubricants%2C+Grease%2C+Batteries%2C+Clymer+repair+manuals%2C+Gulf+Western%2C+Amsoil+oils%2C+Greases%2C+Lubricants%2C+Water+Pumps%2C+Bilge+Pumps%2C+Live+Bait+Pumps%2C+Jabsco+Pumps%2C+Rule+Pumps%2C+Johnson+Pump%2C+Michigan+Propellers%2C+Navigation+Lights%2C+Instruments%2C+Switches%2C+Safety+Equipment%2C+Outboard+and+Sterndrive+repairs+service%2C+Wrecking+hundreds+of+models+daily%2C+Electrical+components%2C+Ignition+components%2C+CDI+Electronics%2C+Aqua+Pro%2C+Jarvis+Marine%2C+Mallory%2C+Watersnake+electric+trolling+motors%2C+Sierra+Marine+Products%2C+GLM+products%2C+E-Z+Lube+Pressure+Gearcase+Filler%2C+Sta-Bil+Fuel+Stabiliser.+Used+sterndrives%2C+rebuilt+sterndrives%2C+upper+gearbox%2C+lower+gearbox%2C+upper+gear+case%2C+lower+gear+case%2C+drive+couplings%2C+damper+plates%2C+trim+and+tilt+units%2C+trim+and+tilt+motors%2C+trim+and+tilt+rams%2C+transom+plates%2C+skin+fittings%2C+heat+exchangers%2C+oil+coolers%2C+hydraulic+hoses%2C+synthetic+gear+lube%2C+spark+plugs%2C+impellers%2C+seal+kits%2C+gasket+sets%2C+gears%2C+steering+cables%2C+steering+wheels%2C+moter+flushers%2C+pistons%2C+crankshafts%2C+controls%2C+control+cables%2C+gauges%2C+instruments%2C+fuel+lines%2C+fuel+fittings%2C+exhaust+hose%2C+stainless+hose+clamps%2C+borg+warner+transmissions%2C+rebuilt+marine+engines%2C+4+cylinder%2C+v6+engines%2C+v8+engines%2C+engine+mounts%2C+fuel+tanks%2C+trim+tabs%2C+trailer+winches%2C+safety+equipment%2C+life+jackets%2C+trailer+wheel+bearings%2C+ebay+store%2C+stock+take+sale%2C+stocktake%2C+Outboard+motors%2C+outboard+motor+spare+parts%2C+outboard+service%2C+boat+motors%2C+boat+spare+parts%2C+boat+service%2C+boat+parts.';
var metaContents  = 'Marine+Engine+Parts+Distributors+specialists+in+hard-to-find+and+obsolete+parts+for+all+marine+engines.%0APart+of+the+Moby+Marine+Services+group+of+companies%3A-%0AAustralia%27s+leading+supplier+of+Marine+Spare+Parts+for+Outboards%2C+Inboards%2C+Sterndrives%2C+Legs%2C+Electronics%2C+Controls%2C+Propellers%2C+Manifolds%2C+Risers%2C+Steering%2C+Accessories%2C+Manuals%2C+plus+range+of+second+hand+and+wrecking+parts+from+engines%2C+drives%2C+legs%2C+components%2C+etc.+Replacement+Parts+-+New%2C+Used%2C+Genuine%2C+Aftermarket%2C+OEM+parts+for+popular+and+obsolete+models.+Dismantlers+of+outboards.+Home+of+AquaPro+Marine+Parts.+Quality+Advice+and+the+Right+Price.+Marine+Parts+is+our+Business.+Established+in+1980%2C+Moby+Marine+has+developed+and+grown+into+one+of+the+Largest+Importers%2C+Distributors+and+Suppliers+of+quality+aftermarket+marine+engine+parts+in+Australia.+Situated+in+Sydney%2C+Moby+has+a+huge+stock+holding+and+can+promptly+despatch+parts+anywhere+in+Australia+and+overseas.+With+100+years+of+combined+product+knowledge+and+experience%2C++the+staff+at+Moby+Marine+are+ready+for+your+order+for+outboard+motor+parts%2C+boat+parts+and+specialised+items.+Out+Nautibits+division+also+has+a+range+of+marine+giftware+for+Christmas%2C+Birthday+gifts+and+special+event+gifts.+Marine+Parts+is+our+Business.+Established+in+1980%2C+Moby+Marine+has+developed+and+grown+into+one+of+the+Largest+Importers%2C+Distributors+and+Suppliers+of+quality+aftermarket+marine+engine+parts+in+Australia.';
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();
};

