/* [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('Home'),jdecode(''),'/201.html','true',[],'',''],
	['PAGE','3026',jdecode('About+us'),jdecode(''),'/3026.html','true',[],'',''],
	['PAGE','3926',jdecode('Carpets+and+upholstery'),jdecode(''),'/3926.html','true',[],'',''],
	['PAGE','19202',jdecode('Before+and+after+pics.'),jdecode(''),'/19202.html','true',[],'',''],
	['PAGE','10201',jdecode('General+cleaning'),jdecode(''),'/10201.html','true',[],'',''],
	['PAGE','35301',jdecode('Office+cleaning'),jdecode(''),'/35301.html','true',[],'',''],
	['PAGE','10206',jdecode('Moving+in%2Fout+cleans'),jdecode(''),'/10206.html','true',[],'',''],
	['PAGE','36001',jdecode('Window+cleaning'),jdecode(''),'/36001.html','true',[],'',''],
	['PAGE','36022',jdecode('Curtain+cleaning'),jdecode(''),'/36022.html','true',[],'',''],
	['PAGE','35322',jdecode('Curtain+making+and+design'),jdecode(''),'/35322.html','true',[],'',''],
	['PAGE','10211',jdecode('Maid+service'),jdecode(''),'/10211.html','true',[],'',''],
	['PAGE','25601',jdecode('Dry+cleaning'),jdecode(''),'/25601.html','true',[],'',''],
	['PAGE','24501',jdecode('Price+list'),jdecode(''),'/24501.html','true',[],'',''],
	['PAGE','3056',jdecode('Special+offers'),jdecode(''),'/3056.html','true',[],'',''],
	['PAGE','10216',jdecode('Floods'),jdecode(''),'/10216.html','true',[],'',''],
	['PAGE','32601',jdecode('Memberships'),jdecode(''),'/32601.html','true',[],'',''],
	['PAGE','3021',jdecode('Contact'),jdecode(''),'/3021.html','true',[],'',''],
	['PAGE','10221',jdecode('Quotes'),jdecode(''),'/10221/index.html','true',[ 
		['PAGE','10902',jdecode('QUOTES+%28follow+up+page%29'),jdecode(''),'/10221/10902.html','false',[],'','']
	],'',''],
	['PAGE','10664',jdecode('Guestbook'),jdecode(''),'/10664/index.html','true',[ 
		['PAGE','10665',jdecode('Read+Guestbook'),jdecode(''),'/10664/10665.html','false',[],'','']
	],'',''],
	['PAGE','30101',jdecode('BEFORE+AND+AFTER'),jdecode(''),'/30101.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Cube';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10354';
theSitetree.graphicsetId='10488';
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: 			'Cube',
				paletteFamily: 	'154186',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10354',
				graphicsetId: 	'10488',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-311578']={
webappId:    '1501',
documentId:  '201',
internalId:  '311578',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-10664aen010inxxg0']={
webappId:    '1002',
documentId:  '10664',
internalId:  '10664aen010inxxg0',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-7d1e73983ea9ae7790e5de17fa15ff72']={
webappId:    '7060',
documentId:  '19202',
internalId:  '7d1e73983ea9ae7790e5de17fa15ff72',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-486ff32f4993269116f7578e3978d55f']={
webappId:    '7060',
documentId:  '30101',
internalId:  '486ff32f4993269116f7578e3978d55f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20100310-040906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3026',
internalId:  '',
customField: '20050426-122845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3926',
internalId:  '',
customField: '20100214-034448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19202',
internalId:  '',
customField: '20050519-113449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20060327-034027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20100214-034006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10206',
internalId:  '',
customField: '20060117-113019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20081125-054341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36022',
internalId:  '',
customField: '20100214-034054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35322',
internalId:  '',
customField: '20100214-034127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10211',
internalId:  '',
customField: '20060107-122232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20060117-110848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24501',
internalId:  '',
customField: '20081125-053257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3056',
internalId:  '',
customField: '20060107-115909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10216',
internalId:  '',
customField: '20060107-122002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20100214-033402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3021',
internalId:  '',
customField: '20060219-014727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10221',
internalId:  '',
customField: '20050412-152514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10902',
internalId:  '',
customField: '20050412-152943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10664',
internalId:  '',
customField: '20050412-153434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10665',
internalId:  '',
customField: '20050412-151515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20060327-034909'
};
webappMappings['7008']=webappMappings['7008-1465']={
webappId:    '7008',
documentId:  '10221',
internalId:  '1465',
customField: 'language:en;country:US;'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INXXG0';
var companyName   = 'SOOPERCLEAN';
var htmlTitle	  = 'CARPET+CLEANING+LONDON%2C+CARPET+CLEANER+';
var metaKeywords  = 'Carpet%2C+upholstery+cleaner+based+in+London%2C+all+areas+covered.+We+also+do+regular+cleaning+and+offer+advice+on+all+aspects+of+cleaningcarpet+cleaning%2C+carpet+cleaner%2C+carpet+cleaning+london%2C+cleaning+london%2C+upholstery+cleaning%2C+curtain+cleaning%2C+general+cleaning+in+london%2C+carpets+cleaned+uk%2C+floors+polished%2C+wood+floors+buffed+and+polished%2C+w1%2C+w2%2C+w3%2C+nw7%2C+yell.com%2C+ha8%2C+wc1%2C+w9%2C+w4%2C+e1%2C+w7%2C+w5%2C+sw3%2C+sw7%2C+sw6%2C+sw%2C+w%2C+west+london%2C+stain+guard%2C+stain+removal%2C+Expert+carpet+cleaning%2C+clean+carpets%2C+clean%2C+end+of+tenancy+clean%2C+moving+in%2C+moving+out%2C+curtain%2C+stains%2C+stain+removal%2C+steam+cleaning%2C+shampoo%2C++carpet+cleaning%2C+carpet+cleaner%2C+carpet+cleaning+london%2C+cleaning+london%2C+upholstery+cleaning%2C+curtain+cleaning%2C+general+cleaning+in+london%2C+carpets+cleaned+uk%2C+floors+polished%2C+wood+floors+buffed+and+polished%2C+w1%2C+w2%2C+w3%2C+nw7%2C+yell.com%2C+ha8%2C+wc1%2C+w9%2C+w4%2C+e1%2C+w7%2C+w5%2C+sw3%2C+sw7%2C+sw6%2C+sw%2C+w%2C+west+london%2C+stain+guard%2C+stain+removal%2C+Expert+carpet+cleaning%2C+clean+carpets%2C+clean%2C+end+of+tenancy+clean%2C+moving+in%2C+moving+out%2C+curtain%2C+stains%2C+stain+removal%2C+steam+cleaning%2C+shampoo';
var metaContents  = 'Professional+carpet+cleaning+throughout+London+to+both+domestic+and+commercial+clients+very+competitve+rates+experienced+experts+in+the+field+of+carpet+and+upholstery+cleaning%2C+carpet+cleaner%2C+carpet+cleaning+london%2C+cleaning+london%2C+upholstery+cleaning%2C+curtain+cleaning%2C+general+cleaning+in+london%2C+carpets+cleaned+uk%2C+floors+polished%2C+wood+floors+buffed+and+polished%2C+w1%2C+w2%2C+w3%2C+nw7%2C+yell.com%2C+ha8%2C+wc1%2C+w9%2C+w4%2C+e1%2C+w7%2C+w5%2C+sw3%2C+sw7%2C+sw6%2C+sw%2C+w%2C+west+london%2C+stain+guard%2C+stain+removal%2C+Expert+carpet+cleaning%2C+clean+carpets%2C+clean%2C+end+of+tenancy+clean%2C+moving+in%2C+moving+out%2C+curtain%2C+stains%2C+stain+removal%2C+steam+cleaning%2C+shampoo%2C+++';
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();
};
