/* [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','87601',jdecode('Let+us+contact+you.'),jdecode(''),'/87601.html','true',[],''],
	['PAGE','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],''],
	['PAGE','1452',jdecode('Internet+Jargans'),jdecode(''),'/1452.html','true',[],''],
	['PAGE','1473',jdecode('Affiliate+Marketing+Tips.'),jdecode(''),'/1473.html','true',[],''],
	['PAGE','2401',jdecode('Types+of+Affiliate+Marketing'),jdecode(''),'/2401.html','true',[],''],
	['PAGE','16601',jdecode('Levels+of+Affiliate+Programs'),jdecode(''),'/16601.html','true',[],''],
	['PAGE','1494',jdecode('Types+of+Internet+Marketing'),jdecode(''),'/1494.html','true',[],''],
	['PAGE','68801',jdecode('Why+Affiliate+Marketing%3F'),jdecode(''),'/68801.html','true',[],''],
	['PAGE','2701',jdecode('Google+Adsense+makes+sense'),jdecode(''),'/2701.html','true',[],''],
	['PAGE','18401',jdecode('Monetizing+your+website'),jdecode(''),'/18401/index.html','true',[ 
		['PAGE','2901',jdecode('Internet+vs+Network+Marketing'),jdecode(''),'/18401/2901.html','true',[],'']
	],''],
	['PAGE','1515',jdecode('View+my+Articles'),jdecode(''),'/1515.html','true',[],''],
	['PAGE','1536',jdecode('Social+Networking+and+its+benefits'),jdecode(''),'/1536.html','true',[],''],
	['PAGE','1557',jdecode('Finding+your+Niche+Market'),jdecode(''),'/1557.html','true',[],''],
	['PAGE','1578',jdecode('Using+Articles+to+drive+traffic+'),jdecode(''),'/1578.html','true',[],''],
	['PAGE','1599',jdecode('Ebook++income+opportunity'),jdecode(''),'/1599.html','true',[],''],
	['PAGE','1620',jdecode('Building+a+profitable+website'),jdecode(''),'/1620.html','true',[],''],
	['PAGE','21801',jdecode('+Recession+and+Internet+Marketing'),jdecode(''),'/21801.html','true',[],''],
	['PAGE','29301',jdecode('+Internet+the+key+to+your+ideal+job%3F'),jdecode(''),'/29301.html','true',[],''],
	['PAGE','95801',jdecode('Start+Blogging+Away%21%21'),jdecode(''),'/95801.html','true',[],''],
	['PAGE','97501',jdecode('Mistakes+by+New+Affiliates'),jdecode(''),'/97501.html','true',[],''],
	['PAGE','18201',jdecode('Extra'),jdecode(''),'/18201.html','true',[],''],
	['PAGE','5301',jdecode('My+Blog'),jdecode(''),'/5301.html','true',[],''],
	['PAGE','3743',jdecode('Sign+Our+Guestbook'),jdecode(''),'/3743.html','true',[],''],
	['PAGE','88301',jdecode('Search+our+content'),jdecode(''),'/88301.html','true',[],''],
	['PAGE','3701',jdecode('Contact'),jdecode(''),'/3701.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='580D02';
theSitetree.keyvisualId='11383';
theSitetree.keyvisualName='kv_11383.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13803';
theSitetree.contentColor='340800';
theSitetree.contentBGColor='FBE5C3';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Display',
				paletteFamily: 	'580D02',
				keyvisualId: 	'11383',
				keyvisualName: 	'kv_11383.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13803',
				contentColor: 	'340800',
				contentBGColor: 'FBE5C3',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20090605-221209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20090605-222111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1473',
internalId:  '',
customField: '20090605-222211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1515',
internalId:  '',
customField: '20090605-223004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20090605-223105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1557',
internalId:  '',
customField: '20090605-223153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20090605-222318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1494',
internalId:  '',
customField: '20090605-222503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20090605-222649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20090605-222910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1578',
internalId:  '',
customField: '20090605-223233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20090605-223436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1599',
internalId:  '',
customField: '20090605-223345'
};
webappMappings['1002']=webappMappings['1002-3743aendu0in3qn5']={
webappId:    '1002',
documentId:  '3743',
internalId:  '3743aendu0in3qn5',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3743',
internalId:  '',
customField: '20090425-163427'
};
webappMappings['7050']=webappMappings['7050-9056']={
webappId:    '7050',
documentId:  '5301',
internalId:  '9056',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20090415-231631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20090605-222416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20090605-231948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20090605-222746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20090605-223518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20090511-224813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20090605-223558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20090605-222600'
};
webappMappings['7008']=webappMappings['7008-16449']={
webappId:    '7008',
documentId:  '87601',
internalId:  '16449',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87601',
internalId:  '',
customField: '20090524-224924'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '88301',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20090509-011351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95801',
internalId:  '',
customField: '20090605-223733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20090605-223824'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3QN5';
var companyName   = 'Internet+Opportunities+Now';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
