/* [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','6501',jdecode('Home'),jdecode(''),'/6501/index.html','true',[ 
		['PAGE','12401',jdecode('Contact+us'),jdecode(''),'/6501/12401.html','true',[],''],
		['PAGE','12422',jdecode('Feedback'),jdecode(''),'/6501/12422.html','true',[],''],
		['PAGE','24504',jdecode('Vote+-+Acc'),jdecode(''),'/6501/24504.html','true',[],''],
		['PAGE','12443',jdecode('Vote+-+Eco'),jdecode(''),'/6501/12443.html','true',[],''],
		['PAGE','12464',jdecode('Vote+-+BM'),jdecode(''),'/6501/12464.html','true',[],''],
		['PAGE','12485',jdecode('Vote+-+Legal'),jdecode(''),'/6501/12485.html','true',[],''],
		['PAGE','12764',jdecode('Search'),jdecode(''),'/6501/12764.html','true',[],'']
	],''],
	['PAGE','6622',jdecode('Student+Lectures'),jdecode(''),'/6622/index.html','true',[ 
		['PAGE','7201',jdecode('Economics'),jdecode(''),'/6622/7201.html','true',[],''],
		['PAGE','7222',jdecode('Accounting+1'),jdecode(''),'/6622/7222.html','true',[],''],
		['PAGE','39204',jdecode('Accounting+2'),jdecode(''),'/6622/39204.html','true',[],''],
		['PAGE','37404',jdecode('International+Studies'),jdecode(''),'/6622/37404.html','true',[],''],
		['PAGE','13501',jdecode('The+presenters+'),jdecode(''),'/6622/13501.html','true',[],''],
		['PAGE','13601',jdecode('The+venue'),jdecode(''),'/6622/13601.html','true',[],''],
		['PAGE','7243',jdecode('Legal+Studies'),jdecode(''),'/6622/7243.html','true',[],''],
		['PAGE','7264',jdecode('Bus+Man'),jdecode(''),'/6622/7264.html','true',[],'']
	],''],
	['PAGE','6643',jdecode('Practice+Exams'),jdecode(''),'/6643/index.html','true',[ 
		['PAGE','7401',jdecode('Economics'),jdecode(''),'/6643/7401.html','true',[],''],
		['PAGE','7422',jdecode('Accounting'),jdecode(''),'/6643/7422.html','true',[],''],
		['PAGE','7443',jdecode('Legal+Studies'),jdecode(''),'/6643/7443.html','true',[],''],
		['PAGE','7464',jdecode('Bus+Man'),jdecode(''),'/6643/7464.html','true',[],'']
	],''],
	['PAGE','47604',jdecode('Assessment+tasks'),jdecode(''),'/47604.html','true',[],''],
	['PAGE','42904',jdecode('Year+12+Eco+text+2010'),jdecode(''),'/42904/index.html','true',[ 
		['PAGE','43104',jdecode('Main+features'),jdecode(''),'/42904/43104.html','true',[],''],
		['PAGE','43125',jdecode('About+the+authors'),jdecode(''),'/42904/43125.html','true',[],''],
		['PAGE','43146',jdecode('Sample'),jdecode(''),'/42904/43146.html','true',[],''],
		['PAGE','43604',jdecode('Brochure%2Forder+forms'),jdecode(''),'/42904/43604.html','true',[],'']
	],''],
	['PAGE','6664',jdecode('Study+Guide+to+VCE+Eco'),jdecode(''),'/6664/index.html','true',[ 
		['PAGE','19104',jdecode('About+the+author'),jdecode(''),'/6664/19104.html','true',[],'']
	],''],
	['PAGE','21204',jdecode('Study+Guide+to+VCE+Acc'),jdecode(''),'/21204/index.html','true',[ 
		['PAGE','46904',jdecode('About+the+authors'),jdecode(''),'/21204/46904.html','true',[],'']
	],''],
	['PAGE','46925',jdecode('Study+Guide+to+VCE+Int+Studies'),jdecode(''),'/46925/index.html','true',[ 
		['PAGE','46946',jdecode('About+the+authors'),jdecode(''),'/46925/46946.html','true',[],'']
	],''],
	['PAGE','21225',jdecode('Study+Guide+to+VCE+BM'),jdecode(''),'/21225.html','true',[],''],
	['PAGE','21246',jdecode('Study+Guide+to+VCE+Legal'),jdecode(''),'/21246.html','true',[],''],
	['PAGE','6685',jdecode('Teacher+Seminars'),jdecode(''),'/6685/index.html','true',[ 
		['PAGE','10301',jdecode('Online+booking'),jdecode(''),'/6685/10301.html','true',[],'']
	],''],
	['PAGE','11401',jdecode('Sales%2Fbookings'),jdecode(''),'/11401.html','true',[],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Moonflight';
theSitetree.paletteFamily='708B50';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='445';
theSitetree.graphicsetId='500';
theSitetree.contentColor='476A1E';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Moonflight',
				paletteFamily: 	'708B50',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'445',
				graphicsetId: 	'500',
				contentColor: 	'476A1E',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'476A1E',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20091027-181231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7264',
internalId:  '',
customField: '20100221-022313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20100221-021738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20100221-021356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20090622-085726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20100220-185001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100221-022039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20090622-020223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20100221-022147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100221-021525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20100221-021455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20100221-021558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20100221-021656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12764',
internalId:  '',
customField: '20090323-002452'
};
webappMappings['7005']=webappMappings['7005-62']={
webappId:    '7005',
documentId:  '24504',
internalId:  '62',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20090417-010928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46946',
internalId:  '',
customField: '20100220-184013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20091119-000939'
};
webappMappings['1501']=webappMappings['1501-13808357']={
webappId:    '1501',
documentId:  '6501',
internalId:  '13808357',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-846']={
webappId:    '7008',
documentId:  '10301',
internalId:  '846',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20090506-222056'
};
webappMappings['4001']=webappMappings['4001-13824001']={
webappId:    '4001',
documentId:  '11401',
internalId:  '13824001',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24504',
internalId:  '',
customField: '20090322-235721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12485',
internalId:  '',
customField: '20090323-000204'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '12764',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12422',
internalId:  '',
customField: '20090322-233233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12443',
internalId:  '',
customField: '20090323-000246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12464',
internalId:  '',
customField: '20090323-000045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20090801-200337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20090404-003033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19104',
internalId:  '',
customField: '20090310-065548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21204',
internalId:  '',
customField: '20100221-015722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21225',
internalId:  '',
customField: '20090311-192706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21246',
internalId:  '',
customField: '20090311-192706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47604',
internalId:  '',
customField: '20100221-015826'
};
webappMappings['7005']=webappMappings['7005-63']={
webappId:    '7005',
documentId:  '12443',
internalId:  '63',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-64']={
webappId:    '7005',
documentId:  '12464',
internalId:  '64',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-65']={
webappId:    '7005',
documentId:  '12485',
internalId:  '65',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37404',
internalId:  '',
customField: '20100221-022132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39204',
internalId:  '',
customField: '20100221-022112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42904',
internalId:  '',
customField: '20090823-221550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43125',
internalId:  '',
customField: '20090823-221425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43104',
internalId:  '',
customField: '20091217-195732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43146',
internalId:  '',
customField: '20091217-200308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43604',
internalId:  '',
customField: '20090823-224040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46904',
internalId:  '',
customField: '20100220-184348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46925',
internalId:  '',
customField: '20100220-184013'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABR330INL47L';
var companyName   = 'Commerce+Presentations+and+Publications';
var htmlTitle	  = 'Commerce+Presentations+and+Publications';
var metaKeywords  = 'VCE+EconomicsVCE+Business+ManagementVCE+Legal+StudiesVCE+AccountingStudent+LecturesExam+Preparation+LecturesCPAP+Study+Guide';
var metaContents  = 'CPAPCommerce+Presentations+and+Publications';
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();
};
