/* [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','201',jdecode('Our+service'),jdecode(''), jdecode('%2F201.html'), 'true',[],'',''],
	['PAGE','183201',jdecode('Our+service+%28follow+up+page%29'),jdecode(''), jdecode('%2F183201.html'), 'false',[],'',''],
	['PAGE','107201',jdecode('Payment+and+bookings'),jdecode(''), jdecode('%2F107201.html'), 'true',[],'',''],
	['PAGE','85101',jdecode('Mobile+Car+Window+Tinting'),jdecode(''), jdecode('%2F85101.html'), 'true',[],'',''],
	['PAGE','224601',jdecode('Car+Tint+information+'),jdecode(''), jdecode('%2F224601.html'), 'true',[],'',''],
	['PAGE','72822',jdecode('Warranty+for+car+tint'),jdecode(''), jdecode('%2F72822.html'), 'true',[],'',''],
	['PAGE','166701',jdecode('Price+list+for+all+vehicles'),jdecode(''), jdecode('%2F166701.html'), 'true',[],'',''],
	['PAGE','183601',jdecode('Price+list+for+car+tinting+%28follow+up+page%29'),jdecode(''), jdecode('%2F183601.html'), 'false',[],'',''],
	['PAGE','110501',jdecode('Darkest+Legal+Car+Tint'),jdecode(''), jdecode('%2F110501.html'), 'true',[],'',''],
	['PAGE','86201',jdecode('Car+Window+Tint+benefits'),jdecode(''), jdecode('%2F86201.html'), 'true',[],'',''],
	['PAGE','85122',jdecode('Installing+car+tint'),jdecode(''), jdecode('%2F85122.html'), 'true',[],'',''],
	['PAGE','6016',jdecode('Removing+car+tint'),jdecode(''), jdecode('%2F6016.html'), 'true',[],'',''],
	['PAGE','6011',jdecode('Machine+Window+Tint'),jdecode(''), jdecode('%2F6011.html'), 'true',[],'',''],
	['PAGE','170501',jdecode('Pictures+of+tinted+vehicles'),jdecode(''), jdecode('%2F170501.html'), 'true',[],'',''],
	['PAGE','86901',jdecode('Home+%26+Office+Window+Tint'),jdecode(''), jdecode('%2F86901.html'), 'true',[],'',''],
	['PAGE','238301',jdecode('Installing+Techniques'),jdecode(''), jdecode('%2F238301.html'), 'true',[],'',''],
	['PAGE','119601',jdecode('Frosted+Tint+'),jdecode(''), jdecode('%2F119601.html'), 'true',[],'',''],
	['PAGE','238001',jdecode('Aluminum+Tint'),jdecode(''), jdecode('%2F238001.html'), 'true',[],'',''],
	['PAGE','238022',jdecode('Metal+Tint'),jdecode(''), jdecode('%2F238022.html'), 'true',[],'',''],
	['PAGE','238043',jdecode('Carbon+Tint'),jdecode(''), jdecode('%2F238043.html'), 'true',[],'',''],
	['PAGE','238064',jdecode('Carbon+Metal+Tint'),jdecode(''), jdecode('%2F238064.html'), 'true',[],'',''],
	['PAGE','238085',jdecode('Ceramic+Tint'),jdecode(''), jdecode('%2F238085.html'), 'true',[],'',''],
	['PAGE','238106',jdecode('Differences+between+Tints'),jdecode(''), jdecode('%2F238106.html'), 'true',[],'',''],
	['PAGE','72801',jdecode('Tint+Information+for+flat+glass'),jdecode(''), jdecode('%2F72801.html'), 'true',[],'',''],
	['PAGE','103722',jdecode('Price+list+for+home+%26+office'),jdecode(''), jdecode('%2F103722.html'), 'true',[],'',''],
	['PAGE','79448',jdecode('Different+look%3A+Mirror+vs+Charcoal+'),jdecode(''), jdecode('%2F79448.html'), 'true',[],'',''],
	['PAGE','79427',jdecode('Privacy+solution'),jdecode(''), jdecode('%2F79427.html'), 'true',[],'',''],
	['PAGE','79406',jdecode('Glare+solution'),jdecode(''), jdecode('%2F79406.html'), 'true',[],'',''],
	['PAGE','88601',jdecode('Equipment+available'),jdecode(''), jdecode('%2F88601.html'), 'true',[],'',''],
	['PAGE','173001',jdecode('Pictures+of+window+frames'),jdecode(''), jdecode('%2F173001.html'), 'true',[],'',''],
	['PAGE','205301',jdecode('Sign+Writing'),jdecode(''), jdecode('%2F205301.html'), 'true',[],'',''],
	['PAGE','258501',jdecode('Customer+comments'),jdecode(''), jdecode('%2F258501.html'), 'true',[],'',''],
	['PAGE','72501',jdecode('read+customers+comments'),jdecode(''), jdecode('%2F72501.html'), 'false',[],'',''],
	['PAGE','102601',jdecode('Employment+%2F+Franchise'),jdecode(''), jdecode('%2F102601.html'), 'true',[],'',''],
	['PAGE','6021',jdecode('Contact+Details'),jdecode(''), jdecode('%2F6021.html'), 'true',[],'',''],
	['PAGE','238322',jdecode('Frequently+asked+questions'),jdecode(''), jdecode('%2F238322.html'), 'true',[],'',''],
	['PAGE','45302',jdecode('%3E+Contact+Details+%28follow+up+page%29'),jdecode(''), jdecode('%2F45302.html'), 'false',[],'',''],
	['PAGE','195301',jdecode('Price+list++%28follow+up+page%29'),jdecode(''), jdecode('%2F195301.html'), 'false',[],'','']];
var siteelementCount=38;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11361';
theSitetree.keyvisualName='kv_11361.jpg';
theSitetree.fontsetId='31946';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='153963';
theSitetree.contentBGColor='426388';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'wl_enom',
  product: 'WSCENOSSSLYTC21T'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'426388',
				keyvisualId: 	'11361',
				keyvisualName: 	'kv_11361.jpg',
				fontsetId: 		'31946',
				graphicsetId: 	'13786',
				contentColor: 	'153963',
				contentBGColor: '426388',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-a919b2b00e4ff8039ee9f5daad3e98e7']={
webappId:    '7060',
documentId:  '170501',
internalId:  'a919b2b00e4ff8039ee9f5daad3e98e7',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238301',
internalId:  '',
customField: '20120112-232218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224601',
internalId:  '',
customField: '20120120-162053'
};
webappMappings['7008']=webappMappings['7008-1233']={
webappId:    '7008',
documentId:  '201',
internalId:  '1233',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-47d8d444cd976e9bf950825e8d5fd2e1']={
webappId:    '7060',
documentId:  '173001',
internalId:  '47d8d444cd976e9bf950825e8d5fd2e1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205301',
internalId:  '',
customField: '20120113-151932'
};
webappMappings['7008']=webappMappings['7008-1234']={
webappId:    '7008',
documentId:  '166701',
internalId:  '1234',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-19869901']={
webappId:    '1501',
documentId:  '201',
internalId:  '19869901',
customField: '1501'
};
webappMappings['1501']=webappMappings['1501-19869801']={
webappId:    '1501',
documentId:  '201',
internalId:  '19869801',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1232']={
webappId:    '7008',
documentId:  '6021',
internalId:  '1232',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20120115-211925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183201',
internalId:  '',
customField: '20080325-231928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107201',
internalId:  '',
customField: '20120112-231206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85101',
internalId:  '',
customField: '20120112-184934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110501',
internalId:  '',
customField: '20101120-223625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86201',
internalId:  '',
customField: '20120112-034002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85122',
internalId:  '',
customField: '20101120-224155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6016',
internalId:  '',
customField: '20101118-174439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166701',
internalId:  '',
customField: '20120112-015924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183601',
internalId:  '',
customField: '20080325-233212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170501',
internalId:  '',
customField: '20120112-020414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72822',
internalId:  '',
customField: '20120113-143303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6011',
internalId:  '',
customField: '20120112-234046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86901',
internalId:  '',
customField: '20110910-195030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79448',
internalId:  '',
customField: '20120120-162534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119601',
internalId:  '',
customField: '20091217-010626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79427',
internalId:  '',
customField: '20101120-235329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79406',
internalId:  '',
customField: '20101120-235517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20120120-160945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103722',
internalId:  '',
customField: '20101120-233500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195301',
internalId:  '',
customField: '20080916-014509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173001',
internalId:  '',
customField: '20080323-201355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88601',
internalId:  '',
customField: '20091217-015443'
};
webappMappings['1002']=webappMappings['1002-258501aen010inxxos']={
webappId:    '1002',
documentId:  '258501',
internalId:  '258501aen010inxxos',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20061028-213706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102601',
internalId:  '',
customField: '20080924-050154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6021',
internalId:  '',
customField: '20120113-150143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45302',
internalId:  '',
customField: '20050619-080602'
};
webappMappings['7008']=webappMappings['7008-1231']={
webappId:    '7008',
documentId:  '103722',
internalId:  '1231',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238001',
internalId:  '',
customField: '20120120-175302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238022',
internalId:  '',
customField: '20120120-174758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238043',
internalId:  '',
customField: '20101118-175803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238064',
internalId:  '',
customField: '20120112-022344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238085',
internalId:  '',
customField: '20120112-022943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238106',
internalId:  '',
customField: '20120113-151322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238322',
internalId:  '',
customField: '20120112-025023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258501',
internalId:  '',
customField: '20111116-054447'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INXXOS';
var companyName   = 'ACTION+TINT';
var htmlTitle	  = 'Mobile+Window+Tinting+BRISBANE+-+GOLD+COAST+-+IPSWICH';
var metaKeywords  = 'window+tinting%2C+car+window+tinting%2C+tinting%2C+action+tint%2C+mobile+window+tinting%2C+mobile+car+window+tinting%2C+frosted+window+tinting%2C+home+window+tinting%2C+office+window+tinting%2C+tint%2C+brisbane+window+tinting%2C+gold+coast+window+tinting%2C+Ipswich+window+tinting%2C+ceramic+window+tinting%2C+carbon+metal+window+tinting';
var metaContents  = 'Mobile+window+tinting+Brisbane+Gold+Coast+Ipswich+mobile+Car+window+tinting+Home+window+tinting+Office+window+tinting+Machine+window+tinting+++++++++++++++++++++++++++++++++++++++++++++++++++++++';
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();
};

