/* [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','1401',jdecode('Home'),jdecode(''),'/1401.html','true',[],''],
	['PAGE','68801',jdecode('Why+Affiliate+Marketing%3F'),jdecode(''),'/68801.html','true',[],''],
	['PAGE','148701',jdecode('Get+Your+Free+Report'),jdecode(''),'/148701.html','false',[],''],
	['PAGE','149401',jdecode('Download+Report+Now'),jdecode(''),'/149401.html','false',[],''],
	['PAGE','1473',jdecode('Affiliate+Marketing+Tips.'),jdecode(''),'/1473.html','true',[],''],
	['PAGE','97501',jdecode('Mistakes+by+New+Affiliates'),jdecode(''),'/97501.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','2701',jdecode('Google+Adsense+'),jdecode(''),'/2701.html','true',[],''],
	['PAGE','18401',jdecode('Monetizing+your+website'),jdecode(''),'/18401.html','true',[],''],
	['PAGE','2901',jdecode('Internet+vs+Network+Marketing'),jdecode(''),'/2901.html','false',[],''],
	['PAGE','1536',jdecode('Social+Networking+'),jdecode(''),'/1536.html','true',[],''],
	['PAGE','1557',jdecode('Finding+your+Niche+Market'),jdecode(''),'/1557.html','true',[],''],
	['PAGE','1578',jdecode('Article+Marketing'),jdecode(''),'/1578.html','true',[],''],
	['PAGE','1599',jdecode('Writing+an+Ebook+'),jdecode(''),'/1599.html','true',[],''],
	['PAGE','1620',jdecode('A+Profitable+Website'),jdecode(''),'/1620.html','true',[],''],
	['PAGE','111101',jdecode('Recommended+Ebooks'),jdecode(''),'/111101.html','true',[],''],
	['PAGE','111122',jdecode('How+To+Make+That+First+Dollar+Online'),jdecode(''),'/111122.html','false',[],''],
	['PAGE','109901',jdecode('Article+Database'),jdecode(''),'/109901.html','true',[],''],
	['PAGE','21801',jdecode('+Recession+and+Internet+Marketing'),jdecode(''),'/21801.html','false',[],''],
	['PAGE','29301',jdecode('+Internet+the+key+to+your+ideal+job%3F'),jdecode(''),'/29301.html','false',[],''],
	['PAGE','95801',jdecode('Blogging+Away%21%21'),jdecode(''),'/95801.html','true',[],''],
	['PAGE','18201',jdecode('Extra'),jdecode(''),'/18201.html','true',[],''],
	['PAGE','1452',jdecode('Internet+Jargans'),jdecode(''),'/1452.html','true',[],''],
	['PAGE','144201',jdecode('View+my++Blog'),jdecode(''),'/144201.html','false',[],''],
	['PAGE','146601',jdecode('Why+Affiliate+Marketing+A+Helpful+Tool+to+Make+Money+Online+++by+Paul+Evans'),jdecode(''),'/146601.html','false',[],''],
	['PAGE','3743',jdecode('Sign+Our+Guestbook'),jdecode(''),'/3743.html','true',[],''],
	['PAGE','147001',jdecode('Join+Our+Affiliate+Program'),jdecode(''),'/147001.html','true',[],''],
	['PAGE','147022',jdecode('Affiliate+Marketing+Exposed+'),jdecode(''),'/147022.html','false',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='19120C';
theSitetree.keyvisualId='11383';
theSitetree.keyvisualName='kv_11383.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13800';
theSitetree.contentColor='1B1B1B';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Display',
				paletteFamily: 	'19120C',
				keyvisualId: 	'11383',
				keyvisualName: 	'kv_11383.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13800',
				contentColor: 	'1B1B1B',
				contentBGColor: 'FFFFFF',
				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: '20100510-204551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1452',
internalId:  '',
customField: '20100429-103810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1473',
internalId:  '',
customField: '20100504-114143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144201',
internalId:  '',
customField: '20100503-193025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1536',
internalId:  '',
customField: '20100504-121452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1557',
internalId:  '',
customField: '20100504-122753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20100503-160158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1494',
internalId:  '',
customField: '20100504-115352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20100504-115845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20100503-153946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1578',
internalId:  '',
customField: '20100503-143027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20100503-132241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1599',
internalId:  '',
customField: '20100503-165825'
};
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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111122',
internalId:  '',
customField: '20100503-161756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20100504-144352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20100504-114918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20100503-135356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100503-153240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20100503-144959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146601',
internalId:  '',
customField: '20100504-132208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20090605-223558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20100504-113854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149401',
internalId:  '',
customField: '20100510-204904'
};
webappMappings['7050']=webappMappings['7050-9056']={
webappId:    '7050',
documentId:  '144201',
internalId:  '9056',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111101',
internalId:  '',
customField: '20100503-163047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95801',
internalId:  '',
customField: '20100504-123233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20100503-155358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147022',
internalId:  '',
customField: '20100504-144155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147001',
internalId:  '',
customField: '20100504-153754'
};
webappMappings['7008']=webappMappings['7008-28036']={
webappId:    '7008',
documentId:  '148701',
internalId:  '28036',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148701',
internalId:  '',
customField: '20100510-202837'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0IN3QN5';
var companyName   = 'INTERNET+OPPORTUNITIES+NOW';
var htmlTitle	  = '';
var metaKeywords  = 'Internet+Opportunities%2C+Affiliate+Marketing%2C+New+Affiliates%2C+Super+Affiliates%2C+Making+Money+Online%2C+Make+That+First+Dollar+Online%2C+Article+Marketing%2C+Work+From+Home%2C+Internet+Jargans%2C+Internet+Marketing%2C+Ebook+Reviews%2C+Monetizing+your+website.';
var metaContents  = 'Learn+about+the+many+opportunities+available+to+make+money+online.';
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();
};
