/* [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','6501',jdecode('Home'),jdecode(''), jdecode('%2F6501%2Findex.html'), 'true',[ 
		['PAGE','12401',jdecode('Contact+us'),jdecode(''), jdecode('%2F6501%2F12401.html'), 'true',[],'',''],
		['PAGE','12422',jdecode('Feedback'),jdecode(''), jdecode('%2F6501%2F12422.html'), 'true',[],'',''],
		['PAGE','24504',jdecode('Vote+-+Acc'),jdecode(''), jdecode('%2F6501%2F24504.html'), 'true',[],'',''],
		['PAGE','12443',jdecode('Vote+-+Eco'),jdecode(''), jdecode('%2F6501%2F12443.html'), 'true',[],'',''],
		['PAGE','12464',jdecode('Vote+-+BM'),jdecode(''), jdecode('%2F6501%2F12464.html'), 'true',[],'',''],
		['PAGE','12485',jdecode('Vote+-+Legal'),jdecode(''), jdecode('%2F6501%2F12485.html'), 'true',[],'',''],
		['PAGE','12764',jdecode('Search'),jdecode(''), jdecode('%2F6501%2F12764.html'), 'true',[],'','']
	],'',''],
	['PAGE','6622',jdecode('Student+Lectures'),jdecode(''), jdecode('%2F6622%2Findex.html'), 'true',[ 
		['PAGE','7201',jdecode('Economics'),jdecode(''), jdecode('%2F6622%2F7201.html'), 'true',[],'',''],
		['PAGE','7222',jdecode('Accounting+1'),jdecode(''), jdecode('%2F6622%2F7222.html'), 'true',[],'',''],
		['PAGE','39204',jdecode('Accounting+2'),jdecode(''), jdecode('%2F6622%2F39204.html'), 'true',[],'',''],
		['PAGE','37404',jdecode('International+Studies'),jdecode(''), jdecode('%2F6622%2F37404.html'), 'true',[],'',''],
		['PAGE','13501',jdecode('The+presenters+'),jdecode(''), jdecode('%2F6622%2F13501.html'), 'true',[],'',''],
		['PAGE','13601',jdecode('The+venue'),jdecode(''), jdecode('%2F6622%2F13601.html'), 'true',[],'',''],
		['PAGE','7243',jdecode('Legal+Studies'),jdecode(''), jdecode('%2F6622%2F7243.html'), 'true',[],'',''],
		['PAGE','7264',jdecode('Bus+Man'),jdecode(''), jdecode('%2F6622%2F7264.html'), 'true',[],'','']
	],'',''],
	['PAGE','52904',jdecode('Student+workshops'),jdecode(''), jdecode('%2F52904%2Findex.html'), 'true',[ 
		['PAGE','63104',jdecode('Economics'),jdecode(''), jdecode('%2F52904%2F63104.html'), 'true',[],'',''],
		['PAGE','63125',jdecode('Accounting'),jdecode(''), jdecode('%2F52904%2F63125.html'), 'true',[],'',''],
		['PAGE','63146',jdecode('International+Studies'),jdecode(''), jdecode('%2F52904%2F63146.html'), 'true',[],'','']
	],'',''],
	['PAGE','6643',jdecode('Practice+Exams'),jdecode(''), jdecode('%2F6643%2Findex.html'), 'true',[ 
		['PAGE','7401',jdecode('Economics'),jdecode(''), jdecode('%2F6643%2F7401.html'), 'true',[],'',''],
		['PAGE','7422',jdecode('Accounting'),jdecode(''), jdecode('%2F6643%2F7422.html'), 'true',[],'',''],
		['PAGE','7443',jdecode('Legal+Studies'),jdecode(''), jdecode('%2F6643%2F7443.html'), 'true',[],'',''],
		['PAGE','7464',jdecode('Bus+Man'),jdecode(''), jdecode('%2F6643%2F7464.html'), 'true',[],'','']
	],'',''],
	['PAGE','47604',jdecode('Assessment+tasks'),jdecode(''), jdecode('%2F47604.html'), 'true',[],'',''],
	['PAGE','68804',jdecode('CPAP+Subject+Updates'),jdecode(''), jdecode('%2F68804%2Findex.html'), 'true',[ 
		['PAGE','68904',jdecode('Business+Management'),jdecode(''), jdecode('%2F68804%2F68904.html'), 'true',[],'',''],
		['PAGE','68925',jdecode('Economics'),jdecode(''), jdecode('%2F68804%2F68925.html'), 'true',[],'',''],
		['PAGE','68946',jdecode('Global+Politics'),jdecode(''), jdecode('%2F68804%2F68946.html'), 'true',[],'',''],
		['PAGE','68967',jdecode('Legal+Studies'),jdecode(''), jdecode('%2F68804%2F68967.html'), 'true',[],'','']
	],'',''],
	['PAGE','42904',jdecode('Eco+Fundamentals+2nd+ed'),jdecode(''), jdecode('%2F42904%2Findex.html'), 'true',[ 
		['PAGE','43104',jdecode('Main+features'),jdecode(''), jdecode('%2F42904%2F43104.html'), 'true',[],'',''],
		['PAGE','43125',jdecode('About+the+authors'),jdecode(''), jdecode('%2F42904%2F43125.html'), 'true',[],'',''],
		['PAGE','43146',jdecode('Sample'),jdecode(''), jdecode('%2F42904%2F43146.html'), 'true',[],'',''],
		['PAGE','43604',jdecode('Brochure%2Forder+forms'),jdecode(''), jdecode('%2F42904%2F43604.html'), 'true',[],'',''],
		['PAGE','57404',jdecode('Activity+Centres'),jdecode(''), jdecode('%2F42904%2F57404.html'), 'true',[],'','']
	],'',''],
	['PAGE','6664',jdecode('Study+Guide+to+VCE+Eco'),jdecode(''), jdecode('%2F6664%2Findex.html'), 'true',[ 
		['PAGE','19104',jdecode('About+the+author'),jdecode(''), jdecode('%2F6664%2F19104.html'), 'true',[],'','']
	],'',''],
	['PAGE','21204',jdecode('Study+Guide+to+VCE+Acc'),jdecode(''), jdecode('%2F21204%2Findex.html'), 'true',[ 
		['PAGE','46904',jdecode('About+the+authors'),jdecode(''), jdecode('%2F21204%2F46904.html'), 'true',[],'',''],
		['PAGE','59204',jdecode('Downloads'),jdecode(''), jdecode('%2F21204%2F59204.html'), 'true',[],'','']
	],'',''],
	['PAGE','21246',jdecode('Study+Guide+to+VCE+Legal'),jdecode(''), jdecode('%2F21246%2Findex.html'), 'true',[ 
		['PAGE','69604',jdecode('About+the+authors'),jdecode(''), jdecode('%2F21246%2F69604.html'), 'true',[],'','']
	],'',''],
	['PAGE','6685',jdecode('Teacher+Seminars'),jdecode(''), jdecode('%2F6685%2Findex.html'), 'true',[ 
		['PAGE','10301',jdecode('Online+booking'),jdecode(''), jdecode('%2F6685%2F10301.html'), 'true',[],'','']
	],'',''],
	['PAGE','11401',jdecode('Sales%2Fbookings'),jdecode(''), jdecode('%2F11401.html'), 'true',[],'','']];
var siteelementCount=48;
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 prodDef={
  wl_name: 'brinkster',
  product: 'WSCSYSSSSLYTCVUK'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Moonflight',
				paletteFamily: 	'708B50',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'445',
				graphicsetId: 	'500',
				contentColor: 	'476A1E',
				contentBGColor: 'FFFFFF',
				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: '20120113-185903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7264',
internalId:  '',
customField: '20110711-084216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20111130-162733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20120113-184515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20090622-085726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20120113-184144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20110812-064244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20110420-064724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20110712-065211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20101206-182204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20101206-182231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20101206-182310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20101206-182346'
};
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:  '12401',
internalId:  '',
customField: '20100523-223708'
};
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: '20110917-203809'
};
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: '20110420-064143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20100710-213651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19104',
internalId:  '',
customField: '20090310-065548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21204',
internalId:  '',
customField: '20120113-184215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21246',
internalId:  '',
customField: '20120113-184242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47604',
internalId:  '',
customField: '20120111-053758'
};
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: '20110712-055126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39204',
internalId:  '',
customField: '20110712-054829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42904',
internalId:  '',
customField: '20101202-021202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43125',
internalId:  '',
customField: '20090823-221425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43104',
internalId:  '',
customField: '20100221-041609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43146',
internalId:  '',
customField: '20101202-015647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43604',
internalId:  '',
customField: '20101202-015825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46904',
internalId:  '',
customField: '20100220-184348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52904',
internalId:  '',
customField: '20120111-194421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57404',
internalId:  '',
customField: '20110126-003219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59204',
internalId:  '',
customField: '20110222-055110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63104',
internalId:  '',
customField: '20110712-081335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63125',
internalId:  '',
customField: '20110713-064652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63146',
internalId:  '',
customField: '20110712-073215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68804',
internalId:  '',
customField: '20120113-184404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68904',
internalId:  '',
customField: '20111213-211206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68925',
internalId:  '',
customField: '20111213-211206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68946',
internalId:  '',
customField: '20111213-211206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68967',
internalId:  '',
customField: '20111213-211206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69604',
internalId:  '',
customField: '20120111-054625'
};
var webAppHostname = 'wsc.brinkster.com:80';
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();
};

