/* [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','801',jdecode('Start+an+eBay+Business%21'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','30301',jdecode('eBay+Quick+Tips%21'),jdecode(''),'/30301.html','true',[],'',''],
	['PAGE','894',jdecode('8+Ways+to+Profit+on+eBay'),jdecode(''),'/894.html','true',[],'',''],
	['PAGE','1104',jdecode('Earn+75%25+More+with+an+eBay+Store'),jdecode(''),'/1104.html','true',[],'',''],
	['PAGE','1083',jdecode('Skyrocket+Your+eBay+Selling+Price'),jdecode(''),'/1083.html','true',[],'',''],
	['PAGE','17601',jdecode('Position+Yourself+for+eBay+Selling+'),jdecode(''),'/17601.html','true',[],'',''],
	['PAGE','19601',jdecode('Advanced+Auction+Tips%21'),jdecode(''),'/19601.html','true',[],'',''],
	['PAGE','19622',jdecode('Free+eBay+Newsletter%21'),jdecode(''),'/19622.html','true',[],'',''],
	['PAGE','915',jdecode('Fast+Cash+for+the+Holidays+on+eBay'),jdecode(''),'/915.html','true',[],'',''],
	['PAGE','936',jdecode('How+to+sell+your+stuff+on+eBay'),jdecode(''),'/936.html','true',[],'',''],
	['PAGE','957',jdecode('Drive+Traffic+to+your+Website'),jdecode(''),'/957.html','true',[],'',''],
	['PAGE','978',jdecode('Cut+your+eBay+listing+fees+in+half'),jdecode(''),'/978.html','true',[],'',''],
	['PAGE','999',jdecode('Find+Products+to+sell+on+eBay'),jdecode(''),'/999.html','true',[],'',''],
	['PAGE','1020',jdecode('Make+%242200+a+week+on+eBay'),jdecode(''),'/1020.html','true',[],'',''],
	['PAGE','51901',jdecode('Surive+the+Summer+Slow+eBay'),jdecode(''),'/51901.html','true',[],'',''],
	['PAGE','1041',jdecode('Best+deals+on+home+deocr+on+eBay'),jdecode(''),'/1041.html','true',[],'',''],
	['PAGE','1062',jdecode('Is+Paul+dead%3F+US+Radio+Show'),jdecode(''),'/1062.html','true',[],'',''],
	['PAGE','873',jdecode('TeleSeminar+Schedules'),jdecode(''),'/873.html','true',[],'',''],
	['PAGE','852',jdecode('About+Us'),jdecode(''),'/852.html','true',[],'',''],
	['PAGE','1125',jdecode('Contact+us'),jdecode(''),'/1125/index.html','true',[ 
		['PAGE','26601',jdecode('Newsletter+Sign+Up+%28follow+up+page%29'),jdecode(''),'/1125/26601.html','false',[],'','']
	],'',''],
	['PAGE','1146',jdecode('Book+a+speaker'),jdecode(''),'/1146.html','true',[],'',''],
	['PAGE','22806',jdecode('Guestbook'),jdecode(''),'/22806.html','true',[],'',''],
	['PAGE','22801',jdecode('Read+Guestbook'),jdecode(''),'/22801.html','false',[],'',''],
	['PAGE','52501',jdecode('The+Latest+eBay+News%21'),jdecode(''),'/52501.html','true',[],'',''],
	['PAGE','52901',jdecode('Last+updated+July+26%2C+2008'),jdecode(''),'/52901.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20080514-134806'
};
webappMappings['1002']=webappMappings['1002-22806AHW050INXE1R']={
webappId:    '1002',
documentId:  '22806',
internalId:  '22806AHW050INXE1R',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20081111-232313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20080319-010527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1104',
internalId:  '',
customField: '20080319-010606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1083',
internalId:  '',
customField: '20080319-010623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20080319-010915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20080319-010714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19622',
internalId:  '',
customField: '20080319-002505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '915',
internalId:  '',
customField: '20080320-150039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20080320-150311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '957',
internalId:  '',
customField: '20071112-152415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '978',
internalId:  '',
customField: '20071022-234503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '999',
internalId:  '',
customField: '20071022-234522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1020',
internalId:  '',
customField: '20071024-153247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20080508-144326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1041',
internalId:  '',
customField: '20071022-234602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1062',
internalId:  '',
customField: '20080401-134506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '873',
internalId:  '',
customField: '20070423-201324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20071112-133605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1125',
internalId:  '',
customField: '20071105-001539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20071019-191816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1146',
internalId:  '',
customField: '20071105-002446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22806',
internalId:  '',
customField: '20071019-143453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20071019-143453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52501',
internalId:  '',
customField: '20080626-110048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20080508-145337'
};
webappMappings['7008']=webappMappings['7008-8853']={
webappId:    '7008',
documentId:  '1125',
internalId:  '8853',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXE1R';
var companyName   = 'Create+a+Profitable+eBay+Business+FAST%21';
var htmlTitle	  = 'Ebay+Selling+-+Learn+How+to+Make+Money+Buying+and+Selling+on+eBay%21';
var metaKeywords  = 'e+bay+how+to%2C+learn+ebay+cd%2C+ebay+business%2C+auction+items%2C+how+to+sell+on+ebay%2C+ebay+auction+secrets%2C+ebay+audio+books%2C+sell+your+stuff+on+ebay%2C+ebay+training%2C+traffic+to+your+website%2C+make+money+on+ebay%2C+learn+to+sell+on+ebay%2C+ebay+selling%2C+';
var metaContents  = 'Discover+killer+eBay+Strategies+used+to+help+increase+my+eBay+business+by+More+Than+30%25+Learn+the+eBay+Success+System+Start+today+to+build+wildly+profitable+online+businesses+Selling+items+on+eBay%21';
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();
};
