/* [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','5501',jdecode('Home'),jdecode(''),'/5501.html','true',[],''],
	['PAGE','5699',jdecode('Solar+Greenhouses'),jdecode(''),'/5699/index.html','true',[ 
		['PAGE','10701',jdecode('Photographs'),jdecode(''),'/5699/10701.html','true',[],'']
	],''],
	['PAGE','5901',jdecode('Solar+Homes'),jdecode(''),'/5901/index.html','true',[ 
		['PAGE','5922',jdecode('Interior+construction'),jdecode(''),'/5901/5922.html','true',[],'']
	],''],
	['PAGE','10722',jdecode('Experimental+Data'),jdecode(''),'/10722/index.html','true',[ 
		['PAGE','11201',jdecode('Hot+Water+Collectors'),jdecode(''),'/10722/11201.html','true',[],''],
		['PAGE','11222',jdecode('Photovoltaic+Panels'),jdecode(''),'/10722/11222.html','true',[],'']
	],''],
	['PAGE','5552',jdecode('Products'),jdecode(''),'/5552/index.html','true',[ 
		['PAGE','5573',jdecode('EPS+Foam+Panels'),jdecode(''),'/5552/5573.html','true',[],''],
		['PAGE','5594',jdecode('LED+Lights'),jdecode(''),'/5552/5594.html','true',[],''],
		['PAGE','5615',jdecode('Solor+Heat+Collectors'),jdecode(''),'/5552/5615.html','true',[],''],
		['PAGE','5636',jdecode('Solar+PV+Panels'),jdecode(''),'/5552/5636.html','true',[],''],
		['PAGE','5657',jdecode('Planting+Systems'),jdecode(''),'/5552/5657.html','true',[],''],
		['PAGE','5678',jdecode('Glazing'),jdecode(''),'/5552/5678.html','true',[],'']
	],''],
	['PAGE','5943',jdecode('Ordering'),jdecode(''),'/5943.html','true',[],''],
	['PAGE','5985',jdecode('Investor+Information'),jdecode(''),'/5985.html','true',[],''],
	['PAGE','6006',jdecode('Contact'),jdecode(''),'/6006.html','true',[],''],
	['PAGE','10001',jdecode('Useful+Links'),jdecode(''),'/10001.html','true',[],''],
	['PAGE','13601',jdecode('New+Products'),jdecode(''),'/13601.html','true',[],''],
	['PAGE','14101',jdecode('Return+%26+Privacy+Policies'),jdecode(''),'/14101.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='A3CAFE';
theSitetree.keyvisualId='773';
theSitetree.keyvisualName='sicherheit.jpg';
theSitetree.fontsetId='142';
theSitetree.graphicsetId='161';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Metal',
				paletteFamily: 	'A3CAFE',
				keyvisualId: 	'773',
				keyvisualName: 	'sicherheit.jpg',
				fontsetId: 		'142',
				graphicsetId: 	'161',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'A3CAFE',
				b_color: 		'87A7D2',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100220-140537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5552',
internalId:  '',
customField: '20100224-050338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5573',
internalId:  '',
customField: '20090910-133521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5594',
internalId:  '',
customField: '20090913-074913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5615',
internalId:  '',
customField: '20091108-182354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5636',
internalId:  '',
customField: '20090910-135659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5657',
internalId:  '',
customField: '20090910-135756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5699',
internalId:  '',
customField: '20090910-130911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20100220-141951'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20090910-144141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20090901-211700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5985',
internalId:  '',
customField: '20090910-140902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6006',
internalId:  '',
customField: '20100218-055022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5678',
internalId:  '',
customField: '20090910-140041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20091018-123909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10722',
internalId:  '',
customField: '20091108-130019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20091108-142634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20091108-122647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20091108-130143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20100220-134835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20100224-044935'
};
var canonHostname = 'cm4all.netfirms.com';
var accountId     = 'ANFI10INXPEW';
var companyName   = 'R+%26+H+Unlimited%2C+LLC';
var htmlTitle	  = 'Solar+Homes+and+Greenhouses+using+Solar+panels+LED+lights+and+advanced+technology';
var metaKeywords  = 'Solar+hot+water+heating+LED+plant+lights+homes+greenhouses+full+solar';
var metaContents  = 'R++H+Unlimited+used+technology+to+improve+life.++We+focus+on+the+design+and+building+for+green+homes+and+greenhouses+for+the+upper+Midwest.++We+also+sell+LED+plant+lights%2C+EPS+construction+panels%2C+and+solar+components.';
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();
};
