/* [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','9801',jdecode('Home'),jdecode(''),'/9801.html','true',[],'',''],
	['PAGE','9904',jdecode('Dish+Sizes'),jdecode(''),'/9904.html','true',[],'',''],
	['PAGE','9956',jdecode('Contact+Us'),jdecode(''),'/9956.html','true',[],'',''],
	['PAGE','24201',jdecode('NEW+SKY+CARDS'),jdecode(''),'/24201.html','true',[],'',''],
	['PAGE','31001',jdecode('guest+book'),jdecode(''),'/31001.html','true',[],'',''],
	['PAGE','31027',jdecode('services+in+torrevieja'),jdecode(''),'/31027.html','true',[],'',''],
	['PAGE','31053',jdecode('torrevieja+forum'),jdecode(''),'/31053.html','true',[],'','']];
var siteelementCount=7;
theSitetree.topTemplateName='Pixelportal';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10375';
theSitetree.graphicsetId='10536';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Pixelportal',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10375',
				graphicsetId: 	'10536',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3030']={
webappId:    '7008',
documentId:  '9956',
internalId:  '3030',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20100126-113158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31053',
internalId:  '',
customField: '20100112-103838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20091019-110113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9904',
internalId:  '',
customField: '20090323-144050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9956',
internalId:  '',
customField: '20100112-104110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31027',
internalId:  '',
customField: '20091019-110113'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '9801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-8800823']={
webappId:    '1501',
documentId:  '9801',
internalId:  '8800823',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090820-194020'
};
webappMappings['1002']=webappMappings['1002-31001anbt20ineqbs']={
webappId:    '1002',
documentId:  '31001',
internalId:  '31001anbt20ineqbs',
customField: 'icq=false'
};
webappMappings['1003']=webappMappings['1003-anbt20ineqbs1246c3e50fc']={
webappId:    '1003',
documentId:  '31053',
internalId:  'anbt20ineqbs1246c3e50fc',
customField: 'en:GB'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEQBS';
var companyName   = 'www.FortunaSat.com++sky+tv+in+spain';
var htmlTitle	  = 'INTERNET+IN+%7C+WIFI++%7C+UK+SKY+CARDS++%7C+SKY+TV+IN+SPAIN+%7C+DATING+IN++MURCIA+%7C+SKY+TV+BENIJOFER+%7C+SKY+TV+BENIDORM+%7C+SKY+TV+TORREVIEJA+%7C+SKY+TV+ORIHUELA+%7C+SKY+TV+ALICANTE+%7C+SKY+TV+QUESADA+%7C+SKY+TV+TORREVIEJA+%7C++NEW+SKY+CARDS+%7C+PORN+%7C+DATING+IN++MURCIA%2Cweb+des';
var metaKeywords  = 'INTERNET%2Cuk+sky+cards%2CCALPESAT.SKY+TV+ALICANTE+%7C+SKY+TV+DENIA+%7C+SKY+TV+CALPE+%7C+SKY+TV+BENIDORM+%7C+SKY+TV+TORREVIEJA+%7C+SKY+TV+ORIHUELASKY+TV+MURCIA+%7C+SKY+TV+GRANADA+%7C+SKY+TV+ANTEQUERA+%7C+SKY+TV+FUENGIROLA+%7C+SKY+TV+MIJAS+%7C+SKY+TV+MARBELLASKY+TV+SAN+PEDRO+%7C+SKY+TV+ESTEPONA+%7C+SKY+TV+SOTOGRANDE+%7C+sky+tv+in+spain+satellite+british+tv+spain+%7C+Youtube+%7C+Fortuna+SKY+TV++Villa+Martin+Satellite+TV+%7C+1.9++2.4+Satellite+dishes+Portuguese+%7C+SKY+TV+Anywhere+in+the+worldReceiving+SKY+TV+in+Spainsky%2Ctv%2Cin%2Cspain%2Coffice%2Cin%2C+Alicante%2C+Benidorm%2C+Torrevieja%2C+Mar+Menor%2C+Murcia+%2C+La+Manga%2C+and+Camposol%2CFortuna%2C+Abanilla%2C+Archivel%2C+Alcoy%2C+Aspe%2C+Canada+del+trigo%2C+Calasparra%2C+Caravaca%2C+Caudette%2C+Catral%2C+Castalla%2C+Hondon%2C+La+Romana%2C+Macisvenda%2C+Mula%2C+Molina%2C+Monovar%2C+Novelda%2C+Petrer%2C+Pinoso%2C+Salinas%2C+Tibi%2C+Sax%2C+jumilla%2CYecla.We+are+authorised+UK+sky+agents%2C+offering+the+very+best+quality+HD+digital+TV+systems%2C+and+have+a+wide+range+of+viewing+options%2C+whether+it+is+for+your+holiday+home%2C+rental+property%2C+bar%2Frestaurant%2C+caravan+or+permanent+home.+we+have+a+choice+of+Freeview+or+subscription+packages+on+skydigital%2C+or+from+alternative+satellites.We+only+use+the+very+best+quality+Portuguese+manufactured+satellite+dishes%2C+along+with+Invacom+and+Sharp+L.N.Bs%2C+to+obtain+the+strongest+possible+signal+for+your+system.++We+are+also+able+to+install+sky+%2B%2Cso+you+can+watch+one+channel+whilst+recording+another%2Cas+well+as+the+latest+HD+High+Definition+digiboxes%2C+both+with+built-in+hard+drive+recording+facility+%28no+need+for+videos+any+more%21%29Whatever+you+choose%2C+every+system+is+tailor-made+to+your+exact+requirements%2C+and+installed+to+the+very+highest+standard%2C+with+no+disruption+to+your+property+by+registered%2C+qualified%2C+and+experienced+professional+installation+engineers.Our+service+doesn%E2%80%99t+end+there%2C+we+have+an+excellent%2C+proven+after-sales+service.++Take+a+look+at+our+customer+comments+section%2C+or+feel+free+to+ask+any+of+our+clients.++Every+system+is+covered+by+a+genuine+no-quibble+1+year+guarantee+on+all+electronic+equipment+installed+and+2+years+on+all+satellite+dishes.++If+any+part+of+the+system+fails%2C+we+will+replace+it+completely+free+of+charge%2C+with+no+call-out+charge+either.++BENIDORM%2C+VILLAJOYOSA%2C+CAMPELLO%2C+ALICANTE%2C+ELCHE%2C+SANTA+POLA%2C+GUARDAMAR%2C+TORREVIEJA%2C+CARTAGENA%2C+LA+MANGA%2C+GANDIA%2C+DENIA%2C+JAVEA%2C+BENITACHELL%2C+MORAIRA%2C+CALPE%2C+ALTEA%2C+ALBIR%2C+ALFAZ%2C+QUESADA%2C+PILAR+DE+LA+HORADADA%2C+VILAMARTIN%2C+SAN+MIGUEL+DE+SALINAS%2C+LOS+BALCONES%2C+LOS+ALCARZARES%2C+DOLORES%2C+DAYA+NUEVA%2C+ALMORADI%2C+SAN+JAVIER%2C+ALCOY%2C+CASTALLA%2C+VILLENA%2C+ELDA%2C+PINOSO%2C+NOVELDA%2C+CREVILLENTE%2C+ORIHUELA%2C+FORTUNA%2C+MURCIA%2C+SEGORBE%2C+SAGUNT%2C+LIRIA%2C+CHIVA%2C+REQUENA%2C+PICCASENT%2C+BENIFAIO%2C+ALCIRA%2C+CULLERA%2C+XATIVA%2Cporn%2Cdating';
var metaContents  = '+INTERNET%2Cuk+sky+cards%2CTV+IN+CALPE.CALPESAT.SKY+TV+ALICANTE+%7C+SKY+TV+DENIA+%7C+SKY+TV+CALPE+%7C+SKY+TV+BENIDORM+%7C+SKY+TV+TORREVIEJA+%7C+SKY+TV+ORIHUELASKY+TV+MURCIA+%7C+SKY+TV+GRANADA+%7C+SKY+TV+ANTEQUERA+%7C+SKY+TV+FUENGIROLA+%7C+SKY+TV+MIJAS+%7C+SKY+TV+MARBELLASKY+TV+SAN+PEDRO+%7C+SKY+TV+ESTEPONA+%7C+SKY+TV+SOTOGRANDE+%7C+sky+tv+in+spain+satellite+british+tv+spain+%7C+Youtube+%7C+Fortuna+SKY+TV++Villa+Martin+Satellite+TV+%7C+1.9++2.4+Satellite+dishes+Portuguese+%7C+SKY+TV+Anywhere+in+the+worldReceiving+SKY+TV+in+Spain+sky%2Cin%2Cspain%2Cfreesat%2Cfreeview%2Cin%2Cspain%2C+Alicante%2C+Benidorm%2C+Torrevieja%2C+Mar+Menor%2C+Murcia+%2C+La+Manga%2C+and+Camposol+on+the+coast.+Further+inland%2C+areas+include%2CFortuna%2C+Abanilla%2C+Archivel%2C+Alcoy%2C+Aspe%2C+Canada+del+trigo%2C+Calasparra%2C+Caravaca%2C+Caudette%2C+Catral%2C+Castalla%2C+Hondon%2C+La+Romana%2C+Macisvenda%2C+Mula%2C+Molina%2C+Monovar%2C+Novelda%2C+Petrer%2C+Pinoso%2C+Salinas%2C+Tibi%2C+Sax%2C+jumilla%2CYecla.We+are+authorised+UK+sky+agents%2C+offering+the+very+best+quality+HD+digital+TV+systems%2C+and+have+a+wide+range+of+viewing+options%2C+whether+it+is+for+your+holiday+home%2C+rental+property%2C+bar%2Frestaurant%2C+caravan+or+permanent+home.+we+have+a+choice+of+Freeview+or+subscription+packages+on+skydigital%2C+or+from+alternative+satellites.We+only+use+the+very+best+quality+Portuguese+manufactured+satellite+dishes%2C+along+with+Invacom+and+Sharp+L.N.Bs%2C+to+obtain+the+strongest+possible+signal+for+your+system.++We+are+also+able+to+install+sky+%2B%2Cso+you+can+watch+one+channel+whilst+recording+another%2Cas+well+as+the+latest+HD+High+Definition+digiboxes%2C+both+with+built-in+hard+drive+recording+facility+%28no+need+for+videos+any+more%21%29Whatever+you+choose%2C+every+system+is+tailor-made+to+your+exact+requirements%2C+and+installed+to+the+very+highest+standard%2C+with+no+disruption+to+your+property+by+registered%2C+qualified%2C+and+experienced+professional+installation+engineers.Our+service+doesn%E2%80%99t+end+there%2C+we+have+an+excellent%2C+proven+after-sales+service.++Take+a+look+at+our+customer+comments+section%2C+or+feel+free+to+ask+any+of+our+clients.++Every+system+is+covered+by+a+genuine+no-quibble+1+year+guarantee+on+all+electronic+equipment+installed+and+2+years+on+all+satellite+dishes.++If+any+part+of+the+system+fails%2C+we+will+replace+it+completely+free+of+charge%2C+with+no+call-out+charge+either.++BENIDORM%2C+VILLAJOYOSA%2C+CAMPELLO%2C+ALICANTE%2C+ELCHE%2C+SANTA+POLA%2C+GUARDAMAR%2C+TORREVIEJA%2C+CARTAGENA%2C+LA+MANGA%2C+GANDIA%2C+DENIA%2C+JAVEA%2C+BENITACHELL%2C+MORAIRA%2C+CALPE%2C+ALTEA%2C+ALBIR%2C+ALFAZ%2C+QUESADA%2C+PILAR+DE+LA+HORADADA%2C+VILAMARTIN%2C+SAN+MIGUEL+DE+SALINAS%2C+LOS+BALCONES%2C+LOS+ALCARZARES%2C+DOLORES%2C+DAYA+NUEVA%2C+ALMORADI%2C+SAN+JAVIER%2C+ALCOY%2C+CASTALLA%2C+VILLENA%2C+ELDA%2C+PINOSO%2C+NOVELDA%2C+CREVILLENTE%2C+ORIHUELA%2C+FORTUNA%2C+MURCIA%2C+SEGORBE%2C+SAGUNT%2C+LIRIA%2C+CHIVA%2C+REQUENA%2C+PICCASENT%2C+BENIFAIO%2C+ALCIRA%2C+CULLERA%2C+XATIVA%2Cporn%2Cdating%2Cweb+design';
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();
};
