/* [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','5201',jdecode('Home'),jdecode(''),'/5201.html','true',[],''],
	['PAGE','5252',jdecode('Yacht+Charters'),jdecode(''),'/5252/index.html','true',[ 
		['PAGE','5273',jdecode('Mediterranean'),jdecode(''),'/5252/5273.html','true',[],''],
		['PAGE','27101',jdecode('Corsica+and+Sardinia'),jdecode(''),'/5252/27101.html','true',[],''],
		['PAGE','27122',jdecode('Croatia'),jdecode(''),'/5252/27122.html','true',[],''],
		['PAGE','27143',jdecode('French+Riviera'),jdecode(''),'/5252/27143.html','true',[],''],
		['PAGE','27164',jdecode('Greece'),jdecode(''),'/5252/27164.html','true',[],''],
		['PAGE','27185',jdecode('Italian+Riviera'),jdecode(''),'/5252/27185.html','true',[],''],
		['PAGE','5294',jdecode('Caribbean'),jdecode(''),'/5252/5294.html','true',[],''],
		['PAGE','27901',jdecode('The+Leeward+Islands'),jdecode(''),'/5252/27901.html','true',[],''],
		['PAGE','121740',jdecode('Turks+and+Caicos'),jdecode(''),'/5252/121740.html','true',[],''],
		['PAGE','27922',jdecode('The+Virgin+Islands'),jdecode(''),'/5252/27922.html','true',[],''],
		['PAGE','27943',jdecode('The+Windward+Islands'),jdecode(''),'/5252/27943.html','true',[],''],
		['PAGE','5336',jdecode('Bahamas'),jdecode(''),'/5252/5336.html','true',[],''],
		['PAGE','92629',jdecode('Abacos'),jdecode(''),'/5252/92629.html','true',[],''],
		['PAGE','92650',jdecode('Bimini'),jdecode(''),'/5252/92650.html','true',[],''],
		['PAGE','92671',jdecode('Eleuthera'),jdecode(''),'/5252/92671.html','true',[],''],
		['PAGE','92692',jdecode('Exumas'),jdecode(''),'/5252/92692.html','true',[],''],
		['PAGE','92713',jdecode('Grand+Bahama'),jdecode(''),'/5252/92713.html','true',[],''],
		['PAGE','92734',jdecode('Nassau'),jdecode(''),'/5252/92734.html','true',[],''],
		['PAGE','5315',jdecode('United+States'),jdecode(''),'/5252/5315.html','true',[],''],
		['PAGE','28501',jdecode('Alaska'),jdecode(''),'/5252/28501.html','true',[],''],
		['PAGE','28522',jdecode('Florida'),jdecode(''),'/5252/28522.html','true',[],''],
		['PAGE','28543',jdecode('New+England'),jdecode(''),'/5252/28543.html','true',[],''],
		['PAGE','28564',jdecode('Pacific+Northwest'),jdecode(''),'/5252/28564.html','true',[],''],
		['PAGE','5357',jdecode('South+Pacific'),jdecode(''),'/5252/5357.html','true',[],''],
		['PAGE','29301',jdecode('Australia'),jdecode(''),'/5252/29301.html','true',[],''],
		['PAGE','29322',jdecode('The+Cook+Islands'),jdecode(''),'/5252/29322.html','true',[],''],
		['PAGE','29343',jdecode('Fiji'),jdecode(''),'/5252/29343.html','true',[],''],
		['PAGE','29364',jdecode('New+Caledonia'),jdecode(''),'/5252/29364.html','true',[],''],
		['PAGE','29385',jdecode('New+Zealand'),jdecode(''),'/5252/29385.html','true',[],''],
		['PAGE','29406',jdecode('Papua+New+Guinea'),jdecode(''),'/5252/29406.html','true',[],''],
		['PAGE','29427',jdecode('The+Solomon+Islands'),jdecode(''),'/5252/29427.html','true',[],''],
		['PAGE','29448',jdecode('The+Kingdom+of+Tonga'),jdecode(''),'/5252/29448.html','true',[],''],
		['PAGE','29469',jdecode('The+Vanuatu+Islands'),jdecode(''),'/5252/29469.html','true',[],''],
		['PAGE','5378',jdecode('French+Polynesia'),jdecode(''),'/5252/5378.html','true',[],''],
		['PAGE','31001',jdecode('The+Marquesas+Islands'),jdecode(''),'/5252/31001.html','true',[],''],
		['PAGE','31022',jdecode('The+Society+Islands'),jdecode(''),'/5252/31022.html','true',[],''],
		['PAGE','31043',jdecode('The+Tuamota+Islands'),jdecode(''),'/5252/31043.html','true',[],''],
		['PAGE','46829',jdecode('Fishing+Charters'),jdecode(''),'/5252/46829.html','true',[],''],
		['PAGE','46850',jdecode('Diving+Charters'),jdecode(''),'/5252/46850.html','true',[],''],
		['PAGE','46871',jdecode('Whale+Watching'),jdecode(''),'/5252/46871.html','true',[],''],
		['PAGE','46892',jdecode('Casinos'),jdecode(''),'/5252/46892.html','true',[],'']
	],''],
	['PAGE','5399',jdecode('Fractional+Yacht+Ownership'),jdecode(''),'/5399/index.html','true',[ 
		['PAGE','32601',jdecode('Private+Yacht+Ownership'),jdecode(''),'/5399/32601.html','true',[],''],
		['PAGE','32622',jdecode('Yacht+Charter'),jdecode(''),'/5399/32622.html','true',[],'']
	],''],
	['PAGE','26001',jdecode('Marine+Financing'),jdecode(''),'/26001/index.html','true',[ 
		['PAGE','26022',jdecode('Yacht+Leasing'),jdecode(''),'/26001/26022.html','false',[],''],
		['PAGE','26043',jdecode('Marine+Insurance'),jdecode(''),'/26001/26043.html','false',[],'']
	],''],
	['PAGE','128440',jdecode('Yacht+Sales'),jdecode(''),'/128440.html','true',[],''],
	['PAGE','5420',jdecode('Contact'),jdecode(''),'/5420.html','true',[],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Clearline';
theSitetree.paletteFamily='885A11';
theSitetree.keyvisualId='3288';
theSitetree.keyvisualName='kv_3288.jpg';
theSitetree.fontsetId='10421';
theSitetree.graphicsetId='10717';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Clearline',
				paletteFamily: 	'885A11',
				keyvisualId: 	'3288',
				keyvisualName: 	'kv_3288.jpg',
				fontsetId: 		'10421',
				graphicsetId: 	'10717',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'885A11',
				e_color: 		'989696',
				f_color: 		'989696',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20090801-191602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20090806-114736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5273',
internalId:  '',
customField: '20090811-104028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5294',
internalId:  '',
customField: '20090811-104554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5315',
internalId:  '',
customField: '20090811-105824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5336',
internalId:  '',
customField: '20090811-105111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5357',
internalId:  '',
customField: '20090811-110228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5378',
internalId:  '',
customField: '20090811-111235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5399',
internalId:  '',
customField: '20090727-164802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5420',
internalId:  '',
customField: '20090628-000831'
};
webappMappings['7008']=webappMappings['7008-8893']={
webappId:    '7008',
documentId:  '5420',
internalId:  '8893',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090727-165150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26022',
internalId:  '',
customField: '20090630-100118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26043',
internalId:  '',
customField: '20090630-100118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20090811-104132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27122',
internalId:  '',
customField: '20090811-104224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27143',
internalId:  '',
customField: '20090811-104316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27164',
internalId:  '',
customField: '20090811-104403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27185',
internalId:  '',
customField: '20090811-104455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20090811-104707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27922',
internalId:  '',
customField: '20090811-104911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27943',
internalId:  '',
customField: '20090811-105013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20090811-105912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28522',
internalId:  '',
customField: '20090811-110001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28543',
internalId:  '',
customField: '20090811-110052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28564',
internalId:  '',
customField: '20090811-110140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20090811-110324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29322',
internalId:  '',
customField: '20090811-110417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29343',
internalId:  '',
customField: '20090811-110518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29364',
internalId:  '',
customField: '20090811-110705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29385',
internalId:  '',
customField: '20090811-110802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29406',
internalId:  '',
customField: '20090811-110901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29427',
internalId:  '',
customField: '20090811-110956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29448',
internalId:  '',
customField: '20090811-111045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29469',
internalId:  '',
customField: '20090811-111137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20090811-111330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31022',
internalId:  '',
customField: '20090811-111429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31043',
internalId:  '',
customField: '20090810-165706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20090727-164917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32622',
internalId:  '',
customField: '20090727-165010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46892',
internalId:  '',
customField: '20090810-113406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46829',
internalId:  '',
customField: '20090810-093005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46850',
internalId:  '',
customField: '20090810-093203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46871',
internalId:  '',
customField: '20090810-093434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92629',
internalId:  '',
customField: '20090811-105204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92650',
internalId:  '',
customField: '20090811-105252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92671',
internalId:  '',
customField: '20090811-105350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92692',
internalId:  '',
customField: '20090811-105435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92713',
internalId:  '',
customField: '20090811-105531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92734',
internalId:  '',
customField: '20090811-105619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121740',
internalId:  '',
customField: '20090811-104807'
};
webappMappings['7060']=webappMappings['7060-a374c7441eb50aa68f7a9a2594d0f268']={
webappId:    '7060',
documentId:  '128440',
internalId:  'a374c7441eb50aa68f7a9a2594d0f268',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128440',
internalId:  '',
customField: '20090808-163459'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH8UU';
var companyName   = 'GOLDEN+KEY+YACHT+SALES';
var htmlTitle	  = 'Yacht+Charters+%E2%80%93+GKYS.com';
var metaKeywords  = 'Mediterranean+Yacht+Charters%2C+Corsica+Yacht+Charters%2C+Sardinia+Yacht+Charters%2C+Croatia+Yacht+Charters%2C+French+Riviera+Yacht+Charters%2C+Greece+Yacht+Charters%2C+Italian+Riviera+Yacht+Charters%2C+Caribbean+Yacht+Charters%2C+Leeward+Islands+Yacht+Charters%2C+Virgin+Islands+Yacht+Charters%2C+Windward+Islands+Yacht+Charters%2C+Bahamas+Yacht+Charters%2C+Abacos+Yacht+Charters%2C+Bimini+Yacht+Charters%2C+Eleuthera+Yacht+Charters%2C+Exumas+Yacht+Charters%2C+Grand+Bahama+Yacht+Charters%2C+Nassau+Yacht+Charters%2C+United+States+Yacht+Charters%2C+Alaska+Yacht+Charters%2C+Florida+Yacht+Charters%2C+New+England+Yacht+Charters%2C+Pacific+Northwest+Yacht+Charters%2C+South+Pacific+Yacht+Charters%2C+Australia+Yacht+Charters%2C+Cook+Islands+Yacht+Charters%2C+Fiji+Yacht+Charters%2C+New+Caledonia+Yacht+Charters%2C+New+Zealand+Yacht+Charters%2C+Papua+New+Guinea+Yacht+Charters%2C+Solomon+Islands+Yacht+Charters%2C+Kingdom+of+Tonga+Yacht+Charters%2C+Vanuatu+Islands+Yacht+Charters%2C+French+Polynesia+Yacht+Charters%2C+Marquesas+Islands+Yacht+Charters%2C+Society+Islands+Yacht+Charters%2C+Tuamota+Islands+Yacht+Charters%2C+';
var metaContents  = 'Yacht+Charters%2C+Fractional+Yacht+Ownership%2C+Yacht+Leasing%2C+Marine+Financing%2C+Marine+Insurance%2C+Yacht+Sales%2C+Yacht+Brokerage%2C+Yacht+Brokers%2C+New+Yacht+Construction+and+New+Yacht+Building+-+GOLDEN+KEY+YACHT+SALES';
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();
};
