/* [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','42',jdecode('Home'),jdecode(''),'/42.html','true',[],''],
	['PAGE','19501',jdecode('About+Us'),jdecode(''),'/19501/index.html','true',[ 
		['PAGE','36901',jdecode('How+Site+Works'),jdecode(''),'/19501/36901.html','true',[],''],
		['PAGE','20043',jdecode('Policy+page'),jdecode(''),'/19501/20043.html','true',[],''],
		['PAGE','24301',jdecode('Terms'),jdecode(''),'/19501/24301.html','false',[],''],
		['PAGE','19690',jdecode('Our+Links'),jdecode(''),'/19501/19690.html','false',[],''],
		['PAGE','36501',jdecode('Advertising+Ideas'),jdecode(''),'/19501/36501.html','false',[],''],
		['PAGE','20022',jdecode('Our+Domains'),jdecode(''),'/19501/20022.html','true',[],'']
	],''],
	['PAGE','20001',jdecode('Our+Store'),jdecode(''),'/20001/index.html','true',[ 
		['PAGE','19648',jdecode('Locate+Store'),jdecode(''),'/20001/19648.html','false',[],''],
		['PAGE','27801',jdecode('The+Farm'),jdecode(''),'/20001/27801.html','false',[],'']
	],''],
	['PAGE','19585',jdecode('Auto+Services'),jdecode(''),'/19585/index.html','false',[ 
		['PAGE','19606',jdecode('Cars'),jdecode(''),'/19585/19606.html','false',[],'']
	],''],
	['PAGE','19522',jdecode('Balloons'),jdecode(''),'/19522/index.html','true',[ 
		['PAGE','46101',jdecode('Latex+and+Mylar'),jdecode(''),'/19522/46101.html','false',[],''],
		['PAGE','46122',jdecode('Cold+Air'),jdecode(''),'/19522/46122.html','false',[],''],
		['PAGE','46143',jdecode('Hot+air'),jdecode(''),'/19522/46143.html','false',[],'']
	],''],
	['PAGE','4376',jdecode('Incorporate'),jdecode(''),'/4376.html','true',[],''],
	['PAGE','926',jdecode('Imprinted+items'),jdecode(''),'/926.html','true',[],''],
	['PAGE','27601',jdecode('Custom+Embroidery'),jdecode(''),'/27601.html','true',[],''],
	['PAGE','19564',jdecode('Home+Services'),jdecode(''),'/19564.html','false',[],''],
	['PAGE','27401',jdecode('Computer+Sales+%26+Service'),jdecode(''),'/27401/index.html','false',[ 
		['PAGE','33922',jdecode('The+Computer'),jdecode(''),'/27401/33922.html','false',[],'']
	],''],
	['PAGE','31001',jdecode('Internet+Services'),jdecode(''),'/31001/index.html','true',[ 
		['PAGE','33901',jdecode('The+Internet'),jdecode(''),'/31001/33901.html','false',[],''],
		['PAGE','34801',jdecode('ICANN'),jdecode(''),'/31001/34801.html','true',[],''],
		['PAGE','33943',jdecode('Binary+Code'),jdecode(''),'/31001/33943.html','false',[],'']
	],''],
	['PAGE','26401',jdecode('Domain+Names'),jdecode(''),'/26401/index.html','true',[ 
		['PAGE','36301',jdecode('Right+name'),jdecode(''),'/26401/36301.html','true',[],'']
	],''],
	['PAGE','72',jdecode('Web++Hosting+%26+Design'),jdecode(''),'/72.html','true',[],''],
	['PAGE','18201',jdecode('Contact++Us'),jdecode(''),'/18201/index.html','true',[ 
		['PAGE','19669',jdecode('Email+Form'),jdecode(''),'/18201/19669.html','true',[],'']
	],''],
	['PAGE','19627',jdecode('Guestbook'),jdecode(''),'/19627.html','true',[],''],
	['PAGE','20501',jdecode('Secret+Page'),jdecode(''),'/20501.html','false',[],''],
	['PAGE','43601',jdecode('Assets'),jdecode(''),'/43601.html','false',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10793';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FACDC';
var theTemplate={
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10793',
				graphicsetId: 	'11215',
				contentColor: 	'000000',
				contentBGColor: '7FACDC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '42',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42',
internalId:  '',
customField: '20090421-115559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72',
internalId:  '',
customField: '20090814-045233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4376',
internalId:  '',
customField: '20090512-013338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '926',
internalId:  '',
customField: '20090514-020215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20090526-050248'
};
webappMappings['7060']=webappMappings['7060-48dbead82c613fd9ed89f07823119925']={
webappId:    '7060',
documentId:  '19606',
internalId:  '48dbead82c613fd9ed89f07823119925',
customField: 'language:en;country:US;'
};
webappMappings['1002']=webappMappings['1002-19627ahw050in3anw']={
webappId:    '1002',
documentId:  '19627',
internalId:  '19627ahw050in3anw',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '19648',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['7008']=webappMappings['7008-2671']={
webappId:    '7008',
documentId:  '19669',
internalId:  '2671',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20090513-050458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19522',
internalId:  '',
customField: '20090521-032125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20090814-044806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19564',
internalId:  '',
customField: '20090330-174839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19585',
internalId:  '',
customField: '20090330-175001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19606',
internalId:  '',
customField: '20090420-095142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19627',
internalId:  '',
customField: '20090330-175239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19648',
internalId:  '',
customField: '20090329-224118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19669',
internalId:  '',
customField: '20090330-175319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19690',
internalId:  '',
customField: '20090330-175603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20090804-005250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20022',
internalId:  '',
customField: '20090805-025642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20043',
internalId:  '',
customField: '20090421-123441'
};
webappMappings['7060']=webappMappings['7060-4d3374a9149e9cd57fbee1439ca9ecc5']={
webappId:    '7060',
documentId:  '20501',
internalId:  '4d3374a9149e9cd57fbee1439ca9ecc5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20090408-172608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20090330-041800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20090331-014425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20090514-020722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27601',
internalId:  '',
customField: '20090514-020557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20090421-124048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20090407-141012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33922',
internalId:  '',
customField: '20090407-141142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33943',
internalId:  '',
customField: '20090407-141317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34801',
internalId:  '',
customField: '20090408-035916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36301',
internalId:  '',
customField: '20090814-044919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20090407-173948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20090421-123243'
};
webappMappings['7060']=webappMappings['7060-fd495248379428c7115f48bde69ac978']={
webappId:    '7060',
documentId:  '43601',
internalId:  'fd495248379428c7115f48bde69ac978',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20090420-101046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20090421-105827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46122',
internalId:  '',
customField: '20090421-105827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46143',
internalId:  '',
customField: '20090421-105827'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3ANW';
var companyName   = 'SkyPilot+Productions%2Cinc.';
var htmlTitle	  = 'SkyPilot+Productions%2Cinc.++Where+There+are+no+Limits';
var metaKeywords  = 'advertising%2Chosting%2Cpromotion%2Csales%2Cbusiness+services%2Cincorporate%2Cballoon%2Cballoons%2Cblimp%2Cblimps%2Cbeach+balls%2Ce-book%2Cdomain+names%2Cembroidery%2Ccustom%2Cimprinting';
var metaContents  = 'advertising%2Cweb+hosting%2Cbusiness+services%2Cincorporate%2Cballoons%2Csales%2Cpromotion';
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();
};
