/* [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','39772',jdecode('Home'),jdecode(''),'/39772.html','true',[],'',''],
	['PAGE','55983',jdecode('Experience+Counts'),jdecode(''),'/55983.html','true',[],'',''],
	['PAGE','56004',jdecode('Election+Platform'),jdecode(''),'/56004.html','true',[],'',''],
	['PAGE','56088',jdecode('Reformed+Bylaws'),jdecode(''),'/56088.html','true',[],'',''],
	['PAGE','56046',jdecode('Budget+Management'),jdecode(''),'/56046.html','true',[],'',''],
	['PAGE','56067',jdecode('Protecting+Environment'),jdecode(''),'/56067.html','true',[],'',''],
	['PAGE','56225',jdecode('Fair+Taxation'),jdecode(''),'/56225.html','true',[],'',''],
	['PAGE','56246',jdecode('New+Initiatives'),jdecode(''),'/56246.html','true',[],'',''],
	['PAGE','56267',jdecode('Ossington+Moratorium'),jdecode(''),'/56267.html','true',[],'',''],
	['PAGE','56288',jdecode('Park+Safety'),jdecode(''),'/56288.html','true',[],'',''],
	['PAGE','56309',jdecode('Safer+Family+Commuting'),jdecode(''),'/56309.html','true',[],'',''],
	['PAGE','59683',jdecode('Small+Businesses'),jdecode(''),'/59683.html','true',[],'',''],
	['PAGE','56330',jdecode('The+Four+Year+Plan'),jdecode(''),'/56330.html','true',[],'',''],
	['PAGE','60183',jdecode('George+in+Action'),jdecode(''),'/60183.html','true',[],'',''],
	['PAGE','715',jdecode('Contact+Me'),jdecode(''),'/715.html','true',[],'',''],
	['PAGE','45572',jdecode('Trinity-Spadina'),jdecode(''),'/45572.html','false',[],'',''],
	['PAGE','46472',jdecode('Advance'),jdecode(''),'/46472.html','false',[],'',''],
	['PAGE','48472',jdecode('Build'),jdecode(''),'/48472.html','false',[],'',''],
	['PAGE','48493',jdecode('Create'),jdecode(''),'/48493.html','false',[],'',''],
	['PAGE','48514',jdecode('Improve'),jdecode(''),'/48514.html','false',[],'',''],
	['PAGE','46972',jdecode('Four+Year+Plan'),jdecode(''),'/46972.html','false',[],'',''],
	['PAGE','47172',jdecode('Municipal+Election'),jdecode(''),'/47172.html','false',[],'',''],
	['PAGE','53383',jdecode('News+%26+Events'),jdecode(''),'/53383.html','false',[],'',''],
	['PAGE','27404',jdecode('Old_Introduction'),jdecode(''),'/27404.html','false',[],'',''],
	['PAGE','601',jdecode('Old_Home'),jdecode(''),'/601.html','false',[],'',''],
	['PAGE','11301',jdecode('Old_Civic+Election'),jdecode(''),'/11301.html','false',[],'',''],
	['PAGE','11322',jdecode('Old_Provincial+Election'),jdecode(''),'/11322.html','false',[],'',''],
	['PAGE','27313',jdecode('Old_Ward+19+Community'),jdecode(''),'/27313.html','false',[],'',''],
	['PAGE','27322',jdecode('Old_Information'),jdecode(''),'/27322.html','false',[],'',''],
	['PAGE','27529',jdecode('Old_News'),jdecode(''),'/27529.html','false',[],'',''],
	['PAGE','27331',jdecode('Old_Links%2FEvents'),jdecode(''),'/27331.html','false',[],'',''],
	['PAGE','22606',jdecode('Old_Guestbook'),jdecode(''),'/22606/index.html','false',[ 
		['PAGE','22601',jdecode('Old_Read+Guestbook'),jdecode(''),'/22606/22601.html','false',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Bound';
theSitetree.paletteFamily='4D5022';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10831';
theSitetree.graphicsetId='11288';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='787F42';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bound',
				paletteFamily: 	'4D5022',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10831',
				graphicsetId: 	'11288',
				contentColor: 	'FFFFFF',
				contentBGColor: '787F42',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27313',
internalId:  '',
customField: '20091025-011610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100908-232456'
};
webappMappings['1002']=webappMappings['1002-22606AHW050INE92U']={
webappId:    '1002',
documentId:  '22606',
internalId:  '22606AHW050INE92U',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20090327-215410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11322',
internalId:  '',
customField: '20090324-194424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20101012-203608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22606',
internalId:  '',
customField: '20070922-002345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20070922-002345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27322',
internalId:  '',
customField: '20090719-142852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27331',
internalId:  '',
customField: '20090719-143441'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39772',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27404',
internalId:  '',
customField: '20100908-231801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27529',
internalId:  '',
customField: '20100908-232124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39772',
internalId:  '',
customField: '20101016-000639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45572',
internalId:  '',
customField: '20101007-163835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46472',
internalId:  '',
customField: '20101007-163533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46972',
internalId:  '',
customField: '20101003-115605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47172',
internalId:  '',
customField: '20101003-120809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48493',
internalId:  '',
customField: '20101007-201829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48472',
internalId:  '',
customField: '20101007-161104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48514',
internalId:  '',
customField: '20101007-163116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53383',
internalId:  '',
customField: '20101007-201938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55983',
internalId:  '',
customField: '20101018-200625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56004',
internalId:  '',
customField: '20101018-200740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56046',
internalId:  '',
customField: '20101018-201213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56088',
internalId:  '',
customField: '20101018-201050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56067',
internalId:  '',
customField: '20101018-201405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56225',
internalId:  '',
customField: '20101018-201445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56246',
internalId:  '',
customField: '20101018-201538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56267',
internalId:  '',
customField: '20101018-201627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56288',
internalId:  '',
customField: '20101018-201746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56309',
internalId:  '',
customField: '20101018-201925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59683',
internalId:  '',
customField: '20101018-202001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56330',
internalId:  '',
customField: '20101018-202047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60183',
internalId:  '',
customField: '20101018-202633'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE92U';
var companyName   = 'George+Sawision+for+Ward+19+City+Councillor';
var htmlTitle	  = 'George+Sawision+for+Ward+19+City+Councillor';
var metaKeywords  = 'george+sawision%2C+sawision%2C+ontario+provincial+election+2007%2Cgeorgesawision%2Csavision%2Cgeorge+savision%2C+georgesavision%2C+rosario+marchese%2C+kate+holloway%2C+tyler+currie%2C+charlene+cottle%2C+john+rubino%2C+silvio+ursomarzo%2C+dan+king%2C+ontario+provincial+election%2C+I+vote+toronto';
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();
};

